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.b852398d8716a19c.js

1 line
2.4 MiB

var Ew=Object.defineProperty,ww=Object.defineProperties,Sw=Object.getOwnPropertyDescriptors,XC=Object.getOwnPropertySymbols,Lw=Object.prototype.hasOwnProperty,Tw=Object.prototype.propertyIsEnumerable,qC=(He,j,p)=>j in He?Ew(He,j,{enumerable:!0,configurable:!0,writable:!0,value:p}):He[j]=p,ws=(He,j)=>{for(var p in j||(j={}))Lw.call(j,p)&&qC(He,p,j[p]);if(XC)for(var p of XC(j))Tw.call(j,p)&&qC(He,p,j[p]);return He},JC=(He,j)=>ww(He,Sw(j));(self.webpackChunkRTLApp=self.webpackChunkRTLApp||[]).push([[179],{801:(He,j,p)=>{"use strict";p.d(j,{Acd:()=>d3,Aq:()=>oc,B$L:()=>gC,BDt:()=>os,CgH:()=>q9,DL8:()=>Z9,FJU:()=>DC,FVb:()=>kC,FlN:()=>y2,FpQ:()=>G9,HLz:()=>Lc,KOR:()=>r6,Krp:()=>_f,Mdf:()=>bs,N2j:()=>fi,NBC:()=>QC,OS1:()=>vl,Psp:()=>_i,Sbq:()=>C,Ssp:()=>V9,SuH:()=>fg,TmZ:()=>m2,USL:()=>T8,Vfw:()=>V,X5K:()=>BC,XsY:()=>yu,aj4:()=>l8,b7W:()=>B2,byT:()=>Pf,co4:()=>uu,dLy:()=>jo,dT$:()=>Y3,eHv:()=>lC,gNZ:()=>SC,hkK:()=>xC,hnx:()=>MC,iOm:()=>j7,kXW:()=>Cu,kZ_:()=>Fl,koM:()=>Ts,mh3:()=>j3,nNP:()=>I0,q7m:()=>ks,qO$:()=>V3,r8p:()=>X8,sqG:()=>fd,uli:()=>xf,vqe:()=>zh,wn1:()=>Ff,wyP:()=>KC,xf3:()=>tg,yOe:()=>Gc});var C={prefix:"fas",iconName:"angles-down",icon:[384,512,["angle-double-down"],"f103","M169.4 278.6C175.6 284.9 183.8 288 192 288s16.38-3.125 22.62-9.375l160-160c12.5-12.5 12.5-32.75 0-45.25s-32.75-12.5-45.25 0L192 210.8L54.63 73.38c-12.5-12.5-32.75-12.5-45.25 0s-12.5 32.75 0 45.25L169.4 278.6zM329.4 265.4L192 402.8L54.63 265.4c-12.5-12.5-32.75-12.5-45.25 0s-12.5 32.75 0 45.25l160 160C175.6 476.9 183.8 480 192 480s16.38-3.125 22.62-9.375l160-160c12.5-12.5 12.5-32.75 0-45.25S341.9 252.9 329.4 265.4z"]},V={prefix:"fas",iconName:"angles-up",icon:[384,512,["angle-double-up"],"f102","M54.63 246.6L192 109.3l137.4 137.4C335.6 252.9 343.8 256 352 256s16.38-3.125 22.62-9.375c12.5-12.5 12.5-32.75 0-45.25l-160-160c-12.5-12.5-32.75-12.5-45.25 0l-160 160c-12.5 12.5-12.5 32.75 0 45.25S42.13 259.1 54.63 246.6zM214.6 233.4c-12.5-12.5-32.75-12.5-45.25 0l-160 160c-12.5 12.5-12.5 32.75 0 45.25s32.75 12.5 45.25 0L192 301.3l137.4 137.4C335.6 444.9 343.8 448 352 448s16.38-3.125 22.62-9.375c12.5-12.5 12.5-32.75 0-45.25L214.6 233.4z"]},os={prefix:"fas",iconName:"bolt",icon:[384,512,[9889,"zap"],"f0e7","M240.5 224H352C365.3 224 377.3 232.3 381.1 244.7C386.6 257.2 383.1 271.3 373.1 280.1L117.1 504.1C105.8 513.9 89.27 514.7 77.19 505.9C65.1 497.1 60.7 481.1 66.59 467.4L143.5 288H31.1C18.67 288 6.733 279.7 2.044 267.3C-2.645 254.8 .8944 240.7 10.93 231.9L266.9 7.918C278.2-1.92 294.7-2.669 306.8 6.114C318.9 14.9 323.3 30.87 317.4 44.61L240.5 224z"]},fi={prefix:"fas",iconName:"box-archive",icon:[512,512,["archive"],"f187","M32 432C32 458.5 53.49 480 80 480h352c26.51 0 48-21.49 48-48V160H32V432zM160 236C160 229.4 165.4 224 172 224h168C346.6 224 352 229.4 352 236v8C352 250.6 346.6 256 340 256h-168C165.4 256 160 250.6 160 244V236zM480 32H32C14.31 32 0 46.31 0 64v48C0 120.8 7.188 128 16 128h480C504.8 128 512 120.8 512 112V64C512 46.31 497.7 32 480 32z"]},d3={prefix:"fas",iconName:"bullhorn",icon:[512,512,[128363,128226],"f0a1","M480 179.6C498.6 188.4 512 212.1 512 240C512 267.9 498.6 291.6 480 300.4V448C480 460.9 472.2 472.6 460.2 477.6C448.3 482.5 434.5 479.8 425.4 470.6L381.7 426.1C333.7 378.1 268.6 352 200.7 352H192V480C192 497.7 177.7 512 160 512H96C78.33 512 64 497.7 64 480V352C28.65 352 0 323.3 0 288V192C0 156.7 28.65 128 64 128H200.7C268.6 128 333.7 101 381.7 53.02L425.4 9.373C434.5 .2215 448.3-2.516 460.2 2.437C472.2 7.39 480 19.06 480 32V179.6zM200.7 192H192V288H200.7C280.5 288 357.2 317.8 416 371.3V108.7C357.2 162.2 280.5 192 200.7 192V192z"]},Ts={prefix:"fas",iconName:"chart-bar",icon:[512,512,["bar-chart"],"f080","M32 32C49.67 32 64 46.33 64 64V400C64 408.8 71.16 416 80 416H480C497.7 416 512 430.3 512 448C512 465.7 497.7 480 480 480H80C35.82 480 0 444.2 0 400V64C0 46.33 14.33 32 32 32zM128 128C128 110.3 142.3 96 160 96H352C369.7 96 384 110.3 384 128C384 145.7 369.7 160 352 160H160C142.3 160 128 145.7 128 128zM288 192C305.7 192 320 206.3 320 224C320 241.7 305.7 256 288 256H160C142.3 256 128 241.7 128 224C128 206.3 142.3 192 160 192H288zM416 288C433.7 288 448 302.3 448 320C448 337.7 433.7 352 416 352H160C142.3 352 128 337.7 128 320C128 302.3 142.3 288 160 288H416z"]},vl={prefix:"fas",iconName:"chart-pie",icon:[576,512,["pie-chart"],"f200","M304 16.58C304 7.555 310.1 0 320 0C443.7 0 544 100.3 544 224C544 233 536.4 240 527.4 240H304V16.58zM32 272C32 150.7 122.1 50.34 238.1 34.25C248.2 32.99 256 40.36 256 49.61V288L412.5 444.5C419.2 451.2 418.7 462.2 411 467.7C371.8 495.6 323.8 512 272 512C139.5 512 32 404.6 32 272zM558.4 288C567.6 288 575 295.8 573.8 305C566.1 360.9 539.1 410.6 499.9 447.3C493.9 452.1 484.5 452.5 478.7 446.7L320 288H558.4z"]},fd={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM256 128c17.67 0 32 14.33 32 32c0 17.67-14.33 32-32 32S224 177.7 224 160C224 142.3 238.3 128 256 128zM296 384h-80C202.8 384 192 373.3 192 360s10.75-24 24-24h16v-64H224c-13.25 0-24-10.75-24-24S210.8 224 224 224h32c13.25 0 24 10.75 24 24v88h16c13.25 0 24 10.75 24 24S309.3 384 296 384z"]},V3={prefix:"fas",iconName:"clock-rotate-left",icon:[512,512,["history"],"f1da","M256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C201.7 512 151.2 495 109.7 466.1C95.2 455.1 91.64 436 101.8 421.5C111.9 407 131.8 403.5 146.3 413.6C177.4 435.3 215.2 448 256 448C362 448 448 362 448 256C448 149.1 362 64 256 64C202.1 64 155 85.46 120.2 120.2L151 151C166.1 166.1 155.4 192 134.1 192H24C10.75 192 0 181.3 0 168V57.94C0 36.56 25.85 25.85 40.97 40.97L74.98 74.98C121.3 28.69 185.3 0 255.1 0L256 0zM256 128C269.3 128 280 138.7 280 152V246.1L344.1 311C354.3 320.4 354.3 335.6 344.1 344.1C335.6 354.3 320.4 354.3 311 344.1L239 272.1C234.5 268.5 232 262.4 232 256V152C232 138.7 242.7 128 256 128V128z"]},Y3={prefix:"fas",iconName:"code",icon:[640,512,[],"f121","M414.8 40.79L286.8 488.8C281.9 505.8 264.2 515.6 247.2 510.8C230.2 505.9 220.4 488.2 225.2 471.2L353.2 23.21C358.1 6.216 375.8-3.624 392.8 1.232C409.8 6.087 419.6 23.8 414.8 40.79H414.8zM518.6 121.4L630.6 233.4C643.1 245.9 643.1 266.1 630.6 278.6L518.6 390.6C506.1 403.1 485.9 403.1 473.4 390.6C460.9 378.1 460.9 357.9 473.4 345.4L562.7 256L473.4 166.6C460.9 154.1 460.9 133.9 473.4 121.4C485.9 108.9 506.1 108.9 518.6 121.4V121.4zM166.6 166.6L77.25 256L166.6 345.4C179.1 357.9 179.1 378.1 166.6 390.6C154.1 403.1 133.9 403.1 121.4 390.6L9.372 278.6C-3.124 266.1-3.124 245.9 9.372 233.4L121.4 121.4C133.9 108.9 154.1 108.9 166.6 121.4C179.1 133.9 179.1 154.1 166.6 166.6V166.6z"]},j3={prefix:"fas",iconName:"code-branch",icon:[448,512,[],"f126","M160 80C160 112.8 140.3 140.1 112 153.3V241.1C130.8 230.2 152.7 224 176 224H272C307.3 224 336 195.3 336 160V153.3C307.7 140.1 288 112.8 288 80C288 35.82 323.8 0 368 0C412.2 0 448 35.82 448 80C448 112.8 428.3 140.1 400 153.3V160C400 230.7 342.7 288 272 288H176C140.7 288 112 316.7 112 352V358.7C140.3 371 160 399.2 160 432C160 476.2 124.2 512 80 512C35.82 512 0 476.2 0 432C0 399.2 19.75 371 48 358.7V153.3C19.75 140.1 0 112.8 0 80C0 35.82 35.82 0 80 0C124.2 0 160 35.82 160 80V80zM80 104C93.25 104 104 93.25 104 80C104 66.75 93.25 56 80 56C66.75 56 56 66.75 56 80C56 93.25 66.75 104 80 104zM368 56C354.7 56 344 66.75 344 80C344 93.25 354.7 104 368 104C381.3 104 392 93.25 392 80C392 66.75 381.3 56 368 56zM80 456C93.25 456 104 445.3 104 432C104 418.7 93.25 408 80 408C66.75 408 56 418.7 56 432C56 445.3 66.75 456 80 456z"]},Fl={prefix:"fas",iconName:"copy",icon:[512,512,[],"f0c5","M384 96L384 0h-112c-26.51 0-48 21.49-48 48v288c0 26.51 21.49 48 48 48H464c26.51 0 48-21.49 48-48V128h-95.1C398.4 128 384 113.6 384 96zM416 0v96h96L416 0zM192 352V128h-144c-26.51 0-48 21.49-48 48v288c0 26.51 21.49 48 48 48h192c26.51 0 48-21.49 48-48L288 416h-32C220.7 416 192 387.3 192 352z"]},m2={prefix:"fas",iconName:"diagram-project",icon:[576,512,["project-diagram"],"f542","M0 80C0 53.49 21.49 32 48 32H144C170.5 32 192 53.49 192 80V96H384V80C384 53.49 405.5 32 432 32H528C554.5 32 576 53.49 576 80V176C576 202.5 554.5 224 528 224H432C405.5 224 384 202.5 384 176V160H192V176C192 177.7 191.9 179.4 191.7 180.1L272 288H368C394.5 288 416 309.5 416 336V432C416 458.5 394.5 480 368 480H272C245.5 480 224 458.5 224 432V336C224 334.3 224.1 332.6 224.3 331L144 224H48C21.49 224 0 202.5 0 176V80z"]},ks={prefix:"fas",iconName:"download",icon:[512,512,[],"f019","M480 352h-133.5l-45.25 45.25C289.2 409.3 273.1 416 256 416s-33.16-6.656-45.25-18.75L165.5 352H32c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h448c17.67 0 32-14.33 32-32v-96C512 366.3 497.7 352 480 352zM432 456c-13.2 0-24-10.8-24-24c0-13.2 10.8-24 24-24s24 10.8 24 24C456 445.2 445.2 456 432 456zM233.4 374.6C239.6 380.9 247.8 384 256 384s16.38-3.125 22.62-9.375l128-128c12.49-12.5 12.49-32.75 0-45.25c-12.5-12.5-32.76-12.5-45.25 0L288 274.8V32c0-17.67-14.33-32-32-32C238.3 0 224 14.33 224 32v242.8L150.6 201.4c-12.49-12.5-32.75-12.5-45.25 0c-12.49 12.5-12.49 32.75 0 45.25L233.4 374.6z"]},y2={prefix:"fas",iconName:"dumbbell",icon:[640,512,[],"f44b","M104 96h-48C42.75 96 32 106.8 32 120V224C14.33 224 0 238.3 0 256c0 17.67 14.33 32 31.1 32L32 392C32 405.3 42.75 416 56 416h48C117.3 416 128 405.3 128 392v-272C128 106.8 117.3 96 104 96zM456 32h-48C394.8 32 384 42.75 384 56V224H256V56C256 42.75 245.3 32 232 32h-48C170.8 32 160 42.75 160 56v400C160 469.3 170.8 480 184 480h48C245.3 480 256 469.3 256 456V288h128v168c0 13.25 10.75 24 24 24h48c13.25 0 24-10.75 24-24V56C480 42.75 469.3 32 456 32zM608 224V120C608 106.8 597.3 96 584 96h-48C522.8 96 512 106.8 512 120v272c0 13.25 10.75 24 24 24h48c13.25 0 24-10.75 24-24V288c17.67 0 32-14.33 32-32C640 238.3 625.7 224 608 224z"]},r6={prefix:"fas",iconName:"eject",icon:[448,512,[9167],"f052","M48.01 319.1h351.1c41.62 0 63.49-49.63 35.37-80.38l-175.1-192.1c-19-20.62-51.75-20.62-70.75 0L12.64 239.6C-15.48 270.2 6.393 319.1 48.01 319.1zM399.1 384H48.01c-26.39 0-47.99 21.59-47.99 47.98C.0117 458.4 21.61 480 48.01 480h351.1c26.39 0 47.99-21.6 47.99-47.99C447.1 405.6 426.4 384 399.1 384z"]},bs={prefix:"fas",iconName:"eye",icon:[576,512,[128065],"f06e","M279.6 160.4C282.4 160.1 285.2 160 288 160C341 160 384 202.1 384 256C384 309 341 352 288 352C234.1 352 192 309 192 256C192 253.2 192.1 250.4 192.4 247.6C201.7 252.1 212.5 256 224 256C259.3 256 288 227.3 288 192C288 180.5 284.1 169.7 279.6 160.4zM480.6 112.6C527.4 156 558.7 207.1 573.5 243.7C576.8 251.6 576.8 260.4 573.5 268.3C558.7 304 527.4 355.1 480.6 399.4C433.5 443.2 368.8 480 288 480C207.2 480 142.5 443.2 95.42 399.4C48.62 355.1 17.34 304 2.461 268.3C-.8205 260.4-.8205 251.6 2.461 243.7C17.34 207.1 48.62 156 95.42 112.6C142.5 68.84 207.2 32 288 32C368.8 32 433.5 68.84 480.6 112.6V112.6zM288 112C208.5 112 144 176.5 144 256C144 335.5 208.5 400 288 400C367.5 400 432 335.5 432 256C432 176.5 367.5 112 288 112z"]},oc={prefix:"fas",iconName:"eye-slash",icon:[640,512,[],"f070","M150.7 92.77C195 58.27 251.8 32 320 32C400.8 32 465.5 68.84 512.6 112.6C559.4 156 590.7 207.1 605.5 243.7C608.8 251.6 608.8 260.4 605.5 268.3C592.1 300.6 565.2 346.1 525.6 386.7L630.8 469.1C641.2 477.3 643.1 492.4 634.9 502.8C626.7 513.2 611.6 515.1 601.2 506.9L9.196 42.89C-1.236 34.71-3.065 19.63 5.112 9.196C13.29-1.236 28.37-3.065 38.81 5.112L150.7 92.77zM223.1 149.5L313.4 220.3C317.6 211.8 320 202.2 320 191.1C320 180.5 316.1 169.7 311.6 160.4C314.4 160.1 317.2 159.1 320 159.1C373 159.1 416 202.1 416 255.1C416 269.7 413.1 282.7 407.1 294.5L446.6 324.7C457.7 304.3 464 280.9 464 255.1C464 176.5 399.5 111.1 320 111.1C282.7 111.1 248.6 126.2 223.1 149.5zM320 480C239.2 480 174.5 443.2 127.4 399.4C80.62 355.1 49.34 304 34.46 268.3C31.18 260.4 31.18 251.6 34.46 243.7C44 220.8 60.29 191.2 83.09 161.5L177.4 235.8C176.5 242.4 176 249.1 176 255.1C176 335.5 240.5 400 320 400C338.7 400 356.6 396.4 373 389.9L446.2 447.5C409.9 467.1 367.8 480 320 480H320z"]},Lc={prefix:"fas",iconName:"gauge-high",icon:[512,512,[62461,"tachometer-alt","tachometer-alt-fast"],"f625","M512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256zM256 64C238.3 64 224 78.33 224 96C224 113.7 238.3 128 256 128C273.7 128 288 113.7 288 96C288 78.33 273.7 64 256 64zM256 416C291.3 416 320 387.3 320 352C320 334.6 313.1 318.9 301.9 307.4L365.1 161.7C371.3 149.5 365.8 135.4 353.7 130C341.5 124.7 327.4 130.2 322 142.3L257.9 288C257.3 288 256.6 287.1 256 287.1C220.7 287.1 192 316.7 192 352C192 387.3 220.7 416 256 416V416zM144 112C126.3 112 112 126.3 112 144C112 161.7 126.3 176 144 176C161.7 176 176 161.7 176 144C176 126.3 161.7 112 144 112zM96 288C113.7 288 128 273.7 128 256C128 238.3 113.7 224 96 224C78.33 224 64 238.3 64 256C64 273.7 78.33 288 96 288zM416 224C398.3 224 384 238.3 384 256C384 273.7 398.3 288 416 288C433.7 288 448 273.7 448 256C448 238.3 433.7 224 416 224z"]},B2={prefix:"fas",iconName:"gear",icon:[512,512,[9881,"cog"],"f013","M495.9 166.6C499.2 175.2 496.4 184.9 489.6 191.2L446.3 230.6C447.4 238.9 448 247.4 448 256C448 264.6 447.4 273.1 446.3 281.4L489.6 320.8C496.4 327.1 499.2 336.8 495.9 345.4C491.5 357.3 486.2 368.8 480.2 379.7L475.5 387.8C468.9 398.8 461.5 409.2 453.4 419.1C447.4 426.2 437.7 428.7 428.9 425.9L373.2 408.1C359.8 418.4 344.1 427 329.2 433.6L316.7 490.7C314.7 499.7 307.7 506.1 298.5 508.5C284.7 510.8 270.5 512 255.1 512C241.5 512 227.3 510.8 213.5 508.5C204.3 506.1 197.3 499.7 195.3 490.7L182.8 433.6C167 427 152.2 418.4 138.8 408.1L83.14 425.9C74.3 428.7 64.55 426.2 58.63 419.1C50.52 409.2 43.12 398.8 36.52 387.8L31.84 379.7C25.77 368.8 20.49 357.3 16.06 345.4C12.82 336.8 15.55 327.1 22.41 320.8L65.67 281.4C64.57 273.1 64 264.6 64 256C64 247.4 64.57 238.9 65.67 230.6L22.41 191.2C15.55 184.9 12.82 175.3 16.06 166.6C20.49 154.7 25.78 143.2 31.84 132.3L36.51 124.2C43.12 113.2 50.52 102.8 58.63 92.95C64.55 85.8 74.3 83.32 83.14 86.14L138.8 103.9C152.2 93.56 167 84.96 182.8 78.43L195.3 21.33C197.3 12.25 204.3 5.04 213.5 3.51C227.3 1.201 241.5 0 256 0C270.5 0 284.7 1.201 298.5 3.51C307.7 5.04 314.7 12.25 316.7 21.33L329.2 78.43C344.1 84.96 359.8 93.56 373.2 103.9L428.9 86.14C437.7 83.32 447.4 85.8 453.4 92.95C461.5 102.8 468.9 113.2 475.5 124.2L480.2 132.3C486.2 143.2 491.5 154.7 495.9 166.6V166.6zM256 336C300.2 336 336 300.2 336 255.1C336 211.8 300.2 175.1 256 175.1C211.8 175.1 176 211.8 176 255.1C176 300.2 211.8 336 256 336z"]},Gc={prefix:"fas",iconName:"handshake",icon:[640,512,[],"f2b5","M0 383.9l64 .0404c17.75 0 32-14.29 32-32.03V128.3L0 128.3V383.9zM48 320.1c8.75 0 16 7.118 16 15.99c0 8.742-7.25 15.99-16 15.99S32 344.8 32 336.1C32 327.2 39.25 320.1 48 320.1zM348.8 64c-7.941 0-15.66 2.969-21.52 8.328L228.9 162.3C228.8 162.5 228.8 162.7 228.6 162.7C212 178.3 212.3 203.2 226.5 218.7c12.75 13.1 39.38 17.62 56.13 2.75C282.8 221.3 282.9 221.3 283 221.2l79.88-73.1c6.5-5.871 16.75-5.496 22.62 1c6 6.496 5.5 16.62-1 22.62l-26.12 23.87L504 313.7c2.875 2.496 5.5 4.996 7.875 7.742V127.1c-40.98-40.96-96.48-63.88-154.4-63.88L348.8 64zM334.6 217.4l-30 27.49c-29.75 27.11-75.25 24.49-101.8-4.371C176 211.2 178.1 165.7 207.3 138.9L289.1 64H282.5C224.7 64 169.1 87.08 128.2 127.9L128 351.8l18.25 .0369l90.5 81.82c27.5 22.37 67.75 18.12 90-9.246l18.12 15.24c15.88 12.1 39.38 10.5 52.38-5.371l31.38-38.6l5.374 4.498c13.75 11 33.88 9.002 45-4.748l9.538-11.78c11.12-13.75 9.036-33.78-4.694-44.93L334.6 217.4zM544 128.4v223.6c0 17.62 14.25 32.05 31.1 32.05L640 384V128.1L544 128.4zM592 352c-8.75 0-16-7.246-16-15.99c0-8.875 7.25-15.99 16-15.99S608 327.2 608 336.1C608 344.8 600.8 352 592 352z"]},zh={prefix:"fas",iconName:"infinity",icon:[640,512,[9854,8734],"f534","M494.9 96.01c-38.78 0-75.22 15.09-102.6 42.5L320 210.8L247.8 138.5c-27.41-27.41-63.84-42.5-102.6-42.5C65.11 96.01 0 161.1 0 241.1v29.75c0 80.03 65.11 145.1 145.1 145.1c38.78 0 75.22-15.09 102.6-42.5L320 301.3l72.23 72.25c27.41 27.41 63.84 42.5 102.6 42.5C574.9 416 640 350.9 640 270.9v-29.75C640 161.1 574.9 96.01 494.9 96.01zM202.5 328.3c-15.31 15.31-35.69 23.75-57.38 23.75C100.4 352 64 315.6 64 270.9v-29.75c0-44.72 36.41-81.13 81.14-81.13c21.69 0 42.06 8.438 57.38 23.75l72.23 72.25L202.5 328.3zM576 270.9c0 44.72-36.41 81.13-81.14 81.13c-21.69 0-42.06-8.438-57.38-23.75l-72.23-72.25l72.23-72.25c15.31-15.31 35.69-23.75 57.38-23.75C539.6 160 576 196.4 576 241.1V270.9z"]},_f={prefix:"fas",iconName:"layer-group",icon:[512,512,[],"f5fd","M232.5 5.171C247.4-1.718 264.6-1.718 279.5 5.171L498.1 106.2C506.6 110.1 512 118.6 512 127.1C512 137.3 506.6 145.8 498.1 149.8L279.5 250.8C264.6 257.7 247.4 257.7 232.5 250.8L13.93 149.8C5.438 145.8 0 137.3 0 127.1C0 118.6 5.437 110.1 13.93 106.2L232.5 5.171zM498.1 234.2C506.6 238.1 512 246.6 512 255.1C512 265.3 506.6 273.8 498.1 277.8L279.5 378.8C264.6 385.7 247.4 385.7 232.5 378.8L13.93 277.8C5.438 273.8 0 265.3 0 255.1C0 246.6 5.437 238.1 13.93 234.2L67.13 209.6L219.1 279.8C242.5 290.7 269.5 290.7 292.9 279.8L444.9 209.6L498.1 234.2zM292.9 407.8L444.9 337.6L498.1 362.2C506.6 366.1 512 374.6 512 383.1C512 393.3 506.6 401.8 498.1 405.8L279.5 506.8C264.6 513.7 247.4 513.7 232.5 506.8L13.93 405.8C5.438 401.8 0 393.3 0 383.1C0 374.6 5.437 366.1 13.93 362.2L67.13 337.6L219.1 407.8C242.5 418.7 269.5 418.7 292.9 407.8V407.8z"]},xf={prefix:"fas",iconName:"life-ring",icon:[512,512,[],"f1cd","M470.6 425.4C483.1 437.9 483.1 458.1 470.6 470.6C458.1 483.1 437.9 483.1 425.4 470.6L412.1 458.2C369.6 491.9 315.2 512 255.1 512C196.8 512 142.4 491.9 99.02 458.2L86.63 470.6C74.13 483.1 53.87 483.1 41.37 470.6C28.88 458.1 28.88 437.9 41.37 425.4L53.76 412.1C20.07 369.6 0 315.2 0 255.1C0 196.8 20.07 142.4 53.76 99.02L41.37 86.63C28.88 74.13 28.88 53.87 41.37 41.37C53.87 28.88 74.13 28.88 86.63 41.37L99.02 53.76C142.4 20.07 196.8 0 255.1 0C315.2 0 369.6 20.07 412.1 53.76L425.4 41.37C437.9 28.88 458.1 28.88 470.6 41.37C483.1 53.87 483.1 74.13 470.6 86.63L458.2 99.02C491.9 142.4 512 196.8 512 255.1C512 315.2 491.9 369.6 458.2 412.1L470.6 425.4zM309.3 354.5C293.4 363.1 275.3 368 255.1 368C236.7 368 218.6 363.1 202.7 354.5L144.8 412.5C176.1 434.9 214.5 448 255.1 448C297.5 448 335.9 434.9 367.2 412.5L309.3 354.5zM448 255.1C448 214.5 434.9 176.1 412.5 144.8L354.5 202.7C363.1 218.6 368 236.7 368 256C368 275.3 363.1 293.4 354.5 309.3L412.5 367.2C434.9 335.9 448 297.5 448 256V255.1zM255.1 63.1C214.5 63.1 176.1 77.14 144.8 99.5L202.7 157.5C218.6 148.9 236.7 143.1 255.1 143.1C275.3 143.1 293.4 148.9 309.3 157.5L367.2 99.5C335.9 77.14 297.5 63.1 256 63.1H255.1zM157.5 309.3C148.9 293.4 143.1 275.3 143.1 255.1C143.1 236.7 148.9 218.6 157.5 202.7L99.5 144.8C77.14 176.1 63.1 214.5 63.1 255.1C63.1 297.5 77.14 335.9 99.5 367.2L157.5 309.3zM255.1 207.1C229.5 207.1 207.1 229.5 207.1 255.1C207.1 282.5 229.5 303.1 255.1 303.1C282.5 303.1 304 282.5 304 255.1C304 229.5 282.5 207.1 255.1 207.1z"]},I0={prefix:"fas",iconName:"link",icon:[640,512,[128279,"chain"],"f0c1","M172.5 131.1C228.1 75.51 320.5 75.51 376.1 131.1C426.1 181.1 433.5 260.8 392.4 318.3L391.3 319.9C381 334.2 361 337.6 346.7 327.3C332.3 317 328.9 297 339.2 282.7L340.3 281.1C363.2 249 359.6 205.1 331.7 177.2C300.3 145.8 249.2 145.8 217.7 177.2L105.5 289.5C73.99 320.1 73.99 372 105.5 403.5C133.3 431.4 177.3 435 209.3 412.1L210.9 410.1C225.3 400.7 245.3 404 255.5 418.4C265.8 432.8 262.5 452.8 248.1 463.1L246.5 464.2C188.1 505.3 110.2 498.7 60.21 448.8C3.741 392.3 3.741 300.7 60.21 244.3L172.5 131.1zM467.5 380C411 436.5 319.5 436.5 263 380C213 330 206.5 251.2 247.6 193.7L248.7 192.1C258.1 177.8 278.1 174.4 293.3 184.7C307.7 194.1 311.1 214.1 300.8 229.3L299.7 230.9C276.8 262.1 280.4 306.9 308.3 334.8C339.7 366.2 390.8 366.2 422.3 334.8L534.5 222.5C566 191 566 139.1 534.5 108.5C506.7 80.63 462.7 76.99 430.7 99.9L429.1 101C414.7 111.3 394.7 107.1 384.5 93.58C374.2 79.2 377.5 59.21 391.9 48.94L393.5 47.82C451 6.731 529.8 13.25 579.8 63.24C636.3 119.7 636.3 211.3 579.8 267.7L467.5 380z"]},Pf={prefix:"fas",iconName:"lock",icon:[448,512,[128274],"f023","M80 192V144C80 64.47 144.5 0 224 0C303.5 0 368 64.47 368 144V192H384C419.3 192 448 220.7 448 256V448C448 483.3 419.3 512 384 512H64C28.65 512 0 483.3 0 448V256C0 220.7 28.65 192 64 192H80zM144 192H304V144C304 99.82 268.2 64 224 64C179.8 64 144 99.82 144 144V192z"]},Ff={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M500.3 443.7l-119.7-119.7c27.22-40.41 40.65-90.9 33.46-144.7C401.8 87.79 326.8 13.32 235.2 1.723C99.01-15.51-15.51 99.01 1.724 235.2c11.6 91.64 86.08 166.7 177.6 178.9c53.8 7.189 104.3-6.236 144.7-33.46l119.7 119.7c15.62 15.62 40.95 15.62 56.57 0C515.9 484.7 515.9 459.3 500.3 443.7zM79.1 208c0-70.58 57.42-128 128-128s128 57.42 128 128c0 70.58-57.42 128-128 128S79.1 278.6 79.1 208z"]},uu={prefix:"fas",iconName:"money-bill-1",icon:[576,512,["money-bill-alt"],"f3d1","M252 208C252 196.1 260.1 188 272 188H288C299 188 308 196.1 308 208V276H312C323 276 332 284.1 332 296C332 307 323 316 312 316H264C252.1 316 244 307 244 296C244 284.1 252.1 276 264 276H268V227.6C258.9 225.7 252 217.7 252 208zM512 64C547.3 64 576 92.65 576 128V384C576 419.3 547.3 448 512 448H64C28.65 448 0 419.3 0 384V128C0 92.65 28.65 64 64 64H512zM128 384C128 348.7 99.35 320 64 320V384H128zM64 192C99.35 192 128 163.3 128 128H64V192zM512 384V320C476.7 320 448 348.7 448 384H512zM512 128H448C448 163.3 476.7 192 512 192V128zM288 144C226.1 144 176 194.1 176 256C176 317.9 226.1 368 288 368C349.9 368 400 317.9 400 256C400 194.1 349.9 144 288 144z"]},l8={prefix:"fas",iconName:"money-bill-wave",icon:[576,512,[],"f53a","M48.66 79.13C128.4 100.9 208.2 80.59 288 60.25C375 38.08 462 15.9 549 48.38C565.9 54.69 576 71.62 576 89.66V399.5C576 423.4 550.4 439.2 527.3 432.9C447.6 411.1 367.8 431.4 288 451.7C200.1 473.9 113.1 496.1 26.97 463.6C10.06 457.3 0 440.4 0 422.3V112.5C0 88.59 25.61 72.83 48.66 79.13L48.66 79.13zM287.1 352C332.2 352 368 309 368 255.1C368 202.1 332.2 159.1 287.1 159.1C243.8 159.1 207.1 202.1 207.1 255.1C207.1 309 243.8 352 287.1 352zM63.1 416H127.1C127.1 380.7 99.35 352 63.1 352V416zM63.1 143.1V207.1C99.35 207.1 127.1 179.3 127.1 143.1H63.1zM512 303.1C476.7 303.1 448 332.7 448 368H512V303.1zM448 95.1C448 131.3 476.7 159.1 512 159.1V95.1H448z"]},Cu={prefix:"fas",iconName:"network-wired",icon:[640,512,[],"f6ff","M400 0C426.5 0 448 21.49 448 48V144C448 170.5 426.5 192 400 192H352V224H608C625.7 224 640 238.3 640 256C640 273.7 625.7 288 608 288H512V320H560C586.5 320 608 341.5 608 368V464C608 490.5 586.5 512 560 512H400C373.5 512 352 490.5 352 464V368C352 341.5 373.5 320 400 320H448V288H192V320H240C266.5 320 288 341.5 288 368V464C288 490.5 266.5 512 240 512H80C53.49 512 32 490.5 32 464V368C32 341.5 53.49 320 80 320H128V288H32C14.33 288 0 273.7 0 256C0 238.3 14.33 224 32 224H288V192H240C213.5 192 192 170.5 192 144V48C192 21.49 213.5 0 240 0H400zM256 64V128H384V64H256zM224 448V384H96V448H224zM416 384V448H544V384H416z"]},yu={prefix:"fas",iconName:"paintbrush",icon:[576,512,[128396,"paint-brush"],"f1fc","M224 263.3C224.2 233.3 238.4 205.2 262.4 187.2L499.1 9.605C517.7-4.353 543.6-2.965 560.7 12.9C577.7 28.76 580.8 54.54 568.2 74.07L406.5 324.1C391.3 347.7 366.6 363.2 339.3 367.1L224 263.3zM320 400C320 461.9 269.9 512 208 512H64C46.33 512 32 497.7 32 480C32 462.3 46.33 448 64 448H68.81C86.44 448 98.4 429.1 96.59 411.6C96.2 407.8 96 403.9 96 400C96 339.6 143.9 290.3 203.7 288.1L319.8 392.5C319.9 394.1 320 397.5 320 400V400z"]},j7={prefix:"fas",iconName:"people-group",icon:[640,512,[],"e533","M184 88C184 118.9 158.9 144 128 144C97.07 144 72 118.9 72 88C72 57.07 97.07 32 128 32C158.9 32 184 57.07 184 88zM208.4 196.3C178.7 222.7 160 261.2 160 304C160 338.3 171.1 369.8 192 394.5V416C192 433.7 177.7 448 160 448H96C78.33 448 64 433.7 64 416V389.2C26.16 371.2 0 332.7 0 288C0 226.1 50.14 176 112 176H144C167.1 176 190.2 183.5 208.4 196.3V196.3zM64 245.7C54.04 256.9 48 271.8 48 288C48 304.2 54.04 319.1 64 330.3V245.7zM448 416V394.5C468 369.8 480 338.3 480 304C480 261.2 461.3 222.7 431.6 196.3C449.8 183.5 472 176 496 176H528C589.9 176 640 226.1 640 288C640 332.7 613.8 371.2 576 389.2V416C576 433.7 561.7 448 544 448H480C462.3 448 448 433.7 448 416zM576 330.3C585.1 319.1 592 304.2 592 288C592 271.8 585.1 256.9 576 245.7V330.3zM568 88C568 118.9 542.9 144 512 144C481.1 144 456 118.9 456 88C456 57.07 481.1 32 512 32C542.9 32 568 57.07 568 88zM256 96C256 60.65 284.7 32 320 32C355.3 32 384 60.65 384 96C384 131.3 355.3 160 320 160C284.7 160 256 131.3 256 96zM448 304C448 348.7 421.8 387.2 384 405.2V448C384 465.7 369.7 480 352 480H288C270.3 480 256 465.7 256 448V405.2C218.2 387.2 192 348.7 192 304C192 242.1 242.1 192 304 192H336C397.9 192 448 242.1 448 304zM256 346.3V261.7C246 272.9 240 287.8 240 304C240 320.2 246 335.1 256 346.3zM384 261.7V346.3C393.1 335 400 320.2 400 304C400 287.8 393.1 272.9 384 261.7z"]},T8={prefix:"fas",iconName:"percent",icon:[384,512,[62101,62785,"percentage"],"25","M374.6 73.39c-12.5-12.5-32.75-12.5-45.25 0l-320 320c-12.5 12.5-12.5 32.75 0 45.25C15.63 444.9 23.81 448 32 448s16.38-3.125 22.62-9.375l320-320C387.1 106.1 387.1 85.89 374.6 73.39zM64 192c35.3 0 64-28.72 64-64S99.3 64.01 64 64.01S0 92.73 0 128S28.7 192 64 192zM320 320c-35.3 0-64 28.72-64 64s28.7 64 64 64s64-28.72 64-64S355.3 320 320 320z"]},X8={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M432 256c0 17.69-14.33 32.01-32 32.01H256v144c0 17.69-14.33 31.99-32 31.99s-32-14.3-32-31.99v-144H48c-17.67 0-32-14.32-32-32.01s14.33-31.99 32-31.99H192v-144c0-17.69 14.33-32.01 32-32.01s32 14.32 32 32.01v144h144C417.7 224 432 238.3 432 256z"]},_i={prefix:"fas",iconName:"question",icon:[320,512,[10067,10068,61736],"3f","M204.3 32.01H96c-52.94 0-96 43.06-96 96c0 17.67 14.31 31.1 32 31.1s32-14.32 32-31.1c0-17.64 14.34-32 32-32h108.3C232.8 96.01 256 119.2 256 147.8c0 19.72-10.97 37.47-30.5 47.33L127.8 252.4C117.1 258.2 112 268.7 112 280v40c0 17.67 14.31 31.99 32 31.99s32-14.32 32-31.99V298.3L256 251.3c39.47-19.75 64-59.42 64-103.5C320 83.95 268.1 32.01 204.3 32.01zM144 400c-22.09 0-40 17.91-40 40s17.91 39.1 40 39.1s40-17.9 40-39.1S166.1 400 144 400z"]},jo={prefix:"fas",iconName:"receipt",icon:[384,512,[129534],"f543","M13.97 2.196C22.49-1.72 32.5-.3214 39.62 5.778L80 40.39L120.4 5.778C129.4-1.926 142.6-1.926 151.6 5.778L192 40.39L232.4 5.778C241.4-1.926 254.6-1.926 263.6 5.778L304 40.39L344.4 5.778C351.5-.3214 361.5-1.72 370 2.196C378.5 6.113 384 14.63 384 24V488C384 497.4 378.5 505.9 370 509.8C361.5 513.7 351.5 512.3 344.4 506.2L304 471.6L263.6 506.2C254.6 513.9 241.4 513.9 232.4 506.2L192 471.6L151.6 506.2C142.6 513.9 129.4 513.9 120.4 506.2L80 471.6L39.62 506.2C32.5 512.3 22.49 513.7 13.97 509.8C5.456 505.9 0 497.4 0 488V24C0 14.63 5.456 6.112 13.97 2.196V2.196zM96 144C87.16 144 80 151.2 80 160C80 168.8 87.16 176 96 176H288C296.8 176 304 168.8 304 160C304 151.2 296.8 144 288 144H96zM96 368H288C296.8 368 304 360.8 304 352C304 343.2 296.8 336 288 336H96C87.16 336 80 343.2 80 352C80 360.8 87.16 368 96 368zM96 240C87.16 240 80 247.2 80 256C80 264.8 87.16 272 96 272H288C296.8 272 304 264.8 304 256C304 247.2 296.8 240 288 240H96z"]},V9={prefix:"fas",iconName:"right-left",icon:[512,512,["exchange-alt"],"f362","M32 160h319.9l.0791 72c0 9.547 5.652 18.19 14.41 22c8.754 3.812 18.93 2.078 25.93-4.406l112-104c10.24-9.5 10.24-25.69 0-35.19l-112-104c-6.992-6.484-17.17-8.217-25.93-4.408c-8.758 3.816-14.41 12.46-14.41 22L351.9 96H32C14.31 96 0 110.3 0 127.1S14.31 160 32 160zM480 352H160.1L160 279.1c0-9.547-5.652-18.19-14.41-22C136.9 254.2 126.7 255.9 119.7 262.4l-112 104c-10.24 9.5-10.24 25.69 0 35.19l112 104c6.992 6.484 17.17 8.219 25.93 4.406C154.4 506.2 160 497.5 160 488L160.1 416H480c17.69 0 32-14.31 32-32S497.7 352 480 352z"]},G9={prefix:"fas",iconName:"route",icon:[512,512,[],"f4d7","M320 256C302.3 256 288 270.3 288 288C288 305.7 302.3 320 320 320H416C469 320 512 362.1 512 416C512 469 469 512 416 512H139.6C148.3 502.1 158.9 489.4 169.6 475.2C175.9 466.8 182.4 457.6 188.6 448H416C433.7 448 448 433.7 448 416C448 398.3 433.7 384 416 384H320C266.1 384 223.1 341 223.1 288C223.1 234.1 266.1 192 320 192H362.1C340.2 161.5 320 125.4 320 96C320 42.98 362.1 0 416 0C469 0 512 42.98 512 96C512 160 416 256 416 256H320zM416 128C433.7 128 448 113.7 448 96C448 78.33 433.7 64 416 64C398.3 64 384 78.33 384 96C384 113.7 398.3 128 416 128zM118.3 487.8C118.1 488 117.9 488.2 117.7 488.4C113.4 493.4 109.5 497.7 106.3 501.2C105.9 501.6 105.5 502 105.2 502.4C99.5 508.5 96 512 96 512C96 512 0 416 0 352C0 298.1 42.98 255.1 96 255.1C149 255.1 192 298.1 192 352C192 381.4 171.8 417.5 149.9 448C138.1 463.2 127.7 476.9 118.3 487.8L118.3 487.8zM95.1 384C113.7 384 127.1 369.7 127.1 352C127.1 334.3 113.7 320 95.1 320C78.33 320 63.1 334.3 63.1 352C63.1 369.7 78.33 384 95.1 384z"]},Z9={prefix:"fas",iconName:"scale-balanced",icon:[640,512,[9878,"balance-scale"],"f24e","M554.9 154.5c-17.62-35.25-68.12-35.38-85.87 0c-87 174.3-84.1 165.9-84.1 181.5c0 44.13 57.25 80 128 80s127.1-35.88 127.1-80C639.1 319.9 641.4 327.3 554.9 154.5zM439.1 320l71.96-144l72.17 144H439.1zM256 336c0-16.12 1.375-8.75-85.12-181.5c-17.62-35.25-68.12-35.38-85.87 0c-87 174.3-84.1 165.9-84.1 181.5c0 44.13 57.25 80 127.1 80S256 380.1 256 336zM127.9 176L200.1 320H55.96L127.9 176zM495.1 448h-143.1V153.3C375.5 143 393.1 121.8 398.4 96h113.6c17.67 0 31.1-14.33 31.1-32s-14.33-32-31.1-32h-128.4c-14.62-19.38-37.5-32-63.62-32S270.1 12.62 256.4 32H128C110.3 32 96 46.33 96 64S110.3 96 127.1 96h113.6c5.25 25.75 22.87 47 46.37 57.25V448H144c-26.51 0-48.01 21.49-48.01 48c0 8.836 7.165 16 16 16h416c8.836 0 16-7.164 16-16C544 469.5 522.5 448 495.1 448z"]},q9={prefix:"fas",iconName:"screwdriver-wrench",icon:[512,512,["tools"],"f7d9","M331.8 224.1c28.29 0 54.88 10.99 74.86 30.97l19.59 19.59c40.01-17.74 71.25-53.3 81.62-96.65c5.725-23.92 5.34-47.08 .2148-68.4c-2.613-10.88-16.43-14.51-24.34-6.604l-68.9 68.9h-75.6V97.2l68.9-68.9c7.912-7.912 4.275-21.73-6.604-24.34c-21.32-5.125-44.48-5.51-68.4 .2148c-55.3 13.23-98.39 60.22-107.2 116.4C224.5 128.9 224.2 137 224.3 145l82.78 82.86C315.2 225.1 323.5 224.1 331.8 224.1zM384 278.6c-23.16-23.16-57.57-27.57-85.39-13.9L191.1 158L191.1 95.99l-127.1-95.99L0 63.1l96 127.1l62.04 .0077l106.7 106.6c-13.67 27.82-9.251 62.23 13.91 85.39l117 117.1c14.62 14.5 38.21 14.5 52.71-.0016l52.75-52.75c14.5-14.5 14.5-38.08-.0016-52.71L384 278.6zM227.9 307L168.7 247.9l-148.9 148.9c-26.37 26.37-26.37 69.08 0 95.45C32.96 505.4 50.21 512 67.5 512s34.54-6.592 47.72-19.78l119.1-119.1C225.5 352.3 222.6 329.4 227.9 307zM64 472c-13.25 0-24-10.75-24-24c0-13.26 10.75-24 24-24S88 434.7 88 448C88 461.3 77.25 472 64 472z"]},tg={prefix:"fas",iconName:"server",icon:[512,512,[],"f233","M480 288H32c-17.62 0-32 14.38-32 32v128c0 17.62 14.38 32 32 32h448c17.62 0 32-14.38 32-32v-128C512 302.4 497.6 288 480 288zM352 408c-13.25 0-24-10.75-24-24s10.75-24 24-24s24 10.75 24 24S365.3 408 352 408zM416 408c-13.25 0-24-10.75-24-24s10.75-24 24-24s24 10.75 24 24S429.3 408 416 408zM480 32H32C14.38 32 0 46.38 0 64v128c0 17.62 14.38 32 32 32h448c17.62 0 32-14.38 32-32V64C512 46.38 497.6 32 480 32zM352 152c-13.25 0-24-10.75-24-24S338.8 104 352 104S376 114.8 376 128S365.3 152 352 152zM416 152c-13.25 0-24-10.75-24-24S402.8 104 416 104S440 114.8 440 128S429.3 152 416 152z"]},fg={prefix:"fas",iconName:"signs-post",icon:[512,512,["map-signs"],"f277","M223.1 32C223.1 14.33 238.3 0 255.1 0C273.7 0 288 14.33 288 32H441.4C445.6 32 449.7 33.69 452.7 36.69L500.7 84.69C506.9 90.93 506.9 101.1 500.7 107.3L452.7 155.3C449.7 158.3 445.6 160 441.4 160H63.1C46.33 160 31.1 145.7 31.1 128V64C31.1 46.33 46.33 32 63.1 32L223.1 32zM480 320C480 337.7 465.7 352 448 352H70.63C66.38 352 62.31 350.3 59.31 347.3L11.31 299.3C5.065 293.1 5.065 282.9 11.31 276.7L59.31 228.7C62.31 225.7 66.38 223.1 70.63 223.1H223.1V191.1H288V223.1H448C465.7 223.1 480 238.3 480 255.1V320zM255.1 512C238.3 512 223.1 497.7 223.1 480V384H288V480C288 497.7 273.7 512 255.1 512z"]},lC={prefix:"fas",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M506.3 417l-213.3-364c-16.33-28-57.54-28-73.98 0l-213.2 364C-10.59 444.9 9.849 480 42.74 480h426.6C502.1 480 522.6 445 506.3 417zM232 168c0-13.25 10.75-24 24-24S280 154.8 280 168v128c0 13.25-10.75 24-23.1 24S232 309.3 232 296V168zM256 416c-17.36 0-31.44-14.08-31.44-31.44c0-17.36 14.07-31.44 31.44-31.44s31.44 14.08 31.44 31.44C287.4 401.9 273.4 416 256 416z"]},gC={prefix:"fas",iconName:"unlock-keyhole",icon:[448,512,["unlock-alt"],"f13e","M224 64C179.8 64 144 99.82 144 144V192H384C419.3 192 448 220.7 448 256V448C448 483.3 419.3 512 384 512H64C28.65 512 0 483.3 0 448V256C0 220.7 28.65 192 64 192H80V144C80 64.47 144.5 0 224 0C281.5 0 331 33.69 354.1 82.27C361.7 98.23 354.9 117.3 338.1 124.9C322.1 132.5 303.9 125.7 296.3 109.7C283.4 82.63 255.9 64 224 64H224zM256 384C273.7 384 288 369.7 288 352C288 334.3 273.7 320 256 320H192C174.3 320 160 334.3 160 352C160 369.7 174.3 384 192 384H256z"]},xC={prefix:"fas",iconName:"user-check",icon:[640,512,[],"f4fc","M274.7 304H173.3C77.61 304 0 381.6 0 477.3C0 496.5 15.52 512 34.66 512H413.3C432.5 512 448 496.5 448 477.3C448 381.6 370.4 304 274.7 304zM224 256c70.7 0 128-57.31 128-128S294.7 0 224 0C153.3 0 96 57.31 96 128S153.3 256 224 256zM632.3 134.4c-9.703-9-24.91-8.453-33.92 1.266l-87.05 93.75l-38.39-38.39c-9.375-9.375-24.56-9.375-33.94 0s-9.375 24.56 0 33.94l56 56C499.5 285.5 505.6 288 512 288h.4375c6.531-.125 12.72-2.891 17.16-7.672l104-112C642.6 158.6 642 143.4 632.3 134.4z"]},MC={prefix:"fas",iconName:"user-clock",icon:[640,512,[],"f4fd","M496 224c-79.63 0-144 64.38-144 144s64.38 144 144 144s144-64.38 144-144S575.6 224 496 224zM544 384h-54.25C484.4 384 480 379.6 480 374.3V304c0-8.836 7.164-16 16-16c8.838 0 16 7.164 16 16v48h32c8.838 0 16 7.164 16 15.1S552.8 384 544 384zM224 256c70.7 0 128-57.31 128-128S294.7 0 224 0C153.3 0 96 57.31 96 128S153.3 256 224 256zM320 368c0-19.3 3.221-37.82 8.961-55.2C311.9 307.2 293.6 304 274.7 304H173.3C77.61 304 0 381.7 0 477.4C0 496.5 15.52 512 34.66 512H395C349.7 480.2 320 427.6 320 368z"]},SC={prefix:"fas",iconName:"user-gear",icon:[640,512,["user-cog"],"f4fe","M425.1 482.6c-2.303-1.25-4.572-2.559-6.809-3.93l-7.818 4.493c-6.002 3.504-12.83 5.352-19.75 5.352c-10.71 0-21.13-4.492-28.97-12.75c-18.41-20.09-32.29-44.15-40.22-69.9c-5.352-18.06 2.343-36.87 17.83-45.24l8.018-4.669c-.0664-2.621-.0664-5.242 0-7.859l-7.655-4.461c-12.3-6.953-19.4-19.66-19.64-33.38C305.6 306.3 290.4 304 274.7 304H173.3C77.61 304 0 381.7 0 477.4C0 496.5 15.52 512 34.66 512H413.3c5.727 0 10.9-1.727 15.66-4.188c-2.271-4.984-3.86-10.3-3.86-16.06V482.6zM224 256c70.7 0 128-57.31 128-128S294.7 0 224 0C153.3 0 96 57.31 96 128S153.3 256 224 256zM610.5 373.3c2.625-14 2.625-28.5 0-42.5l25.75-15c3-1.625 4.375-5.125 3.375-8.5c-6.75-21.5-18.25-41.13-33.25-57.38c-2.25-2.5-6-3.125-9-1.375l-25.75 14.88c-10.88-9.25-23.38-16.5-36.88-21.25V212.3c0-3.375-2.5-6.375-5.75-7c-22.25-5-45-4.875-66.25 0c-3.25 .625-5.625 3.625-5.625 7v29.88c-13.5 4.75-26 12-36.88 21.25L394.4 248.5c-2.875-1.75-6.625-1.125-9 1.375c-15 16.25-26.5 35.88-33.13 57.38c-1 3.375 .3751 6.875 3.25 8.5l25.75 15c-2.5 14-2.5 28.5 0 42.5l-25.75 15c-3 1.625-4.25 5.125-3.25 8.5c6.625 21.5 18.13 41 33.13 57.38c2.375 2.5 6 3.125 9 1.375l25.88-14.88c10.88 9.25 23.38 16.5 36.88 21.25v29.88c0 3.375 2.375 6.375 5.625 7c22.38 5 45 4.875 66.25 0c3.25-.625 5.75-3.625 5.75-7v-29.88c13.5-4.75 26-12 36.88-21.25l25.75 14.88c2.875 1.75 6.75 1.125 9-1.375c15-16.25 26.5-35.88 33.25-57.38c1-3.375-.3751-6.875-3.375-8.5L610.5 373.3zM496 400.5c-26.75 0-48.5-21.75-48.5-48.5s21.75-48.5 48.5-48.5c26.75 0 48.5 21.75 48.5 48.5S522.8 400.5 496 400.5z"]},DC={prefix:"fas",iconName:"user-lock",icon:[640,512,[],"f502","M592 288H576V212.7c0-41.84-30.03-80.04-71.66-84.27C456.5 123.6 416 161.1 416 208V288h-16C373.6 288 352 309.6 352 336v128c0 26.4 21.6 48 48 48h192c26.4 0 48-21.6 48-48v-128C640 309.6 618.4 288 592 288zM496 432c-17.62 0-32-14.38-32-32s14.38-32 32-32s32 14.38 32 32S513.6 432 496 432zM528 288h-64V208c0-17.62 14.38-32 32-32s32 14.38 32 32V288zM224 256c70.7 0 128-57.31 128-128S294.7 0 224 0C153.3 0 96 57.31 96 128S153.3 256 224 256zM320 336c0-8.672 1.738-16.87 4.303-24.7C308.6 306.6 291.9 304 274.7 304H173.3C77.61 304 0 381.7 0 477.4C0 496.5 15.52 512 34.66 512h301.7C326.3 498.6 320 482.1 320 464V336z"]},kC={prefix:"fas",iconName:"users",icon:[640,512,[],"f0c0","M319.9 320c57.41 0 103.1-46.56 103.1-104c0-57.44-46.54-104-103.1-104c-57.41 0-103.1 46.56-103.1 104C215.9 273.4 262.5 320 319.9 320zM369.9 352H270.1C191.6 352 128 411.7 128 485.3C128 500.1 140.7 512 156.4 512h327.2C499.3 512 512 500.1 512 485.3C512 411.7 448.4 352 369.9 352zM512 160c44.18 0 80-35.82 80-80S556.2 0 512 0c-44.18 0-80 35.82-80 80S467.8 160 512 160zM183.9 216c0-5.449 .9824-10.63 1.609-15.91C174.6 194.1 162.6 192 149.9 192H88.08C39.44 192 0 233.8 0 285.3C0 295.6 7.887 304 17.62 304h199.5C196.7 280.2 183.9 249.7 183.9 216zM128 160c44.18 0 80-35.82 80-80S172.2 0 128 0C83.82 0 48 35.82 48 80S83.82 160 128 160zM551.9 192h-61.84c-12.8 0-24.88 3.037-35.86 8.24C454.8 205.5 455.8 210.6 455.8 216c0 33.71-12.78 64.21-33.16 88h199.7C632.1 304 640 295.6 640 285.3C640 233.8 600.6 192 551.9 192z"]},BC={prefix:"fas",iconName:"wallet",icon:[512,512,[],"f555","M448 32C465.7 32 480 46.33 480 64C480 81.67 465.7 96 448 96H80C71.16 96 64 103.2 64 112C64 120.8 71.16 128 80 128H448C483.3 128 512 156.7 512 192V416C512 451.3 483.3 480 448 480H64C28.65 480 0 451.3 0 416V96C0 60.65 28.65 32 64 32H448zM416 336C433.7 336 448 321.7 448 304C448 286.3 433.7 272 416 272C398.3 272 384 286.3 384 304C384 321.7 398.3 336 416 336z"]},KC={prefix:"fas",iconName:"window-restore",icon:[512,512,[],"f2d2","M432 64H208C199.2 64 192 71.16 192 80V96H128V80C128 35.82 163.8 0 208 0H432C476.2 0 512 35.82 512 80V304C512 348.2 476.2 384 432 384H416V320H432C440.8 320 448 312.8 448 304V80C448 71.16 440.8 64 432 64zM0 192C0 156.7 28.65 128 64 128H320C355.3 128 384 156.7 384 192V448C384 483.3 355.3 512 320 512H64C28.65 512 0 483.3 0 448V192zM96 256H288C305.7 256 320 241.7 320 224C320 206.3 305.7 192 288 192H96C78.33 192 64 206.3 64 224C64 241.7 78.33 256 96 256z"]},QC={prefix:"fas",iconName:"xmark",icon:[320,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M310.6 361.4c12.5 12.5 12.5 32.75 0 45.25C304.4 412.9 296.2 416 288 416s-16.38-3.125-22.62-9.375L160 301.3L54.63 406.6C48.38 412.9 40.19 416 32 416S15.63 412.9 9.375 406.6c-12.5-12.5-12.5-32.75 0-45.25l105.4-105.4L9.375 150.6c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L160 210.8l105.4-105.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-105.4 105.4L310.6 361.4z"]}},429:(He,j,p)=>{"use strict";p.d(j,{$2:()=>di,$A:()=>V,$W:()=>W,BL:()=>_,CN:()=>y,CX:()=>d,EG:()=>A,EK:()=>se,El:()=>Q,HI:()=>me,HJ:()=>T,HW:()=>Gt,I8:()=>M,JK:()=>ve,Lu:()=>E,Ly:()=>ot,My:()=>Zt,Ni:()=>u,Nr:()=>ke,OG:()=>n,QJ:()=>fe,RX:()=>D,Rd:()=>Ee,SN:()=>P,Sf:()=>g,TM:()=>t,UH:()=>Ie,UR:()=>c,VD:()=>ce,WM:()=>ye,WO:()=>r,Wi:()=>Z,X3:()=>q,YP:()=>te,YX:()=>I,Z8:()=>ne,ZH:()=>ee,Zu:()=>xe,_9:()=>Tt,_E:()=>z,aL:()=>ze,as:()=>C,bP:()=>gt,cQ:()=>J,d7:()=>lt,dh:()=>G,e9:()=>ht,eM:()=>Ae,en:()=>hi,g3:()=>k,g6:()=>be,i9:()=>ue,it:()=>_t,kL:()=>h,n7:()=>R,oF:()=>vt,oV:()=>x,oo:()=>a,p7:()=>Qe,pW:()=>S,pc:()=>ei,u0:()=>$,uT:()=>Le,v_:()=>H,xH:()=>b,xS:()=>w,yl:()=>Te,z:()=>ie});var e=p(5620),i=p(7731);const u=(0,e.PH)(i.AB.UPDATE_API_CALL_STATUS_CLN,(0,e.Ky)()),b=(0,e.PH)(i.AB.RESET_CLN_STORE,(0,e.Ky)()),a=(0,e.PH)(i.AB.SET_CHILD_NODE_SETTINGS_CLN,(0,e.Ky)()),y=(0,e.PH)(i.AB.FETCH_INFO_CLN,(0,e.Ky)()),d=(0,e.PH)(i.AB.SET_INFO_CLN,(0,e.Ky)()),P=(0,e.PH)(i.AB.FETCH_FEES_CLN),D=(0,e.PH)(i.AB.SET_FEES_CLN,(0,e.Ky)()),T=(0,e.PH)(i.AB.FETCH_FEE_RATES_CLN,(0,e.Ky)()),M=(0,e.PH)(i.AB.SET_FEE_RATES_CLN,(0,e.Ky)()),A=(0,e.PH)(i.AB.FETCH_BALANCE_CLN),E=(0,e.PH)(i.AB.SET_BALANCE_CLN,(0,e.Ky)()),k=(0,e.PH)(i.AB.FETCH_LOCAL_REMOTE_BALANCE_CLN),w=(0,e.PH)(i.AB.SET_LOCAL_REMOTE_BALANCE_CLN,(0,e.Ky)()),z=(0,e.PH)(i.AB.GET_NEW_ADDRESS_CLN,(0,e.Ky)()),W=((0,e.PH)(i.AB.SET_NEW_ADDRESS_CLN,(0,e.Ky)()),(0,e.PH)(i.AB.FETCH_PEERS_CLN)),ne=(0,e.PH)(i.AB.SET_PEERS_CLN,(0,e.Ky)()),Q=(0,e.PH)(i.AB.SAVE_NEW_PEER_CLN,(0,e.Ky)()),q=((0,e.PH)(i.AB.NEWLY_ADDED_PEER_CLN,(0,e.Ky)()),(0,e.PH)(i.AB.ADD_PEER_CLN,(0,e.Ky)())),ie=(0,e.PH)(i.AB.DETACH_PEER_CLN,(0,e.Ky)()),se=(0,e.PH)(i.AB.REMOVE_PEER_CLN,(0,e.Ky)()),J=(0,e.PH)(i.AB.FETCH_PAYMENTS_CLN),me=(0,e.PH)(i.AB.SET_PAYMENTS_CLN,(0,e.Ky)()),x=(0,e.PH)(i.AB.SEND_PAYMENT_CLN,(0,e.Ky)()),t=(0,e.PH)(i.AB.SEND_PAYMENT_STATUS_CLN,(0,e.Ky)()),r=(0,e.PH)(i.AB.GET_QUERY_ROUTES_CLN,(0,e.Ky)()),h=(0,e.PH)(i.AB.SET_QUERY_ROUTES_CLN,(0,e.Ky)()),c=(0,e.PH)(i.AB.FETCH_CHANNELS_CLN),C=(0,e.PH)(i.AB.SET_CHANNELS_CLN,(0,e.Ky)()),S=(0,e.PH)(i.AB.UPDATE_CHANNEL_CLN,(0,e.Ky)()),I=(0,e.PH)(i.AB.SAVE_NEW_CHANNEL_CLN,(0,e.Ky)()),_=(0,e.PH)(i.AB.CLOSE_CHANNEL_CLN,(0,e.Ky)()),n=(0,e.PH)(i.AB.REMOVE_CHANNEL_CLN,(0,e.Ky)()),g=(0,e.PH)(i.AB.PEER_LOOKUP_CLN,(0,e.Ky)()),V=(0,e.PH)(i.AB.CHANNEL_LOOKUP_CLN,(0,e.Ky)()),R=(0,e.PH)(i.AB.INVOICE_LOOKUP_CLN,(0,e.Ky)()),H=(0,e.PH)(i.AB.SET_LOOKUP_CLN,(0,e.Ky)()),$=(0,e.PH)(i.AB.GET_FORWARDING_HISTORY_CLN,(0,e.Ky)()),fe=(0,e.PH)(i.AB.SET_FORWARDING_HISTORY_CLN,(0,e.Ky)()),ye=(0,e.PH)(i.AB.FETCH_INVOICES_CLN,(0,e.Ky)()),ke=(0,e.PH)(i.AB.SET_INVOICES_CLN,(0,e.Ky)()),Ee=(0,e.PH)(i.AB.SAVE_NEW_INVOICE_CLN,(0,e.Ky)()),te=(0,e.PH)(i.AB.ADD_INVOICE_CLN,(0,e.Ky)()),ze=(0,e.PH)(i.AB.UPDATE_INVOICE_CLN,(0,e.Ky)()),be=(0,e.PH)(i.AB.DELETE_EXPIRED_INVOICE_CLN,(0,e.Ky)()),Z=(0,e.PH)(i.AB.SET_CHANNEL_TRANSACTION_CLN,(0,e.Ky)()),ot=((0,e.PH)(i.AB.SET_CHANNEL_TRANSACTION_RES_CLN,(0,e.Ky)()),(0,e.PH)(i.AB.FETCH_UTXOS_CLN)),Ie=(0,e.PH)(i.AB.SET_UTXOS_CLN,(0,e.Ky)()),Ae=(0,e.PH)(i.AB.FETCH_OFFER_INVOICE_CLN,(0,e.Ky)()),ce=(0,e.PH)(i.AB.SET_OFFER_INVOICE_CLN,(0,e.Ky)()),Te=(0,e.PH)(i.AB.FETCH_OFFERS_CLN),xe=(0,e.PH)(i.AB.SET_OFFERS_CLN,(0,e.Ky)()),G=(0,e.PH)(i.AB.SAVE_NEW_OFFER_CLN,(0,e.Ky)()),ee=(0,e.PH)(i.AB.ADD_OFFER_CLN,(0,e.Ky)()),ue=(0,e.PH)(i.AB.DISABLE_OFFER_CLN,(0,e.Ky)()),ve=(0,e.PH)(i.AB.UPDATE_OFFER_CLN,(0,e.Ky)()),Le=(0,e.PH)(i.AB.FETCH_OFFER_BOOKMARKS_CLN),lt=(0,e.PH)(i.AB.SET_OFFER_BOOKMARKS_CLN,(0,e.Ky)()),ht=(0,e.PH)(i.AB.ADD_UPDATE_OFFER_BOOKMARK_CLN,(0,e.Ky)()),Tt=(0,e.PH)(i.AB.DELETE_OFFER_BOOKMARK_CLN,(0,e.Ky)()),hi=(0,e.PH)(i.AB.REMOVE_OFFER_BOOKMARK_CLN,(0,e.Ky)()),Gt=((0,e.PH)(i.AB.FETCH_SWAPS_CLN),(0,e.PH)(i.AB.SET_SWAPS_CLN,(0,e.Ky)())),di=(0,e.PH)(i.AB.FETCH_SWAP_PEERS_CLN),vt=(0,e.PH)(i.AB.SET_SWAP_PEERS_CLN,(0,e.Ky)()),gt=((0,e.PH)(i.AB.FETCH_SWAP_REQUESTS_CLN),(0,e.PH)(i.AB.SET_SWAP_REQUESTS_CLN,(0,e.Ky)())),Qe=(0,e.PH)(i.AB.SWAPOUT_CLN,(0,e.Ky)()),_t=(0,e.PH)(i.AB.ADD_SWAPOUT_CLN,(0,e.Ky)()),ei=(0,e.PH)(i.AB.SWAPIN_CLN,(0,e.Ky)()),Zt=(0,e.PH)(i.AB.ADD_SWAPIN_CLN,(0,e.Ky)())},4947:(He,j,p)=>{"use strict";p.d(j,{J:()=>J});var e=p(6642),i=p(7579),u=p(9646),b=p(5577),a=p(2722),y=p(4004),d=p(262),P=p(2340),D=p(1786),T=p(5566),M=p(7731),A=p(7861),E=p(429),k=p(9828),w=p(1462),z=p(5e3),U=p(8138),W=p(5620),ne=p(5986),Q=p(62),le=p(5043),q=p(1402),ie=p(7998),se=p(9808);let J=(()=>{class me{constructor(t,r,h,c,C,S,I,_,n){this.actions=t,this.httpClient=r,this.store=h,this.sessionService=c,this.commonService=C,this.logger=S,this.router=I,this.wsService=_,this.location=n,this.CHILD_API_URL=P.T5+"/cln",this.flgInitialized=!1,this.unSubs=[new i.x,new i.x,new i.x],this.infoFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.FETCH_INFO_CLN),(0,b.z)(g=>(this.flgInitialized=!1,this.store.dispatch((0,A.lC)({payload:this.CHILD_API_URL})),this.store.dispatch((0,E.Ni)({payload:{action:"FetchInfo",status:M.Bn.INITIATED}})),this.store.dispatch((0,A.ac)({payload:M.m6.GET_NODE_INFO})),this.httpClient.get(this.CHILD_API_URL+P.NZ.GETINFO_API).pipe((0,a.R)(this.actions.pipe((0,e.l4)(M.pg.SET_SELECTED_NODE))),(0,y.U)(V=>(this.logger.info(V),V.chains&&V.chains.length&&V.chains[0]&&"object"==typeof V.chains[0]&&V.chains[0].hasOwnProperty("chain")&&(null==V?void 0:V.chains[0].chain)&&(null==V?void 0:V.chains[0].chain.toLowerCase().indexOf("bitcoin"))<0?(this.store.dispatch((0,E.Ni)({payload:{action:"FetchInfo",status:M.Bn.COMPLETED}})),this.store.dispatch((0,A.uO)({payload:M.m6.GET_NODE_INFO})),this.store.dispatch((0,A.ts)()),setTimeout(()=>{this.store.dispatch((0,A.qR)({payload:{data:{type:M.n_.ERROR,alertTitle:"Shitcoin Found",titleMessage:"Sorry Not Sorry, RTL is Bitcoin Only!"}}}))},500),{type:M.pg.LOGOUT}):(this.initializeRemainingData(V,g.payload.loadPage),this.store.dispatch((0,E.Ni)({payload:{action:"FetchInfo",status:M.Bn.COMPLETED}})),this.store.dispatch((0,A.uO)({payload:M.m6.GET_NODE_INFO})),{type:M.AB.SET_INFO_CLN,payload:V||{}}))),(0,d.K)(V=>{const R=this.commonService.extractErrorCode(V),H="ETIMEDOUT"===R?"Unable to Connect to Core Lightning Server.":this.commonService.extractErrorMessage(V);return this.router.navigate(["/error"],{state:{errorCode:R,errorMessage:H}}),this.handleErrorWithoutAlert("FetchInfo",M.m6.GET_NODE_INFO,"Fetching Node Info Failed.",{status:R,error:H}),(0,u.of)({type:M.pg.VOID})})))))),this.fetchFeesCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.FETCH_FEES_CLN),(0,b.z)(()=>(this.store.dispatch((0,E.Ni)({payload:{action:"FetchFees",status:M.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.FEES_API))),(0,y.U)(g=>(this.logger.info(g),this.store.dispatch((0,E.Ni)({payload:{action:"FetchFees",status:M.Bn.COMPLETED}})),{type:M.AB.SET_FEES_CLN,payload:g||{}})),(0,d.K)(g=>(this.handleErrorWithoutAlert("FetchFees",M.m6.NO_SPINNER,"Fetching Fees Failed.",g),(0,u.of)({type:M.pg.VOID}))))),this.fetchFeeRatesCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.FETCH_FEE_RATES_CLN),(0,b.z)(g=>(this.store.dispatch((0,E.Ni)({payload:{action:"FetchFeeRates"+g.payload,status:M.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.NETWORK_API+"/feeRates/"+g.payload).pipe((0,y.U)(V=>(this.logger.info(V),this.store.dispatch((0,E.Ni)({payload:{action:"FetchFeeRates"+g.payload,status:M.Bn.COMPLETED}})),{type:M.AB.SET_FEE_RATES_CLN,payload:V||{}})),(0,d.K)(V=>(this.handleErrorWithoutAlert("FetchFeeRates"+g.payload,M.m6.NO_SPINNER,"Fetching Fee Rates Failed.",V),(0,u.of)({type:M.pg.VOID})))))))),this.fetchBalanceCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.FETCH_BALANCE_CLN),(0,b.z)(()=>(this.store.dispatch((0,E.Ni)({payload:{action:"FetchBalance",status:M.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.BALANCE_API))),(0,y.U)(g=>(this.logger.info(g),this.store.dispatch((0,E.Ni)({payload:{action:"FetchBalance",status:M.Bn.COMPLETED}})),{type:M.AB.SET_BALANCE_CLN,payload:g||{}})),(0,d.K)(g=>(this.handleErrorWithoutAlert("FetchBalance",M.m6.NO_SPINNER,"Fetching Balances Failed.",g),(0,u.of)({type:M.pg.VOID}))))),this.fetchLocalRemoteBalanceCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.FETCH_LOCAL_REMOTE_BALANCE_CLN),(0,b.z)(()=>(this.store.dispatch((0,E.Ni)({payload:{action:"FetchLocalRemoteBalance",status:M.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.CHANNELS_API+"/localRemoteBalance"))),(0,y.U)(g=>(this.logger.info(g),this.store.dispatch((0,E.Ni)({payload:{action:"FetchLocalRemoteBalance",status:M.Bn.COMPLETED}})),{type:M.AB.SET_LOCAL_REMOTE_BALANCE_CLN,payload:g||{}})),(0,d.K)(g=>(this.handleErrorWithoutAlert("FetchLocalRemoteBalance",M.m6.NO_SPINNER,"Fetching Balances Failed.",g),(0,u.of)({type:M.pg.VOID}))))),this.getNewAddressCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.GET_NEW_ADDRESS_CLN),(0,b.z)(g=>(this.store.dispatch((0,A.ac)({payload:M.m6.GENERATE_NEW_ADDRESS})),this.httpClient.get(this.CHILD_API_URL+P.NZ.ON_CHAIN_API+"?type="+g.payload.addressCode).pipe((0,y.U)(V=>(this.logger.info(V),this.store.dispatch((0,A.uO)({payload:M.m6.GENERATE_NEW_ADDRESS})),{type:M.AB.SET_NEW_ADDRESS_CLN,payload:V&&V.address?V.address:{}})),(0,d.K)(V=>(this.handleErrorWithAlert("GenerateNewAddress",M.m6.GENERATE_NEW_ADDRESS,"Generate New Address Failed",this.CHILD_API_URL+P.NZ.ON_CHAIN_API+"?type="+g.payload.addressId,V),(0,u.of)({type:M.pg.VOID})))))))),this.setNewAddressCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.SET_NEW_ADDRESS_CLN),(0,y.U)(g=>(this.logger.info(g.payload),g.payload))),{dispatch:!1}),this.peersFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.FETCH_PEERS_CLN),(0,b.z)(()=>(this.store.dispatch((0,E.Ni)({payload:{action:"FetchPeers",status:M.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.PEERS_API).pipe((0,y.U)(g=>(this.logger.info(g),this.store.dispatch((0,E.Ni)({payload:{action:"FetchPeers",status:M.Bn.COMPLETED}})),{type:M.AB.SET_PEERS_CLN,payload:g||[]})),(0,d.K)(g=>(this.handleErrorWithoutAlert("FetchPeers",M.m6.NO_SPINNER,"Fetching Peers Failed.",g),(0,u.of)({type:M.pg.VOID})))))))),this.saveNewPeerCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.SAVE_NEW_PEER_CLN),(0,b.z)(g=>(this.store.dispatch((0,A.ac)({payload:M.m6.CONNECT_PEER})),this.store.dispatch((0,E.Ni)({payload:{action:"SaveNewPeer",status:M.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+P.NZ.PEERS_API,{id:g.payload.id}).pipe((0,y.U)(V=>(this.logger.info(V),this.store.dispatch((0,E.Ni)({payload:{action:"SaveNewPeer",status:M.Bn.COMPLETED}})),this.store.dispatch((0,A.uO)({payload:M.m6.CONNECT_PEER})),this.store.dispatch((0,E.Z8)({payload:V||[]})),{type:M.AB.NEWLY_ADDED_PEER_CLN,payload:{peer:V.find(R=>0===g.payload.id.indexOf(R.id?R.id:""))}})),(0,d.K)(V=>(this.handleErrorWithoutAlert("SaveNewPeer",M.m6.CONNECT_PEER,"Peer Connection Failed.",V),(0,u.of)({type:M.pg.VOID})))))))),this.detachPeerCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.DETACH_PEER_CLN),(0,b.z)(g=>(this.store.dispatch((0,A.ac)({payload:M.m6.DISCONNECT_PEER})),this.httpClient.delete(this.CHILD_API_URL+P.NZ.PEERS_API+"/"+g.payload.id+"?force="+g.payload.force).pipe((0,y.U)(V=>(this.logger.info(V),this.store.dispatch((0,A.uO)({payload:M.m6.DISCONNECT_PEER})),this.store.dispatch((0,A.jW)({payload:"Peer Disconnected Successfully!"})),{type:M.AB.REMOVE_PEER_CLN,payload:{id:g.payload.id}})),(0,d.K)(V=>(this.handleErrorWithAlert("PeerDisconnect",M.m6.DISCONNECT_PEER,"Unable to Detach Peer. Try again later.",this.CHILD_API_URL+P.NZ.PEERS_API+"/"+g.payload.id,V),(0,u.of)({type:M.pg.VOID})))))))),this.channelsFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.FETCH_CHANNELS_CLN),(0,b.z)(()=>(this.store.dispatch((0,E.Ni)({payload:{action:"FetchChannels",status:M.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.CHANNELS_API+"/listChannels"))),(0,y.U)(g=>{this.logger.info(g),this.store.dispatch((0,E.Ni)({payload:{action:"FetchChannels",status:M.Bn.COMPLETED}}));const V={activeChannels:[],pendingChannels:[],inactiveChannels:[]};return g.forEach(R=>{"CHANNELD_NORMAL"===R.state?R.connected?V.activeChannels.push(R):V.inactiveChannels.push(R):V.pendingChannels.push(R)}),{type:M.AB.SET_CHANNELS_CLN,payload:V}}),(0,d.K)(g=>(this.handleErrorWithoutAlert("FetchChannels",M.m6.NO_SPINNER,"Fetching Channels Failed.",g),(0,u.of)({type:M.pg.VOID}))))),this.openNewChannelCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.SAVE_NEW_CHANNEL_CLN),(0,b.z)(g=>{this.store.dispatch((0,A.ac)({payload:M.m6.OPEN_CHANNEL})),this.store.dispatch((0,E.Ni)({payload:{action:"SaveNewChannel",status:M.Bn.INITIATED}}));const V={id:g.payload.peerId,satoshis:g.payload.satoshis,feeRate:g.payload.feeRate,announce:g.payload.announce};return g.payload.minconf&&(V.minconf=g.payload.minconf),g.payload.utxos&&(V.utxos=g.payload.utxos),g.payload.requestAmount&&(V.request_amt=g.payload.requestAmount),g.payload.compactLease&&(V.compact_lease=g.payload.compactLease),this.httpClient.post(this.CHILD_API_URL+P.NZ.CHANNELS_API,V).pipe((0,y.U)(R=>(this.logger.info(R),this.store.dispatch((0,E.Ni)({payload:{action:"SaveNewChannel",status:M.Bn.COMPLETED}})),this.store.dispatch((0,A.uO)({payload:M.m6.OPEN_CHANNEL})),this.store.dispatch((0,A.jW)({payload:"Channel Added Successfully!"})),this.store.dispatch((0,E.EG)()),this.store.dispatch((0,E.Ly)()),{type:M.AB.FETCH_CHANNELS_CLN})),(0,d.K)(R=>(this.handleErrorWithoutAlert("SaveNewChannel",M.m6.OPEN_CHANNEL,"Opening Channel Failed.",R),(0,u.of)({type:M.pg.VOID}))))}))),this.updateChannelCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.UPDATE_CHANNEL_CLN),(0,b.z)(g=>(this.store.dispatch((0,A.ac)({payload:M.m6.UPDATE_CHAN_POLICY})),this.httpClient.post(this.CHILD_API_URL+P.NZ.CHANNELS_API+"/setChannelFee",{id:g.payload.channelId,base:g.payload.baseFeeMsat,ppm:g.payload.feeRate}).pipe((0,y.U)(V=>(this.logger.info(V),this.store.dispatch((0,A.uO)({payload:M.m6.UPDATE_CHAN_POLICY})),this.store.dispatch((0,A.jW)("all"===g.payload.channelId?{payload:{message:"All Channels Updated Successfully. Fee policy updates may take some time to reflect on the channel.",duration:5e3}}:{payload:{message:"Channel Updated Successfully. Fee policy updates may take some time to reflect on the channel.",duration:5e3}})),{type:M.AB.FETCH_CHANNELS_CLN})),(0,d.K)(V=>(this.handleErrorWithAlert("UpdateChannel",M.m6.UPDATE_CHAN_POLICY,"Update Channel Failed",this.CHILD_API_URL+P.NZ.CHANNELS_API,V),(0,u.of)({type:M.pg.VOID})))))))),this.closeChannelCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.CLOSE_CHANNEL_CLN),(0,b.z)(g=>(this.store.dispatch((0,A.ac)({payload:g.payload.force?M.m6.FORCE_CLOSE_CHANNEL:M.m6.CLOSE_CHANNEL})),this.httpClient.delete(this.CHILD_API_URL+P.NZ.CHANNELS_API+"/"+g.payload.channelId+(g.payload.force?"?force="+g.payload.force:"")).pipe((0,y.U)(R=>(this.logger.info(R),this.store.dispatch((0,A.uO)({payload:g.payload.force?M.m6.FORCE_CLOSE_CHANNEL:M.m6.CLOSE_CHANNEL})),this.store.dispatch((0,E.UR)()),this.store.dispatch((0,E.g3)()),this.store.dispatch((0,A.jW)({payload:"Channel Closed Successfully!"})),{type:M.AB.REMOVE_CHANNEL_CLN,payload:g.payload})),(0,d.K)(R=>(this.handleErrorWithAlert("CloseChannel",g.payload.force?M.m6.FORCE_CLOSE_CHANNEL:M.m6.CLOSE_CHANNEL,"Unable to Close Channel. Try again later.",this.CHILD_API_URL+P.NZ.CHANNELS_API,R),(0,u.of)({type:M.pg.VOID})))))))),this.paymentsFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.FETCH_PAYMENTS_CLN),(0,b.z)(()=>(this.store.dispatch((0,E.Ni)({payload:{action:"FetchPayments",status:M.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.PAYMENTS_API))),(0,y.U)(g=>(this.logger.info(g),this.store.dispatch((0,E.Ni)({payload:{action:"FetchPayments",status:M.Bn.COMPLETED}})),{type:M.AB.SET_PAYMENTS_CLN,payload:g||[]})),(0,d.K)(g=>(this.handleErrorWithoutAlert("FetchPayments",M.m6.NO_SPINNER,"Fetching Payments Failed.",g),(0,u.of)({type:M.pg.VOID}))))),this.fetchOfferInvoiceCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.FETCH_OFFER_INVOICE_CLN),(0,b.z)(g=>(this.store.dispatch((0,A.ac)({payload:M.m6.FETCH_INVOICE})),this.store.dispatch((0,E.Ni)({payload:{action:"FetchOfferInvoice",status:M.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+P.NZ.OFFERS_API+"/fetchOfferInvoice",g.payload).pipe((0,y.U)(V=>{this.logger.info(V),setTimeout(()=>{this.store.dispatch((0,E.Ni)({payload:{action:"FetchOfferInvoice",status:M.Bn.COMPLETED}})),this.store.dispatch((0,A.uO)({payload:M.m6.FETCH_INVOICE})),this.store.dispatch((0,E.VD)({payload:V||{}}))},500)}),(0,d.K)(V=>(this.handleErrorWithoutAlert("FetchOfferInvoice",M.m6.FETCH_INVOICE,"Offer Invoice Fetch Failed",V),(0,u.of)({type:M.pg.VOID}))))))),{dispatch:!1}),this.setOfferInvoiceCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.SET_OFFER_INVOICE_CLN),(0,y.U)(g=>(this.logger.info(g.payload),g.payload))),{dispatch:!1}),this.sendPaymentCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.SEND_PAYMENT_CLN),(0,b.z)(g=>(this.store.dispatch((0,A.ac)({payload:g.payload.uiMessage})),this.store.dispatch((0,E.Ni)({payload:{action:"SendPayment",status:M.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+P.NZ.PAYMENTS_API,g.payload).pipe((0,y.U)(V=>{this.logger.info(V),this.store.dispatch((0,E.Ni)({payload:{action:"SendPayment",status:M.Bn.COMPLETED}}));let R="Payment Sent Successfully!";V.saveToDBError&&(R="Payment Sent Successfully but Offer Saving to Database Failed."),V.saveToDBResponse&&"NA"!==V.saveToDBResponse&&(this.store.dispatch((0,E.e9)({payload:V.saveToDBResponse})),R="Payment Sent Successfully and Offer Saved to Database."),setTimeout(()=>{this.store.dispatch((0,E.UR)()),this.store.dispatch((0,E.EG)()),this.store.dispatch((0,E.cQ)()),this.store.dispatch((0,A.uO)({payload:g.payload.uiMessage})),this.store.dispatch((0,A.jW)({payload:R})),this.store.dispatch((0,E.TM)({payload:V.paymentResponse}))},1e3)}),(0,d.K)(V=>(this.logger.error("Error: "+JSON.stringify(V)),g.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",g.payload.uiMessage,"Send Payment Failed.",V):this.handleErrorWithAlert("SendPayment",g.payload.uiMessage,"Send Payment Failed",this.CHILD_API_URL+P.NZ.PAYMENTS_API,V),(0,u.of)({type:M.pg.VOID}))))))),{dispatch:!1}),this.queryRoutesFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.GET_QUERY_ROUTES_CLN),(0,b.z)(g=>(this.store.dispatch((0,E.Ni)({payload:{action:"GetQueryRoutes",status:M.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.NETWORK_API+"/getRoute/"+g.payload.destPubkey+"/"+g.payload.amount).pipe((0,y.U)(V=>(this.logger.info(V),this.store.dispatch((0,E.Ni)({payload:{action:"GetQueryRoutes",status:M.Bn.COMPLETED}})),{type:M.AB.SET_QUERY_ROUTES_CLN,payload:V})),(0,d.K)(V=>(this.store.dispatch((0,E.kL)({payload:{routes:[]}})),this.handleErrorWithAlert("GetQueryRoutes",M.m6.NO_SPINNER,"Get Query Routes Failed",this.CHILD_API_URL+P.NZ.NETWORK_API+"/getRoute/"+g.payload.destPubkey+"/"+g.payload.amount,V),(0,u.of)({type:M.pg.VOID})))))))),this.setQueryRoutesCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.SET_QUERY_ROUTES_CLN),(0,y.U)(g=>g.payload)),{dispatch:!1}),this.peerLookupCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.PEER_LOOKUP_CLN),(0,b.z)(g=>(this.store.dispatch((0,A.ac)({payload:M.m6.SEARCHING_NODE})),this.store.dispatch((0,E.Ni)({payload:{action:"Lookup",status:M.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.NETWORK_API+"/listNode/"+g.payload).pipe((0,y.U)(V=>(this.logger.info(V),this.store.dispatch((0,E.Ni)({payload:{action:"Lookup",status:M.Bn.COMPLETED}})),this.store.dispatch((0,A.uO)({payload:M.m6.SEARCHING_NODE})),{type:M.AB.SET_LOOKUP_CLN,payload:V})),(0,d.K)(V=>(this.handleErrorWithAlert("Lookup",M.m6.SEARCHING_NODE,"Peer Lookup Failed",this.CHILD_API_URL+P.NZ.NETWORK_API+"/listNode/"+g.payload,V),(0,u.of)({type:M.pg.VOID})))))))),this.channelLookupCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.CHANNEL_LOOKUP_CLN),(0,b.z)(g=>(this.store.dispatch((0,A.ac)({payload:g.payload.uiMessage})),this.store.dispatch((0,E.Ni)({payload:{action:"Lookup",status:M.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.NETWORK_API+"/listChannel/"+g.payload.shortChannelID).pipe((0,y.U)(V=>(this.logger.info(V),this.store.dispatch((0,E.Ni)({payload:{action:"Lookup",status:M.Bn.COMPLETED}})),this.store.dispatch((0,A.uO)({payload:g.payload.uiMessage})),{type:M.AB.SET_LOOKUP_CLN,payload:V})),(0,d.K)(V=>(g.payload.showError?this.handleErrorWithAlert("Lookup",g.payload.uiMessage,"Channel Lookup Failed",this.CHILD_API_URL+P.NZ.NETWORK_API+"/listChannel/"+g.payload.shortChannelID,V):this.store.dispatch((0,A.uO)({payload:g.payload.uiMessage})),this.store.dispatch((0,E.v_)({payload:[]})),(0,u.of)({type:M.pg.VOID})))))))),this.invoiceLookupCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.INVOICE_LOOKUP_CLN),(0,b.z)(g=>(this.store.dispatch((0,A.ac)({payload:M.m6.SEARCHING_INVOICE})),this.store.dispatch((0,E.Ni)({payload:{action:"Lookup",status:M.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.INVOICES_API+"?label="+g.payload).pipe((0,y.U)(V=>(this.logger.info(V),this.store.dispatch((0,E.Ni)({payload:{action:"Lookup",status:M.Bn.COMPLETED}})),this.store.dispatch((0,A.uO)({payload:M.m6.SEARCHING_INVOICE})),V.invoices&&V.invoices.length&&V.invoices.length>0&&this.store.dispatch((0,E.aL)({payload:V.invoices[0]})),{type:M.AB.SET_LOOKUP_CLN,payload:V.invoices&&V.invoices.length&&V.invoices.length>0?V.invoices[0]:V})),(0,d.K)(V=>(this.handleErrorWithoutAlert("Lookup",M.m6.SEARCHING_INVOICE,"Invoice Lookup Failed",V),this.store.dispatch((0,A.jW)({payload:{message:"Invoice Refresh Failed.",type:"ERROR"}})),(0,u.of)({type:M.pg.VOID})))))))),this.setLookupCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.SET_LOOKUP_CLN),(0,y.U)(g=>(this.logger.info(g.payload),g.payload))),{dispatch:!1}),this.fetchForwardingHistoryCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.GET_FORWARDING_HISTORY_CLN),(0,b.z)(g=>{const V=g.payload.status.charAt(0).toUpperCase();return this.store.dispatch((0,E.Ni)({payload:{action:"FetchForwardingHistory"+V,status:M.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.CHANNELS_API+"/listForwards?status="+g.payload.status).pipe((0,y.U)(R=>(this.logger.info(R),this.store.dispatch((0,E.Ni)({payload:{action:"FetchForwardingHistory"+V,status:M.Bn.COMPLETED}})),g.payload.status===M.OO.FAILED?this.store.dispatch((0,E.QJ)({payload:{status:M.OO.FAILED,totalForwards:R.length,listForwards:R}})):g.payload.status===M.OO.LOCAL_FAILED?this.store.dispatch((0,E.QJ)({payload:{status:M.OO.LOCAL_FAILED,totalForwards:R.length,listForwards:R}})):g.payload.status===M.OO.SETTLED&&this.store.dispatch((0,E.QJ)({payload:{status:M.OO.SETTLED,totalForwards:R.length,listForwards:R}})),{type:M.pg.VOID})),(0,d.K)(R=>(this.handleErrorWithAlert("FetchForwardingHistory"+V,M.m6.NO_SPINNER,"Get "+g.payload.status+" Forwarding History Failed",this.CHILD_API_URL+P.NZ.CHANNELS_API+"/listForwards?status="+g.payload.status,R),(0,u.of)({type:M.pg.VOID}))))}))),this.deleteExpiredInvoiceCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.DELETE_EXPIRED_INVOICE_CLN),(0,b.z)(g=>(this.store.dispatch((0,A.ac)({payload:M.m6.DELETE_INVOICE})),this.httpClient.delete(this.CHILD_API_URL+P.NZ.INVOICES_API+(g.payload?"?maxexpiry="+g.payload:"")).pipe((0,y.U)(R=>(this.logger.info(R),this.store.dispatch((0,A.uO)({payload:M.m6.DELETE_INVOICE})),this.store.dispatch((0,A.jW)({payload:"Invoices Deleted Successfully!"})),{type:M.AB.FETCH_INVOICES_CLN,payload:{num_max_invoices:1e6,reversed:!0}})),(0,d.K)(R=>(this.handleErrorWithAlert("DeleteInvoices",M.m6.DELETE_INVOICE,"Delete Invoice Failed",this.CHILD_API_URL+P.NZ.INVOICES_API,R),(0,u.of)({type:M.pg.VOID})))))))),this.saveNewInvoiceCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.SAVE_NEW_INVOICE_CLN),(0,b.z)(g=>(this.store.dispatch((0,A.ac)({payload:M.m6.ADD_INVOICE})),this.store.dispatch((0,E.Ni)({payload:{action:"SaveNewInvoice",status:M.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+P.NZ.INVOICES_API,{label:g.payload.label,amount:g.payload.amount,description:g.payload.description,expiry:g.payload.expiry,private:g.payload.private}).pipe((0,y.U)(V=>(this.logger.info(V),this.store.dispatch((0,E.Ni)({payload:{action:"SaveNewInvoice",status:M.Bn.COMPLETED}})),this.store.dispatch((0,A.uO)({payload:M.m6.ADD_INVOICE})),V.msatoshi=g.payload.amount,V.label=g.payload.label,V.expires_at=Math.round((new Date).getTime()/1e3+g.payload.expiry),V.description=g.payload.description,V.status="unpaid",setTimeout(()=>{this.store.dispatch((0,A.qR)({payload:{data:{invoice:V,newlyAdded:!0,component:T.y}}}))},100),{type:M.AB.ADD_INVOICE_CLN,payload:V})),(0,d.K)(V=>(this.handleErrorWithoutAlert("SaveNewInvoice",M.m6.ADD_INVOICE,"Add Invoice Failed.",V),(0,u.of)({type:M.pg.VOID})))))))),this.saveNewOfferCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.SAVE_NEW_OFFER_CLN),(0,b.z)(g=>(this.store.dispatch((0,A.ac)({payload:M.m6.CREATE_OFFER})),this.store.dispatch((0,E.Ni)({payload:{action:"SaveNewOffer",status:M.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+P.NZ.OFFERS_API,{amount:g.payload.amount,description:g.payload.description,vendor:g.payload.vendor}).pipe((0,y.U)(V=>(this.logger.info(V),this.store.dispatch((0,E.Ni)({payload:{action:"SaveNewOffer",status:M.Bn.COMPLETED}})),this.store.dispatch((0,A.uO)({payload:M.m6.CREATE_OFFER})),setTimeout(()=>{this.store.dispatch((0,A.qR)({payload:{data:{offer:V,newlyAdded:!0,component:w.k}}}))},100),{type:M.AB.ADD_OFFER_CLN,payload:V})),(0,d.K)(V=>(this.handleErrorWithoutAlert("SaveNewOffer",M.m6.CREATE_OFFER,"Create Offer Failed.",V),(0,u.of)({type:M.pg.VOID})))))))),this.invoicesFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.FETCH_INVOICES_CLN),(0,b.z)(g=>(this.store.dispatch((0,E.Ni)({payload:{action:"FetchInvoices",status:M.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.INVOICES_API+"?num_max_invoices="+(g.payload.num_max_invoices?g.payload.num_max_invoices:1e6)+"&index_offset="+(g.payload.index_offset?g.payload.index_offset:0)+"&reversed="+(!g.payload.reversed||g.payload.reversed)).pipe((0,y.U)($=>(this.logger.info($),this.store.dispatch((0,E.Ni)({payload:{action:"FetchInvoices",status:M.Bn.COMPLETED}})),{type:M.AB.SET_INVOICES_CLN,payload:$})),(0,d.K)($=>(this.handleErrorWithoutAlert("FetchInvoices",M.m6.NO_SPINNER,"Fetching Invoices Failed.",$),(0,u.of)({type:M.pg.VOID})))))))),this.offersFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.FETCH_OFFERS_CLN),(0,b.z)(g=>(this.store.dispatch((0,E.Ni)({payload:{action:"FetchOffers",status:M.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.OFFERS_API).pipe((0,y.U)(V=>(this.logger.info(V),this.store.dispatch((0,E.Ni)({payload:{action:"FetchOffers",status:M.Bn.COMPLETED}})),{type:M.AB.SET_OFFERS_CLN,payload:V.offers?V.offers:[]})),(0,d.K)(V=>(this.handleErrorWithoutAlert("FetchOffers",M.m6.NO_SPINNER,"Fetching Offers Failed.",V),(0,u.of)({type:M.pg.VOID})))))))),this.offersDisableCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.DISABLE_OFFER_CLN),(0,b.z)(g=>(this.store.dispatch((0,A.ac)({payload:M.m6.DISABLE_OFFER})),this.store.dispatch((0,E.Ni)({payload:{action:"DisableOffer",status:M.Bn.INITIATED}})),this.httpClient.delete(this.CHILD_API_URL+P.NZ.OFFERS_API+"/"+g.payload.offer_id).pipe((0,y.U)(V=>(this.logger.info(V),this.store.dispatch((0,E.Ni)({payload:{action:"DisableOffer",status:M.Bn.COMPLETED}})),this.store.dispatch((0,A.uO)({payload:M.m6.DISABLE_OFFER})),this.store.dispatch((0,A.jW)({payload:"Offer Disabled Successfully!"})),{type:M.AB.UPDATE_OFFER_CLN,payload:{offer:V}})),(0,d.K)(V=>(this.handleErrorWithoutAlert("DisableOffer",M.m6.DISABLE_OFFER,"Disabling Offer Failed.",V),(0,u.of)({type:M.pg.VOID})))))))),this.offerBookmarksFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.FETCH_OFFER_BOOKMARKS_CLN),(0,b.z)(g=>(this.store.dispatch((0,E.Ni)({payload:{action:"FetchOfferBookmarks",status:M.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.OFFERS_API+"/offerbookmarks").pipe((0,y.U)(V=>(this.logger.info(V),this.store.dispatch((0,E.Ni)({payload:{action:"FetchOfferBookmarks",status:M.Bn.COMPLETED}})),{type:M.AB.SET_OFFER_BOOKMARKS_CLN,payload:V||[]})),(0,d.K)(V=>(this.handleErrorWithoutAlert("FetchOfferBookmarks",M.m6.NO_SPINNER,"Fetching Offer Bookmarks Failed.",V),(0,u.of)({type:M.pg.VOID})))))))),this.peidOffersDeleteCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.DELETE_OFFER_BOOKMARK_CLN),(0,b.z)(g=>(this.store.dispatch((0,A.ac)({payload:M.m6.DELETE_OFFER_BOOKMARK})),this.store.dispatch((0,E.Ni)({payload:{action:"DeleteOfferBookmark",status:M.Bn.INITIATED}})),this.httpClient.delete(this.CHILD_API_URL+P.NZ.OFFERS_API+"/offerbookmark/"+g.payload.bolt12).pipe((0,y.U)(V=>(this.logger.info(V),this.store.dispatch((0,E.Ni)({payload:{action:"DeleteOfferBookmark",status:M.Bn.COMPLETED}})),this.store.dispatch((0,A.uO)({payload:M.m6.DELETE_OFFER_BOOKMARK})),this.store.dispatch((0,A.jW)({payload:"Offer Bookmark Deleted Successfully!"})),{type:M.AB.REMOVE_OFFER_BOOKMARK_CLN,payload:{bolt12:g.payload.bolt12}})),(0,d.K)(V=>(this.handleErrorWithAlert("DeleteOfferBookmark",M.m6.DELETE_OFFER_BOOKMARK,"Deleting Offer Bookmark Failed.",this.CHILD_API_URL+P.NZ.OFFERS_API+"/offerbookmark/"+g.payload.bolt12,V),(0,u.of)({type:M.pg.VOID})))))))),this.SetChannelTransactionCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.SET_CHANNEL_TRANSACTION_CLN),(0,b.z)(g=>(this.store.dispatch((0,A.ac)({payload:M.m6.SEND_FUNDS})),this.store.dispatch((0,E.Ni)({payload:{action:"SetChannelTransaction",status:M.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+P.NZ.ON_CHAIN_API,g.payload).pipe((0,y.U)(V=>(this.logger.info(V),this.store.dispatch((0,E.Ni)({payload:{action:"SetChannelTransaction",status:M.Bn.COMPLETED}})),this.store.dispatch((0,A.uO)({payload:M.m6.SEND_FUNDS})),this.store.dispatch((0,E.EG)()),this.store.dispatch((0,E.Ly)()),{type:M.AB.SET_CHANNEL_TRANSACTION_RES_CLN,payload:V})),(0,d.K)(V=>(this.handleErrorWithoutAlert("SetChannelTransaction",M.m6.SEND_FUNDS,"Sending Fund Failed.",V),(0,u.of)({type:M.pg.VOID})))))))),this.utxosFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.FETCH_UTXOS_CLN),(0,b.z)(()=>(this.store.dispatch((0,E.Ni)({payload:{action:"FetchUTXOs",status:M.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.ON_CHAIN_API+"/utxos"))),(0,y.U)(g=>(this.logger.info(g),this.store.dispatch((0,E.Ni)({payload:{action:"FetchUTXOs",status:M.Bn.COMPLETED}})),{type:M.AB.SET_UTXOS_CLN,payload:g.outputs||[]})),(0,d.K)(g=>(this.handleErrorWithoutAlert("FetchUTXOs",M.m6.NO_SPINNER,"Fetching UTXOs Failed.",g),(0,u.of)({type:M.pg.VOID}))))),this.swapsFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.FETCH_SWAPS_CLN),(0,b.z)(g=>(this.store.dispatch((0,E.Ni)({payload:{action:"FetchSwaps",status:M.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.PEERSWAP_API+"/listSwaps").pipe((0,y.U)(V=>(this.logger.info(V),this.store.dispatch((0,E.Ni)({payload:{action:"FetchSwaps",status:M.Bn.COMPLETED}})),{type:M.AB.SET_SWAPS_CLN,payload:V||[]})),(0,d.K)(V=>(this.handleErrorWithoutAlert("FetchSwaps",M.m6.NO_SPINNER,"Fetching Swaps Failed.",V),(0,u.of)({type:M.pg.VOID})))))))),this.swapPeersFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.FETCH_SWAP_PEERS_CLN),(0,b.z)(g=>(this.store.dispatch((0,E.Ni)({payload:{action:"FetchSwapPeers",status:M.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.PEERSWAP_API+"/listSwapPeers").pipe((0,y.U)(V=>(this.logger.info(V),this.store.dispatch((0,E.Ni)({payload:{action:"FetchSwapPeers",status:M.Bn.COMPLETED}})),{type:M.AB.SET_SWAP_PEERS_CLN,payload:V||[]})),(0,d.K)(V=>(this.handleErrorWithoutAlert("FetchSwapPeers",M.m6.NO_SPINNER,"Fetching Swap Peers Failed.",V),(0,u.of)({type:M.pg.VOID})))))))),this.swapRequestsFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.FETCH_SWAP_REQUESTS_CLN),(0,b.z)(g=>(this.store.dispatch((0,E.Ni)({payload:{action:"FetchSwapRequests",status:M.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.PEERSWAP_API+"/listSwapRequests").pipe((0,y.U)(V=>(this.logger.info(V),this.store.dispatch((0,E.Ni)({payload:{action:"FetchSwapRequests",status:M.Bn.COMPLETED}})),{type:M.AB.SET_SWAP_REQUESTS_CLN,payload:V||[]})),(0,d.K)(V=>(this.handleErrorWithoutAlert("FetchSwaps",M.m6.NO_SPINNER,"Fetching Swap Requests Failed.",V),(0,u.of)({type:M.pg.VOID})))))))),this.peerswapOutCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.SWAPOUT_CLN),(0,b.z)(g=>(this.store.dispatch((0,A.ac)({payload:M.m6.PEERSWAP_SWAPOUT})),this.store.dispatch((0,E.Ni)({payload:{action:"PeerswapSwapout",status:M.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+P.NZ.PEERSWAP_API+"/swapOut",{amountSats:g.payload.amountSats,shortChannelId:g.payload.shortChannelId,asset:g.payload.asset}).pipe((0,y.U)(V=>(this.logger.info(V),this.store.dispatch((0,A.uO)({payload:M.m6.PEERSWAP_SWAPOUT})),this.store.dispatch((0,E.Ni)({payload:{action:"PeerswapSwapout",status:M.Bn.COMPLETED}})),setTimeout(()=>{this.store.dispatch((0,A.qR)({payload:{data:{type:M.n_.INFORMATION,alertTitle:"Swapout Initiated",message:V.id}}}))},100),{type:M.AB.ADD_SWAPOUT_CLN,message:[{key:"id",value:V.id,title:"Swap Id",width:100,type:M.Gi.STRING}]})),(0,d.K)(V=>(this.handleErrorWithoutAlert("PeerswapSwapout",M.m6.PEERSWAP_SWAPOUT,"Swapout Failed.",V),(0,u.of)({type:M.pg.VOID})))))))),this.peerswapInCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.SWAPIN_CLN),(0,b.z)(g=>(this.store.dispatch((0,A.ac)({payload:M.m6.PEERSWAP_SWAPIN})),this.store.dispatch((0,E.Ni)({payload:{action:"PeerswapSwapin",status:M.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+P.NZ.PEERSWAP_API+"/swapIn",{amountSats:g.payload.amountSats,shortChannelId:g.payload.shortChannelId,asset:g.payload.asset}).pipe((0,y.U)(V=>(this.logger.info(V),this.store.dispatch((0,A.uO)({payload:M.m6.PEERSWAP_SWAPIN})),this.store.dispatch((0,E.Ni)({payload:{action:"PeerswapSwapin",status:M.Bn.COMPLETED}})),setTimeout(()=>{this.store.dispatch((0,A.qR)({payload:{data:{type:M.n_.INFORMATION,alertTitle:"Swapin Initiated",message:[{key:"id",value:V.id,title:"Swap Id",width:100,type:M.Gi.STRING}]}}}))},100),{type:M.AB.ADD_SWAPIN_CLN,payload:V})),(0,d.K)(V=>(this.handleErrorWithoutAlert("PeerswapSwapin",M.m6.PEERSWAP_SWAPIN,"Swapin Failed.",V),(0,u.of)({type:M.pg.VOID})))))))),this.store.select(k.yA).pipe((0,a.R)(this.unSubs[0])).subscribe(g=>{g.FetchInfo.status!==M.Bn.COMPLETED&&g.FetchInfo.status!==M.Bn.ERROR||g.FetchFees.status!==M.Bn.COMPLETED&&g.FetchFees.status!==M.Bn.ERROR||g.FetchChannels.status!==M.Bn.COMPLETED&&g.FetchChannels.status!==M.Bn.ERROR||g.FetchBalance.status!==M.Bn.COMPLETED&&g.FetchBalance.status!==M.Bn.ERROR||g.FetchLocalRemoteBalance.status!==M.Bn.COMPLETED&&g.FetchLocalRemoteBalance.status!==M.Bn.ERROR||this.flgInitialized||(this.store.dispatch((0,A.uO)({payload:M.m6.INITALIZE_NODE_DATA})),this.flgInitialized=!0)}),this.wsService.clWSMessages.pipe((0,a.R)(this.unSubs[1])).subscribe(g=>{if(this.logger.info("Received new message from the service: "+JSON.stringify(g)),g)switch(g.event){case M.nM.INVOICE:this.logger.info(g),g&&g.data&&g.data.label&&this.store.dispatch((0,E.aL)({payload:g.data}));break;case M.nM.SEND_PAYMENT:case M.nM.BLOCK_HEIGHT:this.logger.info(g);break;default:this.logger.info("Received Event from WS: "+JSON.stringify(g))}})}initializeRemainingData(t,r){this.sessionService.setItem("clUnlocked","true");const h={identity_pubkey:t.id,alias:t.alias,testnet:"testnet"===t.network.toLowerCase(),chains:t.chains,uris:t.uris,version:t.version,api_version:t.api_version,numberOfPendingChannels:t.num_pending_channels};this.store.dispatch((0,A.ac)({payload:M.m6.INITALIZE_NODE_DATA})),this.store.dispatch((0,A._V)({payload:h}));let c=this.location.path();c.includes("/lnd/")?c=null==c?void 0:c.replace("/lnd/","/cln/"):c.includes("/ecl/")&&(c=null==c?void 0:c.replace("/ecl/","/cln/")),(c.includes("/login")||c.includes("/error")||""===c||"HOME"===r||c.includes("?access-key="))&&(c="/cln/home"),this.router.navigate([c]),this.store.dispatch((0,E.WM)({payload:{num_max_invoices:1e6,index_offset:0,reversed:!0}})),this.store.dispatch((0,E.SN)()),this.store.dispatch((0,E.UR)()),this.store.dispatch((0,E.EG)()),this.store.dispatch((0,E.g3)()),this.store.dispatch((0,E.HJ)({payload:"perkw"})),this.store.dispatch((0,E.HJ)({payload:"perkb"})),this.store.dispatch((0,E.$W)()),this.store.dispatch((0,E.Ly)()),this.store.dispatch((0,E.cQ)())}handleErrorWithoutAlert(t,r,h,c){if(this.logger.error("ERROR IN: "+t+"\n"+JSON.stringify(c)),401===c.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:r}));const C=this.commonService.extractErrorMessage(c,h);this.store.dispatch((0,E.Ni)({payload:{action:t,status:M.Bn.ERROR,statusCode:c.status.toString(),message:C}}))}}handleErrorWithAlert(t,r,h,c,C){if(this.logger.error(C),401===C.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:r}));const S=this.commonService.extractErrorMessage(C);this.store.dispatch((0,A.qR)({payload:{data:{type:"ERROR",alertTitle:h,message:{code:C.status,message:S,URL:c},component:D.H}}})),this.store.dispatch((0,E.Ni)({payload:{action:t,status:M.Bn.ERROR,statusCode:C.status.toString(),message:S,URL:c}}))}}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return me.\u0275fac=function(t){return new(t||me)(z.LFG(e.eX),z.LFG(U.eN),z.LFG(W.yh),z.LFG(ne.m),z.LFG(Q.v),z.LFG(le.mQ),z.LFG(q.F0),z.LFG(ie.d),z.LFG(se.Ye))},me.\u0275prov=z.Yz7({token:me,factory:me.\u0275fac}),me})()},9828:(He,j,p)=>{"use strict";p.d(j,{Ao:()=>q,Bo:()=>U,EQ:()=>J,Ho:()=>r,Hz:()=>ie,JG:()=>D,OL:()=>Q,PP:()=>d,Rn:()=>w,T4:()=>E,Wi:()=>P,Wj:()=>z,Y_:()=>se,ZW:()=>k,ey:()=>b,gc:()=>A,hx:()=>M,jK:()=>le,lK:()=>ne,lw:()=>u,xQ:()=>W,yA:()=>y,zm:()=>T});var e=p(5620);const i=(0,e.ZF)("cln"),u=(0,e.P1)(i,c=>c.nodeSettings),b=(0,e.P1)(i,c=>c.information),y=((0,e.P1)(i,c=>c.apisCallStatus.FetchInfo),(0,e.P1)(i,c=>c.apisCallStatus)),d=(0,e.P1)(i,c=>({payments:c.payments,apiCallStatus:c.apisCallStatus.FetchPayments})),P=(0,e.P1)(i,c=>({peers:c.peers,apiCallStatus:c.apisCallStatus.FetchPeers})),D=(0,e.P1)(i,c=>({fees:c.fees,apiCallStatus:c.apisCallStatus.FetchFees})),T=(0,e.P1)(i,c=>({feeRatesPerKB:c.feeRatesPerKB,apiCallStatus:c.apisCallStatus.FetchFeeRatesperkb})),M=(0,e.P1)(i,c=>({feeRatesPerKW:c.feeRatesPerKW,apiCallStatus:c.apisCallStatus.FetchFeeRatesperkw})),A=(0,e.P1)(i,c=>({listInvoices:c.invoices,apiCallStatus:c.apisCallStatus.FetchInvoices})),E=(0,e.P1)(i,c=>({utxos:c.utxos,apiCallStatus:c.apisCallStatus.FetchUTXOs})),k=(0,e.P1)(i,c=>({activeChannels:c.activeChannels,pendingChannels:c.pendingChannels,inactiveChannels:c.inactiveChannels,apiCallStatus:c.apisCallStatus.FetchChannels})),w=(0,e.P1)(i,c=>({balance:c.balance,apiCallStatus:c.apisCallStatus.FetchBalance})),z=(0,e.P1)(i,c=>({localRemoteBalance:c.localRemoteBalance,apiCallStatus:c.apisCallStatus.FetchLocalRemoteBalance})),U=(0,e.P1)(i,c=>({forwardingHistory:c.forwardingHistory,apiCallStatus:c.apisCallStatus.FetchForwardingHistoryS})),W=(0,e.P1)(i,c=>({failedForwardingHistory:c.failedForwardingHistory,apiCallStatus:c.apisCallStatus.FetchForwardingHistoryF})),ne=(0,e.P1)(i,c=>({localFailedForwardingHistory:c.localFailedForwardingHistory,apiCallStatus:c.apisCallStatus.FetchForwardingHistoryL})),Q=(0,e.P1)(i,c=>({information:c.information,nodeSettings:c.nodeSettings,balance:c.balance})),le=(0,e.P1)(i,c=>({information:c.information,balance:c.balance,numPeers:c.peers.length})),q=(0,e.P1)(i,c=>({information:c.information,balance:c.balance})),ie=(0,e.P1)(i,c=>({information:c.information,nodeSettings:c.nodeSettings,apisCallStatus:[c.apisCallStatus.FetchInfo,c.apisCallStatus.FetchForwardingHistoryS]})),se=(0,e.P1)(i,c=>({offers:c.offers,apiCallStatus:c.apisCallStatus.FetchOffers})),J=(0,e.P1)(i,c=>({offersBookmarks:c.offersBookmarks,apiCallStatus:c.apisCallStatus.FetchOfferBookmarks})),r=((0,e.P1)(i,c=>({swapOuts:c.swapOuts,apiCallStatus:c.apisCallStatus.FetchSwaps})),(0,e.P1)(i,c=>({swapIns:c.swapIns,apiCallStatus:c.apisCallStatus.FetchSwaps})),(0,e.P1)(i,c=>({totalSwapPeers:c.totalSwapPeers,swapPeers:c.swapPeers,apiCallStatus:c.apisCallStatus.FetchSwapPeers})));(0,e.P1)(i,c=>({swapRequests:c.swapRequests,apiCallStatus:c.apisCallStatus.FetchSwapRequests}))},5566:(He,j,p)=>{"use strict";p.d(j,{y:()=>ot});var e=p(8966),i=p(801),u=p(7579),b=p(2722),a=p(7731),y=p(9828),d=p(5e3),P=p(5043),D=p(62),T=p(7261),M=p(5620),A=p(7093),E=p(9808),k=p(3322),w=p(159),z=p(9224),U=p(9444),W=p(7238),ne=p(7423),Q=p(4834),le=p(773),q=p(3390),ie=p(6895);function se(Ie,Ae){if(1&Ie&&d._UZ(0,"qr-code",33),2&Ie){const ce=d.oxw();d.Q6J("value",(null==ce.invoice?null:ce.invoice.bolt11)||(null==ce.invoice?null:ce.invoice.bolt12))("size",ce.qrWidth)("errorCorrectionLevel","L")}}function J(Ie,Ae){1&Ie&&(d.TgZ(0,"span",34),d._uU(1,"N/A"),d.qZA())}const me=function(Ie){return{"mr-0":Ie}};function x(Ie,Ae){if(1&Ie&&d._UZ(0,"span",35),2&Ie){const ce=d.oxw();d.Q6J("ngClass",d.VKq(1,me,ce.screenSize===ce.screenSizeEnum.XS))}}function t(Ie,Ae){if(1&Ie&&d._UZ(0,"span",36),2&Ie){const ce=d.oxw();d.Q6J("ngClass",d.VKq(1,me,ce.screenSize===ce.screenSizeEnum.XS))}}function r(Ie,Ae){if(1&Ie&&d._UZ(0,"span",37),2&Ie){const ce=d.oxw();d.Q6J("ngClass",d.VKq(1,me,ce.screenSize===ce.screenSizeEnum.XS))}}function h(Ie,Ae){if(1&Ie&&d._UZ(0,"qr-code",33),2&Ie){const ce=d.oxw();d.Q6J("value",(null==ce.invoice?null:ce.invoice.bolt11)||(null==ce.invoice?null:ce.invoice.bolt12))("size",ce.qrWidth)("errorCorrectionLevel","L")}}function c(Ie,Ae){1&Ie&&(d.TgZ(0,"span",38),d._uU(1,"QR Code Not Applicable"),d.qZA())}function C(Ie,Ae){1&Ie&&d._UZ(0,"mat-divider",39),2&Ie&&d.Q6J("inset",!0)}function S(Ie,Ae){if(1&Ie&&(d.TgZ(0,"div",19)(1,"div",40),d._UZ(2,"fa-icon",41),d.TgZ(3,"span"),d._uU(4),d.qZA()()()),2&Ie){const ce=d.oxw();d.xp6(2),d.Q6J("icon",ce.faExclamationTriangle),d.xp6(2),d.Oqu(null==ce.invoice?null:ce.invoice.warning_capacity)}}function I(Ie,Ae){1&Ie&&(d.ynx(0),d._uU(1," (zero amount) "),d.BQk())}function _(Ie,Ae){1&Ie&&d._UZ(0,"span",47)}const n=function(){return[]};function g(Ie,Ae){if(1&Ie&&(d.TgZ(0,"div",43)(1,"div",44)(2,"span",45),d._uU(3),d.ALo(4,"number"),d.qZA(),d.YNc(5,_,1,0,"span",46),d.qZA()()),2&Ie){const ce=d.oxw(2);d.xp6(3),d.hij("",d.lcZ(4,2,(null==ce.invoice?null:ce.invoice.msatoshi_received)/1e3)," Sats"),d.xp6(2),d.Q6J("ngForOf",d.DdM(4,n).constructor(35))}}function V(Ie,Ae){if(1&Ie&&(d.TgZ(0,"div"),d._uU(1),d.ALo(2,"number"),d.qZA()),2&Ie){const ce=d.oxw(2);d.xp6(1),d.hij("",d.lcZ(2,1,(null==ce.invoice?null:ce.invoice.msatoshi_received)/1e3)," Sats")}}function R(Ie,Ae){if(1&Ie&&(d.ynx(0),d.YNc(1,g,6,5,"div",42),d.YNc(2,V,3,3,"div",23),d.BQk()),2&Ie){const ce=d.oxw();d.xp6(1),d.Q6J("ngIf",ce.flgInvoicePaid),d.xp6(1),d.Q6J("ngIf",!ce.flgInvoicePaid)}}function H(Ie,Ae){1&Ie&&(d.TgZ(0,"span"),d._uU(1,"-"),d.qZA())}function $(Ie,Ae){1&Ie&&d._UZ(0,"mat-spinner",49),2&Ie&&d.Q6J("diameter",20)}function fe(Ie,Ae){if(1&Ie&&(d.ynx(0),d.YNc(1,H,2,0,"span",23),d.YNc(2,$,1,1,"mat-spinner",48),d.BQk()),2&Ie){const ce=d.oxw();d.xp6(1),d.Q6J("ngIf","unpaid"!==(null==ce.invoice?null:ce.invoice.status)||!ce.flgVersionCompatible),d.xp6(1),d.Q6J("ngIf","unpaid"===(null==ce.invoice?null:ce.invoice.status)&&ce.flgVersionCompatible)}}function ye(Ie,Ae){if(1&Ie&&(d.TgZ(0,"div"),d._UZ(1,"mat-divider",25),d.TgZ(2,"div",19)(3,"div",26)(4,"h4",21),d._uU(5,"Payment Hash"),d.qZA(),d.TgZ(6,"span",24),d._uU(7),d.qZA()()(),d._UZ(8,"mat-divider",25),d.TgZ(9,"div",19)(10,"div",26)(11,"h4",21),d._uU(12,"Label"),d.qZA(),d.TgZ(13,"span",24),d._uU(14),d.qZA()()(),d._UZ(15,"mat-divider",25),d.qZA()),2&Ie){const ce=d.oxw();d.xp6(7),d.Oqu(null==ce.invoice?null:ce.invoice.payment_hash),d.xp6(7),d.Oqu(null==ce.invoice?null:ce.invoice.label)}}function ke(Ie,Ae){1&Ie&&(d.TgZ(0,"p"),d._uU(1,"Show Advanced"),d.qZA())}function Ee(Ie,Ae){1&Ie&&(d.TgZ(0,"p"),d._uU(1,"Hide Advanced"),d.qZA())}function te(Ie,Ae){if(1&Ie){const ce=d.EpF();d.TgZ(0,"button",50),d.NdJ("copied",function(xe){return d.CHM(ce),d.oxw().onCopyPayment(xe)}),d._uU(1,"Copy Invoice"),d.qZA()}if(2&Ie){const ce=d.oxw();d.Q6J("payload",(null==ce.invoice?null:ce.invoice.bolt11)||(null==ce.invoice?null:ce.invoice.bolt12))}}function ze(Ie,Ae){if(1&Ie){const ce=d.EpF();d.TgZ(0,"button",51),d.NdJ("click",function(){return d.CHM(ce),d.oxw().onClose()}),d._uU(1,"OK"),d.qZA()}}const be=function(Ie){return{"display-none":Ie}},Z=function(Ie){return{"xs-scroll-y":Ie}},Y=function(Ie,Ae){return{"mt-2":Ie,"mt-1":Ae}};let ot=(()=>{class Ie{constructor(ce,Te,xe,G,ee,ue){this.dialogRef=ce,this.data=Te,this.logger=xe,this.commonService=G,this.snackBar=ee,this.store=ue,this.faReceipt=i.dLy,this.faExclamationTriangle=i.eHv,this.showAdvanced=!1,this.newlyAdded=!1,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=a.cu,this.flgInvoicePaid=!1,this.flgVersionCompatible=!0,this.unSubs=[new u.x,new u.x,new u.x,new u.x,new u.x]}ngOnInit(){this.invoice=this.data.invoice,this.newlyAdded=!!this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS&&(this.qrWidth=220),this.store.select(y.ey).pipe((0,b.R)(this.unSubs[0])).subscribe(ce=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(ce.api_version,"0.6.0")}),this.store.select(y.gc).pipe((0,b.R)(this.unSubs[1])).subscribe(ce=>{const Te=this.invoice.status,xe=ce.listInvoices.invoices||[];this.invoice=null==xe?void 0:xe.find(G=>G.payment_hash===this.invoice.payment_hash),Te!==this.invoice.status&&"paid"===this.invoice.status&&(this.flgInvoicePaid=!0,setTimeout(()=>{this.flgInvoicePaid=!1},4e3)),this.logger.info(ce)})}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyPayment(ce){this.snackBar.open("Invoice copied."),this.logger.info("Copied Text: "+ce)}ngOnDestroy(){this.unSubs.forEach(ce=>{ce.next(null),ce.complete()})}}return Ie.\u0275fac=function(ce){return new(ce||Ie)(d.Y36(e.so),d.Y36(e.WI),d.Y36(P.mQ),d.Y36(D.v),d.Y36(T.ux),d.Y36(M.yh))},Ie.\u0275cmp=d.Xpm({type:Ie,selectors:[["rtl-cln-invoice-information"]],decls:72,vars:49,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","35",1,"modal-qr-code-container","padding-gap-large",3,"fxLayoutAlign","ngClass"],[3,"value","size","errorCorrectionLevel",4,"ngIf"],["class","font-size-300",4,"ngIf"],["fxFlex","65"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["class","dot green ml-1","matTooltip","Paid","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot yellow ml-1","matTooltip","Unpaid","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red ml-1","matTooltip","Expired","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large",3,"ngClass"],["fxLayout","column"],["fxFlex","30",1,"modal-qr-code-container","padding-gap",3,"fxLayoutAlign","ngClass"],["class","font-size-120",4,"ngIf"],["class","my-1",3,"inset",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[4,"ngIf"],[1,"overflow-wrap","foreground-secondary-text"],[1,"w-100","my-1"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","end center",3,"ngClass"],["mat-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["hideAdvancedText",""],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click",4,"ngIf"],[3,"value","size","errorCorrectionLevel"],[1,"font-size-300"],["matTooltip","Paid","matTooltipPosition","right",1,"dot","green","ml-1",3,"ngClass"],["matTooltip","Unpaid","matTooltipPosition","right",1,"dot","yellow","ml-1",3,"ngClass"],["matTooltip","Expired","matTooltipPosition","right",1,"dot","red","ml-1",3,"ngClass"],[1,"font-size-120"],[1,"my-1",3,"inset"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["class","invoice-animation-container",4,"ngIf"],[1,"invoice-animation-container"],[1,"invoice-animation-div"],[1,"wiggle"],["class","particles-circle",4,"ngFor","ngForOf"],[1,"particles-circle"],[3,"diameter",4,"ngIf"],[3,"diameter"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click"]],template:function(ce,Te){if(1&ce&&(d.TgZ(0,"div",0)(1,"div",1),d.YNc(2,se,1,3,"qr-code",2),d.YNc(3,J,2,0,"span",3),d.qZA(),d.TgZ(4,"div",4)(5,"mat-card-header",5)(6,"div",6),d._UZ(7,"fa-icon",7),d.TgZ(8,"span",8),d._uU(9),d.YNc(10,x,1,3,"span",9),d.YNc(11,t,1,3,"span",10),d.YNc(12,r,1,3,"span",11),d.qZA()(),d.TgZ(13,"button",12),d.NdJ("click",function(){return Te.onClose()}),d._uU(14,"X"),d.qZA()(),d.TgZ(15,"mat-card-content",13)(16,"div",14)(17,"div",15),d.YNc(18,h,1,3,"qr-code",2),d.YNc(19,c,2,0,"span",16),d.qZA(),d.YNc(20,C,1,1,"mat-divider",17),d.YNc(21,S,5,2,"div",18),d.TgZ(22,"div",19)(23,"div",20)(24,"h4",21),d._uU(25),d.qZA(),d.TgZ(26,"span",22),d._uU(27),d.ALo(28,"number"),d.YNc(29,I,2,0,"ng-container",23),d.qZA()(),d.TgZ(30,"div",20)(31,"h4",21),d._uU(32,"Amount Received"),d.qZA(),d.TgZ(33,"span",24),d.YNc(34,R,3,2,"ng-container",23),d.YNc(35,fe,3,2,"ng-container",23),d.qZA()()(),d._UZ(36,"mat-divider",25),d.TgZ(37,"div",19)(38,"div",20)(39,"h4",21),d._uU(40,"Date Expiry"),d.qZA(),d.TgZ(41,"span",22),d._uU(42),d.ALo(43,"date"),d.qZA()(),d.TgZ(44,"div",20)(45,"h4",21),d._uU(46,"Date Settled"),d.qZA(),d.TgZ(47,"span",22),d._uU(48),d.ALo(49,"date"),d.qZA()()(),d._UZ(50,"mat-divider",25),d.TgZ(51,"div",19)(52,"div",26)(53,"h4",21),d._uU(54,"Description"),d.qZA(),d.TgZ(55,"span",22),d._uU(56),d.qZA()()(),d._UZ(57,"mat-divider",25),d.TgZ(58,"div",19)(59,"div",26)(60,"h4",21),d._uU(61),d.qZA(),d.TgZ(62,"span",24),d._uU(63),d.qZA()()(),d.YNc(64,ye,16,2,"div",23),d.TgZ(65,"div",27)(66,"button",28),d.NdJ("click",function(){return Te.onShowAdvanced()}),d.YNc(67,ke,2,0,"p",29),d.YNc(68,Ee,2,0,"ng-template",null,30,d.W1O),d.qZA(),d.YNc(70,te,2,1,"button",31),d.YNc(71,ze,2,0,"button",32),d.qZA()()()()()),2&ce){const xe=d.MAs(69);d.xp6(1),d.Q6J("fxLayoutAlign",null!=Te.invoice&&Te.invoice.bolt11&&""!==(null==Te.invoice?null:Te.invoice.bolt11)||null!=Te.invoice&&Te.invoice.bolt12&&""!==(null==Te.invoice?null:Te.invoice.bolt12)?"center start":"center center")("ngClass",d.VKq(40,be,Te.screenSize===Te.screenSizeEnum.XS||Te.screenSize===Te.screenSizeEnum.SM)),d.xp6(1),d.Q6J("ngIf",(null==Te.invoice?null:Te.invoice.bolt11)&&""!==(null==Te.invoice?null:Te.invoice.bolt11)||(null==Te.invoice?null:Te.invoice.bolt12)&&""!==(null==Te.invoice?null:Te.invoice.bolt12)),d.xp6(1),d.Q6J("ngIf",!(null!=Te.invoice&&Te.invoice.bolt11||null!=Te.invoice&&Te.invoice.bolt12)),d.xp6(4),d.Q6J("icon",Te.faReceipt),d.xp6(2),d.hij(" ",Te.screenSize===Te.screenSizeEnum.XS?Te.newlyAdded?"Created":"Invoice":Te.newlyAdded?"Invoice Created":"Invoice Information"," "),d.xp6(1),d.Q6J("ngIf","paid"===(null==Te.invoice?null:Te.invoice.status)),d.xp6(1),d.Q6J("ngIf","unpaid"===(null==Te.invoice?null:Te.invoice.status)),d.xp6(1),d.Q6J("ngIf","expired"===(null==Te.invoice?null:Te.invoice.status)),d.xp6(3),d.Q6J("ngClass",d.VKq(42,Z,Te.screenSize===Te.screenSizeEnum.XS)),d.xp6(2),d.Q6J("fxLayoutAlign",null!=Te.invoice&&Te.invoice.bolt11&&""!==(null==Te.invoice?null:Te.invoice.bolt11)||null!=Te.invoice&&Te.invoice.bolt12&&""!==(null==Te.invoice?null:Te.invoice.bolt12)?"center start":"center center")("ngClass",d.VKq(44,be,Te.screenSize!==Te.screenSizeEnum.XS&&Te.screenSize!==Te.screenSizeEnum.SM)),d.xp6(1),d.Q6J("ngIf",(null==Te.invoice?null:Te.invoice.bolt11)&&""!==(null==Te.invoice?null:Te.invoice.bolt11)||(null==Te.invoice?null:Te.invoice.bolt12)&&""!==(null==Te.invoice?null:Te.invoice.bolt12)),d.xp6(1),d.Q6J("ngIf",!(null!=Te.invoice&&Te.invoice.bolt11||null!=Te.invoice&&Te.invoice.bolt12)),d.xp6(1),d.Q6J("ngIf",Te.screenSize===Te.screenSizeEnum.XS||Te.screenSize===Te.screenSizeEnum.SM),d.xp6(1),d.Q6J("ngIf",null==Te.invoice?null:Te.invoice.warning_capacity),d.xp6(4),d.Oqu(Te.screenSize===Te.screenSizeEnum.XS?"Amount":"Amount Requested"),d.xp6(2),d.hij(" ",d.lcZ(28,32,(null==Te.invoice?null:Te.invoice.msatoshi)/1e3||0)," Sats"),d.xp6(2),d.Q6J("ngIf",!(null!=Te.invoice&&Te.invoice.msatoshi)||"0"===(null==Te.invoice?null:Te.invoice.msatoshi)),d.xp6(5),d.Q6J("ngIf","paid"===(null==Te.invoice?null:Te.invoice.status)),d.xp6(1),d.Q6J("ngIf","paid"!==(null==Te.invoice?null:Te.invoice.status)),d.xp6(7),d.Oqu(d.xi3(43,34,1e3*(null==Te.invoice?null:Te.invoice.expires_at),"dd/MMM/y HH:mm")),d.xp6(6),d.Oqu(d.xi3(49,37,1e3*(null==Te.invoice?null:Te.invoice.paid_at),"dd/MMM/y HH:mm")||"-"),d.xp6(8),d.Oqu((null==Te.invoice?null:Te.invoice.description)||"-"),d.xp6(5),d.hij("",null!=Te.invoice&&Te.invoice.bolt12?"Bolt12":null!=Te.invoice&&Te.invoice.bolt11&&!Te.invoice.label.includes("keysend-")?"Bolt11":"Keysend"," Invoice"),d.xp6(2),d.Oqu((null==Te.invoice?null:Te.invoice.bolt11)||(null==Te.invoice?null:Te.invoice.bolt12)),d.xp6(1),d.Q6J("ngIf",Te.showAdvanced),d.xp6(1),d.Q6J("ngClass",d.WLB(46,Y,!Te.showAdvanced,Te.showAdvanced)),d.xp6(2),d.Q6J("ngIf",!Te.showAdvanced)("ngIfElse",xe),d.xp6(3),d.Q6J("ngIf",(null==Te.invoice?null:Te.invoice.bolt11)&&""!==(null==Te.invoice?null:Te.invoice.bolt11)||(null==Te.invoice?null:Te.invoice.bolt12)&&""!==(null==Te.invoice?null:Te.invoice.bolt12)),d.xp6(1),d.Q6J("ngIf",!(null!=Te.invoice&&Te.invoice.bolt11||null!=Te.invoice&&Te.invoice.bolt12))}},directives:[A.xw,A.Wh,A.yH,E.mk,k.oO,E.O5,w.uU,z.dk,U.BN,W.gM,ne.lW,z.dn,Q.d,E.sg,le.Ou,q.h,ie.y],pipes:[E.JJ,E.uU],styles:[""]}),Ie})()},1462:(He,j,p)=>{"use strict";p.d(j,{k:()=>H});var e=p(8966),i=p(801),u=p(7579),b=p(2722),a=p(7731),y=p(9828),d=p(5e3),P=p(5043),D=p(62),T=p(7261),M=p(5620),A=p(8104),E=p(7093),k=p(9808),w=p(3322),z=p(159),U=p(9224),W=p(9444),ne=p(7423),Q=p(4834),le=p(3390),q=p(6895);function ie($,fe){if(1&$&&d._UZ(0,"qr-code",28),2&$){const ye=d.oxw();d.Q6J("value",null==ye.offer?null:ye.offer.bolt12)("size",ye.qrWidth)("errorCorrectionLevel","L")}}function se($,fe){1&$&&(d.TgZ(0,"span",29),d._uU(1,"N/A"),d.qZA())}function J($,fe){if(1&$&&d._UZ(0,"qr-code",28),2&$){const ye=d.oxw();d.Q6J("value",null==ye.offer?null:ye.offer.bolt12)("size",ye.qrWidth)("errorCorrectionLevel","L")}}function me($,fe){1&$&&(d.TgZ(0,"span",30),d._uU(1,"QR Code Not Applicable"),d.qZA())}function x($,fe){1&$&&d._UZ(0,"mat-divider",31),2&$&&d.Q6J("inset",!0)}function t($,fe){1&$&&d._UZ(0,"mat-divider",19)}function r($,fe){if(1&$&&(d.TgZ(0,"div",15)(1,"div",16)(2,"h4",17),d._uU(3,"Used"),d.qZA(),d.TgZ(4,"span",18),d._uU(5),d.qZA()(),d.TgZ(6,"div",16)(7,"h4",17),d._uU(8,"Single Use"),d.qZA(),d.TgZ(9,"span",18),d._uU(10),d.qZA()()()),2&$){const ye=d.oxw(2);d.xp6(5),d.hij(" ",null!=ye.offer&&ye.offer.used?null!=ye.offer&&ye.offer.used?"Yes":"No":"N/K"," "),d.xp6(5),d.hij(" ",null!=ye.offer&&ye.offer.single_use?null!=ye.offer&&ye.offer.single_use?"Yes":"No":"N/K"," ")}}function h($,fe){1&$&&d._UZ(0,"mat-divider",19)}function c($,fe){if(1&$&&(d.TgZ(0,"div",15)(1,"div",20)(2,"h4",17),d._uU(3,"Vendor"),d.qZA(),d.TgZ(4,"span",34),d._uU(5),d.qZA()()()),2&$){const ye=d.oxw(2);d.xp6(5),d.Oqu((null==ye.offerDecoded?null:ye.offerDecoded.vendor)||(null==ye.offerDecoded?null:ye.offerDecoded.issuer))}}function C($,fe){if(1&$&&(d.TgZ(0,"div"),d.YNc(1,t,1,0,"mat-divider",32),d.YNc(2,r,11,2,"div",33),d.YNc(3,h,1,0,"mat-divider",32),d.YNc(4,c,6,1,"div",33),d._UZ(5,"mat-divider",19),d.TgZ(6,"div",15)(7,"div",20)(8,"h4",17),d._uU(9,"Offer ID"),d.qZA(),d.TgZ(10,"span",18),d._uU(11),d.qZA()()(),d._UZ(12,"mat-divider",19),d.qZA()),2&$){const ye=d.oxw();d.xp6(1),d.Q6J("ngIf",(null==ye.offer?null:ye.offer.used)||(null==ye.offer?null:ye.offer.single_use)),d.xp6(1),d.Q6J("ngIf",(null==ye.offer?null:ye.offer.used)||(null==ye.offer?null:ye.offer.single_use)),d.xp6(1),d.Q6J("ngIf",(null==ye.offerDecoded?null:ye.offerDecoded.vendor)||(null==ye.offerDecoded?null:ye.offerDecoded.issuer)),d.xp6(1),d.Q6J("ngIf",(null==ye.offerDecoded?null:ye.offerDecoded.vendor)||(null==ye.offerDecoded?null:ye.offerDecoded.issuer)),d.xp6(7),d.Oqu(ye.offerDecoded.offer_id)}}function S($,fe){1&$&&(d.TgZ(0,"p"),d._uU(1,"Show Advanced"),d.qZA())}function I($,fe){1&$&&(d.TgZ(0,"p"),d._uU(1,"Hide Advanced"),d.qZA())}function _($,fe){if(1&$){const ye=d.EpF();d.TgZ(0,"button",35),d.NdJ("copied",function(Ee){return d.CHM(ye),d.oxw().onCopyOffer(Ee)}),d._uU(1,"Copy Offer"),d.qZA()}if(2&$){const ye=d.oxw();d.Q6J("payload",null==ye.offer?null:ye.offer.bolt12)}}function n($,fe){if(1&$){const ye=d.EpF();d.TgZ(0,"button",36),d.NdJ("click",function(){return d.CHM(ye),d.oxw().onClose()}),d._uU(1,"OK"),d.qZA()}}const g=function($){return{"display-none":$}},V=function($){return{"xs-scroll-y":$}},R=function($,fe){return{"mt-2":$,"mt-1":fe}};let H=(()=>{class ${constructor(ye,ke,Ee,te,ze,be,Z){this.dialogRef=ye,this.data=ke,this.logger=Ee,this.commonService=te,this.snackBar=ze,this.store=be,this.dataService=Z,this.faReceipt=i.dLy,this.faExclamationTriangle=i.eHv,this.showAdvanced=!1,this.newlyAdded=!1,this.offerDecoded={},this.qrWidth=240,this.screenSize="",this.screenSizeEnum=a.cu,this.flgOfferPaid=!1,this.flgVersionCompatible=!0,this.unSubs=[new u.x,new u.x,new u.x,new u.x,new u.x]}ngOnInit(){this.offer=this.data.offer,this.newlyAdded=!!this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS&&(this.qrWidth=220),this.store.select(y.ey).pipe((0,b.R)(this.unSubs[0])).subscribe(ye=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(ye.api_version,"0.6.0")}),this.dataService.decodePayment(this.offer.bolt12,!0).pipe((0,b.R)(this.unSubs[1])).subscribe(ye=>{var ke;this.offerDecoded=ye,this.offerDecoded.offer_id&&!this.offerDecoded.amount_msat?(this.offerDecoded.amount_msat="0msat",this.offerDecoded.amount=0):this.offerDecoded.amount=this.offerDecoded.amount?+this.offerDecoded.amount:this.offerDecoded.amount_msat?+(null===(ke=this.offerDecoded.amount_msat)||void 0===ke?void 0:ke.slice(0,-4)):null})}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyOffer(ye){this.snackBar.open("Offer copied."),this.logger.info("Copied Text: "+ye)}ngOnDestroy(){this.unSubs.forEach(ye=>{ye.next(null),ye.complete()})}}return $.\u0275fac=function(ye){return new(ye||$)(d.Y36(e.so),d.Y36(e.WI),d.Y36(P.mQ),d.Y36(D.v),d.Y36(T.ux),d.Y36(M.yh),d.Y36(A.D))},$.\u0275cmp=d.Xpm({type:$,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(ye,ke){if(1&ye&&(d.TgZ(0,"div",0)(1,"div",1),d.YNc(2,ie,1,3,"qr-code",2),d.YNc(3,se,2,0,"span",3),d.qZA(),d.TgZ(4,"div",4)(5,"mat-card-header",5)(6,"div",6),d._UZ(7,"fa-icon",7),d.TgZ(8,"span",8),d._uU(9),d.qZA()(),d.TgZ(10,"button",9),d.NdJ("click",function(){return ke.onClose()}),d._uU(11,"X"),d.qZA()(),d.TgZ(12,"mat-card-content",10)(13,"div",11)(14,"div",12),d.YNc(15,J,1,3,"qr-code",2),d.YNc(16,me,2,0,"span",13),d.qZA(),d.YNc(17,x,1,1,"mat-divider",14),d.TgZ(18,"div",15)(19,"div",16)(20,"h4",17),d._uU(21,"Amount Requested (Sats)"),d.qZA(),d.TgZ(22,"span",18),d._uU(23),d.ALo(24,"number"),d.qZA()(),d.TgZ(25,"div",16)(26,"h4",17),d._uU(27,"Active"),d.qZA(),d.TgZ(28,"span",18),d._uU(29),d.qZA()()(),d._UZ(30,"mat-divider",19),d.TgZ(31,"div",15)(32,"div",20)(33,"h4",17),d._uU(34,"Description"),d.qZA(),d.TgZ(35,"span",18),d._uU(36),d.qZA()()(),d._UZ(37,"mat-divider",19),d.TgZ(38,"div",15)(39,"div",20)(40,"h4",17),d._uU(41,"Offer Request"),d.qZA(),d.TgZ(42,"span",18),d._uU(43),d.qZA()()(),d.YNc(44,C,13,5,"div",21),d.TgZ(45,"div",22)(46,"button",23),d.NdJ("click",function(){return ke.onShowAdvanced()}),d.YNc(47,S,2,0,"p",24),d.YNc(48,I,2,0,"ng-template",null,25,d.W1O),d.qZA(),d.YNc(50,_,2,1,"button",26),d.YNc(51,n,2,0,"button",27),d.qZA()()()()()),2&ye){const Ee=d.MAs(49);d.xp6(1),d.Q6J("fxLayoutAlign",null!=ke.offer&&ke.offer.bolt12&&""!==(null==ke.offer?null:ke.offer.bolt12)?"center start":"center center")("ngClass",d.VKq(24,g,ke.screenSize===ke.screenSizeEnum.XS||ke.screenSize===ke.screenSizeEnum.SM)),d.xp6(1),d.Q6J("ngIf",(null==ke.offer?null:ke.offer.bolt12)&&""!==(null==ke.offer?null:ke.offer.bolt12)),d.xp6(1),d.Q6J("ngIf",!(null!=ke.offer&&ke.offer.bolt12)||""===(null==ke.offer?null:ke.offer.bolt12)),d.xp6(4),d.Q6J("icon",ke.faReceipt),d.xp6(2),d.Oqu(ke.screenSize===ke.screenSizeEnum.XS?ke.newlyAdded?"Created":"Offer":ke.newlyAdded?"Offer Created":"Offer Information"),d.xp6(3),d.Q6J("ngClass",d.VKq(26,V,ke.screenSize===ke.screenSizeEnum.XS)),d.xp6(2),d.Q6J("fxLayoutAlign",null!=ke.offer&&ke.offer.bolt12&&""!==(null==ke.offer?null:ke.offer.bolt12)?"center start":"center center")("ngClass",d.VKq(28,g,ke.screenSize!==ke.screenSizeEnum.XS&&ke.screenSize!==ke.screenSizeEnum.SM)),d.xp6(1),d.Q6J("ngIf",(null==ke.offer?null:ke.offer.bolt12)&&""!==(null==ke.offer?null:ke.offer.bolt12)),d.xp6(1),d.Q6J("ngIf",!(null!=ke.offer&&ke.offer.bolt12)||""===(null==ke.offer?null:ke.offer.bolt12)),d.xp6(1),d.Q6J("ngIf",ke.screenSize===ke.screenSizeEnum.XS||ke.screenSize===ke.screenSizeEnum.SM),d.xp6(6),d.hij(" ",null!=ke.offerDecoded&&ke.offerDecoded.amount_msat&&0!==(null==ke.offerDecoded?null:ke.offerDecoded.amount)?d.lcZ(24,22,(null==ke.offerDecoded?null:ke.offerDecoded.amount)/1e3):"Open Offer"," "),d.xp6(6),d.hij(" ",null!=ke.offer&&ke.offer.active?null!=ke.offer&&ke.offer.active?"Active":"Inactive":"N/K"," "),d.xp6(7),d.hij(" ",null==ke.offerDecoded?null:ke.offerDecoded.description," "),d.xp6(7),d.Oqu(null==ke.offer?null:ke.offer.bolt12),d.xp6(1),d.Q6J("ngIf",ke.showAdvanced),d.xp6(1),d.Q6J("ngClass",d.WLB(30,R,!ke.showAdvanced,ke.showAdvanced)),d.xp6(2),d.Q6J("ngIf",!ke.showAdvanced)("ngIfElse",Ee),d.xp6(3),d.Q6J("ngIf",(null==ke.offer?null:ke.offer.bolt12)&&""!==(null==ke.offer?null:ke.offer.bolt12)),d.xp6(1),d.Q6J("ngIf",!(null!=ke.offer&&ke.offer.bolt12)||""===(null==ke.offer?null:ke.offer.bolt12))}},directives:[E.xw,E.Wh,E.yH,k.mk,w.oO,k.O5,z.uU,U.dk,W.BN,ne.lW,U.dn,Q.d,le.h,q.y],pipes:[k.JJ],styles:[""]}),$})()},2994:(He,j,p)=>{"use strict";p.d(j,{$W:()=>W,BL:()=>r,Bw:()=>w,CX:()=>d,DJ:()=>Z,EK:()=>se,El:()=>Q,Fd:()=>b,GD:()=>ie,HG:()=>U,HI:()=>C,Iy:()=>R,Lf:()=>V,Nr:()=>fe,OG:()=>h,On:()=>z,QZ:()=>u,RX:()=>D,SN:()=>P,Sf:()=>te,TM:()=>n,TW:()=>A,UR:()=>T,WM:()=>$,WO:()=>S,YP:()=>ke,YX:()=>x,Z$:()=>ye,Z8:()=>ne,Zr:()=>a,_E:()=>J,aL:()=>Ee,cQ:()=>c,eN:()=>M,i:()=>E,iL:()=>k,iz:()=>y,kL:()=>I,mC:()=>g,n7:()=>ze,oV:()=>_,pW:()=>t,ti:()=>Y});var e=p(5620),i=p(7731);const u=(0,e.PH)(i.lr.UPDATE_API_CALL_STATUS_ECL,(0,e.Ky)()),b=(0,e.PH)(i.lr.RESET_ECL_STORE,(0,e.Ky)()),a=(0,e.PH)(i.lr.SET_CHILD_NODE_SETTINGS_ECL,(0,e.Ky)()),y=(0,e.PH)(i.lr.FETCH_INFO_ECL,(0,e.Ky)()),d=(0,e.PH)(i.lr.SET_INFO_ECL,(0,e.Ky)()),P=(0,e.PH)(i.lr.FETCH_FEES_ECL),D=(0,e.PH)(i.lr.SET_FEES_ECL,(0,e.Ky)()),T=(0,e.PH)(i.lr.FETCH_CHANNELS_ECL,(0,e.Ky)()),M=(0,e.PH)(i.lr.SET_ACTIVE_CHANNELS_ECL,(0,e.Ky)()),A=(0,e.PH)(i.lr.SET_PENDING_CHANNELS_ECL,(0,e.Ky)()),E=(0,e.PH)(i.lr.SET_INACTIVE_CHANNELS_ECL,(0,e.Ky)()),k=(0,e.PH)(i.lr.FETCH_ONCHAIN_BALANCE_ECL),w=(0,e.PH)(i.lr.SET_ONCHAIN_BALANCE_ECL,(0,e.Ky)()),z=(0,e.PH)(i.lr.SET_LIGHTNING_BALANCE_ECL,(0,e.Ky)()),U=(0,e.PH)(i.lr.SET_CHANNELS_STATUS_ECL,(0,e.Ky)()),W=(0,e.PH)(i.lr.FETCH_PEERS_ECL),ne=(0,e.PH)(i.lr.SET_PEERS_ECL,(0,e.Ky)()),Q=(0,e.PH)(i.lr.SAVE_NEW_PEER_ECL,(0,e.Ky)()),ie=((0,e.PH)(i.lr.NEWLY_ADDED_PEER_ECL,(0,e.Ky)()),(0,e.PH)(i.lr.ADD_PEER_ECL,(0,e.Ky)()),(0,e.PH)(i.lr.DETACH_PEER_ECL,(0,e.Ky)())),se=(0,e.PH)(i.lr.REMOVE_PEER_ECL,(0,e.Ky)()),J=(0,e.PH)(i.lr.GET_NEW_ADDRESS_ECL),x=((0,e.PH)(i.lr.SET_NEW_ADDRESS_ECL,(0,e.Ky)()),(0,e.PH)(i.lr.SAVE_NEW_CHANNEL_ECL,(0,e.Ky)())),t=(0,e.PH)(i.lr.UPDATE_CHANNEL_ECL,(0,e.Ky)()),r=(0,e.PH)(i.lr.CLOSE_CHANNEL_ECL,(0,e.Ky)()),h=(0,e.PH)(i.lr.REMOVE_CHANNEL_ECL,(0,e.Ky)()),c=(0,e.PH)(i.lr.FETCH_PAYMENTS_ECL),C=(0,e.PH)(i.lr.SET_PAYMENTS_ECL,(0,e.Ky)()),S=(0,e.PH)(i.lr.GET_QUERY_ROUTES_ECL,(0,e.Ky)()),I=(0,e.PH)(i.lr.SET_QUERY_ROUTES_ECL,(0,e.Ky)()),_=(0,e.PH)(i.lr.SEND_PAYMENT_ECL,(0,e.Ky)()),n=(0,e.PH)(i.lr.SEND_PAYMENT_STATUS_ECL,(0,e.Ky)()),g=(0,e.PH)(i.lr.FETCH_TRANSACTIONS_ECL),V=(0,e.PH)(i.lr.SET_TRANSACTIONS_ECL,(0,e.Ky)()),R=(0,e.PH)(i.lr.SEND_ONCHAIN_FUNDS_ECL,(0,e.Ky)()),$=((0,e.PH)(i.lr.SEND_ONCHAIN_FUNDS_RES_ECL,(0,e.Ky)()),(0,e.PH)(i.lr.FETCH_INVOICES_ECL)),fe=(0,e.PH)(i.lr.SET_INVOICES_ECL,(0,e.Ky)()),ye=(0,e.PH)(i.lr.CREATE_INVOICE_ECL,(0,e.Ky)()),ke=(0,e.PH)(i.lr.ADD_INVOICE_ECL,(0,e.Ky)()),Ee=(0,e.PH)(i.lr.UPDATE_INVOICE_ECL,(0,e.Ky)()),te=(0,e.PH)(i.lr.PEER_LOOKUP_ECL,(0,e.Ky)()),ze=(0,e.PH)(i.lr.INVOICE_LOOKUP_ECL,(0,e.Ky)()),Z=((0,e.PH)(i.lr.SET_LOOKUP_ECL,(0,e.Ky)()),(0,e.PH)(i.lr.UPDATE_CHANNEL_STATE_ECL,(0,e.Ky)())),Y=(0,e.PH)(i.lr.UPDATE_RELAYED_PAYMENT_ECL,(0,e.Ky)())},3289:(He,j,p)=>{"use strict";p.d(j,{o:()=>se});var e=p(6642),i=p(7579),u=p(9646),b=p(5577),a=p(2722),y=p(4004),d=p(262),P=p(2340),D=p(1786),T=p(7731),M=p(7861),A=p(7766),E=p(2994),k=p(2501),w=p(5e3),z=p(8138),U=p(5620),W=p(5986),ne=p(62),Q=p(5043),le=p(1402),q=p(7998),ie=p(9808);let se=(()=>{class J{constructor(x,t,r,h,c,C,S,I,_){this.actions=x,this.httpClient=t,this.store=r,this.sessionService=h,this.commonService=c,this.logger=C,this.router=S,this.wsService=I,this.location=_,this.CHILD_API_URL=P.T5+"/ecl",this.flgInitialized=!1,this.flgReceivedPaymentUpdateFromWS=!1,this.latestPaymentRes="",this.rawChannelsList=[],this.unSubs=[new i.x,new i.x,new i.x],this.infoFetchECL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(T.lr.FETCH_INFO_ECL),(0,b.z)(n=>(this.flgInitialized=!1,this.store.dispatch((0,M.lC)({payload:this.CHILD_API_URL})),this.store.dispatch((0,M.ac)({payload:T.m6.GET_NODE_INFO})),this.store.dispatch((0,E.QZ)({payload:{action:"FetchInfo",status:T.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.GETINFO_API).pipe((0,a.R)(this.actions.pipe((0,e.l4)(T.pg.SET_SELECTED_NODE))),(0,y.U)(g=>(this.logger.info(g),this.initializeRemainingData(g,n.payload.loadPage),this.store.dispatch((0,E.QZ)({payload:{action:"FetchInfo",status:T.Bn.COMPLETED}})),this.store.dispatch((0,M.uO)({payload:T.m6.GET_NODE_INFO})),{type:T.lr.SET_INFO_ECL,payload:g||{}})),(0,d.K)(g=>{const V=this.commonService.extractErrorCode(g),R=503===V?"Unable to Connect to Eclair Server.":this.commonService.extractErrorMessage(g);return this.router.navigate(["/error"],{state:{errorCode:V,errorMessage:R}}),this.handleErrorWithoutAlert("FetchInfo",T.m6.GET_NODE_INFO,"Fetching Node Info Failed.",{status:V,error:R}),(0,u.of)({type:T.pg.VOID})})))))),this.fetchFees=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(T.lr.FETCH_FEES_ECL),(0,b.z)(()=>(this.store.dispatch((0,E.QZ)({payload:{action:"FetchFees",status:T.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.FEES_API+"/fees").pipe((0,y.U)(n=>(this.logger.info(n),this.store.dispatch((0,E.QZ)({payload:{action:"FetchFees",status:T.Bn.COMPLETED}})),{type:T.lr.SET_FEES_ECL,payload:n||{}})),(0,d.K)(n=>(this.handleErrorWithoutAlert("FetchFees",T.m6.NO_SPINNER,"Fetching Fees Failed.",n),(0,u.of)({type:T.pg.VOID})))))))),this.fetchPayments=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(T.lr.FETCH_PAYMENTS_ECL),(0,b.z)(()=>(this.store.dispatch((0,E.QZ)({payload:{action:"FetchPayments",status:T.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.FEES_API+"/payments").pipe((0,y.U)(n=>(this.logger.info(n),this.store.dispatch((0,E.QZ)({payload:{action:"FetchPayments",status:T.Bn.COMPLETED}})),{type:T.lr.SET_PAYMENTS_ECL,payload:n||{}})),(0,d.K)(n=>(this.handleErrorWithoutAlert("FetchPayments",T.m6.NO_SPINNER,"Fetching Payments Failed.",n),(0,u.of)({type:T.pg.VOID})))))))),this.channelsFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(T.lr.FETCH_CHANNELS_ECL),(0,b.z)(n=>(this.store.dispatch((0,E.QZ)({payload:{action:"FetchChannels",status:T.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.CHANNELS_API).pipe((0,y.U)(g=>(this.logger.info(g),this.rawChannelsList=g,this.setChannelsAndStatusAndBalances(),this.store.dispatch((0,E.QZ)({payload:{action:"FetchChannels",status:T.Bn.COMPLETED}})),n.payload&&n.payload.fetchPayments&&this.store.dispatch((0,E.cQ)()),{type:T.pg.VOID})),(0,d.K)(g=>(this.handleErrorWithoutAlert("FetchChannels",T.m6.NO_SPINNER,"Fetching Channels Failed.",g),(0,u.of)({type:T.pg.VOID})))))))),this.fetchOnchainBalance=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(T.lr.FETCH_ONCHAIN_BALANCE_ECL),(0,b.z)(()=>(this.store.dispatch((0,E.QZ)({payload:{action:"FetchOnchainBalance",status:T.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.ON_CHAIN_API+"/balance"))),(0,y.U)(n=>(this.logger.info(n),this.store.dispatch((0,E.QZ)({payload:{action:"FetchOnchainBalance",status:T.Bn.COMPLETED}})),{type:T.lr.SET_ONCHAIN_BALANCE_ECL,payload:n||{}})),(0,d.K)(n=>(this.handleErrorWithoutAlert("FetchOnchainBalance",T.m6.NO_SPINNER,"Fetching Onchain Balances Failed.",n),(0,u.of)({type:T.pg.VOID}))))),this.peersFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(T.lr.FETCH_PEERS_ECL),(0,b.z)(()=>(this.store.dispatch((0,E.QZ)({payload:{action:"FetchPeers",status:T.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.PEERS_API).pipe((0,y.U)(n=>(this.logger.info(n),this.store.dispatch((0,E.QZ)({payload:{action:"FetchPeers",status:T.Bn.COMPLETED}})),{type:T.lr.SET_PEERS_ECL,payload:n||[]})),(0,d.K)(n=>(this.handleErrorWithoutAlert("FetchPeers",T.m6.NO_SPINNER,"Fetching Peers Failed.",n),(0,u.of)({type:T.pg.VOID})))))))),this.getNewAddress=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(T.lr.GET_NEW_ADDRESS_ECL),(0,b.z)(()=>(this.store.dispatch((0,M.ac)({payload:T.m6.GENERATE_NEW_ADDRESS})),this.httpClient.get(this.CHILD_API_URL+P.NZ.ON_CHAIN_API).pipe((0,y.U)(n=>(this.logger.info(n),this.store.dispatch((0,M.uO)({payload:T.m6.GENERATE_NEW_ADDRESS})),{type:T.lr.SET_NEW_ADDRESS_ECL,payload:n})),(0,d.K)(n=>(this.handleErrorWithAlert("GetNewAddress",T.m6.GENERATE_NEW_ADDRESS,"Generate New Address Failed",this.CHILD_API_URL+P.NZ.ON_CHAIN_API,n),(0,u.of)({type:T.pg.VOID})))))))),this.setNewAddress=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(T.lr.SET_NEW_ADDRESS_ECL),(0,y.U)(n=>(this.logger.info(n.payload),n.payload))),{dispatch:!1}),this.saveNewPeer=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(T.lr.SAVE_NEW_PEER_ECL),(0,b.z)(n=>(this.store.dispatch((0,M.ac)({payload:T.m6.CONNECT_PEER})),this.store.dispatch((0,E.QZ)({payload:{action:"SaveNewPeer",status:T.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+P.NZ.PEERS_API+(n.payload.id.includes("@")?"?uri=":"?nodeId=")+n.payload.id,{}).pipe((0,y.U)(g=>(this.logger.info(g),this.store.dispatch((0,E.QZ)({payload:{action:"SaveNewPeer",status:T.Bn.COMPLETED}})),g=g||[],this.store.dispatch((0,M.uO)({payload:T.m6.CONNECT_PEER})),this.store.dispatch((0,E.Z8)({payload:g})),{type:T.lr.NEWLY_ADDED_PEER_ECL,payload:{peer:g.find(V=>V.nodeId===(n.payload.id.includes("@")?n.payload.id.substring(0,n.payload.id.indexOf("@")):n.payload.id))}})),(0,d.K)(g=>(this.handleErrorWithoutAlert("SaveNewPeer",T.m6.CONNECT_PEER,"Peer Connection Failed.",g),(0,u.of)({type:T.pg.VOID})))))))),this.detachPeer=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(T.lr.DETACH_PEER_ECL),(0,b.z)(n=>(this.store.dispatch((0,M.ac)({payload:T.m6.DISCONNECT_PEER})),this.httpClient.delete(this.CHILD_API_URL+P.NZ.PEERS_API+"/"+n.payload.nodeId).pipe((0,y.U)(g=>(this.logger.info(g),this.store.dispatch((0,M.uO)({payload:T.m6.DISCONNECT_PEER})),this.store.dispatch((0,M.jW)({payload:"Disconnecting Peer!"})),{type:T.lr.REMOVE_PEER_ECL,payload:{nodeId:n.payload.nodeId}})),(0,d.K)(g=>(this.handleErrorWithAlert("DisconnectPeer",T.m6.DISCONNECT_PEER,"Unable to Detach Peer. Try again later.",this.CHILD_API_URL+P.NZ.PEERS_API+"/"+n.payload.nodeId,g),(0,u.of)({type:T.pg.VOID})))))))),this.openNewChannel=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(T.lr.SAVE_NEW_CHANNEL_ECL),(0,b.z)(n=>(this.store.dispatch((0,M.ac)({payload:T.m6.OPEN_CHANNEL})),this.store.dispatch((0,E.QZ)({payload:{action:"SaveNewChannel",status:T.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+P.NZ.CHANNELS_API,n.payload.feeRate&&n.payload.feeRate>0?{nodeId:n.payload.nodeId,fundingSatoshis:n.payload.amount,channelFlags:+!n.payload.private,fundingFeerateSatByte:n.payload.feeRate}:{nodeId:n.payload.nodeId,fundingSatoshis:n.payload.amount,channelFlags:+!n.payload.private}).pipe((0,y.U)(V=>(this.logger.info(V),this.store.dispatch((0,E.QZ)({payload:{action:"SaveNewChannel",status:T.Bn.COMPLETED}})),this.store.dispatch((0,E.$W)()),this.store.dispatch((0,E.iL)()),this.store.dispatch((0,M.uO)({payload:T.m6.OPEN_CHANNEL})),this.store.dispatch((0,M.jW)({payload:"Channel Added Successfully!"})),{type:T.lr.FETCH_CHANNELS_ECL,payload:{fetchPayments:!1}})),(0,d.K)(V=>(this.handleErrorWithoutAlert("SaveNewChannel",T.m6.OPEN_CHANNEL,"Opening Channel Failed.",V),(0,u.of)({type:T.pg.VOID})))))))),this.updateChannel=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(T.lr.UPDATE_CHANNEL_ECL),(0,b.z)(n=>{this.store.dispatch((0,M.ac)({payload:T.m6.UPDATE_CHAN_POLICY}));let g="?feeBaseMsat="+n.payload.baseFeeMsat+"&feeProportionalMillionths="+n.payload.feeRate;return g=n.payload.nodeIds?g+"&nodeIds="+n.payload.nodeIds:n.payload.nodeId?g+"&nodeId="+n.payload.nodeId:n.payload.channelIds?g+"&channelIds="+n.payload.channelIds:g+"&channelId="+n.payload.channelId,this.httpClient.post(this.CHILD_API_URL+P.NZ.CHANNELS_API+"/updateRelayFee"+g,{}).pipe((0,y.U)(V=>(this.logger.info(V),this.store.dispatch((0,M.uO)({payload:T.m6.UPDATE_CHAN_POLICY})),this.store.dispatch((0,M.jW)(n.payload.nodeIds||n.payload.channelIds?{payload:"Channels Updated Successfully."}:{payload:"Channel Updated Successfully!"})),{type:T.lr.FETCH_CHANNELS_ECL,payload:{fetchPayments:!1}})),(0,d.K)(V=>(this.handleErrorWithAlert("UpdateChannels",T.m6.UPDATE_CHAN_POLICY,"Update Channel Failed",this.CHILD_API_URL+P.NZ.CHANNELS_API,V),(0,u.of)({type:T.pg.VOID}))))}))),this.closeChannel=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(T.lr.CLOSE_CHANNEL_ECL),(0,b.z)(n=>(this.store.dispatch((0,M.ac)({payload:n.payload.force?T.m6.FORCE_CLOSE_CHANNEL:T.m6.CLOSE_CHANNEL})),this.httpClient.delete(this.CHILD_API_URL+P.NZ.CHANNELS_API+"?channelId="+n.payload.channelId+"&force="+n.payload.force).pipe((0,y.U)(g=>(this.logger.info(g),setTimeout(()=>{this.store.dispatch((0,M.uO)({payload:n.payload.force?T.m6.FORCE_CLOSE_CHANNEL:T.m6.CLOSE_CHANNEL})),this.store.dispatch((0,E.UR)({payload:{fetchPayments:!1}})),this.store.dispatch((0,M.jW)({payload:n.payload.force?"Channel Force Closed Successfully!":"Channel Closed Successfully!"}))},2e3),{type:T.pg.VOID})),(0,d.K)(g=>(this.handleErrorWithAlert("CloseChannel",n.payload.force?T.m6.FORCE_CLOSE_CHANNEL:T.m6.CLOSE_CHANNEL,"Unable to Close Channel. Try again later.",this.CHILD_API_URL+P.NZ.CHANNELS_API,g),(0,u.of)({type:T.pg.VOID})))))))),this.queryRoutesFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(T.lr.GET_QUERY_ROUTES_ECL),(0,b.z)(n=>this.httpClient.get(this.CHILD_API_URL+P.NZ.PAYMENTS_API+"/route?nodeId="+n.payload.nodeId+"&amountMsat="+n.payload.amount).pipe((0,y.U)(g=>(this.logger.info(g),{type:T.lr.SET_QUERY_ROUTES_ECL,payload:g})),(0,d.K)(g=>(this.store.dispatch((0,E.kL)({payload:[]})),this.handleErrorWithAlert("GetQueryRoutes",T.m6.NO_SPINNER,"Get Query Routes Failed",this.CHILD_API_URL+P.NZ.PAYMENTS_API+"/route?nodeId="+n.payload.nodeId+"&amountMsat="+n.payload.amount,g),(0,u.of)({type:T.pg.VOID}))))))),this.setQueryRoutes=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(T.lr.SET_QUERY_ROUTES_ECL),(0,y.U)(n=>n.payload)),{dispatch:!1}),this.sendPayment=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(T.lr.SEND_PAYMENT_ECL),(0,b.z)(n=>(this.flgReceivedPaymentUpdateFromWS=!1,this.latestPaymentRes="",this.store.dispatch((0,M.ac)({payload:T.m6.SEND_PAYMENT})),this.store.dispatch((0,E.QZ)({payload:{action:"SendPayment",status:T.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+P.NZ.PAYMENTS_API,n.payload).pipe((0,y.U)(g=>(this.logger.info(g),this.latestPaymentRes=g,setTimeout(()=>{this.flgReceivedPaymentUpdateFromWS||this.handleSendPaymentStatus("Payment Submitted!")},3e3),{type:T.pg.VOID})),(0,d.K)(g=>(this.logger.error("Error: "+JSON.stringify(g)),n.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",T.m6.SEND_PAYMENT,"Send Payment Failed.",g):this.handleErrorWithAlert("SendPayment",T.m6.SEND_PAYMENT,"Send Payment Failed",this.CHILD_API_URL+P.NZ.PAYMENTS_API,g),(0,u.of)({type:T.pg.VOID})))))))),this.transactionsFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(T.lr.FETCH_TRANSACTIONS_ECL),(0,b.z)(()=>(this.store.dispatch((0,E.QZ)({payload:{action:"FetchTransactions",status:T.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.ON_CHAIN_API+"/transactions?count=1000&skip=0"))),(0,y.U)(n=>(this.logger.info(n),this.store.dispatch((0,E.QZ)({payload:{action:"FetchTransactions",status:T.Bn.COMPLETED}})),{type:T.lr.SET_TRANSACTIONS_ECL,payload:n||[]})),(0,d.K)(n=>(this.handleErrorWithoutAlert("FetchTransactions",T.m6.NO_SPINNER,"Fetching Transactions Failed.",n),(0,u.of)({type:T.pg.VOID}))))),this.SendOnchainFunds=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(T.lr.SEND_ONCHAIN_FUNDS_ECL),(0,b.z)(n=>(this.store.dispatch((0,M.ac)({payload:T.m6.SEND_FUNDS})),this.store.dispatch((0,E.QZ)({payload:{action:"SendOnchainFunds",status:T.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+P.NZ.ON_CHAIN_API,n.payload).pipe((0,y.U)(g=>(this.logger.info(g),this.store.dispatch((0,E.QZ)({payload:{action:"SendOnchainFunds",status:T.Bn.COMPLETED}})),this.store.dispatch((0,M.uO)({payload:T.m6.SEND_FUNDS})),this.store.dispatch((0,E.iL)()),{type:T.lr.SEND_ONCHAIN_FUNDS_RES_ECL,payload:g})),(0,d.K)(g=>(this.handleErrorWithoutAlert("SendOnchainFunds",T.m6.SEND_FUNDS,"Sending Fund Failed.",g),(0,u.of)({type:T.pg.VOID})))))))),this.createInvoice=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(T.lr.CREATE_INVOICE_ECL),(0,b.z)(n=>(this.store.dispatch((0,M.ac)({payload:T.m6.CREATE_INVOICE})),this.store.dispatch((0,E.QZ)({payload:{action:"CreateInvoice",status:T.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+P.NZ.INVOICES_API,n.payload).pipe((0,y.U)(g=>(this.logger.info(g),this.store.dispatch((0,E.QZ)({payload:{action:"CreateInvoice",status:T.Bn.COMPLETED}})),this.store.dispatch((0,M.uO)({payload:T.m6.CREATE_INVOICE})),g.timestamp=Math.round((new Date).getTime()/1e3),g.expiresAt=Math.round(g.timestamp+n.payload.expireIn),g.description=n.payload.description,g.status="unpaid",setTimeout(()=>{this.store.dispatch((0,M.qR)({payload:{data:{invoice:g,newlyAdded:!0,component:A.R}}}))},100),{type:T.lr.ADD_INVOICE_ECL,payload:g})),(0,d.K)(g=>(this.handleErrorWithoutAlert("CreateInvoice",T.m6.CREATE_INVOICE,"Create Invoice Failed.",g),(0,u.of)({type:T.pg.VOID})))))))),this.invoicesFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(T.lr.FETCH_INVOICES_ECL),(0,b.z)(()=>(this.store.dispatch((0,E.QZ)({payload:{action:"FetchInvoices",status:T.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.INVOICES_API).pipe((0,y.U)(n=>(this.logger.info(n),this.store.dispatch((0,E.QZ)({payload:{action:"FetchInvoices",status:T.Bn.COMPLETED}})),{type:T.lr.SET_INVOICES_ECL,payload:n})),(0,d.K)(n=>(this.handleErrorWithoutAlert("FetchInvoices",T.m6.NO_SPINNER,"Fetching Invoices Failed.",n),(0,u.of)({type:T.pg.VOID})))))))),this.peerLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(T.lr.PEER_LOOKUP_ECL),(0,b.z)(n=>(this.store.dispatch((0,M.ac)({payload:T.m6.SEARCHING_NODE})),this.store.dispatch((0,E.QZ)({payload:{action:"Lookup",status:T.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.NETWORK_API+"/nodes/"+n.payload).pipe((0,y.U)(g=>(this.logger.info(g),this.store.dispatch((0,E.QZ)({payload:{action:"Lookup",status:T.Bn.COMPLETED}})),this.store.dispatch((0,M.uO)({payload:T.m6.SEARCHING_NODE})),{type:T.lr.SET_LOOKUP_ECL,payload:g})),(0,d.K)(g=>(this.handleErrorWithAlert("Lookup",T.m6.SEARCHING_NODE,"Peer Lookup Failed",this.CHILD_API_URL+P.NZ.NETWORK_API+"/nodes/"+n.payload,g),(0,u.of)({type:T.pg.VOID})))))))),this.invoiceLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(T.lr.INVOICE_LOOKUP_ECL),(0,b.z)(n=>(this.store.dispatch((0,M.ac)({payload:T.m6.SEARCHING_INVOICE})),this.store.dispatch((0,E.QZ)({payload:{action:"Lookup",status:T.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.INVOICES_API+"/"+n.payload).pipe((0,y.U)(g=>(this.logger.info(g),this.store.dispatch((0,E.QZ)({payload:{action:"Lookup",status:T.Bn.COMPLETED}})),this.store.dispatch((0,M.uO)({payload:T.m6.SEARCHING_INVOICE})),this.store.dispatch((0,E.aL)({payload:g})),{type:T.lr.SET_LOOKUP_ECL,payload:g})),(0,d.K)(g=>(this.handleErrorWithoutAlert("Lookup",T.m6.SEARCHING_INVOICE,"Invoice Lookup Failed",g),this.store.dispatch((0,M.jW)({payload:{message:"Invoice Refresh Failed.",type:"ERROR"}})),(0,u.of)({type:T.pg.VOID})))))))),this.setLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(T.lr.SET_LOOKUP_ECL),(0,y.U)(n=>(this.logger.info(n.payload),n.payload))),{dispatch:!1}),this.handleSendPaymentStatus=n=>{this.store.dispatch((0,E.QZ)({payload:{action:"SendPayment",status:T.Bn.COMPLETED}})),this.store.dispatch((0,M.uO)({payload:T.m6.SEND_PAYMENT})),this.store.dispatch((0,E.TM)({payload:this.latestPaymentRes})),this.store.dispatch((0,E.UR)({payload:{fetchPayments:!0}})),this.store.dispatch((0,M.jW)({payload:n}))},this.store.select(k.yA).pipe((0,a.R)(this.unSubs[0])).subscribe(n=>{n.FetchInfo.status!==T.Bn.COMPLETED&&n.FetchInfo.status!==T.Bn.ERROR||n.FetchFees.status!==T.Bn.COMPLETED&&n.FetchFees.status!==T.Bn.ERROR||n.FetchOnchainBalance.status!==T.Bn.COMPLETED&&n.FetchOnchainBalance.status!==T.Bn.ERROR||n.FetchChannels.status!==T.Bn.COMPLETED&&n.FetchChannels.status!==T.Bn.ERROR||this.flgInitialized||(this.store.dispatch((0,M.uO)({payload:T.m6.INITALIZE_NODE_DATA})),this.flgInitialized=!0)}),this.wsService.eclWSMessages.pipe((0,a.R)(this.unSubs[1])).subscribe(n=>{var g;this.logger.info("Received new message from the service: "+JSON.stringify(n));let V="";if(n)switch(n.type){case T.$v.PAYMENT_SENT:n&&n.id&&this.latestPaymentRes===n.id&&(this.flgReceivedPaymentUpdateFromWS=!0,V="Payment Sent: "+(n.paymentHash?"with payment hash "+n.paymentHash:JSON.stringify(n)),this.handleSendPaymentStatus(V));break;case T.$v.PAYMENT_FAILED:n&&n.id&&this.latestPaymentRes===n.id&&(this.flgReceivedPaymentUpdateFromWS=!0,V="Payment Failed: "+(n.failures&&n.failures.length&&n.failures.length>0&&n.failures[0].t?n.failures[0].t:n.failures&&n.failures.length&&n.failures.length>0&&n.failures[0].e&&n.failures[0].e.failureMessage?n.failures[0].e.failureMessage:JSON.stringify(n)),this.handleSendPaymentStatus(V));break;case T.$v.PAYMENT_RECEIVED:this.store.dispatch((0,E.aL)({payload:n}));break;case T.$v.PAYMENT_RELAYED:delete n.source,this.store.dispatch((0,E.ti)({payload:n}));break;case T.$v.CHANNEL_STATE_CHANGED:"NORMAL"===n.currentState||"CLOSED"===n.currentState?(this.rawChannelsList=null===(g=this.rawChannelsList)||void 0===g?void 0:g.map(R=>(R.channelId===n.channelId&&R.nodeId===n.remoteNodeId&&(R.state=n.currentState),R)),this.setChannelsAndStatusAndBalances()):this.store.dispatch((0,E.DJ)({payload:n}));break;default:this.logger.info("Received Event from WS: "+JSON.stringify(n))}})}setChannelsAndStatusAndBalances(){let x=0,t=0,r=0,h={localBalance:0,remoteBalance:0},c=[];const C=[],S=[],I={active:{channels:0,capacity:0},inactive:{channels:0,capacity:0},pending:{channels:0,capacity:0}};this.rawChannelsList.forEach((_,n)=>{var g,V,R,H,$;_&&("NORMAL"===_.state?(x=(_.toLocal||0)+(_.toRemote||0),t+=_.toLocal||0,r+=_.toRemote||0,_.balancedness=0===x?1:+(1-Math.abs(((_.toLocal||0)-(_.toRemote||0))/x)).toFixed(3),c.push(_),I.active.channels=I.active.channels+1,I.active.capacity=I.active.capacity+(_.toLocal||0)):(null===(g=_.state)||void 0===g?void 0:g.includes("WAIT"))||(null===(V=_.state)||void 0===V?void 0:V.includes("CLOSING"))||(null===(R=_.state)||void 0===R?void 0:R.includes("SYNCING"))?(_.state=null===(H=_.state)||void 0===H?void 0:H.replace(/_/g," "),C.push(_),I.pending.channels=I.pending.channels+1,I.pending.capacity=I.pending.capacity+(_.toLocal||0)):(_.state=null===($=_.state)||void 0===$?void 0:$.replace(/_/g," "),S.push(_),I.inactive.channels=I.inactive.channels+1,I.inactive.capacity=I.inactive.capacity+(_.toLocal||0)))}),h={localBalance:t,remoteBalance:r},c=this.commonService.sortDescByKey(c,"balancedness"),this.logger.info("Active Channels: "+JSON.stringify(c)),this.logger.info("Pending Channels: "+JSON.stringify(C)),this.logger.info("Inactive Channels: "+JSON.stringify(S)),this.logger.info("Lightning Balances: "+JSON.stringify(h)),this.logger.info("Channels Status: "+JSON.stringify(I)),this.logger.info("Channel, status and balances: "+JSON.stringify({active:c,pending:C,inactive:S,balances:h,status:I})),this.store.dispatch((0,E.eN)({payload:c})),this.store.dispatch((0,E.TW)({payload:C})),this.store.dispatch((0,E.i)({payload:S})),this.store.dispatch((0,E.On)({payload:h})),this.store.dispatch((0,E.HG)({payload:I}))}initializeRemainingData(x,t){this.sessionService.setItem("eclUnlocked","true");const r={identity_pubkey:x.nodeId,alias:x.alias,testnet:"testnet"===x.network,chains:x.publicAddresses,uris:x.uris,version:x.version,numberOfPendingChannels:0};this.store.dispatch((0,M.ac)({payload:T.m6.INITALIZE_NODE_DATA})),this.store.dispatch((0,M._V)({payload:r}));let h=this.location.path();h.includes("/lnd/")?h=null==h?void 0:h.replace("/lnd/","/ecl/"):h.includes("/cln/")&&(h=null==h?void 0:h.replace("/cln/","/ecl/")),(h.includes("/login")||h.includes("/error")||""===h||"HOME"===t||h.includes("?access-key="))&&(h="/ecl/home"),this.router.navigate([h]),this.store.dispatch((0,E.WM)()),this.store.dispatch((0,E.UR)({payload:{fetchPayments:!0}})),this.store.dispatch((0,E.SN)()),this.store.dispatch((0,E.iL)()),this.store.dispatch((0,E.$W)())}handleErrorWithoutAlert(x,t,r,h){this.logger.error("ERROR IN: "+x+"\n"+JSON.stringify(h)),401===h.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:t})),this.store.dispatch((0,E.QZ)({payload:{action:x,status:T.Bn.ERROR,statusCode:h.status.toString(),message:this.commonService.extractErrorMessage(h,r)}})))}handleErrorWithAlert(x,t,r,h,c){if(this.logger.error(c),401===c.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:t}));const C=this.commonService.extractErrorMessage(c);this.store.dispatch((0,M.qR)({payload:{data:{type:"ERROR",alertTitle:r,message:{code:c.status,message:C,URL:h},component:D.H}}})),this.store.dispatch((0,E.QZ)({payload:{action:x,status:T.Bn.ERROR,statusCode:c.status.toString(),message:C,URL:h}}))}}ngOnDestroy(){this.unSubs.forEach(x=>{x.next(null),x.complete()})}}return J.\u0275fac=function(x){return new(x||J)(w.LFG(e.eX),w.LFG(z.eN),w.LFG(U.yh),w.LFG(W.m),w.LFG(ne.v),w.LFG(Q.mQ),w.LFG(le.F0),w.LFG(q.d),w.LFG(ie.Ye))},J.\u0275prov=w.Yz7({token:J,factory:J.\u0275fac}),J})()},2501:(He,j,p)=>{"use strict";p.d(j,{Bo:()=>E,Ef:()=>A,JG:()=>D,PP:()=>P,T$:()=>a,Xz:()=>T,dx:()=>M,kY:()=>k,pg:()=>u,yA:()=>d,yD:()=>b});var e=p(5620);const i=(0,e.ZF)("ecl"),u=(0,e.P1)(i,w=>w.nodeSettings),b=(0,e.P1)(i,w=>w.information),a=(0,e.P1)(i,w=>({information:w.information,apiCallStatus:w.apisCallStatus.FetchInfo})),d=((0,e.P1)(i,w=>w.apisCallStatus.FetchInfo),(0,e.P1)(i,w=>w.apisCallStatus)),P=(0,e.P1)(i,w=>({payments:w.payments,apiCallStatus:w.apisCallStatus.FetchPayments})),D=(0,e.P1)(i,w=>({fees:w.fees,apiCallStatus:w.apisCallStatus.FetchFees})),T=(0,e.P1)(i,w=>({activeChannels:w.activeChannels,pendingChannels:w.pendingChannels,inactiveChannels:w.inactiveChannels,lightningBalance:w.lightningBalance,channelsStatus:w.channelsStatus,apiCallStatus:w.apisCallStatus.FetchChannels})),M=(0,e.P1)(i,w=>({transactions:w.transactions,apiCallStatus:w.apisCallStatus.FetchTransactions})),A=(0,e.P1)(i,w=>({invoices:w.invoices,apiCallStatus:w.apisCallStatus.FetchInvoices})),E=(0,e.P1)(i,w=>({peers:w.peers,apiCallStatus:w.apisCallStatus.FetchPeers})),k=(0,e.P1)(i,w=>({onchainBalance:w.onchainBalance,apiCallStatus:w.apisCallStatus.FetchOnchainBalance}))},7766:(He,j,p)=>{"use strict";p.d(j,{R:()=>Ee});var e=p(8966),i=p(801),u=p(7579),b=p(2722),a=p(7731),y=p(2501),d=p(5e3),P=p(5043),D=p(62),T=p(7261),M=p(5620),A=p(7093),E=p(9808),k=p(3322),w=p(159),z=p(9224),U=p(9444),W=p(7423),ne=p(4834),Q=p(773),le=p(3390),q=p(6895);function ie(te,ze){if(1&te&&d._UZ(0,"qr-code",29),2&te){const be=d.oxw();d.Q6J("value",null==be.invoice?null:be.invoice.serialized)("size",be.qrWidth)("errorCorrectionLevel","L")}}function se(te,ze){1&te&&(d.TgZ(0,"span",30),d._uU(1,"N/A"),d.qZA())}function J(te,ze){if(1&te&&d._UZ(0,"qr-code",29),2&te){const be=d.oxw();d.Q6J("value",null==be.invoice?null:be.invoice.serialized)("size",be.qrWidth)("errorCorrectionLevel","L")}}function me(te,ze){1&te&&(d.TgZ(0,"span",31),d._uU(1,"QR Code Not Applicable"),d.qZA())}function x(te,ze){1&te&&d._UZ(0,"mat-divider",32),2&te&&d.Q6J("inset",!0)}function t(te,ze){1&te&&(d.ynx(0),d._uU(1," (zero amount) "),d.BQk())}function r(te,ze){1&te&&d._UZ(0,"span",38)}const h=function(){return[]};function c(te,ze){if(1&te&&(d.TgZ(0,"div",34)(1,"div",35)(2,"span",36),d._uU(3),d.ALo(4,"number"),d.qZA(),d.YNc(5,r,1,0,"span",37),d.qZA()()),2&te){const be=d.oxw(2);d.xp6(3),d.hij("",d.lcZ(4,2,null==be.invoice?null:be.invoice.amountSettled)," Sats"),d.xp6(2),d.Q6J("ngForOf",d.DdM(4,h).constructor(35))}}function C(te,ze){if(1&te&&(d.TgZ(0,"div"),d._uU(1),d.ALo(2,"number"),d.qZA()),2&te){const be=d.oxw(2);d.xp6(1),d.hij("",d.lcZ(2,1,null==be.invoice?null:be.invoice.amountSettled)," Sats")}}function S(te,ze){if(1&te&&(d.ynx(0),d.YNc(1,c,6,5,"div",33),d.YNc(2,C,3,3,"div",19),d.BQk()),2&te){const be=d.oxw();d.xp6(1),d.Q6J("ngIf",be.flgInvoicePaid),d.xp6(1),d.Q6J("ngIf",!be.flgInvoicePaid)}}function I(te,ze){1&te&&(d.TgZ(0,"span"),d._uU(1,"-"),d.qZA())}function _(te,ze){1&te&&d._UZ(0,"mat-spinner",40),2&te&&d.Q6J("diameter",20)}function n(te,ze){if(1&te&&(d.ynx(0),d.YNc(1,I,2,0,"span",19),d.YNc(2,_,1,1,"mat-spinner",39),d.BQk()),2&te){const be=d.oxw();d.xp6(1),d.Q6J("ngIf","unpaid"!==(null==be.invoice?null:be.invoice.status)||!be.flgVersionCompatible),d.xp6(1),d.Q6J("ngIf","unpaid"===(null==be.invoice?null:be.invoice.status)&&be.flgVersionCompatible)}}function g(te,ze){if(1&te&&(d.TgZ(0,"div"),d._UZ(1,"mat-divider",20),d.TgZ(2,"div",15)(3,"div",41)(4,"h4",17),d._uU(5,"Date Expiry"),d.qZA(),d.TgZ(6,"span",18),d._uU(7),d.ALo(8,"date"),d.qZA()(),d.TgZ(9,"div",42)(10,"h4",17),d._uU(11,"Date Settled"),d.qZA(),d.TgZ(12,"span",21),d._uU(13),d.ALo(14,"date"),d.qZA()()(),d._UZ(15,"mat-divider",20),d.TgZ(16,"div",15)(17,"div",22)(18,"h4",17),d._uU(19,"Payment Hash"),d.qZA(),d.TgZ(20,"span",21),d._uU(21),d.qZA()()(),d._UZ(22,"mat-divider",20),d.TgZ(23,"div",15)(24,"div",22)(25,"h4",17),d._uU(26,"Node Id"),d.qZA(),d.TgZ(27,"span",21),d._uU(28),d.qZA()()(),d._UZ(29,"mat-divider",20),d.qZA()),2&te){const be=d.oxw();d.xp6(7),d.Oqu(d.xi3(8,4,1e3*(null==be.invoice?null:be.invoice.expiresAt),"dd/MMM/y HH:mm")),d.xp6(6),d.Oqu(d.xi3(14,7,1e3*(null==be.invoice?null:be.invoice.receivedAt),"dd/MMM/y HH:mm")),d.xp6(8),d.Oqu(null==be.invoice?null:be.invoice.paymentHash),d.xp6(7),d.Oqu(null==be.invoice?null:be.invoice.nodeId)}}function V(te,ze){1&te&&(d.TgZ(0,"p"),d._uU(1,"Show Advanced"),d.qZA())}function R(te,ze){1&te&&(d.TgZ(0,"p"),d._uU(1,"Hide Advanced"),d.qZA())}function H(te,ze){if(1&te){const be=d.EpF();d.TgZ(0,"button",43),d.NdJ("copied",function(Y){return d.CHM(be),d.oxw().onCopyPayment(Y)}),d._uU(1,"Copy Invoice"),d.qZA()}if(2&te){const be=d.oxw();d.Q6J("payload",null==be.invoice?null:be.invoice.serialized)}}function $(te,ze){if(1&te){const be=d.EpF();d.TgZ(0,"button",44),d.NdJ("click",function(){return d.CHM(be),d.oxw().onClose()}),d._uU(1,"OK"),d.qZA()}}const fe=function(te){return{"display-none":te}},ye=function(te){return{"xs-scroll-y":te}},ke=function(te,ze){return{"mt-2":te,"mt-1":ze}};let Ee=(()=>{class te{constructor(be,Z,Y,ot,Ie,Ae){this.dialogRef=be,this.data=Z,this.logger=Y,this.commonService=ot,this.snackBar=Ie,this.store=Ae,this.faReceipt=i.dLy,this.faExclamationTriangle=i.eHv,this.showAdvanced=!1,this.newlyAdded=!1,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=a.cu,this.flgInvoicePaid=!1,this.flgVersionCompatible=!0,this.unSubs=[new u.x,new u.x,new u.x,new u.x,new u.x]}ngOnInit(){this.invoice=this.data.invoice,this.newlyAdded=!!this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS&&(this.qrWidth=220),this.store.select(y.yD).pipe((0,b.R)(this.unSubs[0])).subscribe(be=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(be.version,"0.5.0")}),this.store.select(y.Ef).pipe((0,b.R)(this.unSubs[1])).subscribe(be=>{const Z=this.invoice.status,Y=be.invoices&&be.invoices.length>0?be.invoices:[];this.invoice=(null==Y?void 0:Y.find(ot=>ot.paymentHash===this.invoice.paymentHash))||{},Z!==this.invoice.status&&"received"===this.invoice.status&&(this.flgInvoicePaid=!0,setTimeout(()=>{this.flgInvoicePaid=!1},4e3)),this.logger.info(be)})}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyPayment(be){this.snackBar.open("Invoice copied."),this.logger.info("Copied Text: "+be)}ngOnDestroy(){this.unSubs.forEach(be=>{be.next(null),be.complete()})}}return te.\u0275fac=function(be){return new(be||te)(d.Y36(e.so),d.Y36(e.WI),d.Y36(P.mQ),d.Y36(D.v),d.Y36(T.ux),d.Y36(M.yh))},te.\u0275cmp=d.Xpm({type:te,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(be,Z){if(1&be&&(d.TgZ(0,"div",0)(1,"div",1),d.YNc(2,ie,1,3,"qr-code",2),d.YNc(3,se,2,0,"span",3),d.qZA(),d.TgZ(4,"div",4)(5,"mat-card-header",5)(6,"div",6),d._UZ(7,"fa-icon",7),d.TgZ(8,"span",8),d._uU(9),d.qZA()(),d.TgZ(10,"button",9),d.NdJ("click",function(){return Z.onClose()}),d._uU(11,"X"),d.qZA()(),d.TgZ(12,"mat-card-content",10)(13,"div",11)(14,"div",12),d.YNc(15,J,1,3,"qr-code",2),d.YNc(16,me,2,0,"span",13),d.qZA(),d.YNc(17,x,1,1,"mat-divider",14),d.TgZ(18,"div",15)(19,"div",16)(20,"h4",17),d._uU(21,"Amount Requested"),d.qZA(),d.TgZ(22,"span",18),d._uU(23),d.ALo(24,"number"),d.YNc(25,t,2,0,"ng-container",19),d.qZA()(),d.TgZ(26,"div",16)(27,"h4",17),d._uU(28,"Amount Settled"),d.qZA(),d.TgZ(29,"span",18),d.YNc(30,S,3,2,"ng-container",19),d.YNc(31,n,3,2,"ng-container",19),d.qZA()()(),d._UZ(32,"mat-divider",20),d.TgZ(33,"div",15)(34,"div",16)(35,"h4",17),d._uU(36,"Date Created"),d.qZA(),d.TgZ(37,"span",21),d._uU(38),d.ALo(39,"date"),d.qZA()(),d.TgZ(40,"div",16)(41,"h4",17),d._uU(42,"Status"),d.qZA(),d.TgZ(43,"span",21),d._uU(44),d.ALo(45,"titlecase"),d.qZA()()(),d._UZ(46,"mat-divider",20),d.TgZ(47,"div",15)(48,"div",22)(49,"h4",17),d._uU(50,"Description"),d.qZA(),d.TgZ(51,"span",18),d._uU(52),d.qZA()()(),d._UZ(53,"mat-divider",20),d.TgZ(54,"div",15)(55,"div",22)(56,"h4",17),d._uU(57,"Invoice"),d.qZA(),d.TgZ(58,"span",21),d._uU(59),d.qZA()()(),d.YNc(60,g,30,10,"div",19),d.TgZ(61,"div",23)(62,"button",24),d.NdJ("click",function(){return Z.onShowAdvanced()}),d.YNc(63,V,2,0,"p",25),d.YNc(64,R,2,0,"ng-template",null,26,d.W1O),d.qZA(),d.YNc(66,H,2,1,"button",27),d.YNc(67,$,2,0,"button",28),d.qZA()()()()()),2&be){const Y=d.MAs(65);d.xp6(1),d.Q6J("fxLayoutAlign",null!=Z.invoice&&Z.invoice.serialized&&""!==(null==Z.invoice?null:Z.invoice.serialized)?"center start":"center center")("ngClass",d.VKq(33,fe,Z.screenSize===Z.screenSizeEnum.XS||Z.screenSize===Z.screenSizeEnum.SM)),d.xp6(1),d.Q6J("ngIf",(null==Z.invoice?null:Z.invoice.serialized)&&""!==(null==Z.invoice?null:Z.invoice.serialized)),d.xp6(1),d.Q6J("ngIf",!(null!=Z.invoice&&Z.invoice.serialized)||""===(null==Z.invoice?null:Z.invoice.serialized)),d.xp6(4),d.Q6J("icon",Z.faReceipt),d.xp6(2),d.Oqu(Z.screenSize===Z.screenSizeEnum.XS?Z.newlyAdded?"Created":"Invoice":Z.newlyAdded?"Invoice Created":"Invoice Information"),d.xp6(3),d.Q6J("ngClass",d.VKq(35,ye,Z.screenSize===Z.screenSizeEnum.XS)),d.xp6(2),d.Q6J("fxLayoutAlign",null!=Z.invoice&&Z.invoice.serialized&&""!==(null==Z.invoice?null:Z.invoice.serialized)?"center start":"center center")("ngClass",d.VKq(37,fe,Z.screenSize!==Z.screenSizeEnum.XS&&Z.screenSize!==Z.screenSizeEnum.SM)),d.xp6(1),d.Q6J("ngIf",(null==Z.invoice?null:Z.invoice.serialized)&&""!==(null==Z.invoice?null:Z.invoice.serialized)),d.xp6(1),d.Q6J("ngIf",!(null!=Z.invoice&&Z.invoice.serialized)||""===(null==Z.invoice?null:Z.invoice.serialized)),d.xp6(1),d.Q6J("ngIf",Z.screenSize===Z.screenSizeEnum.XS||Z.screenSize===Z.screenSizeEnum.SM),d.xp6(6),d.hij("",d.lcZ(24,26,(null==Z.invoice?null:Z.invoice.amount)||0)," Sats"),d.xp6(2),d.Q6J("ngIf",!(null!=Z.invoice&&Z.invoice.amount)||"0"===(null==Z.invoice?null:Z.invoice.amount)),d.xp6(5),d.Q6J("ngIf",null==Z.invoice?null:Z.invoice.amountSettled),d.xp6(1),d.Q6J("ngIf",!(null!=Z.invoice&&Z.invoice.amountSettled)),d.xp6(7),d.Oqu(d.xi3(39,28,1e3*(null==Z.invoice?null:Z.invoice.timestamp),"dd/MMM/y HH:mm")),d.xp6(6),d.Oqu(d.lcZ(45,31,null==Z.invoice?null:Z.invoice.status)),d.xp6(8),d.Oqu((null==Z.invoice?null:Z.invoice.description)||"-"),d.xp6(7),d.Oqu((null==Z.invoice?null:Z.invoice.serialized)||"N/A"),d.xp6(1),d.Q6J("ngIf",Z.showAdvanced),d.xp6(1),d.Q6J("ngClass",d.WLB(39,ke,!Z.showAdvanced,Z.showAdvanced)),d.xp6(2),d.Q6J("ngIf",!Z.showAdvanced)("ngIfElse",Y),d.xp6(3),d.Q6J("ngIf",(null==Z.invoice?null:Z.invoice.serialized)&&""!==(null==Z.invoice?null:Z.invoice.serialized)),d.xp6(1),d.Q6J("ngIf",!(null!=Z.invoice&&Z.invoice.serialized)||""===(null==Z.invoice?null:Z.invoice.serialized))}},directives:[A.xw,A.Wh,A.yH,E.mk,k.oO,E.O5,w.uU,z.dk,U.BN,W.lW,z.dn,ne.d,E.sg,Q.Ou,le.h,q.y],pipes:[E.JJ,E.uU,E.rS],styles:[""]}),te})()},6523:(He,j,p)=>{"use strict";p.d(j,{$A:()=>hi,$W:()=>P,BL:()=>c,B_:()=>V,Bl:()=>ne,CX:()=>d,Cp:()=>I,EK:()=>E,El:()=>T,Fr:()=>ei,HI:()=>Y,JT:()=>a,Jl:()=>Q,Jo:()=>_t,Lf:()=>te,Ll:()=>b,Ly:()=>ze,Nr:()=>fe,OG:()=>C,PC:()=>u,QJ:()=>kt,RX:()=>W,Rd:()=>k,Rv:()=>le,SN:()=>U,Sf:()=>Tt,TW:()=>me,UH:()=>be,UR:()=>ie,Vv:()=>S,WM:()=>$,WO:()=>gt,Wi:()=>G,YP:()=>z,YX:()=>h,Z7:()=>J,Z8:()=>D,Zh:()=>x,_E:()=>Te,_L:()=>t,aL:()=>ye,as:()=>se,cQ:()=>Z,dV:()=>Ae,fu:()=>ue,kL:()=>Qe,ks:()=>q,mC:()=>Ee,n7:()=>jt,oV:()=>ot,pW:()=>r,qY:()=>ke,sQ:()=>y,tb:()=>g,u0:()=>vt,vV:()=>R,xG:()=>ht,y2:()=>Le,yZ:()=>Gt,z:()=>A});var e=p(5620),i=p(7731);const u=(0,e.PH)(i.uR.UPDATE_API_CALL_STATUS_LND,(0,e.Ky)()),b=(0,e.PH)(i.uR.RESET_LND_STORE,(0,e.Ky)()),a=(0,e.PH)(i.uR.SET_CHILD_NODE_SETTINGS_LND,(0,e.Ky)()),y=(0,e.PH)(i.uR.FETCH_INFO_LND,(0,e.Ky)()),d=(0,e.PH)(i.uR.SET_INFO_LND,(0,e.Ky)()),P=(0,e.PH)(i.uR.FETCH_PEERS_LND),D=(0,e.PH)(i.uR.SET_PEERS_LND,(0,e.Ky)()),T=(0,e.PH)(i.uR.SAVE_NEW_PEER_LND,(0,e.Ky)()),A=((0,e.PH)(i.uR.NEWLY_ADDED_PEER_LND,(0,e.Ky)()),(0,e.PH)(i.uR.DETACH_PEER_LND,(0,e.Ky)())),E=(0,e.PH)(i.uR.REMOVE_PEER_LND,(0,e.Ky)()),k=(0,e.PH)(i.uR.SAVE_NEW_INVOICE_LND,(0,e.Ky)()),z=((0,e.PH)(i.uR.NEWLY_SAVED_INVOICE_LND,(0,e.Ky)()),(0,e.PH)(i.uR.ADD_INVOICE_LND,(0,e.Ky)())),U=(0,e.PH)(i.uR.FETCH_FEES_LND),W=(0,e.PH)(i.uR.SET_FEES_LND,(0,e.Ky)()),ne=(0,e.PH)(i.uR.FETCH_BLOCKCHAIN_BALANCE_LND),Q=(0,e.PH)(i.uR.SET_BLOCKCHAIN_BALANCE_LND,(0,e.Ky)()),le=(0,e.PH)(i.uR.FETCH_NETWORK_LND),q=(0,e.PH)(i.uR.SET_NETWORK_LND,(0,e.Ky)()),ie=(0,e.PH)(i.uR.FETCH_CHANNELS_LND),se=(0,e.PH)(i.uR.SET_CHANNELS_LND,(0,e.Ky)()),J=(0,e.PH)(i.uR.FETCH_PENDING_CHANNELS_LND),me=(0,e.PH)(i.uR.SET_PENDING_CHANNELS_LND,(0,e.Ky)()),x=(0,e.PH)(i.uR.FETCH_CLOSED_CHANNELS_LND),t=(0,e.PH)(i.uR.SET_CLOSED_CHANNELS_LND,(0,e.Ky)()),r=(0,e.PH)(i.uR.UPDATE_CHANNEL_LND,(0,e.Ky)()),h=(0,e.PH)(i.uR.SAVE_NEW_CHANNEL_LND,(0,e.Ky)()),c=(0,e.PH)(i.uR.CLOSE_CHANNEL_LND,(0,e.Ky)()),C=(0,e.PH)(i.uR.REMOVE_CHANNEL_LND,(0,e.Ky)()),S=(0,e.PH)(i.uR.BACKUP_CHANNELS_LND,(0,e.Ky)()),I=(0,e.PH)(i.uR.VERIFY_CHANNEL_LND,(0,e.Ky)()),g=((0,e.PH)(i.uR.BACKUP_CHANNELS_RES_LND,(0,e.Ky)()),(0,e.PH)(i.uR.VERIFY_CHANNEL_RES_LND,(0,e.Ky)()),(0,e.PH)(i.uR.RESTORE_CHANNELS_LIST_LND)),V=(0,e.PH)(i.uR.SET_RESTORE_CHANNELS_LIST_LND,(0,e.Ky)()),R=(0,e.PH)(i.uR.RESTORE_CHANNELS_LND,(0,e.Ky)()),$=((0,e.PH)(i.uR.RESTORE_CHANNELS_RES_LND,(0,e.Ky)()),(0,e.PH)(i.uR.FETCH_INVOICES_LND,(0,e.Ky)())),fe=(0,e.PH)(i.uR.SET_INVOICES_LND,(0,e.Ky)()),ye=(0,e.PH)(i.uR.UPDATE_INVOICE_LND,(0,e.Ky)()),ke=(0,e.PH)(i.uR.UPDATE_PAYMENT_LND,(0,e.Ky)()),Ee=(0,e.PH)(i.uR.FETCH_TRANSACTIONS_LND),te=(0,e.PH)(i.uR.SET_TRANSACTIONS_LND,(0,e.Ky)()),ze=(0,e.PH)(i.uR.FETCH_UTXOS_LND),be=(0,e.PH)(i.uR.SET_UTXOS_LND,(0,e.Ky)()),Z=(0,e.PH)(i.uR.FETCH_PAYMENTS_LND,(0,e.Ky)()),Y=(0,e.PH)(i.uR.SET_PAYMENTS_LND,(0,e.Ky)()),ot=(0,e.PH)(i.uR.SEND_PAYMENT_LND,(0,e.Ky)()),Ae=((0,e.PH)(i.uR.SEND_PAYMENT_STATUS_LND,(0,e.Ky)()),(0,e.PH)(i.uR.FETCH_GRAPH_NODE_LND,(0,e.Ky)())),Te=((0,e.PH)(i.uR.SET_GRAPH_NODE_LND,(0,e.Ky)()),(0,e.PH)(i.uR.GET_NEW_ADDRESS_LND,(0,e.Ky)())),G=((0,e.PH)(i.uR.SET_NEW_ADDRESS_LND,(0,e.Ky)()),(0,e.PH)(i.uR.SET_CHANNEL_TRANSACTION_LND,(0,e.Ky)())),ue=((0,e.PH)(i.uR.SET_CHANNEL_TRANSACTION_RES_LND,(0,e.Ky)()),(0,e.PH)(i.uR.GEN_SEED_LND,(0,e.Ky)())),Le=((0,e.PH)(i.uR.GEN_SEED_RESPONSE_LND,(0,e.Ky)()),(0,e.PH)(i.uR.INIT_WALLET_LND,(0,e.Ky)())),ht=((0,e.PH)(i.uR.INIT_WALLET_RESPONSE_LND,(0,e.Ky)()),(0,e.PH)(i.uR.UNLOCK_WALLET_LND,(0,e.Ky)())),Tt=(0,e.PH)(i.uR.PEER_LOOKUP_LND,(0,e.Ky)()),hi=(0,e.PH)(i.uR.CHANNEL_LOOKUP_LND,(0,e.Ky)()),jt=(0,e.PH)(i.uR.INVOICE_LOOKUP_LND,(0,e.Ky)()),Gt=(0,e.PH)(i.uR.PAYMENT_LOOKUP_LND,(0,e.Ky)()),vt=((0,e.PH)(i.uR.SET_LOOKUP_LND,(0,e.Ky)()),(0,e.PH)(i.uR.GET_FORWARDING_HISTORY_LND,(0,e.Ky)())),kt=(0,e.PH)(i.uR.SET_FORWARDING_HISTORY_LND,(0,e.Ky)()),gt=(0,e.PH)(i.uR.GET_QUERY_ROUTES_LND,(0,e.Ky)()),Qe=(0,e.PH)(i.uR.SET_QUERY_ROUTES_LND,(0,e.Ky)()),_t=(0,e.PH)(i.uR.GET_ALL_LIGHTNING_TRANSATIONS_LND),ei=(0,e.PH)(i.uR.SET_ALL_LIGHTNING_TRANSATIONS_LND,(0,e.Ky)())},711:(He,j,p)=>{"use strict";p.d(j,{l:()=>me});var e=p(6642),i=p(7579),u=p(9646),b=p(5577),a=p(2722),y=p(4004),d=p(262),P=p(1365),D=p(2340),T=p(8627),M=p(1786),A=p(7731),E=p(7861),k=p(6523),w=p(6529),z=p(5e3),U=p(8138),W=p(5620),ne=p(5043),Q=p(62),le=p(5986),q=p(8966),ie=p(1402),se=p(7998),J=p(9808);let me=(()=>{class x{constructor(r,h,c,C,S,I,_,n,g,V){this.actions=r,this.httpClient=h,this.store=c,this.logger=C,this.commonService=S,this.sessionService=I,this.dialog=_,this.router=n,this.wsService=g,this.location=V,this.CHILD_API_URL=D.T5+"/lnd",this.flgInitialized=!1,this.unSubs=[new i.x,new i.x],this.infoFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_INFO_LND),(0,b.z)(R=>(this.flgInitialized=!1,this.store.dispatch((0,E.lC)({payload:this.CHILD_API_URL})),this.store.dispatch((0,E.ts)()),this.store.dispatch((0,E.ac)({payload:A.m6.GET_NODE_INFO})),this.store.dispatch((0,k.PC)({payload:{action:"FetchInfo",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+D.NZ.GETINFO_API).pipe((0,a.R)(this.actions.pipe((0,e.l4)(A.pg.SET_SELECTED_NODE))),(0,y.U)(H=>(this.logger.info(H),H.chains&&H.chains.length&&H.chains[0]&&("string"==typeof H.chains[0]&&H.chains[0].toLowerCase().indexOf("bitcoin")<0||"object"==typeof H.chains[0]&&H.chains[0].hasOwnProperty("chain")&&H.chains[0].chain&&H.chains[0].chain.toLowerCase().indexOf("bitcoin")<0)?(this.store.dispatch((0,k.PC)({payload:{action:"FetchInfo",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.ts)()),this.store.dispatch((0,E.qR)({payload:{data:{type:A.n_.ERROR,alertTitle:"Shitcoin Found",titleMessage:"Sorry Not Sorry, RTL is Bitcoin Only!"}}})),{type:A.pg.LOGOUT}):H.identity_pubkey?(H.lnImplementation="LND",this.initializeRemainingData(H,R.payload.loadPage),this.store.dispatch((0,k.PC)({payload:{action:"FetchInfo",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.ts)()),{type:A.uR.SET_INFO_LND,payload:H||{}}):(this.store.dispatch((0,k.PC)({payload:{action:"FetchInfo",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.ts)()),this.sessionService.removeItem("lndUnlocked"),this.logger.info("Redirecting to Unlock"),this.router.navigate(["/lnd/wallet"]),{type:A.uR.SET_INFO_LND,payload:{}}))),(0,d.K)(H=>{if("string"==typeof H.error.error&&H.error.error.includes("Not Found")||"string"==typeof H.error.error&&H.error.error.includes("wallet locked")||502===H.status&&!H.error.message.includes("Bad or Missing Macaroon"))this.sessionService.removeItem("lndUnlocked"),this.logger.info("Redirecting to Unlock"),this.router.navigate(["/lnd/wallet"]),this.handleErrorWithoutAlert("FetchInfo",A.m6.GET_NODE_INFO,"Fetching Node Info Failed.",H);else if("string"==typeof H.error.error&&H.error.error.includes("starting up")&&500===H.status)setTimeout(()=>{this.store.dispatch((0,k.sQ)({payload:{loadPage:"HOME"}}))},2e3);else{const $=this.commonService.extractErrorCode(H),fe=503===$?"Unable to Connect to LND Server.":this.commonService.extractErrorMessage(H);this.router.navigate(["/error"],{state:{errorCode:$,errorMessage:fe}}),this.handleErrorWithoutAlert("FetchInfo",A.m6.GET_NODE_INFO,"Fetching Node Info Failed.",{status:$,error:fe})}return(0,u.of)({type:A.pg.VOID})})))))),this.peersFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_PEERS_LND),(0,b.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchPeers",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+D.NZ.PEERS_API).pipe((0,y.U)(R=>(this.logger.info(R),this.store.dispatch((0,k.PC)({payload:{action:"FetchPeers",status:A.Bn.COMPLETED}})),{type:A.uR.SET_PEERS_LND,payload:R||[]})),(0,d.K)(R=>(this.handleErrorWithoutAlert("FetchPeers",A.m6.NO_SPINNER,"Fetching Peers Failed.",R),(0,u.of)({type:A.pg.VOID})))))))),this.saveNewPeer=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.SAVE_NEW_PEER_LND),(0,b.z)(R=>(this.store.dispatch((0,E.ac)({payload:A.m6.CONNECT_PEER})),this.store.dispatch((0,k.PC)({payload:{action:"SaveNewPeer",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+D.NZ.PEERS_API,{pubkey:R.payload.pubkey,host:R.payload.host,perm:R.payload.perm}).pipe((0,y.U)(H=>(this.logger.info(H),this.store.dispatch((0,k.PC)({payload:{action:"SaveNewPeer",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:A.m6.CONNECT_PEER})),this.store.dispatch((0,k.Z8)({payload:H||[]})),{type:A.uR.NEWLY_ADDED_PEER_LND,payload:{peer:H[0]}})),(0,d.K)(H=>(this.handleErrorWithoutAlert("SaveNewPeer",A.m6.CONNECT_PEER,"Peer Connection Failed.",H),(0,u.of)({type:A.pg.VOID})))))))),this.detachPeer=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.DETACH_PEER_LND),(0,b.z)(R=>(this.store.dispatch((0,E.ac)({payload:A.m6.DISCONNECT_PEER})),this.httpClient.delete(this.CHILD_API_URL+D.NZ.PEERS_API+"/"+R.payload.pubkey).pipe((0,y.U)(H=>(this.logger.info(H),this.store.dispatch((0,E.uO)({payload:A.m6.DISCONNECT_PEER})),this.store.dispatch((0,E.jW)({payload:"Peer Disconnected Successfully."})),{type:A.uR.REMOVE_PEER_LND,payload:{pubkey:R.payload.pubkey}})),(0,d.K)(H=>(this.handleErrorWithAlert("DetachPeer",A.m6.DISCONNECT_PEER,"Unable to Detach Peer. Try again later.",this.CHILD_API_URL+D.NZ.PEERS_API+"/"+R.payload.pubkey,H),(0,u.of)({type:A.pg.VOID})))))))),this.saveNewInvoice=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.SAVE_NEW_INVOICE_LND),(0,b.z)(R=>(this.store.dispatch((0,E.ac)({payload:R.payload.uiMessage})),this.store.dispatch((0,k.PC)({payload:{action:"SaveNewInvoice",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+D.NZ.INVOICES_API,{memo:R.payload.memo,amount:R.payload.invoiceValue,private:R.payload.private,expiry:R.payload.expiry}).pipe((0,y.U)(H=>(this.logger.info(H),this.store.dispatch((0,k.PC)({payload:{action:"SaveNewInvoice",status:A.Bn.COMPLETED}})),this.store.dispatch((0,k.WM)({payload:{num_max_invoices:R.payload.pageSize,reversed:!0}})),R.payload.openModal?(H.memo=R.payload.memo,H.value=R.payload.invoiceValue,H.expiry=R.payload.expiry,H.cltv_expiry="144",H.private=R.payload.private,H.creation_date=Math.round((new Date).getTime()/1e3).toString(),setTimeout(()=>{this.store.dispatch((0,E.qR)({payload:{data:{invoice:H,newlyAdded:!0,component:T.v}}}))},100),{type:A.pg.CLOSE_SPINNER,payload:R.payload.uiMessage}):{type:A.uR.NEWLY_SAVED_INVOICE_LND,payload:{paymentRequest:H.payment_request}})),(0,d.K)(H=>(this.handleErrorWithoutAlert("SaveNewInvoice",R.payload.uiMessage,"Add Invoice Failed.",H),(0,u.of)({type:A.pg.VOID})))))))),this.openNewChannel=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.SAVE_NEW_CHANNEL_LND),(0,b.z)(R=>(this.store.dispatch((0,E.ac)({payload:A.m6.OPEN_CHANNEL})),this.store.dispatch((0,k.PC)({payload:{action:"SaveNewChannel",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+D.NZ.CHANNELS_API,{node_pubkey:R.payload.selectedPeerPubkey,local_funding_amount:R.payload.fundingAmount,private:R.payload.private,trans_type:R.payload.transType,trans_type_value:R.payload.transTypeValue,spend_unconfirmed:R.payload.spendUnconfirmed}).pipe((0,y.U)(H=>(this.logger.info(H),this.store.dispatch((0,k.PC)({payload:{action:"SaveNewChannel",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:A.m6.OPEN_CHANNEL})),this.store.dispatch((0,k.Bl)()),this.store.dispatch((0,k.UR)()),this.store.dispatch((0,k.Vv)({payload:{uiMessage:A.m6.NO_SPINNER,channelPoint:"ALL",showMessage:"Channel Added Successfully!"}})),{type:A.uR.FETCH_PENDING_CHANNELS_LND})),(0,d.K)(H=>(this.handleErrorWithoutAlert("SaveNewChannel",A.m6.OPEN_CHANNEL,"Opening Channel Failed.",H),(0,u.of)({type:A.pg.VOID})))))))),this.updateChannel=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.UPDATE_CHANNEL_LND),(0,b.z)(R=>(this.store.dispatch((0,E.ac)({payload:A.m6.UPDATE_CHAN_POLICY})),this.httpClient.post(this.CHILD_API_URL+D.NZ.CHANNELS_API+"/chanPolicy",{baseFeeMsat:R.payload.baseFeeMsat,feeRate:R.payload.feeRate,timeLockDelta:R.payload.timeLockDelta,max_htlc_msat:R.payload.maxHtlcMsat,min_htlc_msat:R.payload.minHtlcMsat,chanPoint:R.payload.chanPoint}).pipe((0,y.U)(H=>(this.logger.info(H),this.store.dispatch((0,E.uO)({payload:A.m6.UPDATE_CHAN_POLICY})),this.store.dispatch((0,E.jW)("all"===R.payload.chanPoint?{payload:"All Channels Updated Successfully."}:{payload:"Channel Updated Successfully!"})),{type:A.uR.FETCH_CHANNELS_LND})),(0,d.K)(H=>(this.handleErrorWithAlert("UpdateChannels",A.m6.UPDATE_CHAN_POLICY,"Update Channel Failed",this.CHILD_API_URL+D.NZ.CHANNELS_API+"/chanPolicy",H),(0,u.of)({type:A.pg.VOID})))))))),this.closeChannel=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.CLOSE_CHANNEL_LND),(0,b.z)(R=>{this.store.dispatch((0,E.ac)({payload:R.payload.forcibly?A.m6.FORCE_CLOSE_CHANNEL:A.m6.CLOSE_CHANNEL}));let H=this.CHILD_API_URL+D.NZ.CHANNELS_API+"/"+R.payload.channelPoint+"?force="+R.payload.forcibly;return R.payload.targetConf&&(H=H+"&target_conf="+R.payload.targetConf),R.payload.satPerByte&&(H=H+"&sat_per_byte="+R.payload.satPerByte),this.httpClient.delete(H).pipe((0,y.U)($=>(this.logger.info($),this.store.dispatch((0,E.uO)({payload:R.payload.forcibly?A.m6.FORCE_CLOSE_CHANNEL:A.m6.CLOSE_CHANNEL})),this.store.dispatch((0,k.UR)()),this.store.dispatch((0,k.Z7)()),this.store.dispatch((0,k.Vv)({payload:{uiMessage:A.m6.NO_SPINNER,channelPoint:"ALL",showMessage:$.message}})),{type:A.pg.VOID})),(0,d.K)($=>(this.handleErrorWithAlert("CloseChannel",R.payload.forcibly?A.m6.FORCE_CLOSE_CHANNEL:A.m6.CLOSE_CHANNEL,"Unable to Close Channel. Try again later.",this.CHILD_API_URL+D.NZ.CHANNELS_API+"/"+R.payload.channelPoint+"?force="+R.payload.forcibly,$),(0,u.of)({type:A.pg.VOID}))))}))),this.backupChannels=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.BACKUP_CHANNELS_LND),(0,b.z)(R=>(this.store.dispatch((0,E.ac)({payload:R.payload.uiMessage})),this.store.dispatch((0,k.PC)({payload:{action:"BackupChannels",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+D.NZ.CHANNELS_BACKUP_API+"/"+R.payload.channelPoint).pipe((0,y.U)(H=>(this.logger.info(H),this.store.dispatch((0,k.PC)({payload:{action:"BackupChannels",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:R.payload.uiMessage})),this.store.dispatch((0,E.jW)({payload:R.payload.showMessage+" "+H.message})),{type:A.uR.BACKUP_CHANNELS_RES_LND,payload:H.message})),(0,d.K)(H=>(this.handleErrorWithAlert("BackupChannels",R.payload.uiMessage,R.payload.showMessage+" Unable to Backup Channel. Try again later.",this.CHILD_API_URL+D.NZ.CHANNELS_BACKUP_API+"/"+R.payload.channelPoint,H),(0,u.of)({type:A.pg.VOID})))))))),this.verifyChannel=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.VERIFY_CHANNEL_LND),(0,b.z)(R=>(this.store.dispatch((0,E.ac)({payload:A.m6.VERIFY_CHANNEL})),this.store.dispatch((0,k.PC)({payload:{action:"VerifyChannel",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+D.NZ.CHANNELS_BACKUP_API+"/verify/"+R.payload.channelPoint,{}).pipe((0,y.U)(H=>(this.logger.info(H),this.store.dispatch((0,k.PC)({payload:{action:"VerifyChannel",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:A.m6.VERIFY_CHANNEL})),this.store.dispatch((0,E.jW)({payload:H.message})),{type:A.uR.VERIFY_CHANNEL_RES_LND,payload:H.message})),(0,d.K)(H=>(this.handleErrorWithAlert("VerifyChannel",A.m6.VERIFY_CHANNEL,"Unable to Verify Channel. Try again later.",this.CHILD_API_URL+D.NZ.CHANNELS_BACKUP_API+"/verify/"+R.payload.channelPoint,H),(0,u.of)({type:A.pg.VOID})))))))),this.restoreChannels=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.RESTORE_CHANNELS_LND),(0,b.z)(R=>(this.store.dispatch((0,E.ac)({payload:A.m6.RESTORE_CHANNEL})),this.store.dispatch((0,k.PC)({payload:{action:"RestoreChannels",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+D.NZ.CHANNELS_BACKUP_API+"/restore/"+R.payload.channelPoint,{}).pipe((0,y.U)(H=>(this.logger.info(H),this.store.dispatch((0,k.PC)({payload:{action:"RestoreChannels",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:A.m6.RESTORE_CHANNEL})),this.store.dispatch((0,E.jW)({payload:H.message})),this.store.dispatch((0,k.B_)({payload:H.list})),{type:A.uR.RESTORE_CHANNELS_RES_LND,payload:H.message})),(0,d.K)(H=>(this.handleErrorWithAlert("RestoreChannels",A.m6.RESTORE_CHANNEL,"Unable to Restore Channel. Try again later.",this.CHILD_API_URL+D.NZ.CHANNELS_BACKUP_API+"/restore/"+R.payload.channelPoint,H),(0,u.of)({type:A.pg.VOID})))))))),this.fetchFees=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_FEES_LND),(0,b.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchFees",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+D.NZ.FEES_API))),(0,y.U)(R=>(this.logger.info(R),this.store.dispatch((0,k.PC)({payload:{action:"FetchFees",status:A.Bn.COMPLETED}})),R.forwarding_events_history&&(this.store.dispatch((0,k.QJ)({payload:R.forwarding_events_history})),delete R.forwarding_events_history),{type:A.uR.SET_FEES_LND,payload:R||{}})),(0,d.K)(R=>(this.handleErrorWithoutAlert("FetchFees",A.m6.NO_SPINNER,"Fetching Fees Failed.",R),(0,u.of)({type:A.pg.VOID}))))),this.balanceBlockchainFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_BLOCKCHAIN_BALANCE_LND),(0,b.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchBalance",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+D.NZ.BALANCE_API))),(0,y.U)(R=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchBalance",status:A.Bn.COMPLETED}})),this.logger.info(R),{type:A.uR.SET_BLOCKCHAIN_BALANCE_LND,payload:R||{total_balance:""}})),(0,d.K)(R=>(this.handleErrorWithoutAlert("FetchBalance",A.m6.NO_SPINNER,"Fetching Blockchain Balance Failed.",R),(0,u.of)({type:A.pg.VOID}))))),this.networkInfoFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_NETWORK_LND),(0,b.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchNetwork",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+D.NZ.NETWORK_API+"/info"))),(0,y.U)(R=>(this.logger.info(R),this.store.dispatch((0,k.PC)({payload:{action:"FetchNetwork",status:A.Bn.COMPLETED}})),{type:A.uR.SET_NETWORK_LND,payload:R||{}})),(0,d.K)(R=>(this.handleErrorWithoutAlert("FetchNetwork",A.m6.NO_SPINNER,"Fetching Network Failed.",R),(0,u.of)({type:A.pg.VOID}))))),this.channelsFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_CHANNELS_LND),(0,b.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchChannels",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+D.NZ.CHANNELS_API).pipe((0,y.U)(R=>(this.logger.info(R),this.store.dispatch((0,k.PC)({payload:{action:"FetchChannels",status:A.Bn.COMPLETED}})),{type:A.uR.SET_CHANNELS_LND,payload:R.channels||[]})),(0,d.K)(R=>(this.handleErrorWithoutAlert("FetchChannels",A.m6.NO_SPINNER,"Fetching Channels Failed.",R),(0,u.of)({type:A.pg.VOID})))))))),this.channelsPendingFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_PENDING_CHANNELS_LND),(0,b.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchPendingChannels",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+D.NZ.CHANNELS_API+"/pending").pipe((0,y.U)(R=>{this.logger.info(R),this.store.dispatch((0,k.PC)({payload:{action:"FetchPendingChannels",status:A.Bn.COMPLETED}}));const H={open:{num_channels:0,limbo_balance:0},closing:{num_channels:0,limbo_balance:0},force_closing:{num_channels:0,limbo_balance:0},waiting_close:{num_channels:0,limbo_balance:0},total_channels:0,total_limbo_balance:0};return R&&(H.total_limbo_balance=R.total_limbo_balance,R.pending_closing_channels&&(H.closing.num_channels=R.pending_closing_channels.length,H.total_channels=H.total_channels+R.pending_closing_channels.length,R.pending_closing_channels.forEach($=>{H.closing.limbo_balance=+H.closing.limbo_balance+($.channel.local_balance?+$.channel.local_balance:0)})),R.pending_force_closing_channels&&(H.force_closing.num_channels=R.pending_force_closing_channels.length,H.total_channels=H.total_channels+R.pending_force_closing_channels.length,R.pending_force_closing_channels.forEach($=>{H.force_closing.limbo_balance=+H.force_closing.limbo_balance+($.channel.local_balance?+$.channel.local_balance:0)})),R.pending_open_channels&&(H.open.num_channels=R.pending_open_channels.length,H.total_channels=H.total_channels+R.pending_open_channels.length,R.pending_open_channels.forEach($=>{H.open.limbo_balance=+H.open.limbo_balance+($.channel.local_balance?+$.channel.local_balance:0)})),R.waiting_close_channels&&(H.waiting_close.num_channels=R.waiting_close_channels.length,H.total_channels=H.total_channels+R.waiting_close_channels.length,R.waiting_close_channels.forEach($=>{H.waiting_close.limbo_balance=+H.waiting_close.limbo_balance+($.channel.local_balance?+$.channel.local_balance:0)}))),{type:A.uR.SET_PENDING_CHANNELS_LND,payload:R?{pendingChannels:R,pendingChannelsSummary:H}:{pendingChannels:{},pendingChannelsSummary:H}}}),(0,d.K)(R=>(this.handleErrorWithoutAlert("FetchPendingChannels",A.m6.NO_SPINNER,"Fetching Pending Channels Failed.",R),(0,u.of)({type:A.pg.VOID})))))))),this.channelsClosedFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_CLOSED_CHANNELS_LND),(0,b.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchClosedChannels",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+D.NZ.CHANNELS_API+"/closed").pipe((0,y.U)(R=>(this.logger.info(R),this.store.dispatch((0,k.PC)({payload:{action:"FetchClosedChannels",status:A.Bn.COMPLETED}})),{type:A.uR.SET_CLOSED_CHANNELS_LND,payload:R.channels||[]})),(0,d.K)(R=>(this.handleErrorWithoutAlert("FetchClosedChannels",A.m6.NO_SPINNER,"Fetching Closed Channels Failed.",R),(0,u.of)({type:A.pg.VOID})))))))),this.invoicesFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_INVOICES_LND),(0,b.z)(R=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchInvoices",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+D.NZ.INVOICES_API+"?num_max_invoices="+(R.payload.num_max_invoices?R.payload.num_max_invoices:100)+"&index_offset="+(R.payload.index_offset?R.payload.index_offset:0)+"&reversed="+(!!R.payload.reversed&&R.payload.reversed)).pipe((0,y.U)(ye=>(this.logger.info(ye),this.store.dispatch((0,k.PC)({payload:{action:"FetchInvoices",status:A.Bn.COMPLETED}})),R.payload.reversed&&!R.payload.index_offset&&(ye.total_invoices=+(ye.last_index_offset||0)),{type:A.uR.SET_INVOICES_LND,payload:ye})),(0,d.K)(ye=>(this.handleErrorWithoutAlert("FetchInvoices",A.m6.NO_SPINNER,"Fetching Invoices Failed.",ye),(0,u.of)({type:A.pg.VOID})))))))),this.transactionsFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_TRANSACTIONS_LND),(0,b.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchTransactions",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+D.NZ.TRANSACTIONS_API))),(0,y.U)(R=>(this.logger.info(R),this.store.dispatch((0,k.PC)({payload:{action:"FetchTransactions",status:A.Bn.COMPLETED}})),{type:A.uR.SET_TRANSACTIONS_LND,payload:R||[]})),(0,d.K)(R=>(this.handleErrorWithoutAlert("FetchTransactions",A.m6.NO_SPINNER,"Fetching Transactions Failed.",R),(0,u.of)({type:A.pg.VOID}))))),this.utxosFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_UTXOS_LND),(0,P.M)(this.store.select(w.Q5)),(0,b.z)(([R,H])=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchUTXOs",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+D.NZ.WALLET_API+"/getUTXOs?max_confs="+(H&&H.block_height?H.block_height:1e9)))),(0,y.U)(R=>(this.logger.info(R),this.store.dispatch((0,k.PC)({payload:{action:"FetchUTXOs",status:A.Bn.COMPLETED}})),{type:A.uR.SET_UTXOS_LND,payload:R||[]})),(0,d.K)(R=>(this.handleErrorWithoutAlert("FetchUTXOs",A.m6.NO_SPINNER,"Fetching UTXOs Failed.",R),(0,u.of)({type:A.pg.VOID}))))),this.paymentsFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_PAYMENTS_LND),(0,b.z)(R=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchPayments",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+D.NZ.PAYMENTS_API+"?max_payments="+(R.payload.max_payments?R.payload.max_payments:100)+"&index_offset="+(R.payload.index_offset?R.payload.index_offset:0)+"&reversed="+(!!R.payload.reversed&&R.payload.reversed)).pipe((0,y.U)(ye=>(this.logger.info(ye),this.store.dispatch((0,k.PC)({payload:{action:"FetchPayments",status:A.Bn.COMPLETED}})),{type:A.uR.SET_PAYMENTS_LND,payload:ye})),(0,d.K)(ye=>(this.handleErrorWithoutAlert("FetchPayments",A.m6.NO_SPINNER,"Fetching Payments Failed.",ye),(0,u.of)({type:A.uR.SET_PAYMENTS_LND,payload:{payments:[]}})))))))),this.sendPayment=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.SEND_PAYMENT_LND),(0,b.z)(R=>{this.store.dispatch((0,E.ac)({payload:R.payload.uiMessage})),this.store.dispatch((0,k.PC)({payload:{action:"SendPayment",status:A.Bn.INITIATED}}));const H={};return H.paymentReq=R.payload.paymentReq,R.payload.paymentAmount&&(H.paymentAmount=R.payload.paymentAmount),R.payload.outgoingChannel&&(H.outgoingChannel=R.payload.outgoingChannel.chan_id),R.payload.allowSelfPayment&&(H.allowSelfPayment=R.payload.allowSelfPayment),R.payload.lastHopPubkey&&(H.lastHopPubkey=R.payload.lastHopPubkey),R.payload.feeLimitType&&R.payload.feeLimitType!==A.Vc[0].id&&(H.feeLimit={},H.feeLimit[R.payload.feeLimitType]=R.payload.feeLimit),this.httpClient.post(this.CHILD_API_URL+D.NZ.CHANNELS_API+"/transactions",H).pipe((0,y.U)($=>{if(this.logger.info($),this.store.dispatch((0,E.uO)({payload:R.payload.uiMessage})),this.store.dispatch((0,k.PC)({payload:{action:"SendPayment",status:A.Bn.COMPLETED}})),$.payment_error)return R.payload.allowSelfPayment?(this.store.dispatch((0,k.WM)({payload:{num_max_invoices:A.IV,reversed:!0}})),{type:A.uR.SEND_PAYMENT_STATUS_LND,payload:$}):(R.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",R.payload.uiMessage,"Send Payment Failed.",$.payment_error):this.handleErrorWithAlert("SendPayment",R.payload.uiMessage,"Send Payment Failed",this.CHILD_API_URL+D.NZ.CHANNELS_API+"/transactions",$.payment_error),{type:A.pg.VOID});if(this.store.dispatch((0,E.uO)({payload:R.payload.uiMessage})),this.store.dispatch((0,k.PC)({payload:{action:"SendPayment",status:A.Bn.COMPLETED}})),this.store.dispatch((0,k.UR)()),this.store.dispatch((0,k.cQ)({payload:{max_payments:A.IV,reversed:!0}})),R.payload.allowSelfPayment)this.store.dispatch((0,k.WM)({payload:{num_max_invoices:A.IV,reversed:!0}}));else{let fe="Payment Sent Successfully.";$.payment_route&&$.payment_route.total_fees_msat&&(fe="Payment sent successfully with the total fee "+$.payment_route.total_fees_msat+" (mSats)."),this.store.dispatch((0,E.jW)({payload:fe}))}return{type:A.uR.SEND_PAYMENT_STATUS_LND,payload:$}}),(0,d.K)($=>(this.logger.error("Error: "+JSON.stringify($)),R.payload.allowSelfPayment?(this.handleErrorWithoutAlert("SendPayment",R.payload.uiMessage,"Send Payment Failed.",$),this.store.dispatch((0,k.WM)({payload:{num_max_invoices:A.IV,reversed:!0}})),(0,u.of)({type:A.uR.SEND_PAYMENT_STATUS_LND,payload:{error:this.commonService.extractErrorMessage($)}})):(R.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",R.payload.uiMessage,"Send Payment Failed.",$):this.handleErrorWithAlert("SendPayment",R.payload.uiMessage,"Send Payment Failed",this.CHILD_API_URL+D.NZ.CHANNELS_API+"/transactions",$),(0,u.of)({type:A.pg.VOID})))))}))),this.graphNodeFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_GRAPH_NODE_LND),(0,b.z)(R=>(this.store.dispatch((0,E.ac)({payload:A.m6.GET_NODE_ADDRESS})),this.store.dispatch((0,k.PC)({payload:{action:"FetchGraphNode",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+D.NZ.NETWORK_API+"/node/"+R.payload.pubkey).pipe((0,y.U)(H=>(this.logger.info(H),this.store.dispatch((0,E.uO)({payload:A.m6.GET_NODE_ADDRESS})),this.store.dispatch((0,k.PC)({payload:{action:"FetchGraphNode",status:A.Bn.COMPLETED}})),{type:A.uR.SET_GRAPH_NODE_LND,payload:H&&H.node?{node:H.node}:{node:null}})),(0,d.K)(H=>(this.handleErrorWithoutAlert("FetchGraphNode",A.m6.GET_NODE_ADDRESS,"Fetching Graph Node Failed.",H),(0,u.of)({type:A.pg.VOID})))))))),this.setGraphNode=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.SET_GRAPH_NODE_LND),(0,y.U)(R=>(this.logger.info(R.payload),R.payload))),{dispatch:!1}),this.getNewAddress=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.GET_NEW_ADDRESS_LND),(0,b.z)(R=>(this.store.dispatch((0,E.ac)({payload:A.m6.GENERATE_NEW_ADDRESS})),this.httpClient.get(this.CHILD_API_URL+D.NZ.NEW_ADDRESS_API+"?type="+R.payload.addressId).pipe((0,y.U)(H=>(this.logger.info(H),this.store.dispatch((0,E.uO)({payload:A.m6.GENERATE_NEW_ADDRESS})),{type:A.uR.SET_NEW_ADDRESS_LND,payload:H&&H.address?H.address:{}})),(0,d.K)(H=>(this.handleErrorWithAlert("GetNewAddress",A.m6.GENERATE_NEW_ADDRESS,"Generate New Address Failed",this.CHILD_API_URL+D.NZ.NEW_ADDRESS_API+"?type="+R.payload.addressId,H),(0,u.of)({type:A.pg.VOID})))))))),this.setNewAddress=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.SET_NEW_ADDRESS_LND),(0,y.U)(R=>(this.logger.info(R.payload),R.payload))),{dispatch:!1}),this.SetChannelTransaction=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.SET_CHANNEL_TRANSACTION_LND),(0,b.z)(R=>(this.store.dispatch((0,E.ac)({payload:A.m6.SEND_FUNDS})),this.store.dispatch((0,k.PC)({payload:{action:"SetChannelTransaction",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+D.NZ.TRANSACTIONS_API,{amount:R.payload.amount,address:R.payload.address,sendAll:R.payload.sendAll,fees:R.payload.fees,blocks:R.payload.blocks}).pipe((0,y.U)(H=>(this.logger.info(H),this.store.dispatch((0,k.PC)({payload:{action:"SetChannelTransaction",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:A.m6.SEND_FUNDS})),this.store.dispatch((0,k.mC)()),this.store.dispatch((0,k.Bl)()),this.store.dispatch((0,k.UR)()),{type:A.uR.SET_CHANNEL_TRANSACTION_RES_LND,payload:H})),(0,d.K)(H=>(this.handleErrorWithoutAlert("SetChannelTransaction",A.m6.SEND_FUNDS,"Sending Fund Failed.",H),(0,u.of)({type:A.pg.VOID})))))))),this.fetchForwardingHistory=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.GET_FORWARDING_HISTORY_LND),(0,b.z)(R=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchForwardingHistory",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+D.NZ.SWITCH_API,{num_max_events:R.payload.num_max_events,index_offset:R.payload.index_offset,end_time:R.payload.end_time,start_time:R.payload.start_time}).pipe((0,y.U)($=>(this.logger.info($),this.store.dispatch((0,k.PC)({payload:{action:"FetchForwardingHistory",status:A.Bn.COMPLETED}})),{type:A.uR.SET_FORWARDING_HISTORY_LND,payload:$})),(0,d.K)($=>(this.handleErrorWithAlert("FetchForwardingHistory",A.m6.NO_SPINNER,"Get Forwarding History Failed",this.CHILD_API_URL+D.NZ.SWITCH_API,$),(0,u.of)({type:A.pg.VOID})))))))),this.queryRoutesFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.GET_QUERY_ROUTES_LND),(0,b.z)(R=>{let H=this.CHILD_API_URL+D.NZ.NETWORK_API+"/routes/"+R.payload.destPubkey+"/"+R.payload.amount;return R.payload.outgoingChanId&&(H=H+"?outgoing_chan_id="+R.payload.outgoingChanId),this.httpClient.get(H).pipe((0,y.U)($=>(this.logger.info($),{type:A.uR.SET_QUERY_ROUTES_LND,payload:$})),(0,d.K)($=>(this.store.dispatch((0,k.kL)({payload:{routes:[]}})),this.handleErrorWithAlert("GetQueryRoutes",A.m6.NO_SPINNER,"Get Query Routes Failed",this.CHILD_API_URL+D.NZ.NETWORK_API,$),(0,u.of)({type:A.pg.VOID}))))}))),this.setQueryRoutes=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.SET_QUERY_ROUTES_LND),(0,y.U)(R=>R.payload)),{dispatch:!1}),this.genSeed=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.GEN_SEED_LND),(0,b.z)(R=>(this.store.dispatch((0,E.ac)({payload:A.m6.GEN_SEED})),this.httpClient.get(this.CHILD_API_URL+D.NZ.WALLET_API+"/genseed/"+R.payload).pipe((0,y.U)(H=>(this.logger.info("Generated GenSeed!"),this.logger.info(H),this.store.dispatch((0,E.uO)({payload:A.m6.GEN_SEED})),{type:A.uR.GEN_SEED_RESPONSE_LND,payload:H.cipher_seed_mnemonic})),(0,d.K)(H=>(this.handleErrorWithAlert("GenSeed",A.m6.GEN_SEED,"Genseed Generation Failed",this.CHILD_API_URL+D.NZ.WALLET_API+"/genseed/"+R.payload,H),(0,u.of)({type:A.pg.VOID})))))))),this.updateSelNodeOptions=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.pg.UPDATE_SELECTED_NODE_OPTIONS),(0,b.z)(()=>this.httpClient.get(this.CHILD_API_URL+D.NZ.WALLET_API+"/updateSelNodeOptions").pipe((0,y.U)(R=>(this.logger.info("Update Sel Node Successfull"),this.logger.info(R),{type:A.pg.VOID})),(0,d.K)(R=>(this.handleErrorWithAlert("UpdateSelectedNodeOptions",A.m6.NO_SPINNER,"Update macaroon for newly initialized node failed! Please check the macaroon path and restart the server!","Update Macaroon",R),(0,u.of)({type:A.pg.VOID}))))))),this.genSeedResponse=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.GEN_SEED_RESPONSE_LND),(0,y.U)(R=>R.payload)),{dispatch:!1}),this.initWalletRes=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.INIT_WALLET_RESPONSE_LND),(0,y.U)(R=>R.payload)),{dispatch:!1}),this.initWallet=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.INIT_WALLET_LND),(0,b.z)(R=>(this.store.dispatch((0,E.ac)({payload:A.m6.INITIALIZE_WALLET})),this.httpClient.post(this.CHILD_API_URL+D.NZ.WALLET_API+"/wallet/initwallet",{wallet_password:R.payload.pwd,cipher_seed_mnemonic:R.payload.cipher?R.payload.cipher:"",aezeed_passphrase:R.payload.passphrase?R.payload.passphrase:""}).pipe((0,y.U)(H=>(this.logger.info(H),this.store.dispatch((0,E.uO)({payload:A.m6.INITIALIZE_WALLET})),{type:A.uR.INIT_WALLET_RESPONSE_LND,payload:H})),(0,d.K)(H=>(this.handleErrorWithAlert("InitWallet",A.m6.INITIALIZE_WALLET,"Wallet Initialization Failed",this.CHILD_API_URL+D.NZ.WALLET_API+"/initwallet",H),(0,u.of)({type:A.pg.VOID})))))))),this.unlockWallet=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.UNLOCK_WALLET_LND),(0,b.z)(R=>(this.store.dispatch((0,E.ac)({payload:A.m6.UNLOCK_WALLET})),this.httpClient.post(this.CHILD_API_URL+D.NZ.WALLET_API+"/wallet/unlockwallet",{wallet_password:R.payload.pwd}).pipe((0,y.U)(H=>(this.logger.info(H),this.logger.info("Successfully Unlocked!"),this.sessionService.setItem("lndUnlocked","true"),this.store.dispatch((0,E.uO)({payload:A.m6.UNLOCK_WALLET})),this.store.dispatch((0,E.ac)({payload:A.m6.WAIT_SYNC_NODE})),setTimeout(()=>{this.store.dispatch((0,E.uO)({payload:A.m6.WAIT_SYNC_NODE})),this.store.dispatch((0,k.sQ)({payload:{loadPage:"HOME"}}))},5e3),{type:A.pg.VOID})),(0,d.K)(H=>(this.handleErrorWithAlert("UnlockWallet",A.m6.UNLOCK_WALLET,"Unlock Wallet Failed",this.CHILD_API_URL+D.NZ.WALLET_API+"/unlockwallet",H),(0,u.of)({type:A.pg.VOID}))))))),{dispatch:!1}),this.peerLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.PEER_LOOKUP_LND),(0,b.z)(R=>(this.store.dispatch((0,E.ac)({payload:A.m6.SEARCHING_NODE})),this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+D.NZ.NETWORK_API+"/node/"+R.payload).pipe((0,y.U)(H=>(this.logger.info(H),this.store.dispatch((0,E.uO)({payload:A.m6.SEARCHING_NODE})),this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:A.Bn.COMPLETED}})),{type:A.uR.SET_LOOKUP_LND,payload:H})),(0,d.K)(H=>(this.handleErrorWithAlert("Lookup",A.m6.SEARCHING_NODE,"Peer Lookup Failed",this.CHILD_API_URL+D.NZ.NETWORK_API+"/node/"+R.payload,H),(0,u.of)({type:A.pg.VOID})))))))),this.channelLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.CHANNEL_LOOKUP_LND),(0,b.z)(R=>(this.store.dispatch((0,E.ac)({payload:R.payload.uiMessage})),this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+D.NZ.NETWORK_API+"/edge/"+R.payload.channelID).pipe((0,y.U)(H=>(this.logger.info(H),this.store.dispatch((0,E.uO)({payload:R.payload.uiMessage})),this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:A.Bn.COMPLETED}})),{type:A.uR.SET_LOOKUP_LND,payload:H})),(0,d.K)(H=>(this.handleErrorWithAlert("Lookup",R.payload.uiMessage,"Channel Lookup Failed",this.CHILD_API_URL+D.NZ.NETWORK_API+"/edge/"+R.payload.channelID,H),(0,u.of)({type:A.pg.VOID})))))))),this.invoiceLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.INVOICE_LOOKUP_LND),(0,b.z)(R=>{this.store.dispatch((0,E.ac)({payload:A.m6.SEARCHING_INVOICE})),this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:A.Bn.INITIATED}}));let H=this.CHILD_API_URL+D.NZ.INVOICES_API+"/lookup";return H=R.payload.paymentAddress&&""!==R.payload.paymentAddress?H+"?payment_addr="+R.payload.paymentAddress:H+"?payment_hash="+R.payload.paymentHash,this.httpClient.get(H).pipe((0,y.U)($=>(this.logger.info($),this.store.dispatch((0,E.uO)({payload:A.m6.SEARCHING_INVOICE})),this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:A.Bn.COMPLETED}})),this.store.dispatch((0,k.aL)({payload:$})),{type:A.uR.SET_LOOKUP_LND,payload:$})),(0,d.K)($=>(this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:A.Bn.ERROR}})),this.handleErrorWithoutAlert("Lookup",A.m6.SEARCHING_INVOICE,"Invoice Lookup Failed",$),R.payload.openSnackBar&&this.store.dispatch((0,E.jW)({payload:{message:"Invoice Refresh Failed.",type:"ERROR"}})),(0,u.of)({type:A.uR.SET_LOOKUP_LND,payload:{error:$}}))))}))),this.paymentLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.PAYMENT_LOOKUP_LND),(0,b.z)(R=>(this.store.dispatch((0,E.ac)({payload:A.m6.SEARCHING_PAYMENT})),this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+D.NZ.PAYMENTS_API+"/lookup/"+R.payload).pipe((0,y.U)(H=>(this.logger.info(H),this.store.dispatch((0,E.uO)({payload:A.m6.SEARCHING_PAYMENT})),this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:A.Bn.COMPLETED}})),this.store.dispatch((0,k.qY)({payload:H})),{type:A.uR.SET_LOOKUP_LND,payload:H})),(0,d.K)(H=>(this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:A.Bn.ERROR}})),this.handleErrorWithoutAlert("Lookup",A.m6.SEARCHING_PAYMENT,"Payment Lookup Failed",H),(0,u.of)({type:A.uR.SET_LOOKUP_LND,payload:{error:H}})))))))),this.setLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.SET_LOOKUP_LND),(0,y.U)(R=>(this.logger.info(R.payload),R.payload))),{dispatch:!1}),this.getRestoreChannelList=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.RESTORE_CHANNELS_LIST_LND),(0,b.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"RestoreChannelsList",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+D.NZ.CHANNELS_BACKUP_API+"/restore/list").pipe((0,y.U)(R=>(this.logger.info(R),this.store.dispatch((0,k.PC)({payload:{action:"RestoreChannelsList",status:A.Bn.COMPLETED}})),{type:A.uR.SET_RESTORE_CHANNELS_LIST_LND,payload:R||{all_restore_exists:!1,files:[]}})),(0,d.K)(R=>(this.handleErrorWithAlert("RestoreChannelsList",A.m6.NO_SPINNER,"Restore Channels List Failed",this.CHILD_API_URL+D.NZ.CHANNELS_BACKUP_API,R),(0,u.of)({type:A.pg.VOID})))))))),this.setRestoreChannelList=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.SET_RESTORE_CHANNELS_LIST_LND),(0,y.U)(R=>(this.logger.info(R.payload),R.payload))),{dispatch:!1}),this.allLightningTransactionsFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.GET_ALL_LIGHTNING_TRANSATIONS_LND),(0,b.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchLightningTransactions",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+D.NZ.PAYMENTS_API+"/alltransactions").pipe((0,y.U)(R=>(this.logger.info(R),this.store.dispatch((0,k.PC)({payload:{action:"FetchLightningTransactions",status:A.Bn.COMPLETED}})),{type:A.uR.SET_ALL_LIGHTNING_TRANSATIONS_LND,payload:R})),(0,d.K)(R=>(this.handleErrorWithoutAlert("FetchLightningTransactions",A.m6.NO_SPINNER,"Fetching All Lightning Transaction Failed.",R),(0,u.of)({type:A.pg.VOID})))))))),this.store.select(w.yA).pipe((0,a.R)(this.unSubs[0])).subscribe(R=>{R.FetchInfo.status!==A.Bn.COMPLETED&&R.FetchInfo.status!==A.Bn.ERROR||R.FetchFees.status!==A.Bn.COMPLETED&&R.FetchFees.status!==A.Bn.ERROR||R.FetchBalanceBlockchain.status!==A.Bn.COMPLETED&&R.FetchBalanceBlockchain.status!==A.Bn.ERROR||R.FetchAllChannels.status!==A.Bn.COMPLETED&&R.FetchAllChannels.status!==A.Bn.ERROR||R.FetchPendingChannels.status!==A.Bn.COMPLETED&&R.FetchPendingChannels.status!==A.Bn.ERROR||this.flgInitialized||(this.store.dispatch((0,E.uO)({payload:A.m6.INITALIZE_NODE_DATA})),this.flgInitialized=!0)}),this.wsService.lndWSMessages.pipe((0,a.R)(this.unSubs[1])).subscribe(R=>{this.logger.info("Received new message from the service: "+JSON.stringify(R)),R&&(R.type===A.g8.INVOICE?(this.logger.info(R),R&&R.result&&R.result.payment_request&&this.store.dispatch((0,k.aL)({payload:R.result}))):this.logger.info("Received Event from WS: "+JSON.stringify(R)))})}initializeRemainingData(r,h){this.sessionService.setItem("lndUnlocked","true");const c={identity_pubkey:r.identity_pubkey,alias:r.alias,testnet:r.testnet,chains:r.chains,uris:r.uris,version:r.version?r.version.split(" ")[0]:""};this.store.dispatch((0,E.ac)({payload:A.m6.INITALIZE_NODE_DATA})),this.store.dispatch((0,E._V)({payload:c}));let C=this.location.path();C.includes("/cln/")?C=null==C?void 0:C.replace("/cln/","/lnd/"):C.includes("/ecl/")&&(C=null==C?void 0:C.replace("/ecl/","/lnd/")),(C.includes("/unlock")||C.includes("/login")||C.includes("/error")||""===C||"HOME"===h||C.includes("?access-key="))&&(C="/lnd/home"),this.router.navigate([C]),this.store.dispatch((0,k.Bl)()),this.store.dispatch((0,k.UR)()),this.store.dispatch((0,k.Z7)()),this.store.dispatch((0,k.Zh)()),this.store.dispatch((0,k.$W)()),this.store.dispatch((0,k.Rv)()),this.store.dispatch((0,k.SN)()),this.store.dispatch((0,k.WM)({payload:{num_max_invoices:10,reversed:!0}})),this.store.dispatch((0,k.cQ)({payload:{max_payments:1e5,reversed:!0}}))}handleErrorWithoutAlert(r,h,c,C){this.logger.error("ERROR IN: "+r+"\n"+JSON.stringify(C)),401===C.status?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,E.ts)()),this.store.dispatch((0,E.kS)()),this.store.dispatch((0,E.jW)({payload:"Authentication Failed. Redirecting to Login."}))):(this.store.dispatch((0,E.uO)({payload:h})),this.store.dispatch((0,k.PC)({payload:{action:r,status:A.Bn.ERROR,statusCode:C.status.toString(),message:this.commonService.extractErrorMessage(C,c)}})))}handleErrorWithAlert(r,h,c,C,S){if(this.logger.error(S),401===S.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,E.ts)()),this.store.dispatch((0,E.kS)()),this.store.dispatch((0,E.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,E.uO)({payload:h}));const I=this.commonService.extractErrorMessage(S);this.store.dispatch((0,E.qR)({payload:{data:{type:"ERROR",alertTitle:c,message:{code:S.status,message:I,URL:C},component:M.H}}})),this.store.dispatch((0,k.PC)({payload:{action:r,status:A.Bn.ERROR,statusCode:S.status.toString(),message:I,URL:C}}))}}ngOnDestroy(){this.unSubs.forEach(r=>{r.next(null),r.complete()})}}return x.\u0275fac=function(r){return new(r||x)(z.LFG(e.eX),z.LFG(U.eN),z.LFG(W.yh),z.LFG(ne.mQ),z.LFG(Q.v),z.LFG(le.m),z.LFG(q.uw),z.LFG(ie.F0),z.LFG(se.d),z.LFG(J.Ye))},x.\u0275prov=z.Yz7({token:x,factory:x.\u0275fac}),x})()},6529:(He,j,p)=>{"use strict";p.d(j,{$k:()=>u,Bo:()=>d,Ef:()=>A,JG:()=>D,N7:()=>Q,P2:()=>z,PP:()=>P,Q5:()=>b,T4:()=>ne,Wi:()=>T,ZW:()=>E,_f:()=>q,bx:()=>ie,dx:()=>M,l5:()=>le,ni:()=>w,qU:()=>U,yA:()=>y});var e=p(5620);const i=(0,e.ZF)("lnd"),u=(0,e.P1)(i,se=>se.nodeSettings),b=(0,e.P1)(i,se=>se.information),y=((0,e.P1)(i,se=>({information:se.information,apiCallStatus:se.apisCallStatus.FetchInfo})),(0,e.P1)(i,se=>se.apisCallStatus)),d=(0,e.P1)(i,se=>({forwardingHistory:se.forwardingHistory,apiCallStatus:se.apisCallStatus.FetchForwardingHistory})),P=(0,e.P1)(i,se=>({listPayments:se.listPayments,apiCallStatus:se.apisCallStatus.FetchPayments})),D=(0,e.P1)(i,se=>({fees:se.fees,apiCallStatus:se.apisCallStatus.FetchFees})),T=(0,e.P1)(i,se=>({peers:se.peers,apiCallStatus:se.apisCallStatus.FetchPeers})),M=(0,e.P1)(i,se=>({transactions:se.transactions,apiCallStatus:se.apisCallStatus.FetchTransactions})),A=(0,e.P1)(i,se=>({listInvoices:se.listInvoices,apiCallStatus:se.apisCallStatus.FetchInvoices})),E=(0,e.P1)(i,se=>({channels:se.channels,channelsSummary:se.channelsSummary,lightningBalance:se.lightningBalance,apiCallStatus:se.apisCallStatus.FetchAllChannels})),w=((0,e.P1)(i,se=>({channelsSummary:se.channelsSummary,pendingChannels:se.pendingChannels,closedChannels:se.closedChannels,apiCallStatus:se.apisCallStatus.FetchAllChannels})),(0,e.P1)(i,se=>({pendingChannels:se.pendingChannels,pendingChannelsSummary:se.pendingChannelsSummary,apiCallStatus:se.apisCallStatus.FetchPendingChannels}))),z=(0,e.P1)(i,se=>({closedChannels:se.closedChannels,apiCallStatus:se.apisCallStatus.FetchClosedChannels})),U=(0,e.P1)(i,se=>({blockchainBalance:se.blockchainBalance,apiCallStatus:se.apisCallStatus.FetchBalanceBlockchain})),ne=((0,e.P1)(i,se=>({lightningBalance:se.lightningBalance,apiCallStatus:se.apisCallStatus.FetchAllChannels})),(0,e.P1)(i,se=>({utxos:se.utxos,apiCallStatus:se.apisCallStatus.FetchUTXOs}))),Q=(0,e.P1)(i,se=>({networkInfo:se.networkInfo,apiCallStatus:se.apisCallStatus.FetchNetwork})),le=(0,e.P1)(i,se=>({allLightningTransactions:se.allLightningTransactions,apiCallStatus:se.apisCallStatus.FetchLightningTransactions})),q=(0,e.P1)(i,se=>({channels:se.channels,pendingChannels:se.pendingChannels,closedChannels:se.closedChannels})),ie=(0,e.P1)(i,se=>({information:se.information,nodeSettings:se.nodeSettings,apiCallStatus:se.apisCallStatus.FetchInfo}))},8627:(He,j,p)=>{"use strict";p.d(j,{v:()=>ee});var e=p(8966),i=p(801),u=p(7579),b=p(2722),a=p(7731),y=p(6529),d=p(5e3),P=p(5043),D=p(62),T=p(7261),M=p(5620),A=p(7093),E=p(9808),k=p(3322),w=p(159),z=p(9224),U=p(9444),W=p(7423),ne=p(4834),Q=p(8129),le=p(773),q=p(1125),ie=p(7238),se=p(5245),J=p(3390),me=p(6895);const x=["scrollContainer"];function t(ue,ve){if(1&ue&&d._UZ(0,"qr-code",32),2&ue){const Le=d.oxw();d.Q6J("value",null==Le.invoice?null:Le.invoice.payment_request)("size",Le.qrWidth)("errorCorrectionLevel","L")}}function r(ue,ve){1&ue&&(d.TgZ(0,"span",33),d._uU(1,"N/A"),d.qZA())}function h(ue,ve){if(1&ue&&d._UZ(0,"qr-code",32),2&ue){const Le=d.oxw();d.Q6J("value",null==Le.invoice?null:Le.invoice.payment_request)("size",Le.qrWidth)("errorCorrectionLevel","L")}}function c(ue,ve){1&ue&&(d.TgZ(0,"span",34),d._uU(1,"QR Code Not Applicable"),d.qZA())}function C(ue,ve){1&ue&&d._UZ(0,"mat-divider",22),2&ue&&d.Q6J("inset",!0)}function S(ue,ve){1&ue&&(d.ynx(0),d._uU(1," (zero amount) "),d.BQk())}function I(ue,ve){1&ue&&d._UZ(0,"span",40)}const _=function(){return[]};function n(ue,ve){if(1&ue&&(d.TgZ(0,"div",36)(1,"div",37)(2,"span",38),d._uU(3),d.ALo(4,"number"),d.qZA(),d.YNc(5,I,1,0,"span",39),d.qZA()()),2&ue){const Le=d.oxw(2);d.xp6(3),d.hij("",d.lcZ(4,2,null==Le.invoice?null:Le.invoice.amt_paid_sat)," Sats"),d.xp6(2),d.Q6J("ngForOf",d.DdM(4,_).constructor(35))}}function g(ue,ve){if(1&ue&&(d.TgZ(0,"div"),d._uU(1),d.ALo(2,"number"),d.qZA()),2&ue){const Le=d.oxw(2);d.xp6(1),d.hij("",d.lcZ(2,1,null==Le.invoice?null:Le.invoice.amt_paid_sat)," Sats")}}function V(ue,ve){if(1&ue&&(d.ynx(0),d.YNc(1,n,6,5,"div",35),d.YNc(2,g,3,3,"div",21),d.BQk()),2&ue){const Le=d.oxw();d.xp6(1),d.Q6J("ngIf",Le.flgInvoicePaid),d.xp6(1),d.Q6J("ngIf",!Le.flgInvoicePaid)}}function R(ue,ve){1&ue&&(d.TgZ(0,"span"),d._uU(1,"-"),d.qZA())}function H(ue,ve){1&ue&&d._UZ(0,"mat-spinner",42),2&ue&&d.Q6J("diameter",20)}function $(ue,ve){if(1&ue&&(d.ynx(0),d.YNc(1,R,2,0,"span",21),d.YNc(2,H,1,1,"mat-spinner",41),d.BQk()),2&ue){const Le=d.oxw();d.xp6(1),d.Q6J("ngIf","OPEN"!==(null==Le.invoice?null:Le.invoice.state)||!Le.flgVersionCompatible),d.xp6(1),d.Q6J("ngIf","OPEN"===(null==Le.invoice?null:Le.invoice.state)&&Le.flgVersionCompatible)}}const fe=function(ue){return{"mr-0":ue}};function ye(ue,ve){if(1&ue&&d._UZ(0,"span",59),2&ue){const Le=d.oxw(4);d.Q6J("ngClass",d.VKq(1,fe,Le.screenSize===Le.screenSizeEnum.XS))}}function ke(ue,ve){if(1&ue&&d._UZ(0,"span",60),2&ue){const Le=d.oxw(4);d.Q6J("ngClass",d.VKq(1,fe,Le.screenSize===Le.screenSizeEnum.XS))}}function Ee(ue,ve){if(1&ue&&d._UZ(0,"span",61),2&ue){const Le=d.oxw(4);d.Q6J("ngClass",d.VKq(1,fe,Le.screenSize===Le.screenSizeEnum.XS))}}function te(ue,ve){if(1&ue&&(d.TgZ(0,"div",48)(1,"div",53)(2,"span",54),d.YNc(3,ye,1,3,"span",55),d.YNc(4,ke,1,3,"span",56),d.YNc(5,Ee,1,3,"span",57),d._uU(6),d.qZA(),d.TgZ(7,"span",58),d._uU(8),d.ALo(9,"number"),d.qZA()(),d._UZ(10,"mat-divider",22),d.qZA()),2&ue){const Le=ve.$implicit,lt=d.oxw(3);d.xp6(3),d.Q6J("ngIf","SETTLED"===Le.state),d.xp6(1),d.Q6J("ngIf","ACCEPTED"===Le.state),d.xp6(1),d.Q6J("ngIf","CANCELED"===Le.state),d.xp6(1),d.hij(" ",Le.chan_id," "),d.xp6(2),d.Oqu(d.xi3(9,6,+Le.amt_msat/1e3||0,lt.getDecimalFormat(Le))),d.xp6(2),d.Q6J("inset",!0)}}function ze(ue,ve){if(1&ue){const Le=d.EpF();d.TgZ(0,"div",17)(1,"mat-expansion-panel",46),d.NdJ("opened",function(){return d.CHM(Le),d.oxw(2).flgOpened=!0})("closed",function(){return d.CHM(Le),d.oxw(2).onExpansionClosed()}),d.TgZ(2,"mat-expansion-panel-header")(3,"mat-panel-title")(4,"h4",47),d._uU(5,"HTLCs"),d.qZA()()(),d.TgZ(6,"div",48)(7,"div",49)(8,"span",50),d._uU(9,"Channel ID"),d.qZA(),d.TgZ(10,"span",51),d._uU(11,"Amount (Sats)"),d.qZA()(),d._UZ(12,"mat-divider",22),d.YNc(13,te,11,9,"div",52),d.qZA()()()}if(2&ue){const Le=d.oxw(2);d.xp6(12),d.Q6J("inset",!0),d.xp6(1),d.Q6J("ngForOf",null==Le.invoice?null:Le.invoice.htlcs)}}function be(ue,ve){1&ue&&d._UZ(0,"mat-divider",22),2&ue&&d.Q6J("inset",!0)}function Z(ue,ve){if(1&ue&&(d.TgZ(0,"div"),d._UZ(1,"mat-divider",22),d.TgZ(2,"div",17)(3,"div",23)(4,"h4",19),d._uU(5,"Preimage"),d.qZA(),d.TgZ(6,"span",24),d._uU(7),d.qZA()()(),d._UZ(8,"mat-divider",22),d.TgZ(9,"div",17)(10,"div",43)(11,"h4",19),d._uU(12,"State"),d.qZA(),d.TgZ(13,"span",24),d._uU(14),d.qZA()(),d.TgZ(15,"div",44)(16,"h4",19),d._uU(17,"Expiry"),d.qZA(),d.TgZ(18,"span",24),d._uU(19),d.qZA()(),d.TgZ(20,"div",44)(21,"h4",19),d._uU(22,"Private Routing Hints"),d.qZA(),d.TgZ(23,"span",24),d._uU(24),d.qZA()()(),d._UZ(25,"mat-divider",22),d.YNc(26,ze,14,2,"div",45),d.YNc(27,be,1,1,"mat-divider",14),d.qZA()),2&ue){const Le=d.oxw();d.xp6(1),d.Q6J("inset",!0),d.xp6(6),d.Oqu((null==Le.invoice?null:Le.invoice.r_preimage)||"-"),d.xp6(1),d.Q6J("inset",!0),d.xp6(6),d.Oqu(null==Le.invoice?null:Le.invoice.state),d.xp6(5),d.Oqu(null==Le.invoice?null:Le.invoice.expiry),d.xp6(5),d.Oqu(null!=Le.invoice&&Le.invoice.private?"Yes":"No"),d.xp6(1),d.Q6J("inset",!0),d.xp6(1),d.Q6J("ngIf",(null==Le.invoice?null:Le.invoice.htlcs)&&(null==Le.invoice?null:Le.invoice.htlcs.length)>0),d.xp6(1),d.Q6J("ngIf",(null==Le.invoice?null:Le.invoice.htlcs)&&(null==Le.invoice?null:Le.invoice.htlcs.length)>0)}}function Y(ue,ve){if(1&ue){const Le=d.EpF();d.TgZ(0,"div",62)(1,"button",63),d.NdJ("click",function(){return d.CHM(Le),d.oxw().onScrollDown()}),d.TgZ(2,"mat-icon",64),d._uU(3,"arrow_downward"),d.qZA()()()}}function ot(ue,ve){1&ue&&(d.TgZ(0,"p"),d._uU(1,"Show Advanced"),d.qZA())}function Ie(ue,ve){1&ue&&(d.TgZ(0,"p"),d._uU(1,"Hide Advanced"),d.qZA())}function Ae(ue,ve){if(1&ue){const Le=d.EpF();d.TgZ(0,"button",65),d.NdJ("copied",function(ht){return d.CHM(Le),d.oxw().onCopyPayment(ht)}),d._uU(1),d.qZA()}if(2&ue){const Le=d.oxw();d.Q6J("payload",null==Le.invoice?null:Le.invoice.payment_request),d.xp6(1),d.Oqu(Le.screenSize===Le.screenSizeEnum.XS?"Copy Payment":"Copy Payment Request")}}function ce(ue,ve){if(1&ue){const Le=d.EpF();d.TgZ(0,"button",66),d.NdJ("click",function(){return d.CHM(Le),d.oxw().onClose()}),d._uU(1,"OK"),d.qZA()}}const Te=function(ue){return{"display-none":ue}},xe=function(ue){return{"xs-scroll-y":ue}},G=function(ue){return{"h-50":ue}};let ee=(()=>{class ue{constructor(Le,lt,ht,Tt,hi,jt){this.dialogRef=Le,this.data=lt,this.logger=ht,this.commonService=Tt,this.snackBar=hi,this.store=jt,this.faReceipt=i.dLy,this.showAdvanced=!1,this.newlyAdded=!1,this.invoice=null,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=a.cu,this.flgOpened=!1,this.flgInvoicePaid=!1,this.flgVersionCompatible=!0,this.unSubs=[new u.x,new u.x,new u.x,new u.x,new u.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===a.cu.XS&&(this.qrWidth=220),this.store.select(y.Q5).pipe((0,b.R)(this.unSubs[0])).subscribe(lt=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(lt.version,"0.11.0")});const Le=JSON.parse(JSON.stringify(this.invoice));this.store.select(y.Ef).pipe((0,b.R)(this.unSubs[1])).subscribe(lt=>{var ht,Tt,hi;const jt=null===(ht=this.invoice)||void 0===ht?void 0:ht.state,di=(lt.listInvoices.invoices||[]).find(vt=>vt.r_hash===Le.r_hash)||null;this.invoice=di,jt!==(null===(Tt=this.invoice)||void 0===Tt?void 0:Tt.state)&&"SETTLED"===(null===(hi=this.invoice)||void 0===hi?void 0:hi.state)&&(this.flgInvoicePaid=!0,setTimeout(()=>{this.flgInvoicePaid=!1},4e3)),this.logger.info(lt)})}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced,this.flgOpened=!1}onScrollDown(){this.scrollContainer.nativeElement.scrollTop=this.scrollContainer.nativeElement.scrollTop+60}onExpansionClosed(){this.flgOpened=!1,this.scrollContainer.nativeElement.scrollTop=0}onCopyPayment(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()})}}return ue.\u0275fac=function(Le){return new(Le||ue)(d.Y36(e.so),d.Y36(e.WI),d.Y36(P.mQ),d.Y36(D.v),d.Y36(T.ux),d.Y36(M.yh))},ue.\u0275cmp=d.Xpm({type:ue,selectors:[["rtl-invoice-information"]],viewQuery:function(Le,lt){if(1&Le&&d.Gf(x,5),2&Le){let ht;d.iGM(ht=d.CRH())&&(lt.container=ht.first)}},decls:78,vars:49,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign.gt-sm","space-between stretch"],["fxFlex","35",1,"modal-qr-code-container","padding-gap-large",3,"fxLayoutAlign","ngClass"],[3,"value","size","errorCorrectionLevel",4,"ngIf"],["class","font-size-300",4,"ngIf"],["fxLayout","column","fxFlex","65"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large",3,"ngClass"],["fxLayout","column"],["fxFlex","30",1,"modal-qr-code-container","padding-gap",3,"fxLayoutAlign","ngClass"],["class","font-size-120",4,"ngIf"],["class","my-1",3,"inset",4,"ngIf"],[3,"perfectScrollbar","ngClass"],["scrollContainer",""],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[4,"ngIf"],[1,"my-1",3,"inset"],["fxFlex","100"],[1,"overflow-wrap","foreground-secondary-text"],["fxLayout","row","fxLayoutAlign","start end","class","btn-sticky-container padding-gap-x-large",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center","fxFlex","100",1,"padding-gap-x-large","padding-gap-bottom-large"],["mat-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["hideAdvancedText",""],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click",4,"ngIf"],[3,"value","size","errorCorrectionLevel"],[1,"font-size-300"],[1,"font-size-120"],["class","invoice-animation-container",4,"ngIf"],[1,"invoice-animation-container"],[1,"invoice-animation-div"],[1,"wiggle"],["class","particles-circle",4,"ngFor","ngForOf"],[1,"particles-circle"],[3,"diameter",4,"ngIf"],[3,"diameter"],["fxFlex","34"],["fxFlex","33"],["fxLayout","row",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"flat-expansion-panel",3,"opened","closed"],["fxLayoutAlign","start center","fxFlex","100",1,"font-bold-500"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100"],["fxLayout","row","fxLayoutAlign","start start","fxFlex","100",1,"mt-minus-1"],["fxFlex","60",1,"foreground-secondary-text","font-bold-500"],["fxFlex","40",1,"foreground-secondary-text","font-bold-500"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start start","fxFlex","100"],["fxFlex","60",1,"foreground-secondary-text"],["class","dot green","matTooltip","Settled","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot yellow","matTooltip","Accepted","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red","matTooltip","Cancelled","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["fxFlex","40",1,"foreground-secondary-text"],["matTooltip","Settled","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Accepted","matTooltipPosition","right",1,"dot","yellow",3,"ngClass"],["matTooltip","Cancelled","matTooltipPosition","right",1,"dot","red",3,"ngClass"],["fxLayout","row","fxLayoutAlign","start end",1,"btn-sticky-container","padding-gap-x-large"],["mat-mini-fab","","aria-label","Scroll Down","fxLayoutAlign","center center",3,"click"],["fxLayoutAlign","center center"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click"]],template:function(Le,lt){if(1&Le&&(d.TgZ(0,"div",0)(1,"div",1),d.YNc(2,t,1,3,"qr-code",2),d.YNc(3,r,2,0,"span",3),d.qZA(),d.TgZ(4,"div",4)(5,"mat-card-header",5)(6,"div",6),d._UZ(7,"fa-icon",7),d.TgZ(8,"span",8),d._uU(9),d.qZA()(),d.TgZ(10,"button",9),d.NdJ("click",function(){return lt.onClose()}),d._uU(11,"X"),d.qZA()(),d.TgZ(12,"mat-card-content",10)(13,"div",11)(14,"div",12),d.YNc(15,h,1,3,"qr-code",2),d.YNc(16,c,2,0,"span",13),d.qZA(),d.YNc(17,C,1,1,"mat-divider",14),d.TgZ(18,"div",15,16)(20,"div",17)(21,"div",18)(22,"h4",19),d._uU(23),d.qZA(),d.TgZ(24,"span",20),d._uU(25),d.ALo(26,"number"),d.YNc(27,S,2,0,"ng-container",21),d.qZA()(),d.TgZ(28,"div",18)(29,"h4",19),d._uU(30,"Amount Settled"),d.qZA(),d.TgZ(31,"span",20),d.YNc(32,V,3,2,"ng-container",21),d.YNc(33,$,3,2,"ng-container",21),d.qZA()()(),d._UZ(34,"mat-divider",22),d.TgZ(35,"div",17)(36,"div",18)(37,"h4",19),d._uU(38,"Date Created"),d.qZA(),d.TgZ(39,"span",20),d._uU(40),d.ALo(41,"date"),d.qZA()(),d.TgZ(42,"div",18)(43,"h4",19),d._uU(44,"Date Settled"),d.qZA(),d.TgZ(45,"span",20),d._uU(46),d.ALo(47,"date"),d.qZA()()(),d._UZ(48,"mat-divider",22),d.TgZ(49,"div",17)(50,"div",23)(51,"h4",19),d._uU(52,"Memo"),d.qZA(),d.TgZ(53,"span",20),d._uU(54),d.qZA()()(),d._UZ(55,"mat-divider",22),d.TgZ(56,"div",17)(57,"div",23)(58,"h4",19),d._uU(59,"Payment Request"),d.qZA(),d.TgZ(60,"span",24),d._uU(61),d.qZA()()(),d._UZ(62,"mat-divider",22),d.TgZ(63,"div",17)(64,"div",23)(65,"h4",19),d._uU(66,"Payment Hash"),d.qZA(),d.TgZ(67,"span",24),d._uU(68),d.qZA()()(),d.YNc(69,Z,28,9,"div",21),d.qZA()()(),d.YNc(70,Y,4,0,"div",25),d.TgZ(71,"div",26)(72,"button",27),d.NdJ("click",function(){return lt.onShowAdvanced()}),d.YNc(73,ot,2,0,"p",28),d.YNc(74,Ie,2,0,"ng-template",null,29,d.W1O),d.qZA(),d.YNc(76,Ae,2,2,"button",30),d.YNc(77,ce,2,0,"button",31),d.qZA()()()),2&Le){const ht=d.MAs(75);d.xp6(1),d.Q6J("fxLayoutAlign",null!=lt.invoice&&lt.invoice.payment_request&&""!==(null==lt.invoice?null:lt.invoice.payment_request)?"center start":"center center")("ngClass",d.VKq(41,Te,lt.screenSize===lt.screenSizeEnum.XS||lt.screenSize===lt.screenSizeEnum.SM)),d.xp6(1),d.Q6J("ngIf",(null==lt.invoice?null:lt.invoice.payment_request)&&""!==(null==lt.invoice?null:lt.invoice.payment_request)),d.xp6(1),d.Q6J("ngIf",!(null!=lt.invoice&&lt.invoice.payment_request)||""===(null==lt.invoice?null:lt.invoice.payment_request)),d.xp6(4),d.Q6J("icon",lt.faReceipt),d.xp6(2),d.Oqu(lt.screenSize===lt.screenSizeEnum.XS?lt.newlyAdded?"Created":"Invoice":lt.newlyAdded?"Invoice Created":"Invoice Information"),d.xp6(3),d.Q6J("ngClass",d.VKq(43,xe,lt.screenSize===lt.screenSizeEnum.XS)),d.xp6(2),d.Q6J("fxLayoutAlign",null!=lt.invoice&&lt.invoice.payment_request&&""!==(null==lt.invoice?null:lt.invoice.payment_request)?"center start":"center center")("ngClass",d.VKq(45,Te,lt.screenSize!==lt.screenSizeEnum.XS&&lt.screenSize!==lt.screenSizeEnum.SM)),d.xp6(1),d.Q6J("ngIf",(null==lt.invoice?null:lt.invoice.payment_request)&&""!==(null==lt.invoice?null:lt.invoice.payment_request)),d.xp6(1),d.Q6J("ngIf",!(null!=lt.invoice&&lt.invoice.payment_request)||""===(null==lt.invoice?null:lt.invoice.payment_request)),d.xp6(1),d.Q6J("ngIf",lt.screenSize===lt.screenSizeEnum.XS||lt.screenSize===lt.screenSizeEnum.SM),d.xp6(1),d.Q6J("ngClass",d.VKq(47,G,(null==lt.invoice?null:lt.invoice.htlcs)&&(null==lt.invoice?null:lt.invoice.htlcs.length)>0&&lt.showAdvanced)),d.xp6(5),d.Oqu(lt.screenSize===lt.screenSizeEnum.XS?"Amount":"Amount Requested"),d.xp6(2),d.hij("",d.lcZ(26,33,(null==lt.invoice?null:lt.invoice.value)||0)," Sats"),d.xp6(2),d.Q6J("ngIf",!(null!=lt.invoice&&lt.invoice.value)||"0"===(null==lt.invoice?null:lt.invoice.value)),d.xp6(5),d.Q6J("ngIf",(null==lt.invoice?null:lt.invoice.amt_paid_sat)&&"OPEN"!==(null==lt.invoice?null:lt.invoice.state)),d.xp6(1),d.Q6J("ngIf",!(null!=lt.invoice&&lt.invoice.amt_paid_sat)||"0"===(null==lt.invoice?null:lt.invoice.amt_paid_sat)),d.xp6(1),d.Q6J("inset",!0),d.xp6(6),d.Oqu(d.xi3(41,35,1e3*(null==lt.invoice?null:lt.invoice.creation_date),"dd/MMM/y HH:mm")),d.xp6(6),d.Oqu(0!=+(null==lt.invoice?null:lt.invoice.settle_date)?d.xi3(47,38,1e3*+(null==lt.invoice?null:lt.invoice.settle_date),"dd/MMM/y HH:mm"):"-"),d.xp6(2),d.Q6J("inset",!0),d.xp6(6),d.Oqu(null==lt.invoice?null:lt.invoice.memo),d.xp6(1),d.Q6J("inset",!0),d.xp6(6),d.Oqu((null==lt.invoice?null:lt.invoice.payment_request)||"N/A"),d.xp6(1),d.Q6J("inset",!0),d.xp6(6),d.Oqu((null==lt.invoice?null:lt.invoice.r_hash)||""),d.xp6(1),d.Q6J("ngIf",lt.showAdvanced),d.xp6(1),d.Q6J("ngIf",(null==lt.invoice?null:lt.invoice.htlcs)&&(null==lt.invoice?null:lt.invoice.htlcs.length)>0&&lt.showAdvanced&&lt.flgOpened),d.xp6(3),d.Q6J("ngIf",!lt.showAdvanced)("ngIfElse",ht),d.xp6(3),d.Q6J("ngIf",(null==lt.invoice?null:lt.invoice.payment_request)&&""!==(null==lt.invoice?null:lt.invoice.payment_request)),d.xp6(1),d.Q6J("ngIf",!(null!=lt.invoice&&lt.invoice.payment_request)||""===(null==lt.invoice?null:lt.invoice.payment_request))}},directives:[A.xw,A.Wh,A.yH,E.mk,k.oO,E.O5,w.uU,z.dk,U.BN,W.lW,z.dn,ne.d,Q.$V,E.sg,le.Ou,q.ib,q.yz,q.yK,ie.gM,se.Hw,J.h,me.y],pipes:[E.JJ,E.uU],styles:[""]}),ue})()},8878:(He,j,p)=>{"use strict";p.d(j,{g:()=>i});var e=p(1777);const i=(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})])])])},1786:(He,j,p)=>{"use strict";p.d(j,{H:()=>M});var e=p(8966),i=p(5e3),u=p(5043),b=p(7093),a=p(9224),y=p(7423),d=p(9808),P=p(4834),D=p(3390);function T(A,E){if(1&A&&(i.TgZ(0,"p",14),i._uU(1),i.qZA()),2&A){const k=i.oxw();i.xp6(1),i.Oqu(k.data.titleMessage)}}let M=(()=>{class A{constructor(k,w,z){this.dialogRef=k,this.data=w,this.logger=z,this.errorMessage=""}ngOnInit(){this.errorMessage=this.data.message&&this.data.message.message&&"object"==typeof this.data.message.message?JSON.stringify(this.data.message.message):this.data.message&&this.data.message.message?this.data.message.message:"",!this.data.message&&!this.data.titleMessage&&!this.data.message&&(this.data.titleMessage="Please Check Server Connection"),this.logger.info(this.data.message)}onClose(){this.dialogRef.close(!1)}}return A.\u0275fac=function(k){return new(k||A)(i.Y36(e.so),i.Y36(e.WI),i.Y36(u.mQ))},A.\u0275cmp=i.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(k,w){1&k&&(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 w.onClose()}),i._uU(7,"X"),i.qZA()(),i.TgZ(8,"mat-card-content",6)(9,"div",7),i.YNc(10,T,2,1,"p",8),i.TgZ(11,"h4",9),i._uU(12,"Error Code"),i.qZA(),i.TgZ(13,"span"),i._uU(14),i.qZA(),i._UZ(15,"mat-divider",10),i.TgZ(16,"h4",9),i._uU(17,"Error Message"),i.qZA(),i.TgZ(18,"span",11),i._uU(19),i.qZA(),i._UZ(20,"mat-divider",10),i.TgZ(21,"h4",9),i._uU(22,"API URL"),i.qZA(),i.TgZ(23,"span",11),i._uU(24),i.qZA(),i._UZ(25,"mat-divider",10),i.TgZ(26,"div",12)(27,"button",13),i._uU(28,"OK"),i.qZA()()()()()()),2&k&&(i.xp6(5),i.Oqu(w.data.alertTitle||"ERROR"),i.xp6(5),i.Q6J("ngIf",w.data.titleMessage),i.xp6(4),i.Oqu(w.data.message.code),i.xp6(5),i.Oqu(w.errorMessage),i.xp6(5),i.Oqu(w.data.message.URL),i.xp6(3),i.Q6J("mat-dialog-close",!1))},directives:[b.xw,b.yH,a.dk,b.Wh,y.lW,a.dn,d.O5,P.d,D.h,e.ZT],styles:[".display-block[_ngcontent-%COMP%]{display:block}"]}),A})()},9442:(He,j,p)=>{"use strict";p.d(j,{w:()=>P});var e=p(801),i=p(5e3),u=p(1402),b=p(7093),a=p(9444),y=p(9224),d=p(7423);let P=(()=>{class D{constructor(M){this.router=M,this.faTimes=e.NBC}goToHelp(){this.router.navigate(["/help"])}}return D.\u0275fac=function(M){return new(M||D)(i.Y36(u.F0))},D.\u0275cmp=i.Xpm({type:D,selectors:[["rtl-not-found"]],decls:13,vars:1,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column",1,"padding-gap-large"],["fxLayout","column","fxLayoutAlign","start start"],[1,"box-text"],["fxLayout","row","fxLayoutAlign","center","fxFlex","80"],["mat-flat-button","","color","primary","type","button",1,"mt-2",3,"click"]],template:function(M,A){1&M&&(i.TgZ(0,"div",0),i._UZ(1,"fa-icon",1),i.TgZ(2,"span",2),i._uU(3,"Page Not Found"),i.qZA()(),i.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"div",5)(8,"div",6),i._uU(9,"This page does not exist!"),i.qZA(),i.TgZ(10,"span",7)(11,"button",8),i.NdJ("click",function(){return A.goToHelp()}),i._uU(12,"Go To Help"),i.qZA()()()()()()),2&M&&(i.xp6(1),i.Q6J("icon",A.faTimes))},directives:[b.xw,b.Wh,a.BN,y.a8,y.dn,b.yH,d.lW],encapsulation:2}),D})()},3390:(He,j,p)=>{"use strict";p.d(j,{h:()=>i});var e=p(5e3);let i=(()=>{class u{constructor(a){this.el=a}ngAfterContentInit(){setTimeout(()=>{this.el.nativeElement.focus()},500)}}return u.\u0275fac=function(a){return new(a||u)(e.Y36(e.SBq))},u.\u0275dir=e.lG2({type:u,selectors:[["","autoFocus",""]],inputs:{appAutoFocus:"appAutoFocus"}}),u})()},6895:(He,j,p)=>{"use strict";p.d(j,{y:()=>i});var e=p(5e3);let i=(()=>{class u{constructor(){this.copied=new e.vpe}onClick(a){a.preventDefault(),this.payload&&navigator.clipboard&&navigator.clipboard.writeText(this.payload.toString()).then(()=>{this.copied.emit(this.payload.toString())},y=>{this.copied.emit("Error could not copy text: "+JSON.stringify(y))})}}return u.\u0275fac=function(a){return new(a||u)},u.\u0275dir=e.lG2({type:u,selectors:[["","rtlClipboard",""]],hostBindings:function(a,y){1&a&&e.NdJ("click",function(P){return y.onClick(P)})},inputs:{payload:"payload"},outputs:{copied:"copied"}}),u})()},9843:(He,j,p)=>{"use strict";p.d(j,{F:()=>u});var e=p(3075),i=p(5e3);let u=(()=>{class b{validate(y){return this.max?e.kI.max(+this.max)(y):null}}return b.\u0275fac=function(y){return new(y||b)},b.\u0275dir=i.lG2({type:b,selectors:[["input","max",""]],inputs:{max:"max"},features:[i._Bn([{provide:e.Cf,useExisting:b,multi:!0}])]}),b})()},6534:(He,j,p)=>{"use strict";p.d(j,{q:()=>u});var e=p(3075),i=p(5e3);let u=(()=>{class b{validate(y){return this.min?e.kI.min(+this.min)(y):null}}return b.\u0275fac=function(y){return new(y||b)},b.\u0275dir=i.lG2({type:b,selectors:[["input","min",""]],inputs:{min:"min"},features:[i._Bn([{provide:e.Cf,useExisting:b,multi:!0}])]}),b})()},1643:(He,j,p)=>{"use strict";p.d(j,{QM:()=>y,a1:()=>a,eQ:()=>d,fY:()=>P});var e=p(4004),i=p(5e3),u=p(1402),b=p(5986);let a=(()=>{class D{constructor(M,A){this.router=M,this.sessionService=A}canActivate(M){return!(!this.sessionService.getItem("token")||"settings"!==M.url[0].path&&"auth"!==M.url[0].path&&"true"===this.sessionService.getItem("defaultPassword")&&(this.router.navigate(["/settings/auth"]),1))}}return D.\u0275fac=function(M){return new(M||D)(i.LFG(u.F0),i.LFG(b.m))},D.\u0275prov=i.Yz7({token:D,factory:D.\u0275fac}),D})(),y=(()=>{class D{constructor(M){this.sessionService=M}canActivate(){return!!this.sessionService.watchSession().pipe((0,e.U)(M=>M.lndUnlocked))}}return D.\u0275fac=function(M){return new(M||D)(i.LFG(b.m))},D.\u0275prov=i.Yz7({token:D,factory:D.\u0275fac}),D})(),d=(()=>{class D{constructor(M){this.sessionService=M}canActivate(){return!!this.sessionService.watchSession().pipe((0,e.U)(M=>M.clUnlocked))}}return D.\u0275fac=function(M){return new(M||D)(i.LFG(b.m))},D.\u0275prov=i.Yz7({token:D,factory:D.\u0275fac}),D})(),P=(()=>{class D{constructor(M){this.sessionService=M}canActivate(){return!!this.sessionService.watchSession().pipe((0,e.U)(M=>M.eclUnlocked))}}return D.\u0275fac=function(M){return new(M||D)(i.LFG(b.m))},D.\u0275prov=i.Yz7({token:D,factory:D.\u0275fac}),D})()},2218:(He,j,p)=>{"use strict";p.d(j,{X:()=>U});var e=p(1135),i=p(7579),u=p(9646),b=p(2843),a=p(2722),y=p(262),d=p(4004),P=p(2340),D=p(1786),T=p(7731),M=p(7861),A=p(5e3),E=p(8138),k=p(5043),w=p(5620),z=p(62);let U=(()=>{class W{constructor(Q,le,q,ie){this.httpClient=Q,this.logger=le,this.store=q,this.commonService=ie,this.swapUrl="",this.swaps={},this.swapsChanged=new e.X({}),this.unSubs=[new i.x,new i.x,new i.x]}getSwapsList(){return this.swaps}listSwaps(){this.store.dispatch((0,M.ac)({payload:T.m6.GET_BOLTZ_SWAPS})),this.swapUrl=P.T5+P.NZ.BOLTZ_API+"/listSwaps",this.httpClient.get(this.swapUrl).pipe((0,a.R)(this.unSubs[0])).subscribe({next:Q=>{this.store.dispatch((0,M.uO)({payload:T.m6.GET_BOLTZ_SWAPS})),this.swaps=Q,this.swapsChanged.next(this.swaps)},error:Q=>this.swapsChanged.error(this.handleErrorWithAlert(T.m6.GET_BOLTZ_SWAPS,this.swapUrl,Q))})}swapInfo(Q){return this.swapUrl=P.T5+P.NZ.BOLTZ_API+"/swapInfo/"+Q,this.httpClient.get(this.swapUrl).pipe((0,y.K)(le=>(0,u.of)(this.handleErrorWithAlert(T.m6.NO_SPINNER,this.swapUrl,le))))}serviceInfo(){return this.store.dispatch((0,M.ac)({payload:T.m6.GET_SERVICE_INFO})),this.swapUrl=P.T5+P.NZ.BOLTZ_API+"/serviceInfo",this.httpClient.get(this.swapUrl).pipe((0,a.R)(this.unSubs[1]),(0,d.U)(Q=>(this.store.dispatch((0,M.uO)({payload:T.m6.GET_SERVICE_INFO})),Q)),(0,y.K)(Q=>(0,u.of)(this.handleErrorWithAlert(T.m6.GET_SERVICE_INFO,this.swapUrl,Q))))}swapOut(Q,le){const q={amount:Q,address:le};return this.swapUrl=P.T5+P.NZ.BOLTZ_API+"/createreverseswap",this.httpClient.post(this.swapUrl,q).pipe((0,y.K)(ie=>this.handleErrorWithoutAlert("Swap Out for Address: "+le,T.m6.NO_SPINNER,ie)))}swapIn(Q){const le={amount:Q};return this.swapUrl=P.T5+P.NZ.BOLTZ_API+"/createswap",this.httpClient.post(this.swapUrl,le).pipe((0,y.K)(q=>this.handleErrorWithoutAlert("Swap In for Amount: "+Q,T.m6.NO_SPINNER,q)))}handleErrorWithoutAlert(Q,le,q){let ie="";return this.logger.error("ERROR IN: "+Q+"\n"+JSON.stringify(q)),this.store.dispatch((0,M.uO)({payload:le})),401===q.status?(ie="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,M.kS)())):503===q.status?(ie="Unable to Connect to Boltz Server.",this.store.dispatch((0,M.qR)({payload:{data:{type:"ERROR",alertTitle:"Boltz Not Connected",message:{code:q.status,message:"Unable to Connect to Boltz Server",URL:Q},component:D.H}}}))):ie=this.commonService.extractErrorMessage(q),(0,b._)(()=>new Error(ie))}handleErrorWithAlert(Q,le,q){let ie="";if(401===q.status&&(this.logger.info("Redirecting to Login"),this.store.dispatch((0,M.kS)())),this.logger.error(q),this.store.dispatch((0,M.uO)({payload:Q})),401===q.status)ie="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,M.kS)());else if(503===q.status)ie="Unable to Connect to Boltz Server.",setTimeout(()=>{this.store.dispatch((0,M.qR)({payload:{data:{type:"ERROR",alertTitle:"Boltz Not Connected",message:{code:q.status,message:"Unable to Connect to Boltz Server",URL:le},component:D.H}}}))},100);else{ie=this.commonService.extractErrorMessage(q);const se=q.error&&q.error.error&&q.error.error.code?q.error.error.code:q.error&&q.error.code?q.error.code:q.code?q.code:q.status;setTimeout(()=>{this.store.dispatch((0,M.qR)({payload:{data:{type:T.n_.ERROR,alertTitle:"ERROR",message:{code:se,message:ie,URL:le},component:D.H}}}))},100)}return{message:ie}}ngOnDestroy(){this.unSubs.forEach(Q=>{Q.next(null),Q.complete()})}}return W.\u0275fac=function(Q){return new(Q||W)(A.LFG(E.eN),A.LFG(k.mQ),A.LFG(w.yh),A.LFG(z.v))},W.\u0275prov=A.Yz7({token:W,factory:W.\u0275fac}),W})()},62:(He,j,p)=>{"use strict";p.d(j,{v:()=>M});var e=p(1135),i=p(9646),u=p(2843),b=p(5698),a=p(4004),y=p(262),d=p(7731),P=p(5e3),D=p(8104),T=p(5043);let M=(()=>{class A{constructor(k,w){this.dataService=k,this.logger=w,this.currencyUnits=[],this.CurrencyUnitEnum=d.NT,this.conversionData={data:null,last_fetched:null},this.ratesAPIStatus=d.Bn.UN_INITIATED,this.screenSize=d.cu.MD,this.containerSize={width:0,height:0},this.containerSizeUpdated=new e.X(this.containerSize)}getScreenSize(){return this.screenSize}setScreenSize(k){this.screenSize=k}getContainerSize(){return this.containerSize}setContainerSize(k,w){this.containerSize={width:k,height:w},this.logger.info("Container Size: "+JSON.stringify(this.containerSize)),this.containerSizeUpdated.next(this.containerSize)}sortByKey(k,w,z,U="asc"){return k.sort("number"===z?"desc"===U?(W,ne)=>+W[w]>+ne[w]?-1:1:(W,ne)=>+W[w]>+ne[w]?1:-1:"desc"===U?(W,ne)=>W[w]>ne[w]?-1:1:(W,ne)=>W[w]>ne[w]?1:-1)}sortDescByKey(k,w){return k.sort((z,U)=>{const W=+z[w],ne=+U[w];return W>ne?-1:W<ne?1:0})}sortAscByKey(k,w){return k.sort((z,U)=>{const W=+z[w],ne=+U[w];return W<ne?-1:W>ne?1:0})}camelCase(k){var w,z;return null===(z=null===(w=null==k?void 0:k.replace(/(?:^\w|[A-Z]|\b\w)/g,(U,W)=>U.toUpperCase()))||void 0===w?void 0:w.replace(/\s+/g,""))||void 0===z?void 0:z.replace(/-/g," ")}titleCase(k,w,z){var U,W;return w&&z&&""!==w&&""!==z&&(k=null==k?void 0:k.replace(new RegExp(w,"g"),z)),k.indexOf("!\n")>0||k.indexOf(".\n")>0?null===(U=k.split("\n"))||void 0===U?void 0:U.reduce((ne,Q)=>ne+Q.charAt(0).toUpperCase()+Q.substring(1).toLowerCase()+"\n",""):k.indexOf(" ")>0?null===(W=k.split(" "))||void 0===W?void 0:W.reduce((ne,Q)=>ne+Q.charAt(0).toUpperCase()+Q.substring(1).toLowerCase()+" ",""):k.charAt(0).toUpperCase()+k.substring(1).toLowerCase()}convertCurrency(k,w,z,U,W){const ne=(new Date).valueOf();return W&&U&&this.ratesAPIStatus!==d.Bn.INITIATED&&(w===d.NT.OTHER||z===d.NT.OTHER)?this.conversionData.data&&this.conversionData.last_fetched&&ne<this.conversionData.last_fetched+3e5?(0,i.of)(this.convertWithFiat(k,w,U)):(this.ratesAPIStatus=d.Bn.INITIATED,this.dataService.getFiatRates().pipe((0,b.q)(1),(0,a.U)(Q=>(this.ratesAPIStatus=d.Bn.COMPLETED,this.conversionData.data=Q&&"object"==typeof Q?Q:Q&&"string"==typeof Q?JSON.parse(Q):{},this.conversionData.last_fetched=ne,this.convertWithFiat(k,w,U))),(0,y.K)(Q=>(this.ratesAPIStatus=d.Bn.ERROR,(0,u._)(()=>this.extractErrorMessage(Q,"Currency Conversion Error.")))))):(0,i.of)(this.convertWithoutFiat(k,w))}convertWithoutFiat(k,w){const z={};switch(z[d.NT.SATS]=0,z[d.NT.BTC]=0,w){case d.NT.SATS:z[d.NT.SATS]=k,z[d.NT.BTC]=1e-8*k;break;case d.NT.BTC:z[d.NT.SATS]=1e8*k,z[d.NT.BTC]=k}return z}convertWithFiat(k,w,z){const U={unit:z,symbol:this.conversionData.data[z].symbol};switch(U[d.NT.SATS]=0,U[d.NT.BTC]=0,U[d.NT.OTHER]=0,w){case d.NT.SATS:U[d.NT.SATS]=k,U[d.NT.BTC]=1e-8*k,U[d.NT.OTHER]=1e-8*k*this.conversionData.data[z].last;break;case d.NT.BTC:U[d.NT.SATS]=1e8*k,U[d.NT.BTC]=k,U[d.NT.OTHER]=k*this.conversionData.data[z].last;break;case d.NT.OTHER:U[d.NT.SATS]=k/this.conversionData.data[z].last*1e8,U[d.NT.BTC]=k/this.conversionData.data[z].last,U[d.NT.OTHER]=k}return U}convertTime(k,w,z){switch(w){case d.Qk.SECS:switch(z){case d.Qk.MINS:k/=60;break;case d.Qk.HOURS:k/=3600;break;case d.Qk.DAYS:k/=86400}break;case d.Qk.MINS:switch(z){case d.Qk.SECS:k*=60;break;case d.Qk.HOURS:k/=60;break;case d.Qk.DAYS:k/=1440}break;case d.Qk.HOURS:switch(z){case d.Qk.SECS:k*=3600;break;case d.Qk.MINS:k*=60;break;case d.Qk.DAYS:k/=24}break;case d.Qk.DAYS:switch(z){case d.Qk.SECS:k=3600*k*24;break;case d.Qk.MINS:k=60*k*24;break;case d.Qk.HOURS:k*=24}}return k}downloadFile(k,w,z=".json",U=".csv"){let W=new Blob;W=".json"===z?new Blob(["\ufeff"+this.convertToCSV(k)],{type:"text/csv;charset=utf-8;"}):new Blob([k.toString()],{type:"text/plain;charset=utf-8"});const ne=document.createElement("a"),Q=URL.createObjectURL(W);-1!==navigator.userAgent.indexOf("Safari")&&-1===navigator.userAgent.indexOf("Chrome")&&ne.setAttribute("target","_blank"),ne.setAttribute("href",Q),ne.setAttribute("download",w+U),ne.style.visibility="hidden",document.body.appendChild(ne),ne.click(),document.body.removeChild(ne)}convertToCSV(k){const w=[];let z="",U="",W="";return"object"!=typeof k&&(k=JSON.parse(k)),k.forEach((Q,le)=>{for(const q in Q)w.findIndex(ie=>ie===q)<0&&w.push(q)}),W=w.join(",")+"\r\n",k.forEach(Q=>{z="",w.forEach(le=>{var q;Q.hasOwnProperty(le)?Array.isArray(Q[le])?(U="",Q[le].forEach((ie,se)=>{var J;U+="object"==typeof ie?"("+(null===(J=JSON.stringify(ie))||void 0===J?void 0:J.replace(/\,/g,";"))+")":"("+ie+")"}),z+=U+","):z+="object"==typeof Q[le]?(null===(q=JSON.stringify(Q[le]))||void 0===q?void 0:q.replace(/\,/g,";"))+",":Q[le]+",":z+=","}),W+=z.slice(0,-1)+"\r\n"}),W}isVersionCompatible(k,w){var z;if(k){const U=(null===(z=k.trim())||void 0===z?void 0:z.replace("v","").split("-")[0].split("."))||[],W=w.split(".");return+U[0]>+W[0]||+U[0]==+W[0]&&+U[1]>+W[1]||+U[0]==+W[0]&&+U[1]==+W[1]&&+U[2]>=+W[2]}return!1}extractErrorMessage(k,w="Unknown Error."){const z=this.titleCase(k.error&&k.error.text&&"string"==typeof k.error.text&&k.error.text.includes('<!DOCTYPE html><html lang="en">')?"API Route Does Not Exist.":k.error&&k.error.error&&k.error.error.error&&k.error.error.error.error&&k.error.error.error.error.error&&"string"==typeof k.error.error.error.error.error?k.error.error.error.error.error:k.error&&k.error.error&&k.error.error.error&&k.error.error.error.error&&"string"==typeof k.error.error.error.error?k.error.error.error.error:k.error&&k.error.error&&k.error.error.error&&"string"==typeof k.error.error.error?k.error.error.error:k.error&&k.error.error&&"string"==typeof k.error.error?k.error.error:k.error&&"string"==typeof k.error?k.error:k.error&&k.error.error&&k.error.error.error&&k.error.error.error.error&&k.error.error.error.error.message&&"string"==typeof k.error.error.error.error.message?k.error.error.error.error.message:k.error&&k.error.error&&k.error.error.error&&k.error.error.error.message&&"string"==typeof k.error.error.error.message?k.error.error.error.message:k.error&&k.error.error&&k.error.error.message&&"string"==typeof k.error.error.message?k.error.error.message:k.error&&k.error.message&&"string"==typeof k.error.message?k.error.message:k.message&&"string"==typeof k.message?k.message:w);return this.logger.info("Error Message: "+z),z}extractErrorCode(k,w=500){const z=k.error&&k.error.error&&k.error.error.message&&k.error.error.message.code?k.error.error.message.code:k.error&&k.error.error&&k.error.error.code?k.error.error.code:k.error&&k.error.code?k.error.code:k.code?k.code:k.status?k.status:w;return this.logger.info("Error Code: "+z),z}extractErrorNumber(k,w=500){const z=k.error&&k.error.error&&k.error.error.errno?k.error.error.errno:k.error&&k.error.errno?k.error.errno:k.errno?k.errno:k.status?k.status:w;return this.logger.info("Error Number: "+z),z}ngOnDestroy(){this.containerSizeUpdated.next(null),this.containerSizeUpdated.complete()}}return A.\u0275fac=function(k){return new(k||A)(P.LFG(D.D),P.LFG(T.mQ))},A.\u0275prov=P.Yz7({token:A,factory:A.\u0275fac}),A})()},7731:(He,j,p)=>{"use strict";p.d(j,{$I:()=>r,$v:()=>k,AB:()=>ye,Bn:()=>n,Df:()=>Ee,Dr:()=>T,Er:()=>a,Fq:()=>t,Gi:()=>q,HW:()=>se,H_:()=>te,IV:()=>d,IX:()=>V,JX:()=>I,LO:()=>y,NT:()=>le,OJ:()=>ne,OO:()=>Z,Qk:()=>Q,Qw:()=>c,TJ:()=>P,Vc:()=>M,Xr:()=>H,Xz:()=>b,Zs:()=>x,_t:()=>D,cu:()=>ie,fO:()=>R,g8:()=>z,gB:()=>be,gg:()=>C,hZ:()=>ze,hc:()=>h,kO:()=>_,lr:()=>ke,m6:()=>g,nM:()=>w,n_:()=>W,ol:()=>U,op:()=>S,p7:()=>me,pg:()=>$,pt:()=>i,uA:()=>u,uR:()=>fe,vn:()=>A,wZ:()=>E,x$:()=>J});var e=p(6087);function i(Y){const ot=new e.ye;return ot.itemsPerPageLabel=Y+" per page:",ot}const u=["Sats","BTC"],b={Sats:"1.0-0",BTC:"1.6-6",OTHER:"1.2-2"},a=[{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"}],y=["SECS","MINS","HOURS","DAYS"],d=10,P=[5,10,25,100],D=[{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)"}],T=[{id:"0",name:"Priority (Default)"},{id:"1",name:"Target Confirmation Blocks"},{id:"2",name:"Fee"}],M=[{id:"none",name:"No Fee Limit",placeholder:"No Limit"},{id:"fixed",name:"Fixed Limit (Sats)",placeholder:"Fixed Limit in Sats"},{id:"percent",name:"Percentage of Payment Amount",placeholder:"Percentage Limit"}],A=[{feeRateId:"urgent",feeRateType:"Urgent"},{feeRateId:"normal",feeRateType:"Normal"},{feeRateId:"slow",feeRateType:"Slow"},{feeRateId:"customperkb",feeRateType:"Custom (Sats/vByte)"}],E={themes:[{id:"PURPLE",name:"Diogo"},{id:"TEAL",name:"My2Sats"},{id:"INDIGO",name:"RTL"},{id:"PINK",name:"BK"},{id:"YELLOW",name:"Gold"}],modes:[{id:"DAY",name:"Day"},{id:"NIGHT",name:"Night"}]};var k=(()=>{return(Y=k||(k={})).PAYMENT_RECEIVED="payment-received",Y.PAYMENT_RELAYED="payment-relayed",Y.PAYMENT_SENT="payment-sent",Y.PAYMENT_SETTLING_ONCHAIN="payment-settling-onchain",Y.PAYMENT_FAILED="payment-failed",Y.CHANNEL_OPENED="channel-opened",Y.CHANNEL_STATE_CHANGED="channel-state-changed",Y.CHANNEL_CLOSED="channel-closed",k;var Y})(),w=(()=>{return(Y=w||(w={})).INVOICE="invoice",Y.BLOCK_HEIGHT="block-height",Y.SEND_PAYMENT="send-payment",w;var Y})(),z=(()=>((z||(z={})).INVOICE="invoice",z))(),U=(()=>{return(Y=U||(U={})).OPERATOR="OPERATOR",Y.MERCHANT="MERCHANT",Y.ALL="ALL",U;var Y})(),W=(()=>{return(Y=W||(W={})).INFORMATION="Information",Y.WARNING="Warning",Y.ERROR="Error",Y.SUCCESS="Success",Y.CONFIRM="Confirm",W;var Y})(),ne=(()=>{return(Y=ne||(ne={})).JWT="JWT",Y.PASSWORD="PASSWORD",ne;var Y})(),Q=(()=>{return(Y=Q||(Q={})).SECS="SECS",Y.MINS="MINS",Y.HOURS="HOURS",Y.DAYS="DAYS",Q;var Y})(),le=(()=>{return(Y=le||(le={})).SATS="Sats",Y.BTC="BTC",Y.OTHER="OTHER",le;var Y})(),q=(()=>{return(Y=q||(q={})).ARRAY="ARRAY",Y.NUMBER="NUMBER",Y.STRING="STRING",Y.BOOLEAN="BOOLEAN",Y.PASSWORD="PASSWORD",Y.DATE="DATE",Y.DATE_TIME="DATE_TIME",q;var Y})(),ie=(()=>{return(Y=ie||(ie={})).XS="XS",Y.SM="SM",Y.MD="MD",Y.LG="LG",Y.XL="XL",ie;var Y})();const se={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"}},J={WITNESS_PUBKEY_HASH:{name:"Witness Pubkey Hash",tooltip:""},NESTED_PUBKEY_HASH:{name:"Nested Pubkey Hash",tooltip:""},UNUSED_WITNESS_PUBKEY_HASH:{name:"Unused Witness Pubkey Hash",tooltip:""},UNUSED_NESTED_PUBKEY_HASH:{name:"Unused Nested Pubkey Hash",tooltip:""}};var me=(()=>{return(Y=me||(me={})).WIRE_INVALID_ONION_VERSION="Invalid Onion Version",Y.WIRE_INVALID_ONION_HMAC="Invalid Onion HMAC",Y.WIRE_INVALID_ONION_KEY="Invalid Onion Key",Y.WIRE_TEMPORARY_CHANNEL_FAILURE="Temporary Channel Failure",Y.WIRE_PERMANENT_CHANNEL_FAILURE="Permanent Channel Failure",Y.WIRE_REQUIRED_CHANNEL_FEATURE_MISSING="Missing Required Channel Feature",Y.WIRE_UNKNOWN_NEXT_PEER="Unknown Next Peer",Y.WIRE_AMOUNT_BELOW_MINIMUM="Amount Below Minimum",Y.WIRE_FEE_INSUFFICIENT="Insufficient Fee",Y.WIRE_INCORRECT_CLTV_EXPIRY="Incorrect CLTV Expiry",Y.WIRE_EXPIRY_TOO_FAR="Expiry Too Far",Y.WIRE_EXPIRY_TOO_SOON="Expiry Too Soon",Y.WIRE_CHANNEL_DISABLED="Channel Disabled",Y.WIRE_INVALID_ONION_PAYLOAD="Invalid Onion Payload",Y.WIRE_INVALID_REALM="Invalid Realm",Y.WIRE_PERMANENT_NODE_FAILURE="Permanent Node Failure",Y.WIRE_TEMPORARY_NODE_FAILURE="Temporary Node Failure",Y.WIRE_REQUIRED_NODE_FEATURE_MISSING="Missing Required Node Feature",Y.WIRE_INVALID_ONION_BLINDING="Invalid Onion Binding",Y.WIRE_INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS="Incorrect or Unknow Payment Details",Y.WIRE_MPP_TIMEOUT="MPP Timeout",Y.WIRE_FINAL_INCORRECT_CLTV_EXPIRY="Incorrect CLTV Expiry",Y.WIRE_FINAL_INCORRECT_HTLC_AMOUNT="Incorrect HTLC Amount",me;var Y})(),x=(()=>{return(Y=x||(x={})).CHANNELD_NORMAL="Active",Y.OPENINGD="Opening",Y.CHANNELD_AWAITING_LOCKIN="Pending Open",Y.CHANNELD_SHUTTING_DOWN="Shutting Down",Y.CLOSINGD_SIGEXCHANGE="Closing: Sig Exchange",Y.CLOSINGD_COMPLETE="Closed",Y.AWAITING_UNILATERAL="Awaiting Unilateral Close",Y.FUNDING_SPEND_SEEN="Funding Spend Seen",Y.ONCHAIN="Onchain",Y.DUALOPEND_OPEN_INIT="Dual Open Initialized",Y.DUALOPEND_AWAITING_LOCKIN="Dual Pending Open",x;var Y})(),t=(()=>{return(Y=t||(t={})).INITIATED="Initiated",Y.PREIMAGE_REVEALED="Preimage Revealed",Y.HTLC_PUBLISHED="HTLC Published",Y.SUCCESS="Successful",Y.FAILED="Failed",Y.INVOICE_SETTLED="Invoice Settled",t;var Y})(),r=(()=>{return(Y=r||(r={})).LOOP_OUT="LOOP_OUT",Y.LOOP_IN="LOOP_IN",r;var Y})(),h=(()=>{return(Y=h||(h={})).SWAP_OUT="SWAP_OUT",Y.SWAP_IN="SWAP_IN",h;var Y})(),c=(()=>{return(Y=c||(c={}))["swap.created"]="Swap Created",Y["swap.expired"]="Swap Expired",Y["invoice.set"]="Invoice Set",Y["invoice.paid"]="Invoice Paid",Y["invoice.pending"]="Invoice Pending",Y["invoice.settled"]="Invoice Settled",Y["invoice.failedToPay"]="Invoice Failed To Pay",Y["channel.created"]="Channel Created",Y["transaction.failed"]="Transaction Failed",Y["transaction.mempool"]="Transaction Mempool",Y["transaction.claimed"]="Transaction Claimed",Y["transaction.refunded"]="Transaction Refunded",Y["transaction.confirmed"]="Transaction Confirmed",Y["swap.refunded"]="Swap Refunded",Y["swap.abandoned"]="Swap Abandoned",c;var Y})();const C=[{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}],S=["MONTHLY","YEARLY"];var I=(()=>{return(Y=I||(I={})).LOOP="LOOP",Y.BOLTZ="BOLTZ",Y.OFFERS="OFFERS",Y.PEERSWAP="PEERSWAP",I;var Y})();const _=["password","changeme","moneyprintergobrrr"];var n=(()=>{return(Y=n||(n={})).UN_INITIATED="UN_INITIATED",Y.INITIATED="INITIATED",Y.COMPLETED="COMPLETED",Y.ERROR="ERROR",n;var Y})();const g={NO_SPINNER:"No Spinner...",GET_NODE_INFO:"Getting Node Information...",INITALIZE_NODE_DATA:"Initializing Node Data...",GENERATE_NEW_ADDRESS:"Getting New Address...",SEND_FUNDS:"Sending Funds...",UPDATE_CHAN_POLICY:"Updating Channel Policy...",GET_CHAN_POLICY:"Fetching Channel Policy...",GET_REMOTE_POLICY:"Fetching Remote Policy...",CLOSE_CHANNEL:"Closing Channel...",FORCE_CLOSE_CHANNEL:"Force Closing Channel...",OPEN_CHANNEL:"Opening Channel...",CONNECT_PEER:"Connecting Peer...",DISCONNECT_PEER:"Disconnecting Peer...",ADD_INVOICE:"Adding Invoice...",CREATE_INVOICE:"Creating Invoice...",DELETE_INVOICE:"Deleting Invoices...",DECODE_PAYMENT:"Decoding Payment...",DECODE_OFFER:"Decoding Offer...",DECODE_PAYMENTS:"Decoding Payments...",FETCH_INVOICE:"Fetching Invoice...",GET_SENT_PAYMENTS:"Getting Sent Payments...",SEND_PAYMENT:"Sending Payment...",SEND_KEYSEND:"Sending Keysend Payment...",SEARCHING_NODE:"Searching Node...",SEARCHING_CHANNEL:"Searching Channel...",SEARCHING_INVOICE:"Searching Invoice...",SEARCHING_PAYMENT:"Searching Payment...",BACKUP_CHANNEL:"Backup Channels...",VERIFY_CHANNEL:"Verify Channel...",DOWNLOAD_BACKUP_FILE:"Downloading Backup File...",RESTORE_CHANNEL:"Restoring Channels...",GET_TERMS_QUOTES:"Getting Terms and Quotes...",LABEL_UTXO:"Labelling UTXO...",GET_NODE_ADDRESS:"Getting Node Address...",GEN_SEED:"Generating Seed...",INITIALIZE_WALLET:"Initializing Wallet...",UNLOCK_WALLET:"Unlocking Wallet...",WAIT_SYNC_NODE:"Waiting for Node Sync...",UPDATE_BOLTZ_SETTINGS:"Updating Boltz Service Settings...",UPDATE_LOOP_SETTINGS:"Updating Loop Service Settings...",UPDATE_PEERSWAP_SETTINGS:"Updating Peerswap Service Settings...",UPDATE_SETTING:"Updating Setting...",UPDATE_UI_SETTINGS:"Updating Settings...",UPDATE_NODE_SETTINGS:"Updating Node Settings...",UPDATE_SELECTED_NODE:"Updating Selected Node...",OPEN_CONFIG_FILE:"Opening Config File...",GET_SERVICE_INFO:"Getting Service Info...",GET_QUOTE:"Getting Quotes...",UPDATE_DEFAULT_NODE_SETTING:"Updating Defaule Node Settings...",GET_BOLTZ_SWAPS:"Getting Boltz Swaps...",SIGN_MESSAGE:"Signing Message...",VERIFY_MESSAGE:"Verifying Message...",BUMP_FEE:"Bumping Fee...",LEASE_UTXO:"Leasing UTXO...",GET_LOOP_SWAPS:"Getting List Swaps...",GET_FORWARDING_HISTORY:"Getting Forwarding History...",GET_LOOKUP_DETAILS:"Getting Lookup Details...",GET_RTL_CONFIG:"Getting RTL Config...",VERIFY_TOKEN:"Verify Token...",DISABLE_OFFER:"Disabling Offer...",CREATE_OFFER:"Creating Offer...",DELETE_OFFER_BOOKMARK:"Deleting Bookmark...",GET_FUNDER_POLICY:"Getting Or Updating Funder Policy...",GET_LIST_CONFIGS:"Getting Configurations List...",LIST_NETWORK_NODES:"Getting Network Nodes List...",PEERSWAP_SWAPOUT:"Initializing Swapout...",PEERSWAP_SWAPIN:"Initializing Swapin...",LOG_OUT:"Logging Out..."};var V=(()=>{return(Y=V||(V={})).INVOICE="INVOICE",Y.OFFER="OFFER",Y.KEYSEND="KEYSEND",V;var Y})(),R=(()=>{return(Y=R||(R={})).SWAP_OUT="swap-out",Y.SWAP_IN="swap-in",R;var Y})(),H=(()=>{return(Y=H||(H={})).FEES="FEES",Y.EVENTS="EVENTS",H;var Y})(),$=(()=>{return(Y=$||($={})).VOID="VOID",Y.SET_API_URL_ECL="SET_API_URL_ECL",Y.UPDATE_SELECTED_NODE_OPTIONS="UPDATE_SELECTED_NODE_OPTIONS",Y.UPDATE_API_CALL_STATUS_ROOT="UPDATE_API_CALL_STATUS_ROOT",Y.RESET_ROOT_STORE="RESET_ROOT_STORE",Y.CLOSE_ALL_DIALOGS="CLOSE_ALL_DIALOGS",Y.OPEN_SNACK_BAR="OPEN_SNACKBAR",Y.OPEN_SPINNER="OPEN_SPINNER",Y.CLOSE_SPINNER="CLOSE_SPINNER",Y.OPEN_ALERT="OPEN_ALERT",Y.CLOSE_ALERT="CLOSE_ALERT",Y.OPEN_CONFIRMATION="OPEN_CONFIRMATION",Y.CLOSE_CONFIRMATION="CLOSE_CONFIRMATION",Y.SHOW_PUBKEY="SHOW_PUBKEY",Y.FETCH_CONFIG="FETCH_CONFIG",Y.SHOW_CONFIG="SHOW_CONFIG",Y.FETCH_STORE="FETCH_STORE",Y.SET_STORE="SET_STORE",Y.FETCH_RTL_CONFIG="FETCH_RTL_CONFIG",Y.SET_RTL_CONFIG="SET_RTL_CONFIG",Y.SAVE_SSO="SAVE_SSO",Y.SAVE_SETTINGS="SAVE_SETTINGS",Y.TWO_FA_SAVE_SETTINGS="TWO_FA_SAVE_SETTINGS",Y.SET_SELECTED_NODE="SET_SELECTED_NODE",Y.UPDATE_ROOT_NODE_SETTINGS="UPDATE_ROOT_NODE_SETTINGS",Y.UPDATE_SERVICE_SETTINGS="UPDATE_SERVICE_SETTINGS",Y.SET_NODE_DATA="SET_NODE_DATA",Y.IS_AUTHORIZED="IS_AUTHORIZED",Y.IS_AUTHORIZED_RES="IS_AUTHORIZED_RES",Y.LOGIN="LOGIN",Y.VERIFY_TWO_FA="VERIFY_TWO_FA",Y.LOGOUT="LOGOUT",Y.RESET_PASSWORD="RESET_PASSWORD",Y.RESET_PASSWORD_RES="RESET_PASSWORD_RES",Y.FETCH_FILE="FETCH_FILE",Y.SHOW_FILE="SHOW_FILE",$;var Y})(),fe=(()=>{return(Y=fe||(fe={})).RESET_LND_STORE="RESET_LND_STORE",Y.UPDATE_API_CALL_STATUS_LND="UPDATE_API_CALL_STATUS_LND",Y.SET_CHILD_NODE_SETTINGS_LND="SET_CHILD_NODE_SETTINGS_LND",Y.FETCH_INFO_LND="FETCH_INFO_LND",Y.SET_INFO_LND="SET_INFO_LND",Y.FETCH_PEERS_LND="FETCH_PEERS_LND",Y.SET_PEERS_LND="SET_PEERS_LND",Y.SAVE_NEW_PEER_LND="SAVE_NEW_PEER_LND",Y.NEWLY_ADDED_PEER_LND="NEWLY_ADDED_PEER_LND",Y.DETACH_PEER_LND="DETACH_PEER_LND",Y.REMOVE_PEER_LND="REMOVE_PEER_LND",Y.SAVE_NEW_INVOICE_LND="SAVE_NEW_INVOICE_LND",Y.NEWLY_SAVED_INVOICE_LND="NEWLY_SAVED_INVOICE_LND",Y.ADD_INVOICE_LND="ADD_INVOICE_LND",Y.FETCH_FEES_LND="FETCH_FEES_LND",Y.SET_FEES_LND="SET_FEES_LND",Y.FETCH_BLOCKCHAIN_BALANCE_LND="FETCH_BLOCKCHAIN_BALANCE_LND",Y.SET_BLOCKCHAIN_BALANCE_LND="SET_BLOCKCHAIN_BALANCE_LND",Y.FETCH_NETWORK_LND="FETCH_NETWORK_LND",Y.SET_NETWORK_LND="SET_NETWORK_LND",Y.FETCH_CHANNELS_LND="FETCH_CHANNELS_LND",Y.FETCH_PENDING_CHANNELS_LND="FETCH_PENDING_CHANNELS_LND",Y.FETCH_CLOSED_CHANNELS_LND="FETCH_CLOSED_CHANNELS_LND",Y.SET_CHANNELS_LND="SET_CHANNELS_LND",Y.SET_PENDING_CHANNELS_LND="SET_PENDING_CHANNELS_LND",Y.SET_CLOSED_CHANNELS_LND="SET_CLOSED_CHANNELS_LND",Y.UPDATE_CHANNEL_LND="UPDATE_CHANNEL_LND",Y.SAVE_NEW_CHANNEL_LND="SAVE_NEW_CHANNEL_LND",Y.CLOSE_CHANNEL_LND="CLOSE_CHANNEL_LND",Y.REMOVE_CHANNEL_LND="REMOVE_CHANNEL_LND",Y.BACKUP_CHANNELS_LND="BACKUP_CHANNELS_LND",Y.VERIFY_CHANNEL_LND="VERIFY_CHANNEL_LND",Y.BACKUP_CHANNELS_RES_LND="BACKUP_CHANNELS_RES_LND",Y.VERIFY_CHANNEL_RES_LND="VERIFY_CHANNEL_RES_LND",Y.RESTORE_CHANNELS_LIST_LND="RESTORE_CHANNELS_LIST_LND",Y.SET_RESTORE_CHANNELS_LIST_LND="SET_RESTORE_CHANNELS_LIST_LND",Y.RESTORE_CHANNELS_LND="RESTORE_CHANNELS_LND",Y.RESTORE_CHANNELS_RES_LND="RESTORE_CHANNELS_RES_LND",Y.FETCH_INVOICES_LND="FETCH_INVOICES_LND",Y.SET_INVOICES_LND="SET_INVOICES_LND",Y.UPDATE_INVOICE_LND="UPDATE_INVOICE_LND",Y.UPDATE_PAYMENT_LND="UPDATE_PAYMENT_LND",Y.SET_TOTAL_INVOICES_LND="SET_TOTAL_INVOICES_LND",Y.FETCH_TRANSACTIONS_LND="FETCH_TRANSACTIONS_LND",Y.SET_TRANSACTIONS_LND="SET_TRANSACTIONS_LND",Y.FETCH_UTXOS_LND="FETCH_UTXOS_LND",Y.SET_UTXOS_LND="SET_UTXOS_LND",Y.FETCH_PAYMENTS_LND="FETCH_PAYMENTS_LND",Y.SET_PAYMENTS_LND="SET_PAYMENTS_LND",Y.SEND_PAYMENT_LND="SEND_PAYMENT_LND",Y.SEND_PAYMENT_STATUS_LND="SEND_PAYMENT_STATUS_LND",Y.FETCH_GRAPH_NODE_LND="FETCH_GRAPH_NODE_LND",Y.SET_GRAPH_NODE_LND="SET_GRAPH_NODE_LND",Y.GET_NEW_ADDRESS_LND="GET_NEW_ADDRESS_LND",Y.SET_NEW_ADDRESS_LND="SET_NEW_ADDRESS_LND",Y.SET_CHANNEL_TRANSACTION_LND="SET_CHANNEL_TRANSACTION_LND",Y.SET_CHANNEL_TRANSACTION_RES_LND="SET_CHANNEL_TRANSACTION_RES_LND",Y.GEN_SEED_LND="GEN_SEED_LND",Y.GEN_SEED_RESPONSE_LND="GEN_SEED_RESPONSE_LND",Y.INIT_WALLET_LND="INIT_WALLET_LND",Y.INIT_WALLET_RESPONSE_LND="INIT_WALLET_RESPONSE_LND",Y.UNLOCK_WALLET_LND="UNLOCK_WALLET_LND",Y.PEER_LOOKUP_LND="PEER_LOOKUP_LND",Y.CHANNEL_LOOKUP_LND="CHANNEL_LOOKUP_LND",Y.INVOICE_LOOKUP_LND="INVOICE_LOOKUP_LND",Y.PAYMENT_LOOKUP_LND="PAYMENT_LOOKUP_LND",Y.SET_LOOKUP_LND="SET_LOOKUP_LND",Y.GET_FORWARDING_HISTORY_LND="GET_FORWARDING_HISTORY_LND",Y.SET_FORWARDING_HISTORY_LND="SET_FORWARDING_HISTORY_LND",Y.GET_QUERY_ROUTES_LND="GET_QUERY_ROUTES_LND",Y.SET_QUERY_ROUTES_LND="SET_QUERY_ROUTES_LND",Y.GET_ALL_LIGHTNING_TRANSATIONS_LND="GET_ALL_LIGHTNING_TRANSATIONS_LND",Y.SET_ALL_LIGHTNING_TRANSATIONS_LND="SET_ALL_LIGHTNING_TRANSATIONS_LND",fe;var Y})(),ye=(()=>{return(Y=ye||(ye={})).RESET_CLN_STORE="RESET_CLN_STORE",Y.UPDATE_API_CALL_STATUS_CLN="UPDATE_API_CALL_STATUS_CLN",Y.SET_CHILD_NODE_SETTINGS_CLN="SET_CHILD_NODE_SETTINGS_CLN",Y.FETCH_INFO_CLN="FETCH_INFO_CL_CLN",Y.SET_INFO_CLN="SET_INFO_CLN",Y.FETCH_FEES_CLN="FETCH_FEES_CLN",Y.SET_FEES_CLN="SET_FEES_CLN",Y.FETCH_FEE_RATES_CLN="FETCH_FEE_RATES_CLN",Y.SET_FEE_RATES_CLN="SET_FEE_RATES_CLN",Y.FETCH_BALANCE_CLN="FETCH_BALANCE_CLN",Y.SET_BALANCE_CLN="SET_BALANCE_CLN",Y.FETCH_LOCAL_REMOTE_BALANCE_CLN="FETCH_LOCAL_REMOTE_BALANCE_CLN",Y.SET_LOCAL_REMOTE_BALANCE_CLN="SET_LOCAL_REMOTE_BALANCE_CLN",Y.GET_NEW_ADDRESS_CLN="GET_NEW_ADDRESS_CLN",Y.SET_NEW_ADDRESS_CLN="SET_NEW_ADDRESS_CLN",Y.FETCH_UTXOS_CLN="FETCH_UTXOS_CLN",Y.SET_UTXOS_CLN="SET_UTXOS_CLN",Y.FETCH_PEERS_CLN="FETCH_PEERS_CLN",Y.SET_PEERS_CLN="SET_PEERS_CLN",Y.SAVE_NEW_PEER_CLN="SAVE_NEW_PEER_CLN",Y.NEWLY_ADDED_PEER_CLN="NEWLY_ADDED_PEER_CLN",Y.ADD_PEER_CLN="ADD_PEER_CLN",Y.DETACH_PEER_CLN="DETACH_PEER_CLN",Y.REMOVE_PEER_CLN="REMOVE_PEER_CLN",Y.FETCH_CHANNELS_CLN="FETCH_CHANNELS_CLN",Y.SET_CHANNELS_CLN="SET_CHANNELS_CLN",Y.UPDATE_CHANNEL_CLN="UPDATE_CHANNEL_CLN",Y.SAVE_NEW_CHANNEL_CLN="SAVE_NEW_CHANNEL_CLN",Y.CLOSE_CHANNEL_CLN="CLOSE_CHANNEL_CLN",Y.REMOVE_CHANNEL_CLN="REMOVE_CHANNEL_CLN",Y.FETCH_PAYMENTS_CLN="FETCH_PAYMENTS_CLN",Y.SET_PAYMENTS_CLN="SET_PAYMENTS_CLN",Y.SEND_PAYMENT_CLN="SEND_PAYMENT_CLN",Y.SEND_PAYMENT_STATUS_CLN="SEND_PAYMENT_STATUS_CLN",Y.GET_QUERY_ROUTES_CLN="GET_QUERY_ROUTES_CLN",Y.SET_QUERY_ROUTES_CLN="SET_QUERY_ROUTES_CLN",Y.PEER_LOOKUP_CLN="PEER_LOOKUP_CLN",Y.CHANNEL_LOOKUP_CLN="CHANNEL_LOOKUP_CLN",Y.INVOICE_LOOKUP_CLN="INVOICE_LOOKUP_CLN",Y.SET_LOOKUP_CLN="SET_LOOKUP_CLN",Y.GET_FORWARDING_HISTORY_CLN="GET_FORWARDING_HISTORY_CLN",Y.SET_FORWARDING_HISTORY_CLN="SET_FORWARDING_HISTORY_CLN",Y.GET_FAILED_FORWARDING_HISTORY_CLN="GET_FAILED_FORWARDING_HISTORY_CLN",Y.SET_FAILED_FORWARDING_HISTORY_CLN="SET_FAILED_FORWARDING_HISTORY_CLN",Y.GET_LOCAL_FAILED_FORWARDING_HISTORY_CLN="GET_LOCAL_FAILED_FORWARDING_HISTORY_CLN",Y.SET_LOCAL_FAILED_FORWARDING_HISTORY_CLN="SET_LOCAL_FAILED_FORWARDING_HISTORY_CLN",Y.FETCH_INVOICES_CLN="FETCH_INVOICES_CLN",Y.SET_INVOICES_CLN="SET_INVOICES_CLN",Y.SAVE_NEW_INVOICE_CLN="SAVE_NEW_INVOICE_CLN",Y.ADD_INVOICE_CLN="ADD_INVOICE_CLN",Y.UPDATE_INVOICE_CLN="UPDATE_INVOICE_CLN",Y.DELETE_EXPIRED_INVOICE_CLN="DELETE_EXPIRED_INVOICE_CLN",Y.SET_CHANNEL_TRANSACTION_CLN="SET_CHANNEL_TRANSACTION_CLN",Y.SET_CHANNEL_TRANSACTION_RES_CLN="SET_CHANNEL_TRANSACTION_RES_CLN",Y.FETCH_OFFER_INVOICE_CLN="FETCH_OFFER_INVOICE_CLN",Y.SET_OFFER_INVOICE_CLN="SET_OFFER_INVOICE_CLN",Y.FETCH_OFFERS_CLN="FETCH_OFFERS_CLN",Y.SET_OFFERS_CLN="SET_OFFERS_CLN",Y.SAVE_NEW_OFFER_CLN="SAVE_NEW_OFFER_CLN",Y.ADD_OFFER_CLN="ADD_OFFER_CLN",Y.DISABLE_OFFER_CLN="DISABLE_OFFER_CLN",Y.UPDATE_OFFER_CLN="UPDATE_OFFER_CLN",Y.FETCH_OFFER_BOOKMARKS_CLN="FETCH_OFFER_BOOKMARKS_CLN",Y.SET_OFFER_BOOKMARKS_CLN="SET_OFFER_BOOKMARKS_CLN",Y.ADD_UPDATE_OFFER_BOOKMARK_CLN="ADD_UPDATE_OFFER_BOOKMARK_CLN",Y.DELETE_OFFER_BOOKMARK_CLN="DELETE_OFFER_BOOKMARK_CLN",Y.REMOVE_OFFER_BOOKMARK_CLN="REMOVE_OFFER_BOOKMARK_CL",Y.FETCH_SWAPS_CLN="FETCH_SWAPS_CLN",Y.SET_SWAPS_CLN="SET_SWAPS_CLN",Y.FETCH_SWAP_PEERS_CLN="FETCH_SWAP_PEERS_CLN",Y.SET_SWAP_PEERS_CLN="SET_SWAP_PEERS_CLN",Y.FETCH_SWAP_REQUESTS_CLN="FETCH_SWAP_REQUESTS_CLN",Y.SET_SWAP_REQUESTS_CLN="SET_SWAP_REQUESTS_CLN",Y.SWAPOUT_CLN="SWAPOUT_CLN",Y.ADD_SWAPOUT_CLN="ADD_SWAPOUT_CLN",Y.SWAPIN_CLN="SWAPIN_CLN",Y.ADD_SWAPIN_CLN="ADD_SWAPIN_CLN",ye;var Y})(),ke=(()=>{return(Y=ke||(ke={})).RESET_ECL_STORE="RESET_ECL_STORE",Y.UPDATE_API_CALL_STATUS_ECL="UPDATE_API_CALL_STATUS_ECL",Y.SET_CHILD_NODE_SETTINGS_ECL="SET_CHILD_NODE_SETTINGS_ECL",Y.FETCH_INFO_ECL="FETCH_INFO_ECL",Y.SET_INFO_ECL="SET_INFO_ECL",Y.FETCH_FEES_ECL="FETCH_FEES_ECL",Y.SET_FEES_ECL="SET_FEES_ECL",Y.FETCH_CHANNELS_ECL="FETCH_CHANNELS_ECL",Y.SET_ACTIVE_CHANNELS_ECL="SET_ACTIVE_CHANNELS_ECL",Y.SET_PENDING_CHANNELS_ECL="SET_PENDING_CHANNELS_ECL",Y.SET_INACTIVE_CHANNELS_ECL="SET_INACTIVE_CHANNELS_ECL",Y.FETCH_ONCHAIN_BALANCE_ECL="FETCH_ONCHAIN_BALANCE_ECL",Y.SET_ONCHAIN_BALANCE_ECL="SET_ONCHAIN_BALANCE_ECL",Y.FETCH_LIGHTNING_BALANCE_ECL="FETCH_LIGHTNING_BALANCE_ECL",Y.SET_LIGHTNING_BALANCE_ECL="SET_LIGHTNING_BALANCE_ECL",Y.SET_CHANNELS_STATUS_ECL="SET_CHANNELS_STATUS_ECL",Y.FETCH_PEERS_ECL="FETCH_PEERS_ECL",Y.SET_PEERS_ECL="SET_PEERS_ECL",Y.SAVE_NEW_PEER_ECL="SAVE_NEW_PEER_ECL",Y.NEWLY_ADDED_PEER_ECL="NEWLY_ADDED_PEER_ECL",Y.ADD_PEER_ECL="ADD_PEER_ECL",Y.DETACH_PEER_ECL="DETACH_PEER_ECL",Y.REMOVE_PEER_ECL="REMOVE_PEER_ECL",Y.GET_NEW_ADDRESS_ECL="GET_NEW_ADDRESS_ECL",Y.SET_NEW_ADDRESS_ECL="SET_NEW_ADDRESS_ECL",Y.SAVE_NEW_CHANNEL_ECL="SAVE_NEW_CHANNEL_ECL",Y.UPDATE_CHANNEL_ECL="UPDATE_CHANNEL_ECL",Y.CLOSE_CHANNEL_ECL="CLOSE_CHANNEL_ECL",Y.REMOVE_CHANNEL_ECL="REMOVE_CHANNEL_ECL",Y.FETCH_PAYMENTS_ECL="FETCH_PAYMENTS_ECL",Y.SET_PAYMENTS_ECL="SET_PAYMENTS_ECL",Y.GET_QUERY_ROUTES_ECL="GET_QUERY_ROUTES_ECL",Y.SET_QUERY_ROUTES_ECL="SET_QUERY_ROUTES_ECL",Y.SEND_PAYMENT_ECL="SEND_PAYMENT_ECL",Y.SEND_PAYMENT_STATUS_ECL="SEND_PAYMENT_STATUS_ECL",Y.FETCH_TRANSACTIONS_ECL="FETCH_TRANSACTIONS_ECL",Y.SET_TRANSACTIONS_ECL="SET_TRANSACTIONS_ECL",Y.SEND_ONCHAIN_FUNDS_ECL="SEND_ONCHAIN_FUNDS_ECL",Y.SEND_ONCHAIN_FUNDS_RES_ECL="SEND_ONCHAIN_FUNDS_RES_ECL",Y.FETCH_INVOICES_ECL="FETCH_INVOICES_ECL",Y.SET_INVOICES_ECL="SET_INVOICES_ECL",Y.SET_TOTAL_INVOICES_ECL="SET_TOTAL_INVOICES_ECL",Y.CREATE_INVOICE_ECL="CREATE_INVOICE_ECL",Y.ADD_INVOICE_ECL="ADD_INVOICE_ECL",Y.UPDATE_INVOICE_ECL="UPDATE_INVOICE_ECL",Y.PEER_LOOKUP_ECL="PEER_LOOKUP_ECL",Y.INVOICE_LOOKUP_ECL="INVOICE_LOOKUP_ECL",Y.SET_LOOKUP_ECL="SET_LOOKUP_ECL",Y.UPDATE_CHANNEL_STATE_ECL="UPDATE_CHANNEL_STATE_ECL",Y.UPDATE_RELAYED_PAYMENT_ECL="UPDATE_RELAYED_PAYMENT_ECL",ke;var Y})();const Ee=[{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 te=(()=>{return(Y=te||(te={})).gossip_queries_ex="Gossip queries including additional information",Y.option_anchor_outputs="Anchor outputs",Y.option_data_loss_protect="Extra channel re-establish fields",Y.var_onion_optin="Variable-length routing onion payloads",Y.option_static_remotekey="Static key for remote output",Y.option_support_large_channel="Create large channels",Y.option_anchors_zero_fee_htlc_tx="Anchor commitment type with zero fee HTLC transactions",Y.payment_secret="Payment secret field",Y.option_shutdown_anysegwit="Future segwit versions allowed in shutdown",Y.basic_mpp="Basic multi-part payments",Y.gossip_queries="More sophisticated gossip control",Y.option_upfront_shutdown_script="Shutdown script pubkey when opening channel",Y.anchors_zero_fee_htlc_tx="Anchor commitment type with zero fee HTLC transactions",Y.amp="AMP",te;var Y})(),ze=(()=>{return(Y=ze||(ze={}))["data-loss-protect"]="Extra channel re-establish fields",Y["upfront-shutdown-script"]="Shutdown script pubkey when opening channel",Y["gossip-queries"]="More sophisticated gossip control",Y["tlv-onion"]="Variable-length routing onion payloads",Y["ext-gossip-queries"]="Gossip queries can include additional information",Y["static-remote-key"]="Static key for remote output",Y["payment-addr"]="Payment secret field",Y["multi-path-payments"]="Basic multi-part payments",Y["wumbo-channels"]="Wumbo Channels",Y.anchors="Anchor outputs",Y["anchors-zero-fee-htlc-tx"]="Anchor commitment type with zero fee HTLC transactions",Y.amp="AMP",ze;var Y})();const be=[{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 Z=(()=>{return(Y=Z||(Z={})).OFFERED="offered",Y.SETTLED="settled",Y.FAILED="failed",Y.LOCAL_FAILED="local_failed",Z;var Y})()},8104:(He,j,p)=>{"use strict";p.d(j,{D:()=>se});var e=p(8138),i=p(1135),u=p(7579),b=p(2843),a=p(9646),y=p(590),d=p(5577),P=p(2722),D=p(4004),T=p(262),M=p(1365),A=p(2340),E=p(7731),k=p(1786),w=p(7861),z=p(6523),U=p(6529),W=p(9828),ne=p(5e3),Q=p(5620),le=p(5043),q=p(7261),ie=p(9808);let se=(()=>{class J{constructor(x,t,r,h,c){this.httpClient=x,this.store=t,this.logger=r,this.snackBar=h,this.titleCasePipe=c,this.APIUrl=A.T5,this.lnImplementation="",this.lnImplementationUpdated=new i.X(null),this.unSubs=[new u.x,new u.x,new u.x,new u.x,new u.x,new u.x,new u.x,new u.x,new u.x,new u.x,new u.x,new u.x,new u.x],this.mapAliases=(C,S)=>(C&&C.length>0?C.forEach((I,_)=>{var n;if(S&&S.length>0)for(let g=0;g<S.length;g++){if(S[g].short_channel_id&&S[g].short_channel_id===I.in_channel&&(I.in_channel_alias=S[g].alias?S[g].alias:I.in_channel,I.out_channel_alias)||S[g].short_channel_id&&(null===(n=S[g].short_channel_id)||void 0===n?void 0:n.toString())===I.out_channel&&(I.out_channel_alias=S[g].alias?S[g].alias:I.out_channel,I.in_channel_alias))return;g===S.length-1&&(I.in_channel_alias||(I.in_channel_alias=I.in_channel?I.in_channel:"-"),I.out_channel_alias||(I.out_channel_alias=I.out_channel?I.out_channel:"-"))}else I.in_channel_alias=I.in_channel?I.in_channel:"-",I.out_channel_alias=I.out_channel?I.out_channel:"-"}):C=[],C)}setLnImplementation(x){this.lnImplementation=x.toLowerCase(),this.lnImplementationUpdated.next(this.lnImplementation)}getFiatRates(){return this.httpClient.get(A.NZ.CONF_API+"/rates")}decodePayment(x,t){return this.lnImplementationUpdated.pipe((0,y.P)(r=>null!==r),(0,d.z)(r=>{let h=this.APIUrl+"/"+r+A.NZ.PAYMENTS_API+"/decode/"+x;return"cln"===r&&(h=this.APIUrl+"/"+r+A.NZ.UTILITY_API+"/decode/"+x),this.store.dispatch((0,w.ac)({payload:E.m6.DECODE_PAYMENT})),this.httpClient.get(h).pipe((0,P.R)(this.unSubs[0]),(0,D.U)(c=>(this.store.dispatch((0,w.uO)({payload:E.m6.DECODE_PAYMENT})),c)),(0,T.K)(c=>(t?this.handleErrorWithoutAlert("Decode Payment",E.m6.DECODE_PAYMENT,c):this.handleErrorWithAlert("decodePaymentData",E.m6.DECODE_PAYMENT,"Decode Payment Failed",h,c),(0,b._)(()=>new Error(this.extractErrorMessage(c))))))}))}decodePayments(x){return this.lnImplementationUpdated.pipe((0,y.P)(t=>null!==t),(0,d.z)(t=>{let r="",h="";return"ecl"===t?(r=this.APIUrl+"/"+t+A.NZ.PAYMENTS_API+"/getsentinfos",h=E.m6.GET_SENT_PAYMENTS):"cln"===t?(r=this.APIUrl+"/"+t+A.NZ.UTILITY_API,h=E.m6.DECODE_PAYMENTS):(r=this.APIUrl+"/"+t+A.NZ.PAYMENTS_API,h=E.m6.DECODE_PAYMENTS),this.store.dispatch((0,w.ac)({payload:h})),this.httpClient.post(r,{payments:x}).pipe((0,P.R)(this.unSubs[1]),(0,D.U)(c=>(this.store.dispatch((0,w.uO)({payload:h})),c)),(0,T.K)(c=>(this.handleErrorWithAlert("decodePaymentsData",h,h+" Failed",r,c),(0,b._)(()=>new Error(this.extractErrorMessage(c))))))}))}getAliasesFromPubkeys(x,t){return this.lnImplementationUpdated.pipe((0,y.P)(r=>null!==r),(0,d.z)(r=>{if(t){const h=(new e.LE).set("pubkeys",x);return this.httpClient.get(this.APIUrl+"/"+r+A.NZ.NETWORK_API+"/nodes",{params:h})}return this.httpClient.get(this.APIUrl+"/"+r+A.NZ.NETWORK_API+"/node/"+x)}))}signMessage(x){return this.lnImplementationUpdated.pipe((0,y.P)(t=>null!==t),(0,d.z)(t=>{let r=this.APIUrl+"/"+t+A.NZ.MESSAGE_API+"/sign";return"cln"===t&&(r=this.APIUrl+"/"+t+A.NZ.UTILITY_API+"/sign"),this.store.dispatch((0,w.ac)({payload:E.m6.SIGN_MESSAGE})),this.httpClient.post(r,{message:x}).pipe((0,P.R)(this.unSubs[2]),(0,D.U)(h=>(this.store.dispatch((0,w.uO)({payload:E.m6.SIGN_MESSAGE})),h)),(0,T.K)(h=>(this.handleErrorWithAlert("signMessageData",E.m6.SIGN_MESSAGE,"Sign Message Failed",r,h),(0,b._)(()=>new Error(this.extractErrorMessage(h))))))}))}verifyMessage(x,t){return this.lnImplementationUpdated.pipe((0,y.P)(r=>null!==r),(0,d.z)(r=>{let h=this.APIUrl+"/"+r+A.NZ.MESSAGE_API+"/verify";return"cln"===r&&(h=this.APIUrl+"/"+r+A.NZ.UTILITY_API+"/verify"),this.store.dispatch((0,w.ac)({payload:E.m6.VERIFY_MESSAGE})),this.httpClient.post(h,{message:x,signature:t}).pipe((0,P.R)(this.unSubs[3]),(0,D.U)(c=>(this.store.dispatch((0,w.uO)({payload:E.m6.VERIFY_MESSAGE})),c)),(0,T.K)(c=>(this.handleErrorWithAlert("verifyMessageData",E.m6.VERIFY_MESSAGE,"Verify Message Failed",h,c),(0,b._)(()=>new Error(this.extractErrorMessage(c))))))}))}bumpFee(x,t,r,h){return this.lnImplementationUpdated.pipe((0,y.P)(c=>null!==c),(0,d.z)(c=>{const C={txid:x,outputIndex:t};return r&&(C.targetConf=r),h&&(C.satPerByte=h),this.store.dispatch((0,w.ac)({payload:E.m6.BUMP_FEE})),this.httpClient.post(this.APIUrl+"/"+c+A.NZ.WALLET_API+"/bumpfee",C).pipe((0,P.R)(this.unSubs[4]),(0,D.U)(S=>(this.store.dispatch((0,w.uO)({payload:E.m6.BUMP_FEE})),this.snackBar.open("Successfully bumped the fee. Use the block explorer to verify transaction."),S)),(0,T.K)(S=>(this.handleErrorWithoutAlert("Bump Fee",E.m6.BUMP_FEE,S),(0,b._)(()=>new Error(this.extractErrorMessage(S))))))}))}labelUTXO(x,t,r=!0){return this.lnImplementationUpdated.pipe((0,y.P)(h=>null!==h),(0,d.z)(h=>{const c={txid:x,label:t,overwrite:r};return this.store.dispatch((0,w.ac)({payload:E.m6.LABEL_UTXO})),this.httpClient.post(this.APIUrl+"/"+h+A.NZ.WALLET_API+"/label",c).pipe((0,P.R)(this.unSubs[5]),(0,D.U)(C=>(this.store.dispatch((0,w.uO)({payload:E.m6.LABEL_UTXO})),C)),(0,T.K)(C=>(this.handleErrorWithoutAlert("Lease UTXO",E.m6.LABEL_UTXO,C),(0,b._)(()=>new Error(this.extractErrorMessage(C))))))}))}leaseUTXO(x,t){return this.lnImplementationUpdated.pipe((0,y.P)(r=>null!==r),(0,d.z)(r=>{const h={txid:x,outputIndex:t};return this.store.dispatch((0,w.ac)({payload:E.m6.LEASE_UTXO})),this.httpClient.post(this.APIUrl+"/"+r+A.NZ.WALLET_API+"/lease",h).pipe((0,P.R)(this.unSubs[6]),(0,D.U)(c=>{this.store.dispatch((0,w.uO)({payload:E.m6.LEASE_UTXO})),this.store.dispatch((0,z.mC)()),this.store.dispatch((0,z.Ly)());const C=new Date(1e3*c.expiration),S=Math.round(C.getTime())-60*C.getTimezoneOffset();this.snackBar.open("The UTXO has been leased till "+new Date(S).toString().substring(4,21).replace(" ","/").replace(" ","/").toUpperCase()+".")}),(0,T.K)(c=>(this.handleErrorWithoutAlert("Lease UTXO",E.m6.LEASE_UTXO,c),(0,b._)(()=>new Error(this.extractErrorMessage(c))))))}))}getForwardingHistory(x,t,r,h){if("LND"===x){const c={end_time:r,start_time:t};return this.store.dispatch((0,w.ac)({payload:E.m6.GET_FORWARDING_HISTORY})),this.httpClient.post(this.APIUrl+"/lnd"+A.NZ.SWITCH_API,c).pipe((0,P.R)(this.unSubs[7]),(0,M.M)(this.store.select(U._f)),(0,d.z)(([C,S])=>{if(C.forwarding_events){const I=[...S.channels,...S.closedChannels];C.forwarding_events.forEach(_=>{var n,g;if(I&&I.length>0)for(let V=0;V<I.length;V++){if((null===(n=I[V].chan_id)||void 0===n?void 0:n.toString())===_.chan_id_in&&(_.alias_in=I[V].remote_alias?I[V].remote_alias:_.chan_id_in,_.alias_out)||(null===(g=I[V].chan_id)||void 0===g?void 0:g.toString())===_.chan_id_out&&(_.alias_out=I[V].remote_alias?I[V].remote_alias:_.chan_id_out,_.alias_in))return;V===I.length-1&&(_.alias_in||(_.alias_in=_.chan_id_in),_.alias_out||(_.alias_out=_.chan_id_out))}else _.alias_in=_.chan_id_in,_.alias_out=_.chan_id_out})}else C={};return this.store.dispatch((0,w.uO)({payload:E.m6.GET_FORWARDING_HISTORY})),(0,a.of)(C)}),(0,T.K)(C=>(this.handleErrorWithAlert("getForwardingHistoryData",E.m6.GET_FORWARDING_HISTORY,"Forwarding History Failed",this.APIUrl+"/lnd"+A.NZ.SWITCH_API,C),(0,b._)(()=>new Error(this.extractErrorMessage(C))))))}return"CLN"===x?(this.store.dispatch((0,w.ac)({payload:E.m6.GET_FORWARDING_HISTORY})),this.httpClient.get(this.APIUrl+"/cln"+A.NZ.CHANNELS_API+"/listForwards?status="+h).pipe((0,P.R)(this.unSubs[8]),(0,M.M)(this.store.select(W.ZW)),(0,d.z)(([c,C])=>{const S=this.mapAliases(c,[...C.activeChannels,...C.pendingChannels,...C.inactiveChannels]);return this.store.dispatch((0,w.uO)({payload:E.m6.GET_FORWARDING_HISTORY})),(0,a.of)(S)}),(0,T.K)(c=>(this.handleErrorWithAlert("getForwardingHistoryData",E.m6.GET_FORWARDING_HISTORY,"Forwarding History Failed",this.APIUrl+"/cln"+A.NZ.CHANNELS_API+"/listForwards?status="+h+"&start="+t+"&end="+r,c),(0,b._)(()=>new Error(this.extractErrorMessage(c))))))):(0,a.of)({})}listNetworkNodes(x=""){return this.lnImplementationUpdated.pipe((0,y.P)(t=>null!==t),(0,d.z)(t=>(this.store.dispatch((0,w.ac)({payload:E.m6.LIST_NETWORK_NODES})),this.httpClient.get(this.APIUrl+"/"+t+A.NZ.NETWORK_API+"/listNodes"+x).pipe((0,P.R)(this.unSubs[9]),(0,d.z)(r=>(this.store.dispatch((0,w.uO)({payload:E.m6.LIST_NETWORK_NODES})),(0,a.of)(r))),(0,T.K)(r=>(this.handleErrorWithoutAlert("List Network Nodes",E.m6.LIST_NETWORK_NODES,r),(0,b._)(()=>this.extractErrorMessage(r))))))))}listConfigs(){return this.lnImplementationUpdated.pipe((0,y.P)(x=>null!==x),(0,d.z)(x=>(this.store.dispatch((0,w.ac)({payload:E.m6.GET_LIST_CONFIGS})),this.httpClient.get(this.APIUrl+"/"+x+A.NZ.UTILITY_API+"/listConfigs").pipe((0,P.R)(this.unSubs[10]),(0,d.z)(t=>(this.store.dispatch((0,w.uO)({payload:E.m6.GET_LIST_CONFIGS})),(0,a.of)(t))),(0,T.K)(t=>(this.handleErrorWithoutAlert("List Configurations",E.m6.GET_LIST_CONFIGS,t),(0,b._)(()=>this.extractErrorMessage(t))))))))}getOrUpdateFunderPolicy(x,t,r,h,c,C){return this.lnImplementationUpdated.pipe((0,y.P)(S=>null!==S),(0,d.z)(S=>{const I=x?{policy:x,policy_mod:t,lease_fee_base_msat:r,lease_fee_basis:h,channel_fee_max_base_msat:c,channel_fee_max_proportional_thousandths:C}:null;return this.store.dispatch((0,w.ac)({payload:E.m6.GET_FUNDER_POLICY})),this.httpClient.post(this.APIUrl+"/"+S+A.NZ.CHANNELS_API+"/funderUpdate",I).pipe((0,P.R)(this.unSubs[11]),(0,D.U)(_=>(this.store.dispatch((0,w.uO)({payload:E.m6.GET_FUNDER_POLICY})),I&&this.store.dispatch((0,w.jW)({payload:"Funder Policy Updated Successfully with Compact Lease: "+_.compact_lease+"!"})),_)),(0,T.K)(_=>(this.handleErrorWithoutAlert("Funder Policy",E.m6.GET_FUNDER_POLICY,_),(0,b._)(()=>new Error(this.extractErrorMessage(_))))))}))}extractErrorMessage(x,t="Unknown Error."){return this.titleCasePipe.transform(x.error.text&&"string"==typeof x.error.text&&x.error.text.includes('<!DOCTYPE html><html lang="en">')?"API Route Does Not Exist.":x.error&&x.error.error&&x.error.error.error&&x.error.error.error.error&&x.error.error.error.error.error&&"string"==typeof x.error.error.error.error.error?x.error.error.error.error.error:x.error&&x.error.error&&x.error.error.error&&x.error.error.error.error&&"string"==typeof x.error.error.error.error?x.error.error.error.error:x.error&&x.error.error&&x.error.error.error&&"string"==typeof x.error.error.error?x.error.error.error:x.error&&x.error.error&&"string"==typeof x.error.error?x.error.error:x.error&&"string"==typeof x.error?x.error:x.error&&x.error.error&&x.error.error.error&&x.error.error.error.error&&x.error.error.error.error.message&&"string"==typeof x.error.error.error.error.message?x.error.error.error.error.message:x.error&&x.error.error&&x.error.error.error&&x.error.error.error.message&&"string"==typeof x.error.error.error.message?x.error.error.error.message:x.error&&x.error.error&&x.error.error.message&&"string"==typeof x.error.error.message?x.error.error.message:x.error&&x.error.message&&"string"==typeof x.error.message?x.error.message:x.message&&"string"==typeof x.message?x.message:t)}handleErrorWithoutAlert(x,t,r){r.error.text&&"string"==typeof r.error.text&&r.error.text.includes('<!DOCTYPE html><html lang="en">')&&(r={status:403,error:{message:"API Route Does Not Exist."}}),this.logger.error("ERROR IN: "+x+"\n"+JSON.stringify(r)),401===r.status?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,w.ts)()),this.store.dispatch((0,w.kS)()),this.store.dispatch((0,w.jW)({payload:"Authentication Failed. Redirecting to Login."}))):(this.store.dispatch((0,w.uO)({payload:t})),this.store.dispatch((0,w.qi)({payload:{action:x,status:E.Bn.ERROR,statusCode:r.status.toString(),message:this.extractErrorMessage(r)}})))}handleErrorWithAlert(x,t,r,h,c){if(this.logger.error(c),401===c.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,w.ts)()),this.store.dispatch((0,w.kS)()),this.store.dispatch((0,w.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,w.uO)({payload:t}));const C=this.extractErrorMessage(c);this.store.dispatch((0,w.qR)({payload:{data:{type:"ERROR",alertTitle:r,message:{code:c.status?c.status:"Unknown Error",message:C,URL:h},component:k.H}}})),this.store.dispatch((0,w.qi)({payload:{action:x,status:E.Bn.ERROR,statusCode:c.status.toString(),message:C,URL:h}}))}}ngOnDestroy(){this.unSubs.forEach(x=>{x.next(null),x.complete()})}}return J.\u0275fac=function(x){return new(x||J)(ne.LFG(e.eN),ne.LFG(Q.yh),ne.LFG(le.mQ),ne.LFG(q.ux),ne.LFG(ie.rS))},J.\u0275prov=ne.Yz7({token:J,factory:J.\u0275fac}),J})()},5043:(He,j,p)=>{"use strict";p.d(j,{LG:()=>d,mQ:()=>y});var e=p(2340),i=p(5e3);const{isDebugMode:u}=e.NZ,b=()=>null;let y=(()=>{class P{invokeConsoleMethod(T,M){}}return P.\u0275fac=function(T){return new(T||P)},P.\u0275prov=i.Yz7({token:P,factory:P.\u0275fac}),P})(),d=(()=>{class P{get info(){return u?console.log.bind(console):b}get warn(){return u?console.warn.bind(console):b}get error(){return u?console.error.bind(console):b}invokeConsoleMethod(T,M){(console[T]||console.log||b).apply(console,[M])}}return P.\u0275fac=function(T){return new(T||P)},P.\u0275prov=i.Yz7({token:P,factory:P.\u0275fac}),P})()},9107:(He,j,p)=>{"use strict";p.d(j,{W:()=>U});var e=p(8138),i=p(1135),u=p(7579),b=p(9646),a=p(2843),y=p(2722),d=p(262),P=p(4004),D=p(2340),T=p(7731),M=p(1786),A=p(7861),E=p(5e3),k=p(5043),w=p(5620),z=p(62);let U=(()=>{class W{constructor(Q,le,q,ie){this.httpClient=Q,this.logger=le,this.store=q,this.commonService=ie,this.loopUrl="",this.swaps=[],this.swapsChanged=new i.X([]),this.unSubs=[new u.x,new u.x,new u.x,new u.x,new u.x]}getSwapsList(){return this.swaps}listSwaps(){this.store.dispatch((0,A.ac)({payload:T.m6.GET_LOOP_SWAPS})),this.loopUrl=D.T5+D.NZ.LOOP_API+"/swaps",this.httpClient.get(this.loopUrl).pipe((0,y.R)(this.unSubs[0])).subscribe({next:Q=>{this.store.dispatch((0,A.uO)({payload:T.m6.GET_LOOP_SWAPS})),this.swaps=Q,this.swapsChanged.next(this.swaps)},error:Q=>this.swapsChanged.error(this.handleErrorWithAlert(T.m6.GET_LOOP_SWAPS,this.loopUrl,Q))})}loopOut(Q,le,q,ie,se,J,me,x,t,r){const h={amount:Q,targetConf:q,swapRoutingFee:ie,minerFee:se,prepayRoutingFee:J,prepayAmt:me,swapFee:x,swapPublicationDeadline:t,destAddress:r};return""!==le&&(h.chanId=le),this.loopUrl=D.T5+D.NZ.LOOP_API+"/out",this.httpClient.post(this.loopUrl,h).pipe((0,d.K)(c=>this.handleErrorWithoutAlert("Loop Out for Channel: "+le,T.m6.NO_SPINNER,c)))}getLoopOutTerms(){return this.loopUrl=D.T5+D.NZ.LOOP_API+"/out/terms",this.httpClient.get(this.loopUrl).pipe((0,d.K)(Q=>this.handleErrorWithoutAlert("Loop Out Terms",T.m6.NO_SPINNER,Q)))}getLoopOutQuote(Q,le,q){let ie=new e.LE;return ie=ie.append("targetConf",le.toString()),ie=ie.append("swapPublicationDeadline",q.toString()),this.loopUrl=D.T5+D.NZ.LOOP_API+"/out/quote/"+Q,this.store.dispatch((0,A.ac)({payload:T.m6.GET_QUOTE})),this.httpClient.get(this.loopUrl,{params:ie}).pipe((0,y.R)(this.unSubs[1]),(0,P.U)(se=>(this.store.dispatch((0,A.uO)({payload:T.m6.GET_QUOTE})),se)),(0,d.K)(se=>this.handleErrorWithoutAlert("Loop Out Quote",T.m6.GET_QUOTE,se)))}getLoopOutTermsAndQuotes(Q){let le=new e.LE;return le=le.append("targetConf",Q.toString()),le=le.append("swapPublicationDeadline",((new Date).getTime()+18e5).toString()),this.loopUrl=D.T5+D.NZ.LOOP_API+"/out/termsAndQuotes",this.store.dispatch((0,A.ac)({payload:T.m6.GET_TERMS_QUOTES})),this.httpClient.get(this.loopUrl,{params:le}).pipe((0,y.R)(this.unSubs[2]),(0,P.U)(q=>(this.store.dispatch((0,A.uO)({payload:T.m6.GET_TERMS_QUOTES})),q)),(0,d.K)(q=>(0,b.of)(this.handleErrorWithAlert(T.m6.GET_TERMS_QUOTES,this.loopUrl,q))))}loopIn(Q,le,q,ie,se){const J={amount:Q,swapFee:le,minerFee:q,lastHop:ie,externalHtlc:se};return this.loopUrl=D.T5+D.NZ.LOOP_API+"/in",this.httpClient.post(this.loopUrl,J).pipe((0,d.K)(me=>this.handleErrorWithoutAlert("Loop In",T.m6.NO_SPINNER,me)))}getLoopInTerms(){return this.loopUrl=D.T5+D.NZ.LOOP_API+"/in/terms",this.httpClient.get(this.loopUrl).pipe((0,d.K)(Q=>this.handleErrorWithoutAlert("Loop In Terms",T.m6.NO_SPINNER,Q)))}getLoopInQuote(Q,le,q){let ie=new e.LE;return ie=ie.append("targetConf",le.toString()),ie=ie.append("swapPublicationDeadline",q.toString()),this.loopUrl=D.T5+D.NZ.LOOP_API+"/in/quote/"+Q,this.store.dispatch((0,A.ac)({payload:T.m6.GET_QUOTE})),this.httpClient.get(this.loopUrl,{params:ie}).pipe((0,y.R)(this.unSubs[3]),(0,P.U)(se=>(this.store.dispatch((0,A.uO)({payload:T.m6.GET_QUOTE})),se)),(0,d.K)(se=>this.handleErrorWithoutAlert("Loop In Qoute",T.m6.GET_QUOTE,se)))}getLoopInTermsAndQuotes(Q){let le=new e.LE;return le=le.append("targetConf",Q.toString()),le=le.append("swapPublicationDeadline",((new Date).getTime()+18e5).toString()),this.loopUrl=D.T5+D.NZ.LOOP_API+"/in/termsAndQuotes",this.store.dispatch((0,A.ac)({payload:T.m6.GET_TERMS_QUOTES})),this.httpClient.get(this.loopUrl,{params:le}).pipe((0,y.R)(this.unSubs[4]),(0,P.U)(q=>(this.store.dispatch((0,A.uO)({payload:T.m6.GET_TERMS_QUOTES})),q)),(0,d.K)(q=>(0,b.of)(this.handleErrorWithAlert(T.m6.GET_TERMS_QUOTES,this.loopUrl,q))))}getSwap(Q){return this.loopUrl=D.T5+D.NZ.LOOP_API+"/swap/"+Q,this.httpClient.get(this.loopUrl).pipe((0,d.K)(le=>this.handleErrorWithoutAlert("Loop Get Swap for ID: "+Q,T.m6.NO_SPINNER,le)))}handleErrorWithoutAlert(Q,le,q){let ie="";return this.logger.error("ERROR IN: "+Q+"\n"+JSON.stringify(q)),this.store.dispatch((0,A.uO)({payload:le})),401===q.status?(ie="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,A.kS)())):503===q.status?(ie="Unable to Connect to Loop Server.",this.store.dispatch((0,A.qR)({payload:{data:{type:"ERROR",alertTitle:"Loop Not Connected",message:{code:q.status,message:"Unable to Connect to Loop Server",URL:Q},component:M.H}}}))):ie=this.commonService.extractErrorMessage(q),(0,a._)(()=>new Error(ie))}handleErrorWithAlert(Q,le,q){let ie="";if(this.logger.error(q),this.store.dispatch((0,A.uO)({payload:Q})),401===q.status)ie="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,A.kS)());else if(503===q.status)ie="Unable to Connect to Loop Server.",setTimeout(()=>{this.store.dispatch((0,A.qR)({payload:{data:{type:"ERROR",alertTitle:"Loop Not Connected",message:{code:q.status,message:"Unable to Connect to Loop Server",URL:le},component:M.H}}}))},100);else{ie=this.commonService.extractErrorMessage(q);const se=q.error&&q.error.error&&q.error.error.code?q.error.error.code:q.error&&q.error.code?q.error.code:q.code?q.code:q.status;setTimeout(()=>{this.store.dispatch((0,A.qR)({payload:{data:{type:T.n_.ERROR,alertTitle:"ERROR",message:{code:se,message:ie,URL:le},component:M.H}}}))},100)}return{message:ie}}ngOnDestroy(){this.unSubs.forEach(Q=>{Q.next(null),Q.complete()})}}return W.\u0275fac=function(Q){return new(Q||W)(E.LFG(e.eN),E.LFG(k.mQ),E.LFG(w.yh),E.LFG(z.v))},W.\u0275prov=E.Yz7({token:W,factory:W.\u0275fac}),W})()},5986:(He,j,p)=>{"use strict";p.d(j,{m:()=>u});var e=p(7579),i=p(5e3);let u=(()=>{class b{constructor(){this.sessionSub=new e.x}watchSession(){return this.sessionSub.asObservable()}getItem(y){return sessionStorage.getItem(y)}getAllItems(){return sessionStorage}setItem(y,d){sessionStorage.setItem(y,d),this.sessionSub.next(sessionStorage)}removeItem(y){sessionStorage.removeItem(y),this.sessionSub.next(sessionStorage)}clearAll(){sessionStorage.clear(),this.sessionSub.next(sessionStorage)}}return b.\u0275fac=function(y){return new(y||b)},b.\u0275prov=i.Yz7({token:b,factory:b.\u0275fac}),b})()},7998:(He,j,p)=>{"use strict";p.d(j,{d:()=>k});var e=p(1135),i=p(7579),u=p(2722),b=p(930),a=p(8306),y=p(727),d=p(4707);const P={url:"",deserializer:w=>JSON.parse(w.data),serializer:w=>JSON.stringify(w)};class T extends i.u{constructor(z,U){if(super(),this._socket=null,z instanceof a.y)this.destination=U,this.source=z;else{const W=this._config=Object.assign({},P);if(this._output=new i.x,"string"==typeof z)W.url=z;else for(const ne in z)z.hasOwnProperty(ne)&&(W[ne]=z[ne]);if(!W.WebSocketCtor&&WebSocket)W.WebSocketCtor=WebSocket;else if(!W.WebSocketCtor)throw new Error("no WebSocket constructor can be found");this.destination=new d.t}}lift(z){const U=new T(this._config,this.destination);return U.operator=z,U.source=this,U}_resetState(){this._socket=null,this.source||(this.destination=new d.t),this._output=new i.x}multiplex(z,U,W){const ne=this;return new a.y(Q=>{try{ne.next(z())}catch(q){Q.error(q)}const le=ne.subscribe({next:q=>{try{W(q)&&Q.next(q)}catch(ie){Q.error(ie)}},error:q=>Q.error(q),complete:()=>Q.complete()});return()=>{try{ne.next(U())}catch(q){Q.error(q)}le.unsubscribe()}})}_connectSocket(){const{WebSocketCtor:z,protocol:U,url:W,binaryType:ne}=this._config,Q=this._output;let le=null;try{le=U?new z(W,U):new z(W),this._socket=le,ne&&(this._socket.binaryType=ne)}catch(ie){return void Q.error(ie)}const q=new y.w0(()=>{this._socket=null,le&&1===le.readyState&&le.close()});le.onopen=ie=>{const{_socket:se}=this;if(!se)return le.close(),void this._resetState();const{openObserver:J}=this._config;J&&J.next(ie);const me=this.destination;this.destination=b.Lv.create(x=>{if(1===le.readyState)try{const{serializer:t}=this._config;le.send(t(x))}catch(t){this.destination.error(t)}},x=>{const{closingObserver:t}=this._config;t&&t.next(void 0),x&&x.code?le.close(x.code,x.reason):Q.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:x}=this._config;x&&x.next(void 0),le.close(),this._resetState()}),me&&me instanceof d.t&&q.add(me.subscribe(this.destination))},le.onerror=ie=>{this._resetState(),Q.error(ie)},le.onclose=ie=>{le===this._socket&&this._resetState();const{closeObserver:se}=this._config;se&&se.next(ie),ie.wasClean?Q.complete():Q.error(ie)},le.onmessage=ie=>{try{const{deserializer:se}=this._config;Q.next(se(ie))}catch(se){Q.error(se)}}}_subscribe(z){const{source:U}=this;return U?U.subscribe(z):(this._socket||this._connectSocket(),this._output.subscribe(z),z.add(()=>{const{_socket:W}=this;0===this._output.observers.length&&(W&&(1===W.readyState||0===W.readyState)&&W.close(),this._resetState())}),z)}unsubscribe(){const{_socket:z}=this;z&&(1===z.readyState||0===z.readyState)&&z.close(),this._resetState(),super.unsubscribe()}}var M=p(5e3),A=p(5043),E=p(5986);let k=(()=>{class w{constructor(U,W){this.logger=U,this.sessionService=W,this.clWSMessages=new e.X(null),this.eclWSMessages=new e.X(null),this.lndWSMessages=new e.X(null),this.wsUrl="",this.nodeIndex="",this.RETRY_SECONDS=5,this.RECONNECT_TIMEOUT=null,this.unSubs=[new i.x,new i.x,new i.x,new i.x,new i.x,new i.x,new i.x,new i.x,new i.x,new i.x,new i.x,new i.x,new i.x]}connectWebSocket(U,W){(!this.socket||this.socket.closed)&&(this.wsUrl=U,this.nodeIndex=W,this.logger.info("Websocket Url: "+this.wsUrl),this.socket=new T({url:U,protocol:[this.sessionService.getItem("token")||"",W]}),this.subscribeToMessages())}reconnectOnError(){this.RECONNECT_TIMEOUT||this.socket&&!this.socket.closed||(this.RETRY_SECONDS=this.RETRY_SECONDS>=160?160:2*this.RETRY_SECONDS,this.RECONNECT_TIMEOUT=setTimeout(()=>{this.logger.info("Reconnecting Web Socket."),this.connectWebSocket(this.wsUrl,this.nodeIndex),this.RECONNECT_TIMEOUT=null},1e3*this.RETRY_SECONDS))}closeConnection(){this.socket&&(this.socket.complete(),this.socket=null)}subscribeToMessages(){var U;null===(U=this.socket)||void 0===U||U.pipe((0,u.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(U){this.logger.error(U),this.clWSMessages.error(U),this.eclWSMessages.error(U),this.lndWSMessages.error(U),this.reconnectOnError()}ngOnDestroy(){this.closeConnection(),this.clWSMessages.next(null),this.clWSMessages.complete(),this.eclWSMessages.next(null),this.eclWSMessages.complete(),this.lndWSMessages.next(null),this.lndWSMessages.complete()}}return w.\u0275fac=function(U){return new(U||w)(M.LFG(A.mQ),M.LFG(E.m))},w.\u0275prov=M.Yz7({token:w,factory:w.\u0275fac}),w})()},8750:(He,j,p)=>{"use strict";p.d(j,{m:()=>Yn});var e=p(9808),i=p(1402),u=p(3075),b=p(8138),a=p(9444),y=p(5e3),d=p(3270),P=p(3322),D=p(7093);p(3191);let it=(()=>{class At{}return At.\u0275fac=function(mt){return new(mt||At)},At.\u0275mod=y.oAB({type:At}),At.\u0275inj=y.cJS({imports:[[d.IR]]}),At})(),de=(()=>{class At{constructor(mt,$t){(0,e.PM)($t)&&!mt&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(mt,$t=[]){return{ngModule:At,providers:mt.serverLoaded?[{provide:d.WU,useValue:Object.assign(Object.assign({},d.g5),mt)},{provide:d.Bs,useValue:$t,multi:!0},{provide:d.wY,useValue:!0}]:[{provide:d.WU,useValue:Object.assign(Object.assign({},d.g5),mt)},{provide:d.Bs,useValue:$t,multi:!0}]}}}return At.\u0275fac=function(mt){return new(mt||At)(y.LFG(d.wY),y.LFG(y.Lbi))},At.\u0275mod=y.oAB({type:At}),At.\u0275inj=y.cJS({imports:[[D.ae,P.aT,it],D.ae,P.aT,it]}),At})();var $e=p(5113),bt=p(508),Vt=p(8966),bi=p(1079),Li=p(7544),Ji=p(7423);p(449),p(5664);let Hn=(()=>{class At{}return At.\u0275fac=function(mt){return new(mt||At)},At.\u0275mod=y.oAB({type:At}),At.\u0275inj=y.cJS({imports:[[bt.BQ,bt.si],bt.BQ]}),At})();var An=p(9224),Kn=p(7446),Cn=p(6856),wi=p(1125),Yi=p(3954),bn=p(5245),Gn=p(7531),ar=p(4623),kr=p(2181),Pr=p(6087),ia=p(5899),sa=p(773),oa=p(9814),La=p(4107),Ta=p(2638),rr=p(2368);p(1159),p(6360),p(925),p(727),p(226);let da=(()=>{class At{}return At.\u0275fac=function(mt){return new(mt||At)},At.\u0275mod=y.oAB({type:At}),At.\u0275inj=y.cJS({imports:[[e.ez,bt.BQ],bt.BQ]}),At})();var Jn=p(7261),ga=p(4847),Ma=p(5615),$n=p(2075),qn=p(3251),Hr=p(4594),br=p(7238),Fr=p(149),ha=p(6688),Aa=p(1210),Wn=p(159),je=p(8129),Mt=p(9776);let Ye=(()=>{class At extends Mt.Xj{_createContainer(){const mt=document.createElement("div");mt.classList.add("cdk-overlay-container"),document.getElementById("rtl-container").appendChild(mt),this._containerElement=mt}}return At.\u0275fac=function(){let oi;return function($t){return(oi||(oi=y.n5z(At)))($t||At)}}(),At.\u0275prov=y.Yz7({token:At,factory:At.\u0275fac}),At})();var Ot=p(5043),ri=p(7731);const Si={suppressScrollX:!1,suppressScrollY:!1};let Oi=(()=>{class At extends bt.LF{format(mt,$t){if("input"===$t){let Ai=mt.getDate().toString();return Ai=+Ai<10?"0"+Ai:Ai,Ai+"/"+ri.gg[mt.getMonth()].name.toUpperCase()+"/"+mt.getFullYear()}return ri.gg[mt.getMonth()].name.toUpperCase()+" "+mt.getFullYear()}}return At.\u0275fac=function(){let oi;return function($t){return(oi||(oi=y.n5z(At)))($t||At)}}(),At.\u0275prov=y.Yz7({token:At,factory:At.\u0275fac}),At})();const rn={parse:{dateInput:{day:"numeric",month:"short",year:"numeric"}},display:{dateInput:"input",monthYearLabel:{month:"short",year:"numeric"},dateA11yLabel:{day:"numeric",month:"short",year:"numeric"},monthYearA11yLabel:{month:"short",year:"numeric"}}};let Yn=(()=>{class At{}return At.\u0275fac=function(mt){return new(mt||At)},At.\u0275mod=y.oAB({type:At}),At.\u0275inj=y.cJS({providers:[{provide:Ot.mQ,useClass:Ot.LG},{provide:je.op,useValue:Si},{provide:Jn.Ve,useValue:{duration:2e3,verticalPosition:"bottom",panelClass:"rtl-snack-bar"}},{provide:Vt.Bq,useValue:{hasBackdrop:!0,autoFocus:!0,disableClose:!0,role:"dialog",width:"45%"}},{provide:bt._A,useClass:Oi},{provide:bt.sG,useValue:rn},{provide:Mt.Xj,useClass:Ye},e.JJ,e.rS,e.uU],imports:[[e.ez,u.u5,u.UX,a.uH,de,$e.xu,Vt.Is,Ji.ot,Hn,An.QW,Kn.p9,wi.To,Yi.N6,Cn.FA,bt.XK,bn.Ps,Gn.c,ar.ie,kr.Tx,ia.Cv,sa.Cq,oa.Fk,Fr.dp,ha.Hi,La.LD,Ta.SJ,rr.rP,ga.JX,$n.p0,Hr.g0,br.AV,Li.g,Pr.TU,Ma.T5,da,qn.Nh,Jn.ZX,bi.Bb,Aa.a4,Wn.OF,i.Bz,b.JF,je.Xd],u.u5,u.UX,a.uH,de,$e.xu,Vt.Is,Ji.ot,Hn,An.QW,Kn.p9,wi.To,Yi.N6,Cn.FA,bt.XK,bn.Ps,Gn.c,ar.ie,kr.Tx,ia.Cv,sa.Cq,oa.Fk,Fr.dp,ha.Hi,La.LD,Ta.SJ,rr.rP,ga.JX,$n.p0,Hr.g0,br.AV,Li.g,Pr.TU,Ma.T5,da,qn.Nh,Jn.ZX,bi.Bb,Aa.a4,Wn.OF,je.Xd]}),At})()},7861:(He,j,p)=>{"use strict";p.d(j,{M6:()=>M,Q2:()=>w,QO:()=>c,Tm:()=>se,Uy:()=>q,XT:()=>Q,_V:()=>me,ac:()=>P,c0:()=>r,c1:()=>A,dc:()=>_,ey:()=>ne,fk:()=>ie,jS:()=>J,jW:()=>d,kS:()=>t,lC:()=>b,qR:()=>T,qi:()=>a,tj:()=>k,ts:()=>y,tw:()=>U,uO:()=>D,vI:()=>W,x4:()=>S,yb:()=>E,zQ:()=>le});var e=p(5620),i=p(7731);(0,e.PH)(i.pg.VOID);const b=(0,e.PH)(i.pg.SET_API_URL_ECL,(0,e.Ky)()),a=(0,e.PH)(i.pg.UPDATE_API_CALL_STATUS_ROOT,(0,e.Ky)()),y=(0,e.PH)(i.pg.CLOSE_ALL_DIALOGS),d=(0,e.PH)(i.pg.OPEN_SNACK_BAR,(0,e.Ky)()),P=(0,e.PH)(i.pg.OPEN_SPINNER,(0,e.Ky)()),D=(0,e.PH)(i.pg.CLOSE_SPINNER,(0,e.Ky)()),T=(0,e.PH)(i.pg.OPEN_ALERT,(0,e.Ky)()),M=(0,e.PH)(i.pg.CLOSE_ALERT,(0,e.Ky)()),A=(0,e.PH)(i.pg.OPEN_CONFIRMATION,(0,e.Ky)()),E=(0,e.PH)(i.pg.CLOSE_CONFIRMATION,(0,e.Ky)()),k=(0,e.PH)(i.pg.SHOW_PUBKEY),w=(0,e.PH)(i.pg.FETCH_CONFIG,(0,e.Ky)()),U=((0,e.PH)(i.pg.SHOW_CONFIG,(0,e.Ky)()),(0,e.PH)(i.pg.UPDATE_SELECTED_NODE_OPTIONS)),W=(0,e.PH)(i.pg.RESET_ROOT_STORE,(0,e.Ky)()),ne=(0,e.PH)(i.pg.FETCH_RTL_CONFIG),Q=(0,e.PH)(i.pg.SET_RTL_CONFIG,(0,e.Ky)()),le=(0,e.PH)(i.pg.SAVE_SETTINGS,(0,e.Ky)()),q=(0,e.PH)(i.pg.TWO_FA_SAVE_SETTINGS,(0,e.Ky)()),ie=(0,e.PH)(i.pg.SET_SELECTED_NODE,(0,e.Ky)()),se=(0,e.PH)(i.pg.UPDATE_ROOT_NODE_SETTINGS,(0,e.Ky)()),J=(0,e.PH)(i.pg.UPDATE_SERVICE_SETTINGS,(0,e.Ky)()),me=(0,e.PH)(i.pg.SET_NODE_DATA,(0,e.Ky)()),t=((0,e.PH)(i.pg.SAVE_SSO,(0,e.Ky)()),(0,e.PH)(i.pg.LOGOUT)),r=(0,e.PH)(i.pg.RESET_PASSWORD,(0,e.Ky)()),c=((0,e.PH)(i.pg.RESET_PASSWORD_RES,(0,e.Ky)()),(0,e.PH)(i.pg.IS_AUTHORIZED,(0,e.Ky)())),S=((0,e.PH)(i.pg.IS_AUTHORIZED_RES,(0,e.Ky)()),(0,e.PH)(i.pg.LOGIN,(0,e.Ky)())),_=((0,e.PH)(i.pg.VERIFY_TWO_FA,(0,e.Ky)()),(0,e.PH)(i.pg.FETCH_FILE,(0,e.Ky)()));(0,e.PH)(i.pg.SHOW_FILE,(0,e.Ky)())},3093:(He,j,p)=>{"use strict";p.d(j,{V:()=>mn});var e=p(6642),i=p(7579),u=p(9646),b=p(8306),a=p(4128),y=p(4004),d=p(5698),P=p(1365),D=p(5577),T=p(262),M=p(2722),A=p(2340),E=p(7731),k=p(8966),w=p(5e3),z=p(7093),U=p(773);let W=(()=>{class Yt{constructor(Je,Nt){this.dialogRef=Je,this.data=Nt}}return Yt.\u0275fac=function(Je){return new(Je||Yt)(w.Y36(k.so),w.Y36(k.WI))},Yt.\u0275cmp=w.Xpm({type:Yt,selectors:[["rtl-spinner-dialog"]],decls:5,vars:1,consts:[[1,"spinner-container"],["fxLayout","column","fxLayoutAlign","center center",1,"spinner-circle"]],template:function(Je,Nt){1&Je&&(w.TgZ(0,"div",0)(1,"div",1),w._UZ(2,"mat-spinner"),w.TgZ(3,"h1"),w._uU(4),w.qZA()()()),2&Je&&(w.xp6(4),w.Oqu(Nt.data.titleMessage))},directives:[z.xw,z.Wh,U.Ou],styles:[".spinner-container[_ngcontent-%COMP%]{position:absolute;left:40%;top:35%}"]}),Yt})();var ne=p(5043),Q=p(7261),le=p(62),q=p(9808),ie=p(3322),se=p(159),J=p(9224),me=p(7423),x=p(8129),t=p(5245),r=p(3390),h=p(6895),c=p(4834);const C=["scrollContainer"];function S(Yt,Mi){if(1&Yt&&w._UZ(0,"qr-code",15),2&Yt){const Je=w.oxw();w.Q6J("value",Je.showQRField)("size",200)("errorCorrectionLevel","L")}}function I(Yt,Mi){1&Yt&&w.GkF(0)}const _=function(Yt){return{"h-40":Yt}};function n(Yt,Mi){if(1&Yt&&(w.ynx(0),w.TgZ(1,"mat-card-content",16,17),w.YNc(3,I,1,0,"ng-container",18),w.qZA(),w.BQk()),2&Yt){const Je=w.oxw(),Nt=w.MAs(20);w.xp6(1),w.Q6J("ngClass",w.VKq(2,_,Je.data.scrollable)),w.xp6(2),w.Q6J("ngTemplateOutlet",Nt)}}function g(Yt,Mi){1&Yt&&w.GkF(0)}function V(Yt,Mi){if(1&Yt&&(w.ynx(0),w.TgZ(1,"mat-card-content",19),w.YNc(2,g,1,0,"ng-container",18),w.qZA(),w.BQk()),2&Yt){w.oxw();const Je=w.MAs(20);w.xp6(2),w.Q6J("ngTemplateOutlet",Je)}}function R(Yt,Mi){1&Yt&&(w.TgZ(0,"mat-icon",23),w._uU(1,"arrow_downward"),w.qZA())}function H(Yt,Mi){1&Yt&&(w.TgZ(0,"mat-icon",23),w._uU(1,"arrow_upward"),w.qZA())}function $(Yt,Mi){if(1&Yt){const Je=w.EpF();w.TgZ(0,"div",20)(1,"button",21),w.NdJ("click",function(){return w.CHM(Je),w.oxw().onScroll()}),w.YNc(2,R,2,0,"mat-icon",22),w.YNc(3,H,2,0,"mat-icon",22),w.qZA()()}if(2&Yt){const Je=w.oxw();w.xp6(2),w.Q6J("ngIf","DOWN"===Je.scrollDirection),w.xp6(1),w.Q6J("ngIf","UP"===Je.scrollDirection)}}function fe(Yt,Mi){1&Yt&&(w.TgZ(0,"button",24),w._uU(1,"OK"),w.qZA()),2&Yt&&w.Q6J("mat-dialog-close",!1)}function ye(Yt,Mi){1&Yt&&(w.TgZ(0,"button",25),w._uU(1,"Close"),w.qZA()),2&Yt&&w.Q6J("mat-dialog-close",!1)}function ke(Yt,Mi){if(1&Yt){const Je=w.EpF();w.TgZ(0,"button",26),w.NdJ("copied",function(Kt){return w.CHM(Je),w.oxw().onCopyField(Kt)}),w._uU(1),w.qZA()}if(2&Yt){const Je=w.oxw();w.Q6J("payload",Je.showCopyField),w.xp6(1),w.hij("Copy ",Je.showCopyName,"")}}function Ee(Yt,Mi){1&Yt&&(w.TgZ(0,"button",25),w._uU(1,"Close"),w.qZA()),2&Yt&&w.Q6J("mat-dialog-close",!1)}function te(Yt,Mi){if(1&Yt){const Je=w.EpF();w.TgZ(0,"button",26),w.NdJ("copied",function(Kt){return w.CHM(Je),w.oxw().onCopyField(Kt)}),w._uU(1),w.qZA()}if(2&Yt){const Je=w.oxw();w.Q6J("payload",Je.showQRField),w.xp6(1),w.hij("Copy ",Je.showQRName,"")}}function ze(Yt,Mi){if(1&Yt&&w._UZ(0,"qr-code",15),2&Yt){const Je=w.oxw(2);w.Q6J("value",Je.showQRField)("size",200)("errorCorrectionLevel","L")}}function be(Yt,Mi){if(1&Yt&&(w.TgZ(0,"p",32),w._uU(1),w.qZA()),2&Yt){const Je=w.oxw(2);w.xp6(1),w.Oqu(Je.data.titleMessage)}}function Z(Yt,Mi){1&Yt&&w._UZ(0,"span",46),2&Yt&&w.Q6J("innerHTML",Mi.$implicit,w.oJD)}function Y(Yt,Mi){if(1&Yt&&(w.ynx(0),w.YNc(1,Z,1,1,"span",45),w.BQk()),2&Yt){const Je=w.oxw(2).$implicit;w.xp6(1),w.Q6J("ngForOf",Je.value)}}function ot(Yt,Mi){if(1&Yt&&(w.ynx(0),w._uU(1),w.ALo(2,"date"),w.BQk()),2&Yt){const Je=w.oxw(2).$implicit;w.xp6(1),w.Oqu(w.xi3(2,1,1e3*Je.value,"dd/MMM/y HH:mm"))}}function Ie(Yt,Mi){if(1&Yt&&(w.ynx(0),w._uU(1),w.ALo(2,"number"),w.BQk()),2&Yt){const Je=w.oxw(2).$implicit;w.xp6(1),w.Oqu(w.xi3(2,1,Je.value,Je.digitsInfo?Je.digitsInfo:"1.0-3"))}}function Ae(Yt,Mi){if(1&Yt&&(w.ynx(0),w._uU(1),w.BQk()),2&Yt){const Je=w.oxw(2).$implicit;w.xp6(1),w.Oqu(Je.value?"True":"False")}}function ce(Yt,Mi){1&Yt&&(w.TgZ(0,"mat-icon",51),w._uU(1,"info"),w.qZA())}const Te=function(Yt){return{"failed-status":Yt}};function xe(Yt,Mi){if(1&Yt&&(w.TgZ(0,"p",49),w._uU(1),w.YNc(2,ce,2,0,"mat-icon",50),w.qZA()),2&Yt){const Je=w.oxw(3).$implicit,Nt=w.oxw(4);w.Q6J("ngClass",w.VKq(3,Te,Je.value===Nt.LoopStateEnum.FAILED)),w.xp6(1),w.hij(" ",Je.value," "),w.xp6(1),w.Q6J("ngIf",Je.value===Nt.LoopStateEnum.FAILED)}}function G(Yt,Mi){if(1&Yt&&w._uU(0),2&Yt){const Je=w.oxw(3).$implicit;w.Oqu(Je.value)}}function ee(Yt,Mi){if(1&Yt&&(w.ynx(0),w.YNc(1,xe,3,5,"p",47),w.YNc(2,G,1,1,"ng-template",null,48,w.W1O),w.BQk()),2&Yt){const Je=w.MAs(3),Nt=w.oxw(2).$implicit,Kt=w.oxw(4);w.xp6(1),w.Q6J("ngIf","SWAP"===Kt.data.openedBy&&"state"===Nt.key)("ngIfElse",Je)}}function ue(Yt,Mi){if(1&Yt&&(w.TgZ(0,"span")(1,"span",42),w.YNc(2,Y,2,1,"ng-container",43),w.YNc(3,ot,3,4,"ng-container",43),w.YNc(4,Ie,3,4,"ng-container",43),w.YNc(5,Ae,2,1,"ng-container",43),w.YNc(6,ee,4,2,"ng-container",44),w.qZA()()),2&Yt){const Je=w.oxw().$implicit,Nt=w.oxw(4);w.xp6(1),w.Q6J("ngSwitch",Je.type),w.xp6(1),w.Q6J("ngSwitchCase",Nt.dataTypeEnum.ARRAY),w.xp6(1),w.Q6J("ngSwitchCase",Nt.dataTypeEnum.DATE_TIME),w.xp6(1),w.Q6J("ngSwitchCase",Nt.dataTypeEnum.NUMBER),w.xp6(1),w.Q6J("ngSwitchCase",Nt.dataTypeEnum.BOOLEAN)}}function ve(Yt,Mi){1&Yt&&(w.TgZ(0,"span",52),w._uU(1,"\xa0"),w.qZA())}function Le(Yt,Mi){if(1&Yt&&(w.TgZ(0,"div",37)(1,"h4",38),w._uU(2),w.qZA(),w.YNc(3,ue,7,5,"span",39),w.YNc(4,ve,2,0,"ng-template",null,40,w.W1O),w._UZ(6,"mat-divider",41),w.qZA()),2&Yt){const Je=Mi.$implicit,Nt=w.MAs(5);w.s9C("fxFlex.gt-md",Je.width),w.xp6(2),w.Oqu(Je.title),w.xp6(1),w.Q6J("ngIf",Je&&(!!Je.value||0===Je.value))("ngIfElse",Nt)}}function lt(Yt,Mi){if(1&Yt&&(w.TgZ(0,"div")(1,"div",35),w.YNc(2,Le,7,4,"div",36),w.qZA()()),2&Yt){const Je=Mi.$implicit;w.xp6(2),w.Q6J("ngForOf",Je)}}function ht(Yt,Mi){if(1&Yt&&(w.TgZ(0,"div",33),w.YNc(1,lt,3,1,"div",34),w.qZA()),2&Yt){const Je=w.oxw(2);w.xp6(1),w.Q6J("ngForOf",Je.messageObjs)}}const Tt=function(Yt){return{"display-none":Yt}};function hi(Yt,Mi){if(1&Yt&&(w.TgZ(0,"div",27)(1,"div",28),w.YNc(2,ze,1,3,"qr-code",2),w.qZA(),w.TgZ(3,"div",29),w.YNc(4,be,2,1,"p",30),w.YNc(5,ht,2,1,"div",31),w.qZA()()),2&Yt){const Je=w.oxw();w.xp6(1),w.Q6J("ngClass",w.VKq(4,Tt,""===Je.showQRField||Je.screenSize!==Je.screenSizeEnum.XS&&Je.screenSize!==Je.screenSizeEnum.SM)),w.xp6(1),w.Q6J("ngIf",""!==Je.showQRField),w.xp6(2),w.Q6J("ngIf",Je.data.titleMessage),w.xp6(1),w.Q6J("ngIf",(null==Je.messageObjs?null:Je.messageObjs.length)>0)}}let jt=(()=>{class Yt{constructor(Je,Nt,Kt,pi,Ri,ki){this.dialogRef=Je,this.data=Nt,this.logger=Kt,this.snackBar=pi,this.commonService=Ri,this.renderer=ki,this.LoopStateEnum=E.Fq,this.showQRField="",this.showQRName="",this.showCopyName="",this.showCopyField="",this.errorMessage="",this.messageObjs=[],this.alertTypeEnum=E.n_,this.dataTypeEnum=E.Gi,this.screenSize="",this.screenSizeEnum=E.cu,this.scrollDirection="DOWN",this.shouldScroll=!0}set container(Je){Je&&(this.scrollContainer=Je,this.scrollContainer&&this.scrollContainer.nativeElement&&(this.unlistenEnd=this.renderer.listen(this.scrollContainer.nativeElement,"ps-y-reach-end",Nt=>{this.scrollDirection="UP"}),this.unlistenStart=this.renderer.listen(this.scrollContainer.nativeElement,"ps-y-reach-start",Nt=>{this.scrollDirection="DOWN"})))}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.messageObjs=this.data.message||[],this.showQRField=this.data.showQRField?this.data.showQRField:"",this.showQRName=this.data.showQRName?this.data.showQRName:"",this.showCopyName=this.data.showCopyName?this.data.showCopyName:"",this.showCopyField=this.data.showCopyField?this.data.showCopyField:"",this.data.type===E.n_.ERROR&&!this.data.message&&!this.data.titleMessage&&this.messageObjs.length<=0&&(this.data.titleMessage="Please Check Server Connection"),this.logger.info(this.messageObjs)}ngAfterViewChecked(){setTimeout(()=>{this.shouldScroll=this.scrollContainer&&this.scrollContainer.nativeElement&&this.scrollContainer.nativeElement.classList.value.includes("ps--active-y")},500)}onScroll(){this.scrollContainer.nativeElement.scrollTop="DOWN"===this.scrollDirection?this.scrollContainer.nativeElement.scrollTop+62.6:this.scrollContainer.nativeElement.scrollTop-62.6}onCopyField(Je){this.snackBar.open((this.showQRName?this.showQRName:this.showCopyName)+" copied."),this.logger.info("Copied Text: "+Je)}onClose(){this.dialogRef.close(!1)}ngOnDestroy(){this.unlistenStart&&this.unlistenStart(),this.unlistenEnd&&this.unlistenEnd()}}return Yt.\u0275fac=function(Je){return new(Je||Yt)(w.Y36(k.so),w.Y36(k.WI),w.Y36(ne.mQ),w.Y36(Q.ux),w.Y36(le.v),w.Y36(w.Qsj))},Yt.\u0275cmp=w.Xpm({type:Yt,selectors:[["rtl-alert-message"]],viewQuery:function(Je,Nt){if(1&Je&&w.Gf(C,5),2&Je){let Kt;w.iGM(Kt=w.CRH())&&(Nt.container=Kt.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(Je,Nt){1&Je&&(w.TgZ(0,"div",0)(1,"div",1),w.YNc(2,S,1,3,"qr-code",2),w.qZA(),w.TgZ(3,"div",3)(4,"mat-card-header",4)(5,"div",5)(6,"span",6),w._uU(7),w.qZA()(),w.TgZ(8,"button",7),w.NdJ("click",function(){return Nt.onClose()}),w._uU(9,"X"),w.qZA()(),w.YNc(10,n,4,4,"ng-container",8),w.YNc(11,V,3,1,"ng-container",8),w.YNc(12,$,4,2,"div",9),w.TgZ(13,"div",10),w.YNc(14,fe,2,1,"button",11),w.YNc(15,ye,2,1,"button",12),w.YNc(16,ke,2,2,"button",13),w.YNc(17,Ee,2,1,"button",12),w.YNc(18,te,2,2,"button",13),w.qZA()()(),w.YNc(19,hi,6,6,"ng-template",null,14,w.W1O)),2&Je&&(w.xp6(1),w.Q6J("ngClass",w.VKq(12,Tt,""===Nt.showQRField||Nt.screenSize===Nt.screenSizeEnum.XS||Nt.screenSize===Nt.screenSizeEnum.SM)),w.xp6(1),w.Q6J("ngIf",""!==Nt.showQRField),w.xp6(1),w.Q6J("fxFlex",""===Nt.showQRField||Nt.screenSize===Nt.screenSizeEnum.XS||Nt.screenSize===Nt.screenSizeEnum.SM?"100":"70"),w.xp6(4),w.Oqu(Nt.data.alertTitle||Nt.alertTypeEnum[Nt.data.type]),w.xp6(3),w.Q6J("ngIf",Nt.data.scrollable),w.xp6(1),w.Q6J("ngIf",!Nt.data.scrollable),w.xp6(1),w.Q6J("ngIf",Nt.data.scrollable&&Nt.shouldScroll),w.xp6(2),w.Q6J("ngIf",(!Nt.showQRField||""===Nt.showQRField)&&""===Nt.showCopyName),w.xp6(1),w.Q6J("ngIf",""!==Nt.showCopyName),w.xp6(1),w.Q6J("ngIf",""!==Nt.showCopyName),w.xp6(1),w.Q6J("ngIf",""!==Nt.showQRField),w.xp6(1),w.Q6J("ngIf",""!==Nt.showQRField))},directives:[z.xw,z.Wh,z.yH,q.mk,ie.oO,q.O5,se.uU,J.dk,me.lW,J.dn,x.$V,q.tP,t.Hw,r.h,k.ZT,h.y,q.sg,q.RF,q.n9,q.ED,c.d],pipes:[q.uU,q.JJ],styles:[".display-block[_ngcontent-%COMP%]{display:block}"]}),Yt})();var Gt=p(801),di=p(7861),vt=p(5620),kt=p(3075),gt=p(9444),Qe=p(7322),_t=p(7531),ei=p(6534);function Zt(Yt,Mi){if(1&Yt&&(w.TgZ(0,"div",18),w._UZ(1,"fa-icon",19),w.TgZ(2,"span"),w._uU(3),w.qZA()()),2&Yt){const Je=w.oxw();w.xp6(1),w.Q6J("icon",Je.faExclamationTriangle),w.xp6(2),w.Oqu(Je.warningMessage)}}function Pe(Yt,Mi){if(1&Yt&&(w.TgZ(0,"div",20),w._UZ(1,"fa-icon",19),w.TgZ(2,"span"),w._uU(3),w.qZA()()),2&Yt){const Je=w.oxw();w.xp6(1),w.Q6J("icon",Je.faInfoCircle),w.xp6(2),w.Oqu(Je.informationMessage)}}function De(Yt,Mi){if(1&Yt&&(w.TgZ(0,"p",21),w._uU(1),w.qZA()),2&Yt){const Je=w.oxw();w.xp6(1),w.Oqu(Je.data.titleMessage)}}function oe(Yt,Mi){1&Yt&&w._UZ(0,"div",36),2&Yt&&w.Q6J("innerHTML",Mi.$implicit,w.oJD)}function Me(Yt,Mi){if(1&Yt&&(w.ynx(0,34),w.YNc(1,oe,1,1,"div",35),w.BQk()),2&Yt){const Je=w.oxw(2).$implicit;w.xp6(1),w.Q6J("ngForOf",Je.value)}}function ut(Yt,Mi){if(1&Yt&&(w.ynx(0),w._uU(1),w.ALo(2,"date"),w.BQk()),2&Yt){const Je=w.oxw(2).$implicit;w.xp6(1),w.Oqu(w.xi3(2,1,1e3*Je.value,"dd/MMM/y HH:mm"))}}function ft(Yt,Mi){if(1&Yt&&(w.ynx(0),w._uU(1),w.ALo(2,"number"),w.BQk()),2&Yt){const Je=w.oxw(2).$implicit;w.xp6(1),w.Oqu(w.xi3(2,1,Je.value,"1.0-3"))}}function Rt(Yt,Mi){if(1&Yt&&(w.ynx(0),w._uU(1),w.BQk()),2&Yt){const Je=w.oxw(2).$implicit;w.xp6(1),w.Oqu(!0===Je.value?"True":"False")}}function et(Yt,Mi){if(1&Yt&&(w.ynx(0),w._uU(1),w.BQk()),2&Yt){const Je=w.oxw(2).$implicit;w.xp6(1),w.Oqu(Je.value)}}function Re(Yt,Mi){if(1&Yt&&(w.TgZ(0,"span")(1,"span",30),w.YNc(2,Me,2,1,"ng-container",31),w.YNc(3,ut,3,4,"ng-container",32),w.YNc(4,ft,3,4,"ng-container",32),w.YNc(5,Rt,2,1,"ng-container",32),w.YNc(6,et,2,1,"ng-container",33),w.qZA()()),2&Yt){const Je=w.oxw().$implicit,Nt=w.oxw(3);w.xp6(1),w.Q6J("ngSwitch",Je.type),w.xp6(1),w.Q6J("ngSwitchCase",Nt.dataTypeEnum.ARRAY),w.xp6(1),w.Q6J("ngSwitchCase",Nt.dataTypeEnum.DATE_TIME),w.xp6(1),w.Q6J("ngSwitchCase",Nt.dataTypeEnum.NUMBER),w.xp6(1),w.Q6J("ngSwitchCase",Nt.dataTypeEnum.BOOLEAN)}}function qe(Yt,Mi){1&Yt&&(w.TgZ(0,"span",37),w._uU(1,"\xa0"),w.qZA())}function Ze(Yt,Mi){if(1&Yt&&(w.TgZ(0,"div",25)(1,"h4",26),w._uU(2),w.qZA(),w.YNc(3,Re,7,5,"span",27),w.YNc(4,qe,2,0,"ng-template",null,28,w.W1O),w._UZ(6,"mat-divider",29),w.qZA()),2&Yt){const Je=Mi.$implicit,Nt=w.MAs(5);w.s9C("fxFlex.gt-md",Je.width),w.xp6(2),w.Oqu(Je.title),w.xp6(1),w.Q6J("ngIf",Je&&(!!Je.value||0===Je.value))("ngIfElse",Nt)}}function we(Yt,Mi){if(1&Yt&&(w.TgZ(0,"div")(1,"div",23),w.YNc(2,Ze,7,4,"div",24),w.qZA()()),2&Yt){const Je=Mi.$implicit;w.xp6(2),w.Q6J("ngForOf",Je)}}function Fe(Yt,Mi){if(1&Yt&&(w.TgZ(0,"div"),w.YNc(1,we,3,1,"div",22),w.qZA()),2&Yt){const Je=w.oxw();w.xp6(1),w.Q6J("ngForOf",Je.messageObjs)}}function rt(Yt,Mi){if(1&Yt&&(w.TgZ(0,"p",21),w._uU(1),w.qZA()),2&Yt){const Je=w.oxw(2);w.xp6(1),w.Oqu(Je.data.titleMessage)}}function at(Yt,Mi){if(1&Yt&&(w.TgZ(0,"mat-error"),w._uU(1),w.qZA()),2&Yt){const Je=w.oxw(2).$implicit;w.xp6(1),w.hij("",Je.placeholder," is required.")}}function yt(Yt,Mi){if(1&Yt){const Je=w.EpF();w.TgZ(0,"mat-form-field",41)(1,"input",42),w.NdJ("ngModelChange",function(Kt){return w.CHM(Je),w.oxw().$implicit.inputValue=Kt}),w.ALo(2,"lowercase"),w.qZA(),w.YNc(3,at,2,1,"mat-error",11),w.TgZ(4,"mat-hint"),w._uU(5),w.qZA()()}if(2&Yt){const Je=w.oxw(),Nt=Je.$implicit,Kt=Je.index;w.Q6J("fxFlex",Nt.width),w.xp6(1),w.MGl("name","input",Kt,""),w.Q6J("autoFocus",0===Kt)("placeholder",Nt.placeholder)("min",Nt.min)("step",Nt.step)("type",w.lcZ(2,11,Nt.inputType))("ngModel",Nt.inputValue)("tabindex",Kt+1),w.xp6(2),w.Q6J("ngIf",!Nt.inputValue),w.xp6(2),w.Oqu(Nt.hintFunction?Nt.hintFunction(Nt.inputValue):Nt.hintText)}}function mi(Yt,Mi){if(1&Yt&&(w.ynx(0),w.YNc(1,yt,6,13,"mat-form-field",40),w.BQk()),2&Yt){const Je=Mi.$implicit,Nt=w.oxw(2);w.xp6(1),w.Q6J("ngIf",!Je.advancedField||Nt.showAdvanced)}}function Xt(Yt,Mi){if(1&Yt&&(w.TgZ(0,"div",38),w.YNc(1,rt,2,1,"p",10),w.TgZ(2,"div",39),w.YNc(3,mi,2,1,"ng-container",22),w.qZA()()),2&Yt){const Je=w.oxw();w.xp6(1),w.Q6J("ngIf",Je.data.titleMessage),w.xp6(2),w.Q6J("ngForOf",Je.getInputs)}}function Jt(Yt,Mi){1&Yt&&(w.TgZ(0,"p"),w._uU(1,"Show Advanced"),w.qZA())}function qi(Yt,Mi){1&Yt&&(w.TgZ(0,"p"),w._uU(1,"Hide Advanced"),w.qZA())}function ui(Yt,Mi){if(1&Yt){const Je=w.EpF();w.TgZ(0,"button",43),w.NdJ("click",function(){return w.CHM(Je),w.oxw().onShowAdvanced()}),w.YNc(1,Jt,2,0,"p",27),w.YNc(2,qi,2,0,"ng-template",null,44,w.W1O),w.qZA()}if(2&Yt){const Je=w.MAs(3),Nt=w.oxw();w.xp6(1),w.Q6J("ngIf",!Nt.showAdvanced)("ngIfElse",Je)}}function si(Yt,Mi){if(1&Yt){const Je=w.EpF();w.TgZ(0,"button",45),w.NdJ("click",function(){w.CHM(Je);const Kt=w.oxw();return Kt.onClose(Kt.getInputs)}),w._uU(1),w.qZA()}if(2&Yt){const Je=w.oxw();w.xp6(1),w.Oqu(Je.yesBtnText)}}function en(Yt,Mi){if(1&Yt){const Je=w.EpF();w.TgZ(0,"button",46),w.NdJ("click",function(){return w.CHM(Je),w.oxw().onClose(!0)}),w._uU(1),w.qZA()}if(2&Yt){const Je=w.oxw();w.xp6(1),w.Oqu(Je.yesBtnText)}}let Ui=(()=>{class Yt{constructor(Je,Nt,Kt,pi){this.dialogRef=Je,this.data=Nt,this.logger=Kt,this.store=pi,this.faInfoCircle=Gt.sqG,this.faExclamationTriangle=Gt.eHv,this.informationMessage="",this.warningMessage="",this.noBtnText="No",this.yesBtnText="Yes",this.messageObjs=[],this.flgShowInput=!1,this.hasAdvanced=!1,this.alertTypeEnum=E.n_,this.dataTypeEnum=E.Gi,this.getInputs=[{placeholder:"",inputType:"text",inputValue:"",hintText:"",hintFunction:null,advancedField:!1}],this.showAdvanced=!1}ngOnInit(){this.informationMessage=this.data.informationMessage||"",this.warningMessage=this.data.warningMessage||"",this.flgShowInput=!!this.data.flgShowInput,this.getInputs=this.data.getInputs||[],this.noBtnText=this.data.noBtnText?this.data.noBtnText:"No",this.yesBtnText=this.data.yesBtnText?this.data.yesBtnText:"Yes",this.hasAdvanced=!!this.data.hasAdvanced&&this.data.hasAdvanced,this.messageObjs=this.data.message,this.data.type===E.n_.ERROR&&!this.data.message&&!this.data.titleMessage&&this.messageObjs.length<=0&&(this.data.titleMessage="Please Check Server Connection")}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onClose(Je){if(Je&&this.getInputs&&this.getInputs.some(Nt=>void 0===Nt.inputValue))return!0;!this.showAdvanced&&Je.length&&(Je=null==Je?void 0:Je.reduce((Nt,Kt)=>(Kt.advancedField||Nt.push(Kt),Nt),[])),this.store.dispatch((0,di.yb)({payload:Je}))}}return Yt.\u0275fac=function(Je){return new(Je||Yt)(w.Y36(k.so),w.Y36(k.WI),w.Y36(ne.mQ),w.Y36(vt.yh))},Yt.\u0275cmp=w.Xpm({type:Yt,selectors:[["rtl-confirmation-message"]],decls:21,vars:10,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],["fxFlex","100","class","alert alert-warn",4,"ngIf"],["fxFlex","100","class","alert alert-info",4,"ngIf"],["fxLayoutAlign","start center","class","pb-1",4,"ngIf"],[4,"ngIf"],["fxLayout","column","class","bordered-box my-2 p-2",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center"],["mat-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],["mat-button","","color","primary","type","button","class","mr-1","tabindex","2",3,"click",4,"ngIf"],["autoFocus","","mat-button","","color","primary","type","submit","tabindex","3","default","",3,"click",4,"ngIf"],["autoFocus","","mat-button","","color","primary","type","submit","tabindex","4","default","",3,"click",4,"ngIf"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["fxFlex","100",1,"alert","alert-info"],["fxLayoutAlign","start center",1,"pb-1"],[4,"ngFor","ngForOf"],["fxLayout","row wrap","fxLayoutAlign","start center","fxLayoutAlign.gt-md","space-between start"],["fxLayout","column","fxFlex","100",3,"fxFlex.gt-md",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100",3,"fxFlex.gt-md"],["fxLayoutAlign","start",1,"font-bold-500"],[4,"ngIf","ngIfElse"],["emptyField",""],[1,"w-100","my-1"],[1,"foreground-secondary-text",3,"ngSwitch"],["fxLayout","row wrap","fxLayoutAlign","space-between stretch",4,"ngSwitchCase"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["fxLayout","row wrap","fxLayoutAlign","space-between stretch"],[3,"innerHTML",4,"ngFor","ngForOf"],[3,"innerHTML"],["fxFlex","100",1,"foreground-secondary-text"],["fxLayout","column",1,"bordered-box","my-2","p-2"],["fxLayout","row wrap","fxLayoutAlign","space-between center"],[3,"fxFlex",4,"ngIf"],[3,"fxFlex"],["matInput","","required","",3,"autoFocus","placeholder","name","min","step","type","ngModel","tabindex","ngModelChange"],["mat-button","","color","primary","type","button","tabindex","2",1,"mr-1",3,"click"],["hideAdvancedText",""],["autoFocus","","mat-button","","color","primary","type","submit","tabindex","3","default","",3,"click"],["autoFocus","","mat-button","","color","primary","type","submit","tabindex","4","default","",3,"click"]],template:function(Je,Nt){1&Je&&(w.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),w._uU(5),w.qZA()(),w.TgZ(6,"button",5),w.NdJ("click",function(){return Nt.onClose(!1)}),w._uU(7,"X"),w.qZA()(),w.TgZ(8,"mat-card-content",6)(9,"form",7),w.YNc(10,Zt,4,2,"div",8),w.YNc(11,Pe,4,2,"div",9),w.YNc(12,De,2,1,"p",10),w.YNc(13,Fe,2,1,"div",11),w.YNc(14,Xt,4,2,"div",12),w.TgZ(15,"div",13)(16,"button",14),w.NdJ("click",function(){return Nt.onClose(!1)}),w._uU(17),w.qZA(),w.YNc(18,ui,4,2,"button",15),w.YNc(19,si,2,1,"button",16),w.YNc(20,en,2,1,"button",17),w.qZA()()()()()),2&Je&&(w.xp6(5),w.Oqu(Nt.data.alertTitle||Nt.alertTypeEnum[Nt.data.type]),w.xp6(5),w.Q6J("ngIf",Nt.warningMessage&&""!==Nt.warningMessage),w.xp6(1),w.Q6J("ngIf",Nt.informationMessage&&""!==Nt.informationMessage),w.xp6(1),w.Q6J("ngIf",Nt.data.titleMessage&&!Nt.flgShowInput),w.xp6(1),w.Q6J("ngIf",(null==Nt.messageObjs?null:Nt.messageObjs.length)>0),w.xp6(1),w.Q6J("ngIf",Nt.flgShowInput),w.xp6(3),w.Oqu(Nt.noBtnText),w.xp6(1),w.Q6J("ngIf",Nt.hasAdvanced),w.xp6(1),w.Q6J("ngIf",Nt.flgShowInput),w.xp6(1),w.Q6J("ngIf",!Nt.flgShowInput))},directives:[z.xw,z.yH,J.dk,z.Wh,me.lW,J.dn,kt._Y,kt.JL,kt.F,q.O5,gt.BN,q.sg,q.RF,q.n9,q.ED,c.d,Qe.KE,_t.Nt,ei.q,kt.Fj,kt.Q7,r.h,kt.JJ,kt.On,Qe.TO,Qe.bx],pipes:[q.uU,q.JJ,q.i8],styles:[""]}),Yt})();var Bi=p(1786),Gi=p(4107),ct=p(508);function Ft(Yt,Mi){if(1&Yt&&(w.TgZ(0,"mat-option",23),w._uU(1),w.qZA()),2&Yt){const Je=Mi.$implicit;w.Q6J("value",Je),w.xp6(1),w.hij(" ",Je.infoName," ")}}function pt(Yt,Mi){if(1&Yt){const Je=w.EpF();w.TgZ(0,"div",13)(1,"mat-form-field",20)(2,"mat-select",21),w.NdJ("valueChange",function(Kt){return w.CHM(Je),w.oxw().selInfoType=Kt}),w.YNc(3,Ft,2,2,"mat-option",22),w.qZA()()()}if(2&Yt){const Je=w.oxw();w.xp6(2),w.Q6J("value",Je.selInfoType),w.xp6(1),w.Q6J("ngForOf",Je.infoTypes)}}const it=function(Yt){return{"display-none":Yt}};let It=(()=>{class Yt{constructor(Je,Nt,Kt,pi,Ri){this.dialogRef=Je,this.data=Nt,this.logger=Kt,this.snackBar=pi,this.commonService=Ri,this.faReceipt=Gt.dLy,this.infoTypes=[{infoID:0,infoKey:"node pubkey",infoName:"Node pubkey"}],this.selInfoType=this.infoTypes[0],this.qrWidth=210,this.screenSize="",this.screenSizeEnum=E.cu}ngOnInit(){this.information=this.data.information,this.information.uris&&(1===this.information.uris.length?this.infoTypes.push({infoID:1,infoKey:"node URI",infoName:"Node URI"}):this.information.uris.length>1&&this.information.uris.forEach((Je,Nt)=>{this.infoTypes.push({infoID:Nt+1,infoKey:"node URI "+(Nt+1),infoName:"Node URI "+(Nt+1)})})),this.screenSize=this.commonService.getScreenSize()}onClose(){this.dialogRef.close(!1)}onCopyPubkey(Je){this.snackBar.open(this.selInfoType.infoName+" copied."),this.logger.info("Copied Text: "+Je)}}return Yt.\u0275fac=function(Je){return new(Je||Yt)(w.Y36(k.so),w.Y36(k.WI),w.Y36(ne.mQ),w.Y36(Q.ux),w.Y36(le.v))},Yt.\u0275cmp=w.Xpm({type:Yt,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(Je,Nt){1&Je&&(w.TgZ(0,"div",0)(1,"div",1),w._UZ(2,"qr-code",2),w.qZA(),w.TgZ(3,"div",3)(4,"mat-card-header",4)(5,"div",5),w._UZ(6,"fa-icon",6),w.TgZ(7,"span",7),w._uU(8),w.qZA()(),w.TgZ(9,"button",8),w.NdJ("click",function(){return Nt.onClose()}),w._uU(10,"X"),w.qZA()(),w.TgZ(11,"mat-card-content",9)(12,"div",10)(13,"div",11),w._UZ(14,"qr-code",2),w.qZA(),w.YNc(15,pt,4,2,"div",12),w.TgZ(16,"div",13)(17,"div",14)(18,"h4",15),w._uU(19),w.qZA(),w.TgZ(20,"span",16),w._uU(21),w.qZA()()(),w._UZ(22,"mat-divider",17),w.TgZ(23,"div",18)(24,"button",19),w.NdJ("copied",function(pi){return Nt.onCopyPubkey(pi)}),w._uU(25),w.qZA()()()()()()),2&Je&&(w.xp6(1),w.Q6J("ngClass",w.VKq(15,it,Nt.screenSize===Nt.screenSizeEnum.XS||Nt.screenSize===Nt.screenSizeEnum.SM)),w.xp6(1),w.s9C("value",0===Nt.selInfoType.infoID?Nt.information.identity_pubkey:Nt.information.uris[Nt.selInfoType.infoID-1]),w.Q6J("size",Nt.qrWidth)("errorCorrectionLevel","L"),w.xp6(4),w.Q6J("icon",Nt.faReceipt),w.xp6(2),w.Oqu(Nt.selInfoType.infoName),w.xp6(5),w.Q6J("ngClass",w.VKq(17,it,Nt.screenSize!==Nt.screenSizeEnum.XS&&Nt.screenSize!==Nt.screenSizeEnum.SM)),w.xp6(1),w.s9C("value",0===Nt.selInfoType.infoID?Nt.information.identity_pubkey:Nt.information.uris[Nt.selInfoType.infoID-1]),w.Q6J("size",Nt.qrWidth)("errorCorrectionLevel","L"),w.xp6(1),w.Q6J("ngIf",Nt.information.uris&&Nt.information.uris.length>0),w.xp6(4),w.Oqu(Nt.selInfoType.infoName),w.xp6(2),w.Oqu(0===Nt.selInfoType.infoID?Nt.information.identity_pubkey:Nt.information.uris[Nt.selInfoType.infoID-1]),w.xp6(3),w.s9C("payload",0===Nt.selInfoType.infoID?Nt.information.identity_pubkey:Nt.information.uris[Nt.selInfoType.infoID-1]),w.xp6(1),w.hij("Copy ",Nt.selInfoType.infoKey,""))},directives:[z.xw,z.Wh,z.yH,q.mk,ie.oO,se.uU,J.dk,gt.BN,me.lW,J.dn,q.O5,Qe.KE,Gi.gD,q.sg,ct.ey,c.d,r.h,h.y],styles:[""]}),Yt})();var de=p(6523),$e=p(429),bt=p(2994),Vt=p(8377),bi=p(8138),Li=p(7998),Ji=p(5986),Wi=p(8104),sn=p(1402);let mn=(()=>{class Yt{constructor(Je,Nt,Kt,pi,Ri,ki,hn,Hn,An,Kn,Cn){this.actions=Je,this.httpClient=Nt,this.store=Kt,this.logger=pi,this.wsService=Ri,this.sessionService=ki,this.commonService=hn,this.dataService=Hn,this.dialog=An,this.snackBar=Kn,this.router=Cn,this.screenSize="",this.alertWidth="55%",this.confirmWidth="70%",this.unSubs=[new i.x,new i.x],this.closeAllDialogs=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.CLOSE_ALL_DIALOGS),(0,y.U)(()=>{this.dialog.closeAll()})),{dispatch:!1}),this.openSnackBar=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.OPEN_SNACK_BAR),(0,y.U)(wi=>{"string"==typeof wi.payload?this.snackBar.open(wi.payload):this.snackBar.open(wi.payload.message,"","ERROR"===wi.payload.type?{duration:wi.payload.duration?wi.payload.duration:2e3,panelClass:"rtl-warn-snack-bar"}:"WARN"===wi.payload.type?{duration:wi.payload.duration?wi.payload.duration:2e3,panelClass:"rtl-accent-snack-bar"}:{duration:wi.payload.duration?wi.payload.duration:2e3,panelClass:"rtl-snack-bar"})})),{dispatch:!1}),this.openSpinner=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.OPEN_SPINNER),(0,y.U)(wi=>{wi.payload!==E.m6.NO_SPINNER&&(this.dialogRef=this.dialog.open(W,{data:{titleMessage:wi.payload}}))})),{dispatch:!1}),this.closeSpinner=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.CLOSE_SPINNER),(0,y.U)(wi=>{if(wi.payload!==E.m6.NO_SPINNER)try{this.dialogRef&&this.dialogRef.componentInstance&&this.dialogRef.componentInstance.data&&this.dialogRef.componentInstance.data.titleMessage&&this.dialogRef.componentInstance.data.titleMessage===wi.payload?this.dialogRef.close():this.dialog.openDialogs.forEach(Yi=>{Yi.componentInstance&&Yi.componentInstance.data&&Yi.componentInstance.data.titleMessage&&Yi.componentInstance.data.titleMessage===wi.payload&&Yi.close()})}catch(Yi){this.logger.error(Yi)}})),{dispatch:!1}),this.openAlert=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.OPEN_ALERT),(0,y.U)(wi=>{const Yi=JSON.parse(JSON.stringify(wi.payload));Yi.width||(Yi.width=this.alertWidth),this.dialogRef=this.dialog.open(wi.payload.data.component?wi.payload.data.component:jt,Yi)})),{dispatch:!1}),this.closeAlert=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.CLOSE_ALERT),(0,y.U)(wi=>(this.dialogRef&&this.dialogRef.close(),wi.payload))),{dispatch:!1}),this.openConfirm=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.OPEN_CONFIRMATION),(0,y.U)(wi=>{const Yi=JSON.parse(JSON.stringify(wi.payload));Yi.width||(Yi.width=this.confirmWidth),this.dialogRef=this.dialog.open(Ui,Yi)})),{dispatch:!1}),this.closeConfirm=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.CLOSE_CONFIRMATION),(0,d.q)(1),(0,y.U)(wi=>(this.dialogRef&&this.dialogRef.close(),this.logger.info(wi.payload),wi.payload))),{dispatch:!1}),this.showNodePubkey=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.SHOW_PUBKEY),(0,P.M)(this.store.select(Vt.R4)),(0,D.z)(([wi,Yi])=>(this.sessionService.getItem("token")&&Yi.identity_pubkey?this.store.dispatch((0,di.qR)({payload:{data:{information:Yi,component:It}}})):this.snackBar.open("Node Pubkey does not exist."),(0,u.of)({type:E.pg.VOID}))))),this.appConfigFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.FETCH_RTL_CONFIG),(0,D.z)(()=>(this.screenSize=this.commonService.getScreenSize(),this.screenSize===E.cu.XS||this.screenSize===E.cu.SM?(this.alertWidth="95%",this.confirmWidth="95%"):this.screenSize===E.cu.MD?(this.alertWidth="80%",this.confirmWidth="80%"):(this.alertWidth="45%",this.confirmWidth="50%"),this.store.dispatch((0,di.ac)({payload:E.m6.GET_RTL_CONFIG})),this.store.dispatch((0,di.qi)({payload:{action:"FetchRTLConfig",status:E.Bn.INITIATED}})),this.sessionService.getItem("token")?this.httpClient.get(A.NZ.CONF_API+"/rtlconf"):this.httpClient.get(A.NZ.CONF_API+"/rtlconfinit"))),(0,y.U)(wi=>{this.logger.info(wi),this.store.dispatch((0,di.uO)({payload:E.m6.GET_RTL_CONFIG})),this.store.dispatch((0,di.qi)({payload:{action:"FetchRTLConfig",status:E.Bn.COMPLETED}}));let Yi=null;return wi.nodes.forEach(bn=>{var Gn,ar;bn.settings.currencyUnits=[...E.uA,(null===(Gn=bn.settings)||void 0===Gn?void 0:Gn.currencyUnit)?null===(ar=bn.settings)||void 0===ar?void 0:ar.currencyUnit:""],+(bn.index||-1)===wi.selectedNodeIndex&&(Yi=bn)}),Yi?(this.store.dispatch((0,di.fk)({payload:{uiMessage:E.m6.NO_SPINNER,prevLnNodeIndex:-1,currentLnNode:Yi,isInitialSetup:!0}})),{type:E.pg.SET_RTL_CONFIG,payload:wi}):{type:E.pg.VOID}}),(0,T.K)(wi=>(this.handleErrorWithAlert("FetchRTLConfig",E.m6.GET_RTL_CONFIG,"Fetch RTL Config Failed!",A.NZ.CONF_API,wi),(0,u.of)({type:E.pg.VOID}))))),this.settingSave=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.SAVE_SETTINGS),(0,D.z)(wi=>{this.store.dispatch((0,di.ac)({payload:wi.payload.uiMessage})),this.store.dispatch((0,di.qi)({payload:{action:"UpdateSettings",status:E.Bn.INITIATED}}));let Yi=new b.y;if(wi.payload.settings&&wi.payload.defaultNodeIndex){const bn=this.httpClient.post(A.NZ.CONF_API,{updatedSettings:wi.payload.settings}),Gn=this.httpClient.post(A.NZ.CONF_API+"/updateDefaultNode",{defaultNodeIndex:wi.payload.defaultNodeIndex});Yi=(0,a.D)([bn,Gn])}else wi.payload.settings&&!wi.payload.defaultNodeIndex?Yi=this.httpClient.post(A.NZ.CONF_API,{updatedSettings:wi.payload.settings}):!wi.payload.settings&&wi.payload.defaultNodeIndex&&(Yi=this.httpClient.post(A.NZ.CONF_API+"/updateDefaultNode",{defaultNodeIndex:wi.payload.defaultNodeIndex}));return Yi.pipe((0,y.U)(bn=>(this.logger.info(bn),this.store.dispatch((0,di.qi)({payload:{action:"UpdateSettings",status:E.Bn.COMPLETED}})),this.store.dispatch((0,di.uO)({payload:wi.payload.uiMessage})),{type:E.pg.OPEN_SNACK_BAR,payload:bn.length?bn[0].message+".":bn.message+"."})),(0,T.K)(bn=>(this.handleErrorWithAlert("UpdateSettings",wi.payload.uiMessage,"Update Settings Failed!",A.NZ.CONF_API,bn.length?bn[0]:bn),(0,u.of)({type:E.pg.VOID}))))}))),this.updateServicesettings=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.UPDATE_SERVICE_SETTINGS),(0,D.z)(wi=>(this.store.dispatch((0,di.ac)({payload:wi.payload.uiMessage})),this.store.dispatch((0,di.qi)({payload:{action:"UpdateServiceSettings",status:E.Bn.INITIATED}})),this.httpClient.post(A.NZ.CONF_API+"/updateServiceSettings",wi.payload).pipe((0,y.U)(Yi=>(this.logger.info(Yi),this.store.dispatch((0,di.qi)({payload:{action:"UpdateServiceSettings",status:E.Bn.COMPLETED}})),this.store.dispatch((0,di.uO)({payload:wi.payload.uiMessage})),this.store.dispatch((0,di.Tm)({payload:wi.payload})),{type:E.pg.OPEN_SNACK_BAR,payload:Yi.message+"."})),(0,T.K)(Yi=>(this.handleErrorWithAlert("UpdateServiceSettings",wi.payload.uiMessage,"Update Service Settings Failed!",A.NZ.CONF_API,Yi),(0,u.of)({type:E.pg.VOID})))))))),this.twoFASettingSave=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.TWO_FA_SAVE_SETTINGS),(0,D.z)(wi=>(this.store.dispatch((0,di.ac)({payload:E.m6.UPDATE_UI_SETTINGS})),this.store.dispatch((0,di.qi)({payload:{action:"Update2FASettings",status:E.Bn.INITIATED}})),this.httpClient.post(A.NZ.CONF_API+"/update2FA",{secret2fa:wi.payload.secret2fa}))),(0,P.M)(this.store.select(Vt.Yj)),(0,y.U)(([wi,Yi])=>{this.logger.info(wi),Yi.enable2FA=!Yi.enable2FA,this.store.dispatch((0,di.qi)({payload:{action:"Update2FASettings",status:E.Bn.COMPLETED}})),this.store.dispatch((0,di.uO)({payload:E.m6.UPDATE_UI_SETTINGS})),this.store.dispatch((0,di.XT)({payload:Yi}))}),(0,T.K)(wi=>(this.handleErrorWithAlert("Update2FASettings",E.m6.UPDATE_UI_SETTINGS,"Update 2FA Settings Failed!",A.NZ.CONF_API,wi),(0,u.of)({type:E.pg.VOID})))),{dispatch:!1}),this.configFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.FETCH_CONFIG),(0,D.z)(wi=>(this.store.dispatch((0,di.ac)({payload:E.m6.OPEN_CONFIG_FILE})),this.store.dispatch((0,di.qi)({payload:{action:"fetchConfig",status:E.Bn.INITIATED}})),this.httpClient.get(A.NZ.CONF_API+"/config/"+wi.payload).pipe((0,y.U)(Yi=>(this.store.dispatch((0,di.qi)({payload:{action:"fetchConfig",status:E.Bn.COMPLETED}})),this.store.dispatch((0,di.uO)({payload:E.m6.OPEN_CONFIG_FILE})),{type:E.pg.SHOW_CONFIG,payload:Yi})),(0,T.K)(Yi=>(this.handleErrorWithAlert("fetchConfig",E.m6.OPEN_CONFIG_FILE,"Fetch Config Failed!",A.NZ.CONF_API+"/config/"+wi.payload,Yi),(0,u.of)({type:E.pg.VOID})))))))),this.showLnConfig=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.SHOW_CONFIG),(0,y.U)(wi=>wi.payload)),{dispatch:!1}),this.isAuthorized=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.IS_AUTHORIZED),(0,D.z)(wi=>(this.store.dispatch((0,di.qi)({payload:{action:"IsAuthorized",status:E.Bn.INITIATED}})),this.httpClient.post(A.NZ.AUTHENTICATE_API,{authenticateWith:wi.payload&&""!==wi.payload.trim()?E.OJ.PASSWORD:E.OJ.JWT,authenticationValue:wi.payload&&""!==wi.payload.trim()?wi.payload:this.sessionService.getItem("token")?this.sessionService.getItem("token"):""}).pipe((0,y.U)(Yi=>(this.logger.info(Yi),this.store.dispatch((0,di.qi)({payload:{action:"IsAuthorized",status:E.Bn.COMPLETED}})),this.logger.info("Successfully Authorized!"),{type:E.pg.IS_AUTHORIZED_RES,payload:Yi})),(0,T.K)(Yi=>(this.handleErrorWithAlert("IsAuthorized",E.m6.NO_SPINNER,"Authorization Failed",A.NZ.AUTHENTICATE_API,Yi),(0,u.of)({type:E.pg.IS_AUTHORIZED_RES,payload:"ERROR"})))))))),this.isAuthorizedRes=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.IS_AUTHORIZED_RES),(0,y.U)(wi=>wi.payload)),{dispatch:!1}),this.authLogin=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.LOGIN),(0,P.M)(this.store.select(Vt.Yj)),(0,D.z)(([wi,Yi])=>(this.store.dispatch((0,de.Ll)({payload:null})),this.store.dispatch((0,$e.xH)({payload:null})),this.store.dispatch((0,bt.Fd)({payload:null})),this.store.dispatch((0,di.qi)({payload:{action:"Login",status:E.Bn.INITIATED}})),this.httpClient.post(A.NZ.AUTHENTICATE_API,{authenticateWith:wi.payload.password?E.OJ.PASSWORD:E.OJ.JWT,authenticationValue:wi.payload.password?wi.payload.password:this.sessionService.getItem("token")?this.sessionService.getItem("token"):"",twoFAToken:wi.payload.twoFAToken?wi.payload.twoFAToken:""}).pipe((0,y.U)(bn=>{this.logger.info(bn),this.store.dispatch((0,di.qi)({payload:{action:"Login",status:E.Bn.COMPLETED}})),this.setLoggedInDetails(wi.payload.defaultPassword,bn)}),(0,T.K)(bn=>(this.logger.info("Redirecting to Login Error Page"),this.handleErrorWithoutAlert("Login",E.m6.NO_SPINNER,bn),+Yi.sso.rtlSSO?this.router.navigate(["/error"],{state:{errorCode:"406",errorMessage:bn.error&&bn.error.error?bn.error.error:"Single Sign On Failed!"}}):this.router.navigate(["./login"]),(0,u.of)({type:E.pg.VOID}))))))),{dispatch:!1}),this.tokenVerify=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.VERIFY_TWO_FA),(0,D.z)(wi=>(this.store.dispatch((0,di.ac)({payload:E.m6.VERIFY_TOKEN})),this.store.dispatch((0,di.qi)({payload:{action:"VerifyToken",status:E.Bn.INITIATED}})),this.httpClient.post(A.NZ.AUTHENTICATE_API+"/token",{authentication2FA:wi.payload.token}).pipe((0,y.U)(Yi=>{this.logger.info(Yi),this.store.dispatch((0,di.uO)({payload:E.m6.VERIFY_TOKEN})),this.store.dispatch((0,di.qi)({payload:{action:"VerifyToken",status:E.Bn.COMPLETED}})),this.logger.info("Token Successfully Verified!"),this.setLoggedInDetails(!1,wi.payload.authResponse)}),(0,T.K)(Yi=>(this.handleErrorWithAlert("VerifyToken",E.m6.VERIFY_TOKEN,"Authorization Failed!",A.NZ.AUTHENTICATE_API+"/token",Yi),(0,u.of)({type:E.pg.VOID}))))))),{dispatch:!1}),this.logOut=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.LOGOUT),(0,P.M)(this.store.select(Vt.Yj)),(0,D.z)(([wi,Yi])=>(this.store.dispatch((0,di.ac)({payload:E.m6.LOG_OUT})),this.httpClient.get(A.NZ.AUTHENTICATE_API+"/logout").pipe((0,y.U)(bn=>{this.logger.info(bn),this.store.dispatch((0,di.uO)({payload:E.m6.LOG_OUT})),+Yi.sso.rtlSSO?window.location.href=Yi.sso.logoutRedirectLink:this.router.navigate(["./login"]),this.sessionService.clearAll(),this.store.dispatch((0,di._V)({payload:{}})),this.logger.warn("LOGGED OUT")}))))),{dispatch:!1}),this.resetPassword=(0,e.GW)(()=>this.actions.pipe((0,M.R)(this.unSubs[1]),(0,e.l4)(E.pg.RESET_PASSWORD),(0,D.z)(wi=>(this.store.dispatch((0,di.qi)({payload:{action:"ResetPassword",status:E.Bn.INITIATED}})),this.httpClient.post(A.NZ.AUTHENTICATE_API+"/reset",{currPassword:wi.payload.currPassword,newPassword:wi.payload.newPassword}).pipe((0,M.R)(this.unSubs[0]),(0,y.U)(Yi=>(this.logger.info(Yi),this.store.dispatch((0,di.qi)({payload:{action:"ResetPassword",status:E.Bn.COMPLETED}})),this.sessionService.setItem("defaultPassword",!1),this.logger.info("Password Reset Successful!"),this.store.dispatch((0,di.jW)({payload:"Password Reset Successful!"})),this.SetToken(Yi.token),{type:E.pg.RESET_PASSWORD_RES,payload:Yi.token})),(0,T.K)(Yi=>(this.handleErrorWithAlert("ResetPassword",E.m6.NO_SPINNER,"Password Reset Failed!",A.NZ.AUTHENTICATE_API+"/reset",Yi),(0,u.of)({type:E.pg.VOID})))))))),this.setSelectedNode=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.SET_SELECTED_NODE),(0,D.z)(wi=>{var Yi;return this.store.dispatch((0,di.ac)({payload:wi.payload.uiMessage})),this.store.dispatch((0,di.qi)({payload:{action:"UpdateSelNode",status:E.Bn.INITIATED}})),this.httpClient.get(A.NZ.CONF_API+"/updateSelNode/"+(null===(Yi=wi.payload.currentLnNode)||void 0===Yi?void 0:Yi.index)+"/"+wi.payload.prevLnNodeIndex).pipe((0,y.U)(bn=>(this.logger.info(bn),this.store.dispatch((0,di.qi)({payload:{action:"UpdateSelNode",status:E.Bn.COMPLETED}})),this.store.dispatch((0,di.uO)({payload:wi.payload.uiMessage})),this.initializeNode(wi.payload.currentLnNode,wi.payload.isInitialSetup),{type:E.pg.VOID})),(0,T.K)(bn=>(this.handleErrorWithAlert("UpdateSelNode",wi.payload.uiMessage,"Update Selected Node Failed!",A.NZ.CONF_API+"/updateSelNode",bn),(0,u.of)({type:E.pg.VOID}))))}))),this.fetchFile=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.FETCH_FILE),(0,D.z)(wi=>{this.store.dispatch((0,di.ac)({payload:E.m6.DOWNLOAD_BACKUP_FILE})),this.store.dispatch((0,di.qi)({payload:{action:"FetchFile",status:E.Bn.INITIATED}}));const Yi="?channel="+wi.payload.channelPoint+(wi.payload.path?"&path="+wi.payload.path:"");return this.httpClient.get(A.NZ.CONF_API+"/file"+Yi).pipe((0,y.U)(bn=>(this.store.dispatch((0,di.qi)({payload:{action:"FetchFile",status:E.Bn.COMPLETED}})),this.store.dispatch((0,di.uO)({payload:E.m6.DOWNLOAD_BACKUP_FILE})),{type:E.pg.SHOW_FILE,payload:bn})),(0,T.K)(bn=>(this.handleErrorWithAlert("fetchFile",E.m6.DOWNLOAD_BACKUP_FILE,"Download Backup File Failed!",A.NZ.CONF_API+"/file"+Yi,{status:this.commonService.extractErrorNumber(bn),error:{error:this.commonService.extractErrorCode(bn)}}),(0,u.of)({type:E.pg.VOID}))))}))),this.showFile=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.SHOW_FILE),(0,y.U)(wi=>wi.payload)),{dispatch:!1})}initializeNode(Je,Nt){this.logger.info("Initializing node from RTL Effects.");const Kt=Nt?"":"HOME";let pi={};if(pi=Je.settings.fiatConversion&&Je.settings.currencyUnit?{userPersona:Je.settings.userPersona,channelBackupPath:Je.settings.channelBackupPath,selCurrencyUnit:Je.settings.currencyUnit,currencyUnits:[...E.uA,Je.settings.currencyUnit],fiatConversion:Je.settings.fiatConversion,lnImplementation:Je.lnImplementation,swapServerUrl:Je.settings.swapServerUrl,boltzServerUrl:Je.settings.boltzServerUrl,enableOffers:Je.settings.enableOffers,enablePeerswap:Je.settings.enablePeerswap}:{userPersona:Je.settings.userPersona,channelBackupPath:Je.settings.channelBackupPath,selCurrencyUnit:Je.settings.currencyUnit,currencyUnits:E.uA,fiatConversion:Je.settings.fiatConversion,lnImplementation:Je.lnImplementation,swapServerUrl:Je.settings.swapServerUrl,boltzServerUrl:Je.settings.boltzServerUrl,enableOffers:Je.settings.enableOffers,enablePeerswap:Je.settings.enablePeerswap},this.sessionService.removeItem("lndUnlocked"),this.sessionService.removeItem("clUnlocked"),this.sessionService.removeItem("eclUnlocked"),this.store.dispatch((0,di.vI)({payload:Je})),this.store.dispatch((0,de.Ll)({payload:pi})),this.store.dispatch((0,$e.xH)({payload:pi})),this.store.dispatch((0,bt.Fd)({payload:pi})),this.sessionService.getItem("token")){const Ri=Je.lnImplementation?Je.lnImplementation.toUpperCase():"LND";this.dataService.setLnImplementation(Ri);const ki=A.NZ.production&&window.location.origin?window.location.origin+"/rtl/api":A.T5;switch(this.wsService.connectWebSocket((null==ki?void 0:ki.replace(/^http/,"ws"))+A.NZ.Web_SOCKET_API,Je.index?Je.index.toString():"-1"),Ri){case"CLN":this.store.dispatch((0,$e.CN)({payload:{loadPage:Kt}}));break;case"ECL":this.store.dispatch((0,bt.iz)({payload:{loadPage:Kt}}));break;default:this.store.dispatch((0,de.sQ)({payload:{loadPage:Kt}}))}}}SetToken(Je){Je?(this.sessionService.setItem("lndUnlocked","true"),this.sessionService.setItem("token",Je)):(this.sessionService.removeItem("lndUnlocked"),this.sessionService.removeItem("token"))}setLoggedInDetails(Je,Nt){this.logger.info("Successfully Authorized!"),this.SetToken(Nt.token),this.sessionService.setItem("defaultPassword",Je),Je?(this.store.dispatch((0,di.jW)({payload:"Reset your password."})),this.router.navigate(["/settings/auth"])):this.store.dispatch((0,di.ey)())}handleErrorWithoutAlert(Je,Nt,Kt){this.logger.error("ERROR IN: "+Je+"\n"+JSON.stringify(Kt)),401===Kt.status&&"Login"!==Je?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,di.ts)()),this.store.dispatch((0,di.kS)()),this.store.dispatch((0,di.jW)({payload:"Authentication Failed. Redirecting to Login."}))):(this.store.dispatch((0,di.uO)({payload:Nt})),this.store.dispatch((0,di.qi)({payload:{action:Je,status:E.Bn.ERROR,statusCode:Kt.status?Kt.status.toString():"",message:this.commonService.extractErrorMessage(Kt)}})))}handleErrorWithAlert(Je,Nt,Kt,pi,Ri){if(this.logger.error(Ri),0===Ri.status&&Ri.statusText&&"Unknown Error"===Ri.statusText&&(Ri={status:400,error:{message:"Unknown Error / CORS Origin Not Allowed"}}),401===Ri.status&&"Login"!==Je)this.logger.info("Redirecting to Login"),this.store.dispatch((0,di.ts)()),this.store.dispatch((0,di.kS)()),this.store.dispatch((0,di.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,di.uO)({payload:Nt}));const ki=this.commonService.extractErrorMessage(Ri);this.store.dispatch((0,di.qR)({payload:{data:{type:"ERROR",alertTitle:Kt,message:{code:Ri.status?Ri.status:"Unknown Error",message:ki,URL:pi},component:Bi.H}}})),this.store.dispatch((0,di.qi)({payload:{action:Je,status:E.Bn.ERROR,statusCode:Ri.status?Ri.status.toString():"",message:ki,URL:pi}}))}}ngOnDestroy(){this.unSubs.forEach(Je=>{Je.next(null),Je.complete()})}}return Yt.\u0275fac=function(Je){return new(Je||Yt)(w.LFG(e.eX),w.LFG(bi.eN),w.LFG(vt.yh),w.LFG(ne.mQ),w.LFG(Li.d),w.LFG(Ji.m),w.LFG(le.v),w.LFG(Wi.D),w.LFG(k.uw),w.LFG(Q.ux),w.LFG(sn.F0))},Yt.\u0275prov=w.Yz7({token:Yt,factory:Yt.\u0275fac}),Yt})()},8377:(He,j,p)=>{"use strict";p.d(j,{R4:()=>y,Sr:()=>P,Yj:()=>a,dT:()=>b,gW:()=>D,ul:()=>d});var e=p(5620);const i=(0,e.ZF)("root"),b=((0,e.P1)(i,T=>T.apiURL),(0,e.P1)(i,T=>T.selNode)),a=(0,e.P1)(i,T=>T.appConfig),y=(0,e.P1)(i,T=>T.nodeData),d=(0,e.P1)(i,T=>T.apisCallStatus.Login),P=(0,e.P1)(i,T=>T.apisCallStatus.IsAuthorized),D=(0,e.P1)(i,T=>({nodeDate:T.nodeData,selNode:T.selNode}))},2340:(He,j,p)=>{"use strict";p.d(j,{NZ:()=>i,T5:()=>e,q4:()=>u});const e="./api",i={production:!0,isDebugMode:!1,AUTHENTICATE_API:e+"/authenticate",CONF_API:e+"/conf",BALANCE_API:"/balance",FEES_API:"/fees",PEERS_API:"/peers",CHANNELS_API:"/channels",CHANNELS_BACKUP_API:"/channels/backup",GETINFO_API:"/getinfo",WALLET_API:"/wallet",NETWORK_API:"/network",NEW_ADDRESS_API:"/newaddress",TRANSACTIONS_API:"/transactions",PAYMENTS_API:"/payments",INVOICES_API:"/invoices",SWITCH_API:"/switch",ON_CHAIN_API:"/onchain",MESSAGE_API:"/message",OFFERS_API:"/offers",PEERSWAP_API:"/peerswap",UTILITY_API:"/utility",LOOP_API:"/loop",BOLTZ_API:"/boltz",Web_SOCKET_API:"/ws"},u="0.13.1-beta"},5901:(He,j,p)=>{"use strict";var e=p(2313),i=p(5e3),u=p(6360),b=p(8138),a=p(5113),y=p(5620),d=p(6642),P=p(9565),D=p(7579),T=p(6451),M=p(4968),A=p(457),E=p(4986),k=p(2805);function w(_e=0,Xe=E.z){return _e<0&&(_e=0),(0,k.H)(_e,_e,Xe)}var z=p(9646),U=p(727),W=p(4482),ne=p(5403),Q=p(8737),le=p(3269),q=p(9672),se=p(9300),J=p(8505),me=p(3900),x=p(2722),t=p(8746),r=p(1884),h=p(4004);class c{}let C=(()=>{class _e{constructor(K,We){this._ngZone=We,this.timerStart$=new D.x,this.idleDetected$=new D.x,this.timeout$=new D.x,this.idleMillisec=6e5,this.idleSensitivityMillisec=1e3,this.timeout=300,this.pingMillisec=12e4,this.isTimeout=!1,this.isInactivityTimer=!1,this.isIdleDetected=!1,K&&this.setConfig(K)}startWatching(){this.activityEvents$||(this.activityEvents$=(0,T.T)((0,M.R)(window,"mousemove"),(0,M.R)(window,"resize"),(0,M.R)(document,"keydown"))),this.idle$=(0,A.D)(this.activityEvents$),this.idleSubscription&&this.idleSubscription.unsubscribe(),this.idleSubscription=this.idle$.pipe(function ie(_e,...Xe){var K,We;const Bt=null!==(K=(0,le.yG)(Xe))&&void 0!==K?K:E.z,Ce=null!==(We=Xe[0])&&void 0!==We?We:null,ge=Xe[1]||1/0;return(0,W.e)((he,Ue)=>{let nt=[],Dt=!1;const Qt=Vi=>{const{buffer:Mn,subs:zi}=Vi;zi.unsubscribe(),(0,Q.P)(nt,Vi),Ue.next(Mn),Dt&&ai()},ai=()=>{if(nt){const Vi=new U.w0;Ue.add(Vi);const zi={buffer:[],subs:Vi};nt.push(zi),(0,q.f)(Vi,Bt,()=>Qt(zi),_e)}};null!==Ce&&Ce>=0?(0,q.f)(Ue,Bt,ai,Ce,!0):Dt=!0,ai();const Di=(0,ne.x)(Ue,Vi=>{const Mn=nt.slice();for(const zi of Mn){const{buffer:un}=zi;un.push(Vi),ge<=un.length&&Qt(zi)}},()=>{for(;null==nt?void 0:nt.length;)Ue.next(nt.shift().buffer);null==Di||Di.unsubscribe(),Ue.complete(),Ue.unsubscribe()},void 0,()=>nt=null);he.subscribe(Di)})}(this.idleSensitivityMillisec),(0,se.h)(K=>!K.length&&!this.isIdleDetected&&!this.isInactivityTimer),(0,J.b)(()=>{this.isIdleDetected=!0,this.idleDetected$.next(!0)}),(0,me.w)(()=>this._ngZone.runOutsideAngular(()=>w(1e3).pipe((0,x.R)((0,T.T)(this.activityEvents$,(0,k.H)(this.idleMillisec).pipe((0,J.b)(()=>{this.isInactivityTimer=!0,this.timerStart$.next(!0)})))),(0,t.x)(()=>{this.isIdleDetected=!1,this.idleDetected$.next(!1)}))))).subscribe(),this.setupTimer(this.timeout),this.setupPing(this.pingMillisec)}stopWatching(){this.stopTimer(),this.idleSubscription&&this.idleSubscription.unsubscribe()}stopTimer(){this.isInactivityTimer=!1,this.timerStart$.next(!1)}resetTimer(){this.stopTimer(),this.isTimeout=!1}onTimerStart(){return this.timerStart$.pipe((0,r.x)(),(0,me.w)(K=>K?this.timer$:(0,z.of)(null)))}onIdleStatusChanged(){return this.idleDetected$.asObservable()}onTimeout(){return this.timeout$.pipe((0,se.h)(K=>!!K),(0,J.b)(()=>this.isTimeout=!0),(0,h.U)(()=>!0))}getConfigValue(){return{idle:this.idleMillisec/1e3,idleSensitivity:this.idleSensitivityMillisec/1e3,timeout:this.timeout,ping:this.pingMillisec/1e3}}setConfigValues(K){!this.idleSubscription||this.idleSubscription.closed?this.setConfig(K):console.error("Call stopWatching() before set config values")}setConfig(K){K.idle&&(this.idleMillisec=1e3*K.idle),K.ping&&(this.pingMillisec=1e3*K.ping),K.idleSensitivity&&(this.idleSensitivityMillisec=1e3*K.idleSensitivity),K.timeout&&(this.timeout=K.timeout)}setCustomActivityEvents(K){!this.idleSubscription||this.idleSubscription.closed?this.activityEvents$=K:console.error("Call stopWatching() before set custom activity events")}setupTimer(K){this._ngZone.runOutsideAngular(()=>{this.timer$=(0,z.of)(()=>new Date).pipe((0,h.U)(We=>We()),(0,me.w)(We=>w(1e3).pipe((0,h.U)(()=>Math.round(((new Date).valueOf()-We.valueOf())/1e3)),(0,J.b)(Bt=>{Bt>=K&&this.timeout$.next(!0)}))))})}setupPing(K){this.ping$=w(K).pipe((0,se.h)(()=>!this.isTimeout))}}return _e.\u0275fac=function(K){return new(K||_e)(i.LFG(c,8),i.LFG(i.R0b))},_e.\u0275prov=i.Yz7({token:_e,factory:_e.\u0275fac,providedIn:"root"}),_e})(),S=(()=>{class _e{static forRoot(K){return{ngModule:_e,providers:[{provide:c,useValue:K}]}}}return _e.\u0275fac=function(K){return new(K||_e)},_e.\u0275mod=i.oAB({type:_e}),_e.\u0275inj=i.cJS({imports:[[]]}),_e})();var I=p(1402),_=p(801),n=p(8377),g=p(7093),V=p(9444),R=p(9224),H=p(3251),$=p(9808);const fe=function(){return{initial:!1}};function ye(_e,Xe){if(1&_e){const K=i.EpF();i.TgZ(0,"div",10),i.NdJ("click",function(){i.CHM(K);const Bt=i.oxw();return Bt.activeLink=Bt.links[1].link}),i._uU(1),i.qZA()}if(2&_e){const K=i.oxw();i.s9C("routerLink",K.links[1].link),i.Q6J("active",K.activeLink===K.links[1].link)("state",i.DdM(4,fe)),i.xp6(1),i.Oqu(K.links[1].name)}}function ke(_e,Xe){if(1&_e){const K=i.EpF();i.TgZ(0,"div",6),i.NdJ("click",function(){i.CHM(K);const Bt=i.oxw();return Bt.activeLink=Bt.links[2].link}),i._uU(1),i.qZA()}if(2&_e){const K=i.oxw();i.s9C("routerLink",K.links[2].link),i.Q6J("active",K.activeLink===K.links[2].link),i.xp6(1),i.Oqu(K.links[2].name)}}let Ee=(()=>{class _e{constructor(K,We){this.store=K,this.router=We,this.faUserCog=_.gNZ,this.showBitcoind=!1,this.links=[{link:"app",name:"Application"},{link:"auth",name:"Authentication"},{link:"bconfig",name:"BitcoinD Config"}],this.activeLink="",this.unSubs=[new D.x,new D.x,new D.x]}ngOnInit(){const K=this.links.find(We=>this.router.url.includes(We.link));this.activeLink=K?K.link:this.links[0].link,this.router.events.pipe((0,x.R)(this.unSubs[0]),(0,se.h)(We=>We instanceof I.Av)).subscribe({next:We=>{const Bt=this.links.find(Ce=>We.urlAfterRedirects.includes(Ce.link));this.activeLink=Bt?Bt.link:this.links[0].link}}),this.store.select(n.Yj).pipe((0,x.R)(this.unSubs[1])).subscribe(We=>{this.appConfig=We}),this.store.select(n.dT).pipe((0,x.R)(this.unSubs[2])).subscribe(We=>{this.showBitcoind=!1,this.selNode=We,this.selNode.settings&&this.selNode.settings.bitcoindConfigPath&&""!==this.selNode.settings.bitcoindConfigPath.trim()&&(this.showBitcoind=!0)})}ngOnDestroy(){this.unSubs.forEach(K=>{K.next(null),K.complete()})}}return _e.\u0275fac=function(K){return new(K||_e)(i.Y36(y.yh),i.Y36(I.F0))},_e.\u0275cmp=i.Xpm({type:_e,selectors:[["rtl-settings"]],decls:14,vars:6,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","state","click",4,"ngIf"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","state","click"]],template:function(K,We){1&K&&(i.TgZ(0,"div",0),i._UZ(1,"fa-icon",1),i.TgZ(2,"span",2),i._uU(3,"Settings"),i.qZA()(),i.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"nav",5)(8,"div",6),i.NdJ("click",function(){return We.activeLink=We.links[0].link}),i._uU(9),i.qZA(),i.YNc(10,ye,2,5,"div",7),i.YNc(11,ke,2,3,"div",8),i.qZA(),i.TgZ(12,"div",9),i._UZ(13,"router-outlet"),i.qZA()()()()),2&K&&(i.xp6(1),i.Q6J("icon",We.faUserCog),i.xp6(7),i.s9C("routerLink",We.links[0].link),i.Q6J("active",We.activeLink===We.links[0].link),i.xp6(1),i.Oqu(We.links[0].name),i.xp6(1),i.Q6J("ngIf",!+We.appConfig.sso.rtlSSO),i.xp6(1),i.Q6J("ngIf",We.showBitcoind))},directives:[g.xw,g.Wh,V.BN,R.a8,R.dn,H.BU,H.Nj,I.rH,$.O5,g.yH,I.lC],styles:[""]}),_e})();var te=p(7731),ze=p(7861),be=p(5043),Z=p(8129),Y=p(3075),ot=p(7322),Ie=p(4107),Ae=p(3390),ce=p(508),Te=p(7423);function xe(_e,Xe){if(1&_e&&(i.TgZ(0,"mat-option",16),i._uU(1),i.qZA()),2&_e){const K=Xe.$implicit;i.Q6J("value",K.index),i.xp6(1),i.AsE(" ",K.lnNode," (",K.lnImplementation,") ")}}function G(_e,Xe){if(1&_e){const K=i.EpF();i.TgZ(0,"form",2,3)(2,"div",4),i._UZ(3,"fa-icon",5),i.TgZ(4,"span",6),i._uU(5,"Default Node"),i.qZA()(),i.TgZ(6,"div",7)(7,"div",8),i._UZ(8,"fa-icon",9),i.TgZ(9,"span"),i._uU(10,"The setting will apply after RTL server restarts."),i.qZA()(),i.TgZ(11,"div",10)(12,"mat-form-field",10)(13,"mat-select",11),i.NdJ("ngModelChange",function(Bt){return i.CHM(K),i.oxw().appConfig.defaultNodeIndex=Bt}),i.YNc(14,xe,2,3,"mat-option",12),i.qZA()()(),i.TgZ(15,"div",13)(16,"div",10)(17,"button",14),i.NdJ("click",function(){return i.CHM(K),i.oxw().onResetSettings()}),i._uU(18,"Reset"),i.qZA(),i.TgZ(19,"button",15),i.NdJ("click",function(){return i.CHM(K),i.oxw().onUpdateSettings()}),i._uU(20,"Update"),i.qZA()()()()()}if(2&_e){const K=i.oxw();i.xp6(3),i.Q6J("icon",K.faWindowRestore),i.xp6(5),i.Q6J("icon",K.faInfoCircle),i.xp6(5),i.Q6J("ngModel",K.appConfig.defaultNodeIndex),i.xp6(1),i.Q6J("ngForOf",K.appConfig.nodes)}}let ee=(()=>{class _e{constructor(K,We){this.logger=K,this.store=We,this.faInfoCircle=_.sqG,this.faWindowRestore=_.wyP,this.faPlus=_.r8p,this.previousDefaultNode=0,this.unSubs=[new D.x,new D.x]}ngOnInit(){this.store.select(n.Yj).pipe((0,x.R)(this.unSubs[0])).subscribe(K=>{this.appConfig=K,this.previousDefaultNode=this.appConfig.defaultNodeIndex,this.logger.info(K)})}onAddNewNode(){this.logger.warn("ADD NEW NODE")}onUpdateSettings(){this.store.dispatch((0,ze.zQ)({payload:{uiMessage:te.m6.UPDATE_DEFAULT_NODE_SETTING,defaultNodeIndex:this.appConfig.defaultNodeIndex?this.appConfig.defaultNodeIndex:this.appConfig&&this.appConfig.nodes&&this.appConfig.nodes.length&&this.appConfig.nodes.length>0&&this.appConfig.nodes[0].index?+this.appConfig.nodes[0].index:-1}}))}onResetSettings(){this.appConfig.defaultNodeIndex=this.previousDefaultNode}ngOnDestroy(){this.unSubs.forEach(K=>{K.next(),K.complete()})}}return _e.\u0275fac=function(K){return new(K||_e)(i.Y36(be.mQ),i.Y36(y.yh))},_e.\u0275cmp=i.Xpm({type:_e,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(K,We){1&K&&(i.TgZ(0,"div",0),i.YNc(1,G,21,4,"form",1),i.qZA()),2&K&&(i.xp6(1),i.Q6J("ngIf",We.appConfig.nodes&&We.appConfig.nodes.length&&We.appConfig.nodes.length>0))},directives:[g.xw,g.yH,Z.$V,$.O5,Y._Y,Y.JL,Y.F,g.Wh,V.BN,ot.KE,Ie.gD,Ae.h,Y.JJ,Y.On,$.sg,ce.ey,Te.lW],styles:[""]}),_e})();var ue=p(8012),ve=p(5698),Le=p(8966),lt=p(5768),ht=p(3093),Tt=p(7261),hi=p(5615),jt=p(7531),Gt=p(159),di=p(6895);const vt=["stepper"];function kt(_e,Xe){if(1&_e&&i._uU(0),2&_e){const K=i.oxw();i.Oqu(K.passwordFormLabel)}}function gt(_e,Xe){1&_e&&(i.TgZ(0,"mat-error"),i._uU(1,"Password is required."),i.qZA())}function Qe(_e,Xe){if(1&_e&&i._uU(0),2&_e){const K=i.oxw(2);i.Oqu(K.secretFormLabel)}}function _t(_e,Xe){if(1&_e&&i._UZ(0,"qr-code",32),2&_e){const K=i.oxw(2);i.Q6J("value",K.otpauth)("size",180)("errorCorrectionLevel","L")}}function ei(_e,Xe){1&_e&&(i.TgZ(0,"mat-error"),i._uU(1,"Secret Code is required."),i.qZA())}function Zt(_e,Xe){if(1&_e){const K=i.EpF();i.TgZ(0,"mat-step",10)(1,"form",21),i.YNc(2,Qe,1,1,"ng-template",22),i.TgZ(3,"div",23),i.YNc(4,_t,1,3,"qr-code",24),i.qZA(),i.TgZ(5,"div",25),i._UZ(6,"fa-icon",26),i.TgZ(7,"span"),i._uU(8,"You can use a compatible authentication app to get an authentication code when you log in to RTL. e.g.: Google Authenticator."),i.qZA()(),i.TgZ(9,"div",27)(10,"mat-form-field",1),i._UZ(11,"input",28),i.TgZ(12,"fa-icon",29),i.NdJ("copied",function(Bt){return i.CHM(K),i.oxw().onCopySecret(Bt)}),i.qZA(),i.YNc(13,ei,2,0,"mat-error",14),i.qZA()(),i.TgZ(14,"div",30)(15,"button",31),i._uU(16,"Next"),i.qZA()()()()}if(2&_e){const K=i.oxw();i.Q6J("stepControl",K.secretFormGroup)("editable",K.flgEditable),i.xp6(1),i.Q6J("formGroup",K.secretFormGroup),i.xp6(3),i.Q6J("ngIf",K.otpauth),i.xp6(2),i.Q6J("icon",K.faInfoCircle),i.xp6(6),i.Q6J("icon",K.faCopy)("payload",null==K.secretFormGroup||null==K.secretFormGroup.controls||null==K.secretFormGroup.controls.secret?null:K.secretFormGroup.controls.secret.value),i.xp6(1),i.Q6J("ngIf",null==K.secretFormGroup||null==K.secretFormGroup.controls||null==K.secretFormGroup.controls.secret||null==K.secretFormGroup.controls.secret.errors?null:K.secretFormGroup.controls.secret.errors.required)}}function Pe(_e,Xe){if(1&_e&&i._uU(0),2&_e){const K=i.oxw(2);i.Oqu(K.tokenFormLabel)}}function De(_e,Xe){1&_e&&(i.TgZ(0,"mat-error"),i._uU(1,"Token is required."),i.qZA())}function oe(_e,Xe){1&_e&&(i.TgZ(0,"mat-error"),i._uU(1,"Token is invalid."),i.qZA())}function Me(_e,Xe){if(1&_e){const K=i.EpF();i.TgZ(0,"div",7)(1,"div",27)(2,"mat-form-field",1),i._UZ(3,"input",36),i.YNc(4,De,2,0,"mat-error",14),i.YNc(5,oe,2,0,"mat-error",14),i.qZA()(),i.TgZ(6,"div",30)(7,"button",37),i.NdJ("click",function(){return i.CHM(K),i.oxw(2).onVerifyToken()}),i._uU(8),i.qZA()()()}if(2&_e){const K=i.oxw(2);i.xp6(4),i.Q6J("ngIf",null==K.tokenFormGroup||null==K.tokenFormGroup.controls||null==K.tokenFormGroup.controls.token||null==K.tokenFormGroup.controls.token.errors?null:K.tokenFormGroup.controls.token.errors.required),i.xp6(1),i.Q6J("ngIf",null==K.tokenFormGroup||null==K.tokenFormGroup.controls||null==K.tokenFormGroup.controls.token||null==K.tokenFormGroup.controls.token.errors?null:K.tokenFormGroup.controls.token.errors.notValid),i.xp6(3),i.Oqu(null!=K.tokenFormGroup&&null!=K.tokenFormGroup.controls&&null!=K.tokenFormGroup.controls.token&&null!=K.tokenFormGroup.controls.token.errors&&K.tokenFormGroup.controls.token.errors.notValid?"Retry":"Verify")}}function ut(_e,Xe){1&_e&&(i.TgZ(0,"div")(1,"strong"),i._uU(2,"Success! You are all set."),i.qZA()())}function ft(_e,Xe){if(1&_e&&(i.TgZ(0,"mat-step",33)(1,"form",34),i.YNc(2,Pe,1,1,"ng-template",12),i.YNc(3,Me,9,3,"div",35),i.YNc(4,ut,3,0,"div",14),i.qZA()()),2&_e){const K=i.oxw();i.Q6J("stepControl",K.tokenFormGroup),i.xp6(1),i.Q6J("formGroup",K.tokenFormGroup),i.xp6(2),i.Q6J("ngIf",!K.flgValidated||!K.isTokenValid),i.xp6(1),i.Q6J("ngIf",K.flgValidated&&K.isTokenValid)}}function Rt(_e,Xe){if(1&_e&&i._uU(0),2&_e){const K=i.oxw(2);i.Oqu(K.disableFormLabel)}}function et(_e,Xe){if(1&_e){const K=i.EpF();i.TgZ(0,"div",7)(1,"div",38),i._UZ(2,"fa-icon",26),i.TgZ(3,"span"),i._uU(4,"You are about to disable two-factor authentication security from RTL. Are you sure you want to turn it off?"),i.qZA()(),i.TgZ(5,"div",30)(6,"button",37),i.NdJ("click",function(){return i.CHM(K),i.oxw(2).onVerifyToken()}),i._uU(7,"Disable"),i.qZA()()()}if(2&_e){const K=i.oxw(2);i.xp6(2),i.Q6J("icon",K.faExclamationTriangle)}}function Re(_e,Xe){1&_e&&(i.TgZ(0,"div")(1,"strong"),i._uU(2,"Two factor authentication removed from RTL."),i.qZA()())}function qe(_e,Xe){if(1&_e&&(i.TgZ(0,"mat-step",33)(1,"form",34),i.YNc(2,Rt,1,1,"ng-template",12),i.YNc(3,et,8,1,"div",35),i.YNc(4,Re,3,0,"div",14),i.qZA()()),2&_e){const K=i.oxw();i.Q6J("stepControl",K.disableFormGroup),i.xp6(1),i.Q6J("formGroup",K.disableFormGroup),i.xp6(2),i.Q6J("ngIf",!K.flgValidated||!K.isTokenValid),i.xp6(1),i.Q6J("ngIf",K.flgValidated&&K.isTokenValid)}}let Ze=(()=>{class _e{constructor(K,We,Bt,Ce,ge,he){this.dialogRef=K,this.data=We,this.store=Bt,this.formBuilder=Ce,this.rtlEffects=ge,this.snackBar=he,this.faExclamationTriangle=_.eHv,this.faCopy=_.kZ_,this.faInfoCircle=_.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:["",[Y.kI.required]],password:["",[Y.kI.required]]}),this.secretFormGroup=this.formBuilder.group({secret:[{value:"",disabled:!0},Y.kI.required]}),this.tokenFormGroup=this.formBuilder.group({token:["",Y.kI.required]}),this.disableFormGroup=this.formBuilder.group({}),this.unSubs=[new D.x,new D.x]}ngOnInit(){var K,We;this.appConfig=this.data.appConfig||null,this.showDisableStepper=!!(null===(K=this.appConfig)||void 0===K?void 0:K.enable2FA),this.secretFormGroup=this.formBuilder.group({secret:[{value:(null===(We=this.appConfig)||void 0===We?void 0:We.enable2FA)?"":this.generateSecret(),disabled:!0},Y.kI.required]})}generateSecret(){const K=lt.authenticator.generateSecret();return this.otpauth=lt.authenticator.keyuri("","Ride The Lightning (RTL)",K),K}onAuthenticate(){if(!this.passwordFormGroup.controls.password.value)return!0;this.flgValidated=!1,this.store.dispatch((0,ze.QO)({payload:ue(this.passwordFormGroup.controls.password.value).toString()})),this.rtlEffects.isAuthorizedRes.pipe((0,ve.q)(1)).subscribe(K=>{"ERROR"!==K?(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(K){this.snackBar.open("Secret code "+this.secretFormGroup.controls.secret.value+" copied.")}onVerifyToken(){var K,We;if(null===(K=this.appConfig)||void 0===K?void 0:K.enable2FA)this.store.dispatch((0,ze.Uy)({payload:{secret2fa:""}})),this.generateSecret(),this.isTokenValid=!0;else{if(!this.tokenFormGroup.controls.token.value)return!0;if(this.isTokenValid=lt.authenticator.check(this.tokenFormGroup.controls.token.value,this.secretFormGroup.controls.secret.value),!this.isTokenValid)return this.tokenFormGroup.controls.token.setErrors({notValid:!0}),!0;this.store.dispatch((0,ze.Uy)({payload:{secret2fa:this.secretFormGroup.controls.secret.value}})),this.tokenFormGroup.controls.token.setValue("")}this.flgValidated=!0,this.appConfig&&(this.appConfig.enable2FA=!(null===(We=this.appConfig)||void 0===We?void 0:We.enable2FA))}stepSelectionChanged(K){switch(K.selectedIndex){case 0:default:this.passwordFormLabel="Authenticate with your RTL password";break;case 1:case 2:this.passwordFormLabel="User authenticated successfully"}K.selectedIndex<K.previouslySelectedIndex&&0===K.selectedIndex&&this.passwordFormGroup.controls.hiddenPassword.setValue("")}ngOnDestroy(){this.unSubs.forEach(K=>{K.next(),K.complete()})}}return _e.\u0275fac=function(K){return new(K||_e)(i.Y36(Le.so),i.Y36(Le.WI),i.Y36(y.yh),i.Y36(Y.qu),i.Y36(ht.V),i.Y36(Tt.ux))},_e.\u0275cmp=i.Xpm({type:_e,selectors:[["rtl-two-factor-auth"]],viewQuery:function(K,We){if(1&K&&i.Gf(vt,5),2&K){let Bt;i.iGM(Bt=i.CRH())&&(We.stepper=Bt.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(K,We){1&K&&(i.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),i._uU(5,"Setup Two Factor Authentication"),i.qZA()(),i.TgZ(6,"button",5),i._uU(7,"X"),i.qZA()(),i.TgZ(8,"mat-card-content",6)(9,"div",7)(10,"mat-vertical-stepper",8,9),i.NdJ("selectionChange",function(Ce){return We.stepSelectionChanged(Ce)}),i.TgZ(12,"mat-step",10)(13,"form",11),i.YNc(14,kt,1,1,"ng-template",12),i.TgZ(15,"div",0)(16,"mat-form-field",1),i._UZ(17,"input",13),i.YNc(18,gt,2,0,"mat-error",14),i.qZA()(),i.TgZ(19,"div",15)(20,"button",16),i.NdJ("click",function(){return We.onAuthenticate()}),i._uU(21,"Confirm"),i.qZA()()()(),i.YNc(22,Zt,17,8,"mat-step",17),i.YNc(23,ft,5,4,"mat-step",18),i.YNc(24,qe,5,4,"mat-step",18),i.qZA(),i.TgZ(25,"div",19)(26,"button",20),i._uU(27),i.qZA()()()()()()),2&K&&(i.xp6(6),i.Q6J("mat-dialog-close",!1),i.xp6(4),i.Q6J("linear",!0),i.xp6(2),i.Q6J("stepControl",We.passwordFormGroup)("editable",We.flgEditable),i.xp6(1),i.Q6J("formGroup",We.passwordFormGroup),i.xp6(5),i.Q6J("ngIf",null==We.passwordFormGroup||null==We.passwordFormGroup.controls||null==We.passwordFormGroup.controls.password||null==We.passwordFormGroup.controls.password.errors?null:We.passwordFormGroup.controls.password.errors.required),i.xp6(4),i.Q6J("ngIf",!We.showDisableStepper),i.xp6(1),i.Q6J("ngIf",!We.showDisableStepper),i.xp6(1),i.Q6J("ngIf",We.showDisableStepper),i.xp6(2),i.Q6J("mat-dialog-close",!1),i.xp6(1),i.Oqu(We.flgValidated&&We.isTokenValid?"Close":"Cancel"))},directives:[g.xw,g.yH,R.dk,g.Wh,Te.lW,Le.ZT,R.dn,hi.Vq,hi.C0,Y._Y,Y.JL,Y.sg,hi.VY,ot.KE,jt.Nt,Y.Fj,Ae.h,Y.JJ,Y.u,Y.Q7,$.O5,ot.TO,Gt.uU,V.BN,ot.R9,di.y,hi.Ic],styles:[""]}),_e})();var we=p(5986),Fe=p(4834);const rt=["authForm"];function at(_e,Xe){1&_e&&(i.TgZ(0,"mat-error"),i._uU(1,"Current password is required."),i.qZA())}function yt(_e,Xe){if(1&_e&&(i.TgZ(0,"mat-error"),i._uU(1),i.qZA()),2&_e){const K=i.oxw(2);i.xp6(1),i.Oqu(K.errorMsg)}}function mi(_e,Xe){if(1&_e&&(i.TgZ(0,"mat-error"),i._uU(1),i.qZA()),2&_e){const K=i.oxw(2);i.xp6(1),i.Oqu(K.errorConfirmMsg)}}function Xt(_e,Xe){if(1&_e){const K=i.EpF();i.TgZ(0,"form",10,11)(2,"div",12),i._UZ(3,"fa-icon",4),i.TgZ(4,"span",5),i._uU(5,"Password"),i.qZA()(),i.TgZ(6,"mat-form-field")(7,"input",13),i.NdJ("ngModelChange",function(Bt){return i.CHM(K),i.oxw().currPassword=Bt}),i.qZA(),i.YNc(8,at,2,0,"mat-error",14),i.qZA(),i.TgZ(9,"mat-form-field")(10,"input",15),i.NdJ("ngModelChange",function(Bt){return i.CHM(K),i.oxw().newPassword=Bt}),i.qZA(),i.YNc(11,yt,2,1,"mat-error",14),i.qZA(),i.TgZ(12,"mat-form-field")(13,"input",16),i.NdJ("ngModelChange",function(Bt){return i.CHM(K),i.oxw().confirmPassword=Bt}),i.qZA(),i.YNc(14,mi,2,1,"mat-error",14),i.qZA(),i.TgZ(15,"div",17)(16,"button",18),i.NdJ("click",function(){return i.CHM(K),i.oxw().onResetPassword()}),i._uU(17,"Reset"),i.qZA(),i.TgZ(18,"button",19),i.NdJ("click",function(){return i.CHM(K),i.oxw().onChangePassword()}),i._uU(19,"Change Password"),i.qZA()(),i.TgZ(20,"div",20),i._UZ(21,"mat-divider",21),i.qZA()()}if(2&_e){const K=i.oxw();i.xp6(3),i.Q6J("icon",K.faLock),i.xp6(4),i.Q6J("ngModel",K.currPassword),i.xp6(1),i.Q6J("ngIf",!K.currPassword),i.xp6(2),i.Q6J("ngModel",K.newPassword),i.xp6(1),i.Q6J("ngIf",K.matchOldAndNewPasswords()),i.xp6(2),i.Q6J("ngModel",K.confirmPassword),i.xp6(1),i.Q6J("ngIf",K.matchNewPasswords()),i.xp6(7),i.Q6J("inset",!0)}}let Jt=(()=>{class _e{constructor(K,We,Bt,Ce,ge){this.logger=K,this.store=We,this.actions=Bt,this.router=Ce,this.sessionService=ge,this.faInfoCircle=_.sqG,this.faUserLock=_.FJU,this.faUserClock=_.hnx,this.faLock=_.byT,this.currPassword="",this.newPassword="",this.confirmPassword="",this.errorMsg="",this.errorConfirmMsg="",this.initializeNodeData=!1,this.unSubs=[new D.x,new D.x,new D.x]}ngOnInit(){this.initializeNodeData="true"===this.sessionService.getItem("defaultPassword"),this.store.select(n.Yj).pipe((0,x.R)(this.unSubs[0])).subscribe(K=>{this.appConfig=K,this.logger.info(this.appConfig)}),this.store.select(n.dT).pipe((0,x.R)(this.unSubs[1])).subscribe(K=>{this.selNode=K}),this.actions.pipe((0,x.R)(this.unSubs[2]),(0,se.h)(K=>K.type===te.pg.RESET_PASSWORD_RES)).subscribe(K=>{var We;if(te.kO.includes(this.currPassword.toLowerCase()))switch(null===(We=this.selNode.lnImplementation)||void 0===We?void 0:We.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||te.kO.includes(this.newPassword.toLowerCase()))return!0;this.store.dispatch((0,ze.c0)({payload:{currPassword:ue(this.currPassword).toString(),newPassword:ue(this.newPassword).toString()}}))}matchOldAndNewPasswords(){let K=!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.",K=!0):te.kO.includes(this.newPassword.toLowerCase())?(this.form.controls.newpassword.setErrors({invalid:!0}),this.errorMsg=null==te.kO?void 0:te.kO.reduce((We,Bt,Ce)=>Ce<te.kO.length-1?We+Bt+'" / "':We+Bt+'".','Password cannot be "'),K=!0):(this.form.controls.newpassword.setErrors(null),this.errorMsg="",K=!1):(this.form.controls.newpassword.setErrors({invalid:!0}),this.errorMsg="New password is required.",K=!0)),K}matchNewPasswords(){let K=!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.",K=!0):(this.form.controls.confirmpassword.setErrors(null),this.errorConfirmMsg="",K=!1):(this.form.controls.confirmpassword.setErrors({invalid:!0}),this.errorConfirmMsg="Confirm password is required.",K=!0)),K}on2FAuth(){this.store.dispatch((0,ze.qR)({payload:{data:{appConfig:this.appConfig,component:Ze}}}))}onResetPassword(){this.form.resetForm()}ngOnDestroy(){this.initializeNodeData&&this.store.dispatch((0,ze.fk)({payload:{uiMessage:te.m6.NO_SPINNER,prevLnNodeIndex:-1,currentLnNode:this.selNode,isInitialSetup:!0}})),this.unSubs.forEach(K=>{K.next(),K.complete()})}}return _e.\u0275fac=function(K){return new(K||_e)(i.Y36(be.mQ),i.Y36(y.yh),i.Y36(d.eX),i.Y36(I.F0),i.Y36(we.m))},_e.\u0275cmp=i.Xpm({type:_e,selectors:[["rtl-auth-settings"]],viewQuery:function(K,We){if(1&K&&i.Gf(rt,5),2&K){let Bt;i.iGM(Bt=i.CRH())&&(We.form=Bt.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(K,We){1&K&&(i.TgZ(0,"div",0),i.YNc(1,Xt,22,8,"form",1),i.TgZ(2,"div",2)(3,"div",3),i._UZ(4,"fa-icon",4),i.TgZ(5,"span",5),i._uU(6,"Two Factor Authentication"),i.qZA()(),i.TgZ(7,"div",6),i._UZ(8,"fa-icon",7),i.TgZ(9,"span"),i._uU(10,"Protect your account from unauthorized access by requiring a second authentication method in addition to your password."),i.qZA()(),i.TgZ(11,"div",8)(12,"button",9),i.NdJ("click",function(){return We.on2FAuth()}),i._uU(13),i.qZA()()()()),2&K&&(i.xp6(1),i.Q6J("ngIf",null==We.appConfig?null:We.appConfig.allowPasswordUpdate),i.xp6(3),i.Q6J("icon",We.faUserClock),i.xp6(4),i.Q6J("icon",We.faInfoCircle),i.xp6(5),i.Oqu(We.appConfig.enable2FA?"Disable 2FA":"Enable 2FA"))},directives:[g.xw,g.yH,g.Wh,$.O5,Y._Y,Y.JL,Y.F,V.BN,ot.KE,jt.Nt,Y.Fj,Ae.h,Y.Q7,Y.JJ,Y.On,ot.TO,Te.lW,Fe.d],styles:[""]}),_e})();var qi=p(4623);function ui(_e,Xe){1&_e&&i._UZ(0,"mat-divider",7)}function si(_e,Xe){if(1&_e&&(i.TgZ(0,"div",4)(1,"pre",5),i._uU(2),i.ALo(3,"json"),i.qZA(),i.YNc(4,ui,1,0,"mat-divider",6),i.qZA()),2&_e){const K=i.oxw();i.xp6(2),i.Oqu(i.lcZ(3,2,K.configData)),i.xp6(2),i.Q6J("ngIf",""!==K.configData)}}function en(_e,Xe){if(1&_e&&(i.TgZ(0,"h2"),i._uU(1),i.qZA()),2&_e){const K=i.oxw().$implicit;i.xp6(1),i.Oqu(K)}}function Ui(_e,Xe){if(1&_e&&(i.TgZ(0,"h4",14),i._uU(1),i.qZA()),2&_e){const K=i.oxw().$implicit;i.xp6(1),i.Oqu(K)}}function Bi(_e,Xe){1&_e&&i._UZ(0,"mat-divider",15),2&_e&&i.Q6J("inset",!0)}function Gi(_e,Xe){if(1&_e&&(i.TgZ(0,"mat-list-item")(1,"mat-card-subtitle",7),i.YNc(2,en,2,1,"h2",10),i.qZA(),i.TgZ(3,"mat-card-subtitle",11),i.YNc(4,Ui,2,1,"h4",12),i.qZA(),i.YNc(5,Bi,1,1,"mat-divider",13),i.qZA()),2&_e){const K=Xe.$implicit;i.xp6(2),i.Q6J("ngIf",K.indexOf("[")>=0),i.xp6(2),i.Q6J("ngIf",K.indexOf("[")<0),i.xp6(1),i.Q6J("ngIf",K.indexOf("[")<0)}}function ct(_e,Xe){if(1&_e&&(i.TgZ(0,"div",8)(1,"mat-list"),i.YNc(2,Gi,6,3,"mat-list-item",9),i.qZA()()),2&_e){const K=i.oxw();i.xp6(2),i.Q6J("ngForOf",K.configData)}}let Ft=(()=>{class _e{constructor(K,We,Bt){this.store=K,this.rtlEffects=We,this.router=Bt,this.selectedNodeType="",this.configData="",this.fileFormat="INI",this.faCog=_.b7W,this.unSubs=[new D.x,new D.x]}ngOnInit(){this.selectedNodeType=this.router.url.includes("bconfig")?"bitcoind":"ln",this.router.events.pipe((0,x.R)(this.unSubs[0]),(0,se.h)(K=>K instanceof I.Av)).subscribe({next:K=>{this.selectedNodeType=K.urlAfterRedirects.includes("bconfig")?"bitcoind":"ln"}}),this.store.dispatch((0,ze.Q2)({payload:this.selectedNodeType})),this.rtlEffects.showLnConfig.pipe((0,x.R)(this.unSubs[1])).subscribe(K=>{const We=K.data;this.fileFormat=K.format,this.configData=""===We||!We||"INI"!==this.fileFormat&&"HOCON"!==this.fileFormat?""!==We&&We&&"JSON"===this.fileFormat?We:"":We.split("\n")})}ngOnDestroy(){this.unSubs.forEach(K=>{K.next(null),K.complete()})}}return _e.\u0275fac=function(K){return new(K||_e)(i.Y36(y.yh),i.Y36(ht.V),i.Y36(I.F0))},_e.\u0275cmp=i.Xpm({type:_e,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(K,We){1&K&&(i.TgZ(0,"div",0)(1,"div",1),i.YNc(2,si,5,4,"div",2),i.YNc(3,ct,3,1,"div",3),i.qZA()()),2&K&&(i.xp6(2),i.Q6J("ngIf",""!==We.configData&&"JSON"===We.fileFormat),i.xp6(1),i.Q6J("ngIf",""!==We.configData&&("INI"===We.fileFormat||"HOCON"===We.fileFormat)))},directives:[g.xw,g.yH,g.Wh,$.O5,Fe.d,qi.i$,$.sg,qi.Tg,R.$j],pipes:[$.Ts],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),_e})();const pt=function(){return{initial:!1}};function it(_e,Xe){if(1&_e){const K=i.EpF();i.TgZ(0,"div",10),i.NdJ("click",function(){i.CHM(K);const Bt=i.oxw();return Bt.activeLink=Bt.links[1].link}),i._uU(1),i.qZA()}if(2&_e){const K=i.oxw();i.s9C("routerLink",K.links[1].link),i.Q6J("active",K.activeLink===K.links[1].link)("state",i.DdM(4,pt)),i.xp6(1),i.Oqu(K.links[1].name)}}function It(_e,Xe){if(1&_e){const K=i.EpF();i.TgZ(0,"div",6),i.NdJ("click",function(){i.CHM(K);const Bt=i.oxw();return Bt.activeLink=Bt.links[2].link}),i._uU(1),i.qZA()}if(2&_e){const K=i.oxw();i.s9C("routerLink",K.links[2].link),i.Q6J("active",K.activeLink===K.links[2].link),i.xp6(1),i.Oqu(K.links[2].name)}}function de(_e,Xe){if(1&_e){const K=i.EpF();i.TgZ(0,"div",6),i.NdJ("click",function(){i.CHM(K);const Bt=i.oxw();return Bt.activeLink=Bt.links[3].link}),i._uU(1),i.qZA()}if(2&_e){const K=i.oxw();i.s9C("routerLink",K.links[3].link),i.Q6J("active",K.activeLink===K.links[3].link),i.xp6(1),i.Oqu(K.links[3].name)}}let $e=(()=>{class _e{constructor(K,We){this.store=K,this.router=We,this.faTools=_.CgH,this.showLnConfig=!1,this.lnImplementationStr="",this.links=[{link:"layout",name:"Layout"},{link:"services",name:"Services"},{link:"experimental",name:"Experimental"},{link:"lnconfig",name:this.lnImplementationStr}],this.activeLink="",this.unSubs=[new D.x,new D.x,new D.x]}ngOnInit(){const K=this.links.find(We=>this.router.url.includes(We.link));this.activeLink=K?K.link:this.links[0].link,this.router.events.pipe((0,x.R)(this.unSubs[0]),(0,se.h)(We=>We instanceof I.Av)).subscribe({next:We=>{const Bt=this.links.find(Ce=>We.urlAfterRedirects.includes(Ce.link));this.activeLink=Bt?Bt.link:this.links[0].link}}),this.store.select(n.dT).pipe((0,x.R)(this.unSubs[1])).subscribe(We=>{var Bt;switch(this.showLnConfig=!1,this.selNode=We,null===(Bt=this.selNode.lnImplementation)||void 0===Bt?void 0:Bt.toUpperCase()){case"CLN":this.lnImplementationStr="Core Lightning Config";break;case"ECL":this.lnImplementationStr="Eclair Config";break;default:this.lnImplementationStr="LND Config"}this.selNode.authentication&&this.selNode.authentication.configPath&&""!==this.selNode.authentication.configPath.trim()&&(this.links[3].name=this.lnImplementationStr,this.showLnConfig=!0)})}ngOnDestroy(){this.unSubs.forEach(K=>{K.next(null),K.complete()})}}return _e.\u0275fac=function(K){return new(K||_e)(i.Y36(y.yh),i.Y36(I.F0))},_e.\u0275cmp=i.Xpm({type:_e,selectors:[["rtl-node-config"]],decls:15,vars:7,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","state","click",4,"ngIf"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper","mb-2"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","state","click"]],template:function(K,We){1&K&&(i.TgZ(0,"div",0),i._UZ(1,"fa-icon",1),i.TgZ(2,"span",2),i._uU(3,"Node Config"),i.qZA()(),i.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"nav",5)(8,"div",6),i.NdJ("click",function(){return We.activeLink=We.links[0].link}),i._uU(9),i.qZA(),i.YNc(10,it,2,5,"div",7),i.YNc(11,It,2,3,"div",8),i.YNc(12,de,2,3,"div",8),i.qZA(),i.TgZ(13,"div",9),i._UZ(14,"router-outlet"),i.qZA()()()()),2&K&&(i.xp6(1),i.Q6J("icon",We.faTools),i.xp6(7),i.s9C("routerLink",We.links[0].link),i.Q6J("active",We.activeLink===We.links[0].link),i.xp6(1),i.Oqu(We.links[0].name),i.xp6(1),i.Q6J("ngIf","LND"===(null==We.selNode||null==We.selNode.lnImplementation?null:We.selNode.lnImplementation.toUpperCase())||"CLN"===(null==We.selNode||null==We.selNode.lnImplementation?null:We.selNode.lnImplementation.toUpperCase())),i.xp6(1),i.Q6J("ngIf","CLN"===(null==We.selNode||null==We.selNode.lnImplementation?null:We.selNode.lnImplementation.toUpperCase())),i.xp6(1),i.Q6J("ngIf",We.showLnConfig))},directives:[g.xw,g.Wh,V.BN,R.a8,R.dn,H.BU,H.Nj,I.rH,$.O5,g.yH,I.lC],styles:[""]}),_e})();function bt(_e,Xe){1&_e&&i._UZ(0,"mat-divider",7)}function Vt(_e,Xe){if(1&_e&&(i.TgZ(0,"div",4)(1,"pre",5),i._uU(2),i.ALo(3,"json"),i.qZA(),i.YNc(4,bt,1,0,"mat-divider",6),i.qZA()),2&_e){const K=i.oxw();i.xp6(2),i.Oqu(i.lcZ(3,2,K.configData)),i.xp6(2),i.Q6J("ngIf",""!==K.configData)}}function bi(_e,Xe){if(1&_e&&(i.TgZ(0,"h2"),i._uU(1),i.qZA()),2&_e){const K=i.oxw().$implicit;i.xp6(1),i.Oqu(K)}}function Li(_e,Xe){if(1&_e&&(i.TgZ(0,"h4",14),i._uU(1),i.qZA()),2&_e){const K=i.oxw().$implicit;i.xp6(1),i.Oqu(K)}}function Ji(_e,Xe){1&_e&&i._UZ(0,"mat-divider",15),2&_e&&i.Q6J("inset",!0)}function Wi(_e,Xe){if(1&_e&&(i.TgZ(0,"mat-list-item")(1,"mat-card-subtitle",7),i.YNc(2,bi,2,1,"h2",10),i.qZA(),i.TgZ(3,"mat-card-subtitle",11),i.YNc(4,Li,2,1,"h4",12),i.qZA(),i.YNc(5,Ji,1,1,"mat-divider",13),i.qZA()),2&_e){const K=Xe.$implicit;i.xp6(2),i.Q6J("ngIf",K.indexOf("[")>=0),i.xp6(2),i.Q6J("ngIf",K.indexOf("[")<0),i.xp6(1),i.Q6J("ngIf",K.indexOf("[")<0)}}function sn(_e,Xe){if(1&_e&&(i.TgZ(0,"div",8)(1,"mat-list"),i.YNc(2,Wi,6,3,"mat-list-item",9),i.qZA()()),2&_e){const K=i.oxw();i.xp6(2),i.Q6J("ngForOf",K.configData)}}let mn=(()=>{class _e{constructor(K,We,Bt){this.store=K,this.rtlEffects=We,this.router=Bt,this.selectedNodeType="",this.configData="",this.fileFormat="INI",this.faCog=_.b7W,this.unSubs=[new D.x,new D.x]}ngOnInit(){this.selectedNodeType=this.router.url.includes("bconfig")?"bitcoind":"ln",this.router.events.pipe((0,x.R)(this.unSubs[0]),(0,se.h)(K=>K instanceof I.Av)).subscribe({next:K=>{this.selectedNodeType=K.urlAfterRedirects.includes("bconfig")?"bitcoind":"ln"}}),this.store.dispatch((0,ze.Q2)({payload:this.selectedNodeType})),this.rtlEffects.showLnConfig.pipe((0,x.R)(this.unSubs[1])).subscribe(K=>{const We=K.data;this.fileFormat=K.format,this.configData=""===We||!We||"INI"!==this.fileFormat&&"HOCON"!==this.fileFormat?""!==We&&We&&"JSON"===this.fileFormat?We:"":We.split("\n")})}ngOnDestroy(){this.unSubs.forEach(K=>{K.next(null),K.complete()})}}return _e.\u0275fac=function(K){return new(K||_e)(i.Y36(y.yh),i.Y36(ht.V),i.Y36(I.F0))},_e.\u0275cmp=i.Xpm({type:_e,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(K,We){1&K&&(i.TgZ(0,"div",0)(1,"div",1),i.YNc(2,Vt,5,4,"div",2),i.YNc(3,sn,3,1,"div",3),i.qZA()()),2&K&&(i.xp6(2),i.Q6J("ngIf",""!==We.configData&&"JSON"===We.fileFormat),i.xp6(1),i.Q6J("ngIf",""!==We.configData&&("INI"===We.fileFormat||"HOCON"===We.fileFormat)))},directives:[g.xw,g.yH,g.Wh,$.O5,Fe.d,qi.i$,$.sg,qi.Tg,R.$j],pipes:[$.Ts],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),_e})();var Yt=p(2994),Mi=p(429),Je=p(6523),Nt=p(62),Kt=p(2368),pi=p(9814),Ri=p(3322);function ki(_e,Xe){if(1&_e&&(i.TgZ(0,"mat-option",35),i._uU(1),i.qZA()),2&_e){const K=Xe.$implicit;i.Q6J("value",K.id),i.xp6(1),i.hij(" ",K.id," ")}}function hn(_e,Xe){1&_e&&(i.TgZ(0,"mat-error"),i._uU(1,"Currency unit is required."),i.qZA())}function Hn(_e,Xe){if(1&_e&&(i.TgZ(0,"mat-radio-button",36),i._uU(1),i.ALo(2,"titlecase"),i.qZA()),2&_e){const K=Xe.$implicit,We=i.oxw();i.Q6J("value",K)("checked",We.selNode.settings.userPersona===K),i.xp6(1),i.hij(" ",i.lcZ(2,3,K)," ")}}const An=function(_e){return{"mr-4":_e}};function Kn(_e,Xe){if(1&_e&&(i.TgZ(0,"mat-radio-button",37),i._uU(1),i.qZA()),2&_e){const K=Xe.$implicit,We=i.oxw();i.Q6J("value",K)("ngClass",i.VKq(3,An,We.screenSize===We.screenSizeEnum.XS||We.screenSize===We.screenSizeEnum.SM)),i.xp6(1),i.hij("",K.name," ")}}const Cn=function(_e){return{skin:!0,"selected-color":_e}};function wi(_e,Xe){if(1&_e){const K=i.EpF();i.TgZ(0,"span",38)(1,"div",39),i.NdJ("click",function(){const Ce=i.CHM(K).$implicit;return i.oxw().changeThemeColor(Ce.id)}),i.ALo(2,"lowercase"),i.qZA(),i._uU(3),i.qZA()}if(2&_e){const K=Xe.$implicit,We=i.oxw();i.xp6(1),i.Tol(i.lcZ(2,4,K.id)),i.Q6J("ngClass",i.VKq(6,Cn,We.selectedThemeColor===K.id)),i.xp6(2),i.hij(" ",K.name," ")}}let Yi=(()=>{class _e{constructor(K,We,Bt){this.logger=K,this.commonService=We,this.store=Bt,this.faExclamationTriangle=_.eHv,this.faMoneyBillAlt=_.co4,this.faPaintBrush=_.XsY,this.faInfoCircle=_.sqG,this.userPersonas=[te.ol.OPERATOR,te.ol.MERCHANT],this.currencyUnits=te.Er,this.themeModes=te.wZ.modes,this.themeColors=te.wZ.themes,this.selectedThemeMode=te.wZ.modes[0],this.selectedThemeColor=te.wZ.themes[0].id,this.currencyUnit="BTC",this.smallerCurrencyUnit="Sats",this.showSettingOption=!0,this.screenSize="",this.screenSizeEnum=te.cu,this.unSubs=[new D.x,new D.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(n.dT).pipe((0,x.R)(this.unSubs[0])).subscribe(K=>{this.selNode=K,this.selectedThemeMode=this.themeModes.find(We=>this.selNode.settings.themeMode===We.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(K)})}onCurrencyChange(K){this.selNode.settings.currencyUnits=[...te.uA,K.value],this.store.dispatch((0,Je.JT)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:K.value,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}})),this.store.dispatch((0,Mi.oo)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:K.value,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}})),this.store.dispatch((0,Yt.Zr)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:K.value,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}}))}toggleSettings(K,We){this.selNode.settings[K]=!this.selNode.settings[K]}changeThemeColor(K){this.selectedThemeColor=K,this.selNode.settings.themeColor=K}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,ze.zQ)({payload:{uiMessage:te.m6.UPDATE_NODE_SETTINGS,settings:this.selNode.settings}})),this.store.dispatch((0,Je.JT)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}})),this.store.dispatch((0,Mi.oo)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}})),this.store.dispatch((0,Yt.Zr)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}}))}onResetSettings(){const K=this.selNode.index||-1;this.selNode.settings=this.previousSettings,this.selectedThemeMode=this.themeModes.find(We=>We.id===this.previousSettings.themeMode)||this.themeModes[0],this.selectedThemeColor=this.previousSettings.themeColor,this.store.dispatch((0,ze.fk)({payload:{uiMessage:te.m6.NO_SPINNER,prevLnNodeIndex:+K,currentLnNode:this.selNode,isInitialSetup:!0}}))}ngOnDestroy(){this.unSubs.forEach(K=>{K.next(),K.complete()})}}return _e.\u0275fac=function(K){return new(K||_e)(i.Y36(be.mQ),i.Y36(Nt.v),i.Y36(y.yh))},_e.\u0275cmp=i.Xpm({type:_e,selectors:[["rtl-node-settings"]],decls:60,vars:17,consts:[["fxLayout","column","fxFlex","100",3,"perfectScrollbar"],["fxLayout","column","fxLayoutAlign","start stretch",1,"settings-container","page-sub-title-container","mt-1"],["form","ngForm"],["fxLayout","row"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column","fxLayoutAlign","start stretch",1,"mt-1","bordered-box","padding-gap-large"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["href","https://www.blockchain.com/api/exchange_rates_api","target","blank"],["fxLayout","row wrap","fxLayoutAlign","start center"],["tabindex","2","color","primary","name","fiatConversion",3,"ngModel","ngModelChange","change"],["autoFocus","","placeholder","Fiat Currency","tabindex","3","name","currencyUnit",3,"ngModel","disabled","required","ngModelChange","selectionChange"],["currencyUnit","ngModel"],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","row wrap","fxLayoutAlign","start start","fxLayout.gt-sm","column","fxFlex","100","fxLayoutAlign.gt-sm","space-between stretch",1,"settings-container","page-sub-title-container","mt-1"],[1,"mt-1"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100"],["fxLayout","row","fxFlex","100",1,"alert","alert-info","mb-0"],["fxLayout","column","fxLayoutAlign","start start","fxFlex","100"],["color","primary","tabindex","1","name","userPersona",3,"ngModel","ngModelChange"],["class","mr-4",3,"value","checked",4,"ngFor","ngForOf"],[1,"mt-1",3,"inset"],["fxLayout","column","fxLayout.gt-xs","row","fxFlex","100","fxLayoutAlign","space-between stretch","fxLayoutAlign.gt-xs","start stretch"],["fxFlex.gt-xs","20","fxFlex.gt-md","15","fxLayout","column","fxLayoutAlign","space-between stretch"],["color","primary","name","themeMode",3,"ngModel","ngModelChange","change"],["tabindex","5",3,"value","ngClass",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex.gt-xs","50","fxFlex.gt-md","40","fxLayoutAlign","space-between stretch"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start"],["fxLayout","row","class","theme-name",4,"ngFor","ngForOf"],["fxLayout","row",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","10",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","11",3,"click"],[3,"value"],[1,"mr-4",3,"value","checked"],["tabindex","5",3,"value","ngClass"],["fxLayout","row",1,"theme-name"],["tabindex","9",3,"ngClass","click"]],template:function(K,We){1&K&&(i.TgZ(0,"div",0)(1,"form",1,2)(3,"div",3),i._UZ(4,"fa-icon",4),i.TgZ(5,"span",5),i._uU(6,"Balance Display"),i.qZA()(),i.TgZ(7,"div",6)(8,"div",7),i._UZ(9,"fa-icon",8),i.TgZ(10,"span"),i._uU(11,"Fiat conversion calls "),i.TgZ(12,"strong")(13,"a",9),i._uU(14,"Blockchain.com"),i.qZA()(),i._uU(15," API to get conversion rates."),i.qZA()(),i.TgZ(16,"div",10)(17,"mat-slide-toggle",11),i.NdJ("ngModelChange",function(Ce){return We.selNode.settings.fiatConversion=Ce})("change",function(Ce){return We.selNode.settings.currencyUnit=Ce.checked?We.selNode.settings.currencyUnit:null}),i._uU(18,"Enable Fiat Conversion"),i.qZA(),i.TgZ(19,"mat-form-field")(20,"mat-select",12,13),i.NdJ("ngModelChange",function(Ce){return We.selNode.settings.currencyUnit=Ce})("selectionChange",function(Ce){return We.onCurrencyChange(Ce)}),i.YNc(22,ki,2,2,"mat-option",14),i.qZA(),i.YNc(23,hn,2,0,"mat-error",15),i.qZA()()(),i.TgZ(24,"div",16)(25,"div",17)(26,"div",18),i._UZ(27,"fa-icon",4),i.TgZ(28,"span",5),i._uU(29,"Customization"),i.qZA()(),i.TgZ(30,"div",6)(31,"div",19)(32,"div",20),i._UZ(33,"fa-icon",8),i.TgZ(34,"span"),i._uU(35,"Dashboard layout will be tailored based on the role selected to better serve its needs."),i.qZA()(),i.TgZ(36,"div",21)(37,"h4"),i._uU(38,"Dashboard Layout"),i.qZA(),i.TgZ(39,"mat-radio-group",22),i.NdJ("ngModelChange",function(Ce){return We.selNode.settings.userPersona=Ce}),i.YNc(40,Hn,3,5,"mat-radio-button",23),i.qZA()()(),i._UZ(41,"mat-divider",24),i.TgZ(42,"div",25)(43,"div",26)(44,"h4"),i._uU(45,"Mode"),i.qZA(),i.TgZ(46,"mat-radio-group",27),i.NdJ("ngModelChange",function(Ce){return We.selectedThemeMode=Ce})("change",function(){return We.chooseThemeMode()}),i.YNc(47,Kn,2,5,"mat-radio-button",28),i.qZA()()(),i._UZ(48,"mat-divider",24),i.TgZ(49,"div",25)(50,"div",29)(51,"h4"),i._uU(52,"Themes"),i.qZA(),i.TgZ(53,"div",30),i.YNc(54,wi,4,8,"span",31),i.qZA()()()()()()(),i.TgZ(55,"div",32)(56,"button",33),i.NdJ("click",function(){return We.onResetSettings()}),i._uU(57,"Reset"),i.qZA(),i.TgZ(58,"button",34),i.NdJ("click",function(){return We.onUpdateSettings()}),i._uU(59,"Update"),i.qZA()()()),2&K&&(i.xp6(4),i.Q6J("icon",We.faMoneyBillAlt),i.xp6(5),i.Q6J("icon",We.faExclamationTriangle),i.xp6(8),i.Q6J("ngModel",We.selNode.settings.fiatConversion),i.xp6(3),i.Q6J("ngModel",We.selNode.settings.currencyUnit)("disabled",!We.selNode.settings.fiatConversion)("required",We.selNode.settings.fiatConversion),i.xp6(2),i.Q6J("ngForOf",We.currencyUnits),i.xp6(1),i.Q6J("ngIf",We.selNode.settings.fiatConversion&&!We.selNode.settings.currencyUnit),i.xp6(4),i.Q6J("icon",We.faPaintBrush),i.xp6(6),i.Q6J("icon",We.faInfoCircle),i.xp6(6),i.Q6J("ngModel",We.selNode.settings.userPersona),i.xp6(1),i.Q6J("ngForOf",We.userPersonas),i.xp6(1),i.Q6J("inset",!0),i.xp6(5),i.Q6J("ngModel",We.selectedThemeMode),i.xp6(1),i.Q6J("ngForOf",We.themeModes),i.xp6(1),i.Q6J("inset",!0),i.xp6(6),i.Q6J("ngForOf",We.themeColors))},directives:[g.xw,g.yH,Z.$V,Y._Y,Y.JL,Y.F,g.Wh,V.BN,Kt.Rr,Y.JJ,Y.On,ot.KE,Ie.gD,Ae.h,Y.Q7,$.sg,ce.ey,$.O5,ot.TO,pi.VQ,pi.U0,Fe.d,$.mk,Ri.oO,Te.lW],pipes:[$.rS,$.i8],styles:[""]}),_e})();function bn(_e,Xe){if(1&_e){const K=i.EpF();i.TgZ(0,"div",9),i.NdJ("click",function(){i.CHM(K);const Bt=i.oxw();return Bt.activeLink=Bt.links[0].link}),i._uU(1),i.qZA()}if(2&_e){const K=i.oxw();i.s9C("routerLink",K.links[0].link),i.Q6J("active",K.activeLink===K.links[0].link),i.xp6(1),i.Oqu(K.links[0].name)}}const Gn=function(){return{initial:!1}};function ar(_e,Xe){if(1&_e){const K=i.EpF();i.TgZ(0,"div",10),i.NdJ("click",function(){i.CHM(K);const Bt=i.oxw();return Bt.activeLink=Bt.links[1].link}),i._uU(1),i.qZA()}if(2&_e){const K=i.oxw();i.s9C("routerLink",K.links[1].link),i.Q6J("active",K.activeLink===K.links[1].link)("state",i.DdM(4,Gn)),i.xp6(1),i.Oqu(K.links[1].name)}}function kr(_e,Xe){if(1&_e){const K=i.EpF();i.TgZ(0,"div",9),i.NdJ("click",function(){i.CHM(K);const Bt=i.oxw();return Bt.activeLink=Bt.links[2].link}),i._uU(1),i.qZA()}if(2&_e){const K=i.oxw();i.s9C("routerLink",K.links[2].link),i.Q6J("active",K.activeLink===K.links[2].link),i.xp6(1),i.Oqu(K.links[2].name)}}let Pr=(()=>{class _e{constructor(K,We,Bt){this.store=K,this.router=We,this.activatedRoute=Bt,this.faLayerGroup=_.Krp,this.links=[{link:"loop",name:"Loop"},{link:"boltz",name:"Boltz"},{link:"peerswap",name:"Peerswap"}],this.activeLink="",this.unSubs=[new D.x,new D.x,new D.x]}ngOnInit(){const K=this.links.find(We=>this.router.url.includes(We.link));this.activeLink=K?K.link:this.links[0].link,this.router.events.pipe((0,x.R)(this.unSubs[0]),(0,se.h)(We=>We instanceof I.Av)).subscribe({next:We=>{const Bt=this.links.find(Ce=>We.urlAfterRedirects.includes(Ce.link));this.activeLink="CLN"===this.selNode.lnImplementation.toUpperCase()?this.links[2].link:Bt?Bt.link:this.links[0].link}}),this.store.select(n.dT).pipe((0,x.R)(this.unSubs[1])).subscribe(We=>{this.selNode=We,"CLN"===this.selNode.lnImplementation.toUpperCase()&&(this.activeLink=this.links[2].link,this.router.navigate(["./"+this.activeLink],{relativeTo:this.activatedRoute}))})}ngOnDestroy(){this.unSubs.forEach(K=>{K.next(null),K.complete()})}}return _e.\u0275fac=function(K){return new(K||_e)(i.Y36(y.yh),i.Y36(I.F0),i.Y36(I.gz))},_e.\u0275cmp=i.Xpm({type:_e,selectors:[["rtl-services-settings"]],decls:13,vars:4,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container","mt-1"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngIf"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","state","click",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","state","click"]],template:function(K,We){1&K&&(i.TgZ(0,"div",0),i._UZ(1,"fa-icon",1),i.TgZ(2,"span",2),i._uU(3,"Services"),i.qZA()(),i.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"nav",5),i.YNc(8,bn,2,3,"div",6),i.YNc(9,ar,2,5,"div",7),i.YNc(10,kr,2,3,"div",6),i.qZA(),i.TgZ(11,"div",8),i._UZ(12,"router-outlet"),i.qZA()()()()),2&K&&(i.xp6(1),i.Q6J("icon",We.faLayerGroup),i.xp6(7),i.Q6J("ngIf","LND"===(null==We.selNode||null==We.selNode.lnImplementation?null:We.selNode.lnImplementation.toUpperCase())),i.xp6(1),i.Q6J("ngIf","LND"===(null==We.selNode||null==We.selNode.lnImplementation?null:We.selNode.lnImplementation.toUpperCase())),i.xp6(1),i.Q6J("ngIf","CLN"===(null==We.selNode||null==We.selNode.lnImplementation?null:We.selNode.lnImplementation.toUpperCase())))},directives:[g.xw,g.Wh,V.BN,R.a8,R.dn,H.BU,$.O5,H.Nj,I.rH,g.yH,I.lC],styles:[""]}),_e})();const ia=["form"];function sa(_e,Xe){1&_e&&(i.TgZ(0,"mat-error"),i._uU(1,"Loop server URL is required."),i.qZA())}function oa(_e,Xe){1&_e&&(i.TgZ(0,"mat-error"),i._uU(1,"Specify the loop server url with 'https://'."),i.qZA())}function La(_e,Xe){1&_e&&(i.TgZ(0,"mat-error"),i._uU(1,"Loop macaroon path is required."),i.qZA())}let Ta=(()=>{class _e{constructor(K,We){this.logger=K,this.store=We,this.faInfoCircle=_.sqG,this.enableLoop=!1,this.unSubs=[new D.x,new D.x]}ngOnInit(){this.store.select(n.dT).pipe((0,x.R)(this.unSubs[0])).subscribe(K=>{this.selNode=K,this.enableLoop=!(!K.settings.swapServerUrl||""===K.settings.swapServerUrl.trim()),this.previousSelNode=JSON.parse(JSON.stringify(this.selNode)),this.logger.info(K)})}onEnableServiceChanged(K){this.enableLoop=K.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,ze.jS)({payload:{uiMessage:te.m6.UPDATE_LOOP_SETTINGS,service:te.JX.LOOP,settings:{enable:this.enableLoop,serverUrl:this.selNode.settings.swapServerUrl,macaroonPath:this.selNode.authentication.swapMacaroonPath}}})),this.store.dispatch((0,Je.JT)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.selNode.settings.enableOffers}})),this.store.dispatch((0,Mi.oo)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.selNode.settings.enableOffers}})),this.store.dispatch((0,Yt.Zr)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.selNode.settings.enableOffers}}))}onReset(){this.selNode=JSON.parse(JSON.stringify(this.previousSelNode)),this.enableLoop=!(!this.selNode.settings.swapServerUrl||""===this.selNode.settings.swapServerUrl.trim())}ngOnDestroy(){this.unSubs.forEach(K=>{K.next(),K.complete()})}}return _e.\u0275fac=function(K){return new(K||_e)(i.Y36(be.mQ),i.Y36(y.yh))},_e.\u0275cmp=i.Xpm({type:_e,selectors:[["rtl-loop-service-settings"]],viewQuery:function(K,We){if(1&K&&i.Gf(ia,7),2&K){let Bt;i.iGM(Bt=i.CRH())&&(We.form=Bt.first)}},decls:34,vars:11,consts:[["fxLayout","column","fxFlex","100",3,"perfectScrollbar"],["fxFlex","100",1,"alert","alert-info","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["href","https://github.com/lightninglabs/loop","target","_blank"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"settings-container","page-sub-title-container","mt-1"],["form","ngForm"],["fxLayout","column","fxFlex","50","fxLayoutAlign","start stretch"],["autoFocus","","tabindex","1","color","primary","name","loop",1,"mb-1",3,"ngModel","ngModelChange","change"],[1,"mb-2"],["matInput","","placeholder","Loop Server URL","type","text","id","swapServerUrl","name","srvrUrl","tabindex","2",3,"ngModel","required","disabled","ngModelChange"],["srvrUrl","ngModel"],[4,"ngIf"],["matInput","","placeholder","Loop Macaroon Path","type","text","id","swapMacaroonPath","name","swapMacaroonPath","tabindex","3",3,"ngModel","required","disabled","ngModelChange"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","type","reset","tabindex","4",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","5",3,"click"]],template:function(K,We){if(1&K&&(i.TgZ(0,"div",0)(1,"div",1),i._UZ(2,"fa-icon",2),i.TgZ(3,"span"),i._uU(4,"Please ensure that "),i.TgZ(5,"strong"),i._uU(6,"loopd"),i.qZA(),i._uU(7," is running and accessible to RTL before enabling this service. Click "),i.TgZ(8,"strong")(9,"a",3),i._uU(10,"here"),i.qZA()(),i._uU(11," to learn more about the installation."),i.qZA()(),i.TgZ(12,"form",4,5)(14,"div",6)(15,"mat-slide-toggle",7),i.NdJ("ngModelChange",function(Ce){return We.enableLoop=Ce})("change",function(Ce){return We.onEnableServiceChanged(Ce)}),i._uU(16,"Enable Loop Service"),i.qZA(),i.TgZ(17,"mat-form-field",8)(18,"input",9,10),i.NdJ("ngModelChange",function(Ce){return We.selNode.settings.swapServerUrl=Ce}),i.qZA(),i.TgZ(20,"mat-hint"),i._uU(21,"Service url for loop server REST APIs, eg. https://localhost:8081"),i.qZA(),i.YNc(22,sa,2,0,"mat-error",11),i.YNc(23,oa,2,0,"mat-error",11),i.qZA(),i.TgZ(24,"mat-form-field")(25,"input",12),i.NdJ("ngModelChange",function(Ce){return We.selNode.authentication.swapMacaroonPath=Ce}),i.qZA(),i.TgZ(26,"mat-hint"),i._uU(27,"Path for the folder containing service 'loop.macaroon', eg. D:\\\\xyz\\\\AppData\\\\Local\\\\Loop\\\\testnet"),i.qZA(),i.YNc(28,La,2,0,"mat-error",11),i.qZA()()(),i.TgZ(29,"div",13)(30,"button",14),i.NdJ("click",function(){return We.onReset()}),i._uU(31,"Reset"),i.qZA(),i.TgZ(32,"button",15),i.NdJ("click",function(){return We.onUpdateService()}),i._uU(33,"Update"),i.qZA()()()),2&K){const Bt=i.MAs(19);i.xp6(2),i.Q6J("icon",We.faInfoCircle),i.xp6(13),i.Q6J("ngModel",We.enableLoop),i.xp6(3),i.Q6J("ngModel",We.selNode.settings.swapServerUrl)("required",We.enableLoop)("disabled",!We.enableLoop),i.xp6(4),i.Q6J("ngIf",!We.selNode.settings.swapServerUrl&&We.enableLoop),i.xp6(1),i.Q6J("ngIf",(null==Bt||null==Bt.errors?null:Bt.errors.invalid)&&We.enableLoop),i.xp6(2),i.Q6J("ngModel",We.selNode.authentication.swapMacaroonPath)("required",We.enableLoop)("disabled",!We.enableLoop),i.xp6(3),i.Q6J("ngIf",!We.selNode.authentication.swapMacaroonPath&&We.enableLoop)}},directives:[g.xw,g.yH,Z.$V,V.BN,Y._Y,Y.JL,Y.F,g.Wh,Kt.Rr,Ae.h,Y.JJ,Y.On,ot.KE,jt.Nt,Y.Fj,Y.Q7,ot.bx,$.O5,ot.TO,Te.lW],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),_e})();const rr=["form"];function Yr(_e,Xe){1&_e&&(i.TgZ(0,"mat-error"),i._uU(1,"Boltz server URL is required."),i.qZA())}function na(_e,Xe){1&_e&&(i.TgZ(0,"mat-error"),i._uU(1,"Specify the boltz server url with 'https://'."),i.qZA())}function Ra(_e,Xe){1&_e&&(i.TgZ(0,"mat-error"),i._uU(1,"Boltz macaroon path is required."),i.qZA())}let qr=(()=>{class _e{constructor(K,We){this.logger=K,this.store=We,this.faInfoCircle=_.sqG,this.enableBoltz=!1,this.serverUrl="",this.macaroonPath="",this.unSubs=[new D.x,new D.x]}ngOnInit(){this.store.select(n.dT).pipe((0,x.R)(this.unSubs[0])).subscribe(K=>{this.selNode=K,this.enableBoltz=!(!K.settings.boltzServerUrl||""===K.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(K)})}onEnableServiceChanged(K){this.enableBoltz=K.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,ze.jS)({payload:{uiMessage:te.m6.UPDATE_BOLTZ_SETTINGS,service:te.JX.BOLTZ,settings:{enable:this.enableBoltz,serverUrl:this.serverUrl,macaroonPath:this.macaroonPath}}})),this.store.dispatch((0,Je.JT)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.serverUrl,enableOffers:this.selNode.settings.enableOffers}})),this.store.dispatch((0,Mi.oo)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.serverUrl,enableOffers:this.selNode.settings.enableOffers}})),this.store.dispatch((0,Yt.Zr)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.serverUrl,enableOffers:this.selNode.settings.enableOffers}}))}onReset(){this.selNode=JSON.parse(JSON.stringify(this.previousSelNode)),this.serverUrl=this.selNode.settings.boltzServerUrl||"",this.macaroonPath=this.selNode.authentication.boltzMacaroonPath,this.enableBoltz=!(!this.serverUrl||""===this.serverUrl.trim())}ngOnDestroy(){this.unSubs.forEach(K=>{K.next(),K.complete()})}}return _e.\u0275fac=function(K){return new(K||_e)(i.Y36(be.mQ),i.Y36(y.yh))},_e.\u0275cmp=i.Xpm({type:_e,selectors:[["rtl-boltz-service-settings"]],viewQuery:function(K,We){if(1&K&&i.Gf(rr,7),2&K){let Bt;i.iGM(Bt=i.CRH())&&(We.form=Bt.first)}},decls:34,vars:11,consts:[["fxLayout","column","fxFlex","100",3,"perfectScrollbar"],["fxFlex","100",1,"alert","alert-info","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["href","https://lnd.docs.boltz.exchange/en/latest/","target","_blank"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"settings-container","page-sub-title-container","mt-1"],["form","ngForm"],["fxLayout","column","fxFlex","50","fxLayoutAlign","start stretch"],["autoFocus","","tabindex","1","color","primary","name","boltz",1,"mb-1",3,"ngModel","ngModelChange","change"],[1,"mb-2"],["matInput","","placeholder","Boltz Server URL","type","text","id","boltzServerUrl","name","srvrUrl","tabindex","2",3,"ngModel","required","disabled","ngModelChange"],["srvrUrl","ngModel"],[4,"ngIf"],["matInput","","placeholder","Boltz Macaroon Path","type","text","id","boltzMacaroonPath","name","boltzMacaroonPath","tabindex","3",3,"ngModel","required","disabled","ngModelChange"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","type","reset","tabindex","4",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","5",3,"click"]],template:function(K,We){if(1&K&&(i.TgZ(0,"div",0)(1,"div",1),i._UZ(2,"fa-icon",2),i.TgZ(3,"span"),i._uU(4,"Please ensure that "),i.TgZ(5,"strong"),i._uU(6,"boltzd"),i.qZA(),i._uU(7," is running and accessible to RTL before enabling this service. Click "),i.TgZ(8,"strong")(9,"a",3),i._uU(10,"here"),i.qZA()(),i._uU(11," to learn more about the installation."),i.qZA()(),i.TgZ(12,"form",4,5)(14,"div",6)(15,"mat-slide-toggle",7),i.NdJ("ngModelChange",function(Ce){return We.enableBoltz=Ce})("change",function(Ce){return We.onEnableServiceChanged(Ce)}),i._uU(16,"Enable Boltz Service"),i.qZA(),i.TgZ(17,"mat-form-field",8)(18,"input",9,10),i.NdJ("ngModelChange",function(Ce){return We.serverUrl=Ce}),i.qZA(),i.TgZ(20,"mat-hint"),i._uU(21,"Service url for boltz server REST APIs, eg. https://localhost:9003"),i.qZA(),i.YNc(22,Yr,2,0,"mat-error",11),i.YNc(23,na,2,0,"mat-error",11),i.qZA(),i.TgZ(24,"mat-form-field")(25,"input",12),i.NdJ("ngModelChange",function(Ce){return We.macaroonPath=Ce}),i.qZA(),i.TgZ(26,"mat-hint"),i._uU(27,"Path for the folder containing boltz 'admin.macaroon', eg. D:\\\\xyz\\\\AppData\\\\Boltz\\\\testnet"),i.qZA(),i.YNc(28,Ra,2,0,"mat-error",11),i.qZA()()(),i.TgZ(29,"div",13)(30,"button",14),i.NdJ("click",function(){return We.onReset()}),i._uU(31,"Reset"),i.qZA(),i.TgZ(32,"button",15),i.NdJ("click",function(){return We.onUpdateService()}),i._uU(33,"Update"),i.qZA()()()),2&K){const Bt=i.MAs(19);i.xp6(2),i.Q6J("icon",We.faInfoCircle),i.xp6(13),i.Q6J("ngModel",We.enableBoltz),i.xp6(3),i.Q6J("ngModel",We.serverUrl)("required",We.enableBoltz)("disabled",!We.enableBoltz),i.xp6(4),i.Q6J("ngIf",(!We.serverUrl||""===We.serverUrl.trim())&&We.enableBoltz),i.xp6(1),i.Q6J("ngIf",(null==Bt||null==Bt.errors?null:Bt.errors.invalid)&&We.enableBoltz),i.xp6(2),i.Q6J("ngModel",We.macaroonPath)("required",We.enableBoltz)("disabled",!We.enableBoltz),i.xp6(3),i.Q6J("ngIf",!We.macaroonPath&&We.enableBoltz)}},directives:[g.xw,g.yH,Z.$V,V.BN,Y._Y,Y.JL,Y.F,g.Wh,Kt.Rr,Ae.h,Y.JJ,Y.On,ot.KE,jt.Nt,Y.Fj,Y.Q7,ot.bx,$.O5,ot.TO,Te.lW],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),_e})();class wr{constructor(Xe){this.help=Xe}}var lr=p(1125);function ma(_e,Xe){if(1&_e&&(i.TgZ(0,"mat-expansion-panel",8)(1,"mat-expansion-panel-header")(2,"mat-panel-title"),i._uU(3),i.qZA()(),i.TgZ(4,"mat-panel-description",9),i._UZ(5,"span",10),i.TgZ(6,"a",11),i._uU(7),i.qZA()()()),2&_e){const K=i.oxw().$implicit,We=i.oxw();i.xp6(3),i.Oqu(K.help.question),i.xp6(2),i.Q6J("innerHTML",K.help.answer,i.oJD),i.xp6(1),i.Q6J("routerLink",We.flgLoggedIn?We.LNPLink+K.help.link:"/login"),i.xp6(1),i.Oqu(We.flgLoggedIn?K.help.linkCaption:"Login to go to the page")}}function jr(_e,Xe){if(1&_e&&(i.TgZ(0,"div",6),i.YNc(1,ma,8,4,"mat-expansion-panel",7),i.qZA()),2&_e){const K=Xe.$implicit,We=i.oxw();i.xp6(1),i.Q6J("ngIf","ALL"===K.help.lnImplementation||K.help.lnImplementation===We.selNode.lnImplementation)}}let Dr=(()=>{class _e{constructor(K,We){this.store=K,this.sessionService=We,this.helpTopics=[],this.faQuestion=_.Psp,this.LNPLink="/lnd/",this.flgLoggedIn=!1,this.unSubs=[new D.x,new D.x,new D.x,new D.x],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:"onchain",linkCaption:"On-Chain page",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:"peerschannels",linkCaption:"Peers/Channels page",lnImplementation:"ALL"})),this.helpTopics.push(new wr({question:"Opening Channels",answer:'Open channels with a connected network peer.\nGo to "Peer/Channels" page under the "Lightning" menu:\n1. On the "Channels" section, select the alias of the connected peer from the drop-down\n2. Specify the amount to commit to the channel and click on "Open Channel".\n3. There are a variety of options available while opening a channel. \n a. Private Channel - When this option is selected, a private channel is opened with the peer. \n b. Priority (advanced option) - Specify either Target confirmation Block or Fee in Sat/vByte. \n c. Spend Unconfirmd Output (advanced option) - Allow channels to be opened with unconfirmed UTXOs.\n4. Track the pending open channels under the "Pending" tab . \n5. Wait for the channel to be confirmed. Only a confimed channel can be used for payments or routing. \n',link:"peerschannels",linkCaption:"Peers/Channels page",lnImplementation:"ALL"})),this.helpTopics.push(new 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. Close Channel - Close the channel.\n2. Balance Score is a "balancedness" metric score for the channel. \n a. It helps measure how balanced the remote and local balances are, on a channel.\n b. A perfectly balanced channel has a score of one, where as a completely lopsided one has a score of zero.\n c. The formula for calculating the score is "1 - abs((local bal - remote bal)/total bal)".\n',link:"peerschannels",linkCaption:"Peers/Channels page",lnImplementation:"ALL"})),this.helpTopics.push(new wr({question:"Lightning Transactions - Payments",answer:'Sending Payments from your node.\nGo to the "Transactions" page under the "Lightning" menu :\nPayments tab is for making payments via your node\n 1. Input a non-expired lightning invoice (Bolt11 format) in the "Payment request" field and click on "Send Payment" to send.\n 2. Advanced option # 1 (LND only) - Specify a limit on the routing fee which you are willing to pay, for the payment.\n 3. Advanced option # 2 (LND only) - Specify the outgoing channel which you want the payment to go through.\n',link:"transactions",linkCaption:"Transactions page",lnImplementation:"ALL"})),this.helpTopics.push(new wr({question:"Lightning Transactions - Invoices",answer:'Receiving Payments on your node.\nGo to the "Transactions" page under the "Lightning" menu :\nInvoices tab is for receiving payments on your node.\n 1. Memo - Description you want to provide on the invoice.\n 2. Expiry - The time period, after which the invoice will be invalid.\n 3. Private Routing Hints - Generate an invoice with routing hints for private channels.\n',link:"transactions",linkCaption:"Transactions page",lnImplementation:"ALL"})),this.helpTopics.push(new wr({question:"Lightning Transactions - Query Route",answer:'Querying Payment Routes.\nGo to the "Transactions" page under the "Lightning" menu :\nQuery Routes tab is for querying a potential path to a node and a routing fee estimate for a payment amount.\n 1. Destination Pubkey - Pubkey of the node, you want to send the payment to.\n 2. Amount - Amount in Sats, which you want to send to the node.\n',link:"transactions",linkCaption:"Transactions page",lnImplementation:"ALL"})),this.helpTopics.push(new 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:"backup",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:"backup",linkCaption:"Channel Backups",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:"routing",linkCaption:"Forwarding History",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:"lookups",linkCaption:"Graph Lookup page",lnImplementation:"ALL"})),this.helpTopics.push(new wr({question:"Settings",answer:'RTL Offers certain customizations on the UI to personalize your experience on the app\nGo to "Settings" page to access the customization options.\nNode Layout Options\n 1. User Persona - Two options are available to change the dashboard based on the persona.\n 2. Currency Unit - You can choose your preferred fiat currency, to view the onchain and channel balances in the choosen fiat currency.\n 3. Default Node - If you are managing multiple nodes via RTL UI, you can select the default node to load upon login.\nOther Customizations include day and night mode and a choice of color themes to select from.\n',lnImplementation:"ALL"}))}ngOnInit(){this.store.select(n.dT).pipe((0,x.R)(this.unSubs[0])).subscribe(K=>{var We;switch(this.selNode=K,null===(We=this.selNode.lnImplementation)||void 0===We?void 0:We.toUpperCase()){case"CLN":this.LNPLink="/cln/";break;case"ECL":this.LNPLink="/ecl/";break;default:this.LNPLink="/lnd/"}}),this.sessionService.watchSession().pipe((0,x.R)(this.unSubs[1])).subscribe(K=>{this.flgLoggedIn=!!K.token}),this.sessionService.getItem("token")&&(this.flgLoggedIn=!0)}ngOnDestroy(){this.unSubs.forEach(K=>{K.next(null),K.complete()})}}return _e.\u0275fac=function(K){return new(K||_e)(i.Y36(y.yh),i.Y36(we.m))},_e.\u0275cmp=i.Xpm({type:_e,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(K,We){1&K&&(i.TgZ(0,"div",0)(1,"div",1),i._UZ(2,"fa-icon",2),i.TgZ(3,"span",3),i._uU(4,"Help"),i.qZA()(),i.TgZ(5,"div",4)(6,"div",0),i.YNc(7,jr,2,1,"div",5),i.qZA()()()),2&K&&(i.xp6(2),i.Q6J("icon",We.faQuestion),i.xp6(5),i.Q6J("ngForOf",We.helpTopics))},directives:[g.xw,g.yH,g.Wh,V.BN,$.sg,$.O5,lr.ib,lr.yz,lr.yK,lr.u4,I.yS],styles:[".mat-card-content[_ngcontent-%COMP%]{margin-bottom:4px}"]}),_e})();var Nr=p(9841);function Ur(_e,Xe){1&_e&&(i.TgZ(0,"mat-error"),i._uU(1,"Token is required."),i.qZA())}let mr=(()=>{class _e{constructor(K,We){this.dialogRef=K,this.store=We,this.faUserClock=_.hnx,this.token=""}onClose(){this.dialogRef.close(null)}onVerifyToken(){if(!this.token)return!0;this.dialogRef.close(),this.store.dispatch((0,ze.M6)({payload:{twoFAToken:this.token}}))}}return _e.\u0275fac=function(K){return new(K||_e)(i.Y36(Le.so),i.Y36(y.yh))},_e.\u0275cmp=i.Xpm({type:_e,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(K,We){1&K&&(i.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),i._uU(5,"Two Factor Token"),i.qZA()(),i.TgZ(6,"button",5),i.NdJ("click",function(){return We.onClose()}),i._uU(7,"X"),i.qZA()(),i.TgZ(8,"mat-card-content",6)(9,"form",7,8),i.NdJ("ngSubmit",function(){return We.onVerifyToken()}),i.TgZ(11,"mat-form-field")(12,"input",9),i.NdJ("ngModelChange",function(Ce){return We.token=Ce}),i.qZA(),i.YNc(13,Ur,2,0,"mat-error",10),i.qZA(),i.TgZ(14,"div",11)(15,"button",12),i._uU(16,"Verify Token"),i.qZA()()()()()()),2&K&&(i.xp6(12),i.Q6J("ngModel",We.token),i.xp6(1),i.Q6J("ngIf",!We.token))},directives:[g.xw,g.Wh,g.yH,R.dk,Te.lW,R.dn,Y._Y,Y.JL,Y.F,ot.KE,jt.Nt,Y.Fj,Ae.h,Y.Q7,Y.JJ,Y.On,$.O5,ot.TO],styles:[""]}),_e})();var gr=p(5245);function ra(_e,Xe){1&_e&&(i.TgZ(0,"mat-error"),i._uU(1,"Password is required."),i.qZA())}function ca(_e,Xe){if(1&_e&&(i.TgZ(0,"p",21)(1,"mat-icon",22),i._uU(2,"close"),i.qZA(),i._uU(3),i.qZA()),2&_e){const K=i.oxw();i.xp6(3),i.hij(" ",K.loginErrorMessage," ")}}const da=function(_e){return{"padding-gap-large":_e}},Jn=function(_e,Xe){return{"font-size-200":_e,"font-size-300":Xe}};let ga=(()=>{class _e{constructor(K,We,Bt,Ce){this.logger=K,this.store=We,this.rtlEffects=Bt,this.commonService=Ce,this.faUnlockAlt=_.B$L,this.password="",this.rtlSSO=0,this.rtlCookiePath="",this.accessKey="",this.flgShow=!1,this.screenSize="",this.screenSizeEnum=te.cu,this.loginErrorMessage="",this.apiCallStatusEnum=te.Bn,this.unSubs=[new D.x,new D.x,new D.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),(0,Nr.a)([this.store.select(n.ul),this.store.select(n.Sr)]).pipe((0,x.R)(this.unSubs[0])).subscribe(([K,We])=>{this.loginErrorMessage="",K.status===te.Bn.ERROR&&(this.loginErrorMessage=this.loginErrorMessage+("object"==typeof K.message?JSON.stringify(K.message):K.message),this.logger.error(K.message)),We.status===te.Bn.ERROR&&(this.loginErrorMessage=this.loginErrorMessage+("object"==typeof We.message?JSON.stringify(We.message):We.message),this.logger.error(We.message))}),this.store.select(n.Yj).pipe((0,x.R)(this.unSubs[1])).subscribe(K=>{this.appConfig=K,this.logger.info(K)})}onLogin(){if(!this.password)return!0;this.loginErrorMessage="",this.appConfig.enable2FA?(this.store.dispatch((0,ze.qR)({payload:{maxWidth:"35rem",data:{component:mr}}})),this.rtlEffects.closeAlert.pipe((0,ve.q)(1)).subscribe(K=>{K&&this.store.dispatch((0,ze.x4)({payload:{password:ue(this.password),defaultPassword:te.kO.includes(this.password.toLowerCase()),twoFAToken:K.twoFAToken}}))})):this.store.dispatch((0,ze.x4)({payload:{password:ue(this.password),defaultPassword:te.kO.includes(this.password.toLowerCase())}}))}resetData(){this.password="",this.loginErrorMessage="",this.flgShow=!1}ngOnDestroy(){this.unSubs.forEach(K=>{K.next(null),K.complete()})}}return _e.\u0275fac=function(K){return new(K||_e)(i.Y36(be.mQ),i.Y36(y.yh),i.Y36(ht.V),i.Y36(Nt.v))},_e.\u0275cmp=i.Xpm({type:_e,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(K,We){1&K&&(i.TgZ(0,"div",0)(1,"div",1)(2,"mat-card",2)(3,"div",3)(4,"div",4),i._UZ(5,"img",5),i.qZA(),i.TgZ(6,"div",6)(7,"mat-card-header",7)(8,"mat-card-title",8)(9,"span",9),i._uU(10,"Welcome"),i.qZA()()(),i.TgZ(11,"mat-card-content",10)(12,"form",11,12)(14,"mat-form-field",13)(15,"input",14),i.NdJ("ngModelChange",function(Ce){return We.password=Ce}),i.qZA(),i.TgZ(16,"mat-icon",15),i.NdJ("click",function(){return We.flgShow=!We.flgShow}),i._uU(17),i.qZA(),i.YNc(18,ra,2,0,"mat-error",16),i.qZA(),i.YNc(19,ca,4,1,"p",17),i.TgZ(20,"div",18)(21,"button",19),i.NdJ("click",function(){return We.resetData()}),i._uU(22,"Clear"),i.qZA(),i.TgZ(23,"button",20),i.NdJ("click",function(){return We.onLogin()}),i._uU(24,"Login"),i.qZA()()()()()()()()()),2&K&&(i.xp6(6),i.Q6J("ngClass",i.VKq(7,da,We.screenSize===We.screenSizeEnum.XS)),i.xp6(2),i.Q6J("ngClass",i.WLB(9,Jn,We.screenSize===We.screenSizeEnum.XS,We.screenSize!==We.screenSizeEnum.XS)),i.xp6(7),i.Q6J("type",We.flgShow?"text":"password")("ngModel",We.password),i.xp6(2),i.Oqu(We.flgShow?"visibility_off":"visibility"),i.xp6(1),i.Q6J("ngIf",!We.password),i.xp6(1),i.Q6J("ngIf",""!==We.loginErrorMessage))},directives:[g.xw,g.yH,g.Wh,R.a8,$.mk,Ri.oO,R.dk,R.n5,R.dn,Y._Y,Y.JL,Y.F,ot.KE,jt.Nt,Y.Fj,Ae.h,Y.Q7,Y.JJ,Y.On,gr.Hw,ot.R9,$.O5,ot.TO,Te.lW],styles:[".login-container[_ngcontent-%COMP%]{height:90vh}.login-container[_ngcontent-%COMP%] .mat-card[_ngcontent-%COMP%]{height:30rem}.login-container[_ngcontent-%COMP%] .rtl-logo-svg[_ngcontent-%COMP%]{width:100%}@media only screen and (max-width: 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}"]}),_e})();var Ma=p(9442);let $n=(()=>{class _e{constructor(K,We){this.activatedRoute=K,this.router=We,this.error={errorCode:"",errorMessage:""},this.faTimes=_.NBC,this.unsubs=[new D.x,new D.x]}ngOnInit(){this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.activatedRoute.paramMap.pipe((0,x.R)(this.unsubs[0])).subscribe(K=>{this.error=window.history.state})}goToHelp(){this.router.navigate(["/help"])}}return _e.\u0275fac=function(K){return new(K||_e)(i.Y36(I.gz),i.Y36(I.F0))},_e.\u0275cmp=i.Xpm({type:_e,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(K,We){1&K&&(i.TgZ(0,"div",0)(1,"mat-card",1)(2,"mat-card-header",2)(3,"mat-card-title",3),i._UZ(4,"fa-icon",4),i.TgZ(5,"span",5),i._uU(6),i.qZA()()(),i.TgZ(7,"mat-card-content",6)(8,"div",7),i._uU(9),i.qZA(),i.TgZ(10,"span",8)(11,"button",9),i.NdJ("click",function(){return We.goToHelp()}),i._uU(12,"Go To Help"),i.qZA()()()()()),2&K&&(i.xp6(4),i.Q6J("icon",We.faTimes),i.xp6(2),i.hij("Error ",We.error.errorCode,""),i.xp6(3),i.Oqu(We.error.errorMessage))},directives:[g.xw,g.yH,g.Wh,R.a8,R.dk,R.n5,V.BN,R.dn,Te.lW],encapsulation:2}),_e})();var qn=p(1643),Hr=p(9828),br=p(8104),Fr=p(6534),ha=p(9843);function Aa(_e,Xe){1&_e&&i._UZ(0,"span",16)}function Wn(_e,Xe){1&_e&&i._UZ(0,"span",17)}function je(_e,Xe){if(1&_e){const K=i.EpF();i.TgZ(0,"form",18,4)(2,"div",19),i._UZ(3,"fa-icon",2),i.TgZ(4,"span"),i._uU(5,"Please ensure that "),i.TgZ(6,"strong"),i._uU(7,"experimental-offers"),i.qZA(),i._uU(8," flag is set to true in the Core Lightning config before enabling it in RTL. Click "),i.TgZ(9,"strong")(10,"a",20),i._uU(11,"here"),i.qZA()(),i._uU(12," to learn more about Core Lightning offers."),i.qZA()(),i.TgZ(13,"h4",21),i._uU(14,"Description"),i.qZA(),i.TgZ(15,"span"),i._uU(16,"Offers is a draft specification (also referred as BOLT12) for Lightning nodes and wallets, with experimental support in Core Lightning."),i.qZA(),i.TgZ(17,"h4",21),i._uU(18,"Links"),i.qZA(),i.TgZ(19,"span")(20,"a",22),i._uU(21,"Core lightning Bolt12"),i.qZA()(),i._UZ(22,"mat-divider",23),i.TgZ(23,"div",24),i._UZ(24,"fa-icon",2),i.TgZ(25,"span"),i._uU(26,"Do not get an Offer tattoo until spec is fully ratified!"),i.qZA()(),i.TgZ(27,"mat-slide-toggle",25),i.NdJ("ngModelChange",function(Bt){return i.CHM(K),i.oxw(2).enableOffers=Bt})("change",function(){return i.CHM(K),i.oxw(2).onUpdateFeature()}),i._uU(28),i.qZA()()}if(2&_e){const K=i.oxw(2);i.xp6(3),i.Q6J("icon",K.faInfoCircle),i.xp6(19),i.Q6J("inset",!0),i.xp6(2),i.Q6J("icon",K.faExclamationTriangle),i.xp6(3),i.Q6J("ngModel",K.enableOffers),i.xp6(1),i.hij("Enable Offers ",K.enableOffers?"(You can find Offers under Lightning -> Transactions -> Offers)":"","")}}function Mt(_e,Xe){if(1&_e&&(i.TgZ(0,"div")(1,"div",28),i._UZ(2,"fa-icon",2),i.TgZ(3,"span"),i._uU(4,"Please ensure that "),i.TgZ(5,"strong"),i._uU(6,"experimental-dual-fund"),i.qZA(),i._uU(7," flag is set to true in the Core Lightning config before enabling it in RTL. Click "),i.TgZ(8,"strong")(9,"a",29),i._uU(10,"here"),i.qZA()(),i._uU(11," to learn more about Core Lightning Liquidity Ads."),i.qZA()()()),2&_e){const K=i.oxw(3);i.xp6(2),i.Q6J("icon",K.faExclamationTriangle)}}function Ye(_e,Xe){if(1&_e&&(i.TgZ(0,"mat-option",47),i._uU(1),i.ALo(2,"titlecase"),i.qZA()),2&_e){const K=Xe.$implicit;i.Q6J("value",K),i.xp6(1),i.hij(" ",i.lcZ(2,2,K.id)," ")}}function Ot(_e,Xe){if(1&_e&&(i.TgZ(0,"mat-error"),i._uU(1),i.qZA()),2&_e){const K=i.oxw(4);i.xp6(1),i.hij("",K.selPolicyType.placeholder," is required.")}}function ri(_e,Xe){if(1&_e&&(i.TgZ(0,"mat-error"),i._uU(1),i.qZA()),2&_e){const K=i.oxw(4);i.xp6(1),i.AsE("",K.selPolicyType.placeholder," must be greater than or equal to ",K.selPolicyType.min,".")}}function Si(_e,Xe){if(1&_e&&(i.TgZ(0,"mat-error"),i._uU(1),i.qZA()),2&_e){const K=i.oxw(4);i.xp6(1),i.AsE("",K.selPolicyType.placeholder," must be less than or equal to ",K.selPolicyType.max,".")}}function Oi(_e,Xe){1&_e&&(i.TgZ(0,"mat-error"),i._uU(1,"Lease base fee is required."),i.qZA())}function rn(_e,Xe){1&_e&&(i.TgZ(0,"mat-error"),i._uU(1,"Lease base basis is required."),i.qZA())}function Yn(_e,Xe){1&_e&&(i.TgZ(0,"mat-error"),i._uU(1,"Max channel routing base fee is required."),i.qZA())}function At(_e,Xe){1&_e&&(i.TgZ(0,"mat-error"),i._uU(1,"Max channel routing fee rate is required."),i.qZA())}const oi=function(_e,Xe){return{"alert-danger":_e,"alert-info":Xe}};function mt(_e,Xe){if(1&_e&&(i.TgZ(0,"h4",48)(1,"span",49),i._uU(2),i.qZA()()),2&_e){const K=i.oxw(4);i.xp6(1),i.Q6J("ngClass",i.WLB(2,oi,!!K.updateMsg.error,!!K.updateMsg.data)),i.xp6(1),i.hij(" ",K.updateMsg.error&&""!==K.updateMsg.error?"Error: "+K.updateMsg.error||0:K.updateMsg.data&&""!==K.updateMsg.data?K.updateMsg.data:"Successfully Updated the Funding Policy!"," ")}}function $t(_e,Xe){if(1&_e){const K=i.EpF();i.TgZ(0,"div",30)(1,"div",31),i._UZ(2,"fa-icon",2),i.TgZ(3,"span"),i._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."),i.qZA()(),i.TgZ(5,"div",32)(6,"mat-form-field",33)(7,"mat-select",34),i.NdJ("ngModelChange",function(Bt){return i.CHM(K),i.oxw(3).selPolicyType=Bt})("selectionChange",function(){return i.CHM(K),i.oxw(3).policyMod=null}),i.YNc(8,Ye,3,4,"mat-option",35),i.qZA()(),i.TgZ(9,"mat-form-field",36)(10,"input",37,38),i.NdJ("ngModelChange",function(Bt){return i.CHM(K),i.oxw(3).policyMod=Bt}),i.qZA(),i.TgZ(12,"mat-hint"),i._uU(13),i.qZA(),i.YNc(14,Ot,2,1,"mat-error",26),i.YNc(15,ri,2,2,"mat-error",26),i.YNc(16,Si,2,2,"mat-error",26),i.qZA()(),i.TgZ(17,"div",32)(18,"mat-form-field",36)(19,"input",39),i.NdJ("ngModelChange",function(Bt){return i.CHM(K),i.oxw(3).leaseFeeBaseSat=Bt}),i.qZA(),i.YNc(20,Oi,2,0,"mat-error",26),i.qZA(),i.TgZ(21,"mat-form-field",36)(22,"input",40),i.NdJ("ngModelChange",function(Bt){return i.CHM(K),i.oxw(3).leaseFeeBasis=Bt}),i.qZA(),i.YNc(23,rn,2,0,"mat-error",26),i.qZA()(),i.TgZ(24,"div",32)(25,"mat-form-field",36)(26,"input",41),i.NdJ("ngModelChange",function(Bt){return i.CHM(K),i.oxw(3).channelFeeMaxBaseSat=Bt}),i.qZA(),i.YNc(27,Yn,2,0,"mat-error",26),i.qZA(),i.TgZ(28,"mat-form-field",36)(29,"input",42),i.NdJ("ngModelChange",function(Bt){return i.CHM(K),i.oxw(3).channelFeeMaxProportional=Bt}),i.qZA(),i.YNc(30,At,2,0,"mat-error",26),i.qZA()(),i.YNc(31,mt,3,5,"h4",43),i.TgZ(32,"div",44)(33,"button",45),i.NdJ("click",function(){return i.CHM(K),i.oxw(3).onResetPolicy()}),i._uU(34,"Reset"),i.qZA(),i.TgZ(35,"button",46),i.NdJ("click",function(){return i.CHM(K),i.oxw(3).onUpdateFundingPolicy()}),i._uU(36,"Update"),i.qZA()()()}if(2&_e){const K=i.oxw(3);i.xp6(2),i.Q6J("icon",K.faExclamationTriangle),i.xp6(5),i.Q6J("ngModel",K.selPolicyType),i.xp6(1),i.Q6J("ngForOf",K.policyTypes),i.xp6(2),i.Q6J("ngModel",K.policyMod)("placeholder",K.selPolicyType.placeholder)("step","fixed"===K.selPolicyType.id?1e3:10)("min",K.selPolicyType.min)("max",K.selPolicyType.max),i.xp6(3),i.lnq("",K.selPolicyType.placeholder," should be between ",K.selPolicyType.min," and ",K.selPolicyType.max,""),i.xp6(1),i.Q6J("ngIf",!K.policyMod),i.xp6(1),i.Q6J("ngIf",K.policyMod<K.selPolicyType.min),i.xp6(1),i.Q6J("ngIf",K.policyMod>K.selPolicyType.max),i.xp6(3),i.Q6J("ngModel",K.leaseFeeBaseSat),i.xp6(1),i.Q6J("ngIf",!K.leaseFeeBaseSat),i.xp6(2),i.Q6J("ngModel",K.leaseFeeBasis),i.xp6(1),i.Q6J("ngIf",!K.leaseFeeBasis),i.xp6(3),i.Q6J("ngModel",K.channelFeeMaxBaseSat),i.xp6(1),i.Q6J("ngIf",!K.channelFeeMaxBaseSat),i.xp6(2),i.Q6J("ngModel",K.channelFeeMaxProportional),i.xp6(1),i.Q6J("ngIf",!K.channelFeeMaxProportional),i.xp6(1),i.Q6J("ngIf",K.flgUpdateCalled)}}function Ai(_e,Xe){if(1&_e&&(i.TgZ(0,"form",18,4),i.YNc(2,Mt,12,1,"div",26),i.YNc(3,$t,37,23,"div",27),i.qZA()),2&_e){const K=i.oxw(2);i.xp6(2),i.Q6J("ngIf",!K.features[1].enabled),i.xp6(1),i.Q6J("ngIf",K.features[1].enabled)}}function ji(_e,Xe){if(1&_e){const K=i.EpF();i.TgZ(0,"mat-expansion-panel",9),i.NdJ("opened",function(){const Ce=i.CHM(K).index;return i.oxw().onPanelExpanded(Ce)}),i.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title",10)(3,"h4",11),i._uU(4),i.qZA(),i.TgZ(5,"h4",11),i.YNc(6,Aa,1,0,"span",12),i.YNc(7,Wn,1,0,"span",13),i._uU(8),i.qZA()()(),i.TgZ(9,"div",14),i.YNc(10,je,29,5,"form",15),i.YNc(11,Ai,4,2,"form",15),i.qZA()()}if(2&_e){const K=Xe.$implicit,We=Xe.index;i.Q6J("expanded",!1),i.xp6(4),i.Oqu(K.name),i.xp6(2),i.Q6J("ngIf",K.enabled),i.xp6(1),i.Q6J("ngIf",!K.enabled),i.xp6(1),i.hij(" ",K.enabled?"Enabled":"Disabled"," "),i.xp6(2),i.Q6J("ngIf",0===We),i.xp6(1),i.Q6J("ngIf",1===We)}}let Ke=(()=>{class _e{constructor(K,We,Bt,Ce){this.logger=K,this.store=We,this.dataService=Bt,this.commonService=Ce,this.faInfoCircle=_.sqG,this.faExclamationTriangle=_.eHv,this.faCode=_.dT$,this.features=[{name:"Offers",enabled:!1},{name:"Channel Funding Policy",enabled:!1}],this.enableOffers=!1,this.fundingPolicy={},this.policyTypes=te.gB,this.selPolicyType=te.gB[0],this.flgUpdateCalled=!1,this.updateMsg={},this.unSubs=[new D.x,new D.x,new D.x,new D.x,new D.x]}ngOnInit(){this.dataService.listConfigs().pipe((0,x.R)(this.unSubs[0])).subscribe({next:K=>{this.logger.info("Received List Configs: "+JSON.stringify(K)),this.features[1].enabled=!!K["experimental-dual-fund"]},error:K=>{this.logger.error("List Configs Error: "+JSON.stringify(K)),this.features[1].enabled=!1}}),this.store.select(n.dT).pipe((0,x.R)(this.unSubs[1])).subscribe(K=>{this.selNode=K,this.enableOffers=this.selNode.settings.enableOffers||!1,this.features[0].enabled=this.enableOffers,this.logger.info(this.selNode)}),this.store.select(Hr.Rn).pipe((0,x.R)(this.unSubs[2])).subscribe(K=>{this.policyTypes[2].max=K.balance.totalBalance||1e3})}onPanelExpanded(K){1===K&&!this.fundingPolicy.policy&&this.dataService.getOrUpdateFunderPolicy().pipe((0,x.R)(this.unSubs[3])).subscribe(We=>{this.logger.info("Received Funder Update Policy: "+JSON.stringify(We)),this.fundingPolicy=We,this.fundingPolicy.policy&&(this.selPolicyType=te.gB.find(Bt=>Bt.id===this.fundingPolicy.policy)||this.policyTypes[0]),this.policyMod=this.fundingPolicy.policy_mod||0===this.fundingPolicy.policy_mod?this.fundingPolicy.policy_mod:null,this.leaseFeeBaseSat=this.fundingPolicy.lease_fee_base_msat?this.fundingPolicy.lease_fee_base_msat/1e3:0===this.fundingPolicy.lease_fee_base_msat?0:null,this.leaseFeeBasis=this.fundingPolicy.lease_fee_basis||0===this.fundingPolicy.lease_fee_basis?this.fundingPolicy.lease_fee_basis:null,this.channelFeeMaxBaseSat=this.fundingPolicy.channel_fee_max_base_msat?this.fundingPolicy.channel_fee_max_base_msat/1e3:0===this.fundingPolicy.channel_fee_max_base_msat?0:null,this.channelFeeMaxProportional=this.fundingPolicy.channel_fee_max_proportional_thousandths||0===this.fundingPolicy.channel_fee_max_proportional_thousandths?1e3*this.fundingPolicy.channel_fee_max_proportional_thousandths:null})}onUpdateFeature(){this.logger.info(this.selNode),this.selNode.settings.enableOffers=this.enableOffers,this.features[0].enabled=this.enableOffers,this.store.dispatch((0,ze.jS)({payload:{uiMessage:te.m6.UPDATE_SETTING,service:te.JX.OFFERS,settings:{enableOffers:this.enableOffers}}})),this.store.dispatch((0,Je.JT)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.enableOffers}})),this.store.dispatch((0,Mi.oo)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.enableOffers}})),this.store.dispatch((0,Yt.Zr)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.enableOffers}}))}onUpdateFundingPolicy(){this.flgUpdateCalled=!0,this.updateMsg={},this.dataService.getOrUpdateFunderPolicy(this.selPolicyType.id,this.policyMod,this.leaseFeeBaseSat,this.leaseFeeBasis,1e3*(this.channelFeeMaxBaseSat||0),this.channelFeeMaxProportional?this.channelFeeMaxProportional/1e3:0).pipe((0,x.R)(this.unSubs[4])).subscribe({next:K=>{this.logger.info(K),this.fundingPolicy=K,this.updateMsg={data:"Compact Lease: "+K.compact_lease},setTimeout(()=>{this.flgUpdateCalled=!1},5e3)},error:K=>{this.logger.error(K),this.updateMsg={error:this.commonService.extractErrorMessage(K,"Error in updating funder policy")},setTimeout(()=>{this.flgUpdateCalled=!1},5e3)}})}onResetPolicy(){this.flgUpdateCalled=!1,this.updateMsg={},this.selPolicyType=this.fundingPolicy.policy?te.gB.find(K=>K.id===this.fundingPolicy.policy)||this.policyTypes[0]:te.gB[0],this.policyMod=this.fundingPolicy.policy_mod||0===this.fundingPolicy.policy_mod?this.fundingPolicy.policy_mod:null,this.leaseFeeBaseSat=this.fundingPolicy.lease_fee_base_msat?this.fundingPolicy.lease_fee_base_msat/1e3:0===this.fundingPolicy.lease_fee_base_msat?0:null,this.leaseFeeBasis=this.fundingPolicy.lease_fee_basis||0===this.fundingPolicy.lease_fee_basis?this.fundingPolicy.lease_fee_basis:null,this.channelFeeMaxBaseSat=this.fundingPolicy.channel_fee_max_base_msat?this.fundingPolicy.channel_fee_max_base_msat/1e3:0===this.fundingPolicy.channel_fee_max_base_msat?0:null,this.channelFeeMaxProportional=this.fundingPolicy.channel_fee_max_proportional_thousandths||0===this.fundingPolicy.channel_fee_max_proportional_thousandths?1e3*this.fundingPolicy.channel_fee_max_proportional_thousandths:null}ngOnDestroy(){this.unSubs.forEach(K=>{K.next(null),K.complete()})}}return _e.\u0275fac=function(K){return new(K||_e)(i.Y36(be.mQ),i.Y36(y.yh),i.Y36(br.D),i.Y36(Nt.v))},_e.\u0275cmp=i.Xpm({type:_e,selectors:[["rtl-experimental-settings"]],decls:13,vars:3,consts:[["fxLayout","column","fxFlex","100",3,"perfectScrollbar"],["fxFlex","100",1,"alert","alert-info","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column","fxLayoutAlign","start stretch",1,"page-sub-title-container","mt-1"],["form","ngForm"],["fxLayout","row"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["class","flat-expansion-panel my-1",3,"expanded","opened",4,"ngFor","ngForOf"],[1,"flat-expansion-panel","my-1",3,"expanded","opened"],["fxFlex","100","fxLayoutAlign","space-between center"],[1,"font-bold-500"],["class","dot green",4,"ngIf"],["class","dot yellow",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch","class","page-sub-title-container",4,"ngIf"],[1,"dot","green"],[1,"dot","yellow"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","100",1,"alert","alert-info"],["href","http://bolt12.org","target","_blank"],[1,"mt-2"],["href","https://github.com/lightningnetwork/lightning-rfc/pull/798 ","target","blank"],[1,"my-2",3,"inset"],[1,"alert","alert-warn"],["autoFocus","","tabindex","1","color","primary","name","enableOfr",1,"my-1",3,"ngModel","ngModelChange","change"],[4,"ngIf"],["fxLayout","column",4,"ngIf"],["fxFlex","100","fxLayout","row",1,"alert","alert-warn"],["href","https://medium.com/blockstream/setting-up-liquidity-ads-in-c-lightning-54e4c59c091d","target","_blank"],["fxLayout","column"],["fxFlex","100","fxLayout","row",1,"alert","alert-warn","mb-2"],["fxLayout","column","fxLayout.gt-sm","row","fxFlex","100","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch"],["fxFlex","49","fxLayoutAlign","start end"],["autofocus","","tabindex","1","placeholder","Policy","name","policy",3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","49"],["matInput","","type","number","tabindex","2","required","","name","plcMod",3,"ngModel","placeholder","step","min","max","ngModelChange"],["plcMod","ngModel"],["matInput","","placeholder","Lease Base Fee (Sats)","type","number","step","100","min","0","tabindex","3","required","","name","leaseFeeBaseSat",3,"ngModel","ngModelChange"],["matInput","","placeholder","Lease Base Basis (bps)","type","number","step","1","min","0","tabindex","4","required","","name","leaseFeeBasis",3,"ngModel","ngModelChange"],["matInput","","placeholder","Max Channel Routing Base Fee (Sats)","type","number","step","100","min","0","tabindex","5","required","","name","channelFeeMaxBaseSat",3,"ngModel","ngModelChange"],["matInput","","placeholder","Max Channel Routing Fee Rate (ppm)","type","number","step","1000","min","0","tabindex","6","required","","name","channelFeeMaxProportional",3,"ngModel","ngModelChange"],["fxLayoutAlign","start stretch","class","font-bold-500 mt-2",4,"ngIf"],["fxLayout","row",1,"my-1"],["mat-stroked-button","","color","primary","tabindex","7",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","8",3,"click"],[3,"value"],["fxLayoutAlign","start stretch",1,"font-bold-500","mt-2"],["fxFlex","100",1,"alert",3,"ngClass"]],template:function(K,We){1&K&&(i.TgZ(0,"div",0)(1,"div",1),i._UZ(2,"fa-icon",2),i.TgZ(3,"span"),i._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."),i.qZA()(),i.TgZ(5,"form",3,4)(7,"div",5),i._UZ(8,"fa-icon",6),i.TgZ(9,"span",7),i._uU(10,"Features"),i.qZA()(),i.TgZ(11,"mat-accordion"),i.YNc(12,ji,12,7,"mat-expansion-panel",8),i.qZA()()()),2&K&&(i.xp6(2),i.Q6J("icon",We.faInfoCircle),i.xp6(6),i.Q6J("icon",We.faCode),i.xp6(4),i.Q6J("ngForOf",We.features))},directives:[g.xw,g.yH,Z.$V,V.BN,Y._Y,Y.JL,Y.F,g.Wh,lr.pp,$.sg,lr.ib,lr.yz,lr.yK,$.O5,Fe.d,Kt.Rr,Ae.h,Y.JJ,Y.On,ot.KE,Ie.gD,ce.ey,jt.Nt,Y.wV,Y.qQ,Y.Fd,Y.Fj,Fr.q,ha.F,Y.Q7,ot.bx,ot.TO,$.mk,Ri.oO,Te.lW],pipes:[$.rS],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),_e})();const Lt=I.Bz.forRoot([{path:"",pathMatch:"full",redirectTo:"login"},{path:"lnd",loadChildren:()=>Promise.all([p.e(508),p.e(515)]).then(p.bind(p,1515)).then(_e=>_e.LNDModule),canActivate:[qn.a1]},{path:"cln",loadChildren:()=>Promise.all([p.e(508),p.e(253)]).then(p.bind(p,253)).then(_e=>_e.CLNModule),canActivate:[qn.a1]},{path:"ecl",loadChildren:()=>Promise.all([p.e(508),p.e(924)]).then(p.bind(p,7924)).then(_e=>_e.ECLModule),canActivate:[qn.a1]},{path:"settings",component:Ee,canActivate:[qn.a1],children:[{path:"",pathMatch:"full",redirectTo:"app"},{path:"app",component:ee,canActivate:[qn.a1]},{path:"auth",component:Jt,canActivate:[qn.a1]},{path:"bconfig",component:Ft,canActivate:[qn.a1]}]},{path:"config",component:$e,canActivate:[qn.a1],children:[{path:"",pathMatch:"full",redirectTo:"layout"},{path:"layout",component:Yi,canActivate:[qn.a1]},{path:"services",component:Pr,canActivate:[qn.a1],children:[{path:"",pathMatch:"full",redirectTo:"loop"},{path:"loop",component:Ta,canActivate:[qn.a1]},{path:"boltz",component:qr,canActivate:[qn.a1]},{path:"peerswap",component:(()=>{class _e{constructor(K,We){this.logger=K,this.store=We,this.faInfoCircle=_.sqG,this.enablePeerswap=!1,this.unSubs=[new D.x,new D.x]}ngOnInit(){this.store.select(n.dT).pipe((0,x.R)(this.unSubs[0])).subscribe(K=>{this.selNode=K,this.enablePeerswap=!!(null==K?void 0:K.settings.enablePeerswap),this.logger.info(K)})}onUpdateService(){this.store.dispatch((0,ze.jS)({payload:{uiMessage:te.m6.UPDATE_PEERSWAP_SETTINGS,service:te.JX.PEERSWAP,settings:{enablePeerswap:this.enablePeerswap}}})),this.store.dispatch((0,Je.JT)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.selNode.settings.enableOffers,enablePeerswap:this.selNode.settings.enablePeerswap}})),this.store.dispatch((0,Mi.oo)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.selNode.settings.enableOffers,enablePeerswap:this.selNode.settings.enablePeerswap}})),this.store.dispatch((0,Yt.Zr)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.selNode.settings.enableOffers,enablePeerswap:this.selNode.settings.enablePeerswap}}))}ngOnDestroy(){this.unSubs.forEach(K=>{K.next(),K.complete()})}}return _e.\u0275fac=function(K){return new(K||_e)(i.Y36(be.mQ),i.Y36(y.yh))},_e.\u0275cmp=i.Xpm({type:_e,selectors:[["rtl-peerswap-service-settings"]],decls:20,vars:2,consts:[["fxLayout","column","fxFlex","100",3,"perfectScrollbar"],["fxFlex","100",1,"alert","alert-info","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["href","https://www.peerswap.dev/","target","_blank"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"settings-container","page-sub-title-container","mt-1"],["form","ngForm"],["fxLayout","column","fxFlex","50","fxLayoutAlign","start stretch"],["autoFocus","","tabindex","1","color","primary","name","peerswap",1,"mb-1",3,"ngModel","ngModelChange"],["fxLayout","row",1,"mt-2"],["mat-flat-button","","color","primary","type","submit","tabindex","5",3,"click"]],template:function(K,We){1&K&&(i.TgZ(0,"div",0)(1,"div",1),i._UZ(2,"fa-icon",2),i.TgZ(3,"span"),i._uU(4,"Please ensure that "),i.TgZ(5,"strong"),i._uU(6,"peerswapd"),i.qZA(),i._uU(7," is running and accessible to RTL before enabling this service. Click "),i.TgZ(8,"strong")(9,"a",3),i._uU(10,"here"),i.qZA()(),i._uU(11," to learn more about peerswap."),i.qZA()(),i.TgZ(12,"form",4,5)(14,"div",6)(15,"mat-slide-toggle",7),i.NdJ("ngModelChange",function(Ce){return We.enablePeerswap=Ce}),i._uU(16,"Enable Peerswap Service"),i.qZA()()(),i.TgZ(17,"div",8)(18,"button",9),i.NdJ("click",function(){return We.onUpdateService()}),i._uU(19,"Update"),i.qZA()()()),2&K&&(i.xp6(2),i.Q6J("icon",We.faInfoCircle),i.xp6(13),i.Q6J("ngModel",We.enablePeerswap))},directives:[g.xw,g.yH,Z.$V,V.BN,Y._Y,Y.JL,Y.F,g.Wh,Kt.Rr,Ae.h,Y.JJ,Y.On,Te.lW],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),_e})(),canActivate:[qn.a1]}]},{path:"experimental",component:Ke,canActivate:[qn.a1]},{path:"lnconfig",component:mn,canActivate:[qn.a1]}]},{path:"help",component:Dr},{path:"login",component:ga},{path:"error",component:$n},{path:"**",component:Ma.w}]);var vi=p(8750),$i=p(8878),Nn=p(4594),Sr=p(7238),Ca=p(2340),Jr=p(2181);function $a(_e,Xe){if(1&_e&&(i.TgZ(0,"p",2),i._UZ(1,"fa-icon",3),i.TgZ(2,"span"),i._uU(3),i.qZA()()),2&_e){const K=i.oxw();i.xp6(1),i.Q6J("icon",K.faCode),i.xp6(2),i.hij("API Version: ",null==K.information?null:K.information.api_version,"")}}function Hi(_e,Xe){if(1&_e&&(i.TgZ(0,"a",11),i._UZ(1,"fa-icon",3),i.TgZ(2,"span",12),i._uU(3,"Settings"),i.qZA()()),2&_e){const K=i.oxw();i.xp6(1),i.Q6J("icon",K.faUserCog)}}function Vn(_e,Xe){if(1&_e&&(i.TgZ(0,"a",13),i._UZ(1,"fa-icon",3),i.TgZ(2,"span",14),i._uU(3,"Help"),i.qZA()()),2&_e){const K=i.oxw();i.xp6(1),i.Q6J("icon",K.faLifeRing)}}function ms(_e,Xe){if(1&_e){const K=i.EpF();i.TgZ(0,"a",15),i.NdJ("click",function(){return i.CHM(K),i.oxw().onClick()}),i._UZ(1,"fa-icon",3),i.TgZ(2,"span"),i._uU(3,"Logout"),i.qZA()()}if(2&_e){const K=i.oxw();i.xp6(1),i.Q6J("icon",K.faEject)}}let Cr=(()=>{class _e{constructor(K,We,Bt,Ce,ge){this.logger=K,this.sessionService=We,this.store=Bt,this.rtlEffects=Ce,this.actions=ge,this.faUserCog=_.gNZ,this.faCodeBranch=_.mh3,this.faCode=_.dT$,this.faCog=_.b7W,this.faLifeRing=_.uli,this.faEject=_.KOR,this.version="",this.information={},this.informationChain={},this.flgLoading=!0,this.showLogout=!1,this.unSubs=[new D.x,new D.x,new D.x,new D.x],this.version=Ca.q4}ngOnInit(){this.store.select(n.R4).pipe((0,x.R)(this.unSubs[0])).subscribe(K=>{if(this.information=K,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 We=this.information.chains[0];this.informationChain.chain=We.chain,this.informationChain.network=We.network}}else this.informationChain.chain="",this.informationChain.network="";this.logger.info(K)}),this.sessionService.watchSession().pipe((0,x.R)(this.unSubs[1])).subscribe(K=>{this.showLogout=!!K.token,this.flgLoading=!!K.token}),this.actions.pipe((0,x.R)(this.unSubs[2]),(0,se.h)(K=>K.type===te.pg.LOGOUT)).subscribe(()=>{this.showLogout=!1})}onClick(){this.store.dispatch((0,ze.c1)({payload:{data:{type:te.n_.CONFIRM,alertTitle:"Logout",titleMessage:"Logout from this device?",noBtnText:"Cancel",yesBtnText:"Logout"}}})),this.rtlEffects.closeConfirm.pipe((0,x.R)(this.unSubs[3])).subscribe(K=>{K&&(this.showLogout=!1,this.store.dispatch((0,ze.kS)()))})}ngOnDestroy(){this.unSubs.forEach(K=>{K.next(null),K.complete()})}}return _e.\u0275fac=function(K){return new(K||_e)(i.Y36(be.mQ),i.Y36(we.m),i.Y36(y.yh),i.Y36(ht.V),i.Y36(d.eX))},_e.\u0275cmp=i.Xpm({type:_e,selectors:[["rtl-top-menu"]],decls:14,vars:8,consts:[[1,"top-menu",3,"overlapTrigger"],["topMenu","matMenu"],["mat-menu-item",""],[1,"fa-icon-small","mr-1",3,"icon"],["mat-menu-item","",4,"ngIf"],["mat-menu-item","","routerLink","/settings",4,"ngIf"],["mat-menu-item","","routerLink","/help",4,"ngIf"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-icon-button","",1,"top-toolbar-icon",3,"matMenuTriggerFor"],["src","assets/images/RTL-Horse-BY.svg","alt","RTL Logo"],[1,"logo-icon"],["mat-menu-item","","routerLink","/settings"],["routerLink","/settings"],["mat-menu-item","","routerLink","/help"],["routerLink","/help"],["mat-menu-item","",3,"click"]],template:function(K,We){if(1&K&&(i.TgZ(0,"mat-menu",0,1)(2,"p",2),i._UZ(3,"fa-icon",3),i.TgZ(4,"span"),i._uU(5),i.qZA()(),i.YNc(6,$a,4,2,"p",4),i.YNc(7,Hi,4,1,"a",5),i.YNc(8,Vn,4,1,"a",6),i.YNc(9,ms,4,1,"a",7),i.qZA(),i.TgZ(10,"button",8),i._UZ(11,"img",9),i.TgZ(12,"mat-icon",10),i._uU(13,"arrow_drop_down"),i.qZA()()),2&K){const Bt=i.MAs(1);i.Q6J("overlapTrigger",!1),i.xp6(3),i.Q6J("icon",We.faCodeBranch),i.xp6(2),i.hij("Version: ",We.version,""),i.xp6(1),i.Q6J("ngIf",null==We.information?null:We.information.api_version),i.xp6(1),i.Q6J("ngIf",We.showLogout),i.xp6(1),i.Q6J("ngIf",We.showLogout),i.xp6(1),i.Q6J("ngIf",We.showLogout),i.xp6(1),i.Q6J("matMenuTriggerFor",Bt)}},directives:[Jr.VK,Jr.OP,V.BN,$.O5,I.yS,I.rH,Te.lW,Jr.p6,gr.Hw],styles:[".mat-menu-content,.mat-menu-content p.mat-menu-item{cursor:default}.mat-menu-content p.mat-menu-item fa-icon,.mat-menu-content p.mat-menu-item span,.mat-menu-content p.mat-menu-item div{cursor:default}.mat-menu-content p.mat-menu-item:hover{cursor:default!important}.top-toolbar-icon .mat-button-wrapper img{width:3.2rem}.top-toolbar-icon .mat-button-wrapper .material-icons.mat-icon.logo-icon{font-size:2rem;text-align:start}\n"],encapsulation:2}),_e})();var ss=p(2638),Da=p(8258),cr=p(149);const Ia={LNDChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:_.HLz,link:"/lnd/home",userPersona:te.ol.ALL},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:_.nNP,link:"/lnd/onchain",userPersona:te.ol.ALL},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:_.BDt,link:"/lnd/connections",userPersona:te.ol.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:_.FVb,link:"/lnd/connections",userPersona:te.ol.ALL},{id:32,parentId:3,name:"Transactions",iconType:"FA",icon:_.Ssp,link:"/lnd/transactions",userPersona:te.ol.ALL},{id:33,parentId:3,name:"Routing",iconType:"FA",icon:_.SuH,link:"/lnd/routing",userPersona:te.ol.ALL},{id:34,parentId:3,name:"Reports",iconType:"FA",icon:_.koM,link:"/lnd/reports",userPersona:te.ol.ALL},{id:35,parentId:3,name:"Graph Lookup",iconType:"FA",icon:_.wn1,link:"/lnd/graph",userPersona:te.ol.ALL},{id:36,parentId:3,name:"Sign/Verify",iconType:"FA",icon:_.hkK,link:"/lnd/messages",userPersona:te.ol.ALL},{id:37,parentId:3,name:"Backup",iconType:"FA",icon:_.q7m,link:"/lnd/channelbackup",userPersona:te.ol.ALL},{id:38,parentId:3,name:"Network",iconType:"FA",icon:_.TmZ,link:"/lnd/network",userPersona:te.ol.OPERATOR},{id:39,parentId:3,name:"Node/Network",iconType:"FA",icon:_.xf3,link:"/lnd/network",userPersona:te.ol.MERCHANT}]},{id:4,parentId:0,name:"Services",iconType:"FA",icon:_.Krp,link:"/lnd/services/loop",userPersona:te.ol.ALL,children:[{id:41,parentId:4,name:"Loop",iconType:"FA",icon:_.vqe,link:"/lnd/services/loop",userPersona:te.ol.ALL},{id:42,parentId:4,name:"Boltz",iconType:"SVG",icon:"boltzIconBlock",link:"/lnd/services/boltz",userPersona:te.ol.ALL}]},{id:5,parentId:0,name:"Node Config",iconType:"FA",icon:_.CgH,link:"/config",userPersona:te.ol.ALL},{id:6,parentId:0,name:"Help",iconType:"FA",icon:_.Psp,link:"/help",userPersona:te.ol.ALL}],CLNChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:_.HLz,link:"/cln/home",userPersona:te.ol.ALL},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:_.nNP,link:"/cln/onchain",userPersona:te.ol.ALL},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:_.BDt,link:"/cln/connections",userPersona:te.ol.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:_.FVb,link:"/cln/connections",userPersona:te.ol.ALL},{id:32,parentId:3,name:"Liquidity Ads",iconType:"FA",icon:_.Acd,link:"/cln/liquidityads",userPersona:te.ol.ALL},{id:33,parentId:3,name:"Transactions",iconType:"FA",icon:_.Ssp,link:"/cln/transactions",userPersona:te.ol.ALL},{id:34,parentId:3,name:"Routing",iconType:"FA",icon:_.SuH,link:"/cln/routing",userPersona:te.ol.ALL},{id:35,parentId:3,name:"Reports",iconType:"FA",icon:_.koM,link:"/cln/reports",userPersona:te.ol.ALL},{id:36,parentId:3,name:"Graph Lookup",iconType:"FA",icon:_.wn1,link:"/cln/graph",userPersona:te.ol.ALL},{id:37,parentId:3,name:"Sign/Verify",iconType:"FA",icon:_.hkK,link:"/cln/messages",userPersona:te.ol.ALL},{id:38,parentId:3,name:"Fee Rates",iconType:"FA",icon:_.USL,link:"/cln/rates",userPersona:te.ol.OPERATOR},{id:39,parentId:3,name:"Node/Fee Rates",iconType:"FA",icon:_.xf3,link:"/cln/rates",userPersona:te.ol.MERCHANT}]},{id:4,parentId:0,name:"Services",iconType:"FA",icon:_.Krp,link:"/cln/services/peerswap",userPersona:te.ol.ALL,children:[{id:41,parentId:4,name:"Peerswap",iconType:"FA",icon:_.yOe,link:"/cln/services/peerswap",userPersona:te.ol.ALL}]},{id:5,parentId:0,name:"Node Config",iconType:"FA",icon:_.CgH,link:"/config",userPersona:te.ol.ALL},{id:6,parentId:0,name:"Help",iconType:"FA",icon:_.Psp,link:"/help",userPersona:te.ol.ALL}],ECLChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:_.HLz,link:"/ecl/home",userPersona:te.ol.ALL},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:_.nNP,link:"/ecl/onchain",userPersona:te.ol.ALL},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:_.BDt,link:"/ecl/connections",userPersona:te.ol.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:_.FVb,link:"/ecl/connections",userPersona:te.ol.ALL},{id:32,parentId:3,name:"Transactions",iconType:"FA",icon:_.Ssp,link:"/ecl/transactions",userPersona:te.ol.ALL},{id:33,parentId:3,name:"Routing",iconType:"FA",icon:_.SuH,link:"/ecl/routing",userPersona:te.ol.ALL},{id:34,parentId:3,name:"Reports",iconType:"FA",icon:_.koM,link:"/ecl/reports",userPersona:te.ol.ALL},{id:35,parentId:3,name:"Graph Lookup",iconType:"FA",icon:_.wn1,link:"/ecl/graph",userPersona:te.ol.ALL}]},{id:4,parentId:0,name:"Node Config",iconType:"FA",icon:_.CgH,link:"/config",userPersona:te.ol.ALL},{id:5,parentId:0,name:"Help",iconType:"FA",icon:_.Psp,link:"/help",userPersona:te.ol.ALL}]};function _s(_e,Xe){if(1&_e&&(i.TgZ(0,"mat-option",11),i._uU(1),i.qZA()),2&_e){const K=Xe.$implicit;i.Q6J("value",K.index),i.xp6(1),i.AsE(" ",K.lnNode," (",K.lnImplementation,") ")}}function os(_e,Xe){if(1&_e){const K=i.EpF();i.TgZ(0,"mat-select",9),i.NdJ("selectionChange",function(Bt){return i.CHM(K),i.oxw().onNodeSelectionChange(Bt.value)}),i.YNc(1,_s,2,3,"mat-option",10),i.qZA()}if(2&_e){const K=i.oxw();i.Q6J("value",K.selConfigNodeIndex),i.xp6(1),i.Q6J("ngForOf",K.appConfig.nodes)}}function is(_e,Xe){if(1&_e&&(i.TgZ(0,"span",21),i.GkF(1,22),i.qZA()),2&_e){const K=i.oxw().$implicit;i.oxw(2);const We=i.MAs(11);i.xp6(1),i.Q6J("ngTemplateOutlet","boltzIconBlock"===K.icon?We:null)}}function Vr(_e,Xe){if(1&_e&&i._UZ(0,"fa-icon",23),2&_e){const K=i.oxw().$implicit;i.Q6J("icon",K.icon)}}function Oa(_e,Xe){if(1&_e&&(i.TgZ(0,"mat-icon",24),i._uU(1),i.qZA()),2&_e){const K=i.oxw().$implicit;i.xp6(1),i.Oqu(K.icon)}}function Ct(_e,Xe){if(1&_e){const K=i.EpF();i.TgZ(0,"mat-tree-node",15)(1,"div",16),i.NdJ("click",function(){const Ce=i.CHM(K).$implicit;return i.oxw(2).onChildNavClicked(Ce)}),i.TgZ(2,"div",17),i.YNc(3,is,2,1,"span",18),i.YNc(4,Vr,1,1,"fa-icon",19),i.YNc(5,Oa,2,1,"mat-icon",20),i.TgZ(6,"span"),i._uU(7),i.qZA()()()()}if(2&_e){const K=Xe.$implicit;i.s9C("routerLink",K.link),i.xp6(3),i.Q6J("ngIf","SVG"===K.iconType),i.xp6(1),i.Q6J("ngIf","FA"===K.iconType),i.xp6(1),i.Q6J("ngIf",!K.iconType),i.xp6(2),i.Oqu(K.name)}}function re(_e,Xe){if(1&_e&&(i.TgZ(0,"span",33),i.GkF(1,22),i.qZA()),2&_e){const K=i.oxw().$implicit;i.xp6(1),i.Q6J("ngTemplateOutlet",K.icon)}}function pe(_e,Xe){if(1&_e&&i._UZ(0,"fa-icon",23),2&_e){const K=i.oxw().$implicit;i.Q6J("icon",K.icon)}}function Ge(_e,Xe){if(1&_e&&(i.TgZ(0,"mat-icon",24),i._uU(1),i.qZA()),2&_e){const K=i.oxw().$implicit;i.xp6(1),i.Oqu(K.icon)}}function xt(_e,Xe){if(1&_e&&(i.TgZ(0,"mat-nested-tree-node",25)(1,"div",26)(2,"div",27),i.YNc(3,re,2,1,"span",28),i.YNc(4,pe,1,1,"fa-icon",19),i.YNc(5,Ge,2,1,"mat-icon",20),i.TgZ(6,"span"),i._uU(7),i.qZA()(),i.TgZ(8,"button",29)(9,"mat-icon",30),i._uU(10),i.qZA()()(),i.TgZ(11,"div",31),i.GkF(12,32),i.qZA()()),2&_e){const K=Xe.$implicit,We=i.oxw(2);i.xp6(3),i.Q6J("ngIf","SVG"===K.iconType),i.xp6(1),i.Q6J("ngIf","FA"===K.iconType),i.xp6(1),i.Q6J("ngIf",!K.iconType),i.xp6(2),i.Oqu(K.name),i.xp6(1),i.uIk("aria-label","toggle "+K.name),i.xp6(2),i.Oqu(We.treeControlNested.isExpanded(K)?"arrow_drop_up":"arrow_drop_down"),i.xp6(1),i.ekj("tree-children-invisible",!We.treeControlNested.isExpanded(K))}}function Ht(_e,Xe){if(1&_e&&(i.TgZ(0,"mat-tree",5,12),i.YNc(2,Ct,8,5,"mat-tree-node",13),i.YNc(3,xt,13,8,"mat-nested-tree-node",14),i.qZA()),2&_e){const K=i.oxw();i.Q6J("dataSource",K.navMenus)("treeControl",K.treeControlNested),i.xp6(3),i.Q6J("matTreeNodeDefWhen",K.hasChild)}}function ii(_e,Xe){if(1&_e&&(i.TgZ(0,"span",21),i.GkF(1,22),i.qZA()),2&_e){const K=i.oxw().$implicit;i.xp6(1),i.Q6J("ngTemplateOutlet",K.icon)}}function ni(_e,Xe){if(1&_e&&i._UZ(0,"fa-icon",36),2&_e){const K=i.oxw().$implicit;i.s9C("matTooltip",K.name),i.Q6J("icon",K.icon)}}function Ci(_e,Xe){if(1&_e&&(i.TgZ(0,"mat-icon",37),i._uU(1),i.qZA()),2&_e){const K=i.oxw().$implicit;i.s9C("matTooltip",K.name),i.xp6(1),i.Oqu(K.icon)}}function Pi(_e,Xe){if(1&_e){const K=i.EpF();i.TgZ(0,"mat-tree-node",16),i.NdJ("click",function(){const Ce=i.CHM(K).$implicit;return i.oxw().onShowData(Ce)}),i.YNc(1,ii,2,1,"span",18),i.YNc(2,ni,1,2,"fa-icon",34),i.YNc(3,Ci,2,2,"mat-icon",35),i.TgZ(4,"span"),i._uU(5),i.qZA()()}if(2&_e){const K=Xe.$implicit;i.xp6(1),i.Q6J("ngIf","SVG"===K.iconType),i.xp6(1),i.Q6J("ngIf","FA"===K.iconType),i.xp6(1),i.Q6J("ngIf",!K.iconType),i.xp6(2),i.Oqu(K.name)}}function tn(_e,Xe){if(1&_e&&(i.TgZ(0,"span",33),i.GkF(1,22),i.qZA()),2&_e){const K=i.oxw().$implicit;i.xp6(1),i.Q6J("ngTemplateOutlet",K.icon)}}function cn(_e,Xe){if(1&_e&&i._UZ(0,"fa-icon",36),2&_e){const K=i.oxw().$implicit;i.s9C("matTooltip",K.name),i.Q6J("icon",K.icon)}}function wn(_e,Xe){if(1&_e){const K=i.EpF();i.TgZ(0,"mat-tree-node",16),i.NdJ("click",function(){const Ce=i.CHM(K).$implicit;return i.oxw(2).onClick(Ce)}),i.YNc(1,tn,2,1,"span",28),i.YNc(2,cn,1,2,"fa-icon",34),i.TgZ(3,"span"),i._uU(4),i.qZA()()}if(2&_e){const K=Xe.$implicit;i.xp6(1),i.Q6J("ngIf","SVG"===K.iconType),i.xp6(1),i.Q6J("ngIf","FA"===K.iconType),i.xp6(2),i.Oqu(K.name)}}function Pn(_e,Xe){if(1&_e&&(i.TgZ(0,"mat-tree",5),i.YNc(1,wn,5,3,"mat-tree-node",6),i.qZA()),2&_e){const K=i.oxw();i.Q6J("dataSource",K.navMenusLogout)("treeControl",K.treeControlLogout)}}function yn(_e,Xe){1&_e&&(i.O4$(),i.TgZ(0,"svg",38)(1,"g",39)(2,"g",40),i._UZ(3,"circle",41)(4,"path",42)(5,"path",43),i.qZA()()())}let Ln=(()=>{class _e{constructor(K,We,Bt,Ce,ge,he){this.logger=K,this.commonService=We,this.sessionService=Bt,this.store=Ce,this.actions=ge,this.rtlEffects=he,this.ChildNavClicked=new i.vpe,this.faEject=_.KOR,this.faEye=_.Mdf,this.version="",this.information={},this.informationChain={},this.flgLoading=!0,this.logoutNode=[{id:200,parentId:0,name:"Logout",iconType:"FA",icon:_.KOR}],this.showDataNodes=[{id:1e3,parentId:0,name:"Public Key",iconType:"FA",icon:_.Mdf}],this.showLogout=!1,this.numPendingChannels=0,this.smallScreen=!1,this.childRootRoute="",this.userPersonaEnum=te.ol,this.unSubs=[new D.x,new D.x,new D.x,new D.x,new D.x,new D.x],this.treeControlNested=new Da.VY(Ue=>Ue.children),this.treeControlLogout=new Da.VY(Ue=>Ue.children),this.treeControlShowData=new Da.VY(Ue=>Ue.children),this.navMenus=new cr.WX,this.navMenusLogout=new cr.WX,this.navMenusShowData=new cr.WX,this.hasChild=(Ue,nt)=>!!nt.children&&nt.children.length>0,this.version=Ca.q4,Ia.LNDChildren&&200===Ia.LNDChildren[Ia.LNDChildren.length-1].id&&Ia.LNDChildren.pop(),this.navMenus.data=Ia.LNDChildren||[],this.navMenusLogout.data=this.logoutNode,this.navMenusShowData.data=this.showDataNodes}ngOnInit(){const K=this.sessionService.getItem("token");this.showLogout=!!K,this.flgLoading=!!K,this.store.select(n.Yj).pipe((0,x.R)(this.unSubs[0])).subscribe(We=>{this.appConfig=We}),this.store.select(n.gW).pipe((0,x.R)(this.unSubs[1])).subscribe(We=>{var Bt,Ce;if(this.information=We.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 ge=this.information.chains[0];this.informationChain.chain=ge.chain,this.informationChain.network=ge.network}}else this.informationChain.chain="",this.informationChain.network="";this.flgLoading=!this.information.identity_pubkey,window.innerWidth<=414&&(this.smallScreen=!0),this.selNode=We.selNode,this.settings=(null===(Bt=this.selNode)||void 0===Bt?void 0:Bt.settings)||null,this.selConfigNodeIndex=+((null===(Ce=We.selNode)||void 0===Ce?void 0:Ce.index)||0),this.selNode&&this.selNode.lnImplementation&&this.filterSideMenuNodes(),this.logger.info(We)}),this.sessionService.watchSession().pipe((0,x.R)(this.unSubs[2])).subscribe(We=>{this.showLogout=!!We.token,this.flgLoading=!!We.token}),this.actions.pipe((0,x.R)(this.unSubs[3]),(0,se.h)(We=>We.type===te.pg.LOGOUT)).subscribe(We=>{this.showLogout=!1})}onClick(K){"Logout"===K.name&&(this.store.dispatch((0,ze.c1)({payload:{data:{type:te.n_.CONFIRM,alertTitle:"Logout",titleMessage:"Logout from this device?",noBtnText:"Cancel",yesBtnText:"Logout"}}})),this.rtlEffects.closeConfirm.pipe((0,x.R)(this.unSubs[4])).subscribe(We=>{We&&(this.showLogout=!1,this.store.dispatch((0,ze.kS)()))})),this.ChildNavClicked.emit(K)}onChildNavClicked(K){this.ChildNavClicked.emit(K)}filterSideMenuNodes(){var K,We;switch(null===(We=null===(K=this.selNode)||void 0===K?void 0:K.lnImplementation)||void 0===We?void 0:We.toUpperCase()){case"CLN":this.loadCLNMenu();break;case"ECL":this.loadECLMenu();break;default:this.loadLNDMenu()}}loadLNDMenu(){let K=[];K=JSON.parse(JSON.stringify(Ia.LNDChildren)),this.navMenus.data=null==K?void 0:K.filter(We=>{var Bt,Ce;return We.children&&We.children.length?(We.children=null===(Bt=We.children)||void 0===Bt?void 0:Bt.filter(ge=>{var he,Ue,nt;return(ge.userPersona===te.ol.ALL||ge.userPersona===(null===(he=this.settings)||void 0===he?void 0:he.userPersona))&&"/services/loop"!==ge.link&&"/services/boltz"!==ge.link||"/services/loop"===ge.link&&(null===(Ue=this.settings)||void 0===Ue?void 0:Ue.swapServerUrl)&&""!==this.settings.swapServerUrl.trim()||"/services/boltz"===ge.link&&(null===(nt=this.settings)||void 0===nt?void 0:nt.boltzServerUrl)&&""!==this.settings.boltzServerUrl.trim()}),We.children.length>0):We.userPersona===te.ol.ALL||We.userPersona===(null===(Ce=this.settings)||void 0===Ce?void 0:Ce.userPersona)})}loadCLNMenu(){let K=[];K=JSON.parse(JSON.stringify(Ia.CLNChildren)),this.navMenus.data=null==K?void 0:K.filter(We=>{var Bt,Ce;return We.children&&We.children.length?(We.children=null===(Bt=We.children)||void 0===Bt?void 0:Bt.filter(ge=>{var he,Ue;return(ge.userPersona===te.ol.ALL||ge.userPersona===(null===(he=this.settings)||void 0===he?void 0:he.userPersona))&&"/services/peerswap"!==ge.link||"/services/peerswap"===ge.link&&(null===(Ue=this.settings)||void 0===Ue?void 0:Ue.enablePeerswap)}),We.children.length>0):We.userPersona===te.ol.ALL||We.userPersona===(null===(Ce=this.settings)||void 0===Ce?void 0:Ce.userPersona)})}loadECLMenu(){this.navMenus.data=JSON.parse(JSON.stringify(Ia.ECLChildren))}onShowData(K){this.store.dispatch((0,ze.tj)()),this.ChildNavClicked.emit("showData")}onNodeSelectionChange(K){const We=this.selConfigNodeIndex;this.selConfigNodeIndex=K;const Bt=this.appConfig.nodes.find(Ce=>+Ce.index===K);this.store.dispatch((0,ze.fk)({payload:{uiMessage:te.m6.UPDATE_SELECTED_NODE,prevLnNodeIndex:+We,currentLnNode:Bt||null,isInitialSetup:!1}})),this.ChildNavClicked.emit("selectNode")}ngOnDestroy(){this.unSubs.forEach(K=>{K.next(null),K.complete()})}}return _e.\u0275fac=function(K){return new(K||_e)(i.Y36(be.mQ),i.Y36(Nt.v),i.Y36(we.m),i.Y36(y.yh),i.Y36(d.eX),i.Y36(ht.V))},_e.\u0275cmp=i.Xpm({type:_e,selectors:[["rtl-side-navigation"]],viewQuery:function(K,We){if(1&K&&i.Gf(cr.gi,5),2&K){let Bt;i.iGM(Bt=i.CRH())&&(We.tree=Bt.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(K,We){1&K&&(i.TgZ(0,"div",0)(1,"div",1),i.YNc(2,os,2,2,"mat-select",2),i._UZ(3,"mat-divider",3),i.YNc(4,Ht,4,3,"mat-tree",4),i._UZ(5,"mat-divider",3),i.TgZ(6,"mat-tree",5),i.YNc(7,Pi,6,4,"mat-tree-node",6),i.qZA()(),i.TgZ(8,"div",7),i.YNc(9,Pn,2,2,"mat-tree",4),i.qZA()(),i.YNc(10,yn,6,0,"ng-template",null,8,i.W1O)),2&K&&(i.xp6(2),i.Q6J("ngIf",We.appConfig.nodes.length>1),i.xp6(2),i.Q6J("ngIf",null==We.settings?null:We.settings.lnServerUrl),i.xp6(2),i.Q6J("dataSource",We.navMenusShowData)("treeControl",We.treeControlShowData),i.xp6(3),i.Q6J("ngIf",We.showLogout))},directives:[g.xw,g.yH,g.Wh,Z.$V,$.O5,Ie.gD,$.sg,ce.ey,Fe.d,cr.gi,cr.fQ,cr.uo,cr.eu,I.Od,I.rH,$.tP,V.BN,gr.Hw,cr.GZ,Te.lW,cr.Ar,Sr.gM],styles:[".tree-children-invisible[_ngcontent-%COMP%]{display:none}"]}),_e})();var Qn=p(773);const xr=["sideNavigation"],dr=["sideNavContent"];function Zr(_e,Xe){if(1&_e){const K=i.EpF();i.TgZ(0,"button",13),i.NdJ("click",function(){return i.CHM(K),i.oxw().sideNavToggle()}),i.TgZ(1,"mat-icon"),i._uU(2,"menu"),i.qZA()()}if(2&_e){const K=i.oxw();i.Q6J("matTooltip",K.flgSideNavOpened?"Hide Navigation Menu":"Show Navigation Menu")("matTooltipDisabled",K.smallScreen)}}function Gr(_e,Xe){1&_e&&(i.O4$(),i._UZ(0,"path",18))}function hr(_e,Xe){1&_e&&(i.O4$(),i._UZ(0,"path",19))}function zr(_e,Xe){if(1&_e){const K=i.EpF();i.TgZ(0,"button",14),i.NdJ("click",function(){i.CHM(K);const Bt=i.oxw();return Bt.flgSidenavPinned=!Bt.flgSidenavPinned}),i.O4$(),i.TgZ(1,"svg",15),i.YNc(2,Gr,1,0,"path",16),i.YNc(3,hr,1,0,"path",17),i.qZA()()}if(2&_e){const K=i.oxw();i.Q6J("matTooltip",K.flgSidenavPinned?"Unpin Navigation Menu":"Pin Navigation Menu"),i.xp6(2),i.Q6J("ngIf",!K.flgSidenavPinned),i.xp6(1),i.Q6J("ngIf",K.flgSidenavPinned)}}function zn(_e,Xe){if(1&_e&&(i.TgZ(0,"span"),i._uU(1),i.qZA()),2&_e){const K=i.oxw();i.xp6(1),i.Oqu(K.information.alias?"RTL - "+K.information.alias:"RTL")}}function ur(_e,Xe){if(1&_e&&(i.TgZ(0,"span"),i._uU(1),i.qZA()),2&_e){const K=i.oxw();i.xp6(1),i.Oqu(K.information.alias?"Ride The Lightning - "+K.information.alias:"Ride The Lightning")}}function ka(_e,Xe){1&_e&&(i.TgZ(0,"div",20),i._UZ(1,"mat-spinner",21),i.TgZ(2,"h4"),i._uU(3,"Loading RTL..."),i.qZA()())}const tt=function(_e,Xe){return[_e,Xe]};let Et=(()=>{class _e{constructor(K,We,Bt,Ce,ge,he,Ue,nt,Dt){this.logger=K,this.commonService=We,this.store=Bt,this.actions=Ce,this.userIdle=ge,this.router=he,this.sessionService=Ue,this.breakpointObserver=nt,this.renderer=Dt,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 D.x,new D.x,new D.x,new D.x,new D.x,new D.x,new D.x,new D.x]}ngOnInit(){this.router.events.subscribe(K=>{K instanceof I.m2&&document.getElementsByTagName("mat-sidenav-content")[0].scrollTo(0,0)}),this.breakpointObserver.observe([a.u3.XSmall,a.u3.TabletPortrait,a.u3.Small,a.u3.Medium,a.u3.Large,a.u3.XLarge]).pipe((0,x.R)(this.unSubs[0])).subscribe(K=>{K.breakpoints[a.u3.XSmall]?(this.commonService.setScreenSize(te.cu.XS),this.smallScreen=!0):K.breakpoints[a.u3.TabletPortrait]?(this.commonService.setScreenSize(te.cu.SM),this.smallScreen=!0):K.breakpoints[a.u3.Small]||K.breakpoints[a.u3.Medium]?(this.commonService.setScreenSize(te.cu.MD),this.smallScreen=!1):K.breakpoints[a.u3.Large]?(this.commonService.setScreenSize(te.cu.LG),this.smallScreen=!1):(this.commonService.setScreenSize(te.cu.XL),this.smallScreen=!1)}),this.store.dispatch((0,ze.ey)()),this.accessKey=this.readAccessKey()||"",this.store.select(n.dT).pipe((0,x.R)(this.unSubs[1])).subscribe(K=>{this.settings=K.settings,this.sessionService.getItem("token")?(this.flgLoggedIn=!0,this.userIdle.startWatching()):(this.flgLoggedIn=!1,this.flgLoading[0]=!1)}),this.store.select(n.Yj).pipe((0,x.R)(this.unSubs[2])).subscribe(K=>{this.appConfig=K}),this.store.select(n.R4).pipe((0,x.R)(this.unSubs[3])).subscribe(K=>{this.information=K,this.flgLoading[0]=!this.information.identity_pubkey,this.logger.info(this.information)}),"true"===this.sessionService.getItem("defaultPassword")&&(this.flgSideNavOpened=!1),this.actions.pipe((0,x.R)(this.unSubs[4]),(0,se.h)(K=>K.type===te.pg.SET_RTL_CONFIG||K.type===te.pg.LOGIN||K.type===te.pg.LOGOUT)).subscribe(K=>{K.type===te.pg.SET_RTL_CONFIG&&(this.sessionService.getItem("token")||(+K.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,ze.x4)({payload:{password:ue(this.accessKey).toString(),defaultPassword:!1}})):this.router.navigate(["./login"]))),K.type===te.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)),K.type===te.pg.LOGOUT&&(this.flgLoggedIn=!1,this.userIdle.stopWatching(),this.userIdle.stopTimer())}),this.userIdle.onTimerStart().pipe((0,x.R)(this.unSubs[5])).subscribe(K=>{this.logger.info("Counting Down: "+(11-K))}),this.userIdle.onTimeout().pipe((0,x.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,ze.ts)()),this.store.dispatch((0,ze.qR)({payload:{data:{type:te.n_.WARNING,alertTitle:"Logging out",titleMessage:"Time limit exceeded for session inactivity."}}})),this.store.dispatch((0,ze.kS)()))}),"true"===this.sessionService.getItem("defaultPassword")&&(this.flgSideNavOpened=!1)}readAccessKey(){const K=window.location.href;return K.includes("access-key=")?K.substring(K.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(K){this.smallScreen&&this.sideNavigation.close()}copiedText(K){this.flgCopied=!0,setTimeout(()=>{this.flgCopied=!1},5e3),this.logger.info("Copied Text: "+K)}ngOnDestroy(){this.unSubs.forEach(K=>{K.next(),K.complete()})}}return _e.\u0275fac=function(K){return new(K||_e)(i.Y36(be.mQ),i.Y36(Nt.v),i.Y36(y.yh),i.Y36(d.eX),i.Y36(C),i.Y36(I.F0),i.Y36(we.m),i.Y36(a.Yg),i.Y36(i.Qsj))},_e.\u0275cmp=i.Xpm({type:_e,selectors:[["rtl-app"]],viewQuery:function(K,We){if(1&K&&(i.Gf(xr,5),i.Gf(dr,5)),2&K){let Bt;i.iGM(Bt=i.CRH())&&(We.sideNavigation=Bt.first),i.iGM(Bt=i.CRH())&&(We.sideNavContent=Bt.first)}},decls:23,vars:15,consts:[["fxLayout","column","id","rtl-container",1,"rtl-container","medium",3,"ngClass"],["fxLayout","row","fxLayoutAlign","space-between center",1,"padding-gap-x","bg-primary","rtl-top-toolbar"],["class","top-toolbar-icon mr-1","mat-icon-button","","matTooltipPosition","right",3,"matTooltip","matTooltipDisabled","click",4,"ngIf"],["mat-icon-button","","matTooltipPosition","right",3,"matTooltip","click",4,"ngIf"],[4,"ngIf"],[1,"sidenav","mat-elevation-z6",3,"perfectScrollbar","opened","mode"],["sideNavigation",""],["fxFlex","100",3,"ChildNavClicked"],[3,"perfectScrollbar"],["sideNavContent",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"inner-sidenav-content"],["outlet","outlet"],["class","rtl-spinner",4,"ngIf"],["mat-icon-button","","matTooltipPosition","right",1,"top-toolbar-icon","mr-1",3,"matTooltip","matTooltipDisabled","click"],["mat-icon-button","","matTooltipPosition","right",3,"matTooltip","click"],["viewBox","0 0 32 32",1,"top-toolbar-icon","icon-pinned"],["fill","currentColor","d","M16,12V4H17V2H7V4H8V12L6,14V16H11.2V22H12.8V16H18V14L16,12Z",4,"ngIf"],["fill","currentColor","d","M2,5.27L3.28,4L20,20.72L18.73,22L12.8,16.07V22H11.2V16H6V14L8,12V11.27L2,5.27M16,12L18,14V16H17.82L8,6.18V4H7V2H17V4H16V12Z",4,"ngIf"],["fill","currentColor","d","M16,12V4H17V2H7V4H8V12L6,14V16H11.2V22H12.8V16H18V14L16,12Z"],["fill","currentColor","d","M2,5.27L3.28,4L20,20.72L18.73,22L12.8,16.07V22H11.2V16H6V14L8,12V11.27L2,5.27M16,12L18,14V16H17.82L8,6.18V4H7V2H17V4H16V12Z"],[1,"rtl-spinner"],["color","accent"]],template:function(K,We){1&K&&(i.TgZ(0,"div",0),i.ALo(1,"lowercase"),i.ALo(2,"lowercase"),i.TgZ(3,"mat-toolbar",1)(4,"div"),i.YNc(5,Zr,3,2,"button",2),i.YNc(6,zr,4,3,"button",3),i.qZA(),i.TgZ(7,"div"),i.YNc(8,zn,2,1,"span",4),i.YNc(9,ur,2,1,"span",4),i.qZA(),i.TgZ(10,"div"),i._UZ(11,"rtl-top-menu"),i.qZA()(),i.TgZ(12,"mat-sidenav-container")(13,"mat-sidenav",5,6)(15,"rtl-side-navigation",7),i.NdJ("ChildNavClicked",function(Ce){return We.onNavigationClicked(Ce)}),i.qZA()(),i.TgZ(16,"mat-sidenav-content",8,9)(18,"div",10),i._UZ(19,"router-outlet",null,11),i.qZA()(),i._uU(21,"> "),i.qZA(),i.YNc(22,ka,4,0,"div",12),i.qZA()),2&K&&(i.Q6J("ngClass",i.WLB(12,tt,i.lcZ(1,8,We.settings.themeColor),i.lcZ(2,10,We.settings.themeMode))),i.xp6(5),i.Q6J("ngIf",We.flgLoggedIn),i.xp6(1),i.Q6J("ngIf",!We.smallScreen&&We.flgLoggedIn),i.xp6(2),i.Q6J("ngIf",We.smallScreen),i.xp6(1),i.Q6J("ngIf",!We.smallScreen),i.xp6(4),i.Q6J("opened",We.flgSideNavOpened&&We.flgLoggedIn)("mode",We.flgSidenavPinned&&!We.smallScreen?"side":"over"),i.xp6(9),i.Q6J("ngIf",!We.settings.themeColor))},directives:[g.xw,$.mk,Ri.oO,Nn.Ye,g.Wh,$.O5,Te.lW,Sr.gM,gr.Hw,Cr,ss.TM,ss.JX,Z.$V,Ln,g.yH,ss.Rh,I.lC,Qn.Ou],pipes:[$.i8],styles:[".inline-spinner[_ngcontent-%COMP%]{display:inline-flex!important;top:0!important}"],data:{animation:[$i.g]}}),_e})(),St=(()=>{class _e{constructor(K){this.sessionService=K}intercept(K,We){if(this.sessionService.getItem("token")){const Bt=K.clone({headers:K.headers.set("Authorization","Bearer "+this.sessionService.getItem("token")),withCredentials:!0});return We.handle(Bt)}return We.handle(K)}}return _e.\u0275fac=function(K){return new(K||_e)(i.LFG(we.m))},_e.\u0275prov=i.Yz7({token:_e,factory:_e.\u0275fac}),_e})();var Pt=p(9107),qt=p(7998),gi=p(2218),ti=p(711),fi=p(4947),Ei=p(3289);const Ki={userPersona:"OPERATOR",themeMode:"DAY",themeColor:"PURPLE",channelBackupPath:"",selCurrencyUnit:"USD",fiatConversion:!1,currencyUnits:["Sats","BTC","USD"],bitcoindConfigPath:"",enableOffers:!1,enablePeerswap:!1},Qi={configPath:"",swapMacaroonPath:"",boltzMacaroonPath:""},on={apiURL:"",apisCallStatus:{Login:{status:te.Bn.UN_INITIATED},IsAuthorized:{status:te.Bn.UN_INITIATED}},selNode:{index:1,lnNode:"Node 1",settings:Ki,authentication:Qi,lnImplementation:"LND"},appConfig:{defaultNodeIndex:-1,selectedNodeIndex:-1,sso:{rtlSSO:0,logoutRedirectLink:""},enable2FA:!1,allowPasswordUpdate:!0,nodes:[{settings:Ki,authentication:Qi}]},nodeData:{}},xn=(0,y.Lq)(on,(0,y.on)(ze.qi,(_e,{payload:Xe})=>{const K=JSON.parse(JSON.stringify(_e.apisCallStatus));return Xe.action&&(K[Xe.action]={status:Xe.status,statusCode:Xe.statusCode,message:Xe.message,URL:Xe.URL,filePath:Xe.filePath}),Object.assign(Object.assign({},_e),{apisCallStatus:K})}),(0,y.on)(ze.vI,(_e,{payload:Xe})=>Object.assign(Object.assign({},on),{apisCallStatus:_e.apisCallStatus,appConfig:_e.appConfig,selNode:Xe})),(0,y.on)(ze.fk,(_e,{payload:Xe})=>Object.assign(Object.assign({},_e),{selNode:Xe.currentLnNode})),(0,y.on)(ze.Tm,(_e,{payload:Xe})=>{const K=JSON.parse(JSON.stringify(_e.selNode));switch(Xe.service){case te.JX.BOLTZ:K.settings.boltzServerUrl=Xe.settings.boltzServerUrl;break;case te.JX.LOOP:K.settings.swapServerUrl=Xe.settings.swapServerUrl;break;case te.JX.OFFERS:K.settings.enableOffers=Xe.settings.enableOffers;break;case te.JX.PEERSWAP:K.settings.enablePeerswap=Xe.settings.enablePeerswap}return Object.assign(Object.assign({},_e),{selNode:K})}),(0,y.on)(ze._V,(_e,{payload:Xe})=>Object.assign(Object.assign({},_e),{nodeData:Xe})),(0,y.on)(ze.XT,(_e,{payload:Xe})=>Object.assign(Object.assign({},_e),{appConfig:Xe}))),jn={apisCallStatus:{FetchInfo:{status:te.Bn.UN_INITIATED},FetchFees:{status:te.Bn.UN_INITIATED},FetchPeers:{status:te.Bn.UN_INITIATED},FetchClosedChannels:{status:te.Bn.UN_INITIATED},FetchPendingChannels:{status:te.Bn.UN_INITIATED},FetchAllChannels:{status:te.Bn.UN_INITIATED},FetchBalanceBlockchain:{status:te.Bn.UN_INITIATED},FetchInvoices:{status:te.Bn.UN_INITIATED},FetchPayments:{status:te.Bn.UN_INITIATED},FetchForwardingHistory:{status:te.Bn.UN_INITIATED},FetchUTXOs:{status:te.Bn.UN_INITIATED},FetchTransactions:{status:te.Bn.UN_INITIATED},FetchLightningTransactions:{status:te.Bn.UN_INITIATED},FetchNetwork:{status:te.Bn.UN_INITIATED}},nodeSettings:{userPersona:te.ol.OPERATOR,fiatConversion:!1,channelBackupPath:"",currencyUnits:[],selCurrencyUnit:"",lnImplementation:"",swapServerUrl:""},information:{},peers:[],fees:{channel_fees:[],day_fee_sum:0,week_fee_sum:0,month_fee_sum:0,daily_tx_count:0,weekly_tx_count:0,monthly_tx_count:0,forwarding_events_history:{}},networkInfo:{},blockchainBalance:{total_balance:-1},lightningBalance:{local:-1,remote:-1},channels:[],channelsSummary:{active:{num_channels:0,capacity:0},inactive:{num_channels:0,capacity:0}},closedChannels:[],pendingChannels:{},pendingChannelsSummary:{open:{num_channels:0,limbo_balance:0},closing:{num_channels:0,limbo_balance:0},force_closing:{num_channels:0,limbo_balance:0},waiting_close:{num_channels:0,limbo_balance:0},total_channels:0,total_limbo_balance:0},transactions:[],utxos:[],listPayments:{payments:[]},listInvoices:{invoices:[]},allLightningTransactions:{listPaymentsAll:{payments:[],first_index_offset:"",last_index_offset:""},listInvoicesAll:{invoices:[],total_invoices:0,last_index_offset:"",first_index_offset:""}},forwardingHistory:{last_offset_index:0,total_fee_msat:0,forwarding_events:[]}};let On=!1,Kr=!1;const _a=(0,y.Lq)(jn,(0,y.on)(Je.PC,(_e,{payload:Xe})=>{const K=JSON.parse(JSON.stringify(_e.apisCallStatus));return Xe.action&&(K[Xe.action]={status:Xe.status,statusCode:Xe.statusCode,message:Xe.message,URL:Xe.URL,filePath:Xe.filePath}),Object.assign(Object.assign({},_e),{apisCallStatus:K})}),(0,y.on)(Je.JT,(_e,{payload:Xe})=>Object.assign(Object.assign({},_e),{nodeSettings:Xe})),(0,y.on)(Je.Ll,(_e,{payload:Xe})=>Object.assign(Object.assign({},jn),{nodeSettings:Xe})),(0,y.on)(Je.CX,(_e,{payload:Xe})=>Object.assign(Object.assign({},_e),{information:Xe})),(0,y.on)(Je.Z8,(_e,{payload:Xe})=>Object.assign(Object.assign({},_e),{peers:Xe})),(0,y.on)(Je.EK,(_e,{payload:Xe})=>{const K=[..._e.peers],We=_e.peers.findIndex(Bt=>Bt.pub_key===Xe.pubkey);return We>-1&&K.splice(We,1),Object.assign(Object.assign({},_e),{peers:K})}),(0,y.on)(Je.YP,(_e,{payload:Xe})=>{var K;const We=_e.listInvoices;return null===(K=We.invoices)||void 0===K||K.unshift(Xe),Object.assign(Object.assign({},_e),{listInvoices:We})}),(0,y.on)(Je.aL,(_e,{payload:Xe})=>{var K;const We=_e.listInvoices;return We.invoices=null===(K=We.invoices)||void 0===K?void 0:K.map(Bt=>Bt.payment_request===Xe.payment_request?Xe:Bt),Object.assign(Object.assign({},_e),{listInvoices:We})}),(0,y.on)(Je.qY,(_e,{payload:Xe})=>{var K;const We=_e.listPayments;return We.payments=null===(K=We.payments)||void 0===K?void 0:K.map(Bt=>Bt.payment_hash===Xe.payment_hash?Xe:Bt),Object.assign(Object.assign({},_e),{listPayments:We})}),(0,y.on)(Je.RX,(_e,{payload:Xe})=>Object.assign(Object.assign({},_e),{fees:Xe})),(0,y.on)(Je._L,(_e,{payload:Xe})=>Object.assign(Object.assign({},_e),{closedChannels:Xe})),(0,y.on)(Je.TW,(_e,{payload:Xe})=>Object.assign(Object.assign({},_e),{pendingChannels:Xe.pendingChannels,pendingChannelsSummary:Xe.pendingChannelsSummary})),(0,y.on)(Je.as,(_e,{payload:Xe})=>{let K=0,We=0,Bt=0,Ce=0,ge=0,he=0;return Xe&&Xe.forEach(Ue=>{Ue.local_balance||(Ue.local_balance=0),!0===Ue.active?(ge+=+Ue.local_balance,Bt+=1,Ue.local_balance?K=+K+ +Ue.local_balance:Ue.local_balance=0,Ue.remote_balance?We=+We+ +Ue.remote_balance:Ue.remote_balance=0):(he+=+Ue.local_balance,Ce+=1)}),Object.assign(Object.assign({},_e),{channels:Xe,channelsSummary:{active:{num_channels:Bt,capacity:ge},inactive:{num_channels:Ce,capacity:he}},lightningBalance:{local:K,remote:We}})}),(0,y.on)(Je.OG,(_e,{payload:Xe})=>{const K=[..._e.channels],We=_e.channels.findIndex(Bt=>Bt.channel_point===Xe.channelPoint);return We>-1&&K.splice(We,1),Object.assign(Object.assign({},_e),{channels:K})}),(0,y.on)(Je.Jl,(_e,{payload:Xe})=>Object.assign(Object.assign({},_e),{blockchainBalance:Xe})),(0,y.on)(Je.ks,(_e,{payload:Xe})=>Object.assign(Object.assign({},_e),{networkInfo:Xe})),(0,y.on)(Je.Nr,(_e,{payload:Xe})=>(Xe.total_invoices||(Xe.total_invoices=_e.listInvoices.total_invoices),Object.assign(Object.assign({},_e),{listInvoices:Xe}))),(0,y.on)(Je.Lf,(_e,{payload:Xe})=>{if(On=!0,Xe.length&&Kr){const K=[..._e.utxos];return K.forEach(We=>{const Bt=Xe.find(Ce=>{var ge;return Ce.tx_hash===(null===(ge=We.outpoint)||void 0===ge?void 0:ge.txid_str)});We.label=Bt&&Bt.label?Bt.label:""}),Object.assign(Object.assign({},_e),{utxos:K,transactions:Xe})}return Object.assign(Object.assign({},_e),{transactions:Xe})}),(0,y.on)(Je.UH,(_e,{payload:Xe})=>{if(Kr=!0,Xe.length&&On){const K=[..._e.transactions];Xe.forEach(We=>{const Bt=K.find(Ce=>{var ge;return Ce.tx_hash===(null===(ge=We.outpoint)||void 0===ge?void 0:ge.txid_str)});We.label=Bt&&Bt.label?Bt.label:""})}return Object.assign(Object.assign({},_e),{utxos:Xe})}),(0,y.on)(Je.HI,(_e,{payload:Xe})=>{const K={listInvoicesAll:_e.allLightningTransactions.listInvoicesAll,listPaymentsAll:Xe};return Object.assign(Object.assign({},_e),{listPayments:Xe,allLightningTransactions:K})}),(0,y.on)(Je.Fr,(_e,{payload:Xe})=>{const K={listInvoicesAll:Xe.listInvoicesAll,listPaymentsAll:_e.listPayments};return Object.assign(Object.assign({},_e),{allLightningTransactions:K})}),(0,y.on)(Je.QJ,(_e,{payload:Xe})=>{const K=[..._e.channels,..._e.closedChannels];let We=Xe.forwarding_events?JSON.parse(JSON.stringify(Xe)):{};return We.forwarding_events&&(We=ir(We,K)),Object.assign(Object.assign({},_e),{forwardingHistory:We})})),ir=(_e,Xe)=>(_e.forwarding_events.forEach(K=>{var We,Bt;if(Xe&&Xe.length>0)for(let Ce=0;Ce<Xe.length;Ce++){if((null===(We=Xe[Ce].chan_id)||void 0===We?void 0:We.toString())===K.chan_id_in&&(K.alias_in=Xe[Ce].remote_alias?Xe[Ce].remote_alias:K.chan_id_in,K.alias_out)||(null===(Bt=Xe[Ce].chan_id)||void 0===Bt?void 0:Bt.toString())===K.chan_id_out&&(K.alias_out=Xe[Ce].remote_alias?Xe[Ce].remote_alias:K.chan_id_out,K.alias_in))return;Ce===Xe.length-1&&(K.alias_in||(K.alias_in=K.chan_id_in),K.alias_out||(K.alias_out=K.chan_id_out))}else K.alias_in=K.chan_id_in,K.alias_out=K.chan_id_out}),_e),_r={apisCallStatus:{FetchInfo:{status:te.Bn.UN_INITIATED},FetchInvoices:{status:te.Bn.UN_INITIATED},FetchFees:{status:te.Bn.UN_INITIATED},FetchChannels:{status:te.Bn.UN_INITIATED},FetchBalance:{status:te.Bn.UN_INITIATED},FetchLocalRemoteBalance:{status:te.Bn.UN_INITIATED},FetchFeeRatesperkb:{status:te.Bn.UN_INITIATED},FetchFeeRatesperkw:{status:te.Bn.UN_INITIATED},FetchPeers:{status:te.Bn.UN_INITIATED},FetchUTXOs:{status:te.Bn.UN_INITIATED},FetchPayments:{status:te.Bn.UN_INITIATED},FetchForwardingHistoryS:{status:te.Bn.UN_INITIATED},FetchForwardingHistoryF:{status:te.Bn.UN_INITIATED},FetchForwardingHistoryL:{status:te.Bn.UN_INITIATED},FetchOffers:{status:te.Bn.UN_INITIATED},FetchOfferBookmarks:{status:te.Bn.UN_INITIATED},FetchSwaps:{status:te.Bn.UN_INITIATED},FetchSwapPeers:{status:te.Bn.UN_INITIATED},FetchSwapRequests:{status:te.Bn.UN_INITIATED}},nodeSettings:{userPersona:te.ol.OPERATOR,selCurrencyUnit:"USD",fiatConversion:!1,channelBackupPath:"",currencyUnits:[],enableOffers:!1,enablePeerswap:!1},information:{},fees:{},feeRatesPerKB:{},feeRatesPerKW:{},balance:{},localRemoteBalance:{localBalance:-1,remoteBalance:-1},peers:[],activeChannels:[],pendingChannels:[],inactiveChannels:[],payments:[],forwardingHistory:{},failedForwardingHistory:{},localFailedForwardingHistory:{},invoices:{invoices:[]},utxos:[],offers:[],offersBookmarks:[],totalSwapPeers:0,swapPeers:[],swapOuts:[],swapIns:[],swapRequests:[]},fr=(0,y.Lq)(_r,(0,y.on)(Mi.Ni,(_e,{payload:Xe})=>{const K=JSON.parse(JSON.stringify(_e.apisCallStatus));return Xe.action&&(K[Xe.action]={status:Xe.status,statusCode:Xe.statusCode,message:Xe.message,URL:Xe.URL,filePath:Xe.filePath}),Object.assign(Object.assign({},_e),{apisCallStatus:K})}),(0,y.on)(Mi.oo,(_e,{payload:Xe})=>Object.assign(Object.assign({},_e),{nodeSettings:Xe})),(0,y.on)(Mi.xH,(_e,{payload:Xe})=>Object.assign(Object.assign({},_r),{nodeSettings:Xe})),(0,y.on)(Mi.CX,(_e,{payload:Xe})=>Object.assign(Object.assign({},_e),{information:Xe})),(0,y.on)(Mi.RX,(_e,{payload:Xe})=>Object.assign(Object.assign({},_e),{fees:Xe})),(0,y.on)(Mi.I8,(_e,{payload:Xe})=>Xe.perkb?Object.assign(Object.assign({},_e),{feeRatesPerKB:Xe}):Xe.perkw?Object.assign(Object.assign({},_e),{feeRatesPerKW:Xe}):Object.assign({},_e)),(0,y.on)(Mi.Lu,(_e,{payload:Xe})=>Object.assign(Object.assign({},_e),{balance:Xe})),(0,y.on)(Mi.xS,(_e,{payload:Xe})=>Object.assign(Object.assign({},_e),{localRemoteBalance:Xe})),(0,y.on)(Mi.Z8,(_e,{payload:Xe})=>Object.assign(Object.assign({},_e),{peers:Xe})),(0,y.on)(Mi.X3,(_e,{payload:Xe})=>Object.assign(Object.assign({},_e),{peers:[..._e.peers,Xe]})),(0,y.on)(Mi.EK,(_e,{payload:Xe})=>{const K=[..._e.peers],We=_e.peers.findIndex(Bt=>Bt.id===Xe.id);return We>-1&&K.splice(We,1),Object.assign(Object.assign({},_e),{peers:K})}),(0,y.on)(Mi.as,(_e,{payload:Xe})=>Object.assign(Object.assign({},_e),{activeChannels:Xe.activeChannels,pendingChannels:Xe.pendingChannels,inactiveChannels:Xe.inactiveChannels})),(0,y.on)(Mi.OG,(_e,{payload:Xe})=>{const K=[..._e.peers];return K.forEach(We=>{We.id===Xe.id&&(We.connected=!1,delete We.netaddr)}),Object.assign(Object.assign({},_e),{peers:K})}),(0,y.on)(Mi.HI,(_e,{payload:Xe})=>Object.assign(Object.assign({},_e),{payments:Xe})),(0,y.on)(Mi.QJ,(_e,{payload:Xe})=>{const K=[..._e.activeChannels,..._e.pendingChannels,..._e.inactiveChannels],We=Ir(Xe.listForwards,K);switch(Xe.listForwards=We,Xe.status){case te.OO.SETTLED:const Bt=_e.fees;return Bt.totalTxCount=Xe.totalForwards||0,Object.assign(Object.assign({},_e),{fees:Bt,forwardingHistory:Xe});case te.OO.FAILED:return Object.assign(Object.assign({},_e),{failedForwardingHistory:Xe});case te.OO.LOCAL_FAILED:return Object.assign(Object.assign({},_e),{localFailedForwardingHistory:Xe});default:return Object.assign({},_e)}}),(0,y.on)(Mi.YP,(_e,{payload:Xe})=>{var K;const We=_e.invoices;return null===(K=We.invoices)||void 0===K||K.unshift(Xe),Object.assign(Object.assign({},_e),{invoices:We})}),(0,y.on)(Mi.Nr,(_e,{payload:Xe})=>Object.assign(Object.assign({},_e),{invoices:Xe})),(0,y.on)(Mi.aL,(_e,{payload:Xe})=>{var K;const We=_e.invoices;return We.invoices=null===(K=We.invoices)||void 0===K?void 0:K.map(Bt=>Bt.label===Xe.label?Xe:Bt),Object.assign(Object.assign({},_e),{invoices:We})}),(0,y.on)(Mi.UH,(_e,{payload:Xe})=>Object.assign(Object.assign({},_e),{utxos:Xe})),(0,y.on)(Mi.Zu,(_e,{payload:Xe})=>Object.assign(Object.assign({},_e),{offers:Xe})),(0,y.on)(Mi.ZH,(_e,{payload:Xe})=>{const K=_e.offers;return null==K||K.unshift(Xe),Object.assign(Object.assign({},_e),{offers:K})}),(0,y.on)(Mi.JK,(_e,{payload:Xe})=>{const K=[..._e.offers],We=_e.offers.findIndex(Bt=>Bt.offer_id===Xe.offer.offer_id);return We>-1&&K.splice(We,1,Xe.offer),Object.assign(Object.assign({},_e),{offers:K})}),(0,y.on)(Mi.d7,(_e,{payload:Xe})=>Object.assign(Object.assign({},_e),{offersBookmarks:Xe})),(0,y.on)(Mi.e9,(_e,{payload:Xe})=>{const K=[..._e.offersBookmarks],We=K.findIndex(Bt=>Bt.bolt12===Xe.bolt12);if(We<0)null==K||K.unshift(Xe);else{const Bt=Object.assign({},K[We]);Bt.title=Xe.title,Bt.amountmSat=Xe.amountmSat,Bt.lastUpdatedAt=Xe.lastUpdatedAt,Bt.description=Xe.description,Bt.vendor=Xe.vendor,K.splice(We,1,Bt)}return Object.assign(Object.assign({},_e),{offersBookmarks:K})}),(0,y.on)(Mi.en,(_e,{payload:Xe})=>{const K=[..._e.offersBookmarks],We=_e.offersBookmarks.findIndex(Bt=>Bt.bolt12===Xe.bolt12);return We>-1&&K.splice(We,1),Object.assign(Object.assign({},_e),{offersBookmarks:K})}),(0,y.on)(Mi.HW,(_e,{payload:Xe})=>{const K=[],We=[];return Xe.forEach(Bt=>{Bt.type===te.fO.SWAP_OUT?K.push(Bt):We.push(Bt)}),Object.assign(Object.assign({},_e),{swapOuts:K,swapIns:We})}),(0,y.on)(Mi.bP,(_e,{payload:Xe})=>Object.assign(Object.assign({},_e),{swapRequests:Xe})),(0,y.on)(Mi.oF,(_e,{payload:Xe})=>{const K=Xe.reduce((We,Bt)=>{var Ce,ge,he;const Ue=[];return Bt.alias=(null===(ge=null===(Ce=_e.peers)||void 0===Ce?void 0:Ce.find(nt=>nt.id===Bt.nodeid))||void 0===ge?void 0:ge.alias)||Bt.nodeid,null===(he=Bt.channels)||void 0===he||he.forEach(nt=>Ue.push(Object.assign(Object.assign({},Bt),nt))),[...We,...Ue]},[]);return Object.assign(Object.assign({},_e),{totalSwapPeers:Xe.length||0,swapPeers:K})}),(0,y.on)(Mi.it,(_e,{payload:Xe})=>{const K=_e.swapOuts;return null==K||K.unshift(Xe),Object.assign(Object.assign({},_e),{swapOuts:K})}),(0,y.on)(Mi.My,(_e,{payload:Xe})=>{const K=_e.swapIns;return null==K||K.unshift(Xe),Object.assign(Object.assign({},_e),{swapIns:K})})),Ir=(_e,Xe)=>(_e&&_e.length>0?_e.forEach((K,We)=>{var Bt;if(Xe&&Xe.length>0)for(let Ce=0;Ce<Xe.length;Ce++){if(Xe[Ce].short_channel_id&&Xe[Ce].short_channel_id===K.in_channel&&(K.in_channel_alias=Xe[Ce].alias?Xe[Ce].alias:K.in_channel,K.out_channel_alias)||Xe[Ce].short_channel_id&&(null===(Bt=Xe[Ce].short_channel_id)||void 0===Bt?void 0:Bt.toString())===K.out_channel&&(K.out_channel_alias=Xe[Ce].alias?Xe[Ce].alias:K.out_channel,K.in_channel_alias))return;Ce===Xe.length-1&&(K.in_channel_alias||(K.in_channel_alias=K.in_channel?K.in_channel:"-"),K.out_channel_alias||(K.out_channel_alias=K.out_channel?K.out_channel:"-"))}else K.in_channel_alias=K.in_channel?K.in_channel:"-",K.out_channel_alias=K.out_channel?K.out_channel:"-"}):_e=[],_e),Br={apisCallStatus:{FetchInfo:{status:te.Bn.UN_INITIATED},FetchFees:{status:te.Bn.UN_INITIATED},FetchChannels:{status:te.Bn.UN_INITIATED},FetchOnchainBalance:{status:te.Bn.UN_INITIATED},FetchPeers:{status:te.Bn.UN_INITIATED},FetchPayments:{status:te.Bn.UN_INITIATED},FetchInvoices:{status:te.Bn.UN_INITIATED},FetchTransactions:{status:te.Bn.UN_INITIATED}},nodeSettings:{userPersona:te.ol.OPERATOR,selCurrencyUnit:"USD",fiatConversion:!1,channelBackupPath:"",currencyUnits:[]},information:{},fees:{},activeChannels:[],pendingChannels:[],inactiveChannels:[],channelsStatus:{active:{channels:0,capacity:0},inactive:{channels:0,capacity:0},pending:{channels:0,capacity:0},closing:{channels:0,capacity:0}},onchainBalance:{total:0,confirmed:0,unconfirmed:0},lightningBalance:{localBalance:-1,remoteBalance:-1},peers:[],payments:{},transactions:[],invoices:[]},Na=(0,y.Lq)(Br,(0,y.on)(Yt.QZ,(_e,{payload:Xe})=>{const K=JSON.parse(JSON.stringify(_e.apisCallStatus));return Xe.action&&(K[Xe.action]={status:Xe.status,statusCode:Xe.statusCode,message:Xe.message,URL:Xe.URL,filePath:Xe.filePath}),Object.assign(Object.assign({},_e),{apisCallStatus:K})}),(0,y.on)(Yt.Zr,(_e,{payload:Xe})=>Object.assign(Object.assign({},_e),{nodeSettings:Xe})),(0,y.on)(Yt.Fd,(_e,{payload:Xe})=>Object.assign(Object.assign({},Br),{nodeSettings:Xe})),(0,y.on)(Yt.CX,(_e,{payload:Xe})=>Object.assign(Object.assign({},_e),{information:Xe})),(0,y.on)(Yt.RX,(_e,{payload:Xe})=>Object.assign(Object.assign({},_e),{fees:Xe})),(0,y.on)(Yt.eN,(_e,{payload:Xe})=>Object.assign(Object.assign({},_e),{activeChannels:Xe})),(0,y.on)(Yt.TW,(_e,{payload:Xe})=>Object.assign(Object.assign({},_e),{pendingChannels:Xe})),(0,y.on)(Yt.i,(_e,{payload:Xe})=>Object.assign(Object.assign({},_e),{inactiveChannels:Xe})),(0,y.on)(Yt.HG,(_e,{payload:Xe})=>Object.assign(Object.assign({},_e),{channelsStatus:Xe})),(0,y.on)(Yt.Bw,(_e,{payload:Xe})=>Object.assign(Object.assign({},_e),{onchainBalance:Xe})),(0,y.on)(Yt.On,(_e,{payload:Xe})=>Object.assign(Object.assign({},_e),{lightningBalance:Xe})),(0,y.on)(Yt.Z8,(_e,{payload:Xe})=>Object.assign(Object.assign({},_e),{peers:Xe})),(0,y.on)(Yt.EK,(_e,{payload:Xe})=>{const K=[..._e.peers],We=_e.peers.findIndex(Bt=>Bt.nodeId===Xe.nodeId);return We>-1&&K.splice(We,1),Object.assign(Object.assign({},_e),{peers:K})}),(0,y.on)(Yt.OG,(_e,{payload:Xe})=>{const K=[..._e.activeChannels],We=_e.activeChannels.findIndex(Bt=>Bt.channelId===Xe.channelId);return We>-1&&K.splice(We,1),Object.assign(Object.assign({},_e),{activeChannels:K})}),(0,y.on)(Yt.HI,(_e,{payload:Xe})=>{var K;if(Xe&&Xe.sent){const We=[..._e.activeChannels,..._e.pendingChannels,..._e.inactiveChannels];null===(K=Xe.sent)||void 0===K||K.map(Bt=>{var Ce;const ge=_e.peers.find(he=>he.nodeId===Bt.recipientNodeId);return Bt.recipientNodeAlias=ge?ge.alias:Bt.recipientNodeId,Bt.parts&&(null===(Ce=Bt.parts)||void 0===Ce||Ce.map(he=>{const Ue=We.find(nt=>nt.channelId===he.toChannelId);return he.toChannelAlias=Ue?Ue.alias:he.toChannelId,Bt.parts})),Xe.sent})}if(Xe&&Xe.relayed){const We=[..._e.activeChannels,..._e.pendingChannels,..._e.inactiveChannels];Xe.relayed.forEach(Bt=>{Bt=za(Bt,We)})}return Object.assign(Object.assign({},_e),{payments:Xe})}),(0,y.on)(Yt.Lf,(_e,{payload:Xe})=>Object.assign(Object.assign({},_e),{transactions:Xe})),(0,y.on)(Yt.YP,(_e,{payload:Xe})=>{const K=_e.invoices;return null==K||K.unshift(Xe),Object.assign(Object.assign({},_e),{invoices:K})}),(0,y.on)(Yt.Nr,(_e,{payload:Xe})=>Object.assign(Object.assign({},_e),{invoices:Xe})),(0,y.on)(Yt.aL,(_e,{payload:Xe})=>{let K=_e.invoices;return K=null==K?void 0:K.map(We=>{if(We.paymentHash===Xe.paymentHash){if(Xe.hasOwnProperty("type")){const Bt=JSON.parse(JSON.stringify(We));return Bt.amountSettled=Xe.parts&&Xe.parts.length&&Xe.parts.length>0&&Xe.parts[0].amount?(Xe.parts[0].amount||0)/1e3:0,Bt.receivedAt=Xe.parts&&Xe.parts.length&&Xe.parts.length>0&&Xe.parts[0].timestamp?Math.round((Xe.parts[0].timestamp||0)/1e3):0,Bt.status="received",Bt}return Xe}return We}),Object.assign(Object.assign({},_e),{invoices:K})}),(0,y.on)(Yt.DJ,(_e,{payload:Xe})=>{let K=_e.pendingChannels;return K=null==K?void 0:K.map(We=>{var Bt;return We.channelId===Xe.channelId&&We.nodeId===Xe.remoteNodeId&&(Xe.currentState=null===(Bt=Xe.currentState)||void 0===Bt?void 0:Bt.replace(/_/g," "),We.state=Xe.currentState),We}),Object.assign(Object.assign({},_e),{pendingChannels:K})}),(0,y.on)(Yt.ti,(_e,{payload:Xe})=>{var K,We,Bt;const Ce=_e.payments,ge=za(Xe,[..._e.activeChannels,..._e.pendingChannels,..._e.inactiveChannels]);ge.amountIn=Math.round((Xe.amountIn||0)/1e3),ge.amountOut=Math.round((Xe.amountOut||0)/1e3),null===(K=Ce.relayed)||void 0===K||K.unshift(ge);const he=(Xe.amountIn||0)-(Xe.amountOut||0),Ue={localBalance:_e.lightningBalance.localBalance+he,remoteBalance:_e.lightningBalance.remoteBalance-he},nt=_e.channelsStatus;nt.active&&(nt.active.capacity=((null===(Bt=null===(We=_e.channelsStatus)||void 0===We?void 0:We.active)||void 0===Bt?void 0:Bt.capacity)||0)+he);const Dt={daily_fee:(_e.fees.daily_fee||0)+he,daily_txs:(_e.fees.daily_txs||0)+1,weekly_fee:(_e.fees.weekly_fee||0)+he,weekly_txs:(_e.fees.weekly_txs||0)+1,monthly_fee:(_e.fees.monthly_fee||0)+he,monthly_txs:(_e.fees.monthly_txs||0)+1},Qt=_e.activeChannels;let ai=!1,Di=!1;for(const Vi of Qt){if(Vi.channelId===Xe.fromChannelId){ai=!0;const Mn=(Vi.toLocal||0)+(Vi.toRemote||0);Vi.toLocal=(Vi.toLocal||0)+ge.amountIn,Vi.toRemote=(Vi.toRemote||0)-ge.amountIn,Vi.balancedness=0===Mn?1:+(1-Math.abs((Vi.toLocal-Vi.toRemote)/Mn)).toFixed(3)}if(Vi.channelId===Xe.toChannelId){Di=!0;const Mn=(Vi.toLocal||0)+(Vi.toRemote||0);Vi.toLocal=(Vi.toLocal||0)-ge.amountOut,Vi.toRemote=(Vi.toRemote||0)+ge.amountOut,Vi.balancedness=0===Mn?1:+(1-Math.abs((Vi.toLocal-Vi.toRemote)/Mn)).toFixed(3)}if(Di&&ai)break}return Object.assign(Object.assign({},_e),{payments:Ce,lightningBalance:Ue,channelStatus:nt,fees:Dt,activeChannels:Qt})})),za=(_e,Xe)=>{var K,We,Bt,Ce,ge,he,Ue,nt,Dt,Qt,ai,Di,Vi,Mn;if("payment-relayed"===_e.type)if(Xe&&Xe.length>0)for(let zi=0;zi<Xe.length;zi++){if((null===(K=Xe[zi].channelId)||void 0===K?void 0:K.toString())===_e.fromChannelId&&(_e.fromChannelAlias=Xe[zi].alias?Xe[zi].alias:_e.fromChannelId,_e.fromShortChannelId=Xe[zi].shortChannelId?Xe[zi].shortChannelId:"",_e.toChannelAlias)||(null===(We=Xe[zi].channelId)||void 0===We?void 0:We.toString())===_e.toChannelId&&(_e.toChannelAlias=Xe[zi].alias?Xe[zi].alias:_e.toChannelId,_e.toShortChannelId=Xe[zi].shortChannelId?Xe[zi].shortChannelId:"",_e.fromChannelAlias))return _e;zi===Xe.length-1&&(_e.fromChannelAlias||(_e.fromChannelAlias=(null===(Bt=_e.fromChannelId)||void 0===Bt?void 0:Bt.substring(0,17))+"...",_e.fromShortChannelId=""),_e.toChannelAlias||(_e.toChannelAlias=(null===(Ce=_e.toChannelId)||void 0===Ce?void 0:Ce.substring(0,17))+"...",_e.toShortChannelId=""))}else _e.fromChannelAlias=(null===(ge=_e.fromChannelId)||void 0===ge?void 0:ge.substring(0,17))+"...",_e.fromShortChannelId="",_e.toChannelAlias=(null===(he=_e.toChannelId)||void 0===he?void 0:he.substring(0,17))+"...",_e.toShortChannelId="";else if(_e.type="trampoline-payment-relayed"){if(Xe&&Xe.length>0)for(let zi=0;zi<Xe.length;zi++)null===(Ue=_e.incoming)||void 0===Ue||Ue.forEach(un=>{var kn;(null===(kn=Xe[zi].channelId)||void 0===kn?void 0:kn.toString())===un.channelId&&(un.channelAlias=Xe[zi].alias?Xe[zi].alias:un.channelId,un.shortChannelId=Xe[zi].shortChannelId?Xe[zi].shortChannelId:"")}),null===(nt=_e.outgoing)||void 0===nt||nt.forEach(un=>{var kn;(null===(kn=Xe[zi].channelId)||void 0===kn?void 0:kn.toString())===un.channelId&&(un.channelAlias=Xe[zi].alias?Xe[zi].alias:un.channelId,un.shortChannelId=Xe[zi].shortChannelId?Xe[zi].shortChannelId:"")}),zi===Xe.length-1&&(_e.incoming&&_e.incoming.length&&_e.incoming.length>0&&!_e.incoming[0].channelAlias&&(null===(Dt=_e.incoming)||void 0===Dt||Dt.forEach(un=>{var kn;un.channelAlias=(null===(kn=un.channelId)||void 0===kn?void 0:kn.substring(0,17))+"...",un.shortChannelId=""})),_e.outgoing&&_e.outgoing.length&&_e.outgoing.length>0&&!_e.outgoing[0].channelAlias&&(null===(Qt=_e.outgoing)||void 0===Qt||Qt.forEach(un=>{var kn;un.channelAlias=(null===(kn=un.channelId)||void 0===kn?void 0:kn.substring(0,17))+"...",un.shortChannelId=""})));else null===(ai=_e.incoming)||void 0===ai||ai.forEach(zi=>{var un;zi.channelAlias=(null===(un=zi.channelId)||void 0===un?void 0:un.substring(0,17))+"...",zi.shortChannelId=""}),null===(Di=_e.outgoing)||void 0===Di||Di.forEach(zi=>{var un;zi.channelAlias=(null===(un=zi.channelId)||void 0===un?void 0:un.substring(0,17))+"...",zi.shortChannelId=""});_e.amountIn=(null===(Vi=_e.incoming)||void 0===Vi?void 0:Vi.reduce((zi,un)=>zi+un.amount,0))||0,_e.fromChannelId=_e.incoming&&_e.incoming.length?_e.incoming[0].channelId:"",_e.fromChannelAlias=_e.incoming&&_e.incoming.length?_e.incoming[0].channelAlias:"",_e.fromShortChannelId=_e.incoming&&_e.incoming.length?_e.incoming[0].shortChannelId:"",_e.amountOut=(null===(Mn=_e.outgoing)||void 0===Mn?void 0:Mn.reduce((zi,un)=>zi+un.amount,0))||0,_e.toChannelId=_e.outgoing&&_e.outgoing.length?_e.outgoing[0].channelId:"",_e.toChannelAlias=_e.outgoing&&_e.outgoing.length?_e.outgoing[0].channelAlias:"",_e.toShortChannelId=_e.outgoing&&_e.outgoing.length?_e.outgoing[0].shortChannelId:""}return _e};let Qa=(()=>{class _e{}return _e.\u0275fac=function(K){return new(K||_e)},_e.\u0275mod=i.oAB({type:_e,bootstrap:[Et]}),_e.\u0275inj=i.cJS({providers:[{provide:b.TP,useClass:St,multi:!0},qn.a1,we.m,br.D,qt.d,Pt.W,Nt.v,gi.X],imports:[[u.PW,vi.m,Lt,a.xu,e.t6,S.forRoot({idle:3590,timeout:10,ping:12e3}),y.Aw.forRoot({root:xn,lnd:_a,cln:fr,ecl:Na},{runtimeChecks:{strictStateImmutability:!1,strictActionImmutability:!1}}),d.sQ.forRoot([ht.V,ti.l,fi.J,Ei.o]),Ca.NZ.production?[]:P.FT.instrument()]]}),_e})();Ca.NZ.production&&(0,i.G48)(),e.q6().bootstrapModule(Qa).catch(_e=>console.log(_e))},7854:(He,j)=>{"use strict";function p(te){return Object.keys(te).map(ze=>te[ze])}var te;Object.defineProperty(j,"__esModule",{value:!0}),(te=j.HashAlgorithms||(j.HashAlgorithms={})).SHA1="sha1",te.SHA256="sha256",te.SHA512="sha512";const e=p(j.HashAlgorithms);!function(te){te.ASCII="ascii",te.BASE64="base64",te.HEX="hex",te.LATIN1="latin1",te.UTF8="utf8"}(j.KeyEncodings||(j.KeyEncodings={}));const i=p(j.KeyEncodings);!function(te){te.HOTP="hotp",te.TOTP="totp"}(j.Strategy||(j.Strategy={}));const u=p(j.Strategy),b=()=>{throw new Error("Please provide an options.createDigest implementation.")};function a(te){return/^(\d+)$/.test(te)}function y(te,ze,be){return te.length>=ze?te:`${Array(ze+1).join(be)}${te}`.slice(-1*ze)}function d(te){const ze=`otpauth://${te.type}/{labelPrefix}:{accountName}?secret={secret}{query}`,be=[];if(u.indexOf(te.type)<0)throw new Error(`Expecting options.type to be one of ${u.join(", ")}. Received ${te.type}.`);if("hotp"===te.type){if(null==te.counter||"number"!=typeof te.counter)throw new Error('Expecting options.counter to be a number when options.type is "hotp".');be.push(`&counter=${te.counter}`)}return"totp"===te.type&&te.step&&be.push(`&period=${te.step}`),te.digits&&be.push(`&digits=${te.digits}`),te.algorithm&&be.push(`&algorithm=${te.algorithm.toUpperCase()}`),te.issuer&&be.push(`&issuer=${encodeURIComponent(te.issuer)}`),ze.replace("{labelPrefix}",encodeURIComponent(te.issuer||te.accountName)).replace("{accountName}",encodeURIComponent(te.accountName)).replace("{secret}",te.secret).replace("{query}",be.join(""))}class P{constructor(ze={}){this._defaultOptions=Object.freeze(ws({},ze)),this._options=Object.freeze({})}create(ze={}){return new P(ze)}clone(ze={}){const be=this.create(ws(ws({},this._defaultOptions),ze));return be.options=this._options,be}get options(){return Object.freeze(ws(ws({},this._defaultOptions),this._options))}set options(ze){this._options=Object.freeze(ws(ws({},this._options),ze))}allOptions(){return this.options}resetOptions(){this._options=Object.freeze({})}}function D(te){if("function"!=typeof te.createDigest)throw new Error("Expecting options.createDigest to be a function.");if("function"!=typeof te.createHmacKey)throw new Error("Expecting options.createHmacKey to be a function.");if("number"!=typeof te.digits)throw new Error("Expecting options.digits to be a number.");if(!te.algorithm||e.indexOf(te.algorithm)<0)throw new Error(`Expecting options.algorithm to be one of ${e.join(", ")}. Received ${te.algorithm}.`);if(!te.encoding||i.indexOf(te.encoding)<0)throw new Error(`Expecting options.encoding to be one of ${i.join(", ")}. Received ${te.encoding}.`)}const T=(te,ze,be)=>Buffer.from(ze,be).toString("hex");function M(){return{algorithm:j.HashAlgorithms.SHA1,createHmacKey:T,createDigest:b,digits:6,encoding:j.KeyEncodings.ASCII}}function A(te){const ze=ws(ws({},M()),te);return D(ze),Object.freeze(ze)}function E(te){return y(te.toString(16),16,"0")}function k(te,ze){const be=Buffer.from(te,"hex"),Z=15&be[be.length-1],ot=((127&be[Z])<<24|(255&be[Z+1])<<16|(255&be[Z+2])<<8|255&be[Z+3])%Math.pow(10,ze);return y(String(ot),ze,"0")}function z(te,ze,be){const Z=be.digest||function w(te,ze,be){const Z=E(ze),Y=be.createHmacKey(be.algorithm,te,be.encoding);return be.createDigest(be.algorithm,Y,Z)}(te,ze,be);return k(Z,be.digits)}function U(te,ze,be,Z){return!!a(te)&&te===z(ze,be,Z)}function W(te,ze,be,Z,Y){return d({algorithm:Y.algorithm,digits:Y.digits,type:j.Strategy.HOTP,accountName:te,counter:Z,issuer:ze,secret:be})}class ne extends P{create(ze={}){return new ne(ze)}allOptions(){return A(this.options)}generate(ze,be){return z(ze,be,this.allOptions())}check(ze,be,Z){return U(ze,be,Z,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,be,Z,Y){return W(ze,be,Z,Y,this.allOptions())}}function Q(te){if("number"==typeof te)return[Math.abs(te),Math.abs(te)];if(Array.isArray(te)){const[ze,be]=te;if("number"==typeof ze&&"number"==typeof be)return[Math.abs(ze),Math.abs(be)]}throw new Error("Expecting options.window to be an number or [number, number].")}function le(te){if(D(te),Q(te.window),"number"!=typeof te.epoch)throw new Error("Expecting options.epoch to be a number.");if("number"!=typeof te.step)throw new Error("Expecting options.step to be a number.")}const q=(te,ze,be)=>{const Z=te.length,Y=Buffer.from(te,ze).toString("hex");if(Z<be){const ot=new Array(be-Z+1).join(Y);return Buffer.from(ot,"hex").slice(0,be).toString("hex")}return Y},ie=(te,ze,be)=>{switch(te){case j.HashAlgorithms.SHA1:return q(ze,be,20);case j.HashAlgorithms.SHA256:return q(ze,be,32);case j.HashAlgorithms.SHA512:return q(ze,be,64);default:throw new Error(`Expecting algorithm to be one of ${e.join(", ")}. Received ${te}.`)}};function se(){return{algorithm:j.HashAlgorithms.SHA1,createDigest:b,createHmacKey:ie,digits:6,encoding:j.KeyEncodings.ASCII,epoch:Date.now(),step:30,window:0}}function J(te){const ze=ws(ws({},se()),te);return le(ze),Object.freeze(ze)}function me(te,ze){return Math.floor(te/ze/1e3)}function x(te,ze){return z(te,me(ze.epoch,ze.step),ze)}function t(te,ze,be,Z){const Y=[];if(0===Z)return Y;for(let ot=1;ot<=Z;ot++)Y.push(te+ze*ot*be);return Y}function r(te,ze,be){const Z=Q(be),Y=1e3*ze;return{current:te,past:t(te,-1,Y,Z[0]),future:t(te,1,Y,Z[1])}}function h(te,ze,be){return!!a(te)&&te===x(ze,be)}function c(te,ze,be,Z){let Y=null;return te.some((ot,Ie)=>!!h(ze,be,JC(ws({},Z),{epoch:ot}))&&(Y=Ie+1,!0)),Y}function C(te,ze,be){if(h(te,ze,be))return 0;const Z=r(be.epoch,be.step,be.window),Y=c(Z.past,te,ze,be);return null!==Y?-1*Y:c(Z.future,te,ze,be)}function S(te,ze){return Math.floor(te/1e3)%ze}function I(te,ze){return ze-S(te,ze)}function _(te,ze,be,Z){return d({algorithm:Z.algorithm,digits:Z.digits,step:Z.step,type:j.Strategy.TOTP,accountName:te,issuer:ze,secret:be})}class n extends ne{create(ze={}){return new n(ze)}allOptions(){return J(this.options)}generate(ze){return x(ze,this.allOptions())}checkDelta(ze,be){return C(ze,be,this.allOptions())}check(ze,be){return"number"==typeof this.checkDelta(ze,be)}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 I(ze.epoch,ze.step)}timeUsed(){const ze=this.allOptions();return S(ze.epoch,ze.step)}keyuri(ze,be,Z){return _(ze,be,Z,this.allOptions())}}function g(te){if(le(te),"function"!=typeof te.keyDecoder)throw new Error("Expecting options.keyDecoder to be a function.");if(te.keyEncoder&&"function"!=typeof te.keyEncoder)throw new Error("Expecting options.keyEncoder to be a function.")}function V(){return{algorithm:j.HashAlgorithms.SHA1,createDigest:b,createHmacKey:ie,digits:6,encoding:j.KeyEncodings.HEX,epoch:Date.now(),step:30,window:0}}function R(te){const ze=ws(ws({},V()),te);return g(ze),Object.freeze(ze)}function H(te,ze){return ze.keyEncoder(te,ze.encoding)}function $(te,ze){return ze.keyDecoder(te,ze.encoding)}function fe(te,ze){return H(ze.createRandomBytes(te,ze.encoding),ze)}function ye(te,ze){return x($(te,ze),ze)}function ke(te,ze,be){return C(te,$(ze,be),be)}class Ee extends n{create(ze={}){return new Ee(ze)}allOptions(){return R(this.options)}generate(ze){return ye(ze,this.allOptions())}checkDelta(ze,be){return ke(ze,be,this.allOptions())}encode(ze){return H(ze,this.allOptions())}decode(ze){return $(ze,this.allOptions())}generateSecret(ze=10){return fe(ze,this.allOptions())}}j.Authenticator=Ee,j.HASH_ALGORITHMS=e,j.HOTP=ne,j.KEY_ENCODINGS=i,j.OTP=P,j.STRATEGY=u,j.TOTP=n,j.authenticatorCheckWithWindow=ke,j.authenticatorDecoder=$,j.authenticatorDefaultOptions=V,j.authenticatorEncoder=H,j.authenticatorGenerateSecret=fe,j.authenticatorOptionValidator=g,j.authenticatorOptions=R,j.authenticatorToken=ye,j.createDigestPlaceholder=b,j.hotpCheck=U,j.hotpCounter=E,j.hotpCreateHmacKey=T,j.hotpDefaultOptions=M,j.hotpDigestToToken=k,j.hotpKeyuri=W,j.hotpOptions=A,j.hotpOptionsValidator=D,j.hotpToken=z,j.isTokenValid=a,j.keyuri=d,j.objectValues=p,j.padStart=y,j.totpCheck=h,j.totpCheckByEpoch=c,j.totpCheckWithWindow=C,j.totpCounter=me,j.totpCreateHmacKey=ie,j.totpDefaultOptions=se,j.totpEpochAvailable=r,j.totpKeyuri=_,j.totpOptions=J,j.totpOptionsValidator=le,j.totpPadSecret=q,j.totpTimeRemaining=I,j.totpTimeUsed=S,j.totpToken=x},6098:(He,j,p)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0});var i=function e(a){return a&&"object"==typeof a&&"default"in a?a.default:a}(p(1348));j.createDigest=(a,y,d)=>i.createHmac(a,Buffer.from(y,"hex")).update(Buffer.from(d,"hex")).digest().toString("hex"),j.createRandomBytes=(a,y)=>i.randomBytes(a).toString(y)},1415:(He,j,p)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0});var i=function e(a){return a&&"object"==typeof a&&"default"in a?a.default:a}(p(2167));j.keyDecoder=(a,y)=>i.decode(a).toString(y),j.keyEncoder=(a,y)=>i.encode(Buffer.from(a,y).toString("ascii")).toString().replace(/=/g,"")},842:(He,j,p)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0});var e=p(6098),i=p(1415),u=p(7854);const b=new u.HOTP({createDigest:e.createDigest}),a=new u.TOTP({createDigest:e.createDigest}),y=new u.Authenticator({createDigest:e.createDigest,createRandomBytes:e.createRandomBytes,keyDecoder:i.keyDecoder,keyEncoder:i.keyEncoder});j.authenticator=y,j.hotp=b,j.totp=a},7977:(He,j,p)=>{"use strict";const e=j;e.bignum=p(3854),e.define=p(9516).define,e.base=p(7813),e.constants=p(5459),e.decoders=p(196),e.encoders=p(1131)},9516:(He,j,p)=>{"use strict";const e=p(1131),i=p(196),u=p(3894);function a(y,d){this.name=y,this.body=d,this.decoders={},this.encoders={}}j.define=function(d,P){return new a(d,P)},a.prototype._createNamed=function(d){const P=this.name;function D(T){this._initNamed(T,P)}return u(D,d),D.prototype._initNamed=function(M,A){d.call(this,M,A)},new D(this)},a.prototype._getDecoder=function(d){return this.decoders.hasOwnProperty(d=d||"der")||(this.decoders[d]=this._createNamed(i[d])),this.decoders[d]},a.prototype.decode=function(d,P,D){return this._getDecoder(P).decode(d,D)},a.prototype._getEncoder=function(d){return this.encoders.hasOwnProperty(d=d||"der")||(this.encoders[d]=this._createNamed(e[d])),this.encoders[d]},a.prototype.encode=function(d,P,D){return this._getEncoder(P).encode(d,D)}},2769:(He,j,p)=>{"use strict";const e=p(3894),i=p(4919).b,u=p(2038).Buffer;function b(y,d){i.call(this,d),u.isBuffer(y)?(this.base=y,this.offset=0,this.length=y.length):this.error("Input not Buffer")}function a(y,d){if(Array.isArray(y))this.length=0,this.value=y.map(function(P){return a.isEncoderBuffer(P)||(P=new a(P,d)),this.length+=P.length,P},this);else if("number"==typeof y){if(!(0<=y&&y<=255))return d.error("non-byte EncoderBuffer value");this.value=y,this.length=1}else if("string"==typeof y)this.value=y,this.length=u.byteLength(y);else{if(!u.isBuffer(y))return d.error("Unsupported type: "+typeof y);this.value=y,this.length=y.length}}e(b,i),j.C=b,b.isDecoderBuffer=function(d){return d instanceof b||"object"==typeof d&&u.isBuffer(d.base)&&"DecoderBuffer"===d.constructor.name&&"number"==typeof d.offset&&"number"==typeof d.length&&"function"==typeof d.save&&"function"==typeof d.restore&&"function"==typeof d.isEmpty&&"function"==typeof d.readUInt8&&"function"==typeof d.skip&&"function"==typeof d.raw},b.prototype.save=function(){return{offset:this.offset,reporter:i.prototype.save.call(this)}},b.prototype.restore=function(d){const P=new b(this.base);return P.offset=d.offset,P.length=this.offset,this.offset=d.offset,i.prototype.restore.call(this,d.reporter),P},b.prototype.isEmpty=function(){return this.offset===this.length},b.prototype.readUInt8=function(d){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(d||"DecoderBuffer overrun")},b.prototype.skip=function(d,P){if(!(this.offset+d<=this.length))return this.error(P||"DecoderBuffer overrun");const D=new b(this.base);return D._reporterState=this._reporterState,D.offset=this.offset,D.length=this.offset+d,this.offset+=d,D},b.prototype.raw=function(d){return this.base.slice(d?d.offset:this.offset,this.length)},j.R=a,a.isEncoderBuffer=function(d){return d instanceof a||"object"==typeof d&&"EncoderBuffer"===d.constructor.name&&"number"==typeof d.length&&"function"==typeof d.join},a.prototype.join=function(d,P){return d||(d=u.alloc(this.length)),P||(P=0),0===this.length||(Array.isArray(this.value)?this.value.forEach(function(D){D.join(d,P),P+=D.length}):("number"==typeof this.value?d[P]=this.value:"string"==typeof this.value?d.write(this.value,P):u.isBuffer(this.value)&&this.value.copy(d,P),P+=this.length)),d}},7813:(He,j,p)=>{"use strict";const e=j;e.Reporter=p(4919).b,e.DecoderBuffer=p(2769).C,e.EncoderBuffer=p(2769).R,e.Node=p(1430)},1430:(He,j,p)=>{"use strict";const e=p(4919).b,i=p(2769).R,u=p(2769).C,b=p(2391),a=["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"],y=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(a);function P(T,M,A){const E={};this._baseState=E,E.name=A,E.enc=T,E.parent=M||null,E.children=null,E.tag=null,E.args=null,E.reverseArgs=null,E.choice=null,E.optional=!1,E.any=!1,E.obj=!1,E.use=null,E.useDecoder=null,E.key=null,E.default=null,E.explicit=null,E.implicit=null,E.contains=null,E.parent||(E.children=[],this._wrap())}He.exports=P;const D=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];P.prototype.clone=function(){const M=this._baseState,A={};D.forEach(function(k){A[k]=M[k]});const E=new this.constructor(A.parent);return E._baseState=A,E},P.prototype._wrap=function(){const M=this._baseState;y.forEach(function(A){this[A]=function(){const k=new this.constructor(this);return M.children.push(k),k[A].apply(k,arguments)}},this)},P.prototype._init=function(M){const A=this._baseState;b(null===A.parent),M.call(this),A.children=A.children.filter(function(E){return E._baseState.parent===this},this),b.equal(A.children.length,1,"Root node can have only one child")},P.prototype._useArgs=function(M){const A=this._baseState,E=M.filter(function(k){return k instanceof this.constructor},this);M=M.filter(function(k){return!(k instanceof this.constructor)},this),0!==E.length&&(b(null===A.children),A.children=E,E.forEach(function(k){k._baseState.parent=this},this)),0!==M.length&&(b(null===A.args),A.args=M,A.reverseArgs=M.map(function(k){if("object"!=typeof k||k.constructor!==Object)return k;const w={};return Object.keys(k).forEach(function(z){z==(0|z)&&(z|=0),w[k[z]]=z}),w}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(T){P.prototype[T]=function(){throw new Error(T+" not implemented for encoding: "+this._baseState.enc)}}),a.forEach(function(T){P.prototype[T]=function(){const A=this._baseState,E=Array.prototype.slice.call(arguments);return b(null===A.tag),A.tag=T,this._useArgs(E),this}}),P.prototype.use=function(M){b(M);const A=this._baseState;return b(null===A.use),A.use=M,this},P.prototype.optional=function(){return this._baseState.optional=!0,this},P.prototype.def=function(M){const A=this._baseState;return b(null===A.default),A.default=M,A.optional=!0,this},P.prototype.explicit=function(M){const A=this._baseState;return b(null===A.explicit&&null===A.implicit),A.explicit=M,this},P.prototype.implicit=function(M){const A=this._baseState;return b(null===A.explicit&&null===A.implicit),A.implicit=M,this},P.prototype.obj=function(){const M=this._baseState,A=Array.prototype.slice.call(arguments);return M.obj=!0,0!==A.length&&this._useArgs(A),this},P.prototype.key=function(M){const A=this._baseState;return b(null===A.key),A.key=M,this},P.prototype.any=function(){return this._baseState.any=!0,this},P.prototype.choice=function(M){const A=this._baseState;return b(null===A.choice),A.choice=M,this._useArgs(Object.keys(M).map(function(E){return M[E]})),this},P.prototype.contains=function(M){const A=this._baseState;return b(null===A.use),A.contains=M,this},P.prototype._decode=function(M,A){const E=this._baseState;if(null===E.parent)return M.wrapResult(E.children[0]._decode(M,A));let U,k=E.default,w=!0,z=null;if(null!==E.key&&(z=M.enterKey(E.key)),E.optional){let W=null;if(null!==E.explicit?W=E.explicit:null!==E.implicit?W=E.implicit:null!==E.tag&&(W=E.tag),null!==W||E.any){if(w=this._peekTag(M,W,E.any),M.isError(w))return w}else{const ne=M.save();try{null===E.choice?this._decodeGeneric(E.tag,M,A):this._decodeChoice(M,A),w=!0}catch(Q){w=!1}M.restore(ne)}}if(E.obj&&w&&(U=M.enterObject()),w){if(null!==E.explicit){const ne=this._decodeTag(M,E.explicit);if(M.isError(ne))return ne;M=ne}const W=M.offset;if(null===E.use&&null===E.choice){let ne;E.any&&(ne=M.save());const Q=this._decodeTag(M,null!==E.implicit?E.implicit:E.tag,E.any);if(M.isError(Q))return Q;E.any?k=M.raw(ne):M=Q}if(A&&A.track&&null!==E.tag&&A.track(M.path(),W,M.length,"tagged"),A&&A.track&&null!==E.tag&&A.track(M.path(),M.offset,M.length,"content"),E.any||(k=null===E.choice?this._decodeGeneric(E.tag,M,A):this._decodeChoice(M,A)),M.isError(k))return k;if(!E.any&&null===E.choice&&null!==E.children&&E.children.forEach(function(Q){Q._decode(M,A)}),E.contains&&("octstr"===E.tag||"bitstr"===E.tag)){const ne=new u(k);k=this._getUse(E.contains,M._reporterState.obj)._decode(ne,A)}}return E.obj&&w&&(k=M.leaveObject(U)),null===E.key||null===k&&!0!==w?null!==z&&M.exitKey(z):M.leaveKey(z,E.key,k),k},P.prototype._decodeGeneric=function(M,A,E){const k=this._baseState;return"seq"===M||"set"===M?null:"seqof"===M||"setof"===M?this._decodeList(A,M,k.args[0],E):/str$/.test(M)?this._decodeStr(A,M,E):"objid"===M&&k.args?this._decodeObjid(A,k.args[0],k.args[1],E):"objid"===M?this._decodeObjid(A,null,null,E):"gentime"===M||"utctime"===M?this._decodeTime(A,M,E):"null_"===M?this._decodeNull(A,E):"bool"===M?this._decodeBool(A,E):"objDesc"===M?this._decodeStr(A,M,E):"int"===M||"enum"===M?this._decodeInt(A,k.args&&k.args[0],E):null!==k.use?this._getUse(k.use,A._reporterState.obj)._decode(A,E):A.error("unknown tag: "+M)},P.prototype._getUse=function(M,A){const E=this._baseState;return E.useDecoder=this._use(M,A),b(null===E.useDecoder._baseState.parent),E.useDecoder=E.useDecoder._baseState.children[0],E.implicit!==E.useDecoder._baseState.implicit&&(E.useDecoder=E.useDecoder.clone(),E.useDecoder._baseState.implicit=E.implicit),E.useDecoder},P.prototype._decodeChoice=function(M,A){const E=this._baseState;let k=null,w=!1;return Object.keys(E.choice).some(function(z){const U=M.save(),W=E.choice[z];try{const ne=W._decode(M,A);if(M.isError(ne))return!1;k={type:z,value:ne},w=!0}catch(ne){return M.restore(U),!1}return!0},this),w?k:M.error("Choice not matched")},P.prototype._createEncoderBuffer=function(M){return new i(M,this.reporter)},P.prototype._encode=function(M,A,E){const k=this._baseState;if(null!==k.default&&k.default===M)return;const w=this._encodeValue(M,A,E);return void 0===w||this._skipDefault(w,A,E)?void 0:w},P.prototype._encodeValue=function(M,A,E){const k=this._baseState;if(null===k.parent)return k.children[0]._encode(M,A||new e);let w=null;if(this.reporter=A,k.optional&&void 0===M){if(null===k.default)return;M=k.default}let z=null,U=!1;if(k.any)w=this._createEncoderBuffer(M);else if(k.choice)w=this._encodeChoice(M,A);else if(k.contains)z=this._getUse(k.contains,E)._encode(M,A),U=!0;else if(k.children)z=k.children.map(function(W){if("null_"===W._baseState.tag)return W._encode(null,A,M);if(null===W._baseState.key)return A.error("Child should have a key");const ne=A.enterKey(W._baseState.key);if("object"!=typeof M)return A.error("Child expected, but input is not object");const Q=W._encode(M[W._baseState.key],A,M);return A.leaveKey(ne),Q},this).filter(function(W){return W}),z=this._createEncoderBuffer(z);else if("seqof"===k.tag||"setof"===k.tag){if(!k.args||1!==k.args.length)return A.error("Too many args for : "+k.tag);if(!Array.isArray(M))return A.error("seqof/setof, but data is not Array");const W=this.clone();W._baseState.implicit=null,z=this._createEncoderBuffer(M.map(function(ne){return this._getUse(this._baseState.args[0],M)._encode(ne,A)},W))}else null!==k.use?w=this._getUse(k.use,E)._encode(M,A):(z=this._encodePrimitive(k.tag,M),U=!0);if(!k.any&&null===k.choice){const W=null!==k.implicit?k.implicit:k.tag,ne=null===k.implicit?"universal":"context";null===W?null===k.use&&A.error("Tag could be omitted only for .use()"):null===k.use&&(w=this._encodeComposite(W,U,ne,z))}return null!==k.explicit&&(w=this._encodeComposite(k.explicit,!1,"context",w)),w},P.prototype._encodeChoice=function(M,A){const E=this._baseState,k=E.choice[M.type];return k||b(!1,M.type+" not found in "+JSON.stringify(Object.keys(E.choice))),k._encode(M.value,A)},P.prototype._encodePrimitive=function(M,A){const E=this._baseState;if(/str$/.test(M))return this._encodeStr(A,M);if("objid"===M&&E.args)return this._encodeObjid(A,E.reverseArgs[0],E.args[1]);if("objid"===M)return this._encodeObjid(A,null,null);if("gentime"===M||"utctime"===M)return this._encodeTime(A,M);if("null_"===M)return this._encodeNull();if("int"===M||"enum"===M)return this._encodeInt(A,E.args&&E.reverseArgs[0]);if("bool"===M)return this._encodeBool(A);if("objDesc"===M)return this._encodeStr(A,M);throw new Error("Unsupported tag: "+M)},P.prototype._isNumstr=function(M){return/^[0-9 ]*$/.test(M)},P.prototype._isPrintstr=function(M){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(M)}},4919:(He,j,p)=>{"use strict";const e=p(3894);function i(b){this._reporterState={obj:null,path:[],options:b||{},errors:[]}}function u(b,a){this.path=b,this.rethrow(a)}j.b=i,i.prototype.isError=function(a){return a instanceof u},i.prototype.save=function(){const a=this._reporterState;return{obj:a.obj,pathLen:a.path.length}},i.prototype.restore=function(a){const y=this._reporterState;y.obj=a.obj,y.path=y.path.slice(0,a.pathLen)},i.prototype.enterKey=function(a){return this._reporterState.path.push(a)},i.prototype.exitKey=function(a){const y=this._reporterState;y.path=y.path.slice(0,a-1)},i.prototype.leaveKey=function(a,y,d){const P=this._reporterState;this.exitKey(a),null!==P.obj&&(P.obj[y]=d)},i.prototype.path=function(){return this._reporterState.path.join("/")},i.prototype.enterObject=function(){const a=this._reporterState,y=a.obj;return a.obj={},y},i.prototype.leaveObject=function(a){const y=this._reporterState,d=y.obj;return y.obj=a,d},i.prototype.error=function(a){let y;const d=this._reporterState,P=a instanceof u;if(y=P?a:new u(d.path.map(function(D){return"["+JSON.stringify(D)+"]"}).join(""),a.message||a,a.stack),!d.options.partial)throw y;return P||d.errors.push(y),y},i.prototype.wrapResult=function(a){const y=this._reporterState;return y.options.partial?{result:this.isError(a)?null:a,errors:y.errors}:a},e(u,Error),u.prototype.rethrow=function(a){if(this.message=a+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,u),!this.stack)try{throw new Error(this.message)}catch(y){this.stack=y.stack}return this}},5496:(He,j)=>{"use strict";function p(e){const i={};return Object.keys(e).forEach(function(u){(0|u)==u&&(u|=0),i[e[u]]=u}),i}j.tagClass={0:"universal",1:"application",2:"context",3:"private"},j.tagClassByName=p(j.tagClass),j.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"},j.tagByName=p(j.tag)},5459:(He,j,p)=>{"use strict";const e=j;e._reverse=function(u){const b={};return Object.keys(u).forEach(function(a){(0|a)==a&&(a|=0),b[u[a]]=a}),b},e.der=p(5496)},7127:(He,j,p)=>{"use strict";const e=p(3894),i=p(3854),u=p(2769).C,b=p(1430),a=p(5496);function y(T){this.enc="der",this.name=T.name,this.entity=T,this.tree=new d,this.tree._init(T.body)}function d(T){b.call(this,"der",T)}function P(T,M){let A=T.readUInt8(M);if(T.isError(A))return A;const E=a.tagClass[A>>6],k=0==(32&A);if(31==(31&A)){let z=A;for(A=0;128==(128&z);){if(z=T.readUInt8(M),T.isError(z))return z;A<<=7,A|=127&z}}else A&=31;return{cls:E,primitive:k,tag:A,tagStr:a.tag[A]}}function D(T,M,A){let E=T.readUInt8(A);if(T.isError(E))return E;if(!M&&128===E)return null;if(0==(128&E))return E;const k=127&E;if(k>4)return T.error("length octect is too long");E=0;for(let w=0;w<k;w++){E<<=8;const z=T.readUInt8(A);if(T.isError(z))return z;E|=z}return E}He.exports=y,y.prototype.decode=function(M,A){return u.isDecoderBuffer(M)||(M=new u(M,A)),this.tree._decode(M,A)},e(d,b),d.prototype._peekTag=function(M,A,E){if(M.isEmpty())return!1;const k=M.save(),w=P(M,'Failed to peek tag: "'+A+'"');return M.isError(w)?w:(M.restore(k),w.tag===A||w.tagStr===A||w.tagStr+"of"===A||E)},d.prototype._decodeTag=function(M,A,E){const k=P(M,'Failed to decode tag of "'+A+'"');if(M.isError(k))return k;let w=D(M,k.primitive,'Failed to get length of "'+A+'"');if(M.isError(w))return w;if(!E&&k.tag!==A&&k.tagStr!==A&&k.tagStr+"of"!==A)return M.error('Failed to match tag: "'+A+'"');if(k.primitive||null!==w)return M.skip(w,'Failed to match body of: "'+A+'"');const z=M.save(),U=this._skipUntilEnd(M,'Failed to skip indefinite length body: "'+this.tag+'"');return M.isError(U)?U:(w=M.offset-z.offset,M.restore(z),M.skip(w,'Failed to match body of: "'+A+'"'))},d.prototype._skipUntilEnd=function(M,A){for(;;){const E=P(M,A);if(M.isError(E))return E;const k=D(M,E.primitive,A);if(M.isError(k))return k;let w;if(w=E.primitive||null!==k?M.skip(k):this._skipUntilEnd(M,A),M.isError(w))return w;if("end"===E.tagStr)break}},d.prototype._decodeList=function(M,A,E,k){const w=[];for(;!M.isEmpty();){const z=this._peekTag(M,"end");if(M.isError(z))return z;const U=E.decode(M,"der",k);if(M.isError(U)&&z)break;w.push(U)}return w},d.prototype._decodeStr=function(M,A){if("bitstr"===A){const E=M.readUInt8();return M.isError(E)?E:{unused:E,data:M.raw()}}if("bmpstr"===A){const E=M.raw();if(E.length%2==1)return M.error("Decoding of string type: bmpstr length mismatch");let k="";for(let w=0;w<E.length/2;w++)k+=String.fromCharCode(E.readUInt16BE(2*w));return k}if("numstr"===A){const E=M.raw().toString("ascii");return this._isNumstr(E)?E:M.error("Decoding of string type: numstr unsupported characters")}if("octstr"===A)return M.raw();if("objDesc"===A)return M.raw();if("printstr"===A){const E=M.raw().toString("ascii");return this._isPrintstr(E)?E:M.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(A)?M.raw().toString():M.error("Decoding of string type: "+A+" unsupported")},d.prototype._decodeObjid=function(M,A,E){let k;const w=[];let z=0,U=0;for(;!M.isEmpty();)U=M.readUInt8(),z<<=7,z|=127&U,0==(128&U)&&(w.push(z),z=0);if(128&U&&w.push(z),k=E?w:[w[0]/40|0,w[0]%40].concat(w.slice(1)),A){let Q=A[k.join(" ")];void 0===Q&&(Q=A[k.join(".")]),void 0!==Q&&(k=Q)}return k},d.prototype._decodeTime=function(M,A){const E=M.raw().toString();let k,w,z,U,W,ne;if("gentime"===A)k=0|E.slice(0,4),w=0|E.slice(4,6),z=0|E.slice(6,8),U=0|E.slice(8,10),W=0|E.slice(10,12),ne=0|E.slice(12,14);else{if("utctime"!==A)return M.error("Decoding "+A+" time is not supported yet");k=0|E.slice(0,2),w=0|E.slice(2,4),z=0|E.slice(4,6),U=0|E.slice(6,8),W=0|E.slice(8,10),ne=0|E.slice(10,12),k=k<70?2e3+k:1900+k}return Date.UTC(k,w-1,z,U,W,ne,0)},d.prototype._decodeNull=function(){return null},d.prototype._decodeBool=function(M){const A=M.readUInt8();return M.isError(A)?A:0!==A},d.prototype._decodeInt=function(M,A){const E=M.raw();let k=new i(E);return A&&(k=A[k.toString(10)]||k),k},d.prototype._use=function(M,A){return"function"==typeof M&&(M=M(A)),M._getDecoder("der").tree}},196:(He,j,p)=>{"use strict";const e=j;e.der=p(7127),e.pem=p(9617)},9617:(He,j,p)=>{"use strict";const e=p(3894),i=p(2038).Buffer,u=p(7127);function b(a){u.call(this,a),this.enc="pem"}e(b,u),He.exports=b,b.prototype.decode=function(y,d){const P=y.toString().split(/[\r\n]+/g),D=d.label.toUpperCase(),T=/^-----(BEGIN|END) ([^-]+)-----$/;let M=-1,A=-1;for(let w=0;w<P.length;w++){const z=P[w].match(T);if(null!==z&&z[2]===D){if(-1!==M){if("END"!==z[1])break;A=w;break}if("BEGIN"!==z[1])break;M=w}}if(-1===M||-1===A)throw new Error("PEM section not found for: "+D);const E=P.slice(M+1,A).join("");E.replace(/[^a-z0-9+/=]+/gi,"");const k=i.from(E,"base64");return u.prototype.decode.call(this,k,d)}},6374:(He,j,p)=>{"use strict";const e=p(3894),i=p(2038).Buffer,u=p(1430),b=p(5496);function a(D){this.enc="der",this.name=D.name,this.entity=D,this.tree=new y,this.tree._init(D.body)}function y(D){u.call(this,"der",D)}function d(D){return D<10?"0"+D:D}He.exports=a,a.prototype.encode=function(T,M){return this.tree._encode(T,M).join()},e(y,u),y.prototype._encodeComposite=function(T,M,A,E){const k=function P(D,T,M,A){let E;if("seqof"===D?D="seq":"setof"===D&&(D="set"),b.tagByName.hasOwnProperty(D))E=b.tagByName[D];else{if("number"!=typeof D||(0|D)!==D)return A.error("Unknown tag: "+D);E=D}return E>=31?A.error("Multi-octet tag encoding unsupported"):(T||(E|=32),E|=b.tagClassByName[M||"universal"]<<6,E)}(T,M,A,this.reporter);if(E.length<128){const U=i.alloc(2);return U[0]=k,U[1]=E.length,this._createEncoderBuffer([U,E])}let w=1;for(let U=E.length;U>=256;U>>=8)w++;const z=i.alloc(2+w);z[0]=k,z[1]=128|w;for(let U=1+w,W=E.length;W>0;U--,W>>=8)z[U]=255&W;return this._createEncoderBuffer([z,E])},y.prototype._encodeStr=function(T,M){if("bitstr"===M)return this._createEncoderBuffer([0|T.unused,T.data]);if("bmpstr"===M){const A=i.alloc(2*T.length);for(let E=0;E<T.length;E++)A.writeUInt16BE(T.charCodeAt(E),2*E);return this._createEncoderBuffer(A)}return"numstr"===M?this._isNumstr(T)?this._createEncoderBuffer(T):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===M?this._isPrintstr(T)?this._createEncoderBuffer(T):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(M)||"objDesc"===M?this._createEncoderBuffer(T):this.reporter.error("Encoding of string type: "+M+" unsupported")},y.prototype._encodeObjid=function(T,M,A){if("string"==typeof T){if(!M)return this.reporter.error("string objid given, but no values map found");if(!M.hasOwnProperty(T))return this.reporter.error("objid not found in values map");T=M[T].split(/[\s.]+/g);for(let z=0;z<T.length;z++)T[z]|=0}else if(Array.isArray(T)){T=T.slice();for(let z=0;z<T.length;z++)T[z]|=0}if(!Array.isArray(T))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(T));if(!A){if(T[1]>=40)return this.reporter.error("Second objid identifier OOB");T.splice(0,2,40*T[0]+T[1])}let E=0;for(let z=0;z<T.length;z++){let U=T[z];for(E++;U>=128;U>>=7)E++}const k=i.alloc(E);let w=k.length-1;for(let z=T.length-1;z>=0;z--){let U=T[z];for(k[w--]=127&U;(U>>=7)>0;)k[w--]=128|127&U}return this._createEncoderBuffer(k)},y.prototype._encodeTime=function(T,M){let A;const E=new Date(T);return"gentime"===M?A=[d(E.getUTCFullYear()),d(E.getUTCMonth()+1),d(E.getUTCDate()),d(E.getUTCHours()),d(E.getUTCMinutes()),d(E.getUTCSeconds()),"Z"].join(""):"utctime"===M?A=[d(E.getUTCFullYear()%100),d(E.getUTCMonth()+1),d(E.getUTCDate()),d(E.getUTCHours()),d(E.getUTCMinutes()),d(E.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+M+" time is not supported yet"),this._encodeStr(A,"octstr")},y.prototype._encodeNull=function(){return this._createEncoderBuffer("")},y.prototype._encodeInt=function(T,M){if("string"==typeof T){if(!M)return this.reporter.error("String int or enum given, but no values map");if(!M.hasOwnProperty(T))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(T));T=M[T]}if("number"!=typeof T&&!i.isBuffer(T)){const k=T.toArray();!T.sign&&128&k[0]&&k.unshift(0),T=i.from(k)}if(i.isBuffer(T)){let k=T.length;0===T.length&&k++;const w=i.alloc(k);return T.copy(w),0===T.length&&(w[0]=0),this._createEncoderBuffer(w)}if(T<128)return this._createEncoderBuffer(T);if(T<256)return this._createEncoderBuffer([0,T]);let A=1;for(let k=T;k>=256;k>>=8)A++;const E=new Array(A);for(let k=E.length-1;k>=0;k--)E[k]=255&T,T>>=8;return 128&E[0]&&E.unshift(0),this._createEncoderBuffer(i.from(E))},y.prototype._encodeBool=function(T){return this._createEncoderBuffer(T?255:0)},y.prototype._use=function(T,M){return"function"==typeof T&&(T=T(M)),T._getEncoder("der").tree},y.prototype._skipDefault=function(T,M,A){const E=this._baseState;let k;if(null===E.default)return!1;const w=T.join();if(void 0===E.defaultBuffer&&(E.defaultBuffer=this._encodeValue(E.default,M,A).join()),w.length!==E.defaultBuffer.length)return!1;for(k=0;k<w.length;k++)if(w[k]!==E.defaultBuffer[k])return!1;return!0}},1131:(He,j,p)=>{"use strict";const e=j;e.der=p(6374),e.pem=p(3530)},3530:(He,j,p)=>{"use strict";const e=p(3894),i=p(6374);function u(b){i.call(this,b),this.enc="pem"}e(u,i),He.exports=u,u.prototype.encode=function(a,y){const P=i.prototype.encode.call(this,a).toString("base64"),D=["-----BEGIN "+y.label+"-----"];for(let T=0;T<P.length;T+=64)D.push(P.slice(T,T+64));return D.push("-----END "+y.label+"-----"),D.join("\n")}},3854:function(He,j,p){!function(e,i){"use strict";function u(x,t){if(!x)throw new Error(t||"Assertion failed")}function b(x,t){x.super_=t;var r=function(){};r.prototype=t.prototype,x.prototype=new r,x.prototype.constructor=x}function a(x,t,r){if(a.isBN(x))return x;this.negative=0,this.words=null,this.length=0,this.red=null,null!==x&&(("le"===t||"be"===t)&&(r=t,t=10),this._init(x||0,t||10,r||"be"))}var y;"object"==typeof e?e.exports=a:i.BN=a,a.BN=a,a.wordSize=26;try{y="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:p(950).Buffer}catch(x){}function d(x,t){var r=x.charCodeAt(t);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function P(x,t,r){var h=d(x,r);return r-1>=t&&(h|=d(x,r-1)<<4),h}function D(x,t,r,h){for(var c=0,C=Math.min(x.length,r),S=t;S<C;S++){var I=x.charCodeAt(S)-48;c*=h,c+=I>=49?I-49+10:I>=17?I-17+10:I}return c}a.isBN=function(t){return t instanceof a||null!==t&&"object"==typeof t&&t.constructor.wordSize===a.wordSize&&Array.isArray(t.words)},a.max=function(t,r){return t.cmp(r)>0?t:r},a.min=function(t,r){return t.cmp(r)<0?t:r},a.prototype._init=function(t,r,h){if("number"==typeof t)return this._initNumber(t,r,h);if("object"==typeof t)return this._initArray(t,r,h);"hex"===r&&(r=16),u(r===(0|r)&&r>=2&&r<=36);var c=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(c++,this.negative=1),c<t.length&&(16===r?this._parseHex(t,c,h):(this._parseBase(t,r,c),"le"===h&&this._initArray(this.toArray(),r,h)))},a.prototype._initNumber=function(t,r,h){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(u(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===h&&this._initArray(this.toArray(),r,h)},a.prototype._initArray=function(t,r,h){if(u("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var c=0;c<this.length;c++)this.words[c]=0;var C,S,I=0;if("be"===h)for(c=t.length-1,C=0;c>=0;c-=3)this.words[C]|=(S=t[c]|t[c-1]<<8|t[c-2]<<16)<<I&67108863,this.words[C+1]=S>>>26-I&67108863,(I+=24)>=26&&(I-=26,C++);else if("le"===h)for(c=0,C=0;c<t.length;c+=3)this.words[C]|=(S=t[c]|t[c+1]<<8|t[c+2]<<16)<<I&67108863,this.words[C+1]=S>>>26-I&67108863,(I+=24)>=26&&(I-=26,C++);return this.strip()},a.prototype._parseHex=function(t,r,h){this.length=Math.ceil((t.length-r)/6),this.words=new Array(this.length);for(var c=0;c<this.length;c++)this.words[c]=0;var I,C=0,S=0;if("be"===h)for(c=t.length-1;c>=r;c-=2)I=P(t,r,c)<<C,this.words[S]|=67108863&I,C>=18?(C-=18,this.words[S+=1]|=I>>>26):C+=8;else for(c=(t.length-r)%2==0?r+1:r;c<t.length;c+=2)I=P(t,r,c)<<C,this.words[S]|=67108863&I,C>=18?(C-=18,this.words[S+=1]|=I>>>26):C+=8;this.strip()},a.prototype._parseBase=function(t,r,h){this.words=[0],this.length=1;for(var c=0,C=1;C<=67108863;C*=r)c++;c--,C=C/r|0;for(var S=t.length-h,I=S%c,_=Math.min(S,S-I)+h,n=0,g=h;g<_;g+=c)n=D(t,g,g+c,r),this.imuln(C),this.words[0]+n<67108864?this.words[0]+=n:this._iaddn(n);if(0!==I){var V=1;for(n=D(t,g,t.length,r),g=0;g<I;g++)V*=r;this.imuln(V),this.words[0]+n<67108864?this.words[0]+=n:this._iaddn(n)}this.strip()},a.prototype.copy=function(t){t.words=new Array(this.length);for(var r=0;r<this.length;r++)t.words[r]=this.words[r];t.length=this.length,t.negative=this.negative,t.red=this.red},a.prototype.clone=function(){var t=new a(null);return this.copy(t),t},a.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},a.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var T=["","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],A=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function k(x,t,r){r.negative=t.negative^x.negative;var h=x.length+t.length|0;r.length=h,h=h-1|0;var c=0|x.words[0],C=0|t.words[0],S=c*C,_=S/67108864|0;r.words[0]=67108863&S;for(var n=1;n<h;n++){for(var g=_>>>26,V=67108863&_,R=Math.min(n,t.length-1),H=Math.max(0,n-x.length+1);H<=R;H++)g+=(S=(c=0|x.words[n-H|0])*(C=0|t.words[H])+V)/67108864|0,V=67108863&S;r.words[n]=0|V,_=0|g}return 0!==_?r.words[n]=0|_:r.length--,r.strip()}a.prototype.toString=function(t,r){var h;if(r=0|r||1,16===(t=t||10)||"hex"===t){h="";for(var c=0,C=0,S=0;S<this.length;S++){var I=this.words[S],_=(16777215&(I<<c|C)).toString(16);h=0!=(C=I>>>24-c&16777215)||S!==this.length-1?T[6-_.length]+_+h:_+h,(c+=2)>=26&&(c-=26,S--)}for(0!==C&&(h=C.toString(16)+h);h.length%r!=0;)h="0"+h;return 0!==this.negative&&(h="-"+h),h}if(t===(0|t)&&t>=2&&t<=36){var n=M[t],g=A[t];h="";var V=this.clone();for(V.negative=0;!V.isZero();){var R=V.modn(g).toString(t);h=(V=V.idivn(g)).isZero()?R+h:T[n-R.length]+R+h}for(this.isZero()&&(h="0"+h);h.length%r!=0;)h="0"+h;return 0!==this.negative&&(h="-"+h),h}u(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&u(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(t,r){return u(void 0!==y),this.toArrayLike(y,t,r)},a.prototype.toArray=function(t,r){return this.toArrayLike(Array,t,r)},a.prototype.toArrayLike=function(t,r,h){var c=this.byteLength(),C=h||Math.max(1,c);u(c<=C,"byte array longer than desired length"),u(C>0,"Requested array length <= 0"),this.strip();var _,n,S="le"===r,I=new t(C),g=this.clone();if(S){for(n=0;!g.isZero();n++)_=g.andln(255),g.iushrn(8),I[n]=_;for(;n<C;n++)I[n]=0}else{for(n=0;n<C-c;n++)I[n]=0;for(n=0;!g.isZero();n++)_=g.andln(255),g.iushrn(8),I[C-n-1]=_}return I},a.prototype._countBits=Math.clz32?function(t){return 32-Math.clz32(t)}:function(t){var r=t,h=0;return r>=4096&&(h+=13,r>>>=13),r>=64&&(h+=7,r>>>=7),r>=8&&(h+=4,r>>>=4),r>=2&&(h+=2,r>>>=2),h+r},a.prototype._zeroBits=function(t){if(0===t)return 26;var r=t,h=0;return 0==(8191&r)&&(h+=13,r>>>=13),0==(127&r)&&(h+=7,r>>>=7),0==(15&r)&&(h+=4,r>>>=4),0==(3&r)&&(h+=2,r>>>=2),0==(1&r)&&h++,h},a.prototype.bitLength=function(){var r=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+r},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,r=0;r<this.length;r++){var h=this._zeroBits(this.words[r]);if(t+=h,26!==h)break}return t},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},a.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return 0!==this.negative},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]|t.words[r];return this.strip()},a.prototype.ior=function(t){return u(0==(this.negative|t.negative)),this.iuor(t)},a.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},a.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},a.prototype.iuand=function(t){var r;r=this.length>t.length?t:this;for(var h=0;h<r.length;h++)this.words[h]=this.words[h]&t.words[h];return this.length=r.length,this.strip()},a.prototype.iand=function(t){return u(0==(this.negative|t.negative)),this.iuand(t)},a.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},a.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},a.prototype.iuxor=function(t){var r,h;this.length>t.length?(r=this,h=t):(r=t,h=this);for(var c=0;c<h.length;c++)this.words[c]=r.words[c]^h.words[c];if(this!==r)for(;c<r.length;c++)this.words[c]=r.words[c];return this.length=r.length,this.strip()},a.prototype.ixor=function(t){return u(0==(this.negative|t.negative)),this.iuxor(t)},a.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},a.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},a.prototype.inotn=function(t){u("number"==typeof t&&t>=0);var r=0|Math.ceil(t/26),h=t%26;this._expand(r),h>0&&r--;for(var c=0;c<r;c++)this.words[c]=67108863&~this.words[c];return h>0&&(this.words[c]=~this.words[c]&67108863>>26-h),this.strip()},a.prototype.notn=function(t){return this.clone().inotn(t)},a.prototype.setn=function(t,r){u("number"==typeof t&&t>=0);var h=t/26|0,c=t%26;return this._expand(h+1),this.words[h]=r?this.words[h]|1<<c:this.words[h]&~(1<<c),this.strip()},a.prototype.iadd=function(t){var r,h,c;if(0!==this.negative&&0===t.negative)return this.negative=0,r=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,r=this.isub(t),t.negative=1,r._normSign();this.length>t.length?(h=this,c=t):(h=t,c=this);for(var C=0,S=0;S<c.length;S++)this.words[S]=67108863&(r=(0|h.words[S])+(0|c.words[S])+C),C=r>>>26;for(;0!==C&&S<h.length;S++)this.words[S]=67108863&(r=(0|h.words[S])+C),C=r>>>26;if(this.length=h.length,0!==C)this.words[this.length]=C,this.length++;else if(h!==this)for(;S<h.length;S++)this.words[S]=h.words[S];return this},a.prototype.add=function(t){var r;return 0!==t.negative&&0===this.negative?(t.negative=0,r=this.sub(t),t.negative^=1,r):0===t.negative&&0!==this.negative?(this.negative=0,r=t.sub(this),this.negative=1,r):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},a.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var r=this.iadd(t);return t.negative=1,r._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var c,C,h=this.cmp(t);if(0===h)return this.negative=0,this.length=1,this.words[0]=0,this;h>0?(c=this,C=t):(c=t,C=this);for(var S=0,I=0;I<C.length;I++)S=(r=(0|c.words[I])-(0|C.words[I])+S)>>26,this.words[I]=67108863&r;for(;0!==S&&I<c.length;I++)S=(r=(0|c.words[I])+S)>>26,this.words[I]=67108863&r;if(0===S&&I<c.length&&c!==this)for(;I<c.length;I++)this.words[I]=c.words[I];return this.length=Math.max(this.length,I),c!==this&&(this.negative=1),this.strip()},a.prototype.sub=function(t){return this.clone().isub(t)};var w=function(t,r,h){var _,n,g,c=t.words,C=r.words,S=h.words,I=0,V=0|c[0],R=8191&V,H=V>>>13,$=0|c[1],fe=8191&$,ye=$>>>13,ke=0|c[2],Ee=8191&ke,te=ke>>>13,ze=0|c[3],be=8191&ze,Z=ze>>>13,Y=0|c[4],ot=8191&Y,Ie=Y>>>13,Ae=0|c[5],ce=8191&Ae,Te=Ae>>>13,xe=0|c[6],G=8191&xe,ee=xe>>>13,ue=0|c[7],ve=8191&ue,Le=ue>>>13,lt=0|c[8],ht=8191&lt,Tt=lt>>>13,hi=0|c[9],jt=8191&hi,Gt=hi>>>13,di=0|C[0],vt=8191&di,kt=di>>>13,gt=0|C[1],Qe=8191&gt,_t=gt>>>13,ei=0|C[2],Zt=8191&ei,Pe=ei>>>13,De=0|C[3],oe=8191&De,Me=De>>>13,ut=0|C[4],ft=8191&ut,Rt=ut>>>13,et=0|C[5],Re=8191&et,qe=et>>>13,Ze=0|C[6],we=8191&Ze,Fe=Ze>>>13,rt=0|C[7],at=8191&rt,yt=rt>>>13,mi=0|C[8],Xt=8191&mi,Jt=mi>>>13,qi=0|C[9],ui=8191&qi,si=qi>>>13;h.negative=t.negative^r.negative,h.length=19;var en=(I+(_=Math.imul(R,vt))|0)+((8191&(n=(n=Math.imul(R,kt))+Math.imul(H,vt)|0))<<13)|0;I=((g=Math.imul(H,kt))+(n>>>13)|0)+(en>>>26)|0,en&=67108863,_=Math.imul(fe,vt),n=(n=Math.imul(fe,kt))+Math.imul(ye,vt)|0,g=Math.imul(ye,kt);var Ui=(I+(_=_+Math.imul(R,Qe)|0)|0)+((8191&(n=(n=n+Math.imul(R,_t)|0)+Math.imul(H,Qe)|0))<<13)|0;I=((g=g+Math.imul(H,_t)|0)+(n>>>13)|0)+(Ui>>>26)|0,Ui&=67108863,_=Math.imul(Ee,vt),n=(n=Math.imul(Ee,kt))+Math.imul(te,vt)|0,g=Math.imul(te,kt),_=_+Math.imul(fe,Qe)|0,n=(n=n+Math.imul(fe,_t)|0)+Math.imul(ye,Qe)|0,g=g+Math.imul(ye,_t)|0;var Bi=(I+(_=_+Math.imul(R,Zt)|0)|0)+((8191&(n=(n=n+Math.imul(R,Pe)|0)+Math.imul(H,Zt)|0))<<13)|0;I=((g=g+Math.imul(H,Pe)|0)+(n>>>13)|0)+(Bi>>>26)|0,Bi&=67108863,_=Math.imul(be,vt),n=(n=Math.imul(be,kt))+Math.imul(Z,vt)|0,g=Math.imul(Z,kt),_=_+Math.imul(Ee,Qe)|0,n=(n=n+Math.imul(Ee,_t)|0)+Math.imul(te,Qe)|0,g=g+Math.imul(te,_t)|0,_=_+Math.imul(fe,Zt)|0,n=(n=n+Math.imul(fe,Pe)|0)+Math.imul(ye,Zt)|0,g=g+Math.imul(ye,Pe)|0;var Gi=(I+(_=_+Math.imul(R,oe)|0)|0)+((8191&(n=(n=n+Math.imul(R,Me)|0)+Math.imul(H,oe)|0))<<13)|0;I=((g=g+Math.imul(H,Me)|0)+(n>>>13)|0)+(Gi>>>26)|0,Gi&=67108863,_=Math.imul(ot,vt),n=(n=Math.imul(ot,kt))+Math.imul(Ie,vt)|0,g=Math.imul(Ie,kt),_=_+Math.imul(be,Qe)|0,n=(n=n+Math.imul(be,_t)|0)+Math.imul(Z,Qe)|0,g=g+Math.imul(Z,_t)|0,_=_+Math.imul(Ee,Zt)|0,n=(n=n+Math.imul(Ee,Pe)|0)+Math.imul(te,Zt)|0,g=g+Math.imul(te,Pe)|0,_=_+Math.imul(fe,oe)|0,n=(n=n+Math.imul(fe,Me)|0)+Math.imul(ye,oe)|0,g=g+Math.imul(ye,Me)|0;var ct=(I+(_=_+Math.imul(R,ft)|0)|0)+((8191&(n=(n=n+Math.imul(R,Rt)|0)+Math.imul(H,ft)|0))<<13)|0;I=((g=g+Math.imul(H,Rt)|0)+(n>>>13)|0)+(ct>>>26)|0,ct&=67108863,_=Math.imul(ce,vt),n=(n=Math.imul(ce,kt))+Math.imul(Te,vt)|0,g=Math.imul(Te,kt),_=_+Math.imul(ot,Qe)|0,n=(n=n+Math.imul(ot,_t)|0)+Math.imul(Ie,Qe)|0,g=g+Math.imul(Ie,_t)|0,_=_+Math.imul(be,Zt)|0,n=(n=n+Math.imul(be,Pe)|0)+Math.imul(Z,Zt)|0,g=g+Math.imul(Z,Pe)|0,_=_+Math.imul(Ee,oe)|0,n=(n=n+Math.imul(Ee,Me)|0)+Math.imul(te,oe)|0,g=g+Math.imul(te,Me)|0,_=_+Math.imul(fe,ft)|0,n=(n=n+Math.imul(fe,Rt)|0)+Math.imul(ye,ft)|0,g=g+Math.imul(ye,Rt)|0;var Ft=(I+(_=_+Math.imul(R,Re)|0)|0)+((8191&(n=(n=n+Math.imul(R,qe)|0)+Math.imul(H,Re)|0))<<13)|0;I=((g=g+Math.imul(H,qe)|0)+(n>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,_=Math.imul(G,vt),n=(n=Math.imul(G,kt))+Math.imul(ee,vt)|0,g=Math.imul(ee,kt),_=_+Math.imul(ce,Qe)|0,n=(n=n+Math.imul(ce,_t)|0)+Math.imul(Te,Qe)|0,g=g+Math.imul(Te,_t)|0,_=_+Math.imul(ot,Zt)|0,n=(n=n+Math.imul(ot,Pe)|0)+Math.imul(Ie,Zt)|0,g=g+Math.imul(Ie,Pe)|0,_=_+Math.imul(be,oe)|0,n=(n=n+Math.imul(be,Me)|0)+Math.imul(Z,oe)|0,g=g+Math.imul(Z,Me)|0,_=_+Math.imul(Ee,ft)|0,n=(n=n+Math.imul(Ee,Rt)|0)+Math.imul(te,ft)|0,g=g+Math.imul(te,Rt)|0,_=_+Math.imul(fe,Re)|0,n=(n=n+Math.imul(fe,qe)|0)+Math.imul(ye,Re)|0,g=g+Math.imul(ye,qe)|0;var pt=(I+(_=_+Math.imul(R,we)|0)|0)+((8191&(n=(n=n+Math.imul(R,Fe)|0)+Math.imul(H,we)|0))<<13)|0;I=((g=g+Math.imul(H,Fe)|0)+(n>>>13)|0)+(pt>>>26)|0,pt&=67108863,_=Math.imul(ve,vt),n=(n=Math.imul(ve,kt))+Math.imul(Le,vt)|0,g=Math.imul(Le,kt),_=_+Math.imul(G,Qe)|0,n=(n=n+Math.imul(G,_t)|0)+Math.imul(ee,Qe)|0,g=g+Math.imul(ee,_t)|0,_=_+Math.imul(ce,Zt)|0,n=(n=n+Math.imul(ce,Pe)|0)+Math.imul(Te,Zt)|0,g=g+Math.imul(Te,Pe)|0,_=_+Math.imul(ot,oe)|0,n=(n=n+Math.imul(ot,Me)|0)+Math.imul(Ie,oe)|0,g=g+Math.imul(Ie,Me)|0,_=_+Math.imul(be,ft)|0,n=(n=n+Math.imul(be,Rt)|0)+Math.imul(Z,ft)|0,g=g+Math.imul(Z,Rt)|0,_=_+Math.imul(Ee,Re)|0,n=(n=n+Math.imul(Ee,qe)|0)+Math.imul(te,Re)|0,g=g+Math.imul(te,qe)|0,_=_+Math.imul(fe,we)|0,n=(n=n+Math.imul(fe,Fe)|0)+Math.imul(ye,we)|0,g=g+Math.imul(ye,Fe)|0;var it=(I+(_=_+Math.imul(R,at)|0)|0)+((8191&(n=(n=n+Math.imul(R,yt)|0)+Math.imul(H,at)|0))<<13)|0;I=((g=g+Math.imul(H,yt)|0)+(n>>>13)|0)+(it>>>26)|0,it&=67108863,_=Math.imul(ht,vt),n=(n=Math.imul(ht,kt))+Math.imul(Tt,vt)|0,g=Math.imul(Tt,kt),_=_+Math.imul(ve,Qe)|0,n=(n=n+Math.imul(ve,_t)|0)+Math.imul(Le,Qe)|0,g=g+Math.imul(Le,_t)|0,_=_+Math.imul(G,Zt)|0,n=(n=n+Math.imul(G,Pe)|0)+Math.imul(ee,Zt)|0,g=g+Math.imul(ee,Pe)|0,_=_+Math.imul(ce,oe)|0,n=(n=n+Math.imul(ce,Me)|0)+Math.imul(Te,oe)|0,g=g+Math.imul(Te,Me)|0,_=_+Math.imul(ot,ft)|0,n=(n=n+Math.imul(ot,Rt)|0)+Math.imul(Ie,ft)|0,g=g+Math.imul(Ie,Rt)|0,_=_+Math.imul(be,Re)|0,n=(n=n+Math.imul(be,qe)|0)+Math.imul(Z,Re)|0,g=g+Math.imul(Z,qe)|0,_=_+Math.imul(Ee,we)|0,n=(n=n+Math.imul(Ee,Fe)|0)+Math.imul(te,we)|0,g=g+Math.imul(te,Fe)|0,_=_+Math.imul(fe,at)|0,n=(n=n+Math.imul(fe,yt)|0)+Math.imul(ye,at)|0,g=g+Math.imul(ye,yt)|0;var It=(I+(_=_+Math.imul(R,Xt)|0)|0)+((8191&(n=(n=n+Math.imul(R,Jt)|0)+Math.imul(H,Xt)|0))<<13)|0;I=((g=g+Math.imul(H,Jt)|0)+(n>>>13)|0)+(It>>>26)|0,It&=67108863,_=Math.imul(jt,vt),n=(n=Math.imul(jt,kt))+Math.imul(Gt,vt)|0,g=Math.imul(Gt,kt),_=_+Math.imul(ht,Qe)|0,n=(n=n+Math.imul(ht,_t)|0)+Math.imul(Tt,Qe)|0,g=g+Math.imul(Tt,_t)|0,_=_+Math.imul(ve,Zt)|0,n=(n=n+Math.imul(ve,Pe)|0)+Math.imul(Le,Zt)|0,g=g+Math.imul(Le,Pe)|0,_=_+Math.imul(G,oe)|0,n=(n=n+Math.imul(G,Me)|0)+Math.imul(ee,oe)|0,g=g+Math.imul(ee,Me)|0,_=_+Math.imul(ce,ft)|0,n=(n=n+Math.imul(ce,Rt)|0)+Math.imul(Te,ft)|0,g=g+Math.imul(Te,Rt)|0,_=_+Math.imul(ot,Re)|0,n=(n=n+Math.imul(ot,qe)|0)+Math.imul(Ie,Re)|0,g=g+Math.imul(Ie,qe)|0,_=_+Math.imul(be,we)|0,n=(n=n+Math.imul(be,Fe)|0)+Math.imul(Z,we)|0,g=g+Math.imul(Z,Fe)|0,_=_+Math.imul(Ee,at)|0,n=(n=n+Math.imul(Ee,yt)|0)+Math.imul(te,at)|0,g=g+Math.imul(te,yt)|0,_=_+Math.imul(fe,Xt)|0,n=(n=n+Math.imul(fe,Jt)|0)+Math.imul(ye,Xt)|0,g=g+Math.imul(ye,Jt)|0;var de=(I+(_=_+Math.imul(R,ui)|0)|0)+((8191&(n=(n=n+Math.imul(R,si)|0)+Math.imul(H,ui)|0))<<13)|0;I=((g=g+Math.imul(H,si)|0)+(n>>>13)|0)+(de>>>26)|0,de&=67108863,_=Math.imul(jt,Qe),n=(n=Math.imul(jt,_t))+Math.imul(Gt,Qe)|0,g=Math.imul(Gt,_t),_=_+Math.imul(ht,Zt)|0,n=(n=n+Math.imul(ht,Pe)|0)+Math.imul(Tt,Zt)|0,g=g+Math.imul(Tt,Pe)|0,_=_+Math.imul(ve,oe)|0,n=(n=n+Math.imul(ve,Me)|0)+Math.imul(Le,oe)|0,g=g+Math.imul(Le,Me)|0,_=_+Math.imul(G,ft)|0,n=(n=n+Math.imul(G,Rt)|0)+Math.imul(ee,ft)|0,g=g+Math.imul(ee,Rt)|0,_=_+Math.imul(ce,Re)|0,n=(n=n+Math.imul(ce,qe)|0)+Math.imul(Te,Re)|0,g=g+Math.imul(Te,qe)|0,_=_+Math.imul(ot,we)|0,n=(n=n+Math.imul(ot,Fe)|0)+Math.imul(Ie,we)|0,g=g+Math.imul(Ie,Fe)|0,_=_+Math.imul(be,at)|0,n=(n=n+Math.imul(be,yt)|0)+Math.imul(Z,at)|0,g=g+Math.imul(Z,yt)|0,_=_+Math.imul(Ee,Xt)|0,n=(n=n+Math.imul(Ee,Jt)|0)+Math.imul(te,Xt)|0,g=g+Math.imul(te,Jt)|0;var $e=(I+(_=_+Math.imul(fe,ui)|0)|0)+((8191&(n=(n=n+Math.imul(fe,si)|0)+Math.imul(ye,ui)|0))<<13)|0;I=((g=g+Math.imul(ye,si)|0)+(n>>>13)|0)+($e>>>26)|0,$e&=67108863,_=Math.imul(jt,Zt),n=(n=Math.imul(jt,Pe))+Math.imul(Gt,Zt)|0,g=Math.imul(Gt,Pe),_=_+Math.imul(ht,oe)|0,n=(n=n+Math.imul(ht,Me)|0)+Math.imul(Tt,oe)|0,g=g+Math.imul(Tt,Me)|0,_=_+Math.imul(ve,ft)|0,n=(n=n+Math.imul(ve,Rt)|0)+Math.imul(Le,ft)|0,g=g+Math.imul(Le,Rt)|0,_=_+Math.imul(G,Re)|0,n=(n=n+Math.imul(G,qe)|0)+Math.imul(ee,Re)|0,g=g+Math.imul(ee,qe)|0,_=_+Math.imul(ce,we)|0,n=(n=n+Math.imul(ce,Fe)|0)+Math.imul(Te,we)|0,g=g+Math.imul(Te,Fe)|0,_=_+Math.imul(ot,at)|0,n=(n=n+Math.imul(ot,yt)|0)+Math.imul(Ie,at)|0,g=g+Math.imul(Ie,yt)|0,_=_+Math.imul(be,Xt)|0,n=(n=n+Math.imul(be,Jt)|0)+Math.imul(Z,Xt)|0,g=g+Math.imul(Z,Jt)|0;var bt=(I+(_=_+Math.imul(Ee,ui)|0)|0)+((8191&(n=(n=n+Math.imul(Ee,si)|0)+Math.imul(te,ui)|0))<<13)|0;I=((g=g+Math.imul(te,si)|0)+(n>>>13)|0)+(bt>>>26)|0,bt&=67108863,_=Math.imul(jt,oe),n=(n=Math.imul(jt,Me))+Math.imul(Gt,oe)|0,g=Math.imul(Gt,Me),_=_+Math.imul(ht,ft)|0,n=(n=n+Math.imul(ht,Rt)|0)+Math.imul(Tt,ft)|0,g=g+Math.imul(Tt,Rt)|0,_=_+Math.imul(ve,Re)|0,n=(n=n+Math.imul(ve,qe)|0)+Math.imul(Le,Re)|0,g=g+Math.imul(Le,qe)|0,_=_+Math.imul(G,we)|0,n=(n=n+Math.imul(G,Fe)|0)+Math.imul(ee,we)|0,g=g+Math.imul(ee,Fe)|0,_=_+Math.imul(ce,at)|0,n=(n=n+Math.imul(ce,yt)|0)+Math.imul(Te,at)|0,g=g+Math.imul(Te,yt)|0,_=_+Math.imul(ot,Xt)|0,n=(n=n+Math.imul(ot,Jt)|0)+Math.imul(Ie,Xt)|0,g=g+Math.imul(Ie,Jt)|0;var Vt=(I+(_=_+Math.imul(be,ui)|0)|0)+((8191&(n=(n=n+Math.imul(be,si)|0)+Math.imul(Z,ui)|0))<<13)|0;I=((g=g+Math.imul(Z,si)|0)+(n>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,_=Math.imul(jt,ft),n=(n=Math.imul(jt,Rt))+Math.imul(Gt,ft)|0,g=Math.imul(Gt,Rt),_=_+Math.imul(ht,Re)|0,n=(n=n+Math.imul(ht,qe)|0)+Math.imul(Tt,Re)|0,g=g+Math.imul(Tt,qe)|0,_=_+Math.imul(ve,we)|0,n=(n=n+Math.imul(ve,Fe)|0)+Math.imul(Le,we)|0,g=g+Math.imul(Le,Fe)|0,_=_+Math.imul(G,at)|0,n=(n=n+Math.imul(G,yt)|0)+Math.imul(ee,at)|0,g=g+Math.imul(ee,yt)|0,_=_+Math.imul(ce,Xt)|0,n=(n=n+Math.imul(ce,Jt)|0)+Math.imul(Te,Xt)|0,g=g+Math.imul(Te,Jt)|0;var bi=(I+(_=_+Math.imul(ot,ui)|0)|0)+((8191&(n=(n=n+Math.imul(ot,si)|0)+Math.imul(Ie,ui)|0))<<13)|0;I=((g=g+Math.imul(Ie,si)|0)+(n>>>13)|0)+(bi>>>26)|0,bi&=67108863,_=Math.imul(jt,Re),n=(n=Math.imul(jt,qe))+Math.imul(Gt,Re)|0,g=Math.imul(Gt,qe),_=_+Math.imul(ht,we)|0,n=(n=n+Math.imul(ht,Fe)|0)+Math.imul(Tt,we)|0,g=g+Math.imul(Tt,Fe)|0,_=_+Math.imul(ve,at)|0,n=(n=n+Math.imul(ve,yt)|0)+Math.imul(Le,at)|0,g=g+Math.imul(Le,yt)|0,_=_+Math.imul(G,Xt)|0,n=(n=n+Math.imul(G,Jt)|0)+Math.imul(ee,Xt)|0,g=g+Math.imul(ee,Jt)|0;var Li=(I+(_=_+Math.imul(ce,ui)|0)|0)+((8191&(n=(n=n+Math.imul(ce,si)|0)+Math.imul(Te,ui)|0))<<13)|0;I=((g=g+Math.imul(Te,si)|0)+(n>>>13)|0)+(Li>>>26)|0,Li&=67108863,_=Math.imul(jt,we),n=(n=Math.imul(jt,Fe))+Math.imul(Gt,we)|0,g=Math.imul(Gt,Fe),_=_+Math.imul(ht,at)|0,n=(n=n+Math.imul(ht,yt)|0)+Math.imul(Tt,at)|0,g=g+Math.imul(Tt,yt)|0,_=_+Math.imul(ve,Xt)|0,n=(n=n+Math.imul(ve,Jt)|0)+Math.imul(Le,Xt)|0,g=g+Math.imul(Le,Jt)|0;var Ji=(I+(_=_+Math.imul(G,ui)|0)|0)+((8191&(n=(n=n+Math.imul(G,si)|0)+Math.imul(ee,ui)|0))<<13)|0;I=((g=g+Math.imul(ee,si)|0)+(n>>>13)|0)+(Ji>>>26)|0,Ji&=67108863,_=Math.imul(jt,at),n=(n=Math.imul(jt,yt))+Math.imul(Gt,at)|0,g=Math.imul(Gt,yt),_=_+Math.imul(ht,Xt)|0,n=(n=n+Math.imul(ht,Jt)|0)+Math.imul(Tt,Xt)|0,g=g+Math.imul(Tt,Jt)|0;var Wi=(I+(_=_+Math.imul(ve,ui)|0)|0)+((8191&(n=(n=n+Math.imul(ve,si)|0)+Math.imul(Le,ui)|0))<<13)|0;I=((g=g+Math.imul(Le,si)|0)+(n>>>13)|0)+(Wi>>>26)|0,Wi&=67108863,_=Math.imul(jt,Xt),n=(n=Math.imul(jt,Jt))+Math.imul(Gt,Xt)|0,g=Math.imul(Gt,Jt);var sn=(I+(_=_+Math.imul(ht,ui)|0)|0)+((8191&(n=(n=n+Math.imul(ht,si)|0)+Math.imul(Tt,ui)|0))<<13)|0;I=((g=g+Math.imul(Tt,si)|0)+(n>>>13)|0)+(sn>>>26)|0,sn&=67108863;var mn=(I+(_=Math.imul(jt,ui))|0)+((8191&(n=(n=Math.imul(jt,si))+Math.imul(Gt,ui)|0))<<13)|0;return I=((g=Math.imul(Gt,si))+(n>>>13)|0)+(mn>>>26)|0,mn&=67108863,S[0]=en,S[1]=Ui,S[2]=Bi,S[3]=Gi,S[4]=ct,S[5]=Ft,S[6]=pt,S[7]=it,S[8]=It,S[9]=de,S[10]=$e,S[11]=bt,S[12]=Vt,S[13]=bi,S[14]=Li,S[15]=Ji,S[16]=Wi,S[17]=sn,S[18]=mn,0!==I&&(S[19]=I,h.length++),h};function U(x,t,r){return(new W).mulp(x,t,r)}function W(x,t){this.x=x,this.y=t}Math.imul||(w=k),a.prototype.mulTo=function(t,r){var h,c=this.length+t.length;return h=10===this.length&&10===t.length?w(this,t,r):c<63?k(this,t,r):c<1024?function z(x,t,r){r.negative=t.negative^x.negative,r.length=x.length+t.length;for(var h=0,c=0,C=0;C<r.length-1;C++){var S=c;c=0;for(var I=67108863&h,_=Math.min(C,t.length-1),n=Math.max(0,C-x.length+1);n<=_;n++){var H=(0|x.words[C-n])*(0|t.words[n]),$=67108863&H;I=67108863&($=$+I|0),c+=(S=(S=S+(H/67108864|0)|0)+($>>>26)|0)>>>26,S&=67108863}r.words[C]=I,h=S,S=c}return 0!==h?r.words[C]=h:r.length--,r.strip()}(this,t,r):U(this,t,r),h},W.prototype.makeRBT=function(t){for(var r=new Array(t),h=a.prototype._countBits(t)-1,c=0;c<t;c++)r[c]=this.revBin(c,h,t);return r},W.prototype.revBin=function(t,r,h){if(0===t||t===h-1)return t;for(var c=0,C=0;C<r;C++)c|=(1&t)<<r-C-1,t>>=1;return c},W.prototype.permute=function(t,r,h,c,C,S){for(var I=0;I<S;I++)c[I]=r[t[I]],C[I]=h[t[I]]},W.prototype.transform=function(t,r,h,c,C,S){this.permute(S,t,r,h,c,C);for(var I=1;I<C;I<<=1)for(var _=I<<1,n=Math.cos(2*Math.PI/_),g=Math.sin(2*Math.PI/_),V=0;V<C;V+=_)for(var R=n,H=g,$=0;$<I;$++){var fe=h[V+$],ye=c[V+$],ke=h[V+$+I],Ee=c[V+$+I],te=R*ke-H*Ee;Ee=R*Ee+H*ke,h[V+$]=fe+(ke=te),c[V+$]=ye+Ee,h[V+$+I]=fe-ke,c[V+$+I]=ye-Ee,$!==_&&(te=n*R-g*H,H=n*H+g*R,R=te)}},W.prototype.guessLen13b=function(t,r){var h=1|Math.max(r,t),c=1&h,C=0;for(h=h/2|0;h;h>>>=1)C++;return 1<<C+1+c},W.prototype.conjugate=function(t,r,h){if(!(h<=1))for(var c=0;c<h/2;c++){var C=t[c];t[c]=t[h-c-1],t[h-c-1]=C,C=r[c],r[c]=-r[h-c-1],r[h-c-1]=-C}},W.prototype.normalize13b=function(t,r){for(var h=0,c=0;c<r/2;c++){var C=8192*Math.round(t[2*c+1]/r)+Math.round(t[2*c]/r)+h;t[c]=67108863&C,h=C<67108864?0:C/67108864|0}return t},W.prototype.convert13b=function(t,r,h,c){for(var C=0,S=0;S<r;S++)h[2*S]=8191&(C+=0|t[S]),h[2*S+1]=8191&(C>>>=13),C>>>=13;for(S=2*r;S<c;++S)h[S]=0;u(0===C),u(0==(-8192&C))},W.prototype.stub=function(t){for(var r=new Array(t),h=0;h<t;h++)r[h]=0;return r},W.prototype.mulp=function(t,r,h){var c=2*this.guessLen13b(t.length,r.length),C=this.makeRBT(c),S=this.stub(c),I=new Array(c),_=new Array(c),n=new Array(c),g=new Array(c),V=new Array(c),R=new Array(c),H=h.words;H.length=c,this.convert13b(t.words,t.length,I,c),this.convert13b(r.words,r.length,g,c),this.transform(I,S,_,n,c,C),this.transform(g,S,V,R,c,C);for(var $=0;$<c;$++){var fe=_[$]*V[$]-n[$]*R[$];n[$]=_[$]*R[$]+n[$]*V[$],_[$]=fe}return this.conjugate(_,n,c),this.transform(_,n,H,S,c,C),this.conjugate(H,S,c),this.normalize13b(H,c),h.negative=t.negative^r.negative,h.length=t.length+r.length,h.strip()},a.prototype.mul=function(t){var r=new a(null);return r.words=new Array(this.length+t.length),this.mulTo(t,r)},a.prototype.mulf=function(t){var r=new a(null);return r.words=new Array(this.length+t.length),U(this,t,r)},a.prototype.imul=function(t){return this.clone().mulTo(t,this)},a.prototype.imuln=function(t){u("number"==typeof t),u(t<67108864);for(var r=0,h=0;h<this.length;h++){var c=(0|this.words[h])*t,C=(67108863&c)+(67108863&r);r>>=26,r+=c/67108864|0,r+=C>>>26,this.words[h]=67108863&C}return 0!==r&&(this.words[h]=r,this.length++),this},a.prototype.muln=function(t){return this.clone().imuln(t)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(t){var r=function E(x){for(var t=new Array(x.bitLength()),r=0;r<t.length;r++){var c=r%26;t[r]=(x.words[r/26|0]&1<<c)>>>c}return t}(t);if(0===r.length)return new a(1);for(var h=this,c=0;c<r.length&&0===r[c];c++,h=h.sqr());if(++c<r.length)for(var C=h.sqr();c<r.length;c++,C=C.sqr())0!==r[c]&&(h=h.mul(C));return h},a.prototype.iushln=function(t){u("number"==typeof t&&t>=0);var C,r=t%26,h=(t-r)/26,c=67108863>>>26-r<<26-r;if(0!==r){var S=0;for(C=0;C<this.length;C++){var I=this.words[C]&c;this.words[C]=(0|this.words[C])-I<<r|S,S=I>>>26-r}S&&(this.words[C]=S,this.length++)}if(0!==h){for(C=this.length-1;C>=0;C--)this.words[C+h]=this.words[C];for(C=0;C<h;C++)this.words[C]=0;this.length+=h}return this.strip()},a.prototype.ishln=function(t){return u(0===this.negative),this.iushln(t)},a.prototype.iushrn=function(t,r,h){var c;u("number"==typeof t&&t>=0),c=r?(r-r%26)/26:0;var C=t%26,S=Math.min((t-C)/26,this.length),I=67108863^67108863>>>C<<C,_=h;if(c-=S,c=Math.max(0,c),_){for(var n=0;n<S;n++)_.words[n]=this.words[n];_.length=S}if(0!==S)if(this.length>S)for(this.length-=S,n=0;n<this.length;n++)this.words[n]=this.words[n+S];else this.words[0]=0,this.length=1;var g=0;for(n=this.length-1;n>=0&&(0!==g||n>=c);n--){var V=0|this.words[n];this.words[n]=g<<26-C|V>>>C,g=V&I}return _&&0!==g&&(_.words[_.length++]=g),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(t,r,h){return u(0===this.negative),this.iushrn(t,r,h)},a.prototype.shln=function(t){return this.clone().ishln(t)},a.prototype.ushln=function(t){return this.clone().iushln(t)},a.prototype.shrn=function(t){return this.clone().ishrn(t)},a.prototype.ushrn=function(t){return this.clone().iushrn(t)},a.prototype.testn=function(t){u("number"==typeof t&&t>=0);var r=t%26,h=(t-r)/26;return!(this.length<=h||!(this.words[h]&1<<r))},a.prototype.imaskn=function(t){u("number"==typeof t&&t>=0);var r=t%26,h=(t-r)/26;return u(0===this.negative,"imaskn works only with positive numbers"),this.length<=h?this:(0!==r&&h++,this.length=Math.min(h,this.length),0!==r&&(this.words[this.length-1]&=67108863^67108863>>>r<<r),this.strip())},a.prototype.maskn=function(t){return this.clone().imaskn(t)},a.prototype.iaddn=function(t){return u("number"==typeof t),u(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},a.prototype._iaddn=function(t){this.words[0]+=t;for(var r=0;r<this.length&&this.words[r]>=67108864;r++)this.words[r]-=67108864,r===this.length-1?this.words[r+1]=1:this.words[r+1]++;return this.length=Math.max(this.length,r+1),this},a.prototype.isubn=function(t){if(u("number"==typeof t),u(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r<this.length&&this.words[r]<0;r++)this.words[r]+=67108864,this.words[r+1]-=1;return this.strip()},a.prototype.addn=function(t){return this.clone().iaddn(t)},a.prototype.subn=function(t){return this.clone().isubn(t)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(t,r,h){var C;this._expand(t.length+h);var S,I=0;for(C=0;C<t.length;C++){S=(0|this.words[C+h])+I;var _=(0|t.words[C])*r;I=((S-=67108863&_)>>26)-(_/67108864|0),this.words[C+h]=67108863&S}for(;C<this.length-h;C++)I=(S=(0|this.words[C+h])+I)>>26,this.words[C+h]=67108863&S;if(0===I)return this.strip();for(u(-1===I),I=0,C=0;C<this.length;C++)I=(S=-(0|this.words[C])+I)>>26,this.words[C]=67108863&S;return this.negative=1,this.strip()},a.prototype._wordDiv=function(t,r){var h,c=this.clone(),C=t,S=0|C.words[C.length-1];0!=(h=26-this._countBits(S))&&(C=C.ushln(h),c.iushln(h),S=0|C.words[C.length-1]);var n,_=c.length-C.length;if("mod"!==r){(n=new a(null)).length=_+1,n.words=new Array(n.length);for(var g=0;g<n.length;g++)n.words[g]=0}var V=c.clone()._ishlnsubmul(C,1,_);0===V.negative&&(c=V,n&&(n.words[_]=1));for(var R=_-1;R>=0;R--){var H=67108864*(0|c.words[C.length+R])+(0|c.words[C.length+R-1]);for(H=Math.min(H/S|0,67108863),c._ishlnsubmul(C,H,R);0!==c.negative;)H--,c.negative=0,c._ishlnsubmul(C,1,R),c.isZero()||(c.negative^=1);n&&(n.words[R]=H)}return n&&n.strip(),c.strip(),"div"!==r&&0!==h&&c.iushrn(h),{div:n||null,mod:c}},a.prototype.divmod=function(t,r,h){return u(!t.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===t.negative?(S=this.neg().divmod(t,r),"mod"!==r&&(c=S.div.neg()),"div"!==r&&(C=S.mod.neg(),h&&0!==C.negative&&C.iadd(t)),{div:c,mod:C}):0===this.negative&&0!==t.negative?(S=this.divmod(t.neg(),r),"mod"!==r&&(c=S.div.neg()),{div:c,mod:S.mod}):0!=(this.negative&t.negative)?(S=this.neg().divmod(t.neg(),r),"div"!==r&&(C=S.mod.neg(),h&&0!==C.negative&&C.isub(t)),{div:S.div,mod:C}):t.length>this.length||this.cmp(t)<0?{div:new a(0),mod:this}:1===t.length?"div"===r?{div:this.divn(t.words[0]),mod:null}:"mod"===r?{div:null,mod:new a(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new a(this.modn(t.words[0]))}:this._wordDiv(t,r);var c,C,S},a.prototype.div=function(t){return this.divmod(t,"div",!1).div},a.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},a.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},a.prototype.divRound=function(t){var r=this.divmod(t);if(r.mod.isZero())return r.div;var h=0!==r.div.negative?r.mod.isub(t):r.mod,c=t.ushrn(1),C=t.andln(1),S=h.cmp(c);return S<0||1===C&&0===S?r.div:0!==r.div.negative?r.div.isubn(1):r.div.iaddn(1)},a.prototype.modn=function(t){u(t<=67108863);for(var r=(1<<26)%t,h=0,c=this.length-1;c>=0;c--)h=(r*h+(0|this.words[c]))%t;return h},a.prototype.idivn=function(t){u(t<=67108863);for(var r=0,h=this.length-1;h>=0;h--){var c=(0|this.words[h])+67108864*r;this.words[h]=c/t|0,r=c%t}return this.strip()},a.prototype.divn=function(t){return this.clone().idivn(t)},a.prototype.egcd=function(t){u(0===t.negative),u(!t.isZero());var r=this,h=t.clone();r=0!==r.negative?r.umod(t):r.clone();for(var c=new a(1),C=new a(0),S=new a(0),I=new a(1),_=0;r.isEven()&&h.isEven();)r.iushrn(1),h.iushrn(1),++_;for(var n=h.clone(),g=r.clone();!r.isZero();){for(var V=0,R=1;0==(r.words[0]&R)&&V<26;++V,R<<=1);if(V>0)for(r.iushrn(V);V-- >0;)(c.isOdd()||C.isOdd())&&(c.iadd(n),C.isub(g)),c.iushrn(1),C.iushrn(1);for(var H=0,$=1;0==(h.words[0]&$)&&H<26;++H,$<<=1);if(H>0)for(h.iushrn(H);H-- >0;)(S.isOdd()||I.isOdd())&&(S.iadd(n),I.isub(g)),S.iushrn(1),I.iushrn(1);r.cmp(h)>=0?(r.isub(h),c.isub(S),C.isub(I)):(h.isub(r),S.isub(c),I.isub(C))}return{a:S,b:I,gcd:h.iushln(_)}},a.prototype._invmp=function(t){u(0===t.negative),u(!t.isZero());var V,r=this,h=t.clone();r=0!==r.negative?r.umod(t):r.clone();for(var c=new a(1),C=new a(0),S=h.clone();r.cmpn(1)>0&&h.cmpn(1)>0;){for(var I=0,_=1;0==(r.words[0]&_)&&I<26;++I,_<<=1);if(I>0)for(r.iushrn(I);I-- >0;)c.isOdd()&&c.iadd(S),c.iushrn(1);for(var n=0,g=1;0==(h.words[0]&g)&&n<26;++n,g<<=1);if(n>0)for(h.iushrn(n);n-- >0;)C.isOdd()&&C.iadd(S),C.iushrn(1);r.cmp(h)>=0?(r.isub(h),c.isub(C)):(h.isub(r),C.isub(c))}return(V=0===r.cmpn(1)?c:C).cmpn(0)<0&&V.iadd(t),V},a.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var r=this.clone(),h=t.clone();r.negative=0,h.negative=0;for(var c=0;r.isEven()&&h.isEven();c++)r.iushrn(1),h.iushrn(1);for(;;){for(;r.isEven();)r.iushrn(1);for(;h.isEven();)h.iushrn(1);var C=r.cmp(h);if(C<0){var S=r;r=h,h=S}else if(0===C||0===h.cmpn(1))break;r.isub(h)}return h.iushln(c)},a.prototype.invm=function(t){return this.egcd(t).a.umod(t)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(t){return this.words[0]&t},a.prototype.bincn=function(t){u("number"==typeof t);var r=t%26,h=(t-r)/26,c=1<<r;if(this.length<=h)return this._expand(h+1),this.words[h]|=c,this;for(var C=c,S=h;0!==C&&S<this.length;S++){var I=0|this.words[S];C=(I+=C)>>>26,this.words[S]=I&=67108863}return 0!==C&&(this.words[S]=C,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(t){var h,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)h=1;else{r&&(t=-t),u(t<=67108863,"Number is too big");var c=0|this.words[0];h=c===t?0:c<t?-1:1}return 0!==this.negative?0|-h:h},a.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var r=this.ucmp(t);return 0!==this.negative?0|-r:r},a.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var r=0,h=this.length-1;h>=0;h--){var c=0|this.words[h],C=0|t.words[h];if(c!==C){c<C?r=-1:c>C&&(r=1);break}}return r},a.prototype.gtn=function(t){return 1===this.cmpn(t)},a.prototype.gt=function(t){return 1===this.cmp(t)},a.prototype.gten=function(t){return this.cmpn(t)>=0},a.prototype.gte=function(t){return this.cmp(t)>=0},a.prototype.ltn=function(t){return-1===this.cmpn(t)},a.prototype.lt=function(t){return-1===this.cmp(t)},a.prototype.lten=function(t){return this.cmpn(t)<=0},a.prototype.lte=function(t){return this.cmp(t)<=0},a.prototype.eqn=function(t){return 0===this.cmpn(t)},a.prototype.eq=function(t){return 0===this.cmp(t)},a.red=function(t){return new J(t)},a.prototype.toRed=function(t){return u(!this.red,"Already a number in reduction context"),u(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},a.prototype.fromRed=function(){return u(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(t){return this.red=t,this},a.prototype.forceRed=function(t){return u(!this.red,"Already a number in reduction context"),this._forceRed(t)},a.prototype.redAdd=function(t){return u(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},a.prototype.redIAdd=function(t){return u(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},a.prototype.redSub=function(t){return u(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},a.prototype.redISub=function(t){return u(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},a.prototype.redShl=function(t){return u(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},a.prototype.redMul=function(t){return u(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},a.prototype.redIMul=function(t){return u(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},a.prototype.redSqr=function(){return u(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return u(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return u(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return u(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return u(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(t){return u(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var ne={k256:null,p224:null,p192:null,p25519:null};function Q(x,t){this.name=x,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function le(){Q.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function q(){Q.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ie(){Q.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function se(){Q.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function J(x){if("string"==typeof x){var t=a._prime(x);this.m=t.p,this.prime=t}else u(x.gtn(1),"modulus must be greater than 1"),this.m=x,this.prime=null}function me(x){J.call(this,x),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(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)}Q.prototype._tmp=function(){var t=new a(null);return t.words=new Array(Math.ceil(this.n/13)),t},Q.prototype.ireduce=function(t){var h,r=t;do{this.split(r,this.tmp),h=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(h>this.n);var c=h<this.n?-1:r.ucmp(this.p);return 0===c?(r.words[0]=0,r.length=1):c>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},Q.prototype.split=function(t,r){t.iushrn(this.n,0,r)},Q.prototype.imulK=function(t){return t.imul(this.k)},b(le,Q),le.prototype.split=function(t,r){for(var h=4194303,c=Math.min(t.length,9),C=0;C<c;C++)r.words[C]=t.words[C];if(r.length=c,t.length<=9)return t.words[0]=0,void(t.length=1);var S=t.words[9];for(r.words[r.length++]=S&h,C=10;C<t.length;C++){var I=0|t.words[C];t.words[C-10]=(I&h)<<4|S>>>22,S=I}t.words[C-10]=S>>>=22,t.length-=0===S&&t.length>10?10:9},le.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var r=0,h=0;h<t.length;h++){var c=0|t.words[h];t.words[h]=67108863&(r+=977*c),r=64*c+(r/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},b(q,Q),b(ie,Q),b(se,Q),se.prototype.imulK=function(t){for(var r=0,h=0;h<t.length;h++){var c=19*(0|t.words[h])+r,C=67108863&c;c>>>=26,t.words[h]=C,r=c}return 0!==r&&(t.words[t.length++]=r),t},a._prime=function(t){if(ne[t])return ne[t];var r;if("k256"===t)r=new le;else if("p224"===t)r=new q;else if("p192"===t)r=new ie;else{if("p25519"!==t)throw new Error("Unknown prime "+t);r=new se}return ne[t]=r,r},J.prototype._verify1=function(t){u(0===t.negative,"red works only with positives"),u(t.red,"red works only with red numbers")},J.prototype._verify2=function(t,r){u(0==(t.negative|r.negative),"red works only with positives"),u(t.red&&t.red===r.red,"red works only with red numbers")},J.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},J.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},J.prototype.add=function(t,r){this._verify2(t,r);var h=t.add(r);return h.cmp(this.m)>=0&&h.isub(this.m),h._forceRed(this)},J.prototype.iadd=function(t,r){this._verify2(t,r);var h=t.iadd(r);return h.cmp(this.m)>=0&&h.isub(this.m),h},J.prototype.sub=function(t,r){this._verify2(t,r);var h=t.sub(r);return h.cmpn(0)<0&&h.iadd(this.m),h._forceRed(this)},J.prototype.isub=function(t,r){this._verify2(t,r);var h=t.isub(r);return h.cmpn(0)<0&&h.iadd(this.m),h},J.prototype.shl=function(t,r){return this._verify1(t),this.imod(t.ushln(r))},J.prototype.imul=function(t,r){return this._verify2(t,r),this.imod(t.imul(r))},J.prototype.mul=function(t,r){return this._verify2(t,r),this.imod(t.mul(r))},J.prototype.isqr=function(t){return this.imul(t,t.clone())},J.prototype.sqr=function(t){return this.mul(t,t)},J.prototype.sqrt=function(t){if(t.isZero())return t.clone();var r=this.m.andln(3);if(u(r%2==1),3===r){var h=this.m.add(new a(1)).iushrn(2);return this.pow(t,h)}for(var c=this.m.subn(1),C=0;!c.isZero()&&0===c.andln(1);)C++,c.iushrn(1);u(!c.isZero());var S=new a(1).toRed(this),I=S.redNeg(),_=this.m.subn(1).iushrn(1),n=this.m.bitLength();for(n=new a(2*n*n).toRed(this);0!==this.pow(n,_).cmp(I);)n.redIAdd(I);for(var g=this.pow(n,c),V=this.pow(t,c.addn(1).iushrn(1)),R=this.pow(t,c),H=C;0!==R.cmp(S);){for(var $=R,fe=0;0!==$.cmp(S);fe++)$=$.redSqr();u(fe<H);var ye=this.pow(g,new a(1).iushln(H-fe-1));V=V.redMul(ye),g=ye.redSqr(),R=R.redMul(g),H=fe}return V},J.prototype.invm=function(t){var r=t._invmp(this.m);return 0!==r.negative?(r.negative=0,this.imod(r).redNeg()):this.imod(r)},J.prototype.pow=function(t,r){if(r.isZero())return new a(1).toRed(this);if(0===r.cmpn(1))return t.clone();var c=new Array(16);c[0]=new a(1).toRed(this),c[1]=t;for(var C=2;C<c.length;C++)c[C]=this.mul(c[C-1],t);var S=c[0],I=0,_=0,n=r.bitLength()%26;for(0===n&&(n=26),C=r.length-1;C>=0;C--){for(var g=r.words[C],V=n-1;V>=0;V--){var R=g>>V&1;S!==c[0]&&(S=this.sqr(S)),0!==R||0!==I?(I<<=1,I|=R,(4==++_||0===C&&0===V)&&(S=this.mul(S,c[I]),_=0,I=0)):_=0}n=26}return S},J.prototype.convertTo=function(t){var r=t.umod(this.m);return r===t?r.clone():r},J.prototype.convertFrom=function(t){var r=t.clone();return r.red=null,r},a.mont=function(t){return new me(t)},b(me,J),me.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},me.prototype.convertFrom=function(t){var r=this.imod(t.mul(this.rinv));return r.red=null,r},me.prototype.imul=function(t,r){if(t.isZero()||r.isZero())return t.words[0]=0,t.length=1,t;var h=t.imul(r),c=h.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),C=h.isub(c).iushrn(this.shift),S=C;return C.cmp(this.m)>=0?S=C.isub(this.m):C.cmpn(0)<0&&(S=C.iadd(this.m)),S._forceRed(this)},me.prototype.mul=function(t,r){if(t.isZero()||r.isZero())return new a(0)._forceRed(this);var h=t.mul(r),c=h.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),C=h.isub(c).iushrn(this.shift),S=C;return C.cmp(this.m)>=0?S=C.isub(this.m):C.cmpn(0)<0&&(S=C.iadd(this.m)),S._forceRed(this)},me.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(He=p.nmd(He),this)},5343:(He,j)=>{"use strict";j.byteLength=function d(E){var k=y(E),z=k[1];return 3*(k[0]+z)/4-z},j.toByteArray=function D(E){var k,le,w=y(E),z=w[0],U=w[1],W=new i(function P(E,k,w){return 3*(k+w)/4-w}(0,z,U)),ne=0,Q=U>0?z-4:z;for(le=0;le<Q;le+=4)k=e[E.charCodeAt(le)]<<18|e[E.charCodeAt(le+1)]<<12|e[E.charCodeAt(le+2)]<<6|e[E.charCodeAt(le+3)],W[ne++]=k>>16&255,W[ne++]=k>>8&255,W[ne++]=255&k;return 2===U&&(k=e[E.charCodeAt(le)]<<2|e[E.charCodeAt(le+1)]>>4,W[ne++]=255&k),1===U&&(k=e[E.charCodeAt(le)]<<10|e[E.charCodeAt(le+1)]<<4|e[E.charCodeAt(le+2)]>>2,W[ne++]=k>>8&255,W[ne++]=255&k),W},j.fromByteArray=function A(E){for(var k,w=E.length,z=w%3,U=[],W=16383,ne=0,Q=w-z;ne<Q;ne+=W)U.push(M(E,ne,ne+W>Q?Q:ne+W));return 1===z?U.push(p[(k=E[w-1])>>2]+p[k<<4&63]+"=="):2===z&&U.push(p[(k=(E[w-2]<<8)+E[w-1])>>10]+p[k>>4&63]+p[k<<2&63]+"="),U.join("")};for(var p=[],e=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b=0,a=u.length;b<a;++b)p[b]=u[b],e[u.charCodeAt(b)]=b;function y(E){var k=E.length;if(k%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var w=E.indexOf("=");return-1===w&&(w=k),[w,w===k?0:4-w%4]}function T(E){return p[E>>18&63]+p[E>>12&63]+p[E>>6&63]+p[63&E]}function M(E,k,w){for(var U=[],W=k;W<w;W+=3)U.push(T((E[W]<<16&16711680)+(E[W+1]<<8&65280)+(255&E[W+2])));return U.join("")}e["-".charCodeAt(0)]=62,e["_".charCodeAt(0)]=63},8538:function(He,j,p){!function(e,i){"use strict";function u(h,c){if(!h)throw new Error(c||"Assertion failed")}function b(h,c){h.super_=c;var C=function(){};C.prototype=c.prototype,h.prototype=new C,h.prototype.constructor=h}function a(h,c,C){if(a.isBN(h))return h;this.negative=0,this.words=null,this.length=0,this.red=null,null!==h&&(("le"===c||"be"===c)&&(C=c,c=10),this._init(h||0,c||10,C||"be"))}var y;"object"==typeof e?e.exports=a:i.BN=a,a.BN=a,a.wordSize=26;try{y="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:p(6601).Buffer}catch(h){}function d(h,c){var C=h.charCodeAt(c);return C>=48&&C<=57?C-48:C>=65&&C<=70?C-55:C>=97&&C<=102?C-87:void u(!1,"Invalid character in "+h)}function P(h,c,C){var S=d(h,C);return C-1>=c&&(S|=d(h,C-1)<<4),S}function D(h,c,C,S){for(var I=0,_=0,n=Math.min(h.length,C),g=c;g<n;g++){var V=h.charCodeAt(g)-48;I*=S,_=V>=49?V-49+10:V>=17?V-17+10:V,u(V>=0&&_<S,"Invalid character"),I+=_}return I}function T(h,c){h.words=c.words,h.length=c.length,h.negative=c.negative,h.red=c.red}if(a.isBN=function(c){return c instanceof a||null!==c&&"object"==typeof c&&c.constructor.wordSize===a.wordSize&&Array.isArray(c.words)},a.max=function(c,C){return c.cmp(C)>0?c:C},a.min=function(c,C){return c.cmp(C)<0?c:C},a.prototype._init=function(c,C,S){if("number"==typeof c)return this._initNumber(c,C,S);if("object"==typeof c)return this._initArray(c,C,S);"hex"===C&&(C=16),u(C===(0|C)&&C>=2&&C<=36);var I=0;"-"===(c=c.toString().replace(/\s+/g,""))[0]&&(I++,this.negative=1),I<c.length&&(16===C?this._parseHex(c,I,S):(this._parseBase(c,C,I),"le"===S&&this._initArray(this.toArray(),C,S)))},a.prototype._initNumber=function(c,C,S){c<0&&(this.negative=1,c=-c),c<67108864?(this.words=[67108863&c],this.length=1):c<4503599627370496?(this.words=[67108863&c,c/67108864&67108863],this.length=2):(u(c<9007199254740992),this.words=[67108863&c,c/67108864&67108863,1],this.length=3),"le"===S&&this._initArray(this.toArray(),C,S)},a.prototype._initArray=function(c,C,S){if(u("number"==typeof c.length),c.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(c.length/3),this.words=new Array(this.length);for(var I=0;I<this.length;I++)this.words[I]=0;var _,n,g=0;if("be"===S)for(I=c.length-1,_=0;I>=0;I-=3)this.words[_]|=(n=c[I]|c[I-1]<<8|c[I-2]<<16)<<g&67108863,this.words[_+1]=n>>>26-g&67108863,(g+=24)>=26&&(g-=26,_++);else if("le"===S)for(I=0,_=0;I<c.length;I+=3)this.words[_]|=(n=c[I]|c[I+1]<<8|c[I+2]<<16)<<g&67108863,this.words[_+1]=n>>>26-g&67108863,(g+=24)>=26&&(g-=26,_++);return this._strip()},a.prototype._parseHex=function(c,C,S){this.length=Math.ceil((c.length-C)/6),this.words=new Array(this.length);for(var I=0;I<this.length;I++)this.words[I]=0;var g,_=0,n=0;if("be"===S)for(I=c.length-1;I>=C;I-=2)g=P(c,C,I)<<_,this.words[n]|=67108863&g,_>=18?(_-=18,this.words[n+=1]|=g>>>26):_+=8;else for(I=(c.length-C)%2==0?C+1:C;I<c.length;I+=2)g=P(c,C,I)<<_,this.words[n]|=67108863&g,_>=18?(_-=18,this.words[n+=1]|=g>>>26):_+=8;this._strip()},a.prototype._parseBase=function(c,C,S){this.words=[0],this.length=1;for(var I=0,_=1;_<=67108863;_*=C)I++;I--,_=_/C|0;for(var n=c.length-S,g=n%I,V=Math.min(n,n-g)+S,R=0,H=S;H<V;H+=I)R=D(c,H,H+I,C),this.imuln(_),this.words[0]+R<67108864?this.words[0]+=R:this._iaddn(R);if(0!==g){var $=1;for(R=D(c,H,c.length,C),H=0;H<g;H++)$*=C;this.imuln($),this.words[0]+R<67108864?this.words[0]+=R:this._iaddn(R)}this._strip()},a.prototype.copy=function(c){c.words=new Array(this.length);for(var C=0;C<this.length;C++)c.words[C]=this.words[C];c.length=this.length,c.negative=this.negative,c.red=this.red},a.prototype._move=function(c){T(c,this)},a.prototype.clone=function(){var c=new a(null);return this.copy(c),c},a.prototype._expand=function(c){for(;this.length<c;)this.words[this.length++]=0;return this},a.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{a.prototype[Symbol.for("nodejs.util.inspect.custom")]=M}catch(h){a.prototype.inspect=M}else a.prototype.inspect=M;function M(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var A=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],E=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],k=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function U(h,c,C){C.negative=c.negative^h.negative;var S=h.length+c.length|0;C.length=S,S=S-1|0;var I=0|h.words[0],_=0|c.words[0],n=I*_,V=n/67108864|0;C.words[0]=67108863&n;for(var R=1;R<S;R++){for(var H=V>>>26,$=67108863&V,fe=Math.min(R,c.length-1),ye=Math.max(0,R-h.length+1);ye<=fe;ye++)H+=(n=(I=0|h.words[R-ye|0])*(_=0|c.words[ye])+$)/67108864|0,$=67108863&n;C.words[R]=0|$,V=0|H}return 0!==V?C.words[R]=0|V:C.length--,C._strip()}a.prototype.toString=function(c,C){var S;if(C=0|C||1,16===(c=c||10)||"hex"===c){S="";for(var I=0,_=0,n=0;n<this.length;n++){var g=this.words[n],V=(16777215&(g<<I|_)).toString(16);_=g>>>24-I&16777215,(I+=2)>=26&&(I-=26,n--),S=0!==_||n!==this.length-1?A[6-V.length]+V+S:V+S}for(0!==_&&(S=_.toString(16)+S);S.length%C!=0;)S="0"+S;return 0!==this.negative&&(S="-"+S),S}if(c===(0|c)&&c>=2&&c<=36){var R=E[c],H=k[c];S="";var $=this.clone();for($.negative=0;!$.isZero();){var fe=$.modrn(H).toString(c);S=($=$.idivn(H)).isZero()?fe+S:A[R-fe.length]+fe+S}for(this.isZero()&&(S="0"+S);S.length%C!=0;)S="0"+S;return 0!==this.negative&&(S="-"+S),S}u(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var c=this.words[0];return 2===this.length?c+=67108864*this.words[1]:3===this.length&&1===this.words[2]?c+=4503599627370496+67108864*this.words[1]:this.length>2&&u(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-c:c},a.prototype.toJSON=function(){return this.toString(16,2)},y&&(a.prototype.toBuffer=function(c,C){return this.toArrayLike(y,c,C)}),a.prototype.toArray=function(c,C){return this.toArrayLike(Array,c,C)},a.prototype.toArrayLike=function(c,C,S){this._strip();var I=this.byteLength(),_=S||Math.max(1,I);u(I<=_,"byte array longer than desired length"),u(_>0,"Requested array length <= 0");var n=function(c,C){return c.allocUnsafe?c.allocUnsafe(C):new c(C)}(c,_);return this["_toArrayLike"+("le"===C?"LE":"BE")](n,I),n},a.prototype._toArrayLikeLE=function(c,C){for(var S=0,I=0,_=0,n=0;_<this.length;_++){var g=this.words[_]<<n|I;c[S++]=255&g,S<c.length&&(c[S++]=g>>8&255),S<c.length&&(c[S++]=g>>16&255),6===n?(S<c.length&&(c[S++]=g>>24&255),I=0,n=0):(I=g>>>24,n+=2)}if(S<c.length)for(c[S++]=I;S<c.length;)c[S++]=0},a.prototype._toArrayLikeBE=function(c,C){for(var S=c.length-1,I=0,_=0,n=0;_<this.length;_++){var g=this.words[_]<<n|I;c[S--]=255&g,S>=0&&(c[S--]=g>>8&255),S>=0&&(c[S--]=g>>16&255),6===n?(S>=0&&(c[S--]=g>>24&255),I=0,n=0):(I=g>>>24,n+=2)}if(S>=0)for(c[S--]=I;S>=0;)c[S--]=0},a.prototype._countBits=Math.clz32?function(c){return 32-Math.clz32(c)}:function(c){var C=c,S=0;return C>=4096&&(S+=13,C>>>=13),C>=64&&(S+=7,C>>>=7),C>=8&&(S+=4,C>>>=4),C>=2&&(S+=2,C>>>=2),S+C},a.prototype._zeroBits=function(c){if(0===c)return 26;var C=c,S=0;return 0==(8191&C)&&(S+=13,C>>>=13),0==(127&C)&&(S+=7,C>>>=7),0==(15&C)&&(S+=4,C>>>=4),0==(3&C)&&(S+=2,C>>>=2),0==(1&C)&&S++,S},a.prototype.bitLength=function(){var C=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+C},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var c=0,C=0;C<this.length;C++){var S=this._zeroBits(this.words[C]);if(c+=S,26!==S)break}return c},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(c){return 0!==this.negative?this.abs().inotn(c).iaddn(1):this.clone()},a.prototype.fromTwos=function(c){return this.testn(c-1)?this.notn(c).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return 0!==this.negative},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(c){for(;this.length<c.length;)this.words[this.length++]=0;for(var C=0;C<c.length;C++)this.words[C]=this.words[C]|c.words[C];return this._strip()},a.prototype.ior=function(c){return u(0==(this.negative|c.negative)),this.iuor(c)},a.prototype.or=function(c){return this.length>c.length?this.clone().ior(c):c.clone().ior(this)},a.prototype.uor=function(c){return this.length>c.length?this.clone().iuor(c):c.clone().iuor(this)},a.prototype.iuand=function(c){var C;C=this.length>c.length?c:this;for(var S=0;S<C.length;S++)this.words[S]=this.words[S]&c.words[S];return this.length=C.length,this._strip()},a.prototype.iand=function(c){return u(0==(this.negative|c.negative)),this.iuand(c)},a.prototype.and=function(c){return this.length>c.length?this.clone().iand(c):c.clone().iand(this)},a.prototype.uand=function(c){return this.length>c.length?this.clone().iuand(c):c.clone().iuand(this)},a.prototype.iuxor=function(c){var C,S;this.length>c.length?(C=this,S=c):(C=c,S=this);for(var I=0;I<S.length;I++)this.words[I]=C.words[I]^S.words[I];if(this!==C)for(;I<C.length;I++)this.words[I]=C.words[I];return this.length=C.length,this._strip()},a.prototype.ixor=function(c){return u(0==(this.negative|c.negative)),this.iuxor(c)},a.prototype.xor=function(c){return this.length>c.length?this.clone().ixor(c):c.clone().ixor(this)},a.prototype.uxor=function(c){return this.length>c.length?this.clone().iuxor(c):c.clone().iuxor(this)},a.prototype.inotn=function(c){u("number"==typeof c&&c>=0);var C=0|Math.ceil(c/26),S=c%26;this._expand(C),S>0&&C--;for(var I=0;I<C;I++)this.words[I]=67108863&~this.words[I];return S>0&&(this.words[I]=~this.words[I]&67108863>>26-S),this._strip()},a.prototype.notn=function(c){return this.clone().inotn(c)},a.prototype.setn=function(c,C){u("number"==typeof c&&c>=0);var S=c/26|0,I=c%26;return this._expand(S+1),this.words[S]=C?this.words[S]|1<<I:this.words[S]&~(1<<I),this._strip()},a.prototype.iadd=function(c){var C,S,I;if(0!==this.negative&&0===c.negative)return this.negative=0,C=this.isub(c),this.negative^=1,this._normSign();if(0===this.negative&&0!==c.negative)return c.negative=0,C=this.isub(c),c.negative=1,C._normSign();this.length>c.length?(S=this,I=c):(S=c,I=this);for(var _=0,n=0;n<I.length;n++)this.words[n]=67108863&(C=(0|S.words[n])+(0|I.words[n])+_),_=C>>>26;for(;0!==_&&n<S.length;n++)this.words[n]=67108863&(C=(0|S.words[n])+_),_=C>>>26;if(this.length=S.length,0!==_)this.words[this.length]=_,this.length++;else if(S!==this)for(;n<S.length;n++)this.words[n]=S.words[n];return this},a.prototype.add=function(c){var C;return 0!==c.negative&&0===this.negative?(c.negative=0,C=this.sub(c),c.negative^=1,C):0===c.negative&&0!==this.negative?(this.negative=0,C=c.sub(this),this.negative=1,C):this.length>c.length?this.clone().iadd(c):c.clone().iadd(this)},a.prototype.isub=function(c){if(0!==c.negative){c.negative=0;var C=this.iadd(c);return c.negative=1,C._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(c),this.negative=1,this._normSign();var I,_,S=this.cmp(c);if(0===S)return this.negative=0,this.length=1,this.words[0]=0,this;S>0?(I=this,_=c):(I=c,_=this);for(var n=0,g=0;g<_.length;g++)n=(C=(0|I.words[g])-(0|_.words[g])+n)>>26,this.words[g]=67108863&C;for(;0!==n&&g<I.length;g++)n=(C=(0|I.words[g])+n)>>26,this.words[g]=67108863&C;if(0===n&&g<I.length&&I!==this)for(;g<I.length;g++)this.words[g]=I.words[g];return this.length=Math.max(this.length,g),I!==this&&(this.negative=1),this._strip()},a.prototype.sub=function(c){return this.clone().isub(c)};var W=function(c,C,S){var V,R,H,I=c.words,_=C.words,n=S.words,g=0,$=0|I[0],fe=8191&$,ye=$>>>13,ke=0|I[1],Ee=8191&ke,te=ke>>>13,ze=0|I[2],be=8191&ze,Z=ze>>>13,Y=0|I[3],ot=8191&Y,Ie=Y>>>13,Ae=0|I[4],ce=8191&Ae,Te=Ae>>>13,xe=0|I[5],G=8191&xe,ee=xe>>>13,ue=0|I[6],ve=8191&ue,Le=ue>>>13,lt=0|I[7],ht=8191&lt,Tt=lt>>>13,hi=0|I[8],jt=8191&hi,Gt=hi>>>13,di=0|I[9],vt=8191&di,kt=di>>>13,gt=0|_[0],Qe=8191&gt,_t=gt>>>13,ei=0|_[1],Zt=8191&ei,Pe=ei>>>13,De=0|_[2],oe=8191&De,Me=De>>>13,ut=0|_[3],ft=8191&ut,Rt=ut>>>13,et=0|_[4],Re=8191&et,qe=et>>>13,Ze=0|_[5],we=8191&Ze,Fe=Ze>>>13,rt=0|_[6],at=8191&rt,yt=rt>>>13,mi=0|_[7],Xt=8191&mi,Jt=mi>>>13,qi=0|_[8],ui=8191&qi,si=qi>>>13,en=0|_[9],Ui=8191&en,Bi=en>>>13;S.negative=c.negative^C.negative,S.length=19;var Gi=(g+(V=Math.imul(fe,Qe))|0)+((8191&(R=(R=Math.imul(fe,_t))+Math.imul(ye,Qe)|0))<<13)|0;g=((H=Math.imul(ye,_t))+(R>>>13)|0)+(Gi>>>26)|0,Gi&=67108863,V=Math.imul(Ee,Qe),R=(R=Math.imul(Ee,_t))+Math.imul(te,Qe)|0,H=Math.imul(te,_t);var ct=(g+(V=V+Math.imul(fe,Zt)|0)|0)+((8191&(R=(R=R+Math.imul(fe,Pe)|0)+Math.imul(ye,Zt)|0))<<13)|0;g=((H=H+Math.imul(ye,Pe)|0)+(R>>>13)|0)+(ct>>>26)|0,ct&=67108863,V=Math.imul(be,Qe),R=(R=Math.imul(be,_t))+Math.imul(Z,Qe)|0,H=Math.imul(Z,_t),V=V+Math.imul(Ee,Zt)|0,R=(R=R+Math.imul(Ee,Pe)|0)+Math.imul(te,Zt)|0,H=H+Math.imul(te,Pe)|0;var Ft=(g+(V=V+Math.imul(fe,oe)|0)|0)+((8191&(R=(R=R+Math.imul(fe,Me)|0)+Math.imul(ye,oe)|0))<<13)|0;g=((H=H+Math.imul(ye,Me)|0)+(R>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,V=Math.imul(ot,Qe),R=(R=Math.imul(ot,_t))+Math.imul(Ie,Qe)|0,H=Math.imul(Ie,_t),V=V+Math.imul(be,Zt)|0,R=(R=R+Math.imul(be,Pe)|0)+Math.imul(Z,Zt)|0,H=H+Math.imul(Z,Pe)|0,V=V+Math.imul(Ee,oe)|0,R=(R=R+Math.imul(Ee,Me)|0)+Math.imul(te,oe)|0,H=H+Math.imul(te,Me)|0;var pt=(g+(V=V+Math.imul(fe,ft)|0)|0)+((8191&(R=(R=R+Math.imul(fe,Rt)|0)+Math.imul(ye,ft)|0))<<13)|0;g=((H=H+Math.imul(ye,Rt)|0)+(R>>>13)|0)+(pt>>>26)|0,pt&=67108863,V=Math.imul(ce,Qe),R=(R=Math.imul(ce,_t))+Math.imul(Te,Qe)|0,H=Math.imul(Te,_t),V=V+Math.imul(ot,Zt)|0,R=(R=R+Math.imul(ot,Pe)|0)+Math.imul(Ie,Zt)|0,H=H+Math.imul(Ie,Pe)|0,V=V+Math.imul(be,oe)|0,R=(R=R+Math.imul(be,Me)|0)+Math.imul(Z,oe)|0,H=H+Math.imul(Z,Me)|0,V=V+Math.imul(Ee,ft)|0,R=(R=R+Math.imul(Ee,Rt)|0)+Math.imul(te,ft)|0,H=H+Math.imul(te,Rt)|0;var it=(g+(V=V+Math.imul(fe,Re)|0)|0)+((8191&(R=(R=R+Math.imul(fe,qe)|0)+Math.imul(ye,Re)|0))<<13)|0;g=((H=H+Math.imul(ye,qe)|0)+(R>>>13)|0)+(it>>>26)|0,it&=67108863,V=Math.imul(G,Qe),R=(R=Math.imul(G,_t))+Math.imul(ee,Qe)|0,H=Math.imul(ee,_t),V=V+Math.imul(ce,Zt)|0,R=(R=R+Math.imul(ce,Pe)|0)+Math.imul(Te,Zt)|0,H=H+Math.imul(Te,Pe)|0,V=V+Math.imul(ot,oe)|0,R=(R=R+Math.imul(ot,Me)|0)+Math.imul(Ie,oe)|0,H=H+Math.imul(Ie,Me)|0,V=V+Math.imul(be,ft)|0,R=(R=R+Math.imul(be,Rt)|0)+Math.imul(Z,ft)|0,H=H+Math.imul(Z,Rt)|0,V=V+Math.imul(Ee,Re)|0,R=(R=R+Math.imul(Ee,qe)|0)+Math.imul(te,Re)|0,H=H+Math.imul(te,qe)|0;var It=(g+(V=V+Math.imul(fe,we)|0)|0)+((8191&(R=(R=R+Math.imul(fe,Fe)|0)+Math.imul(ye,we)|0))<<13)|0;g=((H=H+Math.imul(ye,Fe)|0)+(R>>>13)|0)+(It>>>26)|0,It&=67108863,V=Math.imul(ve,Qe),R=(R=Math.imul(ve,_t))+Math.imul(Le,Qe)|0,H=Math.imul(Le,_t),V=V+Math.imul(G,Zt)|0,R=(R=R+Math.imul(G,Pe)|0)+Math.imul(ee,Zt)|0,H=H+Math.imul(ee,Pe)|0,V=V+Math.imul(ce,oe)|0,R=(R=R+Math.imul(ce,Me)|0)+Math.imul(Te,oe)|0,H=H+Math.imul(Te,Me)|0,V=V+Math.imul(ot,ft)|0,R=(R=R+Math.imul(ot,Rt)|0)+Math.imul(Ie,ft)|0,H=H+Math.imul(Ie,Rt)|0,V=V+Math.imul(be,Re)|0,R=(R=R+Math.imul(be,qe)|0)+Math.imul(Z,Re)|0,H=H+Math.imul(Z,qe)|0,V=V+Math.imul(Ee,we)|0,R=(R=R+Math.imul(Ee,Fe)|0)+Math.imul(te,we)|0,H=H+Math.imul(te,Fe)|0;var de=(g+(V=V+Math.imul(fe,at)|0)|0)+((8191&(R=(R=R+Math.imul(fe,yt)|0)+Math.imul(ye,at)|0))<<13)|0;g=((H=H+Math.imul(ye,yt)|0)+(R>>>13)|0)+(de>>>26)|0,de&=67108863,V=Math.imul(ht,Qe),R=(R=Math.imul(ht,_t))+Math.imul(Tt,Qe)|0,H=Math.imul(Tt,_t),V=V+Math.imul(ve,Zt)|0,R=(R=R+Math.imul(ve,Pe)|0)+Math.imul(Le,Zt)|0,H=H+Math.imul(Le,Pe)|0,V=V+Math.imul(G,oe)|0,R=(R=R+Math.imul(G,Me)|0)+Math.imul(ee,oe)|0,H=H+Math.imul(ee,Me)|0,V=V+Math.imul(ce,ft)|0,R=(R=R+Math.imul(ce,Rt)|0)+Math.imul(Te,ft)|0,H=H+Math.imul(Te,Rt)|0,V=V+Math.imul(ot,Re)|0,R=(R=R+Math.imul(ot,qe)|0)+Math.imul(Ie,Re)|0,H=H+Math.imul(Ie,qe)|0,V=V+Math.imul(be,we)|0,R=(R=R+Math.imul(be,Fe)|0)+Math.imul(Z,we)|0,H=H+Math.imul(Z,Fe)|0,V=V+Math.imul(Ee,at)|0,R=(R=R+Math.imul(Ee,yt)|0)+Math.imul(te,at)|0,H=H+Math.imul(te,yt)|0;var $e=(g+(V=V+Math.imul(fe,Xt)|0)|0)+((8191&(R=(R=R+Math.imul(fe,Jt)|0)+Math.imul(ye,Xt)|0))<<13)|0;g=((H=H+Math.imul(ye,Jt)|0)+(R>>>13)|0)+($e>>>26)|0,$e&=67108863,V=Math.imul(jt,Qe),R=(R=Math.imul(jt,_t))+Math.imul(Gt,Qe)|0,H=Math.imul(Gt,_t),V=V+Math.imul(ht,Zt)|0,R=(R=R+Math.imul(ht,Pe)|0)+Math.imul(Tt,Zt)|0,H=H+Math.imul(Tt,Pe)|0,V=V+Math.imul(ve,oe)|0,R=(R=R+Math.imul(ve,Me)|0)+Math.imul(Le,oe)|0,H=H+Math.imul(Le,Me)|0,V=V+Math.imul(G,ft)|0,R=(R=R+Math.imul(G,Rt)|0)+Math.imul(ee,ft)|0,H=H+Math.imul(ee,Rt)|0,V=V+Math.imul(ce,Re)|0,R=(R=R+Math.imul(ce,qe)|0)+Math.imul(Te,Re)|0,H=H+Math.imul(Te,qe)|0,V=V+Math.imul(ot,we)|0,R=(R=R+Math.imul(ot,Fe)|0)+Math.imul(Ie,we)|0,H=H+Math.imul(Ie,Fe)|0,V=V+Math.imul(be,at)|0,R=(R=R+Math.imul(be,yt)|0)+Math.imul(Z,at)|0,H=H+Math.imul(Z,yt)|0,V=V+Math.imul(Ee,Xt)|0,R=(R=R+Math.imul(Ee,Jt)|0)+Math.imul(te,Xt)|0,H=H+Math.imul(te,Jt)|0;var bt=(g+(V=V+Math.imul(fe,ui)|0)|0)+((8191&(R=(R=R+Math.imul(fe,si)|0)+Math.imul(ye,ui)|0))<<13)|0;g=((H=H+Math.imul(ye,si)|0)+(R>>>13)|0)+(bt>>>26)|0,bt&=67108863,V=Math.imul(vt,Qe),R=(R=Math.imul(vt,_t))+Math.imul(kt,Qe)|0,H=Math.imul(kt,_t),V=V+Math.imul(jt,Zt)|0,R=(R=R+Math.imul(jt,Pe)|0)+Math.imul(Gt,Zt)|0,H=H+Math.imul(Gt,Pe)|0,V=V+Math.imul(ht,oe)|0,R=(R=R+Math.imul(ht,Me)|0)+Math.imul(Tt,oe)|0,H=H+Math.imul(Tt,Me)|0,V=V+Math.imul(ve,ft)|0,R=(R=R+Math.imul(ve,Rt)|0)+Math.imul(Le,ft)|0,H=H+Math.imul(Le,Rt)|0,V=V+Math.imul(G,Re)|0,R=(R=R+Math.imul(G,qe)|0)+Math.imul(ee,Re)|0,H=H+Math.imul(ee,qe)|0,V=V+Math.imul(ce,we)|0,R=(R=R+Math.imul(ce,Fe)|0)+Math.imul(Te,we)|0,H=H+Math.imul(Te,Fe)|0,V=V+Math.imul(ot,at)|0,R=(R=R+Math.imul(ot,yt)|0)+Math.imul(Ie,at)|0,H=H+Math.imul(Ie,yt)|0,V=V+Math.imul(be,Xt)|0,R=(R=R+Math.imul(be,Jt)|0)+Math.imul(Z,Xt)|0,H=H+Math.imul(Z,Jt)|0,V=V+Math.imul(Ee,ui)|0,R=(R=R+Math.imul(Ee,si)|0)+Math.imul(te,ui)|0,H=H+Math.imul(te,si)|0;var Vt=(g+(V=V+Math.imul(fe,Ui)|0)|0)+((8191&(R=(R=R+Math.imul(fe,Bi)|0)+Math.imul(ye,Ui)|0))<<13)|0;g=((H=H+Math.imul(ye,Bi)|0)+(R>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,V=Math.imul(vt,Zt),R=(R=Math.imul(vt,Pe))+Math.imul(kt,Zt)|0,H=Math.imul(kt,Pe),V=V+Math.imul(jt,oe)|0,R=(R=R+Math.imul(jt,Me)|0)+Math.imul(Gt,oe)|0,H=H+Math.imul(Gt,Me)|0,V=V+Math.imul(ht,ft)|0,R=(R=R+Math.imul(ht,Rt)|0)+Math.imul(Tt,ft)|0,H=H+Math.imul(Tt,Rt)|0,V=V+Math.imul(ve,Re)|0,R=(R=R+Math.imul(ve,qe)|0)+Math.imul(Le,Re)|0,H=H+Math.imul(Le,qe)|0,V=V+Math.imul(G,we)|0,R=(R=R+Math.imul(G,Fe)|0)+Math.imul(ee,we)|0,H=H+Math.imul(ee,Fe)|0,V=V+Math.imul(ce,at)|0,R=(R=R+Math.imul(ce,yt)|0)+Math.imul(Te,at)|0,H=H+Math.imul(Te,yt)|0,V=V+Math.imul(ot,Xt)|0,R=(R=R+Math.imul(ot,Jt)|0)+Math.imul(Ie,Xt)|0,H=H+Math.imul(Ie,Jt)|0,V=V+Math.imul(be,ui)|0,R=(R=R+Math.imul(be,si)|0)+Math.imul(Z,ui)|0,H=H+Math.imul(Z,si)|0;var bi=(g+(V=V+Math.imul(Ee,Ui)|0)|0)+((8191&(R=(R=R+Math.imul(Ee,Bi)|0)+Math.imul(te,Ui)|0))<<13)|0;g=((H=H+Math.imul(te,Bi)|0)+(R>>>13)|0)+(bi>>>26)|0,bi&=67108863,V=Math.imul(vt,oe),R=(R=Math.imul(vt,Me))+Math.imul(kt,oe)|0,H=Math.imul(kt,Me),V=V+Math.imul(jt,ft)|0,R=(R=R+Math.imul(jt,Rt)|0)+Math.imul(Gt,ft)|0,H=H+Math.imul(Gt,Rt)|0,V=V+Math.imul(ht,Re)|0,R=(R=R+Math.imul(ht,qe)|0)+Math.imul(Tt,Re)|0,H=H+Math.imul(Tt,qe)|0,V=V+Math.imul(ve,we)|0,R=(R=R+Math.imul(ve,Fe)|0)+Math.imul(Le,we)|0,H=H+Math.imul(Le,Fe)|0,V=V+Math.imul(G,at)|0,R=(R=R+Math.imul(G,yt)|0)+Math.imul(ee,at)|0,H=H+Math.imul(ee,yt)|0,V=V+Math.imul(ce,Xt)|0,R=(R=R+Math.imul(ce,Jt)|0)+Math.imul(Te,Xt)|0,H=H+Math.imul(Te,Jt)|0,V=V+Math.imul(ot,ui)|0,R=(R=R+Math.imul(ot,si)|0)+Math.imul(Ie,ui)|0,H=H+Math.imul(Ie,si)|0;var Li=(g+(V=V+Math.imul(be,Ui)|0)|0)+((8191&(R=(R=R+Math.imul(be,Bi)|0)+Math.imul(Z,Ui)|0))<<13)|0;g=((H=H+Math.imul(Z,Bi)|0)+(R>>>13)|0)+(Li>>>26)|0,Li&=67108863,V=Math.imul(vt,ft),R=(R=Math.imul(vt,Rt))+Math.imul(kt,ft)|0,H=Math.imul(kt,Rt),V=V+Math.imul(jt,Re)|0,R=(R=R+Math.imul(jt,qe)|0)+Math.imul(Gt,Re)|0,H=H+Math.imul(Gt,qe)|0,V=V+Math.imul(ht,we)|0,R=(R=R+Math.imul(ht,Fe)|0)+Math.imul(Tt,we)|0,H=H+Math.imul(Tt,Fe)|0,V=V+Math.imul(ve,at)|0,R=(R=R+Math.imul(ve,yt)|0)+Math.imul(Le,at)|0,H=H+Math.imul(Le,yt)|0,V=V+Math.imul(G,Xt)|0,R=(R=R+Math.imul(G,Jt)|0)+Math.imul(ee,Xt)|0,H=H+Math.imul(ee,Jt)|0,V=V+Math.imul(ce,ui)|0,R=(R=R+Math.imul(ce,si)|0)+Math.imul(Te,ui)|0,H=H+Math.imul(Te,si)|0;var Ji=(g+(V=V+Math.imul(ot,Ui)|0)|0)+((8191&(R=(R=R+Math.imul(ot,Bi)|0)+Math.imul(Ie,Ui)|0))<<13)|0;g=((H=H+Math.imul(Ie,Bi)|0)+(R>>>13)|0)+(Ji>>>26)|0,Ji&=67108863,V=Math.imul(vt,Re),R=(R=Math.imul(vt,qe))+Math.imul(kt,Re)|0,H=Math.imul(kt,qe),V=V+Math.imul(jt,we)|0,R=(R=R+Math.imul(jt,Fe)|0)+Math.imul(Gt,we)|0,H=H+Math.imul(Gt,Fe)|0,V=V+Math.imul(ht,at)|0,R=(R=R+Math.imul(ht,yt)|0)+Math.imul(Tt,at)|0,H=H+Math.imul(Tt,yt)|0,V=V+Math.imul(ve,Xt)|0,R=(R=R+Math.imul(ve,Jt)|0)+Math.imul(Le,Xt)|0,H=H+Math.imul(Le,Jt)|0,V=V+Math.imul(G,ui)|0,R=(R=R+Math.imul(G,si)|0)+Math.imul(ee,ui)|0,H=H+Math.imul(ee,si)|0;var Wi=(g+(V=V+Math.imul(ce,Ui)|0)|0)+((8191&(R=(R=R+Math.imul(ce,Bi)|0)+Math.imul(Te,Ui)|0))<<13)|0;g=((H=H+Math.imul(Te,Bi)|0)+(R>>>13)|0)+(Wi>>>26)|0,Wi&=67108863,V=Math.imul(vt,we),R=(R=Math.imul(vt,Fe))+Math.imul(kt,we)|0,H=Math.imul(kt,Fe),V=V+Math.imul(jt,at)|0,R=(R=R+Math.imul(jt,yt)|0)+Math.imul(Gt,at)|0,H=H+Math.imul(Gt,yt)|0,V=V+Math.imul(ht,Xt)|0,R=(R=R+Math.imul(ht,Jt)|0)+Math.imul(Tt,Xt)|0,H=H+Math.imul(Tt,Jt)|0,V=V+Math.imul(ve,ui)|0,R=(R=R+Math.imul(ve,si)|0)+Math.imul(Le,ui)|0,H=H+Math.imul(Le,si)|0;var sn=(g+(V=V+Math.imul(G,Ui)|0)|0)+((8191&(R=(R=R+Math.imul(G,Bi)|0)+Math.imul(ee,Ui)|0))<<13)|0;g=((H=H+Math.imul(ee,Bi)|0)+(R>>>13)|0)+(sn>>>26)|0,sn&=67108863,V=Math.imul(vt,at),R=(R=Math.imul(vt,yt))+Math.imul(kt,at)|0,H=Math.imul(kt,yt),V=V+Math.imul(jt,Xt)|0,R=(R=R+Math.imul(jt,Jt)|0)+Math.imul(Gt,Xt)|0,H=H+Math.imul(Gt,Jt)|0,V=V+Math.imul(ht,ui)|0,R=(R=R+Math.imul(ht,si)|0)+Math.imul(Tt,ui)|0,H=H+Math.imul(Tt,si)|0;var mn=(g+(V=V+Math.imul(ve,Ui)|0)|0)+((8191&(R=(R=R+Math.imul(ve,Bi)|0)+Math.imul(Le,Ui)|0))<<13)|0;g=((H=H+Math.imul(Le,Bi)|0)+(R>>>13)|0)+(mn>>>26)|0,mn&=67108863,V=Math.imul(vt,Xt),R=(R=Math.imul(vt,Jt))+Math.imul(kt,Xt)|0,H=Math.imul(kt,Jt),V=V+Math.imul(jt,ui)|0,R=(R=R+Math.imul(jt,si)|0)+Math.imul(Gt,ui)|0,H=H+Math.imul(Gt,si)|0;var Yt=(g+(V=V+Math.imul(ht,Ui)|0)|0)+((8191&(R=(R=R+Math.imul(ht,Bi)|0)+Math.imul(Tt,Ui)|0))<<13)|0;g=((H=H+Math.imul(Tt,Bi)|0)+(R>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,V=Math.imul(vt,ui),R=(R=Math.imul(vt,si))+Math.imul(kt,ui)|0,H=Math.imul(kt,si);var Mi=(g+(V=V+Math.imul(jt,Ui)|0)|0)+((8191&(R=(R=R+Math.imul(jt,Bi)|0)+Math.imul(Gt,Ui)|0))<<13)|0;g=((H=H+Math.imul(Gt,Bi)|0)+(R>>>13)|0)+(Mi>>>26)|0,Mi&=67108863;var Je=(g+(V=Math.imul(vt,Ui))|0)+((8191&(R=(R=Math.imul(vt,Bi))+Math.imul(kt,Ui)|0))<<13)|0;return g=((H=Math.imul(kt,Bi))+(R>>>13)|0)+(Je>>>26)|0,Je&=67108863,n[0]=Gi,n[1]=ct,n[2]=Ft,n[3]=pt,n[4]=it,n[5]=It,n[6]=de,n[7]=$e,n[8]=bt,n[9]=Vt,n[10]=bi,n[11]=Li,n[12]=Ji,n[13]=Wi,n[14]=sn,n[15]=mn,n[16]=Yt,n[17]=Mi,n[18]=Je,0!==g&&(n[19]=g,S.length++),S};function ne(h,c,C){C.negative=c.negative^h.negative,C.length=h.length+c.length;for(var S=0,I=0,_=0;_<C.length-1;_++){var n=I;I=0;for(var g=67108863&S,V=Math.min(_,c.length-1),R=Math.max(0,_-h.length+1);R<=V;R++){var ye=(0|h.words[_-R])*(0|c.words[R]),ke=67108863&ye;g=67108863&(ke=ke+g|0),I+=(n=(n=n+(ye/67108864|0)|0)+(ke>>>26)|0)>>>26,n&=67108863}C.words[_]=g,S=n,n=I}return 0!==S?C.words[_]=S:C.length--,C._strip()}function Q(h,c,C){return ne(h,c,C)}function le(h,c){this.x=h,this.y=c}Math.imul||(W=U),a.prototype.mulTo=function(c,C){var I=this.length+c.length;return 10===this.length&&10===c.length?W(this,c,C):I<63?U(this,c,C):I<1024?ne(this,c,C):Q(this,c,C)},le.prototype.makeRBT=function(c){for(var C=new Array(c),S=a.prototype._countBits(c)-1,I=0;I<c;I++)C[I]=this.revBin(I,S,c);return C},le.prototype.revBin=function(c,C,S){if(0===c||c===S-1)return c;for(var I=0,_=0;_<C;_++)I|=(1&c)<<C-_-1,c>>=1;return I},le.prototype.permute=function(c,C,S,I,_,n){for(var g=0;g<n;g++)I[g]=C[c[g]],_[g]=S[c[g]]},le.prototype.transform=function(c,C,S,I,_,n){this.permute(n,c,C,S,I,_);for(var g=1;g<_;g<<=1)for(var V=g<<1,R=Math.cos(2*Math.PI/V),H=Math.sin(2*Math.PI/V),$=0;$<_;$+=V)for(var fe=R,ye=H,ke=0;ke<g;ke++){var Ee=S[$+ke],te=I[$+ke],ze=S[$+ke+g],be=I[$+ke+g],Z=fe*ze-ye*be;be=fe*be+ye*ze,S[$+ke]=Ee+(ze=Z),I[$+ke]=te+be,S[$+ke+g]=Ee-ze,I[$+ke+g]=te-be,ke!==V&&(Z=R*fe-H*ye,ye=R*ye+H*fe,fe=Z)}},le.prototype.guessLen13b=function(c,C){var S=1|Math.max(C,c),I=1&S,_=0;for(S=S/2|0;S;S>>>=1)_++;return 1<<_+1+I},le.prototype.conjugate=function(c,C,S){if(!(S<=1))for(var I=0;I<S/2;I++){var _=c[I];c[I]=c[S-I-1],c[S-I-1]=_,_=C[I],C[I]=-C[S-I-1],C[S-I-1]=-_}},le.prototype.normalize13b=function(c,C){for(var S=0,I=0;I<C/2;I++){var _=8192*Math.round(c[2*I+1]/C)+Math.round(c[2*I]/C)+S;c[I]=67108863&_,S=_<67108864?0:_/67108864|0}return c},le.prototype.convert13b=function(c,C,S,I){for(var _=0,n=0;n<C;n++)S[2*n]=8191&(_+=0|c[n]),S[2*n+1]=8191&(_>>>=13),_>>>=13;for(n=2*C;n<I;++n)S[n]=0;u(0===_),u(0==(-8192&_))},le.prototype.stub=function(c){for(var C=new Array(c),S=0;S<c;S++)C[S]=0;return C},le.prototype.mulp=function(c,C,S){var I=2*this.guessLen13b(c.length,C.length),_=this.makeRBT(I),n=this.stub(I),g=new Array(I),V=new Array(I),R=new Array(I),H=new Array(I),$=new Array(I),fe=new Array(I),ye=S.words;ye.length=I,this.convert13b(c.words,c.length,g,I),this.convert13b(C.words,C.length,H,I),this.transform(g,n,V,R,I,_),this.transform(H,n,$,fe,I,_);for(var ke=0;ke<I;ke++){var Ee=V[ke]*$[ke]-R[ke]*fe[ke];R[ke]=V[ke]*fe[ke]+R[ke]*$[ke],V[ke]=Ee}return this.conjugate(V,R,I),this.transform(V,R,ye,n,I,_),this.conjugate(ye,n,I),this.normalize13b(ye,I),S.negative=c.negative^C.negative,S.length=c.length+C.length,S._strip()},a.prototype.mul=function(c){var C=new a(null);return C.words=new Array(this.length+c.length),this.mulTo(c,C)},a.prototype.mulf=function(c){var C=new a(null);return C.words=new Array(this.length+c.length),Q(this,c,C)},a.prototype.imul=function(c){return this.clone().mulTo(c,this)},a.prototype.imuln=function(c){var C=c<0;C&&(c=-c),u("number"==typeof c),u(c<67108864);for(var S=0,I=0;I<this.length;I++){var _=(0|this.words[I])*c,n=(67108863&_)+(67108863&S);S>>=26,S+=_/67108864|0,S+=n>>>26,this.words[I]=67108863&n}return 0!==S&&(this.words[I]=S,this.length++),C?this.ineg():this},a.prototype.muln=function(c){return this.clone().imuln(c)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(c){var C=function z(h){for(var c=new Array(h.bitLength()),C=0;C<c.length;C++)c[C]=h.words[C/26|0]>>>C%26&1;return c}(c);if(0===C.length)return new a(1);for(var S=this,I=0;I<C.length&&0===C[I];I++,S=S.sqr());if(++I<C.length)for(var _=S.sqr();I<C.length;I++,_=_.sqr())0!==C[I]&&(S=S.mul(_));return S},a.prototype.iushln=function(c){u("number"==typeof c&&c>=0);var _,C=c%26,S=(c-C)/26,I=67108863>>>26-C<<26-C;if(0!==C){var n=0;for(_=0;_<this.length;_++){var g=this.words[_]&I;this.words[_]=(0|this.words[_])-g<<C|n,n=g>>>26-C}n&&(this.words[_]=n,this.length++)}if(0!==S){for(_=this.length-1;_>=0;_--)this.words[_+S]=this.words[_];for(_=0;_<S;_++)this.words[_]=0;this.length+=S}return this._strip()},a.prototype.ishln=function(c){return u(0===this.negative),this.iushln(c)},a.prototype.iushrn=function(c,C,S){var I;u("number"==typeof c&&c>=0),I=C?(C-C%26)/26:0;var _=c%26,n=Math.min((c-_)/26,this.length),g=67108863^67108863>>>_<<_,V=S;if(I-=n,I=Math.max(0,I),V){for(var R=0;R<n;R++)V.words[R]=this.words[R];V.length=n}if(0!==n)if(this.length>n)for(this.length-=n,R=0;R<this.length;R++)this.words[R]=this.words[R+n];else this.words[0]=0,this.length=1;var H=0;for(R=this.length-1;R>=0&&(0!==H||R>=I);R--){var $=0|this.words[R];this.words[R]=H<<26-_|$>>>_,H=$&g}return V&&0!==H&&(V.words[V.length++]=H),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},a.prototype.ishrn=function(c,C,S){return u(0===this.negative),this.iushrn(c,C,S)},a.prototype.shln=function(c){return this.clone().ishln(c)},a.prototype.ushln=function(c){return this.clone().iushln(c)},a.prototype.shrn=function(c){return this.clone().ishrn(c)},a.prototype.ushrn=function(c){return this.clone().iushrn(c)},a.prototype.testn=function(c){u("number"==typeof c&&c>=0);var C=c%26,S=(c-C)/26;return!(this.length<=S||!(this.words[S]&1<<C))},a.prototype.imaskn=function(c){u("number"==typeof c&&c>=0);var C=c%26,S=(c-C)/26;return u(0===this.negative,"imaskn works only with positive numbers"),this.length<=S?this:(0!==C&&S++,this.length=Math.min(S,this.length),0!==C&&(this.words[this.length-1]&=67108863^67108863>>>C<<C),this._strip())},a.prototype.maskn=function(c){return this.clone().imaskn(c)},a.prototype.iaddn=function(c){return u("number"==typeof c),u(c<67108864),c<0?this.isubn(-c):0!==this.negative?1===this.length&&(0|this.words[0])<=c?(this.words[0]=c-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(c),this.negative=1,this):this._iaddn(c)},a.prototype._iaddn=function(c){this.words[0]+=c;for(var C=0;C<this.length&&this.words[C]>=67108864;C++)this.words[C]-=67108864,C===this.length-1?this.words[C+1]=1:this.words[C+1]++;return this.length=Math.max(this.length,C+1),this},a.prototype.isubn=function(c){if(u("number"==typeof c),u(c<67108864),c<0)return this.iaddn(-c);if(0!==this.negative)return this.negative=0,this.iaddn(c),this.negative=1,this;if(this.words[0]-=c,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var C=0;C<this.length&&this.words[C]<0;C++)this.words[C]+=67108864,this.words[C+1]-=1;return this._strip()},a.prototype.addn=function(c){return this.clone().iaddn(c)},a.prototype.subn=function(c){return this.clone().isubn(c)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(c,C,S){var _;this._expand(c.length+S);var n,g=0;for(_=0;_<c.length;_++){n=(0|this.words[_+S])+g;var V=(0|c.words[_])*C;g=((n-=67108863&V)>>26)-(V/67108864|0),this.words[_+S]=67108863&n}for(;_<this.length-S;_++)g=(n=(0|this.words[_+S])+g)>>26,this.words[_+S]=67108863&n;if(0===g)return this._strip();for(u(-1===g),g=0,_=0;_<this.length;_++)g=(n=-(0|this.words[_])+g)>>26,this.words[_]=67108863&n;return this.negative=1,this._strip()},a.prototype._wordDiv=function(c,C){var S,I=this.clone(),_=c,n=0|_.words[_.length-1];0!=(S=26-this._countBits(n))&&(_=_.ushln(S),I.iushln(S),n=0|_.words[_.length-1]);var R,V=I.length-_.length;if("mod"!==C){(R=new a(null)).length=V+1,R.words=new Array(R.length);for(var H=0;H<R.length;H++)R.words[H]=0}var $=I.clone()._ishlnsubmul(_,1,V);0===$.negative&&(I=$,R&&(R.words[V]=1));for(var fe=V-1;fe>=0;fe--){var ye=67108864*(0|I.words[_.length+fe])+(0|I.words[_.length+fe-1]);for(ye=Math.min(ye/n|0,67108863),I._ishlnsubmul(_,ye,fe);0!==I.negative;)ye--,I.negative=0,I._ishlnsubmul(_,1,fe),I.isZero()||(I.negative^=1);R&&(R.words[fe]=ye)}return R&&R._strip(),I._strip(),"div"!==C&&0!==S&&I.iushrn(S),{div:R||null,mod:I}},a.prototype.divmod=function(c,C,S){return u(!c.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===c.negative?(n=this.neg().divmod(c,C),"mod"!==C&&(I=n.div.neg()),"div"!==C&&(_=n.mod.neg(),S&&0!==_.negative&&_.iadd(c)),{div:I,mod:_}):0===this.negative&&0!==c.negative?(n=this.divmod(c.neg(),C),"mod"!==C&&(I=n.div.neg()),{div:I,mod:n.mod}):0!=(this.negative&c.negative)?(n=this.neg().divmod(c.neg(),C),"div"!==C&&(_=n.mod.neg(),S&&0!==_.negative&&_.isub(c)),{div:n.div,mod:_}):c.length>this.length||this.cmp(c)<0?{div:new a(0),mod:this}:1===c.length?"div"===C?{div:this.divn(c.words[0]),mod:null}:"mod"===C?{div:null,mod:new a(this.modrn(c.words[0]))}:{div:this.divn(c.words[0]),mod:new a(this.modrn(c.words[0]))}:this._wordDiv(c,C);var I,_,n},a.prototype.div=function(c){return this.divmod(c,"div",!1).div},a.prototype.mod=function(c){return this.divmod(c,"mod",!1).mod},a.prototype.umod=function(c){return this.divmod(c,"mod",!0).mod},a.prototype.divRound=function(c){var C=this.divmod(c);if(C.mod.isZero())return C.div;var S=0!==C.div.negative?C.mod.isub(c):C.mod,I=c.ushrn(1),_=c.andln(1),n=S.cmp(I);return n<0||1===_&&0===n?C.div:0!==C.div.negative?C.div.isubn(1):C.div.iaddn(1)},a.prototype.modrn=function(c){var C=c<0;C&&(c=-c),u(c<=67108863);for(var S=(1<<26)%c,I=0,_=this.length-1;_>=0;_--)I=(S*I+(0|this.words[_]))%c;return C?-I:I},a.prototype.modn=function(c){return this.modrn(c)},a.prototype.idivn=function(c){var C=c<0;C&&(c=-c),u(c<=67108863);for(var S=0,I=this.length-1;I>=0;I--){var _=(0|this.words[I])+67108864*S;this.words[I]=_/c|0,S=_%c}return this._strip(),C?this.ineg():this},a.prototype.divn=function(c){return this.clone().idivn(c)},a.prototype.egcd=function(c){u(0===c.negative),u(!c.isZero());var C=this,S=c.clone();C=0!==C.negative?C.umod(c):C.clone();for(var I=new a(1),_=new a(0),n=new a(0),g=new a(1),V=0;C.isEven()&&S.isEven();)C.iushrn(1),S.iushrn(1),++V;for(var R=S.clone(),H=C.clone();!C.isZero();){for(var $=0,fe=1;0==(C.words[0]&fe)&&$<26;++$,fe<<=1);if($>0)for(C.iushrn($);$-- >0;)(I.isOdd()||_.isOdd())&&(I.iadd(R),_.isub(H)),I.iushrn(1),_.iushrn(1);for(var ye=0,ke=1;0==(S.words[0]&ke)&&ye<26;++ye,ke<<=1);if(ye>0)for(S.iushrn(ye);ye-- >0;)(n.isOdd()||g.isOdd())&&(n.iadd(R),g.isub(H)),n.iushrn(1),g.iushrn(1);C.cmp(S)>=0?(C.isub(S),I.isub(n),_.isub(g)):(S.isub(C),n.isub(I),g.isub(_))}return{a:n,b:g,gcd:S.iushln(V)}},a.prototype._invmp=function(c){u(0===c.negative),u(!c.isZero());var $,C=this,S=c.clone();C=0!==C.negative?C.umod(c):C.clone();for(var I=new a(1),_=new a(0),n=S.clone();C.cmpn(1)>0&&S.cmpn(1)>0;){for(var g=0,V=1;0==(C.words[0]&V)&&g<26;++g,V<<=1);if(g>0)for(C.iushrn(g);g-- >0;)I.isOdd()&&I.iadd(n),I.iushrn(1);for(var R=0,H=1;0==(S.words[0]&H)&&R<26;++R,H<<=1);if(R>0)for(S.iushrn(R);R-- >0;)_.isOdd()&&_.iadd(n),_.iushrn(1);C.cmp(S)>=0?(C.isub(S),I.isub(_)):(S.isub(C),_.isub(I))}return($=0===C.cmpn(1)?I:_).cmpn(0)<0&&$.iadd(c),$},a.prototype.gcd=function(c){if(this.isZero())return c.abs();if(c.isZero())return this.abs();var C=this.clone(),S=c.clone();C.negative=0,S.negative=0;for(var I=0;C.isEven()&&S.isEven();I++)C.iushrn(1),S.iushrn(1);for(;;){for(;C.isEven();)C.iushrn(1);for(;S.isEven();)S.iushrn(1);var _=C.cmp(S);if(_<0){var n=C;C=S,S=n}else if(0===_||0===S.cmpn(1))break;C.isub(S)}return S.iushln(I)},a.prototype.invm=function(c){return this.egcd(c).a.umod(c)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(c){return this.words[0]&c},a.prototype.bincn=function(c){u("number"==typeof c);var C=c%26,S=(c-C)/26,I=1<<C;if(this.length<=S)return this._expand(S+1),this.words[S]|=I,this;for(var _=I,n=S;0!==_&&n<this.length;n++){var g=0|this.words[n];_=(g+=_)>>>26,this.words[n]=g&=67108863}return 0!==_&&(this.words[n]=_,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(c){var S,C=c<0;if(0!==this.negative&&!C)return-1;if(0===this.negative&&C)return 1;if(this._strip(),this.length>1)S=1;else{C&&(c=-c),u(c<=67108863,"Number is too big");var I=0|this.words[0];S=I===c?0:I<c?-1:1}return 0!==this.negative?0|-S:S},a.prototype.cmp=function(c){if(0!==this.negative&&0===c.negative)return-1;if(0===this.negative&&0!==c.negative)return 1;var C=this.ucmp(c);return 0!==this.negative?0|-C:C},a.prototype.ucmp=function(c){if(this.length>c.length)return 1;if(this.length<c.length)return-1;for(var C=0,S=this.length-1;S>=0;S--){var I=0|this.words[S],_=0|c.words[S];if(I!==_){I<_?C=-1:I>_&&(C=1);break}}return C},a.prototype.gtn=function(c){return 1===this.cmpn(c)},a.prototype.gt=function(c){return 1===this.cmp(c)},a.prototype.gten=function(c){return this.cmpn(c)>=0},a.prototype.gte=function(c){return this.cmp(c)>=0},a.prototype.ltn=function(c){return-1===this.cmpn(c)},a.prototype.lt=function(c){return-1===this.cmp(c)},a.prototype.lten=function(c){return this.cmpn(c)<=0},a.prototype.lte=function(c){return this.cmp(c)<=0},a.prototype.eqn=function(c){return 0===this.cmpn(c)},a.prototype.eq=function(c){return 0===this.cmp(c)},a.red=function(c){return new t(c)},a.prototype.toRed=function(c){return u(!this.red,"Already a number in reduction context"),u(0===this.negative,"red works only with positives"),c.convertTo(this)._forceRed(c)},a.prototype.fromRed=function(){return u(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(c){return this.red=c,this},a.prototype.forceRed=function(c){return u(!this.red,"Already a number in reduction context"),this._forceRed(c)},a.prototype.redAdd=function(c){return u(this.red,"redAdd works only with red numbers"),this.red.add(this,c)},a.prototype.redIAdd=function(c){return u(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,c)},a.prototype.redSub=function(c){return u(this.red,"redSub works only with red numbers"),this.red.sub(this,c)},a.prototype.redISub=function(c){return u(this.red,"redISub works only with red numbers"),this.red.isub(this,c)},a.prototype.redShl=function(c){return u(this.red,"redShl works only with red numbers"),this.red.shl(this,c)},a.prototype.redMul=function(c){return u(this.red,"redMul works only with red numbers"),this.red._verify2(this,c),this.red.mul(this,c)},a.prototype.redIMul=function(c){return u(this.red,"redMul works only with red numbers"),this.red._verify2(this,c),this.red.imul(this,c)},a.prototype.redSqr=function(){return u(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return u(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return u(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return u(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return u(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(c){return u(this.red&&!c.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,c)};var q={k256:null,p224:null,p192:null,p25519:null};function ie(h,c){this.name=h,this.p=new a(c,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function se(){ie.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function J(){ie.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function me(){ie.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){ie.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function t(h){if("string"==typeof h){var c=a._prime(h);this.m=c.p,this.prime=c}else u(h.gtn(1),"modulus must be greater than 1"),this.m=h,this.prime=null}function r(h){t.call(this,h),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}ie.prototype._tmp=function(){var c=new a(null);return c.words=new Array(Math.ceil(this.n/13)),c},ie.prototype.ireduce=function(c){var S,C=c;do{this.split(C,this.tmp),S=(C=(C=this.imulK(C)).iadd(this.tmp)).bitLength()}while(S>this.n);var I=S<this.n?-1:C.ucmp(this.p);return 0===I?(C.words[0]=0,C.length=1):I>0?C.isub(this.p):void 0!==C.strip?C.strip():C._strip(),C},ie.prototype.split=function(c,C){c.iushrn(this.n,0,C)},ie.prototype.imulK=function(c){return c.imul(this.k)},b(se,ie),se.prototype.split=function(c,C){for(var S=4194303,I=Math.min(c.length,9),_=0;_<I;_++)C.words[_]=c.words[_];if(C.length=I,c.length<=9)return c.words[0]=0,void(c.length=1);var n=c.words[9];for(C.words[C.length++]=n&S,_=10;_<c.length;_++){var g=0|c.words[_];c.words[_-10]=(g&S)<<4|n>>>22,n=g}c.words[_-10]=n>>>=22,c.length-=0===n&&c.length>10?10:9},se.prototype.imulK=function(c){c.words[c.length]=0,c.words[c.length+1]=0,c.length+=2;for(var C=0,S=0;S<c.length;S++){var I=0|c.words[S];c.words[S]=67108863&(C+=977*I),C=64*I+(C/67108864|0)}return 0===c.words[c.length-1]&&(c.length--,0===c.words[c.length-1]&&c.length--),c},b(J,ie),b(me,ie),b(x,ie),x.prototype.imulK=function(c){for(var C=0,S=0;S<c.length;S++){var I=19*(0|c.words[S])+C,_=67108863&I;I>>>=26,c.words[S]=_,C=I}return 0!==C&&(c.words[c.length++]=C),c},a._prime=function(c){if(q[c])return q[c];var C;if("k256"===c)C=new se;else if("p224"===c)C=new J;else if("p192"===c)C=new me;else{if("p25519"!==c)throw new Error("Unknown prime "+c);C=new x}return q[c]=C,C},t.prototype._verify1=function(c){u(0===c.negative,"red works only with positives"),u(c.red,"red works only with red numbers")},t.prototype._verify2=function(c,C){u(0==(c.negative|C.negative),"red works only with positives"),u(c.red&&c.red===C.red,"red works only with red numbers")},t.prototype.imod=function(c){return this.prime?this.prime.ireduce(c)._forceRed(this):(T(c,c.umod(this.m)._forceRed(this)),c)},t.prototype.neg=function(c){return c.isZero()?c.clone():this.m.sub(c)._forceRed(this)},t.prototype.add=function(c,C){this._verify2(c,C);var S=c.add(C);return S.cmp(this.m)>=0&&S.isub(this.m),S._forceRed(this)},t.prototype.iadd=function(c,C){this._verify2(c,C);var S=c.iadd(C);return S.cmp(this.m)>=0&&S.isub(this.m),S},t.prototype.sub=function(c,C){this._verify2(c,C);var S=c.sub(C);return S.cmpn(0)<0&&S.iadd(this.m),S._forceRed(this)},t.prototype.isub=function(c,C){this._verify2(c,C);var S=c.isub(C);return S.cmpn(0)<0&&S.iadd(this.m),S},t.prototype.shl=function(c,C){return this._verify1(c),this.imod(c.ushln(C))},t.prototype.imul=function(c,C){return this._verify2(c,C),this.imod(c.imul(C))},t.prototype.mul=function(c,C){return this._verify2(c,C),this.imod(c.mul(C))},t.prototype.isqr=function(c){return this.imul(c,c.clone())},t.prototype.sqr=function(c){return this.mul(c,c)},t.prototype.sqrt=function(c){if(c.isZero())return c.clone();var C=this.m.andln(3);if(u(C%2==1),3===C){var S=this.m.add(new a(1)).iushrn(2);return this.pow(c,S)}for(var I=this.m.subn(1),_=0;!I.isZero()&&0===I.andln(1);)_++,I.iushrn(1);u(!I.isZero());var n=new a(1).toRed(this),g=n.redNeg(),V=this.m.subn(1).iushrn(1),R=this.m.bitLength();for(R=new a(2*R*R).toRed(this);0!==this.pow(R,V).cmp(g);)R.redIAdd(g);for(var H=this.pow(R,I),$=this.pow(c,I.addn(1).iushrn(1)),fe=this.pow(c,I),ye=_;0!==fe.cmp(n);){for(var ke=fe,Ee=0;0!==ke.cmp(n);Ee++)ke=ke.redSqr();u(Ee<ye);var te=this.pow(H,new a(1).iushln(ye-Ee-1));$=$.redMul(te),H=te.redSqr(),fe=fe.redMul(H),ye=Ee}return $},t.prototype.invm=function(c){var C=c._invmp(this.m);return 0!==C.negative?(C.negative=0,this.imod(C).redNeg()):this.imod(C)},t.prototype.pow=function(c,C){if(C.isZero())return new a(1).toRed(this);if(0===C.cmpn(1))return c.clone();var I=new Array(16);I[0]=new a(1).toRed(this),I[1]=c;for(var _=2;_<I.length;_++)I[_]=this.mul(I[_-1],c);var n=I[0],g=0,V=0,R=C.bitLength()%26;for(0===R&&(R=26),_=C.length-1;_>=0;_--){for(var H=C.words[_],$=R-1;$>=0;$--){var fe=H>>$&1;n!==I[0]&&(n=this.sqr(n)),0!==fe||0!==g?(g<<=1,g|=fe,(4==++V||0===_&&0===$)&&(n=this.mul(n,I[g]),V=0,g=0)):V=0}R=26}return n},t.prototype.convertTo=function(c){var C=c.umod(this.m);return C===c?C.clone():C},t.prototype.convertFrom=function(c){var C=c.clone();return C.red=null,C},a.mont=function(c){return new r(c)},b(r,t),r.prototype.convertTo=function(c){return this.imod(c.ushln(this.shift))},r.prototype.convertFrom=function(c){var C=this.imod(c.mul(this.rinv));return C.red=null,C},r.prototype.imul=function(c,C){if(c.isZero()||C.isZero())return c.words[0]=0,c.length=1,c;var S=c.imul(C),I=S.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=S.isub(I).iushrn(this.shift),n=_;return _.cmp(this.m)>=0?n=_.isub(this.m):_.cmpn(0)<0&&(n=_.iadd(this.m)),n._forceRed(this)},r.prototype.mul=function(c,C){if(c.isZero()||C.isZero())return new a(0)._forceRed(this);var S=c.mul(C),I=S.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=S.isub(I).iushrn(this.shift),n=_;return _.cmp(this.m)>=0?n=_.isub(this.m):_.cmpn(0)<0&&(n=_.iadd(this.m)),n._forceRed(this)},r.prototype.invm=function(c){return this.imod(c._invmp(this.m).mul(this.r2))._forceRed(this)}}(He=p.nmd(He),this)},7950:(He,j,p)=>{var e;function i(b){this.rand=b}if(He.exports=function(a){return e||(e=new i(null)),e.generate(a)},He.exports.Rand=i,i.prototype.generate=function(a){return this._rand(a)},i.prototype._rand=function(a){if(this.rand.getBytes)return this.rand.getBytes(a);for(var y=new Uint8Array(a),d=0;d<y.length;d++)y[d]=this.rand.getByte();return y},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?i.prototype._rand=function(a){var y=new Uint8Array(a);return self.crypto.getRandomValues(y),y}:self.msCrypto&&self.msCrypto.getRandomValues?i.prototype._rand=function(a){var y=new Uint8Array(a);return self.msCrypto.getRandomValues(y),y}:"object"==typeof window&&(i.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var u=p(1348);if("function"!=typeof u.randomBytes)throw new Error("Not supported");i.prototype._rand=function(a){return u.randomBytes(a)}}catch(b){}},1899:(He,j,p)=>{var e=p(3502).Buffer;function i(P){e.isBuffer(P)||(P=e.from(P));for(var D=P.length/4|0,T=new Array(D),M=0;M<D;M++)T[M]=P.readUInt32BE(4*M);return T}function u(P){for(;0<P.length;P++)P[0]=0}function b(P,D,T,M,A){for(var le,q,ie,se,E=T[0],k=T[1],w=T[2],z=T[3],U=P[0]^D[0],W=P[1]^D[1],ne=P[2]^D[2],Q=P[3]^D[3],J=4,me=1;me<A;me++)le=E[U>>>24]^k[W>>>16&255]^w[ne>>>8&255]^z[255&Q]^D[J++],q=E[W>>>24]^k[ne>>>16&255]^w[Q>>>8&255]^z[255&U]^D[J++],ie=E[ne>>>24]^k[Q>>>16&255]^w[U>>>8&255]^z[255&W]^D[J++],se=E[Q>>>24]^k[U>>>16&255]^w[W>>>8&255]^z[255&ne]^D[J++],U=le,W=q,ne=ie,Q=se;return le=(M[U>>>24]<<24|M[W>>>16&255]<<16|M[ne>>>8&255]<<8|M[255&Q])^D[J++],q=(M[W>>>24]<<24|M[ne>>>16&255]<<16|M[Q>>>8&255]<<8|M[255&U])^D[J++],ie=(M[ne>>>24]<<24|M[Q>>>16&255]<<16|M[U>>>8&255]<<8|M[255&W])^D[J++],se=(M[Q>>>24]<<24|M[U>>>16&255]<<16|M[W>>>8&255]<<8|M[255&ne])^D[J++],[le>>>=0,q>>>=0,ie>>>=0,se>>>=0]}var a=[0,1,2,4,8,16,32,64,128,27,54],y=function(){for(var P=new Array(256),D=0;D<256;D++)P[D]=D<128?D<<1:D<<1^283;for(var T=[],M=[],A=[[],[],[],[]],E=[[],[],[],[]],k=0,w=0,z=0;z<256;++z){var U=w^w<<1^w<<2^w<<3^w<<4;T[k]=U=U>>>8^255&U^99,M[U]=k;var W=P[k],ne=P[W],Q=P[ne],le=257*P[U]^16843008*U;A[0][k]=le<<24|le>>>8,A[1][k]=le<<16|le>>>16,A[2][k]=le<<8|le>>>24,A[3][k]=le,E[0][U]=(le=16843009*Q^65537*ne^257*W^16843008*k)<<24|le>>>8,E[1][U]=le<<16|le>>>16,E[2][U]=le<<8|le>>>24,E[3][U]=le,0===k?k=w=1:(k=W^P[P[P[Q^W]]],w^=P[P[w]])}return{SBOX:T,INV_SBOX:M,SUB_MIX:A,INV_SUB_MIX:E}}();function d(P){this._key=i(P),this._reset()}d.blockSize=16,d.keySize=32,d.prototype.blockSize=d.blockSize,d.prototype.keySize=d.keySize,d.prototype._reset=function(){for(var P=this._key,D=P.length,T=D+6,M=4*(T+1),A=[],E=0;E<D;E++)A[E]=P[E];for(E=D;E<M;E++){var k=A[E-1];E%D==0?(k=y.SBOX[(k=k<<8|k>>>24)>>>24]<<24|y.SBOX[k>>>16&255]<<16|y.SBOX[k>>>8&255]<<8|y.SBOX[255&k],k^=a[E/D|0]<<24):D>6&&E%D==4&&(k=y.SBOX[k>>>24]<<24|y.SBOX[k>>>16&255]<<16|y.SBOX[k>>>8&255]<<8|y.SBOX[255&k]),A[E]=A[E-D]^k}for(var w=[],z=0;z<M;z++){var U=M-z,W=A[U-(z%4?0:4)];w[z]=z<4||U<=4?W:y.INV_SUB_MIX[0][y.SBOX[W>>>24]]^y.INV_SUB_MIX[1][y.SBOX[W>>>16&255]]^y.INV_SUB_MIX[2][y.SBOX[W>>>8&255]]^y.INV_SUB_MIX[3][y.SBOX[255&W]]}this._nRounds=T,this._keySchedule=A,this._invKeySchedule=w},d.prototype.encryptBlockRaw=function(P){return b(P=i(P),this._keySchedule,y.SUB_MIX,y.SBOX,this._nRounds)},d.prototype.encryptBlock=function(P){var D=this.encryptBlockRaw(P),T=e.allocUnsafe(16);return T.writeUInt32BE(D[0],0),T.writeUInt32BE(D[1],4),T.writeUInt32BE(D[2],8),T.writeUInt32BE(D[3],12),T},d.prototype.decryptBlock=function(P){var D=(P=i(P))[1];P[1]=P[3],P[3]=D;var T=b(P,this._invKeySchedule,y.INV_SUB_MIX,y.INV_SBOX,this._nRounds),M=e.allocUnsafe(16);return M.writeUInt32BE(T[0],0),M.writeUInt32BE(T[3],4),M.writeUInt32BE(T[2],8),M.writeUInt32BE(T[1],12),M},d.prototype.scrub=function(){u(this._keySchedule),u(this._invKeySchedule),u(this._key)},He.exports.AES=d},9382:(He,j,p)=>{var e=p(1899),i=p(3502).Buffer,u=p(1052),b=p(3894),a=p(8857),y=p(8789),d=p(7968);function T(M,A,E,k){u.call(this);var w=i.alloc(4,0);this._cipher=new e.AES(A);var z=this._cipher.encryptBlock(w);this._ghash=new a(z),E=function D(M,A,E){if(12===A.length)return M._finID=i.concat([A,i.from([0,0,0,1])]),i.concat([A,i.from([0,0,0,2])]);var k=new a(E),w=A.length,z=w%16;k.update(A),z&&k.update(i.alloc(z=16-z,0)),k.update(i.alloc(8,0));var U=8*w,W=i.alloc(8);W.writeUIntBE(U,0,8),k.update(W),M._finID=k.state;var ne=i.from(M._finID);return d(ne),ne}(this,E,z),this._prev=i.from(E),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=k,this._alen=0,this._len=0,this._mode=M,this._authTag=null,this._called=!1}b(T,u),T.prototype._update=function(M){if(!this._called&&this._alen){var A=16-this._alen%16;A<16&&(A=i.alloc(A,0),this._ghash.update(A))}this._called=!0;var E=this._mode.encrypt(this,M);return this._ghash.update(this._decrypt?M:E),this._len+=M.length,E},T.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var M=y(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function P(M,A){var E=0;M.length!==A.length&&E++;for(var k=Math.min(M.length,A.length),w=0;w<k;++w)E+=M[w]^A[w];return E}(M,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=M,this._cipher.scrub()},T.prototype.getAuthTag=function(){if(this._decrypt||!i.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},T.prototype.setAuthTag=function(A){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=A},T.prototype.setAAD=function(A){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(A),this._alen+=A.length},He.exports=T},4330:(He,j,p)=>{var e=p(6900),i=p(856),u=p(4946);j.createCipher=j.Cipher=e.createCipher,j.createCipheriv=j.Cipheriv=e.createCipheriv,j.createDecipher=j.Decipher=i.createDecipher,j.createDecipheriv=j.Decipheriv=i.createDecipheriv,j.listCiphers=j.getCiphers=function b(){return Object.keys(u)}},856:(He,j,p)=>{var e=p(9382),i=p(3502).Buffer,u=p(9171),b=p(8441),a=p(1052),y=p(1899),d=p(347);function D(k,w,z){a.call(this),this._cache=new T,this._last=void 0,this._cipher=new y.AES(w),this._prev=i.from(z),this._mode=k,this._autopadding=!0}function T(){this.cache=i.allocUnsafe(0)}function A(k,w,z){var U=u[k.toLowerCase()];if(!U)throw new TypeError("invalid suite type");if("string"==typeof z&&(z=i.from(z)),"GCM"!==U.mode&&z.length!==U.iv)throw new TypeError("invalid iv length "+z.length);if("string"==typeof w&&(w=i.from(w)),w.length!==U.key/8)throw new TypeError("invalid key length "+w.length);return"stream"===U.type?new b(U.module,w,z,!0):"auth"===U.type?new e(U.module,w,z,!0):new D(U.module,w,z)}p(3894)(D,a),D.prototype._update=function(k){this._cache.add(k);for(var w,z,U=[];w=this._cache.get(this._autopadding);)z=this._mode.decrypt(this,w),U.push(z);return i.concat(U)},D.prototype._final=function(){var k=this._cache.flush();if(this._autopadding)return function M(k){var w=k[15];if(w<1||w>16)throw new Error("unable to decrypt data");for(var z=-1;++z<w;)if(k[z+(16-w)]!==w)throw new Error("unable to decrypt data");if(16!==w)return k.slice(0,16-w)}(this._mode.decrypt(this,k));if(k)throw new Error("data not multiple of block length")},D.prototype.setAutoPadding=function(k){return this._autopadding=!!k,this},T.prototype.add=function(k){this.cache=i.concat([this.cache,k])},T.prototype.get=function(k){var w;if(k){if(this.cache.length>16)return w=this.cache.slice(0,16),this.cache=this.cache.slice(16),w}else if(this.cache.length>=16)return w=this.cache.slice(0,16),this.cache=this.cache.slice(16),w;return null},T.prototype.flush=function(){if(this.cache.length)return this.cache},j.createDecipher=function E(k,w){var z=u[k.toLowerCase()];if(!z)throw new TypeError("invalid suite type");var U=d(w,!1,z.key,z.iv);return A(k,U.key,U.iv)},j.createDecipheriv=A},6900:(He,j,p)=>{var e=p(9171),i=p(9382),u=p(3502).Buffer,b=p(8441),a=p(1052),y=p(1899),d=p(347);function D(k,w,z){a.call(this),this._cache=new M,this._cipher=new y.AES(w),this._prev=u.from(z),this._mode=k,this._autopadding=!0}p(3894)(D,a),D.prototype._update=function(k){this._cache.add(k);for(var w,z,U=[];w=this._cache.get();)z=this._mode.encrypt(this,w),U.push(z);return u.concat(U)};var T=u.alloc(16,16);function M(){this.cache=u.allocUnsafe(0)}function A(k,w,z){var U=e[k.toLowerCase()];if(!U)throw new TypeError("invalid suite type");if("string"==typeof w&&(w=u.from(w)),w.length!==U.key/8)throw new TypeError("invalid key length "+w.length);if("string"==typeof z&&(z=u.from(z)),"GCM"!==U.mode&&z.length!==U.iv)throw new TypeError("invalid iv length "+z.length);return"stream"===U.type?new b(U.module,w,z):"auth"===U.type?new i(U.module,w,z):new D(U.module,w,z)}D.prototype._final=function(){var k=this._cache.flush();if(this._autopadding)return k=this._mode.encrypt(this,k),this._cipher.scrub(),k;if(!k.equals(T))throw this._cipher.scrub(),new Error("data not multiple of block length")},D.prototype.setAutoPadding=function(k){return this._autopadding=!!k,this},M.prototype.add=function(k){this.cache=u.concat([this.cache,k])},M.prototype.get=function(){if(this.cache.length>15){var k=this.cache.slice(0,16);return this.cache=this.cache.slice(16),k}return null},M.prototype.flush=function(){for(var k=16-this.cache.length,w=u.allocUnsafe(k),z=-1;++z<k;)w.writeUInt8(k,z);return u.concat([this.cache,w])},j.createCipheriv=A,j.createCipher=function E(k,w){var z=e[k.toLowerCase()];if(!z)throw new TypeError("invalid suite type");var U=d(w,!1,z.key,z.iv);return A(k,U.key,U.iv)}},8857:(He,j,p)=>{var e=p(3502).Buffer,i=e.alloc(16,0);function b(y){var d=e.allocUnsafe(16);return d.writeUInt32BE(y[0]>>>0,0),d.writeUInt32BE(y[1]>>>0,4),d.writeUInt32BE(y[2]>>>0,8),d.writeUInt32BE(y[3]>>>0,12),d}function a(y){this.h=y,this.state=e.alloc(16,0),this.cache=e.allocUnsafe(0)}a.prototype.ghash=function(y){for(var d=-1;++d<y.length;)this.state[d]^=y[d];this._multiply()},a.prototype._multiply=function(){for(var P,T,y=function u(y){return[y.readUInt32BE(0),y.readUInt32BE(4),y.readUInt32BE(8),y.readUInt32BE(12)]}(this.h),d=[0,0,0,0],M=-1;++M<128;){for(0!=(this.state[~~(M/8)]&1<<7-M%8)&&(d[0]^=y[0],d[1]^=y[1],d[2]^=y[2],d[3]^=y[3]),T=0!=(1&y[3]),P=3;P>0;P--)y[P]=y[P]>>>1|(1&y[P-1])<<31;y[0]=y[0]>>>1,T&&(y[0]=y[0]^225<<24)}this.state=b(d)},a.prototype.update=function(y){this.cache=e.concat([this.cache,y]);for(var d;this.cache.length>=16;)d=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(d)},a.prototype.final=function(y,d){return this.cache.length&&this.ghash(e.concat([this.cache,i],16)),this.ghash(b([0,y,0,d])),this.state},He.exports=a},7968:He=>{He.exports=function j(p){for(var i,e=p.length;e--;){if(255!==(i=p.readUInt8(e))){i++,p.writeUInt8(i,e);break}p.writeUInt8(0,e)}}},4903:(He,j,p)=>{var e=p(8789);j.encrypt=function(i,u){var b=e(u,i._prev);return i._prev=i._cipher.encryptBlock(b),i._prev},j.decrypt=function(i,u){var b=i._prev;i._prev=u;var a=i._cipher.decryptBlock(u);return e(a,b)}},9885:(He,j,p)=>{var e=p(3502).Buffer,i=p(8789);function u(b,a,y){var d=a.length,P=i(a,b._cache);return b._cache=b._cache.slice(d),b._prev=e.concat([b._prev,y?a:P]),P}j.encrypt=function(b,a,y){for(var P,d=e.allocUnsafe(0);a.length;){if(0===b._cache.length&&(b._cache=b._cipher.encryptBlock(b._prev),b._prev=e.allocUnsafe(0)),!(b._cache.length<=a.length)){d=e.concat([d,u(b,a,y)]);break}d=e.concat([d,u(b,a.slice(0,P=b._cache.length),y)]),a=a.slice(P)}return d}},6531:(He,j,p)=>{var e=p(3502).Buffer;function i(b,a,y){for(var M,A,P=-1,T=0;++P<8;)T+=(128&(A=b._cipher.encryptBlock(b._prev)[0]^(M=a&1<<7-P?128:0)))>>P%8,b._prev=u(b._prev,y?M:A);return T}function u(b,a){var y=b.length,d=-1,P=e.allocUnsafe(b.length);for(b=e.concat([b,e.from([a])]);++d<y;)P[d]=b[d]<<1|b[d+1]>>7;return P}j.encrypt=function(b,a,y){for(var d=a.length,P=e.allocUnsafe(d),D=-1;++D<d;)P[D]=i(b,a[D],y);return P}},1641:(He,j,p)=>{var e=p(3502).Buffer;function i(u,b,a){var d=u._cipher.encryptBlock(u._prev)[0]^b;return u._prev=e.concat([u._prev.slice(1),e.from([a?b:d])]),d}j.encrypt=function(u,b,a){for(var y=b.length,d=e.allocUnsafe(y),P=-1;++P<y;)d[P]=i(u,b[P],a);return d}},1150:(He,j,p)=>{var e=p(8789),i=p(3502).Buffer,u=p(7968);function b(y){var d=y._cipher.encryptBlockRaw(y._prev);return u(y._prev),d}j.encrypt=function(y,d){var P=Math.ceil(d.length/16),D=y._cache.length;y._cache=i.concat([y._cache,i.allocUnsafe(16*P)]);for(var T=0;T<P;T++){var M=b(y),A=D+16*T;y._cache.writeUInt32BE(M[0],A+0),y._cache.writeUInt32BE(M[1],A+4),y._cache.writeUInt32BE(M[2],A+8),y._cache.writeUInt32BE(M[3],A+12)}var E=y._cache.slice(0,d.length);return y._cache=y._cache.slice(d.length),e(d,E)}},1704:(He,j)=>{j.encrypt=function(p,e){return p._cipher.encryptBlock(e)},j.decrypt=function(p,e){return p._cipher.decryptBlock(e)}},9171:(He,j,p)=>{var e={ECB:p(1704),CBC:p(4903),CFB:p(9885),CFB8:p(1641),CFB1:p(6531),OFB:p(6816),CTR:p(1150),GCM:p(1150)},i=p(4946);for(var u in i)i[u].module=e[i[u].mode];He.exports=i},6816:(He,j,p)=>{var e=p(8789);function i(u){return u._prev=u._cipher.encryptBlock(u._prev),u._prev}j.encrypt=function(u,b){for(;u._cache.length<b.length;)u._cache=Buffer.concat([u._cache,i(u)]);var a=u._cache.slice(0,b.length);return u._cache=u._cache.slice(b.length),e(b,a)}},8441:(He,j,p)=>{var e=p(1899),i=p(3502).Buffer,u=p(1052);function a(y,d,P,D){u.call(this),this._cipher=new e.AES(d),this._prev=i.from(P),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=D,this._mode=y}p(3894)(a,u),a.prototype._update=function(y){return this._mode.encrypt(this,y,this._decrypt)},a.prototype._final=function(){this._cipher.scrub()},He.exports=a},5255:(He,j,p)=>{var e=p(9004),i=p(4330),u=p(9171),b=p(1115),a=p(347);function P(M,A,E){if(M=M.toLowerCase(),u[M])return i.createCipheriv(M,A,E);if(b[M])return new e({key:A,iv:E,mode:M});throw new TypeError("invalid suite type")}function D(M,A,E){if(M=M.toLowerCase(),u[M])return i.createDecipheriv(M,A,E);if(b[M])return new e({key:A,iv:E,mode:M,decrypt:!0});throw new TypeError("invalid suite type")}j.createCipher=j.Cipher=function y(M,A){var E,k;if(M=M.toLowerCase(),u[M])E=u[M].key,k=u[M].iv;else{if(!b[M])throw new TypeError("invalid suite type");E=8*b[M].key,k=b[M].iv}var w=a(A,!1,E,k);return P(M,w.key,w.iv)},j.createCipheriv=j.Cipheriv=P,j.createDecipher=j.Decipher=function d(M,A){var E,k;if(M=M.toLowerCase(),u[M])E=u[M].key,k=u[M].iv;else{if(!b[M])throw new TypeError("invalid suite type");E=8*b[M].key,k=b[M].iv}var w=a(A,!1,E,k);return D(M,w.key,w.iv)},j.createDecipheriv=j.Decipheriv=D,j.listCiphers=j.getCiphers=function T(){return Object.keys(b).concat(i.getCiphers())}},9004:(He,j,p)=>{var e=p(1052),i=p(3684),u=p(3894),b=p(3502).Buffer,a={"des-ede3-cbc":i.CBC.instantiate(i.EDE),"des-ede3":i.EDE,"des-ede-cbc":i.CBC.instantiate(i.EDE),"des-ede":i.EDE,"des-cbc":i.CBC.instantiate(i.DES),"des-ecb":i.DES};function y(d){e.call(this);var T,P=d.mode.toLowerCase(),D=a[P];T=d.decrypt?"decrypt":"encrypt";var M=d.key;b.isBuffer(M)||(M=b.from(M)),("des-ede"===P||"des-ede-cbc"===P)&&(M=b.concat([M,M.slice(0,8)]));var A=d.iv;b.isBuffer(A)||(A=b.from(A)),this._des=D.create({key:M,iv:A,type:T})}a.des=a["des-cbc"],a.des3=a["des-ede3-cbc"],He.exports=y,u(y,e),y.prototype._update=function(d){return b.from(this._des.update(d))},y.prototype._final=function(){return b.from(this._des.final())}},1115:(He,j)=>{j["des-ecb"]={key:8,iv:0},j["des-cbc"]=j.des={key:8,iv:8},j["des-ede3-cbc"]=j.des3={key:24,iv:8},j["des-ede3"]={key:24,iv:0},j["des-ede-cbc"]={key:16,iv:8},j["des-ede"]={key:16,iv:0}},8466:(He,j,p)=>{var e=p(8538),i=p(3753);function b(y){var P,d=y.modulus.byteLength();do{P=new e(i(d))}while(P.cmp(y.modulus)>=0||!P.umod(y.prime1)||!P.umod(y.prime2));return P}function a(y,d){var P=function u(y){var d=b(y);return{blinder:d.toRed(e.mont(y.modulus)).redPow(new e(y.publicExponent)).fromRed(),unblinder:d.invm(y.modulus)}}(d),D=d.modulus.byteLength(),T=new e(y).mul(P.blinder).umod(d.modulus),M=T.toRed(e.mont(d.prime1)),A=T.toRed(e.mont(d.prime2)),E=d.coefficient,k=d.prime1,w=d.prime2,z=M.redPow(d.exponent1).fromRed(),U=A.redPow(d.exponent2).fromRed(),W=z.isub(U).imul(E).umod(k).imul(w);return U.iadd(W).imul(P.unblinder).umod(d.modulus).toArrayLike(Buffer,"be",D)}a.getr=b,He.exports=a},7793:(He,j,p)=>{He.exports=p(5207)},3923:(He,j,p)=>{var e=p(8446).Buffer,i=p(6386),u=p(5685),b=p(3894),a=p(9947),y=p(3946),d=p(5207);function P(A){u.Writable.call(this);var E=d[A];if(!E)throw new Error("Unknown message digest");this._hashType=E.hash,this._hash=i(E.hash),this._tag=E.id,this._signType=E.sign}function D(A){u.Writable.call(this);var E=d[A];if(!E)throw new Error("Unknown message digest");this._hash=i(E.hash),this._tag=E.id,this._signType=E.sign}function T(A){return new P(A)}function M(A){return new D(A)}Object.keys(d).forEach(function(A){d[A].id=e.from(d[A].id,"hex"),d[A.toLowerCase()]=d[A]}),b(P,u.Writable),P.prototype._write=function(E,k,w){this._hash.update(E),w()},P.prototype.update=function(E,k){return"string"==typeof E&&(E=e.from(E,k)),this._hash.update(E),this},P.prototype.sign=function(E,k){this.end();var w=this._hash.digest(),z=a(w,E,this._hashType,this._signType,this._tag);return k?z.toString(k):z},b(D,u.Writable),D.prototype._write=function(E,k,w){this._hash.update(E),w()},D.prototype.update=function(E,k){return"string"==typeof E&&(E=e.from(E,k)),this._hash.update(E),this},D.prototype.verify=function(E,k,w){"string"==typeof k&&(k=e.from(k,w)),this.end();var z=this._hash.digest();return y(k,z,E,this._signType,this._tag)},He.exports={Sign:T,Verify:M,createSign:T,createVerify:M}},9947:(He,j,p)=>{var e=p(8446).Buffer,i=p(4529),u=p(8466),b=p(7715).ec,a=p(8538),y=p(2772),d=p(1308);function A(U,W,ne,Q){if((U=e.from(U.toArray())).length<W.byteLength()){var le=e.alloc(W.byteLength()-U.length);U=e.concat([le,U])}var q=ne.length,ie=function k(U,W){U=(U=E(U,W)).mod(W);var ne=e.from(U.toArray());if(ne.length<W.byteLength()){var Q=e.alloc(W.byteLength()-ne.length);ne=e.concat([Q,ne])}return ne}(ne,W),se=e.alloc(q);se.fill(1);var J=e.alloc(q);return J=i(Q,J).update(se).update(e.from([0])).update(U).update(ie).digest(),se=i(Q,J).update(se).digest(),{k:J=i(Q,J).update(se).update(e.from([1])).update(U).update(ie).digest(),v:se=i(Q,J).update(se).digest()}}function E(U,W){var ne=new a(U),Q=(U.length<<3)-W.bitLength();return Q>0&&ne.ishrn(Q),ne}function w(U,W,ne){var Q,le;do{for(Q=e.alloc(0);8*Q.length<U.bitLength();)W.v=i(ne,W.k).update(W.v).digest(),Q=e.concat([Q,W.v]);le=E(Q,U),W.k=i(ne,W.k).update(W.v).update(e.from([0])).digest(),W.v=i(ne,W.k).update(W.v).digest()}while(-1!==le.cmp(U));return le}function z(U,W,ne,Q){return U.toRed(a.mont(ne)).redPow(W).fromRed().mod(Q)}He.exports=function P(U,W,ne,Q,le){var q=y(W);if(q.curve){if("ecdsa"!==Q&&"ecdsa/rsa"!==Q)throw new Error("wrong private key type");return function D(U,W){var ne=d[W.curve.join(".")];if(!ne)throw new Error("unknown curve "+W.curve.join("."));var q=new b(ne).keyFromPrivate(W.privateKey).sign(U);return e.from(q.toDER())}(U,q)}if("dsa"===q.type){if("dsa"!==Q)throw new Error("wrong private key type");return function T(U,W,ne){for(var J,Q=W.params.priv_key,le=W.params.p,q=W.params.q,ie=W.params.g,se=new a(0),me=E(U,q).mod(q),x=!1,t=A(Q,q,U,ne);!1===x;)se=z(ie,J=w(q,t,ne),le,q),0===(x=J.invm(q).imul(me.add(Q.mul(se))).mod(q)).cmpn(0)&&(x=!1,se=new a(0));return function M(U,W){U=U.toArray(),W=W.toArray(),128&U[0]&&(U=[0].concat(U)),128&W[0]&&(W=[0].concat(W));var Q=[48,U.length+W.length+4,2,U.length];return Q=Q.concat(U,[2,W.length],W),e.from(Q)}(se,x)}(U,q,ne)}if("rsa"!==Q&&"ecdsa/rsa"!==Q)throw new Error("wrong private key type");U=e.concat([le,U]);for(var ie=q.modulus.byteLength(),se=[0,1];U.length+se.length+1<ie;)se.push(255);se.push(0);for(var J=-1;++J<U.length;)se.push(U[J]);return u(se,q)},He.exports.getKey=A,He.exports.makeKey=w},3946:(He,j,p)=>{var e=p(8446).Buffer,i=p(8538),u=p(7715).ec,b=p(2772),a=p(1308);function D(T,M){if(T.cmpn(0)<=0)throw new Error("invalid sig");if(T.cmp(M)>=M)throw new Error("invalid sig")}He.exports=function y(T,M,A,E,k){var w=b(A);if("ec"===w.type){if("ecdsa"!==E&&"ecdsa/rsa"!==E)throw new Error("wrong public key type");return function d(T,M,A){var E=a[A.data.algorithm.curve.join(".")];if(!E)throw new Error("unknown curve "+A.data.algorithm.curve.join("."));return new u(E).verify(M,T,A.data.subjectPrivateKey.data)}(T,M,w)}if("dsa"===w.type){if("dsa"!==E)throw new Error("wrong public key type");return function P(T,M,A){var E=A.data.p,k=A.data.q,w=A.data.g,z=A.data.pub_key,U=b.signature.decode(T,"der"),W=U.s,ne=U.r;D(W,k),D(ne,k);var Q=i.mont(E),le=W.invm(k);return 0===w.toRed(Q).redPow(new i(M).mul(le).mod(k)).fromRed().mul(z.toRed(Q).redPow(ne.mul(le).mod(k)).fromRed()).mod(E).mod(k).cmp(ne)}(T,M,w)}if("rsa"!==E&&"ecdsa/rsa"!==E)throw new Error("wrong public key type");M=e.concat([k,M]);for(var z=w.modulus.byteLength(),U=[1],W=0;M.length+U.length+2<z;)U.push(255),W++;U.push(0);for(var ne=-1;++ne<M.length;)U.push(M[ne]);U=e.from(U);var Q=i.mont(w.modulus);T=(T=new i(T).toRed(Q)).redPow(new i(w.publicExponent)),T=e.from(T.fromRed().toArray());var le=W<8?1:0;for(z=Math.min(T.length,U.length),T.length!==U.length&&(le=1),ne=-1;++ne<z;)le|=T[ne]^U[ne];return 0===le}},8446:(He,j,p)=>{var e=p(3172),i=e.Buffer;function u(a,y){for(var d in a)y[d]=a[d]}function b(a,y,d){return i(a,y,d)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?He.exports=e:(u(e,j),j.Buffer=b),b.prototype=Object.create(i.prototype),u(i,b),b.from=function(a,y,d){if("number"==typeof a)throw new TypeError("Argument must not be a number");return i(a,y,d)},b.alloc=function(a,y,d){if("number"!=typeof a)throw new TypeError("Argument must be a number");var P=i(a);return void 0!==y?"string"==typeof d?P.fill(y,d):P.fill(y):P.fill(0),P},b.allocUnsafe=function(a){if("number"!=typeof a)throw new TypeError("Argument must be a number");return i(a)},b.allocUnsafeSlow=function(a){if("number"!=typeof a)throw new TypeError("Argument must be a number");return e.SlowBuffer(a)}},8789:He=>{He.exports=function(p,e){for(var i=Math.min(p.length,e.length),u=new Buffer(i),b=0;b<i;++b)u[b]=p[b]^e[b];return u}},3172:(He,j,p)=>{"use strict";var e=p(5343),i=p(8461),u="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;j.Buffer=d,j.SlowBuffer=function W(Ie){return+Ie!=Ie&&(Ie=0),d.alloc(+Ie)},j.INSPECT_MAX_BYTES=50;var b=2147483647;function y(Ie){if(Ie>b)throw new RangeError('The value "'+Ie+'" is invalid for option "size"');var Ae=new Uint8Array(Ie);return Object.setPrototypeOf(Ae,d.prototype),Ae}function d(Ie,Ae,ce){if("number"==typeof Ie){if("string"==typeof Ae)throw new TypeError('The "string" argument must be of type string. Received type number');return M(Ie)}return P(Ie,Ae,ce)}function P(Ie,Ae,ce){if("string"==typeof Ie)return function A(Ie,Ae){if(("string"!=typeof Ae||""===Ae)&&(Ae="utf8"),!d.isEncoding(Ae))throw new TypeError("Unknown encoding: "+Ae);var ce=0|ne(Ie,Ae),Te=y(ce),xe=Te.write(Ie,Ae);return xe!==ce&&(Te=Te.slice(0,xe)),Te}(Ie,Ae);if(ArrayBuffer.isView(Ie))return function k(Ie){if(Z(Ie,Uint8Array)){var Ae=new Uint8Array(Ie);return w(Ae.buffer,Ae.byteOffset,Ae.byteLength)}return E(Ie)}(Ie);if(null==Ie)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Ie);if(Z(Ie,ArrayBuffer)||Ie&&Z(Ie.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(Z(Ie,SharedArrayBuffer)||Ie&&Z(Ie.buffer,SharedArrayBuffer)))return w(Ie,Ae,ce);if("number"==typeof Ie)throw new TypeError('The "value" argument must not be of type number. Received type number');var Te=Ie.valueOf&&Ie.valueOf();if(null!=Te&&Te!==Ie)return d.from(Te,Ae,ce);var xe=function z(Ie){if(d.isBuffer(Ie)){var Ae=0|U(Ie.length),ce=y(Ae);return 0===ce.length||Ie.copy(ce,0,0,Ae),ce}return void 0!==Ie.length?"number"!=typeof Ie.length||Y(Ie.length)?y(0):E(Ie):"Buffer"===Ie.type&&Array.isArray(Ie.data)?E(Ie.data):void 0}(Ie);if(xe)return xe;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof Ie[Symbol.toPrimitive])return d.from(Ie[Symbol.toPrimitive]("string"),Ae,ce);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Ie)}function D(Ie){if("number"!=typeof Ie)throw new TypeError('"size" argument must be of type number');if(Ie<0)throw new RangeError('The value "'+Ie+'" is invalid for option "size"')}function M(Ie){return D(Ie),y(Ie<0?0:0|U(Ie))}function E(Ie){for(var Ae=Ie.length<0?0:0|U(Ie.length),ce=y(Ae),Te=0;Te<Ae;Te+=1)ce[Te]=255&Ie[Te];return ce}function w(Ie,Ae,ce){if(Ae<0||Ie.byteLength<Ae)throw new RangeError('"offset" is outside of buffer bounds');if(Ie.byteLength<Ae+(ce||0))throw new RangeError('"length" is outside of buffer bounds');var Te;return Te=void 0===Ae&&void 0===ce?new Uint8Array(Ie):void 0===ce?new Uint8Array(Ie,Ae):new Uint8Array(Ie,Ae,ce),Object.setPrototypeOf(Te,d.prototype),Te}function U(Ie){if(Ie>=b)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+b.toString(16)+" bytes");return 0|Ie}function ne(Ie,Ae){if(d.isBuffer(Ie))return Ie.length;if(ArrayBuffer.isView(Ie)||Z(Ie,ArrayBuffer))return Ie.byteLength;if("string"!=typeof Ie)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Ie);var ce=Ie.length,Te=arguments.length>2&&!0===arguments[2];if(!Te&&0===ce)return 0;for(var xe=!1;;)switch(Ae){case"ascii":case"latin1":case"binary":return ce;case"utf8":case"utf-8":return ke(Ie).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*ce;case"hex":return ce>>>1;case"base64":return ze(Ie).length;default:if(xe)return Te?-1:ke(Ie).length;Ae=(""+Ae).toLowerCase(),xe=!0}}function Q(Ie,Ae,ce){var Te=!1;if((void 0===Ae||Ae<0)&&(Ae=0),Ae>this.length||((void 0===ce||ce>this.length)&&(ce=this.length),ce<=0)||(ce>>>=0)<=(Ae>>>=0))return"";for(Ie||(Ie="utf8");;)switch(Ie){case"hex":return _(this,Ae,ce);case"utf8":case"utf-8":return h(this,Ae,ce);case"ascii":return S(this,Ae,ce);case"latin1":case"binary":return I(this,Ae,ce);case"base64":return r(this,Ae,ce);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return n(this,Ae,ce);default:if(Te)throw new TypeError("Unknown encoding: "+Ie);Ie=(Ie+"").toLowerCase(),Te=!0}}function le(Ie,Ae,ce){var Te=Ie[Ae];Ie[Ae]=Ie[ce],Ie[ce]=Te}function q(Ie,Ae,ce,Te,xe){if(0===Ie.length)return-1;if("string"==typeof ce?(Te=ce,ce=0):ce>2147483647?ce=2147483647:ce<-2147483648&&(ce=-2147483648),Y(ce=+ce)&&(ce=xe?0:Ie.length-1),ce<0&&(ce=Ie.length+ce),ce>=Ie.length){if(xe)return-1;ce=Ie.length-1}else if(ce<0){if(!xe)return-1;ce=0}if("string"==typeof Ae&&(Ae=d.from(Ae,Te)),d.isBuffer(Ae))return 0===Ae.length?-1:ie(Ie,Ae,ce,Te,xe);if("number"==typeof Ae)return Ae&=255,"function"==typeof Uint8Array.prototype.indexOf?xe?Uint8Array.prototype.indexOf.call(Ie,Ae,ce):Uint8Array.prototype.lastIndexOf.call(Ie,Ae,ce):ie(Ie,[Ae],ce,Te,xe);throw new TypeError("val must be string, number or Buffer")}function ie(Ie,Ae,ce,Te,xe){var Le,G=1,ee=Ie.length,ue=Ae.length;if(void 0!==Te&&("ucs2"===(Te=String(Te).toLowerCase())||"ucs-2"===Te||"utf16le"===Te||"utf-16le"===Te)){if(Ie.length<2||Ae.length<2)return-1;G=2,ee/=2,ue/=2,ce/=2}function ve(hi,jt){return 1===G?hi[jt]:hi.readUInt16BE(jt*G)}if(xe){var lt=-1;for(Le=ce;Le<ee;Le++)if(ve(Ie,Le)===ve(Ae,-1===lt?0:Le-lt)){if(-1===lt&&(lt=Le),Le-lt+1===ue)return lt*G}else-1!==lt&&(Le-=Le-lt),lt=-1}else for(ce+ue>ee&&(ce=ee-ue),Le=ce;Le>=0;Le--){for(var ht=!0,Tt=0;Tt<ue;Tt++)if(ve(Ie,Le+Tt)!==ve(Ae,Tt)){ht=!1;break}if(ht)return Le}return-1}function se(Ie,Ae,ce,Te){ce=Number(ce)||0;var xe=Ie.length-ce;Te?(Te=Number(Te))>xe&&(Te=xe):Te=xe;var G=Ae.length;Te>G/2&&(Te=G/2);for(var ee=0;ee<Te;++ee){var ue=parseInt(Ae.substr(2*ee,2),16);if(Y(ue))return ee;Ie[ce+ee]=ue}return ee}function J(Ie,Ae,ce,Te){return be(ke(Ae,Ie.length-ce),Ie,ce,Te)}function me(Ie,Ae,ce,Te){return be(function Ee(Ie){for(var Ae=[],ce=0;ce<Ie.length;++ce)Ae.push(255&Ie.charCodeAt(ce));return Ae}(Ae),Ie,ce,Te)}function x(Ie,Ae,ce,Te){return be(ze(Ae),Ie,ce,Te)}function t(Ie,Ae,ce,Te){return be(function te(Ie,Ae){for(var ce,Te,G=[],ee=0;ee<Ie.length&&!((Ae-=2)<0);++ee)Te=(ce=Ie.charCodeAt(ee))>>8,G.push(ce%256),G.push(Te);return G}(Ae,Ie.length-ce),Ie,ce,Te)}function r(Ie,Ae,ce){return e.fromByteArray(0===Ae&&ce===Ie.length?Ie:Ie.slice(Ae,ce))}function h(Ie,Ae,ce){ce=Math.min(Ie.length,ce);for(var Te=[],xe=Ae;xe<ce;){var ve,Le,lt,ht,G=Ie[xe],ee=null,ue=G>239?4:G>223?3:G>191?2:1;if(xe+ue<=ce)switch(ue){case 1:G<128&&(ee=G);break;case 2:128==(192&(ve=Ie[xe+1]))&&(ht=(31&G)<<6|63&ve)>127&&(ee=ht);break;case 3:Le=Ie[xe+2],128==(192&(ve=Ie[xe+1]))&&128==(192&Le)&&(ht=(15&G)<<12|(63&ve)<<6|63&Le)>2047&&(ht<55296||ht>57343)&&(ee=ht);break;case 4:Le=Ie[xe+2],lt=Ie[xe+3],128==(192&(ve=Ie[xe+1]))&&128==(192&Le)&&128==(192&lt)&&(ht=(15&G)<<18|(63&ve)<<12|(63&Le)<<6|63&lt)>65535&&ht<1114112&&(ee=ht)}null===ee?(ee=65533,ue=1):ee>65535&&(Te.push((ee-=65536)>>>10&1023|55296),ee=56320|1023&ee),Te.push(ee),xe+=ue}return function C(Ie){var Ae=Ie.length;if(Ae<=c)return String.fromCharCode.apply(String,Ie);for(var ce="",Te=0;Te<Ae;)ce+=String.fromCharCode.apply(String,Ie.slice(Te,Te+=c));return ce}(Te)}j.kMaxLength=b,!(d.TYPED_ARRAY_SUPPORT=function a(){try{var Ie=new Uint8Array(1),Ae={foo:function(){return 42}};return Object.setPrototypeOf(Ae,Uint8Array.prototype),Object.setPrototypeOf(Ie,Ae),42===Ie.foo()}catch(ce){return!1}}())&&"undefined"!=typeof console&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(d.prototype,"parent",{enumerable:!0,get:function(){if(d.isBuffer(this))return this.buffer}}),Object.defineProperty(d.prototype,"offset",{enumerable:!0,get:function(){if(d.isBuffer(this))return this.byteOffset}}),d.poolSize=8192,d.from=function(Ie,Ae,ce){return P(Ie,Ae,ce)},Object.setPrototypeOf(d.prototype,Uint8Array.prototype),Object.setPrototypeOf(d,Uint8Array),d.alloc=function(Ie,Ae,ce){return function T(Ie,Ae,ce){return D(Ie),Ie<=0?y(Ie):void 0!==Ae?"string"==typeof ce?y(Ie).fill(Ae,ce):y(Ie).fill(Ae):y(Ie)}(Ie,Ae,ce)},d.allocUnsafe=function(Ie){return M(Ie)},d.allocUnsafeSlow=function(Ie){return M(Ie)},d.isBuffer=function(Ae){return null!=Ae&&!0===Ae._isBuffer&&Ae!==d.prototype},d.compare=function(Ae,ce){if(Z(Ae,Uint8Array)&&(Ae=d.from(Ae,Ae.offset,Ae.byteLength)),Z(ce,Uint8Array)&&(ce=d.from(ce,ce.offset,ce.byteLength)),!d.isBuffer(Ae)||!d.isBuffer(ce))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Ae===ce)return 0;for(var Te=Ae.length,xe=ce.length,G=0,ee=Math.min(Te,xe);G<ee;++G)if(Ae[G]!==ce[G]){Te=Ae[G],xe=ce[G];break}return Te<xe?-1:xe<Te?1:0},d.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}},d.concat=function(Ae,ce){if(!Array.isArray(Ae))throw new TypeError('"list" argument must be an Array of Buffers');if(0===Ae.length)return d.alloc(0);var Te;if(void 0===ce)for(ce=0,Te=0;Te<Ae.length;++Te)ce+=Ae[Te].length;var xe=d.allocUnsafe(ce),G=0;for(Te=0;Te<Ae.length;++Te){var ee=Ae[Te];if(Z(ee,Uint8Array))G+ee.length>xe.length?d.from(ee).copy(xe,G):Uint8Array.prototype.set.call(xe,ee,G);else{if(!d.isBuffer(ee))throw new TypeError('"list" argument must be an Array of Buffers');ee.copy(xe,G)}G+=ee.length}return xe},d.byteLength=ne,d.prototype._isBuffer=!0,d.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 ce=0;ce<Ae;ce+=2)le(this,ce,ce+1);return this},d.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 ce=0;ce<Ae;ce+=4)le(this,ce,ce+3),le(this,ce+1,ce+2);return this},d.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 ce=0;ce<Ae;ce+=8)le(this,ce,ce+7),le(this,ce+1,ce+6),le(this,ce+2,ce+5),le(this,ce+3,ce+4);return this},d.prototype.toLocaleString=d.prototype.toString=function(){var Ae=this.length;return 0===Ae?"":0===arguments.length?h(this,0,Ae):Q.apply(this,arguments)},d.prototype.equals=function(Ae){if(!d.isBuffer(Ae))throw new TypeError("Argument must be a Buffer");return this===Ae||0===d.compare(this,Ae)},d.prototype.inspect=function(){var Ae="",ce=j.INSPECT_MAX_BYTES;return Ae=this.toString("hex",0,ce).replace(/(.{2})/g,"$1 ").trim(),this.length>ce&&(Ae+=" ... "),"<Buffer "+Ae+">"},u&&(d.prototype[u]=d.prototype.inspect),d.prototype.compare=function(Ae,ce,Te,xe,G){if(Z(Ae,Uint8Array)&&(Ae=d.from(Ae,Ae.offset,Ae.byteLength)),!d.isBuffer(Ae))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Ae);if(void 0===ce&&(ce=0),void 0===Te&&(Te=Ae?Ae.length:0),void 0===xe&&(xe=0),void 0===G&&(G=this.length),ce<0||Te>Ae.length||xe<0||G>this.length)throw new RangeError("out of range index");if(xe>=G&&ce>=Te)return 0;if(xe>=G)return-1;if(ce>=Te)return 1;if(this===Ae)return 0;for(var ee=(G>>>=0)-(xe>>>=0),ue=(Te>>>=0)-(ce>>>=0),ve=Math.min(ee,ue),Le=this.slice(xe,G),lt=Ae.slice(ce,Te),ht=0;ht<ve;++ht)if(Le[ht]!==lt[ht]){ee=Le[ht],ue=lt[ht];break}return ee<ue?-1:ue<ee?1:0},d.prototype.includes=function(Ae,ce,Te){return-1!==this.indexOf(Ae,ce,Te)},d.prototype.indexOf=function(Ae,ce,Te){return q(this,Ae,ce,Te,!0)},d.prototype.lastIndexOf=function(Ae,ce,Te){return q(this,Ae,ce,Te,!1)},d.prototype.write=function(Ae,ce,Te,xe){if(void 0===ce)xe="utf8",Te=this.length,ce=0;else if(void 0===Te&&"string"==typeof ce)xe=ce,Te=this.length,ce=0;else{if(!isFinite(ce))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");ce>>>=0,isFinite(Te)?(Te>>>=0,void 0===xe&&(xe="utf8")):(xe=Te,Te=void 0)}var G=this.length-ce;if((void 0===Te||Te>G)&&(Te=G),Ae.length>0&&(Te<0||ce<0)||ce>this.length)throw new RangeError("Attempt to write outside buffer bounds");xe||(xe="utf8");for(var ee=!1;;)switch(xe){case"hex":return se(this,Ae,ce,Te);case"utf8":case"utf-8":return J(this,Ae,ce,Te);case"ascii":case"latin1":case"binary":return me(this,Ae,ce,Te);case"base64":return x(this,Ae,ce,Te);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t(this,Ae,ce,Te);default:if(ee)throw new TypeError("Unknown encoding: "+xe);xe=(""+xe).toLowerCase(),ee=!0}},d.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var c=4096;function S(Ie,Ae,ce){var Te="";ce=Math.min(Ie.length,ce);for(var xe=Ae;xe<ce;++xe)Te+=String.fromCharCode(127&Ie[xe]);return Te}function I(Ie,Ae,ce){var Te="";ce=Math.min(Ie.length,ce);for(var xe=Ae;xe<ce;++xe)Te+=String.fromCharCode(Ie[xe]);return Te}function _(Ie,Ae,ce){var Te=Ie.length;(!Ae||Ae<0)&&(Ae=0),(!ce||ce<0||ce>Te)&&(ce=Te);for(var xe="",G=Ae;G<ce;++G)xe+=ot[Ie[G]];return xe}function n(Ie,Ae,ce){for(var Te=Ie.slice(Ae,ce),xe="",G=0;G<Te.length-1;G+=2)xe+=String.fromCharCode(Te[G]+256*Te[G+1]);return xe}function g(Ie,Ae,ce){if(Ie%1!=0||Ie<0)throw new RangeError("offset is not uint");if(Ie+Ae>ce)throw new RangeError("Trying to access beyond buffer length")}function V(Ie,Ae,ce,Te,xe,G){if(!d.isBuffer(Ie))throw new TypeError('"buffer" argument must be a Buffer instance');if(Ae>xe||Ae<G)throw new RangeError('"value" argument is out of bounds');if(ce+Te>Ie.length)throw new RangeError("Index out of range")}function R(Ie,Ae,ce,Te,xe,G){if(ce+Te>Ie.length)throw new RangeError("Index out of range");if(ce<0)throw new RangeError("Index out of range")}function H(Ie,Ae,ce,Te,xe){return Ae=+Ae,ce>>>=0,xe||R(Ie,0,ce,4),i.write(Ie,Ae,ce,Te,23,4),ce+4}function $(Ie,Ae,ce,Te,xe){return Ae=+Ae,ce>>>=0,xe||R(Ie,0,ce,8),i.write(Ie,Ae,ce,Te,52,8),ce+8}d.prototype.slice=function(Ae,ce){var Te=this.length;(Ae=~~Ae)<0?(Ae+=Te)<0&&(Ae=0):Ae>Te&&(Ae=Te),(ce=void 0===ce?Te:~~ce)<0?(ce+=Te)<0&&(ce=0):ce>Te&&(ce=Te),ce<Ae&&(ce=Ae);var xe=this.subarray(Ae,ce);return Object.setPrototypeOf(xe,d.prototype),xe},d.prototype.readUintLE=d.prototype.readUIntLE=function(Ae,ce,Te){Ae>>>=0,ce>>>=0,Te||g(Ae,ce,this.length);for(var xe=this[Ae],G=1,ee=0;++ee<ce&&(G*=256);)xe+=this[Ae+ee]*G;return xe},d.prototype.readUintBE=d.prototype.readUIntBE=function(Ae,ce,Te){Ae>>>=0,ce>>>=0,Te||g(Ae,ce,this.length);for(var xe=this[Ae+--ce],G=1;ce>0&&(G*=256);)xe+=this[Ae+--ce]*G;return xe},d.prototype.readUint8=d.prototype.readUInt8=function(Ae,ce){return Ae>>>=0,ce||g(Ae,1,this.length),this[Ae]},d.prototype.readUint16LE=d.prototype.readUInt16LE=function(Ae,ce){return Ae>>>=0,ce||g(Ae,2,this.length),this[Ae]|this[Ae+1]<<8},d.prototype.readUint16BE=d.prototype.readUInt16BE=function(Ae,ce){return Ae>>>=0,ce||g(Ae,2,this.length),this[Ae]<<8|this[Ae+1]},d.prototype.readUint32LE=d.prototype.readUInt32LE=function(Ae,ce){return Ae>>>=0,ce||g(Ae,4,this.length),(this[Ae]|this[Ae+1]<<8|this[Ae+2]<<16)+16777216*this[Ae+3]},d.prototype.readUint32BE=d.prototype.readUInt32BE=function(Ae,ce){return Ae>>>=0,ce||g(Ae,4,this.length),16777216*this[Ae]+(this[Ae+1]<<16|this[Ae+2]<<8|this[Ae+3])},d.prototype.readIntLE=function(Ae,ce,Te){Ae>>>=0,ce>>>=0,Te||g(Ae,ce,this.length);for(var xe=this[Ae],G=1,ee=0;++ee<ce&&(G*=256);)xe+=this[Ae+ee]*G;return xe>=(G*=128)&&(xe-=Math.pow(2,8*ce)),xe},d.prototype.readIntBE=function(Ae,ce,Te){Ae>>>=0,ce>>>=0,Te||g(Ae,ce,this.length);for(var xe=ce,G=1,ee=this[Ae+--xe];xe>0&&(G*=256);)ee+=this[Ae+--xe]*G;return ee>=(G*=128)&&(ee-=Math.pow(2,8*ce)),ee},d.prototype.readInt8=function(Ae,ce){return Ae>>>=0,ce||g(Ae,1,this.length),128&this[Ae]?-1*(255-this[Ae]+1):this[Ae]},d.prototype.readInt16LE=function(Ae,ce){Ae>>>=0,ce||g(Ae,2,this.length);var Te=this[Ae]|this[Ae+1]<<8;return 32768&Te?4294901760|Te:Te},d.prototype.readInt16BE=function(Ae,ce){Ae>>>=0,ce||g(Ae,2,this.length);var Te=this[Ae+1]|this[Ae]<<8;return 32768&Te?4294901760|Te:Te},d.prototype.readInt32LE=function(Ae,ce){return Ae>>>=0,ce||g(Ae,4,this.length),this[Ae]|this[Ae+1]<<8|this[Ae+2]<<16|this[Ae+3]<<24},d.prototype.readInt32BE=function(Ae,ce){return Ae>>>=0,ce||g(Ae,4,this.length),this[Ae]<<24|this[Ae+1]<<16|this[Ae+2]<<8|this[Ae+3]},d.prototype.readFloatLE=function(Ae,ce){return Ae>>>=0,ce||g(Ae,4,this.length),i.read(this,Ae,!0,23,4)},d.prototype.readFloatBE=function(Ae,ce){return Ae>>>=0,ce||g(Ae,4,this.length),i.read(this,Ae,!1,23,4)},d.prototype.readDoubleLE=function(Ae,ce){return Ae>>>=0,ce||g(Ae,8,this.length),i.read(this,Ae,!0,52,8)},d.prototype.readDoubleBE=function(Ae,ce){return Ae>>>=0,ce||g(Ae,8,this.length),i.read(this,Ae,!1,52,8)},d.prototype.writeUintLE=d.prototype.writeUIntLE=function(Ae,ce,Te,xe){Ae=+Ae,ce>>>=0,Te>>>=0,xe||V(this,Ae,ce,Te,Math.pow(2,8*Te)-1,0);var ee=1,ue=0;for(this[ce]=255&Ae;++ue<Te&&(ee*=256);)this[ce+ue]=Ae/ee&255;return ce+Te},d.prototype.writeUintBE=d.prototype.writeUIntBE=function(Ae,ce,Te,xe){Ae=+Ae,ce>>>=0,Te>>>=0,xe||V(this,Ae,ce,Te,Math.pow(2,8*Te)-1,0);var ee=Te-1,ue=1;for(this[ce+ee]=255&Ae;--ee>=0&&(ue*=256);)this[ce+ee]=Ae/ue&255;return ce+Te},d.prototype.writeUint8=d.prototype.writeUInt8=function(Ae,ce,Te){return Ae=+Ae,ce>>>=0,Te||V(this,Ae,ce,1,255,0),this[ce]=255&Ae,ce+1},d.prototype.writeUint16LE=d.prototype.writeUInt16LE=function(Ae,ce,Te){return Ae=+Ae,ce>>>=0,Te||V(this,Ae,ce,2,65535,0),this[ce]=255&Ae,this[ce+1]=Ae>>>8,ce+2},d.prototype.writeUint16BE=d.prototype.writeUInt16BE=function(Ae,ce,Te){return Ae=+Ae,ce>>>=0,Te||V(this,Ae,ce,2,65535,0),this[ce]=Ae>>>8,this[ce+1]=255&Ae,ce+2},d.prototype.writeUint32LE=d.prototype.writeUInt32LE=function(Ae,ce,Te){return Ae=+Ae,ce>>>=0,Te||V(this,Ae,ce,4,4294967295,0),this[ce+3]=Ae>>>24,this[ce+2]=Ae>>>16,this[ce+1]=Ae>>>8,this[ce]=255&Ae,ce+4},d.prototype.writeUint32BE=d.prototype.writeUInt32BE=function(Ae,ce,Te){return Ae=+Ae,ce>>>=0,Te||V(this,Ae,ce,4,4294967295,0),this[ce]=Ae>>>24,this[ce+1]=Ae>>>16,this[ce+2]=Ae>>>8,this[ce+3]=255&Ae,ce+4},d.prototype.writeIntLE=function(Ae,ce,Te,xe){if(Ae=+Ae,ce>>>=0,!xe){var G=Math.pow(2,8*Te-1);V(this,Ae,ce,Te,G-1,-G)}var ee=0,ue=1,ve=0;for(this[ce]=255&Ae;++ee<Te&&(ue*=256);)Ae<0&&0===ve&&0!==this[ce+ee-1]&&(ve=1),this[ce+ee]=(Ae/ue>>0)-ve&255;return ce+Te},d.prototype.writeIntBE=function(Ae,ce,Te,xe){if(Ae=+Ae,ce>>>=0,!xe){var G=Math.pow(2,8*Te-1);V(this,Ae,ce,Te,G-1,-G)}var ee=Te-1,ue=1,ve=0;for(this[ce+ee]=255&Ae;--ee>=0&&(ue*=256);)Ae<0&&0===ve&&0!==this[ce+ee+1]&&(ve=1),this[ce+ee]=(Ae/ue>>0)-ve&255;return ce+Te},d.prototype.writeInt8=function(Ae,ce,Te){return Ae=+Ae,ce>>>=0,Te||V(this,Ae,ce,1,127,-128),Ae<0&&(Ae=255+Ae+1),this[ce]=255&Ae,ce+1},d.prototype.writeInt16LE=function(Ae,ce,Te){return Ae=+Ae,ce>>>=0,Te||V(this,Ae,ce,2,32767,-32768),this[ce]=255&Ae,this[ce+1]=Ae>>>8,ce+2},d.prototype.writeInt16BE=function(Ae,ce,Te){return Ae=+Ae,ce>>>=0,Te||V(this,Ae,ce,2,32767,-32768),this[ce]=Ae>>>8,this[ce+1]=255&Ae,ce+2},d.prototype.writeInt32LE=function(Ae,ce,Te){return Ae=+Ae,ce>>>=0,Te||V(this,Ae,ce,4,2147483647,-2147483648),this[ce]=255&Ae,this[ce+1]=Ae>>>8,this[ce+2]=Ae>>>16,this[ce+3]=Ae>>>24,ce+4},d.prototype.writeInt32BE=function(Ae,ce,Te){return Ae=+Ae,ce>>>=0,Te||V(this,Ae,ce,4,2147483647,-2147483648),Ae<0&&(Ae=4294967295+Ae+1),this[ce]=Ae>>>24,this[ce+1]=Ae>>>16,this[ce+2]=Ae>>>8,this[ce+3]=255&Ae,ce+4},d.prototype.writeFloatLE=function(Ae,ce,Te){return H(this,Ae,ce,!0,Te)},d.prototype.writeFloatBE=function(Ae,ce,Te){return H(this,Ae,ce,!1,Te)},d.prototype.writeDoubleLE=function(Ae,ce,Te){return $(this,Ae,ce,!0,Te)},d.prototype.writeDoubleBE=function(Ae,ce,Te){return $(this,Ae,ce,!1,Te)},d.prototype.copy=function(Ae,ce,Te,xe){if(!d.isBuffer(Ae))throw new TypeError("argument should be a Buffer");if(Te||(Te=0),!xe&&0!==xe&&(xe=this.length),ce>=Ae.length&&(ce=Ae.length),ce||(ce=0),xe>0&&xe<Te&&(xe=Te),xe===Te||0===Ae.length||0===this.length)return 0;if(ce<0)throw new RangeError("targetStart out of bounds");if(Te<0||Te>=this.length)throw new RangeError("Index out of range");if(xe<0)throw new RangeError("sourceEnd out of bounds");xe>this.length&&(xe=this.length),Ae.length-ce<xe-Te&&(xe=Ae.length-ce+Te);var G=xe-Te;return this===Ae&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(ce,Te,xe):Uint8Array.prototype.set.call(Ae,this.subarray(Te,xe),ce),G},d.prototype.fill=function(Ae,ce,Te,xe){if("string"==typeof Ae){if("string"==typeof ce?(xe=ce,ce=0,Te=this.length):"string"==typeof Te&&(xe=Te,Te=this.length),void 0!==xe&&"string"!=typeof xe)throw new TypeError("encoding must be a string");if("string"==typeof xe&&!d.isEncoding(xe))throw new TypeError("Unknown encoding: "+xe);if(1===Ae.length){var G=Ae.charCodeAt(0);("utf8"===xe&&G<128||"latin1"===xe)&&(Ae=G)}}else"number"==typeof Ae?Ae&=255:"boolean"==typeof Ae&&(Ae=Number(Ae));if(ce<0||this.length<ce||this.length<Te)throw new RangeError("Out of range index");if(Te<=ce)return this;var ee;if(ce>>>=0,Te=void 0===Te?this.length:Te>>>0,Ae||(Ae=0),"number"==typeof Ae)for(ee=ce;ee<Te;++ee)this[ee]=Ae;else{var ue=d.isBuffer(Ae)?Ae:d.from(Ae,xe),ve=ue.length;if(0===ve)throw new TypeError('The value "'+Ae+'" is invalid for argument "value"');for(ee=0;ee<Te-ce;++ee)this[ee+ce]=ue[ee%ve]}return this};var fe=/[^+/0-9A-Za-z-_]/g;function ke(Ie,Ae){Ae=Ae||1/0;for(var ce,Te=Ie.length,xe=null,G=[],ee=0;ee<Te;++ee){if((ce=Ie.charCodeAt(ee))>55295&&ce<57344){if(!xe){if(ce>56319){(Ae-=3)>-1&&G.push(239,191,189);continue}if(ee+1===Te){(Ae-=3)>-1&&G.push(239,191,189);continue}xe=ce;continue}if(ce<56320){(Ae-=3)>-1&&G.push(239,191,189),xe=ce;continue}ce=65536+(xe-55296<<10|ce-56320)}else xe&&(Ae-=3)>-1&&G.push(239,191,189);if(xe=null,ce<128){if((Ae-=1)<0)break;G.push(ce)}else if(ce<2048){if((Ae-=2)<0)break;G.push(ce>>6|192,63&ce|128)}else if(ce<65536){if((Ae-=3)<0)break;G.push(ce>>12|224,ce>>6&63|128,63&ce|128)}else{if(!(ce<1114112))throw new Error("Invalid code point");if((Ae-=4)<0)break;G.push(ce>>18|240,ce>>12&63|128,ce>>6&63|128,63&ce|128)}}return G}function ze(Ie){return e.toByteArray(function ye(Ie){if((Ie=(Ie=Ie.split("=")[0]).trim().replace(fe,"")).length<2)return"";for(;Ie.length%4!=0;)Ie+="=";return Ie}(Ie))}function be(Ie,Ae,ce,Te){for(var xe=0;xe<Te&&!(xe+ce>=Ae.length||xe>=Ie.length);++xe)Ae[xe+ce]=Ie[xe];return xe}function Z(Ie,Ae){return Ie instanceof Ae||null!=Ie&&null!=Ie.constructor&&null!=Ie.constructor.name&&Ie.constructor.name===Ae.name}function Y(Ie){return Ie!=Ie}var ot=function(){for(var Ie="0123456789abcdef",Ae=new Array(256),ce=0;ce<16;++ce)for(var Te=16*ce,xe=0;xe<16;++xe)Ae[Te+xe]=Ie[ce]+Ie[xe];return Ae}()},1052:(He,j,p)=>{var e=p(3502).Buffer,i=p(295).Transform,u=p(3054).s;function a(y){i.call(this),this.hashMode="string"==typeof y,this.hashMode?this[y]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}p(3894)(a,i),a.prototype.update=function(y,d,P){"string"==typeof y&&(y=e.from(y,d));var D=this._update(y);return this.hashMode?this:(P&&(D=this._toString(D,P)),D)},a.prototype.setAutoPadding=function(){},a.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},a.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},a.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},a.prototype._transform=function(y,d,P){var D;try{this.hashMode?this._update(y):this.push(this._update(y))}catch(T){D=T}finally{P(D)}},a.prototype._flush=function(y){var d;try{this.push(this.__final())}catch(P){d=P}y(d)},a.prototype._finalOrDigest=function(y){var d=this.__final()||e.alloc(0);return y&&(d=this._toString(d,y,!0)),d},a.prototype._toString=function(y,d,P){if(this._decoder||(this._decoder=new u(d),this._encoding=d),this._encoding!==d)throw new Error("can't switch encodings");var D=this._decoder.write(y);return P&&(D+=this._decoder.end()),D},He.exports=a},7293:(He,j,p)=>{"use strict";const e=p(4315),i=p(2872),u=p(717);He.exports=function b(d,P){switch(i(d)){case"object":return function a(d,P){if("function"==typeof P)return P(d);if(P||u(d)){const D=new d.constructor;for(let T in d)D[T]=b(d[T],P);return D}return d}(d,P);case"array":return function y(d,P){const D=new d.constructor(d.length);for(let T=0;T<d.length;T++)D[T]=b(d[T],P);return D}(d,P);default:return e(d)}}},6128:function(He){!function(j){"use strict";var p={bytesToHex:function(u){return function e(u){return u.map(function(b){return function i(u,b){return u.length>b?u:Array(b-u.length+1).join("0")+u}(b.toString(16),2)}).join("")}(u)},hexToBytes:function(u){if(u.length%2==1)throw new Error("hexToBytes can't have a string with an odd number of characters.");return 0===u.indexOf("0x")&&(u=u.slice(2)),u.match(/../g).map(function(b){return parseInt(b,16)})}};He.exports?He.exports=p:j.convertHex=p}(this)},5612:function(He){!function(j){"use strict";var p={bytesToString:function(e){return e.map(function(i){return String.fromCharCode(i)}).join("")},stringToBytes:function(e){return e.split("").map(function(i){return i.charCodeAt(0)})}};p.UTF8={bytesToString:function(e){return decodeURIComponent(escape(p.bytesToString(e)))},stringToBytes:function(e){return p.stringToBytes(unescape(encodeURIComponent(e)))}},He.exports?He.exports=p:j.convertString=p}(this)},4746:(He,j,p)=>{var e=p(7715),i=p(6422);He.exports=function(d){return new b(d)};var u={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 b(y){this.curveType=u[y],this.curveType||(this.curveType={name:y}),this.curve=new e.ec(this.curveType.name),this.keys=void 0}function a(y,d,P){Array.isArray(y)||(y=y.toArray());var D=new Buffer(y);if(P&&D.length<P){var T=new Buffer(P-D.length);T.fill(0),D=Buffer.concat([T,D])}return d?D.toString(d):D}u.p224=u.secp224r1,u.p256=u.secp256r1=u.prime256v1,u.p192=u.secp192r1=u.prime192v1,u.p384=u.secp384r1,u.p521=u.secp521r1,b.prototype.generateKeys=function(y,d){return this.keys=this.curve.genKeyPair(),this.getPublicKey(y,d)},b.prototype.computeSecret=function(y,d,P){return d=d||"utf8",Buffer.isBuffer(y)||(y=new Buffer(y,d)),a(this.curve.keyFromPublic(y).getPublic().mul(this.keys.getPrivate()).getX(),P,this.curveType.byteLength)},b.prototype.getPublicKey=function(y,d){var P=this.keys.getPublic("compressed"===d,!0);return"hybrid"===d&&(P[0]=P[P.length-1]%2?7:6),a(P,y)},b.prototype.getPrivateKey=function(y){return a(this.keys.getPrivate(),y)},b.prototype.setPublicKey=function(y,d){return d=d||"utf8",Buffer.isBuffer(y)||(y=new Buffer(y,d)),this.keys._importPublic(y),this},b.prototype.setPrivateKey=function(y,d){d=d||"utf8",Buffer.isBuffer(y)||(y=new Buffer(y,d));var P=new i(y);return P=P.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(P),this}},6422:function(He,j,p){!function(e,i){"use strict";function u(x,t){if(!x)throw new Error(t||"Assertion failed")}function b(x,t){x.super_=t;var r=function(){};r.prototype=t.prototype,x.prototype=new r,x.prototype.constructor=x}function a(x,t,r){if(a.isBN(x))return x;this.negative=0,this.words=null,this.length=0,this.red=null,null!==x&&(("le"===t||"be"===t)&&(r=t,t=10),this._init(x||0,t||10,r||"be"))}var y;"object"==typeof e?e.exports=a:i.BN=a,a.BN=a,a.wordSize=26;try{y="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:p(8623).Buffer}catch(x){}function d(x,t){var r=x.charCodeAt(t);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function P(x,t,r){var h=d(x,r);return r-1>=t&&(h|=d(x,r-1)<<4),h}function D(x,t,r,h){for(var c=0,C=Math.min(x.length,r),S=t;S<C;S++){var I=x.charCodeAt(S)-48;c*=h,c+=I>=49?I-49+10:I>=17?I-17+10:I}return c}a.isBN=function(t){return t instanceof a||null!==t&&"object"==typeof t&&t.constructor.wordSize===a.wordSize&&Array.isArray(t.words)},a.max=function(t,r){return t.cmp(r)>0?t:r},a.min=function(t,r){return t.cmp(r)<0?t:r},a.prototype._init=function(t,r,h){if("number"==typeof t)return this._initNumber(t,r,h);if("object"==typeof t)return this._initArray(t,r,h);"hex"===r&&(r=16),u(r===(0|r)&&r>=2&&r<=36);var c=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(c++,this.negative=1),c<t.length&&(16===r?this._parseHex(t,c,h):(this._parseBase(t,r,c),"le"===h&&this._initArray(this.toArray(),r,h)))},a.prototype._initNumber=function(t,r,h){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(u(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===h&&this._initArray(this.toArray(),r,h)},a.prototype._initArray=function(t,r,h){if(u("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var c=0;c<this.length;c++)this.words[c]=0;var C,S,I=0;if("be"===h)for(c=t.length-1,C=0;c>=0;c-=3)this.words[C]|=(S=t[c]|t[c-1]<<8|t[c-2]<<16)<<I&67108863,this.words[C+1]=S>>>26-I&67108863,(I+=24)>=26&&(I-=26,C++);else if("le"===h)for(c=0,C=0;c<t.length;c+=3)this.words[C]|=(S=t[c]|t[c+1]<<8|t[c+2]<<16)<<I&67108863,this.words[C+1]=S>>>26-I&67108863,(I+=24)>=26&&(I-=26,C++);return this.strip()},a.prototype._parseHex=function(t,r,h){this.length=Math.ceil((t.length-r)/6),this.words=new Array(this.length);for(var c=0;c<this.length;c++)this.words[c]=0;var I,C=0,S=0;if("be"===h)for(c=t.length-1;c>=r;c-=2)I=P(t,r,c)<<C,this.words[S]|=67108863&I,C>=18?(C-=18,this.words[S+=1]|=I>>>26):C+=8;else for(c=(t.length-r)%2==0?r+1:r;c<t.length;c+=2)I=P(t,r,c)<<C,this.words[S]|=67108863&I,C>=18?(C-=18,this.words[S+=1]|=I>>>26):C+=8;this.strip()},a.prototype._parseBase=function(t,r,h){this.words=[0],this.length=1;for(var c=0,C=1;C<=67108863;C*=r)c++;c--,C=C/r|0;for(var S=t.length-h,I=S%c,_=Math.min(S,S-I)+h,n=0,g=h;g<_;g+=c)n=D(t,g,g+c,r),this.imuln(C),this.words[0]+n<67108864?this.words[0]+=n:this._iaddn(n);if(0!==I){var V=1;for(n=D(t,g,t.length,r),g=0;g<I;g++)V*=r;this.imuln(V),this.words[0]+n<67108864?this.words[0]+=n:this._iaddn(n)}this.strip()},a.prototype.copy=function(t){t.words=new Array(this.length);for(var r=0;r<this.length;r++)t.words[r]=this.words[r];t.length=this.length,t.negative=this.negative,t.red=this.red},a.prototype.clone=function(){var t=new a(null);return this.copy(t),t},a.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},a.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var T=["","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],A=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function k(x,t,r){r.negative=t.negative^x.negative;var h=x.length+t.length|0;r.length=h,h=h-1|0;var c=0|x.words[0],C=0|t.words[0],S=c*C,_=S/67108864|0;r.words[0]=67108863&S;for(var n=1;n<h;n++){for(var g=_>>>26,V=67108863&_,R=Math.min(n,t.length-1),H=Math.max(0,n-x.length+1);H<=R;H++)g+=(S=(c=0|x.words[n-H|0])*(C=0|t.words[H])+V)/67108864|0,V=67108863&S;r.words[n]=0|V,_=0|g}return 0!==_?r.words[n]=0|_:r.length--,r.strip()}a.prototype.toString=function(t,r){var h;if(r=0|r||1,16===(t=t||10)||"hex"===t){h="";for(var c=0,C=0,S=0;S<this.length;S++){var I=this.words[S],_=(16777215&(I<<c|C)).toString(16);h=0!=(C=I>>>24-c&16777215)||S!==this.length-1?T[6-_.length]+_+h:_+h,(c+=2)>=26&&(c-=26,S--)}for(0!==C&&(h=C.toString(16)+h);h.length%r!=0;)h="0"+h;return 0!==this.negative&&(h="-"+h),h}if(t===(0|t)&&t>=2&&t<=36){var n=M[t],g=A[t];h="";var V=this.clone();for(V.negative=0;!V.isZero();){var R=V.modn(g).toString(t);h=(V=V.idivn(g)).isZero()?R+h:T[n-R.length]+R+h}for(this.isZero()&&(h="0"+h);h.length%r!=0;)h="0"+h;return 0!==this.negative&&(h="-"+h),h}u(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&u(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(t,r){return u(void 0!==y),this.toArrayLike(y,t,r)},a.prototype.toArray=function(t,r){return this.toArrayLike(Array,t,r)},a.prototype.toArrayLike=function(t,r,h){var c=this.byteLength(),C=h||Math.max(1,c);u(c<=C,"byte array longer than desired length"),u(C>0,"Requested array length <= 0"),this.strip();var _,n,S="le"===r,I=new t(C),g=this.clone();if(S){for(n=0;!g.isZero();n++)_=g.andln(255),g.iushrn(8),I[n]=_;for(;n<C;n++)I[n]=0}else{for(n=0;n<C-c;n++)I[n]=0;for(n=0;!g.isZero();n++)_=g.andln(255),g.iushrn(8),I[C-n-1]=_}return I},a.prototype._countBits=Math.clz32?function(t){return 32-Math.clz32(t)}:function(t){var r=t,h=0;return r>=4096&&(h+=13,r>>>=13),r>=64&&(h+=7,r>>>=7),r>=8&&(h+=4,r>>>=4),r>=2&&(h+=2,r>>>=2),h+r},a.prototype._zeroBits=function(t){if(0===t)return 26;var r=t,h=0;return 0==(8191&r)&&(h+=13,r>>>=13),0==(127&r)&&(h+=7,r>>>=7),0==(15&r)&&(h+=4,r>>>=4),0==(3&r)&&(h+=2,r>>>=2),0==(1&r)&&h++,h},a.prototype.bitLength=function(){var r=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+r},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,r=0;r<this.length;r++){var h=this._zeroBits(this.words[r]);if(t+=h,26!==h)break}return t},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},a.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return 0!==this.negative},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]|t.words[r];return this.strip()},a.prototype.ior=function(t){return u(0==(this.negative|t.negative)),this.iuor(t)},a.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},a.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},a.prototype.iuand=function(t){var r;r=this.length>t.length?t:this;for(var h=0;h<r.length;h++)this.words[h]=this.words[h]&t.words[h];return this.length=r.length,this.strip()},a.prototype.iand=function(t){return u(0==(this.negative|t.negative)),this.iuand(t)},a.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},a.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},a.prototype.iuxor=function(t){var r,h;this.length>t.length?(r=this,h=t):(r=t,h=this);for(var c=0;c<h.length;c++)this.words[c]=r.words[c]^h.words[c];if(this!==r)for(;c<r.length;c++)this.words[c]=r.words[c];return this.length=r.length,this.strip()},a.prototype.ixor=function(t){return u(0==(this.negative|t.negative)),this.iuxor(t)},a.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},a.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},a.prototype.inotn=function(t){u("number"==typeof t&&t>=0);var r=0|Math.ceil(t/26),h=t%26;this._expand(r),h>0&&r--;for(var c=0;c<r;c++)this.words[c]=67108863&~this.words[c];return h>0&&(this.words[c]=~this.words[c]&67108863>>26-h),this.strip()},a.prototype.notn=function(t){return this.clone().inotn(t)},a.prototype.setn=function(t,r){u("number"==typeof t&&t>=0);var h=t/26|0,c=t%26;return this._expand(h+1),this.words[h]=r?this.words[h]|1<<c:this.words[h]&~(1<<c),this.strip()},a.prototype.iadd=function(t){var r,h,c;if(0!==this.negative&&0===t.negative)return this.negative=0,r=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,r=this.isub(t),t.negative=1,r._normSign();this.length>t.length?(h=this,c=t):(h=t,c=this);for(var C=0,S=0;S<c.length;S++)this.words[S]=67108863&(r=(0|h.words[S])+(0|c.words[S])+C),C=r>>>26;for(;0!==C&&S<h.length;S++)this.words[S]=67108863&(r=(0|h.words[S])+C),C=r>>>26;if(this.length=h.length,0!==C)this.words[this.length]=C,this.length++;else if(h!==this)for(;S<h.length;S++)this.words[S]=h.words[S];return this},a.prototype.add=function(t){var r;return 0!==t.negative&&0===this.negative?(t.negative=0,r=this.sub(t),t.negative^=1,r):0===t.negative&&0!==this.negative?(this.negative=0,r=t.sub(this),this.negative=1,r):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},a.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var r=this.iadd(t);return t.negative=1,r._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var c,C,h=this.cmp(t);if(0===h)return this.negative=0,this.length=1,this.words[0]=0,this;h>0?(c=this,C=t):(c=t,C=this);for(var S=0,I=0;I<C.length;I++)S=(r=(0|c.words[I])-(0|C.words[I])+S)>>26,this.words[I]=67108863&r;for(;0!==S&&I<c.length;I++)S=(r=(0|c.words[I])+S)>>26,this.words[I]=67108863&r;if(0===S&&I<c.length&&c!==this)for(;I<c.length;I++)this.words[I]=c.words[I];return this.length=Math.max(this.length,I),c!==this&&(this.negative=1),this.strip()},a.prototype.sub=function(t){return this.clone().isub(t)};var w=function(t,r,h){var _,n,g,c=t.words,C=r.words,S=h.words,I=0,V=0|c[0],R=8191&V,H=V>>>13,$=0|c[1],fe=8191&$,ye=$>>>13,ke=0|c[2],Ee=8191&ke,te=ke>>>13,ze=0|c[3],be=8191&ze,Z=ze>>>13,Y=0|c[4],ot=8191&Y,Ie=Y>>>13,Ae=0|c[5],ce=8191&Ae,Te=Ae>>>13,xe=0|c[6],G=8191&xe,ee=xe>>>13,ue=0|c[7],ve=8191&ue,Le=ue>>>13,lt=0|c[8],ht=8191&lt,Tt=lt>>>13,hi=0|c[9],jt=8191&hi,Gt=hi>>>13,di=0|C[0],vt=8191&di,kt=di>>>13,gt=0|C[1],Qe=8191&gt,_t=gt>>>13,ei=0|C[2],Zt=8191&ei,Pe=ei>>>13,De=0|C[3],oe=8191&De,Me=De>>>13,ut=0|C[4],ft=8191&ut,Rt=ut>>>13,et=0|C[5],Re=8191&et,qe=et>>>13,Ze=0|C[6],we=8191&Ze,Fe=Ze>>>13,rt=0|C[7],at=8191&rt,yt=rt>>>13,mi=0|C[8],Xt=8191&mi,Jt=mi>>>13,qi=0|C[9],ui=8191&qi,si=qi>>>13;h.negative=t.negative^r.negative,h.length=19;var en=(I+(_=Math.imul(R,vt))|0)+((8191&(n=(n=Math.imul(R,kt))+Math.imul(H,vt)|0))<<13)|0;I=((g=Math.imul(H,kt))+(n>>>13)|0)+(en>>>26)|0,en&=67108863,_=Math.imul(fe,vt),n=(n=Math.imul(fe,kt))+Math.imul(ye,vt)|0,g=Math.imul(ye,kt);var Ui=(I+(_=_+Math.imul(R,Qe)|0)|0)+((8191&(n=(n=n+Math.imul(R,_t)|0)+Math.imul(H,Qe)|0))<<13)|0;I=((g=g+Math.imul(H,_t)|0)+(n>>>13)|0)+(Ui>>>26)|0,Ui&=67108863,_=Math.imul(Ee,vt),n=(n=Math.imul(Ee,kt))+Math.imul(te,vt)|0,g=Math.imul(te,kt),_=_+Math.imul(fe,Qe)|0,n=(n=n+Math.imul(fe,_t)|0)+Math.imul(ye,Qe)|0,g=g+Math.imul(ye,_t)|0;var Bi=(I+(_=_+Math.imul(R,Zt)|0)|0)+((8191&(n=(n=n+Math.imul(R,Pe)|0)+Math.imul(H,Zt)|0))<<13)|0;I=((g=g+Math.imul(H,Pe)|0)+(n>>>13)|0)+(Bi>>>26)|0,Bi&=67108863,_=Math.imul(be,vt),n=(n=Math.imul(be,kt))+Math.imul(Z,vt)|0,g=Math.imul(Z,kt),_=_+Math.imul(Ee,Qe)|0,n=(n=n+Math.imul(Ee,_t)|0)+Math.imul(te,Qe)|0,g=g+Math.imul(te,_t)|0,_=_+Math.imul(fe,Zt)|0,n=(n=n+Math.imul(fe,Pe)|0)+Math.imul(ye,Zt)|0,g=g+Math.imul(ye,Pe)|0;var Gi=(I+(_=_+Math.imul(R,oe)|0)|0)+((8191&(n=(n=n+Math.imul(R,Me)|0)+Math.imul(H,oe)|0))<<13)|0;I=((g=g+Math.imul(H,Me)|0)+(n>>>13)|0)+(Gi>>>26)|0,Gi&=67108863,_=Math.imul(ot,vt),n=(n=Math.imul(ot,kt))+Math.imul(Ie,vt)|0,g=Math.imul(Ie,kt),_=_+Math.imul(be,Qe)|0,n=(n=n+Math.imul(be,_t)|0)+Math.imul(Z,Qe)|0,g=g+Math.imul(Z,_t)|0,_=_+Math.imul(Ee,Zt)|0,n=(n=n+Math.imul(Ee,Pe)|0)+Math.imul(te,Zt)|0,g=g+Math.imul(te,Pe)|0,_=_+Math.imul(fe,oe)|0,n=(n=n+Math.imul(fe,Me)|0)+Math.imul(ye,oe)|0,g=g+Math.imul(ye,Me)|0;var ct=(I+(_=_+Math.imul(R,ft)|0)|0)+((8191&(n=(n=n+Math.imul(R,Rt)|0)+Math.imul(H,ft)|0))<<13)|0;I=((g=g+Math.imul(H,Rt)|0)+(n>>>13)|0)+(ct>>>26)|0,ct&=67108863,_=Math.imul(ce,vt),n=(n=Math.imul(ce,kt))+Math.imul(Te,vt)|0,g=Math.imul(Te,kt),_=_+Math.imul(ot,Qe)|0,n=(n=n+Math.imul(ot,_t)|0)+Math.imul(Ie,Qe)|0,g=g+Math.imul(Ie,_t)|0,_=_+Math.imul(be,Zt)|0,n=(n=n+Math.imul(be,Pe)|0)+Math.imul(Z,Zt)|0,g=g+Math.imul(Z,Pe)|0,_=_+Math.imul(Ee,oe)|0,n=(n=n+Math.imul(Ee,Me)|0)+Math.imul(te,oe)|0,g=g+Math.imul(te,Me)|0,_=_+Math.imul(fe,ft)|0,n=(n=n+Math.imul(fe,Rt)|0)+Math.imul(ye,ft)|0,g=g+Math.imul(ye,Rt)|0;var Ft=(I+(_=_+Math.imul(R,Re)|0)|0)+((8191&(n=(n=n+Math.imul(R,qe)|0)+Math.imul(H,Re)|0))<<13)|0;I=((g=g+Math.imul(H,qe)|0)+(n>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,_=Math.imul(G,vt),n=(n=Math.imul(G,kt))+Math.imul(ee,vt)|0,g=Math.imul(ee,kt),_=_+Math.imul(ce,Qe)|0,n=(n=n+Math.imul(ce,_t)|0)+Math.imul(Te,Qe)|0,g=g+Math.imul(Te,_t)|0,_=_+Math.imul(ot,Zt)|0,n=(n=n+Math.imul(ot,Pe)|0)+Math.imul(Ie,Zt)|0,g=g+Math.imul(Ie,Pe)|0,_=_+Math.imul(be,oe)|0,n=(n=n+Math.imul(be,Me)|0)+Math.imul(Z,oe)|0,g=g+Math.imul(Z,Me)|0,_=_+Math.imul(Ee,ft)|0,n=(n=n+Math.imul(Ee,Rt)|0)+Math.imul(te,ft)|0,g=g+Math.imul(te,Rt)|0,_=_+Math.imul(fe,Re)|0,n=(n=n+Math.imul(fe,qe)|0)+Math.imul(ye,Re)|0,g=g+Math.imul(ye,qe)|0;var pt=(I+(_=_+Math.imul(R,we)|0)|0)+((8191&(n=(n=n+Math.imul(R,Fe)|0)+Math.imul(H,we)|0))<<13)|0;I=((g=g+Math.imul(H,Fe)|0)+(n>>>13)|0)+(pt>>>26)|0,pt&=67108863,_=Math.imul(ve,vt),n=(n=Math.imul(ve,kt))+Math.imul(Le,vt)|0,g=Math.imul(Le,kt),_=_+Math.imul(G,Qe)|0,n=(n=n+Math.imul(G,_t)|0)+Math.imul(ee,Qe)|0,g=g+Math.imul(ee,_t)|0,_=_+Math.imul(ce,Zt)|0,n=(n=n+Math.imul(ce,Pe)|0)+Math.imul(Te,Zt)|0,g=g+Math.imul(Te,Pe)|0,_=_+Math.imul(ot,oe)|0,n=(n=n+Math.imul(ot,Me)|0)+Math.imul(Ie,oe)|0,g=g+Math.imul(Ie,Me)|0,_=_+Math.imul(be,ft)|0,n=(n=n+Math.imul(be,Rt)|0)+Math.imul(Z,ft)|0,g=g+Math.imul(Z,Rt)|0,_=_+Math.imul(Ee,Re)|0,n=(n=n+Math.imul(Ee,qe)|0)+Math.imul(te,Re)|0,g=g+Math.imul(te,qe)|0,_=_+Math.imul(fe,we)|0,n=(n=n+Math.imul(fe,Fe)|0)+Math.imul(ye,we)|0,g=g+Math.imul(ye,Fe)|0;var it=(I+(_=_+Math.imul(R,at)|0)|0)+((8191&(n=(n=n+Math.imul(R,yt)|0)+Math.imul(H,at)|0))<<13)|0;I=((g=g+Math.imul(H,yt)|0)+(n>>>13)|0)+(it>>>26)|0,it&=67108863,_=Math.imul(ht,vt),n=(n=Math.imul(ht,kt))+Math.imul(Tt,vt)|0,g=Math.imul(Tt,kt),_=_+Math.imul(ve,Qe)|0,n=(n=n+Math.imul(ve,_t)|0)+Math.imul(Le,Qe)|0,g=g+Math.imul(Le,_t)|0,_=_+Math.imul(G,Zt)|0,n=(n=n+Math.imul(G,Pe)|0)+Math.imul(ee,Zt)|0,g=g+Math.imul(ee,Pe)|0,_=_+Math.imul(ce,oe)|0,n=(n=n+Math.imul(ce,Me)|0)+Math.imul(Te,oe)|0,g=g+Math.imul(Te,Me)|0,_=_+Math.imul(ot,ft)|0,n=(n=n+Math.imul(ot,Rt)|0)+Math.imul(Ie,ft)|0,g=g+Math.imul(Ie,Rt)|0,_=_+Math.imul(be,Re)|0,n=(n=n+Math.imul(be,qe)|0)+Math.imul(Z,Re)|0,g=g+Math.imul(Z,qe)|0,_=_+Math.imul(Ee,we)|0,n=(n=n+Math.imul(Ee,Fe)|0)+Math.imul(te,we)|0,g=g+Math.imul(te,Fe)|0,_=_+Math.imul(fe,at)|0,n=(n=n+Math.imul(fe,yt)|0)+Math.imul(ye,at)|0,g=g+Math.imul(ye,yt)|0;var It=(I+(_=_+Math.imul(R,Xt)|0)|0)+((8191&(n=(n=n+Math.imul(R,Jt)|0)+Math.imul(H,Xt)|0))<<13)|0;I=((g=g+Math.imul(H,Jt)|0)+(n>>>13)|0)+(It>>>26)|0,It&=67108863,_=Math.imul(jt,vt),n=(n=Math.imul(jt,kt))+Math.imul(Gt,vt)|0,g=Math.imul(Gt,kt),_=_+Math.imul(ht,Qe)|0,n=(n=n+Math.imul(ht,_t)|0)+Math.imul(Tt,Qe)|0,g=g+Math.imul(Tt,_t)|0,_=_+Math.imul(ve,Zt)|0,n=(n=n+Math.imul(ve,Pe)|0)+Math.imul(Le,Zt)|0,g=g+Math.imul(Le,Pe)|0,_=_+Math.imul(G,oe)|0,n=(n=n+Math.imul(G,Me)|0)+Math.imul(ee,oe)|0,g=g+Math.imul(ee,Me)|0,_=_+Math.imul(ce,ft)|0,n=(n=n+Math.imul(ce,Rt)|0)+Math.imul(Te,ft)|0,g=g+Math.imul(Te,Rt)|0,_=_+Math.imul(ot,Re)|0,n=(n=n+Math.imul(ot,qe)|0)+Math.imul(Ie,Re)|0,g=g+Math.imul(Ie,qe)|0,_=_+Math.imul(be,we)|0,n=(n=n+Math.imul(be,Fe)|0)+Math.imul(Z,we)|0,g=g+Math.imul(Z,Fe)|0,_=_+Math.imul(Ee,at)|0,n=(n=n+Math.imul(Ee,yt)|0)+Math.imul(te,at)|0,g=g+Math.imul(te,yt)|0,_=_+Math.imul(fe,Xt)|0,n=(n=n+Math.imul(fe,Jt)|0)+Math.imul(ye,Xt)|0,g=g+Math.imul(ye,Jt)|0;var de=(I+(_=_+Math.imul(R,ui)|0)|0)+((8191&(n=(n=n+Math.imul(R,si)|0)+Math.imul(H,ui)|0))<<13)|0;I=((g=g+Math.imul(H,si)|0)+(n>>>13)|0)+(de>>>26)|0,de&=67108863,_=Math.imul(jt,Qe),n=(n=Math.imul(jt,_t))+Math.imul(Gt,Qe)|0,g=Math.imul(Gt,_t),_=_+Math.imul(ht,Zt)|0,n=(n=n+Math.imul(ht,Pe)|0)+Math.imul(Tt,Zt)|0,g=g+Math.imul(Tt,Pe)|0,_=_+Math.imul(ve,oe)|0,n=(n=n+Math.imul(ve,Me)|0)+Math.imul(Le,oe)|0,g=g+Math.imul(Le,Me)|0,_=_+Math.imul(G,ft)|0,n=(n=n+Math.imul(G,Rt)|0)+Math.imul(ee,ft)|0,g=g+Math.imul(ee,Rt)|0,_=_+Math.imul(ce,Re)|0,n=(n=n+Math.imul(ce,qe)|0)+Math.imul(Te,Re)|0,g=g+Math.imul(Te,qe)|0,_=_+Math.imul(ot,we)|0,n=(n=n+Math.imul(ot,Fe)|0)+Math.imul(Ie,we)|0,g=g+Math.imul(Ie,Fe)|0,_=_+Math.imul(be,at)|0,n=(n=n+Math.imul(be,yt)|0)+Math.imul(Z,at)|0,g=g+Math.imul(Z,yt)|0,_=_+Math.imul(Ee,Xt)|0,n=(n=n+Math.imul(Ee,Jt)|0)+Math.imul(te,Xt)|0,g=g+Math.imul(te,Jt)|0;var $e=(I+(_=_+Math.imul(fe,ui)|0)|0)+((8191&(n=(n=n+Math.imul(fe,si)|0)+Math.imul(ye,ui)|0))<<13)|0;I=((g=g+Math.imul(ye,si)|0)+(n>>>13)|0)+($e>>>26)|0,$e&=67108863,_=Math.imul(jt,Zt),n=(n=Math.imul(jt,Pe))+Math.imul(Gt,Zt)|0,g=Math.imul(Gt,Pe),_=_+Math.imul(ht,oe)|0,n=(n=n+Math.imul(ht,Me)|0)+Math.imul(Tt,oe)|0,g=g+Math.imul(Tt,Me)|0,_=_+Math.imul(ve,ft)|0,n=(n=n+Math.imul(ve,Rt)|0)+Math.imul(Le,ft)|0,g=g+Math.imul(Le,Rt)|0,_=_+Math.imul(G,Re)|0,n=(n=n+Math.imul(G,qe)|0)+Math.imul(ee,Re)|0,g=g+Math.imul(ee,qe)|0,_=_+Math.imul(ce,we)|0,n=(n=n+Math.imul(ce,Fe)|0)+Math.imul(Te,we)|0,g=g+Math.imul(Te,Fe)|0,_=_+Math.imul(ot,at)|0,n=(n=n+Math.imul(ot,yt)|0)+Math.imul(Ie,at)|0,g=g+Math.imul(Ie,yt)|0,_=_+Math.imul(be,Xt)|0,n=(n=n+Math.imul(be,Jt)|0)+Math.imul(Z,Xt)|0,g=g+Math.imul(Z,Jt)|0;var bt=(I+(_=_+Math.imul(Ee,ui)|0)|0)+((8191&(n=(n=n+Math.imul(Ee,si)|0)+Math.imul(te,ui)|0))<<13)|0;I=((g=g+Math.imul(te,si)|0)+(n>>>13)|0)+(bt>>>26)|0,bt&=67108863,_=Math.imul(jt,oe),n=(n=Math.imul(jt,Me))+Math.imul(Gt,oe)|0,g=Math.imul(Gt,Me),_=_+Math.imul(ht,ft)|0,n=(n=n+Math.imul(ht,Rt)|0)+Math.imul(Tt,ft)|0,g=g+Math.imul(Tt,Rt)|0,_=_+Math.imul(ve,Re)|0,n=(n=n+Math.imul(ve,qe)|0)+Math.imul(Le,Re)|0,g=g+Math.imul(Le,qe)|0,_=_+Math.imul(G,we)|0,n=(n=n+Math.imul(G,Fe)|0)+Math.imul(ee,we)|0,g=g+Math.imul(ee,Fe)|0,_=_+Math.imul(ce,at)|0,n=(n=n+Math.imul(ce,yt)|0)+Math.imul(Te,at)|0,g=g+Math.imul(Te,yt)|0,_=_+Math.imul(ot,Xt)|0,n=(n=n+Math.imul(ot,Jt)|0)+Math.imul(Ie,Xt)|0,g=g+Math.imul(Ie,Jt)|0;var Vt=(I+(_=_+Math.imul(be,ui)|0)|0)+((8191&(n=(n=n+Math.imul(be,si)|0)+Math.imul(Z,ui)|0))<<13)|0;I=((g=g+Math.imul(Z,si)|0)+(n>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,_=Math.imul(jt,ft),n=(n=Math.imul(jt,Rt))+Math.imul(Gt,ft)|0,g=Math.imul(Gt,Rt),_=_+Math.imul(ht,Re)|0,n=(n=n+Math.imul(ht,qe)|0)+Math.imul(Tt,Re)|0,g=g+Math.imul(Tt,qe)|0,_=_+Math.imul(ve,we)|0,n=(n=n+Math.imul(ve,Fe)|0)+Math.imul(Le,we)|0,g=g+Math.imul(Le,Fe)|0,_=_+Math.imul(G,at)|0,n=(n=n+Math.imul(G,yt)|0)+Math.imul(ee,at)|0,g=g+Math.imul(ee,yt)|0,_=_+Math.imul(ce,Xt)|0,n=(n=n+Math.imul(ce,Jt)|0)+Math.imul(Te,Xt)|0,g=g+Math.imul(Te,Jt)|0;var bi=(I+(_=_+Math.imul(ot,ui)|0)|0)+((8191&(n=(n=n+Math.imul(ot,si)|0)+Math.imul(Ie,ui)|0))<<13)|0;I=((g=g+Math.imul(Ie,si)|0)+(n>>>13)|0)+(bi>>>26)|0,bi&=67108863,_=Math.imul(jt,Re),n=(n=Math.imul(jt,qe))+Math.imul(Gt,Re)|0,g=Math.imul(Gt,qe),_=_+Math.imul(ht,we)|0,n=(n=n+Math.imul(ht,Fe)|0)+Math.imul(Tt,we)|0,g=g+Math.imul(Tt,Fe)|0,_=_+Math.imul(ve,at)|0,n=(n=n+Math.imul(ve,yt)|0)+Math.imul(Le,at)|0,g=g+Math.imul(Le,yt)|0,_=_+Math.imul(G,Xt)|0,n=(n=n+Math.imul(G,Jt)|0)+Math.imul(ee,Xt)|0,g=g+Math.imul(ee,Jt)|0;var Li=(I+(_=_+Math.imul(ce,ui)|0)|0)+((8191&(n=(n=n+Math.imul(ce,si)|0)+Math.imul(Te,ui)|0))<<13)|0;I=((g=g+Math.imul(Te,si)|0)+(n>>>13)|0)+(Li>>>26)|0,Li&=67108863,_=Math.imul(jt,we),n=(n=Math.imul(jt,Fe))+Math.imul(Gt,we)|0,g=Math.imul(Gt,Fe),_=_+Math.imul(ht,at)|0,n=(n=n+Math.imul(ht,yt)|0)+Math.imul(Tt,at)|0,g=g+Math.imul(Tt,yt)|0,_=_+Math.imul(ve,Xt)|0,n=(n=n+Math.imul(ve,Jt)|0)+Math.imul(Le,Xt)|0,g=g+Math.imul(Le,Jt)|0;var Ji=(I+(_=_+Math.imul(G,ui)|0)|0)+((8191&(n=(n=n+Math.imul(G,si)|0)+Math.imul(ee,ui)|0))<<13)|0;I=((g=g+Math.imul(ee,si)|0)+(n>>>13)|0)+(Ji>>>26)|0,Ji&=67108863,_=Math.imul(jt,at),n=(n=Math.imul(jt,yt))+Math.imul(Gt,at)|0,g=Math.imul(Gt,yt),_=_+Math.imul(ht,Xt)|0,n=(n=n+Math.imul(ht,Jt)|0)+Math.imul(Tt,Xt)|0,g=g+Math.imul(Tt,Jt)|0;var Wi=(I+(_=_+Math.imul(ve,ui)|0)|0)+((8191&(n=(n=n+Math.imul(ve,si)|0)+Math.imul(Le,ui)|0))<<13)|0;I=((g=g+Math.imul(Le,si)|0)+(n>>>13)|0)+(Wi>>>26)|0,Wi&=67108863,_=Math.imul(jt,Xt),n=(n=Math.imul(jt,Jt))+Math.imul(Gt,Xt)|0,g=Math.imul(Gt,Jt);var sn=(I+(_=_+Math.imul(ht,ui)|0)|0)+((8191&(n=(n=n+Math.imul(ht,si)|0)+Math.imul(Tt,ui)|0))<<13)|0;I=((g=g+Math.imul(Tt,si)|0)+(n>>>13)|0)+(sn>>>26)|0,sn&=67108863;var mn=(I+(_=Math.imul(jt,ui))|0)+((8191&(n=(n=Math.imul(jt,si))+Math.imul(Gt,ui)|0))<<13)|0;return I=((g=Math.imul(Gt,si))+(n>>>13)|0)+(mn>>>26)|0,mn&=67108863,S[0]=en,S[1]=Ui,S[2]=Bi,S[3]=Gi,S[4]=ct,S[5]=Ft,S[6]=pt,S[7]=it,S[8]=It,S[9]=de,S[10]=$e,S[11]=bt,S[12]=Vt,S[13]=bi,S[14]=Li,S[15]=Ji,S[16]=Wi,S[17]=sn,S[18]=mn,0!==I&&(S[19]=I,h.length++),h};function U(x,t,r){return(new W).mulp(x,t,r)}function W(x,t){this.x=x,this.y=t}Math.imul||(w=k),a.prototype.mulTo=function(t,r){var h,c=this.length+t.length;return h=10===this.length&&10===t.length?w(this,t,r):c<63?k(this,t,r):c<1024?function z(x,t,r){r.negative=t.negative^x.negative,r.length=x.length+t.length;for(var h=0,c=0,C=0;C<r.length-1;C++){var S=c;c=0;for(var I=67108863&h,_=Math.min(C,t.length-1),n=Math.max(0,C-x.length+1);n<=_;n++){var H=(0|x.words[C-n])*(0|t.words[n]),$=67108863&H;I=67108863&($=$+I|0),c+=(S=(S=S+(H/67108864|0)|0)+($>>>26)|0)>>>26,S&=67108863}r.words[C]=I,h=S,S=c}return 0!==h?r.words[C]=h:r.length--,r.strip()}(this,t,r):U(this,t,r),h},W.prototype.makeRBT=function(t){for(var r=new Array(t),h=a.prototype._countBits(t)-1,c=0;c<t;c++)r[c]=this.revBin(c,h,t);return r},W.prototype.revBin=function(t,r,h){if(0===t||t===h-1)return t;for(var c=0,C=0;C<r;C++)c|=(1&t)<<r-C-1,t>>=1;return c},W.prototype.permute=function(t,r,h,c,C,S){for(var I=0;I<S;I++)c[I]=r[t[I]],C[I]=h[t[I]]},W.prototype.transform=function(t,r,h,c,C,S){this.permute(S,t,r,h,c,C);for(var I=1;I<C;I<<=1)for(var _=I<<1,n=Math.cos(2*Math.PI/_),g=Math.sin(2*Math.PI/_),V=0;V<C;V+=_)for(var R=n,H=g,$=0;$<I;$++){var fe=h[V+$],ye=c[V+$],ke=h[V+$+I],Ee=c[V+$+I],te=R*ke-H*Ee;Ee=R*Ee+H*ke,h[V+$]=fe+(ke=te),c[V+$]=ye+Ee,h[V+$+I]=fe-ke,c[V+$+I]=ye-Ee,$!==_&&(te=n*R-g*H,H=n*H+g*R,R=te)}},W.prototype.guessLen13b=function(t,r){var h=1|Math.max(r,t),c=1&h,C=0;for(h=h/2|0;h;h>>>=1)C++;return 1<<C+1+c},W.prototype.conjugate=function(t,r,h){if(!(h<=1))for(var c=0;c<h/2;c++){var C=t[c];t[c]=t[h-c-1],t[h-c-1]=C,C=r[c],r[c]=-r[h-c-1],r[h-c-1]=-C}},W.prototype.normalize13b=function(t,r){for(var h=0,c=0;c<r/2;c++){var C=8192*Math.round(t[2*c+1]/r)+Math.round(t[2*c]/r)+h;t[c]=67108863&C,h=C<67108864?0:C/67108864|0}return t},W.prototype.convert13b=function(t,r,h,c){for(var C=0,S=0;S<r;S++)h[2*S]=8191&(C+=0|t[S]),h[2*S+1]=8191&(C>>>=13),C>>>=13;for(S=2*r;S<c;++S)h[S]=0;u(0===C),u(0==(-8192&C))},W.prototype.stub=function(t){for(var r=new Array(t),h=0;h<t;h++)r[h]=0;return r},W.prototype.mulp=function(t,r,h){var c=2*this.guessLen13b(t.length,r.length),C=this.makeRBT(c),S=this.stub(c),I=new Array(c),_=new Array(c),n=new Array(c),g=new Array(c),V=new Array(c),R=new Array(c),H=h.words;H.length=c,this.convert13b(t.words,t.length,I,c),this.convert13b(r.words,r.length,g,c),this.transform(I,S,_,n,c,C),this.transform(g,S,V,R,c,C);for(var $=0;$<c;$++){var fe=_[$]*V[$]-n[$]*R[$];n[$]=_[$]*R[$]+n[$]*V[$],_[$]=fe}return this.conjugate(_,n,c),this.transform(_,n,H,S,c,C),this.conjugate(H,S,c),this.normalize13b(H,c),h.negative=t.negative^r.negative,h.length=t.length+r.length,h.strip()},a.prototype.mul=function(t){var r=new a(null);return r.words=new Array(this.length+t.length),this.mulTo(t,r)},a.prototype.mulf=function(t){var r=new a(null);return r.words=new Array(this.length+t.length),U(this,t,r)},a.prototype.imul=function(t){return this.clone().mulTo(t,this)},a.prototype.imuln=function(t){u("number"==typeof t),u(t<67108864);for(var r=0,h=0;h<this.length;h++){var c=(0|this.words[h])*t,C=(67108863&c)+(67108863&r);r>>=26,r+=c/67108864|0,r+=C>>>26,this.words[h]=67108863&C}return 0!==r&&(this.words[h]=r,this.length++),this},a.prototype.muln=function(t){return this.clone().imuln(t)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(t){var r=function E(x){for(var t=new Array(x.bitLength()),r=0;r<t.length;r++){var c=r%26;t[r]=(x.words[r/26|0]&1<<c)>>>c}return t}(t);if(0===r.length)return new a(1);for(var h=this,c=0;c<r.length&&0===r[c];c++,h=h.sqr());if(++c<r.length)for(var C=h.sqr();c<r.length;c++,C=C.sqr())0!==r[c]&&(h=h.mul(C));return h},a.prototype.iushln=function(t){u("number"==typeof t&&t>=0);var C,r=t%26,h=(t-r)/26,c=67108863>>>26-r<<26-r;if(0!==r){var S=0;for(C=0;C<this.length;C++){var I=this.words[C]&c;this.words[C]=(0|this.words[C])-I<<r|S,S=I>>>26-r}S&&(this.words[C]=S,this.length++)}if(0!==h){for(C=this.length-1;C>=0;C--)this.words[C+h]=this.words[C];for(C=0;C<h;C++)this.words[C]=0;this.length+=h}return this.strip()},a.prototype.ishln=function(t){return u(0===this.negative),this.iushln(t)},a.prototype.iushrn=function(t,r,h){var c;u("number"==typeof t&&t>=0),c=r?(r-r%26)/26:0;var C=t%26,S=Math.min((t-C)/26,this.length),I=67108863^67108863>>>C<<C,_=h;if(c-=S,c=Math.max(0,c),_){for(var n=0;n<S;n++)_.words[n]=this.words[n];_.length=S}if(0!==S)if(this.length>S)for(this.length-=S,n=0;n<this.length;n++)this.words[n]=this.words[n+S];else this.words[0]=0,this.length=1;var g=0;for(n=this.length-1;n>=0&&(0!==g||n>=c);n--){var V=0|this.words[n];this.words[n]=g<<26-C|V>>>C,g=V&I}return _&&0!==g&&(_.words[_.length++]=g),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(t,r,h){return u(0===this.negative),this.iushrn(t,r,h)},a.prototype.shln=function(t){return this.clone().ishln(t)},a.prototype.ushln=function(t){return this.clone().iushln(t)},a.prototype.shrn=function(t){return this.clone().ishrn(t)},a.prototype.ushrn=function(t){return this.clone().iushrn(t)},a.prototype.testn=function(t){u("number"==typeof t&&t>=0);var r=t%26,h=(t-r)/26;return!(this.length<=h||!(this.words[h]&1<<r))},a.prototype.imaskn=function(t){u("number"==typeof t&&t>=0);var r=t%26,h=(t-r)/26;return u(0===this.negative,"imaskn works only with positive numbers"),this.length<=h?this:(0!==r&&h++,this.length=Math.min(h,this.length),0!==r&&(this.words[this.length-1]&=67108863^67108863>>>r<<r),this.strip())},a.prototype.maskn=function(t){return this.clone().imaskn(t)},a.prototype.iaddn=function(t){return u("number"==typeof t),u(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},a.prototype._iaddn=function(t){this.words[0]+=t;for(var r=0;r<this.length&&this.words[r]>=67108864;r++)this.words[r]-=67108864,r===this.length-1?this.words[r+1]=1:this.words[r+1]++;return this.length=Math.max(this.length,r+1),this},a.prototype.isubn=function(t){if(u("number"==typeof t),u(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r<this.length&&this.words[r]<0;r++)this.words[r]+=67108864,this.words[r+1]-=1;return this.strip()},a.prototype.addn=function(t){return this.clone().iaddn(t)},a.prototype.subn=function(t){return this.clone().isubn(t)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(t,r,h){var C;this._expand(t.length+h);var S,I=0;for(C=0;C<t.length;C++){S=(0|this.words[C+h])+I;var _=(0|t.words[C])*r;I=((S-=67108863&_)>>26)-(_/67108864|0),this.words[C+h]=67108863&S}for(;C<this.length-h;C++)I=(S=(0|this.words[C+h])+I)>>26,this.words[C+h]=67108863&S;if(0===I)return this.strip();for(u(-1===I),I=0,C=0;C<this.length;C++)I=(S=-(0|this.words[C])+I)>>26,this.words[C]=67108863&S;return this.negative=1,this.strip()},a.prototype._wordDiv=function(t,r){var h,c=this.clone(),C=t,S=0|C.words[C.length-1];0!=(h=26-this._countBits(S))&&(C=C.ushln(h),c.iushln(h),S=0|C.words[C.length-1]);var n,_=c.length-C.length;if("mod"!==r){(n=new a(null)).length=_+1,n.words=new Array(n.length);for(var g=0;g<n.length;g++)n.words[g]=0}var V=c.clone()._ishlnsubmul(C,1,_);0===V.negative&&(c=V,n&&(n.words[_]=1));for(var R=_-1;R>=0;R--){var H=67108864*(0|c.words[C.length+R])+(0|c.words[C.length+R-1]);for(H=Math.min(H/S|0,67108863),c._ishlnsubmul(C,H,R);0!==c.negative;)H--,c.negative=0,c._ishlnsubmul(C,1,R),c.isZero()||(c.negative^=1);n&&(n.words[R]=H)}return n&&n.strip(),c.strip(),"div"!==r&&0!==h&&c.iushrn(h),{div:n||null,mod:c}},a.prototype.divmod=function(t,r,h){return u(!t.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===t.negative?(S=this.neg().divmod(t,r),"mod"!==r&&(c=S.div.neg()),"div"!==r&&(C=S.mod.neg(),h&&0!==C.negative&&C.iadd(t)),{div:c,mod:C}):0===this.negative&&0!==t.negative?(S=this.divmod(t.neg(),r),"mod"!==r&&(c=S.div.neg()),{div:c,mod:S.mod}):0!=(this.negative&t.negative)?(S=this.neg().divmod(t.neg(),r),"div"!==r&&(C=S.mod.neg(),h&&0!==C.negative&&C.isub(t)),{div:S.div,mod:C}):t.length>this.length||this.cmp(t)<0?{div:new a(0),mod:this}:1===t.length?"div"===r?{div:this.divn(t.words[0]),mod:null}:"mod"===r?{div:null,mod:new a(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new a(this.modn(t.words[0]))}:this._wordDiv(t,r);var c,C,S},a.prototype.div=function(t){return this.divmod(t,"div",!1).div},a.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},a.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},a.prototype.divRound=function(t){var r=this.divmod(t);if(r.mod.isZero())return r.div;var h=0!==r.div.negative?r.mod.isub(t):r.mod,c=t.ushrn(1),C=t.andln(1),S=h.cmp(c);return S<0||1===C&&0===S?r.div:0!==r.div.negative?r.div.isubn(1):r.div.iaddn(1)},a.prototype.modn=function(t){u(t<=67108863);for(var r=(1<<26)%t,h=0,c=this.length-1;c>=0;c--)h=(r*h+(0|this.words[c]))%t;return h},a.prototype.idivn=function(t){u(t<=67108863);for(var r=0,h=this.length-1;h>=0;h--){var c=(0|this.words[h])+67108864*r;this.words[h]=c/t|0,r=c%t}return this.strip()},a.prototype.divn=function(t){return this.clone().idivn(t)},a.prototype.egcd=function(t){u(0===t.negative),u(!t.isZero());var r=this,h=t.clone();r=0!==r.negative?r.umod(t):r.clone();for(var c=new a(1),C=new a(0),S=new a(0),I=new a(1),_=0;r.isEven()&&h.isEven();)r.iushrn(1),h.iushrn(1),++_;for(var n=h.clone(),g=r.clone();!r.isZero();){for(var V=0,R=1;0==(r.words[0]&R)&&V<26;++V,R<<=1);if(V>0)for(r.iushrn(V);V-- >0;)(c.isOdd()||C.isOdd())&&(c.iadd(n),C.isub(g)),c.iushrn(1),C.iushrn(1);for(var H=0,$=1;0==(h.words[0]&$)&&H<26;++H,$<<=1);if(H>0)for(h.iushrn(H);H-- >0;)(S.isOdd()||I.isOdd())&&(S.iadd(n),I.isub(g)),S.iushrn(1),I.iushrn(1);r.cmp(h)>=0?(r.isub(h),c.isub(S),C.isub(I)):(h.isub(r),S.isub(c),I.isub(C))}return{a:S,b:I,gcd:h.iushln(_)}},a.prototype._invmp=function(t){u(0===t.negative),u(!t.isZero());var V,r=this,h=t.clone();r=0!==r.negative?r.umod(t):r.clone();for(var c=new a(1),C=new a(0),S=h.clone();r.cmpn(1)>0&&h.cmpn(1)>0;){for(var I=0,_=1;0==(r.words[0]&_)&&I<26;++I,_<<=1);if(I>0)for(r.iushrn(I);I-- >0;)c.isOdd()&&c.iadd(S),c.iushrn(1);for(var n=0,g=1;0==(h.words[0]&g)&&n<26;++n,g<<=1);if(n>0)for(h.iushrn(n);n-- >0;)C.isOdd()&&C.iadd(S),C.iushrn(1);r.cmp(h)>=0?(r.isub(h),c.isub(C)):(h.isub(r),C.isub(c))}return(V=0===r.cmpn(1)?c:C).cmpn(0)<0&&V.iadd(t),V},a.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var r=this.clone(),h=t.clone();r.negative=0,h.negative=0;for(var c=0;r.isEven()&&h.isEven();c++)r.iushrn(1),h.iushrn(1);for(;;){for(;r.isEven();)r.iushrn(1);for(;h.isEven();)h.iushrn(1);var C=r.cmp(h);if(C<0){var S=r;r=h,h=S}else if(0===C||0===h.cmpn(1))break;r.isub(h)}return h.iushln(c)},a.prototype.invm=function(t){return this.egcd(t).a.umod(t)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(t){return this.words[0]&t},a.prototype.bincn=function(t){u("number"==typeof t);var r=t%26,h=(t-r)/26,c=1<<r;if(this.length<=h)return this._expand(h+1),this.words[h]|=c,this;for(var C=c,S=h;0!==C&&S<this.length;S++){var I=0|this.words[S];C=(I+=C)>>>26,this.words[S]=I&=67108863}return 0!==C&&(this.words[S]=C,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(t){var h,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)h=1;else{r&&(t=-t),u(t<=67108863,"Number is too big");var c=0|this.words[0];h=c===t?0:c<t?-1:1}return 0!==this.negative?0|-h:h},a.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var r=this.ucmp(t);return 0!==this.negative?0|-r:r},a.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var r=0,h=this.length-1;h>=0;h--){var c=0|this.words[h],C=0|t.words[h];if(c!==C){c<C?r=-1:c>C&&(r=1);break}}return r},a.prototype.gtn=function(t){return 1===this.cmpn(t)},a.prototype.gt=function(t){return 1===this.cmp(t)},a.prototype.gten=function(t){return this.cmpn(t)>=0},a.prototype.gte=function(t){return this.cmp(t)>=0},a.prototype.ltn=function(t){return-1===this.cmpn(t)},a.prototype.lt=function(t){return-1===this.cmp(t)},a.prototype.lten=function(t){return this.cmpn(t)<=0},a.prototype.lte=function(t){return this.cmp(t)<=0},a.prototype.eqn=function(t){return 0===this.cmpn(t)},a.prototype.eq=function(t){return 0===this.cmp(t)},a.red=function(t){return new J(t)},a.prototype.toRed=function(t){return u(!this.red,"Already a number in reduction context"),u(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},a.prototype.fromRed=function(){return u(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(t){return this.red=t,this},a.prototype.forceRed=function(t){return u(!this.red,"Already a number in reduction context"),this._forceRed(t)},a.prototype.redAdd=function(t){return u(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},a.prototype.redIAdd=function(t){return u(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},a.prototype.redSub=function(t){return u(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},a.prototype.redISub=function(t){return u(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},a.prototype.redShl=function(t){return u(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},a.prototype.redMul=function(t){return u(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},a.prototype.redIMul=function(t){return u(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},a.prototype.redSqr=function(){return u(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return u(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return u(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return u(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return u(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(t){return u(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var ne={k256:null,p224:null,p192:null,p25519:null};function Q(x,t){this.name=x,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function le(){Q.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function q(){Q.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ie(){Q.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function se(){Q.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function J(x){if("string"==typeof x){var t=a._prime(x);this.m=t.p,this.prime=t}else u(x.gtn(1),"modulus must be greater than 1"),this.m=x,this.prime=null}function me(x){J.call(this,x),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(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)}Q.prototype._tmp=function(){var t=new a(null);return t.words=new Array(Math.ceil(this.n/13)),t},Q.prototype.ireduce=function(t){var h,r=t;do{this.split(r,this.tmp),h=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(h>this.n);var c=h<this.n?-1:r.ucmp(this.p);return 0===c?(r.words[0]=0,r.length=1):c>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},Q.prototype.split=function(t,r){t.iushrn(this.n,0,r)},Q.prototype.imulK=function(t){return t.imul(this.k)},b(le,Q),le.prototype.split=function(t,r){for(var h=4194303,c=Math.min(t.length,9),C=0;C<c;C++)r.words[C]=t.words[C];if(r.length=c,t.length<=9)return t.words[0]=0,void(t.length=1);var S=t.words[9];for(r.words[r.length++]=S&h,C=10;C<t.length;C++){var I=0|t.words[C];t.words[C-10]=(I&h)<<4|S>>>22,S=I}t.words[C-10]=S>>>=22,t.length-=0===S&&t.length>10?10:9},le.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var r=0,h=0;h<t.length;h++){var c=0|t.words[h];t.words[h]=67108863&(r+=977*c),r=64*c+(r/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},b(q,Q),b(ie,Q),b(se,Q),se.prototype.imulK=function(t){for(var r=0,h=0;h<t.length;h++){var c=19*(0|t.words[h])+r,C=67108863&c;c>>>=26,t.words[h]=C,r=c}return 0!==r&&(t.words[t.length++]=r),t},a._prime=function(t){if(ne[t])return ne[t];var r;if("k256"===t)r=new le;else if("p224"===t)r=new q;else if("p192"===t)r=new ie;else{if("p25519"!==t)throw new Error("Unknown prime "+t);r=new se}return ne[t]=r,r},J.prototype._verify1=function(t){u(0===t.negative,"red works only with positives"),u(t.red,"red works only with red numbers")},J.prototype._verify2=function(t,r){u(0==(t.negative|r.negative),"red works only with positives"),u(t.red&&t.red===r.red,"red works only with red numbers")},J.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},J.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},J.prototype.add=function(t,r){this._verify2(t,r);var h=t.add(r);return h.cmp(this.m)>=0&&h.isub(this.m),h._forceRed(this)},J.prototype.iadd=function(t,r){this._verify2(t,r);var h=t.iadd(r);return h.cmp(this.m)>=0&&h.isub(this.m),h},J.prototype.sub=function(t,r){this._verify2(t,r);var h=t.sub(r);return h.cmpn(0)<0&&h.iadd(this.m),h._forceRed(this)},J.prototype.isub=function(t,r){this._verify2(t,r);var h=t.isub(r);return h.cmpn(0)<0&&h.iadd(this.m),h},J.prototype.shl=function(t,r){return this._verify1(t),this.imod(t.ushln(r))},J.prototype.imul=function(t,r){return this._verify2(t,r),this.imod(t.imul(r))},J.prototype.mul=function(t,r){return this._verify2(t,r),this.imod(t.mul(r))},J.prototype.isqr=function(t){return this.imul(t,t.clone())},J.prototype.sqr=function(t){return this.mul(t,t)},J.prototype.sqrt=function(t){if(t.isZero())return t.clone();var r=this.m.andln(3);if(u(r%2==1),3===r){var h=this.m.add(new a(1)).iushrn(2);return this.pow(t,h)}for(var c=this.m.subn(1),C=0;!c.isZero()&&0===c.andln(1);)C++,c.iushrn(1);u(!c.isZero());var S=new a(1).toRed(this),I=S.redNeg(),_=this.m.subn(1).iushrn(1),n=this.m.bitLength();for(n=new a(2*n*n).toRed(this);0!==this.pow(n,_).cmp(I);)n.redIAdd(I);for(var g=this.pow(n,c),V=this.pow(t,c.addn(1).iushrn(1)),R=this.pow(t,c),H=C;0!==R.cmp(S);){for(var $=R,fe=0;0!==$.cmp(S);fe++)$=$.redSqr();u(fe<H);var ye=this.pow(g,new a(1).iushln(H-fe-1));V=V.redMul(ye),g=ye.redSqr(),R=R.redMul(g),H=fe}return V},J.prototype.invm=function(t){var r=t._invmp(this.m);return 0!==r.negative?(r.negative=0,this.imod(r).redNeg()):this.imod(r)},J.prototype.pow=function(t,r){if(r.isZero())return new a(1).toRed(this);if(0===r.cmpn(1))return t.clone();var c=new Array(16);c[0]=new a(1).toRed(this),c[1]=t;for(var C=2;C<c.length;C++)c[C]=this.mul(c[C-1],t);var S=c[0],I=0,_=0,n=r.bitLength()%26;for(0===n&&(n=26),C=r.length-1;C>=0;C--){for(var g=r.words[C],V=n-1;V>=0;V--){var R=g>>V&1;S!==c[0]&&(S=this.sqr(S)),0!==R||0!==I?(I<<=1,I|=R,(4==++_||0===C&&0===V)&&(S=this.mul(S,c[I]),_=0,I=0)):_=0}n=26}return S},J.prototype.convertTo=function(t){var r=t.umod(this.m);return r===t?r.clone():r},J.prototype.convertFrom=function(t){var r=t.clone();return r.red=null,r},a.mont=function(t){return new me(t)},b(me,J),me.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},me.prototype.convertFrom=function(t){var r=this.imod(t.mul(this.rinv));return r.red=null,r},me.prototype.imul=function(t,r){if(t.isZero()||r.isZero())return t.words[0]=0,t.length=1,t;var h=t.imul(r),c=h.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),C=h.isub(c).iushrn(this.shift),S=C;return C.cmp(this.m)>=0?S=C.isub(this.m):C.cmpn(0)<0&&(S=C.iadd(this.m)),S._forceRed(this)},me.prototype.mul=function(t,r){if(t.isZero()||r.isZero())return new a(0)._forceRed(this);var h=t.mul(r),c=h.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),C=h.isub(c).iushrn(this.shift),S=C;return C.cmp(this.m)>=0?S=C.isub(this.m):C.cmpn(0)<0&&(S=C.iadd(this.m)),S._forceRed(this)},me.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(He=p.nmd(He),this)},6386:(He,j,p)=>{"use strict";var e=p(3894),i=p(8095),u=p(5634),b=p(5244),a=p(1052);function y(d){a.call(this,"digest"),this._hash=d}e(y,a),y.prototype._update=function(d){this._hash.update(d)},y.prototype._final=function(){return this._hash.digest()},He.exports=function(P){return"md5"===(P=P.toLowerCase())?new i:"rmd160"===P||"ripemd160"===P?new u:new y(b(P))}},5640:(He,j,p)=>{var e=p(8095);He.exports=function(i){return(new e).update(i).digest()}},4529:(He,j,p)=>{"use strict";var e=p(3894),i=p(7309),u=p(1052),b=p(3502).Buffer,a=p(5640),y=p(5634),d=p(5244),P=b.alloc(128);function D(T,M){u.call(this,"digest"),"string"==typeof M&&(M=b.from(M));var A="sha512"===T||"sha384"===T?128:64;this._alg=T,this._key=M,M.length>A?M=("rmd160"===T?new y:d(T)).update(M).digest():M.length<A&&(M=b.concat([M,P],A));for(var k=this._ipad=b.allocUnsafe(A),w=this._opad=b.allocUnsafe(A),z=0;z<A;z++)k[z]=54^M[z],w[z]=92^M[z];this._hash="rmd160"===T?new y:d(T),this._hash.update(k)}e(D,u),D.prototype._update=function(T){this._hash.update(T)},D.prototype._final=function(){var T=this._hash.digest();return("rmd160"===this._alg?new y:d(this._alg)).update(this._opad).update(T).digest()},He.exports=function(M,A){return"rmd160"===(M=M.toLowerCase())||"ripemd160"===M?new D("rmd160",A):"md5"===M?new i(a,A):new D(M,A)}},7309:(He,j,p)=>{"use strict";var e=p(3894),i=p(3502).Buffer,u=p(1052),b=i.alloc(128),a=64;function y(d,P){u.call(this,"digest"),"string"==typeof P&&(P=i.from(P)),this._alg=d,this._key=P,P.length>a?P=d(P):P.length<a&&(P=i.concat([P,b],a));for(var D=this._ipad=i.allocUnsafe(a),T=this._opad=i.allocUnsafe(a),M=0;M<a;M++)D[M]=54^P[M],T[M]=92^P[M];this._hash=[D]}e(y,u),y.prototype._update=function(d){this._hash.push(d)},y.prototype._final=function(){var d=this._alg(i.concat(this._hash));return this._alg(i.concat([this._opad,d]))},He.exports=y},1348:(He,j,p)=>{"use strict";j.randomBytes=j.rng=j.pseudoRandomBytes=j.prng=p(3753),j.createHash=j.Hash=p(6386),j.createHmac=j.Hmac=p(4529);var e=p(7793),i=Object.keys(e),u=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(i);j.getHashes=function(){return u};var b=p(9357);j.pbkdf2=b.pbkdf2,j.pbkdf2Sync=b.pbkdf2Sync;var a=p(5255);j.Cipher=a.Cipher,j.createCipher=a.createCipher,j.Cipheriv=a.Cipheriv,j.createCipheriv=a.createCipheriv,j.Decipher=a.Decipher,j.createDecipher=a.createDecipher,j.Decipheriv=a.Decipheriv,j.createDecipheriv=a.createDecipheriv,j.getCiphers=a.getCiphers,j.listCiphers=a.listCiphers;var y=p(8829);j.DiffieHellmanGroup=y.DiffieHellmanGroup,j.createDiffieHellmanGroup=y.createDiffieHellmanGroup,j.getDiffieHellman=y.getDiffieHellman,j.createDiffieHellman=y.createDiffieHellman,j.DiffieHellman=y.DiffieHellman;var d=p(3923);j.createSign=d.createSign,j.Sign=d.Sign,j.createVerify=d.createVerify,j.Verify=d.Verify,j.createECDH=p(4746);var P=p(3701);j.publicEncrypt=P.publicEncrypt,j.privateEncrypt=P.privateEncrypt,j.publicDecrypt=P.publicDecrypt,j.privateDecrypt=P.privateDecrypt;var D=p(4275);j.randomFill=D.randomFill,j.randomFillSync=D.randomFillSync,j.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},j.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},3684:(He,j,p)=>{"use strict";j.utils=p(7451),j.Cipher=p(8170),j.DES=p(4631),j.CBC=p(9454),j.EDE=p(1862)},9454:(He,j,p)=>{"use strict";var e=p(2391),i=p(3894),u={};function b(y){e.equal(y.length,8,"Invalid IV length"),this.iv=new Array(8);for(var d=0;d<this.iv.length;d++)this.iv[d]=y[d]}j.instantiate=function a(y){function d(M){y.call(this,M),this._cbcInit()}i(d,y);for(var P=Object.keys(u),D=0;D<P.length;D++){var T=P[D];d.prototype[T]=u[T]}return d.create=function(A){return new d(A)},d},u._cbcInit=function(){var d=new b(this.options.iv);this._cbcState=d},u._update=function(d,P,D,T){var A=this.constructor.super_.prototype,E=this._cbcState.iv;if("encrypt"===this.type){for(var k=0;k<this.blockSize;k++)E[k]^=d[P+k];for(A._update.call(this,E,0,D,T),k=0;k<this.blockSize;k++)E[k]=D[T+k]}else{for(A._update.call(this,d,P,D,T),k=0;k<this.blockSize;k++)D[T+k]^=E[k];for(k=0;k<this.blockSize;k++)E[k]=d[P+k]}}},8170:(He,j,p)=>{"use strict";var e=p(2391);function i(u){this.options=u,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}He.exports=i,i.prototype._init=function(){},i.prototype.update=function(b){return 0===b.length?[]:"decrypt"===this.type?this._updateDecrypt(b):this._updateEncrypt(b)},i.prototype._buffer=function(b,a){for(var y=Math.min(this.buffer.length-this.bufferOff,b.length-a),d=0;d<y;d++)this.buffer[this.bufferOff+d]=b[a+d];return this.bufferOff+=y,y},i.prototype._flushBuffer=function(b,a){return this._update(this.buffer,0,b,a),this.bufferOff=0,this.blockSize},i.prototype._updateEncrypt=function(b){var a=0,y=0,P=new Array(((this.bufferOff+b.length)/this.blockSize|0)*this.blockSize);0!==this.bufferOff&&(a+=this._buffer(b,a),this.bufferOff===this.buffer.length&&(y+=this._flushBuffer(P,y)));for(var D=b.length-(b.length-a)%this.blockSize;a<D;a+=this.blockSize)this._update(b,a,P,y),y+=this.blockSize;for(;a<b.length;a++,this.bufferOff++)this.buffer[this.bufferOff]=b[a];return P},i.prototype._updateDecrypt=function(b){for(var a=0,y=0,d=Math.ceil((this.bufferOff+b.length)/this.blockSize)-1,P=new Array(d*this.blockSize);d>0;d--)a+=this._buffer(b,a),y+=this._flushBuffer(P,y);return a+=this._buffer(b,a),P},i.prototype.final=function(b){var a,y;return b&&(a=this.update(b)),y="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),a?a.concat(y):y},i.prototype._pad=function(b,a){if(0===a)return!1;for(;a<b.length;)b[a++]=0;return!0},i.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var b=new Array(this.blockSize);return this._update(this.buffer,0,b,0),b},i.prototype._unpad=function(b){return b},i.prototype._finalDecrypt=function(){e.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var b=new Array(this.blockSize);return this._flushBuffer(b,0),this._unpad(b)}},4631:(He,j,p)=>{"use strict";var e=p(2391),i=p(3894),u=p(7451),b=p(8170);function a(){this.tmp=new Array(2),this.keys=null}function y(P){b.call(this,P);var D=new a;this._desState=D,this.deriveKeys(D,P.key)}i(y,b),He.exports=y,y.create=function(D){return new y(D)};var d=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];y.prototype.deriveKeys=function(D,T){D.keys=new Array(32),e.equal(T.length,this.blockSize,"Invalid key length");var M=u.readUInt32BE(T,0),A=u.readUInt32BE(T,4);u.pc1(M,A,D.tmp,0),M=D.tmp[0],A=D.tmp[1];for(var E=0;E<D.keys.length;E+=2){var k=d[E>>>1];M=u.r28shl(M,k),A=u.r28shl(A,k),u.pc2(M,A,D.keys,E)}},y.prototype._update=function(D,T,M,A){var E=this._desState,k=u.readUInt32BE(D,T),w=u.readUInt32BE(D,T+4);u.ip(k,w,E.tmp,0),k=E.tmp[0],w=E.tmp[1],"encrypt"===this.type?this._encrypt(E,k,w,E.tmp,0):this._decrypt(E,k,w,E.tmp,0),w=E.tmp[1],u.writeUInt32BE(M,k=E.tmp[0],A),u.writeUInt32BE(M,w,A+4)},y.prototype._pad=function(D,T){for(var M=D.length-T,A=T;A<D.length;A++)D[A]=M;return!0},y.prototype._unpad=function(D){for(var T=D[D.length-1],M=D.length-T;M<D.length;M++)e.equal(D[M],T);return D.slice(0,D.length-T)},y.prototype._encrypt=function(D,T,M,A,E){for(var k=T,w=M,z=0;z<D.keys.length;z+=2){var U=D.keys[z],W=D.keys[z+1];u.expand(w,D.tmp,0);var ne=u.substitute(U^=D.tmp[0],W^=D.tmp[1]),le=w;w=(k^u.permute(ne))>>>0,k=le}u.rip(w,k,A,E)},y.prototype._decrypt=function(D,T,M,A,E){for(var k=M,w=T,z=D.keys.length-2;z>=0;z-=2){var U=D.keys[z],W=D.keys[z+1];u.expand(k,D.tmp,0);var ne=u.substitute(U^=D.tmp[0],W^=D.tmp[1]),le=k;k=(w^u.permute(ne))>>>0,w=le}u.rip(k,w,A,E)}},1862:(He,j,p)=>{"use strict";var e=p(2391),i=p(3894),u=p(8170),b=p(4631);function a(d,P){e.equal(P.length,24,"Invalid key length");var D=P.slice(0,8),T=P.slice(8,16),M=P.slice(16,24);this.ciphers="encrypt"===d?[b.create({type:"encrypt",key:D}),b.create({type:"decrypt",key:T}),b.create({type:"encrypt",key:M})]:[b.create({type:"decrypt",key:M}),b.create({type:"encrypt",key:T}),b.create({type:"decrypt",key:D})]}function y(d){u.call(this,d);var P=new a(this.type,this.options.key);this._edeState=P}i(y,u),He.exports=y,y.create=function(P){return new y(P)},y.prototype._update=function(P,D,T,M){var A=this._edeState;A.ciphers[0]._update(P,D,T,M),A.ciphers[1]._update(T,M,T,M),A.ciphers[2]._update(T,M,T,M)},y.prototype._pad=b.prototype._pad,y.prototype._unpad=b.prototype._unpad},7451:(He,j)=>{"use strict";j.readUInt32BE=function(b,a){return(b[0+a]<<24|b[1+a]<<16|b[2+a]<<8|b[3+a])>>>0},j.writeUInt32BE=function(b,a,y){b[0+y]=a>>>24,b[1+y]=a>>>16&255,b[2+y]=a>>>8&255,b[3+y]=255&a},j.ip=function(b,a,y,d){for(var P=0,D=0,T=6;T>=0;T-=2){for(var M=0;M<=24;M+=8)P<<=1,P|=a>>>M+T&1;for(M=0;M<=24;M+=8)P<<=1,P|=b>>>M+T&1}for(T=6;T>=0;T-=2){for(M=1;M<=25;M+=8)D<<=1,D|=a>>>M+T&1;for(M=1;M<=25;M+=8)D<<=1,D|=b>>>M+T&1}y[d+0]=P>>>0,y[d+1]=D>>>0},j.rip=function(b,a,y,d){for(var P=0,D=0,T=0;T<4;T++)for(var M=24;M>=0;M-=8)P<<=1,P|=a>>>M+T&1,P<<=1,P|=b>>>M+T&1;for(T=4;T<8;T++)for(M=24;M>=0;M-=8)D<<=1,D|=a>>>M+T&1,D<<=1,D|=b>>>M+T&1;y[d+0]=P>>>0,y[d+1]=D>>>0},j.pc1=function(b,a,y,d){for(var P=0,D=0,T=7;T>=5;T--){for(var M=0;M<=24;M+=8)P<<=1,P|=a>>M+T&1;for(M=0;M<=24;M+=8)P<<=1,P|=b>>M+T&1}for(M=0;M<=24;M+=8)P<<=1,P|=a>>M+T&1;for(T=1;T<=3;T++){for(M=0;M<=24;M+=8)D<<=1,D|=a>>M+T&1;for(M=0;M<=24;M+=8)D<<=1,D|=b>>M+T&1}for(M=0;M<=24;M+=8)D<<=1,D|=b>>M+T&1;y[d+0]=P>>>0,y[d+1]=D>>>0},j.r28shl=function(b,a){return b<<a&268435455|b>>>28-a};var p=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];j.pc2=function(b,a,y,d){for(var P=0,D=0,T=p.length>>>1,M=0;M<T;M++)P<<=1,P|=b>>>p[M]&1;for(M=T;M<p.length;M++)D<<=1,D|=a>>>p[M]&1;y[d+0]=P>>>0,y[d+1]=D>>>0},j.expand=function(b,a,y){var d=0,P=0;d=(1&b)<<5|b>>>27;for(var D=23;D>=15;D-=4)d<<=6,d|=b>>>D&63;for(D=11;D>=3;D-=4)P|=b>>>D&63,P<<=6;P|=(31&b)<<1|b>>>31,a[y+0]=d>>>0,a[y+1]=P>>>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];j.substitute=function(b,a){for(var y=0,d=0;d<4;d++)y<<=4,y|=e[64*d+(b>>>18-6*d&63)];for(d=0;d<4;d++)y<<=4,y|=e[256+64*d+(a>>>18-6*d&63)];return y>>>0};var i=[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];j.permute=function(b){for(var a=0,y=0;y<i.length;y++)a<<=1,a|=b>>>i[y]&1;return a>>>0},j.padSplit=function(b,a,y){for(var d=b.toString(2);d.length<a;)d="0"+d;for(var P=[],D=0;D<a;D+=y)P.push(d.slice(D,D+y));return P.join(" ")}},8829:(He,j,p)=>{var e=p(5563),i=p(9799),u=p(1419),a={binary:!0,hex:!0,base64:!0};j.DiffieHellmanGroup=j.createDiffieHellmanGroup=j.getDiffieHellman=function b(d){var P=new Buffer(i[d].prime,"hex"),D=new Buffer(i[d].gen,"hex");return new u(P,D)},j.createDiffieHellman=j.DiffieHellman=function y(d,P,D,T){return Buffer.isBuffer(P)||void 0===a[P]?y(d,"binary",P,D):(P=P||"binary",T=T||"binary",D=D||new Buffer([2]),Buffer.isBuffer(D)||(D=new Buffer(D,T)),"number"==typeof d?new u(e(d,D),D,!0):(Buffer.isBuffer(d)||(d=new Buffer(d,P)),new u(d,D,!0)))}},1419:(He,j,p)=>{var e=p(8313),u=new(p(7079)),b=new e(24),a=new e(11),y=new e(10),d=new e(3),P=new e(7),D=p(5563),T=p(3753);function M(U,W){return W=W||"utf8",Buffer.isBuffer(U)||(U=new Buffer(U,W)),this._pub=new e(U),this}function A(U,W){return W=W||"utf8",Buffer.isBuffer(U)||(U=new Buffer(U,W)),this._priv=new e(U),this}He.exports=w;var E={};function w(U,W,ne){this.setGenerator(W),this.__prime=new e(U),this._prime=e.mont(this.__prime),this._primeLen=U.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,ne?(this.setPublicKey=M,this.setPrivateKey=A):this._primeCode=8}function z(U,W){var ne=new Buffer(U.toArray());return W?ne.toString(W):ne}Object.defineProperty(w.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function k(U,W){var ne=W.toString("hex"),Q=[ne,U.toString(16)].join("_");if(Q in E)return E[Q];var q,le=0;if(U.isEven()||!D.simpleSieve||!D.fermatTest(U)||!u.test(U))return le+=1,E[Q]=le+="02"===ne||"05"===ne?8:4,le;switch(u.test(U.shrn(1))||(le+=2),ne){case"02":U.mod(b).cmp(a)&&(le+=8);break;case"05":(q=U.mod(y)).cmp(d)&&q.cmp(P)&&(le+=8);break;default:le+=4}return E[Q]=le,le}(this.__prime,this.__gen)),this._primeCode}}),w.prototype.generateKeys=function(){return this._priv||(this._priv=new e(T(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},w.prototype.computeSecret=function(U){var W=(U=(U=new e(U)).toRed(this._prime)).redPow(this._priv).fromRed(),ne=new Buffer(W.toArray()),Q=this.getPrime();if(ne.length<Q.length){var le=new Buffer(Q.length-ne.length);le.fill(0),ne=Buffer.concat([le,ne])}return ne},w.prototype.getPublicKey=function(W){return z(this._pub,W)},w.prototype.getPrivateKey=function(W){return z(this._priv,W)},w.prototype.getPrime=function(U){return z(this.__prime,U)},w.prototype.getGenerator=function(U){return z(this._gen,U)},w.prototype.setGenerator=function(U,W){return W=W||"utf8",Buffer.isBuffer(U)||(U=new Buffer(U,W)),this.__gen=U,this._gen=new e(U),this}},5563:(He,j,p)=>{var e=p(3753);He.exports=le,le.simpleSieve=ne,le.fermatTest=Q;var i=p(8313),u=new i(24),a=new(p(7079)),y=new i(1),d=new i(2),P=new i(5),M=(new i(16),new i(8),new i(10)),A=new i(3),k=(new i(7),new i(11)),w=new i(4),U=(new i(12),null);function ne(q){for(var ie=function W(){if(null!==U)return U;var ie=[];ie[0]=2;for(var se=1,J=3;J<1048576;J+=2){for(var me=Math.ceil(Math.sqrt(J)),x=0;x<se&&ie[x]<=me&&J%ie[x]!=0;x++);se!==x&&ie[x]<=me||(ie[se++]=J)}return U=ie,ie}(),se=0;se<ie.length;se++)if(0===q.modn(ie[se]))return 0===q.cmpn(ie[se]);return!0}function Q(q){var ie=i.mont(q);return 0===d.toRed(ie).redPow(q.subn(1)).fromRed().cmpn(1)}function le(q,ie){if(q<16)return new i(2===ie||5===ie?[140,123]:[140,39]);ie=new i(ie);for(var se,J;;){for(se=new i(e(Math.ceil(q/8)));se.bitLength()>q;)se.ishrn(1);if(se.isEven()&&se.iadd(y),se.testn(1)||se.iadd(d),ie.cmp(d)){if(!ie.cmp(P))for(;se.mod(M).cmp(A);)se.iadd(w)}else for(;se.mod(u).cmp(k);)se.iadd(w);if(ne(J=se.shrn(1))&&ne(se)&&Q(J)&&Q(se)&&a.test(J)&&a.test(se))return se}}},8313:function(He,j,p){!function(e,i){"use strict";function u(x,t){if(!x)throw new Error(t||"Assertion failed")}function b(x,t){x.super_=t;var r=function(){};r.prototype=t.prototype,x.prototype=new r,x.prototype.constructor=x}function a(x,t,r){if(a.isBN(x))return x;this.negative=0,this.words=null,this.length=0,this.red=null,null!==x&&(("le"===t||"be"===t)&&(r=t,t=10),this._init(x||0,t||10,r||"be"))}var y;"object"==typeof e?e.exports=a:i.BN=a,a.BN=a,a.wordSize=26;try{y="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:p(7748).Buffer}catch(x){}function d(x,t){var r=x.charCodeAt(t);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function P(x,t,r){var h=d(x,r);return r-1>=t&&(h|=d(x,r-1)<<4),h}function D(x,t,r,h){for(var c=0,C=Math.min(x.length,r),S=t;S<C;S++){var I=x.charCodeAt(S)-48;c*=h,c+=I>=49?I-49+10:I>=17?I-17+10:I}return c}a.isBN=function(t){return t instanceof a||null!==t&&"object"==typeof t&&t.constructor.wordSize===a.wordSize&&Array.isArray(t.words)},a.max=function(t,r){return t.cmp(r)>0?t:r},a.min=function(t,r){return t.cmp(r)<0?t:r},a.prototype._init=function(t,r,h){if("number"==typeof t)return this._initNumber(t,r,h);if("object"==typeof t)return this._initArray(t,r,h);"hex"===r&&(r=16),u(r===(0|r)&&r>=2&&r<=36);var c=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(c++,this.negative=1),c<t.length&&(16===r?this._parseHex(t,c,h):(this._parseBase(t,r,c),"le"===h&&this._initArray(this.toArray(),r,h)))},a.prototype._initNumber=function(t,r,h){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(u(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===h&&this._initArray(this.toArray(),r,h)},a.prototype._initArray=function(t,r,h){if(u("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var c=0;c<this.length;c++)this.words[c]=0;var C,S,I=0;if("be"===h)for(c=t.length-1,C=0;c>=0;c-=3)this.words[C]|=(S=t[c]|t[c-1]<<8|t[c-2]<<16)<<I&67108863,this.words[C+1]=S>>>26-I&67108863,(I+=24)>=26&&(I-=26,C++);else if("le"===h)for(c=0,C=0;c<t.length;c+=3)this.words[C]|=(S=t[c]|t[c+1]<<8|t[c+2]<<16)<<I&67108863,this.words[C+1]=S>>>26-I&67108863,(I+=24)>=26&&(I-=26,C++);return this.strip()},a.prototype._parseHex=function(t,r,h){this.length=Math.ceil((t.length-r)/6),this.words=new Array(this.length);for(var c=0;c<this.length;c++)this.words[c]=0;var I,C=0,S=0;if("be"===h)for(c=t.length-1;c>=r;c-=2)I=P(t,r,c)<<C,this.words[S]|=67108863&I,C>=18?(C-=18,this.words[S+=1]|=I>>>26):C+=8;else for(c=(t.length-r)%2==0?r+1:r;c<t.length;c+=2)I=P(t,r,c)<<C,this.words[S]|=67108863&I,C>=18?(C-=18,this.words[S+=1]|=I>>>26):C+=8;this.strip()},a.prototype._parseBase=function(t,r,h){this.words=[0],this.length=1;for(var c=0,C=1;C<=67108863;C*=r)c++;c--,C=C/r|0;for(var S=t.length-h,I=S%c,_=Math.min(S,S-I)+h,n=0,g=h;g<_;g+=c)n=D(t,g,g+c,r),this.imuln(C),this.words[0]+n<67108864?this.words[0]+=n:this._iaddn(n);if(0!==I){var V=1;for(n=D(t,g,t.length,r),g=0;g<I;g++)V*=r;this.imuln(V),this.words[0]+n<67108864?this.words[0]+=n:this._iaddn(n)}this.strip()},a.prototype.copy=function(t){t.words=new Array(this.length);for(var r=0;r<this.length;r++)t.words[r]=this.words[r];t.length=this.length,t.negative=this.negative,t.red=this.red},a.prototype.clone=function(){var t=new a(null);return this.copy(t),t},a.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},a.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var T=["","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],A=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function k(x,t,r){r.negative=t.negative^x.negative;var h=x.length+t.length|0;r.length=h,h=h-1|0;var c=0|x.words[0],C=0|t.words[0],S=c*C,_=S/67108864|0;r.words[0]=67108863&S;for(var n=1;n<h;n++){for(var g=_>>>26,V=67108863&_,R=Math.min(n,t.length-1),H=Math.max(0,n-x.length+1);H<=R;H++)g+=(S=(c=0|x.words[n-H|0])*(C=0|t.words[H])+V)/67108864|0,V=67108863&S;r.words[n]=0|V,_=0|g}return 0!==_?r.words[n]=0|_:r.length--,r.strip()}a.prototype.toString=function(t,r){var h;if(r=0|r||1,16===(t=t||10)||"hex"===t){h="";for(var c=0,C=0,S=0;S<this.length;S++){var I=this.words[S],_=(16777215&(I<<c|C)).toString(16);h=0!=(C=I>>>24-c&16777215)||S!==this.length-1?T[6-_.length]+_+h:_+h,(c+=2)>=26&&(c-=26,S--)}for(0!==C&&(h=C.toString(16)+h);h.length%r!=0;)h="0"+h;return 0!==this.negative&&(h="-"+h),h}if(t===(0|t)&&t>=2&&t<=36){var n=M[t],g=A[t];h="";var V=this.clone();for(V.negative=0;!V.isZero();){var R=V.modn(g).toString(t);h=(V=V.idivn(g)).isZero()?R+h:T[n-R.length]+R+h}for(this.isZero()&&(h="0"+h);h.length%r!=0;)h="0"+h;return 0!==this.negative&&(h="-"+h),h}u(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&u(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(t,r){return u(void 0!==y),this.toArrayLike(y,t,r)},a.prototype.toArray=function(t,r){return this.toArrayLike(Array,t,r)},a.prototype.toArrayLike=function(t,r,h){var c=this.byteLength(),C=h||Math.max(1,c);u(c<=C,"byte array longer than desired length"),u(C>0,"Requested array length <= 0"),this.strip();var _,n,S="le"===r,I=new t(C),g=this.clone();if(S){for(n=0;!g.isZero();n++)_=g.andln(255),g.iushrn(8),I[n]=_;for(;n<C;n++)I[n]=0}else{for(n=0;n<C-c;n++)I[n]=0;for(n=0;!g.isZero();n++)_=g.andln(255),g.iushrn(8),I[C-n-1]=_}return I},a.prototype._countBits=Math.clz32?function(t){return 32-Math.clz32(t)}:function(t){var r=t,h=0;return r>=4096&&(h+=13,r>>>=13),r>=64&&(h+=7,r>>>=7),r>=8&&(h+=4,r>>>=4),r>=2&&(h+=2,r>>>=2),h+r},a.prototype._zeroBits=function(t){if(0===t)return 26;var r=t,h=0;return 0==(8191&r)&&(h+=13,r>>>=13),0==(127&r)&&(h+=7,r>>>=7),0==(15&r)&&(h+=4,r>>>=4),0==(3&r)&&(h+=2,r>>>=2),0==(1&r)&&h++,h},a.prototype.bitLength=function(){var r=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+r},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,r=0;r<this.length;r++){var h=this._zeroBits(this.words[r]);if(t+=h,26!==h)break}return t},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},a.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return 0!==this.negative},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]|t.words[r];return this.strip()},a.prototype.ior=function(t){return u(0==(this.negative|t.negative)),this.iuor(t)},a.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},a.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},a.prototype.iuand=function(t){var r;r=this.length>t.length?t:this;for(var h=0;h<r.length;h++)this.words[h]=this.words[h]&t.words[h];return this.length=r.length,this.strip()},a.prototype.iand=function(t){return u(0==(this.negative|t.negative)),this.iuand(t)},a.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},a.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},a.prototype.iuxor=function(t){var r,h;this.length>t.length?(r=this,h=t):(r=t,h=this);for(var c=0;c<h.length;c++)this.words[c]=r.words[c]^h.words[c];if(this!==r)for(;c<r.length;c++)this.words[c]=r.words[c];return this.length=r.length,this.strip()},a.prototype.ixor=function(t){return u(0==(this.negative|t.negative)),this.iuxor(t)},a.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},a.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},a.prototype.inotn=function(t){u("number"==typeof t&&t>=0);var r=0|Math.ceil(t/26),h=t%26;this._expand(r),h>0&&r--;for(var c=0;c<r;c++)this.words[c]=67108863&~this.words[c];return h>0&&(this.words[c]=~this.words[c]&67108863>>26-h),this.strip()},a.prototype.notn=function(t){return this.clone().inotn(t)},a.prototype.setn=function(t,r){u("number"==typeof t&&t>=0);var h=t/26|0,c=t%26;return this._expand(h+1),this.words[h]=r?this.words[h]|1<<c:this.words[h]&~(1<<c),this.strip()},a.prototype.iadd=function(t){var r,h,c;if(0!==this.negative&&0===t.negative)return this.negative=0,r=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,r=this.isub(t),t.negative=1,r._normSign();this.length>t.length?(h=this,c=t):(h=t,c=this);for(var C=0,S=0;S<c.length;S++)this.words[S]=67108863&(r=(0|h.words[S])+(0|c.words[S])+C),C=r>>>26;for(;0!==C&&S<h.length;S++)this.words[S]=67108863&(r=(0|h.words[S])+C),C=r>>>26;if(this.length=h.length,0!==C)this.words[this.length]=C,this.length++;else if(h!==this)for(;S<h.length;S++)this.words[S]=h.words[S];return this},a.prototype.add=function(t){var r;return 0!==t.negative&&0===this.negative?(t.negative=0,r=this.sub(t),t.negative^=1,r):0===t.negative&&0!==this.negative?(this.negative=0,r=t.sub(this),this.negative=1,r):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},a.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var r=this.iadd(t);return t.negative=1,r._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var c,C,h=this.cmp(t);if(0===h)return this.negative=0,this.length=1,this.words[0]=0,this;h>0?(c=this,C=t):(c=t,C=this);for(var S=0,I=0;I<C.length;I++)S=(r=(0|c.words[I])-(0|C.words[I])+S)>>26,this.words[I]=67108863&r;for(;0!==S&&I<c.length;I++)S=(r=(0|c.words[I])+S)>>26,this.words[I]=67108863&r;if(0===S&&I<c.length&&c!==this)for(;I<c.length;I++)this.words[I]=c.words[I];return this.length=Math.max(this.length,I),c!==this&&(this.negative=1),this.strip()},a.prototype.sub=function(t){return this.clone().isub(t)};var w=function(t,r,h){var _,n,g,c=t.words,C=r.words,S=h.words,I=0,V=0|c[0],R=8191&V,H=V>>>13,$=0|c[1],fe=8191&$,ye=$>>>13,ke=0|c[2],Ee=8191&ke,te=ke>>>13,ze=0|c[3],be=8191&ze,Z=ze>>>13,Y=0|c[4],ot=8191&Y,Ie=Y>>>13,Ae=0|c[5],ce=8191&Ae,Te=Ae>>>13,xe=0|c[6],G=8191&xe,ee=xe>>>13,ue=0|c[7],ve=8191&ue,Le=ue>>>13,lt=0|c[8],ht=8191&lt,Tt=lt>>>13,hi=0|c[9],jt=8191&hi,Gt=hi>>>13,di=0|C[0],vt=8191&di,kt=di>>>13,gt=0|C[1],Qe=8191&gt,_t=gt>>>13,ei=0|C[2],Zt=8191&ei,Pe=ei>>>13,De=0|C[3],oe=8191&De,Me=De>>>13,ut=0|C[4],ft=8191&ut,Rt=ut>>>13,et=0|C[5],Re=8191&et,qe=et>>>13,Ze=0|C[6],we=8191&Ze,Fe=Ze>>>13,rt=0|C[7],at=8191&rt,yt=rt>>>13,mi=0|C[8],Xt=8191&mi,Jt=mi>>>13,qi=0|C[9],ui=8191&qi,si=qi>>>13;h.negative=t.negative^r.negative,h.length=19;var en=(I+(_=Math.imul(R,vt))|0)+((8191&(n=(n=Math.imul(R,kt))+Math.imul(H,vt)|0))<<13)|0;I=((g=Math.imul(H,kt))+(n>>>13)|0)+(en>>>26)|0,en&=67108863,_=Math.imul(fe,vt),n=(n=Math.imul(fe,kt))+Math.imul(ye,vt)|0,g=Math.imul(ye,kt);var Ui=(I+(_=_+Math.imul(R,Qe)|0)|0)+((8191&(n=(n=n+Math.imul(R,_t)|0)+Math.imul(H,Qe)|0))<<13)|0;I=((g=g+Math.imul(H,_t)|0)+(n>>>13)|0)+(Ui>>>26)|0,Ui&=67108863,_=Math.imul(Ee,vt),n=(n=Math.imul(Ee,kt))+Math.imul(te,vt)|0,g=Math.imul(te,kt),_=_+Math.imul(fe,Qe)|0,n=(n=n+Math.imul(fe,_t)|0)+Math.imul(ye,Qe)|0,g=g+Math.imul(ye,_t)|0;var Bi=(I+(_=_+Math.imul(R,Zt)|0)|0)+((8191&(n=(n=n+Math.imul(R,Pe)|0)+Math.imul(H,Zt)|0))<<13)|0;I=((g=g+Math.imul(H,Pe)|0)+(n>>>13)|0)+(Bi>>>26)|0,Bi&=67108863,_=Math.imul(be,vt),n=(n=Math.imul(be,kt))+Math.imul(Z,vt)|0,g=Math.imul(Z,kt),_=_+Math.imul(Ee,Qe)|0,n=(n=n+Math.imul(Ee,_t)|0)+Math.imul(te,Qe)|0,g=g+Math.imul(te,_t)|0,_=_+Math.imul(fe,Zt)|0,n=(n=n+Math.imul(fe,Pe)|0)+Math.imul(ye,Zt)|0,g=g+Math.imul(ye,Pe)|0;var Gi=(I+(_=_+Math.imul(R,oe)|0)|0)+((8191&(n=(n=n+Math.imul(R,Me)|0)+Math.imul(H,oe)|0))<<13)|0;I=((g=g+Math.imul(H,Me)|0)+(n>>>13)|0)+(Gi>>>26)|0,Gi&=67108863,_=Math.imul(ot,vt),n=(n=Math.imul(ot,kt))+Math.imul(Ie,vt)|0,g=Math.imul(Ie,kt),_=_+Math.imul(be,Qe)|0,n=(n=n+Math.imul(be,_t)|0)+Math.imul(Z,Qe)|0,g=g+Math.imul(Z,_t)|0,_=_+Math.imul(Ee,Zt)|0,n=(n=n+Math.imul(Ee,Pe)|0)+Math.imul(te,Zt)|0,g=g+Math.imul(te,Pe)|0,_=_+Math.imul(fe,oe)|0,n=(n=n+Math.imul(fe,Me)|0)+Math.imul(ye,oe)|0,g=g+Math.imul(ye,Me)|0;var ct=(I+(_=_+Math.imul(R,ft)|0)|0)+((8191&(n=(n=n+Math.imul(R,Rt)|0)+Math.imul(H,ft)|0))<<13)|0;I=((g=g+Math.imul(H,Rt)|0)+(n>>>13)|0)+(ct>>>26)|0,ct&=67108863,_=Math.imul(ce,vt),n=(n=Math.imul(ce,kt))+Math.imul(Te,vt)|0,g=Math.imul(Te,kt),_=_+Math.imul(ot,Qe)|0,n=(n=n+Math.imul(ot,_t)|0)+Math.imul(Ie,Qe)|0,g=g+Math.imul(Ie,_t)|0,_=_+Math.imul(be,Zt)|0,n=(n=n+Math.imul(be,Pe)|0)+Math.imul(Z,Zt)|0,g=g+Math.imul(Z,Pe)|0,_=_+Math.imul(Ee,oe)|0,n=(n=n+Math.imul(Ee,Me)|0)+Math.imul(te,oe)|0,g=g+Math.imul(te,Me)|0,_=_+Math.imul(fe,ft)|0,n=(n=n+Math.imul(fe,Rt)|0)+Math.imul(ye,ft)|0,g=g+Math.imul(ye,Rt)|0;var Ft=(I+(_=_+Math.imul(R,Re)|0)|0)+((8191&(n=(n=n+Math.imul(R,qe)|0)+Math.imul(H,Re)|0))<<13)|0;I=((g=g+Math.imul(H,qe)|0)+(n>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,_=Math.imul(G,vt),n=(n=Math.imul(G,kt))+Math.imul(ee,vt)|0,g=Math.imul(ee,kt),_=_+Math.imul(ce,Qe)|0,n=(n=n+Math.imul(ce,_t)|0)+Math.imul(Te,Qe)|0,g=g+Math.imul(Te,_t)|0,_=_+Math.imul(ot,Zt)|0,n=(n=n+Math.imul(ot,Pe)|0)+Math.imul(Ie,Zt)|0,g=g+Math.imul(Ie,Pe)|0,_=_+Math.imul(be,oe)|0,n=(n=n+Math.imul(be,Me)|0)+Math.imul(Z,oe)|0,g=g+Math.imul(Z,Me)|0,_=_+Math.imul(Ee,ft)|0,n=(n=n+Math.imul(Ee,Rt)|0)+Math.imul(te,ft)|0,g=g+Math.imul(te,Rt)|0,_=_+Math.imul(fe,Re)|0,n=(n=n+Math.imul(fe,qe)|0)+Math.imul(ye,Re)|0,g=g+Math.imul(ye,qe)|0;var pt=(I+(_=_+Math.imul(R,we)|0)|0)+((8191&(n=(n=n+Math.imul(R,Fe)|0)+Math.imul(H,we)|0))<<13)|0;I=((g=g+Math.imul(H,Fe)|0)+(n>>>13)|0)+(pt>>>26)|0,pt&=67108863,_=Math.imul(ve,vt),n=(n=Math.imul(ve,kt))+Math.imul(Le,vt)|0,g=Math.imul(Le,kt),_=_+Math.imul(G,Qe)|0,n=(n=n+Math.imul(G,_t)|0)+Math.imul(ee,Qe)|0,g=g+Math.imul(ee,_t)|0,_=_+Math.imul(ce,Zt)|0,n=(n=n+Math.imul(ce,Pe)|0)+Math.imul(Te,Zt)|0,g=g+Math.imul(Te,Pe)|0,_=_+Math.imul(ot,oe)|0,n=(n=n+Math.imul(ot,Me)|0)+Math.imul(Ie,oe)|0,g=g+Math.imul(Ie,Me)|0,_=_+Math.imul(be,ft)|0,n=(n=n+Math.imul(be,Rt)|0)+Math.imul(Z,ft)|0,g=g+Math.imul(Z,Rt)|0,_=_+Math.imul(Ee,Re)|0,n=(n=n+Math.imul(Ee,qe)|0)+Math.imul(te,Re)|0,g=g+Math.imul(te,qe)|0,_=_+Math.imul(fe,we)|0,n=(n=n+Math.imul(fe,Fe)|0)+Math.imul(ye,we)|0,g=g+Math.imul(ye,Fe)|0;var it=(I+(_=_+Math.imul(R,at)|0)|0)+((8191&(n=(n=n+Math.imul(R,yt)|0)+Math.imul(H,at)|0))<<13)|0;I=((g=g+Math.imul(H,yt)|0)+(n>>>13)|0)+(it>>>26)|0,it&=67108863,_=Math.imul(ht,vt),n=(n=Math.imul(ht,kt))+Math.imul(Tt,vt)|0,g=Math.imul(Tt,kt),_=_+Math.imul(ve,Qe)|0,n=(n=n+Math.imul(ve,_t)|0)+Math.imul(Le,Qe)|0,g=g+Math.imul(Le,_t)|0,_=_+Math.imul(G,Zt)|0,n=(n=n+Math.imul(G,Pe)|0)+Math.imul(ee,Zt)|0,g=g+Math.imul(ee,Pe)|0,_=_+Math.imul(ce,oe)|0,n=(n=n+Math.imul(ce,Me)|0)+Math.imul(Te,oe)|0,g=g+Math.imul(Te,Me)|0,_=_+Math.imul(ot,ft)|0,n=(n=n+Math.imul(ot,Rt)|0)+Math.imul(Ie,ft)|0,g=g+Math.imul(Ie,Rt)|0,_=_+Math.imul(be,Re)|0,n=(n=n+Math.imul(be,qe)|0)+Math.imul(Z,Re)|0,g=g+Math.imul(Z,qe)|0,_=_+Math.imul(Ee,we)|0,n=(n=n+Math.imul(Ee,Fe)|0)+Math.imul(te,we)|0,g=g+Math.imul(te,Fe)|0,_=_+Math.imul(fe,at)|0,n=(n=n+Math.imul(fe,yt)|0)+Math.imul(ye,at)|0,g=g+Math.imul(ye,yt)|0;var It=(I+(_=_+Math.imul(R,Xt)|0)|0)+((8191&(n=(n=n+Math.imul(R,Jt)|0)+Math.imul(H,Xt)|0))<<13)|0;I=((g=g+Math.imul(H,Jt)|0)+(n>>>13)|0)+(It>>>26)|0,It&=67108863,_=Math.imul(jt,vt),n=(n=Math.imul(jt,kt))+Math.imul(Gt,vt)|0,g=Math.imul(Gt,kt),_=_+Math.imul(ht,Qe)|0,n=(n=n+Math.imul(ht,_t)|0)+Math.imul(Tt,Qe)|0,g=g+Math.imul(Tt,_t)|0,_=_+Math.imul(ve,Zt)|0,n=(n=n+Math.imul(ve,Pe)|0)+Math.imul(Le,Zt)|0,g=g+Math.imul(Le,Pe)|0,_=_+Math.imul(G,oe)|0,n=(n=n+Math.imul(G,Me)|0)+Math.imul(ee,oe)|0,g=g+Math.imul(ee,Me)|0,_=_+Math.imul(ce,ft)|0,n=(n=n+Math.imul(ce,Rt)|0)+Math.imul(Te,ft)|0,g=g+Math.imul(Te,Rt)|0,_=_+Math.imul(ot,Re)|0,n=(n=n+Math.imul(ot,qe)|0)+Math.imul(Ie,Re)|0,g=g+Math.imul(Ie,qe)|0,_=_+Math.imul(be,we)|0,n=(n=n+Math.imul(be,Fe)|0)+Math.imul(Z,we)|0,g=g+Math.imul(Z,Fe)|0,_=_+Math.imul(Ee,at)|0,n=(n=n+Math.imul(Ee,yt)|0)+Math.imul(te,at)|0,g=g+Math.imul(te,yt)|0,_=_+Math.imul(fe,Xt)|0,n=(n=n+Math.imul(fe,Jt)|0)+Math.imul(ye,Xt)|0,g=g+Math.imul(ye,Jt)|0;var de=(I+(_=_+Math.imul(R,ui)|0)|0)+((8191&(n=(n=n+Math.imul(R,si)|0)+Math.imul(H,ui)|0))<<13)|0;I=((g=g+Math.imul(H,si)|0)+(n>>>13)|0)+(de>>>26)|0,de&=67108863,_=Math.imul(jt,Qe),n=(n=Math.imul(jt,_t))+Math.imul(Gt,Qe)|0,g=Math.imul(Gt,_t),_=_+Math.imul(ht,Zt)|0,n=(n=n+Math.imul(ht,Pe)|0)+Math.imul(Tt,Zt)|0,g=g+Math.imul(Tt,Pe)|0,_=_+Math.imul(ve,oe)|0,n=(n=n+Math.imul(ve,Me)|0)+Math.imul(Le,oe)|0,g=g+Math.imul(Le,Me)|0,_=_+Math.imul(G,ft)|0,n=(n=n+Math.imul(G,Rt)|0)+Math.imul(ee,ft)|0,g=g+Math.imul(ee,Rt)|0,_=_+Math.imul(ce,Re)|0,n=(n=n+Math.imul(ce,qe)|0)+Math.imul(Te,Re)|0,g=g+Math.imul(Te,qe)|0,_=_+Math.imul(ot,we)|0,n=(n=n+Math.imul(ot,Fe)|0)+Math.imul(Ie,we)|0,g=g+Math.imul(Ie,Fe)|0,_=_+Math.imul(be,at)|0,n=(n=n+Math.imul(be,yt)|0)+Math.imul(Z,at)|0,g=g+Math.imul(Z,yt)|0,_=_+Math.imul(Ee,Xt)|0,n=(n=n+Math.imul(Ee,Jt)|0)+Math.imul(te,Xt)|0,g=g+Math.imul(te,Jt)|0;var $e=(I+(_=_+Math.imul(fe,ui)|0)|0)+((8191&(n=(n=n+Math.imul(fe,si)|0)+Math.imul(ye,ui)|0))<<13)|0;I=((g=g+Math.imul(ye,si)|0)+(n>>>13)|0)+($e>>>26)|0,$e&=67108863,_=Math.imul(jt,Zt),n=(n=Math.imul(jt,Pe))+Math.imul(Gt,Zt)|0,g=Math.imul(Gt,Pe),_=_+Math.imul(ht,oe)|0,n=(n=n+Math.imul(ht,Me)|0)+Math.imul(Tt,oe)|0,g=g+Math.imul(Tt,Me)|0,_=_+Math.imul(ve,ft)|0,n=(n=n+Math.imul(ve,Rt)|0)+Math.imul(Le,ft)|0,g=g+Math.imul(Le,Rt)|0,_=_+Math.imul(G,Re)|0,n=(n=n+Math.imul(G,qe)|0)+Math.imul(ee,Re)|0,g=g+Math.imul(ee,qe)|0,_=_+Math.imul(ce,we)|0,n=(n=n+Math.imul(ce,Fe)|0)+Math.imul(Te,we)|0,g=g+Math.imul(Te,Fe)|0,_=_+Math.imul(ot,at)|0,n=(n=n+Math.imul(ot,yt)|0)+Math.imul(Ie,at)|0,g=g+Math.imul(Ie,yt)|0,_=_+Math.imul(be,Xt)|0,n=(n=n+Math.imul(be,Jt)|0)+Math.imul(Z,Xt)|0,g=g+Math.imul(Z,Jt)|0;var bt=(I+(_=_+Math.imul(Ee,ui)|0)|0)+((8191&(n=(n=n+Math.imul(Ee,si)|0)+Math.imul(te,ui)|0))<<13)|0;I=((g=g+Math.imul(te,si)|0)+(n>>>13)|0)+(bt>>>26)|0,bt&=67108863,_=Math.imul(jt,oe),n=(n=Math.imul(jt,Me))+Math.imul(Gt,oe)|0,g=Math.imul(Gt,Me),_=_+Math.imul(ht,ft)|0,n=(n=n+Math.imul(ht,Rt)|0)+Math.imul(Tt,ft)|0,g=g+Math.imul(Tt,Rt)|0,_=_+Math.imul(ve,Re)|0,n=(n=n+Math.imul(ve,qe)|0)+Math.imul(Le,Re)|0,g=g+Math.imul(Le,qe)|0,_=_+Math.imul(G,we)|0,n=(n=n+Math.imul(G,Fe)|0)+Math.imul(ee,we)|0,g=g+Math.imul(ee,Fe)|0,_=_+Math.imul(ce,at)|0,n=(n=n+Math.imul(ce,yt)|0)+Math.imul(Te,at)|0,g=g+Math.imul(Te,yt)|0,_=_+Math.imul(ot,Xt)|0,n=(n=n+Math.imul(ot,Jt)|0)+Math.imul(Ie,Xt)|0,g=g+Math.imul(Ie,Jt)|0;var Vt=(I+(_=_+Math.imul(be,ui)|0)|0)+((8191&(n=(n=n+Math.imul(be,si)|0)+Math.imul(Z,ui)|0))<<13)|0;I=((g=g+Math.imul(Z,si)|0)+(n>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,_=Math.imul(jt,ft),n=(n=Math.imul(jt,Rt))+Math.imul(Gt,ft)|0,g=Math.imul(Gt,Rt),_=_+Math.imul(ht,Re)|0,n=(n=n+Math.imul(ht,qe)|0)+Math.imul(Tt,Re)|0,g=g+Math.imul(Tt,qe)|0,_=_+Math.imul(ve,we)|0,n=(n=n+Math.imul(ve,Fe)|0)+Math.imul(Le,we)|0,g=g+Math.imul(Le,Fe)|0,_=_+Math.imul(G,at)|0,n=(n=n+Math.imul(G,yt)|0)+Math.imul(ee,at)|0,g=g+Math.imul(ee,yt)|0,_=_+Math.imul(ce,Xt)|0,n=(n=n+Math.imul(ce,Jt)|0)+Math.imul(Te,Xt)|0,g=g+Math.imul(Te,Jt)|0;var bi=(I+(_=_+Math.imul(ot,ui)|0)|0)+((8191&(n=(n=n+Math.imul(ot,si)|0)+Math.imul(Ie,ui)|0))<<13)|0;I=((g=g+Math.imul(Ie,si)|0)+(n>>>13)|0)+(bi>>>26)|0,bi&=67108863,_=Math.imul(jt,Re),n=(n=Math.imul(jt,qe))+Math.imul(Gt,Re)|0,g=Math.imul(Gt,qe),_=_+Math.imul(ht,we)|0,n=(n=n+Math.imul(ht,Fe)|0)+Math.imul(Tt,we)|0,g=g+Math.imul(Tt,Fe)|0,_=_+Math.imul(ve,at)|0,n=(n=n+Math.imul(ve,yt)|0)+Math.imul(Le,at)|0,g=g+Math.imul(Le,yt)|0,_=_+Math.imul(G,Xt)|0,n=(n=n+Math.imul(G,Jt)|0)+Math.imul(ee,Xt)|0,g=g+Math.imul(ee,Jt)|0;var Li=(I+(_=_+Math.imul(ce,ui)|0)|0)+((8191&(n=(n=n+Math.imul(ce,si)|0)+Math.imul(Te,ui)|0))<<13)|0;I=((g=g+Math.imul(Te,si)|0)+(n>>>13)|0)+(Li>>>26)|0,Li&=67108863,_=Math.imul(jt,we),n=(n=Math.imul(jt,Fe))+Math.imul(Gt,we)|0,g=Math.imul(Gt,Fe),_=_+Math.imul(ht,at)|0,n=(n=n+Math.imul(ht,yt)|0)+Math.imul(Tt,at)|0,g=g+Math.imul(Tt,yt)|0,_=_+Math.imul(ve,Xt)|0,n=(n=n+Math.imul(ve,Jt)|0)+Math.imul(Le,Xt)|0,g=g+Math.imul(Le,Jt)|0;var Ji=(I+(_=_+Math.imul(G,ui)|0)|0)+((8191&(n=(n=n+Math.imul(G,si)|0)+Math.imul(ee,ui)|0))<<13)|0;I=((g=g+Math.imul(ee,si)|0)+(n>>>13)|0)+(Ji>>>26)|0,Ji&=67108863,_=Math.imul(jt,at),n=(n=Math.imul(jt,yt))+Math.imul(Gt,at)|0,g=Math.imul(Gt,yt),_=_+Math.imul(ht,Xt)|0,n=(n=n+Math.imul(ht,Jt)|0)+Math.imul(Tt,Xt)|0,g=g+Math.imul(Tt,Jt)|0;var Wi=(I+(_=_+Math.imul(ve,ui)|0)|0)+((8191&(n=(n=n+Math.imul(ve,si)|0)+Math.imul(Le,ui)|0))<<13)|0;I=((g=g+Math.imul(Le,si)|0)+(n>>>13)|0)+(Wi>>>26)|0,Wi&=67108863,_=Math.imul(jt,Xt),n=(n=Math.imul(jt,Jt))+Math.imul(Gt,Xt)|0,g=Math.imul(Gt,Jt);var sn=(I+(_=_+Math.imul(ht,ui)|0)|0)+((8191&(n=(n=n+Math.imul(ht,si)|0)+Math.imul(Tt,ui)|0))<<13)|0;I=((g=g+Math.imul(Tt,si)|0)+(n>>>13)|0)+(sn>>>26)|0,sn&=67108863;var mn=(I+(_=Math.imul(jt,ui))|0)+((8191&(n=(n=Math.imul(jt,si))+Math.imul(Gt,ui)|0))<<13)|0;return I=((g=Math.imul(Gt,si))+(n>>>13)|0)+(mn>>>26)|0,mn&=67108863,S[0]=en,S[1]=Ui,S[2]=Bi,S[3]=Gi,S[4]=ct,S[5]=Ft,S[6]=pt,S[7]=it,S[8]=It,S[9]=de,S[10]=$e,S[11]=bt,S[12]=Vt,S[13]=bi,S[14]=Li,S[15]=Ji,S[16]=Wi,S[17]=sn,S[18]=mn,0!==I&&(S[19]=I,h.length++),h};function U(x,t,r){return(new W).mulp(x,t,r)}function W(x,t){this.x=x,this.y=t}Math.imul||(w=k),a.prototype.mulTo=function(t,r){var h,c=this.length+t.length;return h=10===this.length&&10===t.length?w(this,t,r):c<63?k(this,t,r):c<1024?function z(x,t,r){r.negative=t.negative^x.negative,r.length=x.length+t.length;for(var h=0,c=0,C=0;C<r.length-1;C++){var S=c;c=0;for(var I=67108863&h,_=Math.min(C,t.length-1),n=Math.max(0,C-x.length+1);n<=_;n++){var H=(0|x.words[C-n])*(0|t.words[n]),$=67108863&H;I=67108863&($=$+I|0),c+=(S=(S=S+(H/67108864|0)|0)+($>>>26)|0)>>>26,S&=67108863}r.words[C]=I,h=S,S=c}return 0!==h?r.words[C]=h:r.length--,r.strip()}(this,t,r):U(this,t,r),h},W.prototype.makeRBT=function(t){for(var r=new Array(t),h=a.prototype._countBits(t)-1,c=0;c<t;c++)r[c]=this.revBin(c,h,t);return r},W.prototype.revBin=function(t,r,h){if(0===t||t===h-1)return t;for(var c=0,C=0;C<r;C++)c|=(1&t)<<r-C-1,t>>=1;return c},W.prototype.permute=function(t,r,h,c,C,S){for(var I=0;I<S;I++)c[I]=r[t[I]],C[I]=h[t[I]]},W.prototype.transform=function(t,r,h,c,C,S){this.permute(S,t,r,h,c,C);for(var I=1;I<C;I<<=1)for(var _=I<<1,n=Math.cos(2*Math.PI/_),g=Math.sin(2*Math.PI/_),V=0;V<C;V+=_)for(var R=n,H=g,$=0;$<I;$++){var fe=h[V+$],ye=c[V+$],ke=h[V+$+I],Ee=c[V+$+I],te=R*ke-H*Ee;Ee=R*Ee+H*ke,h[V+$]=fe+(ke=te),c[V+$]=ye+Ee,h[V+$+I]=fe-ke,c[V+$+I]=ye-Ee,$!==_&&(te=n*R-g*H,H=n*H+g*R,R=te)}},W.prototype.guessLen13b=function(t,r){var h=1|Math.max(r,t),c=1&h,C=0;for(h=h/2|0;h;h>>>=1)C++;return 1<<C+1+c},W.prototype.conjugate=function(t,r,h){if(!(h<=1))for(var c=0;c<h/2;c++){var C=t[c];t[c]=t[h-c-1],t[h-c-1]=C,C=r[c],r[c]=-r[h-c-1],r[h-c-1]=-C}},W.prototype.normalize13b=function(t,r){for(var h=0,c=0;c<r/2;c++){var C=8192*Math.round(t[2*c+1]/r)+Math.round(t[2*c]/r)+h;t[c]=67108863&C,h=C<67108864?0:C/67108864|0}return t},W.prototype.convert13b=function(t,r,h,c){for(var C=0,S=0;S<r;S++)h[2*S]=8191&(C+=0|t[S]),h[2*S+1]=8191&(C>>>=13),C>>>=13;for(S=2*r;S<c;++S)h[S]=0;u(0===C),u(0==(-8192&C))},W.prototype.stub=function(t){for(var r=new Array(t),h=0;h<t;h++)r[h]=0;return r},W.prototype.mulp=function(t,r,h){var c=2*this.guessLen13b(t.length,r.length),C=this.makeRBT(c),S=this.stub(c),I=new Array(c),_=new Array(c),n=new Array(c),g=new Array(c),V=new Array(c),R=new Array(c),H=h.words;H.length=c,this.convert13b(t.words,t.length,I,c),this.convert13b(r.words,r.length,g,c),this.transform(I,S,_,n,c,C),this.transform(g,S,V,R,c,C);for(var $=0;$<c;$++){var fe=_[$]*V[$]-n[$]*R[$];n[$]=_[$]*R[$]+n[$]*V[$],_[$]=fe}return this.conjugate(_,n,c),this.transform(_,n,H,S,c,C),this.conjugate(H,S,c),this.normalize13b(H,c),h.negative=t.negative^r.negative,h.length=t.length+r.length,h.strip()},a.prototype.mul=function(t){var r=new a(null);return r.words=new Array(this.length+t.length),this.mulTo(t,r)},a.prototype.mulf=function(t){var r=new a(null);return r.words=new Array(this.length+t.length),U(this,t,r)},a.prototype.imul=function(t){return this.clone().mulTo(t,this)},a.prototype.imuln=function(t){u("number"==typeof t),u(t<67108864);for(var r=0,h=0;h<this.length;h++){var c=(0|this.words[h])*t,C=(67108863&c)+(67108863&r);r>>=26,r+=c/67108864|0,r+=C>>>26,this.words[h]=67108863&C}return 0!==r&&(this.words[h]=r,this.length++),this},a.prototype.muln=function(t){return this.clone().imuln(t)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(t){var r=function E(x){for(var t=new Array(x.bitLength()),r=0;r<t.length;r++){var c=r%26;t[r]=(x.words[r/26|0]&1<<c)>>>c}return t}(t);if(0===r.length)return new a(1);for(var h=this,c=0;c<r.length&&0===r[c];c++,h=h.sqr());if(++c<r.length)for(var C=h.sqr();c<r.length;c++,C=C.sqr())0!==r[c]&&(h=h.mul(C));return h},a.prototype.iushln=function(t){u("number"==typeof t&&t>=0);var C,r=t%26,h=(t-r)/26,c=67108863>>>26-r<<26-r;if(0!==r){var S=0;for(C=0;C<this.length;C++){var I=this.words[C]&c;this.words[C]=(0|this.words[C])-I<<r|S,S=I>>>26-r}S&&(this.words[C]=S,this.length++)}if(0!==h){for(C=this.length-1;C>=0;C--)this.words[C+h]=this.words[C];for(C=0;C<h;C++)this.words[C]=0;this.length+=h}return this.strip()},a.prototype.ishln=function(t){return u(0===this.negative),this.iushln(t)},a.prototype.iushrn=function(t,r,h){var c;u("number"==typeof t&&t>=0),c=r?(r-r%26)/26:0;var C=t%26,S=Math.min((t-C)/26,this.length),I=67108863^67108863>>>C<<C,_=h;if(c-=S,c=Math.max(0,c),_){for(var n=0;n<S;n++)_.words[n]=this.words[n];_.length=S}if(0!==S)if(this.length>S)for(this.length-=S,n=0;n<this.length;n++)this.words[n]=this.words[n+S];else this.words[0]=0,this.length=1;var g=0;for(n=this.length-1;n>=0&&(0!==g||n>=c);n--){var V=0|this.words[n];this.words[n]=g<<26-C|V>>>C,g=V&I}return _&&0!==g&&(_.words[_.length++]=g),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(t,r,h){return u(0===this.negative),this.iushrn(t,r,h)},a.prototype.shln=function(t){return this.clone().ishln(t)},a.prototype.ushln=function(t){return this.clone().iushln(t)},a.prototype.shrn=function(t){return this.clone().ishrn(t)},a.prototype.ushrn=function(t){return this.clone().iushrn(t)},a.prototype.testn=function(t){u("number"==typeof t&&t>=0);var r=t%26,h=(t-r)/26;return!(this.length<=h||!(this.words[h]&1<<r))},a.prototype.imaskn=function(t){u("number"==typeof t&&t>=0);var r=t%26,h=(t-r)/26;return u(0===this.negative,"imaskn works only with positive numbers"),this.length<=h?this:(0!==r&&h++,this.length=Math.min(h,this.length),0!==r&&(this.words[this.length-1]&=67108863^67108863>>>r<<r),this.strip())},a.prototype.maskn=function(t){return this.clone().imaskn(t)},a.prototype.iaddn=function(t){return u("number"==typeof t),u(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},a.prototype._iaddn=function(t){this.words[0]+=t;for(var r=0;r<this.length&&this.words[r]>=67108864;r++)this.words[r]-=67108864,r===this.length-1?this.words[r+1]=1:this.words[r+1]++;return this.length=Math.max(this.length,r+1),this},a.prototype.isubn=function(t){if(u("number"==typeof t),u(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r<this.length&&this.words[r]<0;r++)this.words[r]+=67108864,this.words[r+1]-=1;return this.strip()},a.prototype.addn=function(t){return this.clone().iaddn(t)},a.prototype.subn=function(t){return this.clone().isubn(t)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(t,r,h){var C;this._expand(t.length+h);var S,I=0;for(C=0;C<t.length;C++){S=(0|this.words[C+h])+I;var _=(0|t.words[C])*r;I=((S-=67108863&_)>>26)-(_/67108864|0),this.words[C+h]=67108863&S}for(;C<this.length-h;C++)I=(S=(0|this.words[C+h])+I)>>26,this.words[C+h]=67108863&S;if(0===I)return this.strip();for(u(-1===I),I=0,C=0;C<this.length;C++)I=(S=-(0|this.words[C])+I)>>26,this.words[C]=67108863&S;return this.negative=1,this.strip()},a.prototype._wordDiv=function(t,r){var h,c=this.clone(),C=t,S=0|C.words[C.length-1];0!=(h=26-this._countBits(S))&&(C=C.ushln(h),c.iushln(h),S=0|C.words[C.length-1]);var n,_=c.length-C.length;if("mod"!==r){(n=new a(null)).length=_+1,n.words=new Array(n.length);for(var g=0;g<n.length;g++)n.words[g]=0}var V=c.clone()._ishlnsubmul(C,1,_);0===V.negative&&(c=V,n&&(n.words[_]=1));for(var R=_-1;R>=0;R--){var H=67108864*(0|c.words[C.length+R])+(0|c.words[C.length+R-1]);for(H=Math.min(H/S|0,67108863),c._ishlnsubmul(C,H,R);0!==c.negative;)H--,c.negative=0,c._ishlnsubmul(C,1,R),c.isZero()||(c.negative^=1);n&&(n.words[R]=H)}return n&&n.strip(),c.strip(),"div"!==r&&0!==h&&c.iushrn(h),{div:n||null,mod:c}},a.prototype.divmod=function(t,r,h){return u(!t.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===t.negative?(S=this.neg().divmod(t,r),"mod"!==r&&(c=S.div.neg()),"div"!==r&&(C=S.mod.neg(),h&&0!==C.negative&&C.iadd(t)),{div:c,mod:C}):0===this.negative&&0!==t.negative?(S=this.divmod(t.neg(),r),"mod"!==r&&(c=S.div.neg()),{div:c,mod:S.mod}):0!=(this.negative&t.negative)?(S=this.neg().divmod(t.neg(),r),"div"!==r&&(C=S.mod.neg(),h&&0!==C.negative&&C.isub(t)),{div:S.div,mod:C}):t.length>this.length||this.cmp(t)<0?{div:new a(0),mod:this}:1===t.length?"div"===r?{div:this.divn(t.words[0]),mod:null}:"mod"===r?{div:null,mod:new a(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new a(this.modn(t.words[0]))}:this._wordDiv(t,r);var c,C,S},a.prototype.div=function(t){return this.divmod(t,"div",!1).div},a.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},a.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},a.prototype.divRound=function(t){var r=this.divmod(t);if(r.mod.isZero())return r.div;var h=0!==r.div.negative?r.mod.isub(t):r.mod,c=t.ushrn(1),C=t.andln(1),S=h.cmp(c);return S<0||1===C&&0===S?r.div:0!==r.div.negative?r.div.isubn(1):r.div.iaddn(1)},a.prototype.modn=function(t){u(t<=67108863);for(var r=(1<<26)%t,h=0,c=this.length-1;c>=0;c--)h=(r*h+(0|this.words[c]))%t;return h},a.prototype.idivn=function(t){u(t<=67108863);for(var r=0,h=this.length-1;h>=0;h--){var c=(0|this.words[h])+67108864*r;this.words[h]=c/t|0,r=c%t}return this.strip()},a.prototype.divn=function(t){return this.clone().idivn(t)},a.prototype.egcd=function(t){u(0===t.negative),u(!t.isZero());var r=this,h=t.clone();r=0!==r.negative?r.umod(t):r.clone();for(var c=new a(1),C=new a(0),S=new a(0),I=new a(1),_=0;r.isEven()&&h.isEven();)r.iushrn(1),h.iushrn(1),++_;for(var n=h.clone(),g=r.clone();!r.isZero();){for(var V=0,R=1;0==(r.words[0]&R)&&V<26;++V,R<<=1);if(V>0)for(r.iushrn(V);V-- >0;)(c.isOdd()||C.isOdd())&&(c.iadd(n),C.isub(g)),c.iushrn(1),C.iushrn(1);for(var H=0,$=1;0==(h.words[0]&$)&&H<26;++H,$<<=1);if(H>0)for(h.iushrn(H);H-- >0;)(S.isOdd()||I.isOdd())&&(S.iadd(n),I.isub(g)),S.iushrn(1),I.iushrn(1);r.cmp(h)>=0?(r.isub(h),c.isub(S),C.isub(I)):(h.isub(r),S.isub(c),I.isub(C))}return{a:S,b:I,gcd:h.iushln(_)}},a.prototype._invmp=function(t){u(0===t.negative),u(!t.isZero());var V,r=this,h=t.clone();r=0!==r.negative?r.umod(t):r.clone();for(var c=new a(1),C=new a(0),S=h.clone();r.cmpn(1)>0&&h.cmpn(1)>0;){for(var I=0,_=1;0==(r.words[0]&_)&&I<26;++I,_<<=1);if(I>0)for(r.iushrn(I);I-- >0;)c.isOdd()&&c.iadd(S),c.iushrn(1);for(var n=0,g=1;0==(h.words[0]&g)&&n<26;++n,g<<=1);if(n>0)for(h.iushrn(n);n-- >0;)C.isOdd()&&C.iadd(S),C.iushrn(1);r.cmp(h)>=0?(r.isub(h),c.isub(C)):(h.isub(r),C.isub(c))}return(V=0===r.cmpn(1)?c:C).cmpn(0)<0&&V.iadd(t),V},a.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var r=this.clone(),h=t.clone();r.negative=0,h.negative=0;for(var c=0;r.isEven()&&h.isEven();c++)r.iushrn(1),h.iushrn(1);for(;;){for(;r.isEven();)r.iushrn(1);for(;h.isEven();)h.iushrn(1);var C=r.cmp(h);if(C<0){var S=r;r=h,h=S}else if(0===C||0===h.cmpn(1))break;r.isub(h)}return h.iushln(c)},a.prototype.invm=function(t){return this.egcd(t).a.umod(t)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(t){return this.words[0]&t},a.prototype.bincn=function(t){u("number"==typeof t);var r=t%26,h=(t-r)/26,c=1<<r;if(this.length<=h)return this._expand(h+1),this.words[h]|=c,this;for(var C=c,S=h;0!==C&&S<this.length;S++){var I=0|this.words[S];C=(I+=C)>>>26,this.words[S]=I&=67108863}return 0!==C&&(this.words[S]=C,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(t){var h,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)h=1;else{r&&(t=-t),u(t<=67108863,"Number is too big");var c=0|this.words[0];h=c===t?0:c<t?-1:1}return 0!==this.negative?0|-h:h},a.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var r=this.ucmp(t);return 0!==this.negative?0|-r:r},a.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var r=0,h=this.length-1;h>=0;h--){var c=0|this.words[h],C=0|t.words[h];if(c!==C){c<C?r=-1:c>C&&(r=1);break}}return r},a.prototype.gtn=function(t){return 1===this.cmpn(t)},a.prototype.gt=function(t){return 1===this.cmp(t)},a.prototype.gten=function(t){return this.cmpn(t)>=0},a.prototype.gte=function(t){return this.cmp(t)>=0},a.prototype.ltn=function(t){return-1===this.cmpn(t)},a.prototype.lt=function(t){return-1===this.cmp(t)},a.prototype.lten=function(t){return this.cmpn(t)<=0},a.prototype.lte=function(t){return this.cmp(t)<=0},a.prototype.eqn=function(t){return 0===this.cmpn(t)},a.prototype.eq=function(t){return 0===this.cmp(t)},a.red=function(t){return new J(t)},a.prototype.toRed=function(t){return u(!this.red,"Already a number in reduction context"),u(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},a.prototype.fromRed=function(){return u(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(t){return this.red=t,this},a.prototype.forceRed=function(t){return u(!this.red,"Already a number in reduction context"),this._forceRed(t)},a.prototype.redAdd=function(t){return u(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},a.prototype.redIAdd=function(t){return u(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},a.prototype.redSub=function(t){return u(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},a.prototype.redISub=function(t){return u(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},a.prototype.redShl=function(t){return u(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},a.prototype.redMul=function(t){return u(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},a.prototype.redIMul=function(t){return u(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},a.prototype.redSqr=function(){return u(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return u(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return u(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return u(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return u(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(t){return u(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var ne={k256:null,p224:null,p192:null,p25519:null};function Q(x,t){this.name=x,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function le(){Q.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function q(){Q.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ie(){Q.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function se(){Q.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function J(x){if("string"==typeof x){var t=a._prime(x);this.m=t.p,this.prime=t}else u(x.gtn(1),"modulus must be greater than 1"),this.m=x,this.prime=null}function me(x){J.call(this,x),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(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)}Q.prototype._tmp=function(){var t=new a(null);return t.words=new Array(Math.ceil(this.n/13)),t},Q.prototype.ireduce=function(t){var h,r=t;do{this.split(r,this.tmp),h=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(h>this.n);var c=h<this.n?-1:r.ucmp(this.p);return 0===c?(r.words[0]=0,r.length=1):c>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},Q.prototype.split=function(t,r){t.iushrn(this.n,0,r)},Q.prototype.imulK=function(t){return t.imul(this.k)},b(le,Q),le.prototype.split=function(t,r){for(var h=4194303,c=Math.min(t.length,9),C=0;C<c;C++)r.words[C]=t.words[C];if(r.length=c,t.length<=9)return t.words[0]=0,void(t.length=1);var S=t.words[9];for(r.words[r.length++]=S&h,C=10;C<t.length;C++){var I=0|t.words[C];t.words[C-10]=(I&h)<<4|S>>>22,S=I}t.words[C-10]=S>>>=22,t.length-=0===S&&t.length>10?10:9},le.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var r=0,h=0;h<t.length;h++){var c=0|t.words[h];t.words[h]=67108863&(r+=977*c),r=64*c+(r/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},b(q,Q),b(ie,Q),b(se,Q),se.prototype.imulK=function(t){for(var r=0,h=0;h<t.length;h++){var c=19*(0|t.words[h])+r,C=67108863&c;c>>>=26,t.words[h]=C,r=c}return 0!==r&&(t.words[t.length++]=r),t},a._prime=function(t){if(ne[t])return ne[t];var r;if("k256"===t)r=new le;else if("p224"===t)r=new q;else if("p192"===t)r=new ie;else{if("p25519"!==t)throw new Error("Unknown prime "+t);r=new se}return ne[t]=r,r},J.prototype._verify1=function(t){u(0===t.negative,"red works only with positives"),u(t.red,"red works only with red numbers")},J.prototype._verify2=function(t,r){u(0==(t.negative|r.negative),"red works only with positives"),u(t.red&&t.red===r.red,"red works only with red numbers")},J.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},J.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},J.prototype.add=function(t,r){this._verify2(t,r);var h=t.add(r);return h.cmp(this.m)>=0&&h.isub(this.m),h._forceRed(this)},J.prototype.iadd=function(t,r){this._verify2(t,r);var h=t.iadd(r);return h.cmp(this.m)>=0&&h.isub(this.m),h},J.prototype.sub=function(t,r){this._verify2(t,r);var h=t.sub(r);return h.cmpn(0)<0&&h.iadd(this.m),h._forceRed(this)},J.prototype.isub=function(t,r){this._verify2(t,r);var h=t.isub(r);return h.cmpn(0)<0&&h.iadd(this.m),h},J.prototype.shl=function(t,r){return this._verify1(t),this.imod(t.ushln(r))},J.prototype.imul=function(t,r){return this._verify2(t,r),this.imod(t.imul(r))},J.prototype.mul=function(t,r){return this._verify2(t,r),this.imod(t.mul(r))},J.prototype.isqr=function(t){return this.imul(t,t.clone())},J.prototype.sqr=function(t){return this.mul(t,t)},J.prototype.sqrt=function(t){if(t.isZero())return t.clone();var r=this.m.andln(3);if(u(r%2==1),3===r){var h=this.m.add(new a(1)).iushrn(2);return this.pow(t,h)}for(var c=this.m.subn(1),C=0;!c.isZero()&&0===c.andln(1);)C++,c.iushrn(1);u(!c.isZero());var S=new a(1).toRed(this),I=S.redNeg(),_=this.m.subn(1).iushrn(1),n=this.m.bitLength();for(n=new a(2*n*n).toRed(this);0!==this.pow(n,_).cmp(I);)n.redIAdd(I);for(var g=this.pow(n,c),V=this.pow(t,c.addn(1).iushrn(1)),R=this.pow(t,c),H=C;0!==R.cmp(S);){for(var $=R,fe=0;0!==$.cmp(S);fe++)$=$.redSqr();u(fe<H);var ye=this.pow(g,new a(1).iushln(H-fe-1));V=V.redMul(ye),g=ye.redSqr(),R=R.redMul(g),H=fe}return V},J.prototype.invm=function(t){var r=t._invmp(this.m);return 0!==r.negative?(r.negative=0,this.imod(r).redNeg()):this.imod(r)},J.prototype.pow=function(t,r){if(r.isZero())return new a(1).toRed(this);if(0===r.cmpn(1))return t.clone();var c=new Array(16);c[0]=new a(1).toRed(this),c[1]=t;for(var C=2;C<c.length;C++)c[C]=this.mul(c[C-1],t);var S=c[0],I=0,_=0,n=r.bitLength()%26;for(0===n&&(n=26),C=r.length-1;C>=0;C--){for(var g=r.words[C],V=n-1;V>=0;V--){var R=g>>V&1;S!==c[0]&&(S=this.sqr(S)),0!==R||0!==I?(I<<=1,I|=R,(4==++_||0===C&&0===V)&&(S=this.mul(S,c[I]),_=0,I=0)):_=0}n=26}return S},J.prototype.convertTo=function(t){var r=t.umod(this.m);return r===t?r.clone():r},J.prototype.convertFrom=function(t){var r=t.clone();return r.red=null,r},a.mont=function(t){return new me(t)},b(me,J),me.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},me.prototype.convertFrom=function(t){var r=this.imod(t.mul(this.rinv));return r.red=null,r},me.prototype.imul=function(t,r){if(t.isZero()||r.isZero())return t.words[0]=0,t.length=1,t;var h=t.imul(r),c=h.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),C=h.isub(c).iushrn(this.shift),S=C;return C.cmp(this.m)>=0?S=C.isub(this.m):C.cmpn(0)<0&&(S=C.iadd(this.m)),S._forceRed(this)},me.prototype.mul=function(t,r){if(t.isZero()||r.isZero())return new a(0)._forceRed(this);var h=t.mul(r),c=h.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),C=h.isub(c).iushrn(this.shift),S=C;return C.cmp(this.m)>=0?S=C.isub(this.m):C.cmpn(0)<0&&(S=C.iadd(this.m)),S._forceRed(this)},me.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(He=p.nmd(He),this)},4901:He=>{"use strict";var j={single_source_shortest_paths:function(p,e,i){var u={},b={};b[e]=0;var y,d,P,D,T,A,a=j.PriorityQueue.make();for(a.push(e,0);!a.empty();)for(P in D=(y=a.pop()).cost,T=p[d=y.value]||{})T.hasOwnProperty(P)&&(A=D+T[P],(void 0===b[P]||b[P]>A)&&(b[P]=A,a.push(P,A),u[P]=d));if(void 0!==i&&void 0===b[i]){var w=["Could not find a path from ",e," to ",i,"."].join("");throw new Error(w)}return u},extract_shortest_path_from_predecessor_list:function(p,e){for(var i=[],u=e;u;)i.push(u),u=p[u];return i.reverse(),i},find_path:function(p,e,i){var u=j.single_source_shortest_paths(p,e,i);return j.extract_shortest_path_from_predecessor_list(u,i)},PriorityQueue:{make:function(p){var u,e=j.PriorityQueue,i={};for(u in p=p||{},e)e.hasOwnProperty(u)&&(i[u]=e[u]);return i.queue=[],i.sorter=p.sorter||e.default_sorter,i},default_sorter:function(p,e){return p.cost-e.cost},push:function(p,e){this.queue.push({value:p,cost:e}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};He.exports=j},7715:(He,j,p)=>{"use strict";var e=j;e.version=p(8597).i8,e.utils=p(1970),e.rand=p(7950),e.curve=p(6270),e.curves=p(2916),e.ec=p(7626),e.eddsa=p(1885)},7902:(He,j,p)=>{"use strict";var e=p(7433),i=p(1970),u=i.getNAF,b=i.getJSF,a=i.assert;function y(P,D){this.type=P,this.p=new e(D.p,16),this.red=D.prime?e.red(D.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=D.n&&new e(D.n,16),this.g=D.g&&this.pointFromJSON(D.g,D.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var T=this.n&&this.p.div(this.n);!T||T.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function d(P,D){this.curve=P,this.type=D,this.precomputed=null}He.exports=y,y.prototype.point=function(){throw new Error("Not implemented")},y.prototype.validate=function(){throw new Error("Not implemented")},y.prototype._fixedNafMul=function(D,T){a(D.precomputed);var M=D._getDoubles(),A=u(T,1,this._bitLength),E=(1<<M.step+1)-(M.step%2==0?2:1);E/=3;var w,z,k=[];for(w=0;w<A.length;w+=M.step){z=0;for(var U=w+M.step-1;U>=w;U--)z=(z<<1)+A[U];k.push(z)}for(var W=this.jpoint(null,null,null),ne=this.jpoint(null,null,null),Q=E;Q>0;Q--){for(w=0;w<k.length;w++)(z=k[w])===Q?ne=ne.mixedAdd(M.points[w]):z===-Q&&(ne=ne.mixedAdd(M.points[w].neg()));W=W.add(ne)}return W.toP()},y.prototype._wnafMul=function(D,T){for(var M=4,A=D._getNAFPoints(M),E=A.points,k=u(T,M=A.wnd,this._bitLength),w=this.jpoint(null,null,null),z=k.length-1;z>=0;z--){for(var U=0;z>=0&&0===k[z];z--)U++;if(z>=0&&U++,w=w.dblp(U),z<0)break;var W=k[z];a(0!==W),w="affine"===D.type?w.mixedAdd(W>0?E[W-1>>1]:E[-W-1>>1].neg()):w.add(W>0?E[W-1>>1]:E[-W-1>>1].neg())}return"affine"===D.type?w.toP():w},y.prototype._wnafMulAdd=function(D,T,M,A,E){var W,ne,Q,k=this._wnafT1,w=this._wnafT2,z=this._wnafT3,U=0;for(W=0;W<A;W++){var le=(Q=T[W])._getNAFPoints(D);k[W]=le.wnd,w[W]=le.points}for(W=A-1;W>=1;W-=2){var q=W-1,ie=W;if(1===k[q]&&1===k[ie]){var se=[T[q],null,null,T[ie]];0===T[q].y.cmp(T[ie].y)?(se[1]=T[q].add(T[ie]),se[2]=T[q].toJ().mixedAdd(T[ie].neg())):0===T[q].y.cmp(T[ie].y.redNeg())?(se[1]=T[q].toJ().mixedAdd(T[ie]),se[2]=T[q].add(T[ie].neg())):(se[1]=T[q].toJ().mixedAdd(T[ie]),se[2]=T[q].toJ().mixedAdd(T[ie].neg()));var J=[-3,-1,-5,-7,0,7,5,1,3],me=b(M[q],M[ie]);for(U=Math.max(me[0].length,U),z[q]=new Array(U),z[ie]=new Array(U),ne=0;ne<U;ne++)z[q][ne]=J[3*(1+(0|me[0][ne]))+(1+(0|me[1][ne]))],z[ie][ne]=0,w[q]=se}else z[q]=u(M[q],k[q],this._bitLength),z[ie]=u(M[ie],k[ie],this._bitLength),U=Math.max(z[q].length,U),U=Math.max(z[ie].length,U)}var r=this.jpoint(null,null,null),h=this._wnafT4;for(W=U;W>=0;W--){for(var c=0;W>=0;){var C=!0;for(ne=0;ne<A;ne++)h[ne]=0|z[ne][W],0!==h[ne]&&(C=!1);if(!C)break;c++,W--}if(W>=0&&c++,r=r.dblp(c),W<0)break;for(ne=0;ne<A;ne++){var S=h[ne];0!==S&&(S>0?Q=w[ne][S-1>>1]:S<0&&(Q=w[ne][-S-1>>1].neg()),r="affine"===Q.type?r.mixedAdd(Q):r.add(Q))}}for(W=0;W<A;W++)w[W]=null;return E?r:r.toP()},y.BasePoint=d,d.prototype.eq=function(){throw new Error("Not implemented")},d.prototype.validate=function(){return this.curve.validate(this)},y.prototype.decodePoint=function(D,T){D=i.toArray(D,T);var M=this.p.byteLength();if((4===D[0]||6===D[0]||7===D[0])&&D.length-1==2*M)return 6===D[0]?a(D[D.length-1]%2==0):7===D[0]&&a(D[D.length-1]%2==1),this.point(D.slice(1,1+M),D.slice(1+M,1+2*M));if((2===D[0]||3===D[0])&&D.length-1===M)return this.pointFromX(D.slice(1,1+M),3===D[0]);throw new Error("Unknown point format")},d.prototype.encodeCompressed=function(D){return this.encode(D,!0)},d.prototype._encode=function(D){var T=this.curve.p.byteLength(),M=this.getX().toArray("be",T);return D?[this.getY().isEven()?2:3].concat(M):[4].concat(M,this.getY().toArray("be",T))},d.prototype.encode=function(D,T){return i.encode(this._encode(T),D)},d.prototype.precompute=function(D){if(this.precomputed)return this;var T={doubles:null,naf:null,beta:null};return T.naf=this._getNAFPoints(8),T.doubles=this._getDoubles(4,D),T.beta=this._getBeta(),this.precomputed=T,this},d.prototype._hasDoubles=function(D){if(!this.precomputed)return!1;var T=this.precomputed.doubles;return!!T&&T.points.length>=Math.ceil((D.bitLength()+1)/T.step)},d.prototype._getDoubles=function(D,T){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var M=[this],A=this,E=0;E<T;E+=D){for(var k=0;k<D;k++)A=A.dbl();M.push(A)}return{step:D,points:M}},d.prototype._getNAFPoints=function(D){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var T=[this],M=(1<<D)-1,A=1===M?null:this.dbl(),E=1;E<M;E++)T[E]=T[E-1].add(A);return{wnd:D,points:T}},d.prototype._getBeta=function(){return null},d.prototype.dblp=function(D){for(var T=this,M=0;M<D;M++)T=T.dbl();return T}},3835:(He,j,p)=>{"use strict";var e=p(1970),i=p(7433),u=p(3894),b=p(7902),a=e.assert;function y(P){this.twisted=1!=(0|P.a),this.mOneA=this.twisted&&-1==(0|P.a),this.extended=this.mOneA,b.call(this,"edwards",P),this.a=new i(P.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new i(P.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new i(P.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),a(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|P.c)}function d(P,D,T,M,A){b.BasePoint.call(this,P,"projective"),null===D&&null===T&&null===M?(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 i(D,16),this.y=new i(T,16),this.z=M?new i(M,16):this.curve.one,this.t=A&&new i(A,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}u(y,b),He.exports=y,y.prototype._mulA=function(D){return this.mOneA?D.redNeg():this.a.redMul(D)},y.prototype._mulC=function(D){return this.oneC?D:this.c.redMul(D)},y.prototype.jpoint=function(D,T,M,A){return this.point(D,T,M,A)},y.prototype.pointFromX=function(D,T){(D=new i(D,16)).red||(D=D.toRed(this.red));var M=D.redSqr(),A=this.c2.redSub(this.a.redMul(M)),E=this.one.redSub(this.c2.redMul(this.d).redMul(M)),k=A.redMul(E.redInvm()),w=k.redSqrt();if(0!==w.redSqr().redSub(k).cmp(this.zero))throw new Error("invalid point");var z=w.fromRed().isOdd();return(T&&!z||!T&&z)&&(w=w.redNeg()),this.point(D,w)},y.prototype.pointFromY=function(D,T){(D=new i(D,16)).red||(D=D.toRed(this.red));var M=D.redSqr(),A=M.redSub(this.c2),E=M.redMul(this.d).redMul(this.c2).redSub(this.a),k=A.redMul(E.redInvm());if(0===k.cmp(this.zero)){if(T)throw new Error("invalid point");return this.point(this.zero,D)}var w=k.redSqrt();if(0!==w.redSqr().redSub(k).cmp(this.zero))throw new Error("invalid point");return w.fromRed().isOdd()!==T&&(w=w.redNeg()),this.point(w,D)},y.prototype.validate=function(D){if(D.isInfinity())return!0;D.normalize();var T=D.x.redSqr(),M=D.y.redSqr(),A=T.redMul(this.a).redAdd(M),E=this.c2.redMul(this.one.redAdd(this.d.redMul(T).redMul(M)));return 0===A.cmp(E)},u(d,b.BasePoint),y.prototype.pointFromJSON=function(D){return d.fromJSON(this,D)},y.prototype.point=function(D,T,M,A){return new d(this,D,T,M,A)},d.fromJSON=function(D,T){return new d(D,T[0],T[1],T[2])},d.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},d.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},d.prototype._extDbl=function(){var D=this.x.redSqr(),T=this.y.redSqr(),M=this.z.redSqr();M=M.redIAdd(M);var A=this.curve._mulA(D),E=this.x.redAdd(this.y).redSqr().redISub(D).redISub(T),k=A.redAdd(T),w=k.redSub(M),z=A.redSub(T),U=E.redMul(w),W=k.redMul(z),ne=E.redMul(z),Q=w.redMul(k);return this.curve.point(U,W,Q,ne)},d.prototype._projDbl=function(){var A,E,k,w,z,U,D=this.x.redAdd(this.y).redSqr(),T=this.x.redSqr(),M=this.y.redSqr();if(this.curve.twisted){var W=(w=this.curve._mulA(T)).redAdd(M);this.zOne?(A=D.redSub(T).redSub(M).redMul(W.redSub(this.curve.two)),E=W.redMul(w.redSub(M)),k=W.redSqr().redSub(W).redSub(W)):(z=this.z.redSqr(),U=W.redSub(z).redISub(z),A=D.redSub(T).redISub(M).redMul(U),E=W.redMul(w.redSub(M)),k=W.redMul(U))}else w=T.redAdd(M),z=this.curve._mulC(this.z).redSqr(),U=w.redSub(z).redSub(z),A=this.curve._mulC(D.redISub(w)).redMul(U),E=this.curve._mulC(w).redMul(T.redISub(M)),k=w.redMul(U);return this.curve.point(A,E,k)},d.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},d.prototype._extAdd=function(D){var T=this.y.redSub(this.x).redMul(D.y.redSub(D.x)),M=this.y.redAdd(this.x).redMul(D.y.redAdd(D.x)),A=this.t.redMul(this.curve.dd).redMul(D.t),E=this.z.redMul(D.z.redAdd(D.z)),k=M.redSub(T),w=E.redSub(A),z=E.redAdd(A),U=M.redAdd(T),W=k.redMul(w),ne=z.redMul(U),Q=k.redMul(U),le=w.redMul(z);return this.curve.point(W,ne,le,Q)},d.prototype._projAdd=function(D){var ne,Q,T=this.z.redMul(D.z),M=T.redSqr(),A=this.x.redMul(D.x),E=this.y.redMul(D.y),k=this.curve.d.redMul(A).redMul(E),w=M.redSub(k),z=M.redAdd(k),U=this.x.redAdd(this.y).redMul(D.x.redAdd(D.y)).redISub(A).redISub(E),W=T.redMul(w).redMul(U);return this.curve.twisted?(ne=T.redMul(z).redMul(E.redSub(this.curve._mulA(A))),Q=w.redMul(z)):(ne=T.redMul(z).redMul(E.redSub(A)),Q=this.curve._mulC(w).redMul(z)),this.curve.point(W,ne,Q)},d.prototype.add=function(D){return this.isInfinity()?D:D.isInfinity()?this:this.curve.extended?this._extAdd(D):this._projAdd(D)},d.prototype.mul=function(D){return this._hasDoubles(D)?this.curve._fixedNafMul(this,D):this.curve._wnafMul(this,D)},d.prototype.mulAdd=function(D,T,M){return this.curve._wnafMulAdd(1,[this,T],[D,M],2,!1)},d.prototype.jmulAdd=function(D,T,M){return this.curve._wnafMulAdd(1,[this,T],[D,M],2,!0)},d.prototype.normalize=function(){if(this.zOne)return this;var D=this.z.redInvm();return this.x=this.x.redMul(D),this.y=this.y.redMul(D),this.t&&(this.t=this.t.redMul(D)),this.z=this.curve.one,this.zOne=!0,this},d.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},d.prototype.getX=function(){return this.normalize(),this.x.fromRed()},d.prototype.getY=function(){return this.normalize(),this.y.fromRed()},d.prototype.eq=function(D){return this===D||0===this.getX().cmp(D.getX())&&0===this.getY().cmp(D.getY())},d.prototype.eqXToP=function(D){var T=D.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(T))return!0;for(var M=D.clone(),A=this.curve.redN.redMul(this.z);;){if(M.iadd(this.curve.n),M.cmp(this.curve.p)>=0)return!1;if(T.redIAdd(A),0===this.x.cmp(T))return!0}},d.prototype.toP=d.prototype.normalize,d.prototype.mixedAdd=d.prototype.add},6270:(He,j,p)=>{"use strict";var e=j;e.base=p(7902),e.short=p(1781),e.mont=p(7064),e.edwards=p(3835)},7064:(He,j,p)=>{"use strict";var e=p(7433),i=p(3894),u=p(7902),b=p(1970);function a(d){u.call(this,"mont",d),this.a=new e(d.a,16).toRed(this.red),this.b=new e(d.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 y(d,P,D){u.BasePoint.call(this,d,"projective"),null===P&&null===D?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new e(P,16),this.z=new e(D,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}i(a,u),He.exports=a,a.prototype.validate=function(P){var D=P.normalize().x,T=D.redSqr(),M=T.redMul(D).redAdd(T.redMul(this.a)).redAdd(D);return 0===M.redSqrt().redSqr().cmp(M)},i(y,u.BasePoint),a.prototype.decodePoint=function(P,D){return this.point(b.toArray(P,D),1)},a.prototype.point=function(P,D){return new y(this,P,D)},a.prototype.pointFromJSON=function(P){return y.fromJSON(this,P)},y.prototype.precompute=function(){},y.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},y.fromJSON=function(P,D){return new y(P,D[0],D[1]||P.one)},y.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)+">"},y.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},y.prototype.dbl=function(){var D=this.x.redAdd(this.z).redSqr(),M=this.x.redSub(this.z).redSqr(),A=D.redSub(M),E=D.redMul(M),k=A.redMul(M.redAdd(this.curve.a24.redMul(A)));return this.curve.point(E,k)},y.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},y.prototype.diffAdd=function(P,D){var T=this.x.redAdd(this.z),M=this.x.redSub(this.z),A=P.x.redAdd(P.z),k=P.x.redSub(P.z).redMul(T),w=A.redMul(M),z=D.z.redMul(k.redAdd(w).redSqr()),U=D.x.redMul(k.redISub(w).redSqr());return this.curve.point(z,U)},y.prototype.mul=function(P){for(var D=P.clone(),T=this,M=this.curve.point(null,null),E=[];0!==D.cmpn(0);D.iushrn(1))E.push(D.andln(1));for(var k=E.length-1;k>=0;k--)0===E[k]?(T=T.diffAdd(M,this),M=M.dbl()):(M=T.diffAdd(M,this),T=T.dbl());return M},y.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},y.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},y.prototype.eq=function(P){return 0===this.getX().cmp(P.getX())},y.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},y.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},1781:(He,j,p)=>{"use strict";var e=p(1970),i=p(7433),u=p(3894),b=p(7902),a=e.assert;function y(D){b.call(this,"short",D),this.a=new i(D.a,16).toRed(this.red),this.b=new i(D.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(D),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function d(D,T,M,A){b.BasePoint.call(this,D,"affine"),null===T&&null===M?(this.x=null,this.y=null,this.inf=!0):(this.x=new i(T,16),this.y=new i(M,16),A&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function P(D,T,M,A){b.BasePoint.call(this,D,"jacobian"),null===T&&null===M&&null===A?(this.x=this.curve.one,this.y=this.curve.one,this.z=new i(0)):(this.x=new i(T,16),this.y=new i(M,16),this.z=new i(A,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}u(y,b),He.exports=y,y.prototype._getEndomorphism=function(T){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var M,A;if(T.beta)M=new i(T.beta,16).toRed(this.red);else{var E=this._getEndoRoots(this.p);M=(M=E[0].cmp(E[1])<0?E[0]:E[1]).toRed(this.red)}if(T.lambda)A=new i(T.lambda,16);else{var k=this._getEndoRoots(this.n);0===this.g.mul(k[0]).x.cmp(this.g.x.redMul(M))?A=k[0]:a(0===this.g.mul(A=k[1]).x.cmp(this.g.x.redMul(M)))}return{beta:M,lambda:A,basis:T.basis?T.basis.map(function(z){return{a:new i(z.a,16),b:new i(z.b,16)}}):this._getEndoBasis(A)}}},y.prototype._getEndoRoots=function(T){var M=T===this.p?this.red:i.mont(T),A=new i(2).toRed(M).redInvm(),E=A.redNeg(),k=new i(3).toRed(M).redNeg().redSqrt().redMul(A);return[E.redAdd(k).fromRed(),E.redSub(k).fromRed()]},y.prototype._getEndoBasis=function(T){for(var W,ne,Q,le,q,ie,se,me,x,M=this.n.ushrn(Math.floor(this.n.bitLength()/2)),A=T,E=this.n.clone(),k=new i(1),w=new i(0),z=new i(0),U=new i(1),J=0;0!==A.cmpn(0);){var t=E.div(A);me=E.sub(t.mul(A)),x=z.sub(t.mul(k));var r=U.sub(t.mul(w));if(!Q&&me.cmp(M)<0)W=se.neg(),ne=k,Q=me.neg(),le=x;else if(Q&&2==++J)break;se=me,E=A,A=me,z=k,k=x,U=w,w=r}q=me.neg(),ie=x;var h=Q.sqr().add(le.sqr());return q.sqr().add(ie.sqr()).cmp(h)>=0&&(q=W,ie=ne),Q.negative&&(Q=Q.neg(),le=le.neg()),q.negative&&(q=q.neg(),ie=ie.neg()),[{a:Q,b:le},{a:q,b:ie}]},y.prototype._endoSplit=function(T){var M=this.endo.basis,A=M[0],E=M[1],k=E.b.mul(T).divRound(this.n),w=A.b.neg().mul(T).divRound(this.n),z=k.mul(A.a),U=w.mul(E.a),W=k.mul(A.b),ne=w.mul(E.b);return{k1:T.sub(z).sub(U),k2:W.add(ne).neg()}},y.prototype.pointFromX=function(T,M){(T=new i(T,16)).red||(T=T.toRed(this.red));var A=T.redSqr().redMul(T).redIAdd(T.redMul(this.a)).redIAdd(this.b),E=A.redSqrt();if(0!==E.redSqr().redSub(A).cmp(this.zero))throw new Error("invalid point");var k=E.fromRed().isOdd();return(M&&!k||!M&&k)&&(E=E.redNeg()),this.point(T,E)},y.prototype.validate=function(T){if(T.inf)return!0;var M=T.x,A=T.y,E=this.a.redMul(M),k=M.redSqr().redMul(M).redIAdd(E).redIAdd(this.b);return 0===A.redSqr().redISub(k).cmpn(0)},y.prototype._endoWnafMulAdd=function(T,M,A){for(var E=this._endoWnafT1,k=this._endoWnafT2,w=0;w<T.length;w++){var z=this._endoSplit(M[w]),U=T[w],W=U._getBeta();z.k1.negative&&(z.k1.ineg(),U=U.neg(!0)),z.k2.negative&&(z.k2.ineg(),W=W.neg(!0)),E[2*w]=U,E[2*w+1]=W,k[2*w]=z.k1,k[2*w+1]=z.k2}for(var ne=this._wnafMulAdd(1,E,k,2*w,A),Q=0;Q<2*w;Q++)E[Q]=null,k[Q]=null;return ne},u(d,b.BasePoint),y.prototype.point=function(T,M,A){return new d(this,T,M,A)},y.prototype.pointFromJSON=function(T,M){return d.fromJSON(this,T,M)},d.prototype._getBeta=function(){if(this.curve.endo){var T=this.precomputed;if(T&&T.beta)return T.beta;var M=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(T){var A=this.curve,E=function(k){return A.point(k.x.redMul(A.endo.beta),k.y)};T.beta=M,M.precomputed={beta:null,naf:T.naf&&{wnd:T.naf.wnd,points:T.naf.points.map(E)},doubles:T.doubles&&{step:T.doubles.step,points:T.doubles.points.map(E)}}}return M}},d.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},d.fromJSON=function(T,M,A){"string"==typeof M&&(M=JSON.parse(M));var E=T.point(M[0],M[1],A);if(!M[2])return E;function k(z){return T.point(z[0],z[1],A)}var w=M[2];return E.precomputed={beta:null,doubles:w.doubles&&{step:w.doubles.step,points:[E].concat(w.doubles.points.map(k))},naf:w.naf&&{wnd:w.naf.wnd,points:[E].concat(w.naf.points.map(k))}},E},d.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},d.prototype.isInfinity=function(){return this.inf},d.prototype.add=function(T){if(this.inf)return T;if(T.inf)return this;if(this.eq(T))return this.dbl();if(this.neg().eq(T))return this.curve.point(null,null);if(0===this.x.cmp(T.x))return this.curve.point(null,null);var M=this.y.redSub(T.y);0!==M.cmpn(0)&&(M=M.redMul(this.x.redSub(T.x).redInvm()));var A=M.redSqr().redISub(this.x).redISub(T.x),E=M.redMul(this.x.redSub(A)).redISub(this.y);return this.curve.point(A,E)},d.prototype.dbl=function(){if(this.inf)return this;var T=this.y.redAdd(this.y);if(0===T.cmpn(0))return this.curve.point(null,null);var M=this.curve.a,A=this.x.redSqr(),E=T.redInvm(),k=A.redAdd(A).redIAdd(A).redIAdd(M).redMul(E),w=k.redSqr().redISub(this.x.redAdd(this.x)),z=k.redMul(this.x.redSub(w)).redISub(this.y);return this.curve.point(w,z)},d.prototype.getX=function(){return this.x.fromRed()},d.prototype.getY=function(){return this.y.fromRed()},d.prototype.mul=function(T){return T=new i(T,16),this.isInfinity()?this:this._hasDoubles(T)?this.curve._fixedNafMul(this,T):this.curve.endo?this.curve._endoWnafMulAdd([this],[T]):this.curve._wnafMul(this,T)},d.prototype.mulAdd=function(T,M,A){var E=[this,M],k=[T,A];return this.curve.endo?this.curve._endoWnafMulAdd(E,k):this.curve._wnafMulAdd(1,E,k,2)},d.prototype.jmulAdd=function(T,M,A){var E=[this,M],k=[T,A];return this.curve.endo?this.curve._endoWnafMulAdd(E,k,!0):this.curve._wnafMulAdd(1,E,k,2,!0)},d.prototype.eq=function(T){return this===T||this.inf===T.inf&&(this.inf||0===this.x.cmp(T.x)&&0===this.y.cmp(T.y))},d.prototype.neg=function(T){if(this.inf)return this;var M=this.curve.point(this.x,this.y.redNeg());if(T&&this.precomputed){var A=this.precomputed,E=function(k){return k.neg()};M.precomputed={naf:A.naf&&{wnd:A.naf.wnd,points:A.naf.points.map(E)},doubles:A.doubles&&{step:A.doubles.step,points:A.doubles.points.map(E)}}}return M},d.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},u(P,b.BasePoint),y.prototype.jpoint=function(T,M,A){return new P(this,T,M,A)},P.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var T=this.z.redInvm(),M=T.redSqr(),A=this.x.redMul(M),E=this.y.redMul(M).redMul(T);return this.curve.point(A,E)},P.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},P.prototype.add=function(T){if(this.isInfinity())return T;if(T.isInfinity())return this;var M=T.z.redSqr(),A=this.z.redSqr(),E=this.x.redMul(M),k=T.x.redMul(A),w=this.y.redMul(M.redMul(T.z)),z=T.y.redMul(A.redMul(this.z)),U=E.redSub(k),W=w.redSub(z);if(0===U.cmpn(0))return 0!==W.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var ne=U.redSqr(),Q=ne.redMul(U),le=E.redMul(ne),q=W.redSqr().redIAdd(Q).redISub(le).redISub(le),ie=W.redMul(le.redISub(q)).redISub(w.redMul(Q)),se=this.z.redMul(T.z).redMul(U);return this.curve.jpoint(q,ie,se)},P.prototype.mixedAdd=function(T){if(this.isInfinity())return T.toJ();if(T.isInfinity())return this;var M=this.z.redSqr(),A=this.x,E=T.x.redMul(M),k=this.y,w=T.y.redMul(M).redMul(this.z),z=A.redSub(E),U=k.redSub(w);if(0===z.cmpn(0))return 0!==U.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var W=z.redSqr(),ne=W.redMul(z),Q=A.redMul(W),le=U.redSqr().redIAdd(ne).redISub(Q).redISub(Q),q=U.redMul(Q.redISub(le)).redISub(k.redMul(ne)),ie=this.z.redMul(z);return this.curve.jpoint(le,q,ie)},P.prototype.dblp=function(T){if(0===T)return this;if(this.isInfinity())return this;if(!T)return this.dbl();var M;if(this.curve.zeroA||this.curve.threeA){var A=this;for(M=0;M<T;M++)A=A.dbl();return A}var E=this.curve.a,k=this.curve.tinv,w=this.x,z=this.y,U=this.z,W=U.redSqr().redSqr(),ne=z.redAdd(z);for(M=0;M<T;M++){var Q=w.redSqr(),le=ne.redSqr(),q=le.redSqr(),ie=Q.redAdd(Q).redIAdd(Q).redIAdd(E.redMul(W)),se=w.redMul(le),J=ie.redSqr().redISub(se.redAdd(se)),me=se.redISub(J),x=ie.redMul(me);x=x.redIAdd(x).redISub(q);var t=ne.redMul(U);M+1<T&&(W=W.redMul(q)),w=J,U=t,ne=x}return this.curve.jpoint(w,ne.redMul(k),U)},P.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},P.prototype._zeroDbl=function(){var T,M,A;if(this.zOne){var E=this.x.redSqr(),k=this.y.redSqr(),w=k.redSqr(),z=this.x.redAdd(k).redSqr().redISub(E).redISub(w);z=z.redIAdd(z);var U=E.redAdd(E).redIAdd(E),W=U.redSqr().redISub(z).redISub(z),ne=w.redIAdd(w);ne=(ne=ne.redIAdd(ne)).redIAdd(ne),T=W,M=U.redMul(z.redISub(W)).redISub(ne),A=this.y.redAdd(this.y)}else{var Q=this.x.redSqr(),le=this.y.redSqr(),q=le.redSqr(),ie=this.x.redAdd(le).redSqr().redISub(Q).redISub(q);ie=ie.redIAdd(ie);var se=Q.redAdd(Q).redIAdd(Q),J=se.redSqr(),me=q.redIAdd(q);me=(me=me.redIAdd(me)).redIAdd(me),T=J.redISub(ie).redISub(ie),M=se.redMul(ie.redISub(T)).redISub(me),A=(A=this.y.redMul(this.z)).redIAdd(A)}return this.curve.jpoint(T,M,A)},P.prototype._threeDbl=function(){var T,M,A;if(this.zOne){var E=this.x.redSqr(),k=this.y.redSqr(),w=k.redSqr(),z=this.x.redAdd(k).redSqr().redISub(E).redISub(w);z=z.redIAdd(z);var U=E.redAdd(E).redIAdd(E).redIAdd(this.curve.a),W=U.redSqr().redISub(z).redISub(z);T=W;var ne=w.redIAdd(w);ne=(ne=ne.redIAdd(ne)).redIAdd(ne),M=U.redMul(z.redISub(W)).redISub(ne),A=this.y.redAdd(this.y)}else{var Q=this.z.redSqr(),le=this.y.redSqr(),q=this.x.redMul(le),ie=this.x.redSub(Q).redMul(this.x.redAdd(Q));ie=ie.redAdd(ie).redIAdd(ie);var se=q.redIAdd(q),J=(se=se.redIAdd(se)).redAdd(se);T=ie.redSqr().redISub(J),A=this.y.redAdd(this.z).redSqr().redISub(le).redISub(Q);var me=le.redSqr();me=(me=(me=me.redIAdd(me)).redIAdd(me)).redIAdd(me),M=ie.redMul(se.redISub(T)).redISub(me)}return this.curve.jpoint(T,M,A)},P.prototype._dbl=function(){var T=this.curve.a,M=this.x,A=this.y,E=this.z,k=E.redSqr().redSqr(),w=M.redSqr(),z=A.redSqr(),U=w.redAdd(w).redIAdd(w).redIAdd(T.redMul(k)),W=M.redAdd(M),ne=(W=W.redIAdd(W)).redMul(z),Q=U.redSqr().redISub(ne.redAdd(ne)),le=ne.redISub(Q),q=z.redSqr();q=(q=(q=q.redIAdd(q)).redIAdd(q)).redIAdd(q);var ie=U.redMul(le).redISub(q),se=A.redAdd(A).redMul(E);return this.curve.jpoint(Q,ie,se)},P.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var T=this.x.redSqr(),M=this.y.redSqr(),A=this.z.redSqr(),E=M.redSqr(),k=T.redAdd(T).redIAdd(T),w=k.redSqr(),z=this.x.redAdd(M).redSqr().redISub(T).redISub(E),U=(z=(z=(z=z.redIAdd(z)).redAdd(z).redIAdd(z)).redISub(w)).redSqr(),W=E.redIAdd(E);W=(W=(W=W.redIAdd(W)).redIAdd(W)).redIAdd(W);var ne=k.redIAdd(z).redSqr().redISub(w).redISub(U).redISub(W),Q=M.redMul(ne);Q=(Q=Q.redIAdd(Q)).redIAdd(Q);var le=this.x.redMul(U).redISub(Q);le=(le=le.redIAdd(le)).redIAdd(le);var q=this.y.redMul(ne.redMul(W.redISub(ne)).redISub(z.redMul(U)));q=(q=(q=q.redIAdd(q)).redIAdd(q)).redIAdd(q);var ie=this.z.redAdd(z).redSqr().redISub(A).redISub(U);return this.curve.jpoint(le,q,ie)},P.prototype.mul=function(T,M){return T=new i(T,M),this.curve._wnafMul(this,T)},P.prototype.eq=function(T){if("affine"===T.type)return this.eq(T.toJ());if(this===T)return!0;var M=this.z.redSqr(),A=T.z.redSqr();if(0!==this.x.redMul(A).redISub(T.x.redMul(M)).cmpn(0))return!1;var E=M.redMul(this.z),k=A.redMul(T.z);return 0===this.y.redMul(k).redISub(T.y.redMul(E)).cmpn(0)},P.prototype.eqXToP=function(T){var M=this.z.redSqr(),A=T.toRed(this.curve.red).redMul(M);if(0===this.x.cmp(A))return!0;for(var E=T.clone(),k=this.curve.redN.redMul(M);;){if(E.iadd(this.curve.n),E.cmp(this.curve.p)>=0)return!1;if(A.redIAdd(k),0===this.x.cmp(A))return!0}},P.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},P.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},2916:(He,j,p)=>{"use strict";var P,e=j,i=p(7084),u=p(6270),a=p(1970).assert;function y(D){this.curve="short"===D.type?new u.short(D):"edwards"===D.type?new u.edwards(D):new u.mont(D),this.g=this.curve.g,this.n=this.curve.n,this.hash=D.hash,a(this.g.validate(),"Invalid curve"),a(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function d(D,T){Object.defineProperty(e,D,{configurable:!0,enumerable:!0,get:function(){var M=new y(T);return Object.defineProperty(e,D,{configurable:!0,enumerable:!0,value:M}),M}})}e.PresetCurve=y,d("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:i.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),d("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:i.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),d("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:i.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),d("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:i.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),d("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:i.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),d("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:i.sha256,gRed:!1,g:["9"]}),d("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:i.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{P=p(5150)}catch(D){P=void 0}d("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:i.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",P]})},7626:(He,j,p)=>{"use strict";var e=p(7433),i=p(2438),u=p(1970),b=p(2916),a=p(7950),y=u.assert,d=p(1259),P=p(5957);function D(T){if(!(this instanceof D))return new D(T);"string"==typeof T&&(y(Object.prototype.hasOwnProperty.call(b,T),"Unknown curve "+T),T=b[T]),T instanceof b.PresetCurve&&(T={curve:T}),this.curve=T.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=T.curve.g,this.g.precompute(T.curve.n.bitLength()+1),this.hash=T.hash||T.curve.hash}He.exports=D,D.prototype.keyPair=function(M){return new d(this,M)},D.prototype.keyFromPrivate=function(M,A){return d.fromPrivate(this,M,A)},D.prototype.keyFromPublic=function(M,A){return d.fromPublic(this,M,A)},D.prototype.genKeyPair=function(M){M||(M={});for(var A=new i({hash:this.hash,pers:M.pers,persEnc:M.persEnc||"utf8",entropy:M.entropy||a(this.hash.hmacStrength),entropyEnc:M.entropy&&M.entropyEnc||"utf8",nonce:this.n.toArray()}),E=this.n.byteLength(),k=this.n.sub(new e(2));;){var w=new e(A.generate(E));if(!(w.cmp(k)>0))return w.iaddn(1),this.keyFromPrivate(w)}},D.prototype._truncateToN=function(M,A){var E=8*M.byteLength()-this.n.bitLength();return E>0&&(M=M.ushrn(E)),!A&&M.cmp(this.n)>=0?M.sub(this.n):M},D.prototype.sign=function(M,A,E,k){"object"==typeof E&&(k=E,E=null),k||(k={}),A=this.keyFromPrivate(A,E),M=this._truncateToN(new e(M,16));for(var w=this.n.byteLength(),z=A.getPrivate().toArray("be",w),U=M.toArray("be",w),W=new i({hash:this.hash,entropy:z,nonce:U,pers:k.pers,persEnc:k.persEnc||"utf8"}),ne=this.n.sub(new e(1)),Q=0;;Q++){var le=k.k?k.k(Q):new e(W.generate(this.n.byteLength()));if(!((le=this._truncateToN(le,!0)).cmpn(1)<=0||le.cmp(ne)>=0)){var q=this.g.mul(le);if(!q.isInfinity()){var ie=q.getX(),se=ie.umod(this.n);if(0!==se.cmpn(0)){var J=le.invm(this.n).mul(se.mul(A.getPrivate()).iadd(M));if(0!==(J=J.umod(this.n)).cmpn(0)){var me=(q.getY().isOdd()?1:0)|(0!==ie.cmp(se)?2:0);return k.canonical&&J.cmp(this.nh)>0&&(J=this.n.sub(J),me^=1),new P({r:se,s:J,recoveryParam:me})}}}}}},D.prototype.verify=function(M,A,E,k){M=this._truncateToN(new e(M,16)),E=this.keyFromPublic(E,k);var w=(A=new P(A,"hex")).r,z=A.s;if(w.cmpn(1)<0||w.cmp(this.n)>=0||z.cmpn(1)<0||z.cmp(this.n)>=0)return!1;var Q,U=z.invm(this.n),W=U.mul(M).umod(this.n),ne=U.mul(w).umod(this.n);return this.curve._maxwellTrick?!(Q=this.g.jmulAdd(W,E.getPublic(),ne)).isInfinity()&&Q.eqXToP(w):!(Q=this.g.mulAdd(W,E.getPublic(),ne)).isInfinity()&&0===Q.getX().umod(this.n).cmp(w)},D.prototype.recoverPubKey=function(T,M,A,E){y((3&A)===A,"The recovery param is more than two bits"),M=new P(M,E);var k=this.n,w=new e(T),z=M.r,U=M.s,W=1&A,ne=A>>1;if(z.cmp(this.curve.p.umod(this.curve.n))>=0&&ne)throw new Error("Unable to find sencond key candinate");z=this.curve.pointFromX(ne?z.add(this.curve.n):z,W);var Q=M.r.invm(k),le=k.sub(w).mul(Q).umod(k),q=U.mul(Q).umod(k);return this.g.mulAdd(le,z,q)},D.prototype.getKeyRecoveryParam=function(T,M,A,E){if(null!==(M=new P(M,E)).recoveryParam)return M.recoveryParam;for(var k=0;k<4;k++){var w;try{w=this.recoverPubKey(T,M,k)}catch(z){continue}if(w.eq(A))return k}throw new Error("Unable to find valid recovery factor")}},1259:(He,j,p)=>{"use strict";var e=p(7433),u=p(1970).assert;function b(a,y){this.ec=a,this.priv=null,this.pub=null,y.priv&&this._importPrivate(y.priv,y.privEnc),y.pub&&this._importPublic(y.pub,y.pubEnc)}He.exports=b,b.fromPublic=function(y,d,P){return d instanceof b?d:new b(y,{pub:d,pubEnc:P})},b.fromPrivate=function(y,d,P){return d instanceof b?d:new b(y,{priv:d,privEnc:P})},b.prototype.validate=function(){var y=this.getPublic();return y.isInfinity()?{result:!1,reason:"Invalid public key"}:y.validate()?y.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"}},b.prototype.getPublic=function(y,d){return"string"==typeof y&&(d=y,y=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),d?this.pub.encode(d,y):this.pub},b.prototype.getPrivate=function(y){return"hex"===y?this.priv.toString(16,2):this.priv},b.prototype._importPrivate=function(y,d){this.priv=new e(y,d||16),this.priv=this.priv.umod(this.ec.curve.n)},b.prototype._importPublic=function(y,d){if(y.x||y.y)return"mont"===this.ec.curve.type?u(y.x,"Need x coordinate"):("short"===this.ec.curve.type||"edwards"===this.ec.curve.type)&&u(y.x&&y.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(y.x,y.y));this.pub=this.ec.curve.decodePoint(y,d)},b.prototype.derive=function(y){return y.validate()||u(y.validate(),"public point not validated"),y.mul(this.priv).getX()},b.prototype.sign=function(y,d,P){return this.ec.sign(y,this,d,P)},b.prototype.verify=function(y,d){return this.ec.verify(y,d,this)},b.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},5957:(He,j,p)=>{"use strict";var e=p(7433),i=p(1970),u=i.assert;function b(D,T){if(D instanceof b)return D;this._importDER(D,T)||(u(D.r&&D.s,"Signature without r or s"),this.r=new e(D.r,16),this.s=new e(D.s,16),this.recoveryParam=void 0===D.recoveryParam?null:D.recoveryParam)}function a(){this.place=0}function y(D,T){var M=D[T.place++];if(!(128&M))return M;var A=15&M;if(0===A||A>4)return!1;for(var E=0,k=0,w=T.place;k<A;k++,w++)E<<=8,E|=D[w],E>>>=0;return!(E<=127)&&(T.place=w,E)}function d(D){for(var T=0,M=D.length-1;!D[T]&&!(128&D[T+1])&&T<M;)T++;return 0===T?D:D.slice(T)}function P(D,T){if(T<128)D.push(T);else{var M=1+(Math.log(T)/Math.LN2>>>3);for(D.push(128|M);--M;)D.push(T>>>(M<<3)&255);D.push(T)}}He.exports=b,b.prototype._importDER=function(T,M){T=i.toArray(T,M);var A=new a;if(48!==T[A.place++])return!1;var E=y(T,A);if(!1===E||E+A.place!==T.length||2!==T[A.place++])return!1;var k=y(T,A);if(!1===k)return!1;var w=T.slice(A.place,k+A.place);if(A.place+=k,2!==T[A.place++])return!1;var z=y(T,A);if(!1===z||T.length!==z+A.place)return!1;var U=T.slice(A.place,z+A.place);if(0===w[0]){if(!(128&w[1]))return!1;w=w.slice(1)}if(0===U[0]){if(!(128&U[1]))return!1;U=U.slice(1)}return this.r=new e(w),this.s=new e(U),this.recoveryParam=null,!0},b.prototype.toDER=function(T){var M=this.r.toArray(),A=this.s.toArray();for(128&M[0]&&(M=[0].concat(M)),128&A[0]&&(A=[0].concat(A)),M=d(M),A=d(A);!(A[0]||128&A[1]);)A=A.slice(1);var E=[2];P(E,M.length),(E=E.concat(M)).push(2),P(E,A.length);var k=E.concat(A),w=[48];return P(w,k.length),w=w.concat(k),i.encode(w,T)}},1885:(He,j,p)=>{"use strict";var e=p(7084),i=p(2916),u=p(1970),b=u.assert,a=u.parseBytes,y=p(7535),d=p(8241);function P(D){if(b("ed25519"===D,"only tested with ed25519 so far"),!(this instanceof P))return new P(D);this.curve=D=i[D].curve,this.g=D.g,this.g.precompute(D.n.bitLength()+1),this.pointClass=D.point().constructor,this.encodingLength=Math.ceil(D.n.bitLength()/8),this.hash=e.sha512}He.exports=P,P.prototype.sign=function(T,M){T=a(T);var A=this.keyFromSecret(M),E=this.hashInt(A.messagePrefix(),T),k=this.g.mul(E),w=this.encodePoint(k),z=this.hashInt(w,A.pubBytes(),T).mul(A.priv()),U=E.add(z).umod(this.curve.n);return this.makeSignature({R:k,S:U,Rencoded:w})},P.prototype.verify=function(T,M,A){T=a(T),M=this.makeSignature(M);var E=this.keyFromPublic(A),k=this.hashInt(M.Rencoded(),E.pubBytes(),T),w=this.g.mul(M.S());return M.R().add(E.pub().mul(k)).eq(w)},P.prototype.hashInt=function(){for(var T=this.hash(),M=0;M<arguments.length;M++)T.update(arguments[M]);return u.intFromLE(T.digest()).umod(this.curve.n)},P.prototype.keyFromPublic=function(T){return y.fromPublic(this,T)},P.prototype.keyFromSecret=function(T){return y.fromSecret(this,T)},P.prototype.makeSignature=function(T){return T instanceof d?T:new d(this,T)},P.prototype.encodePoint=function(T){var M=T.getY().toArray("le",this.encodingLength);return M[this.encodingLength-1]|=T.getX().isOdd()?128:0,M},P.prototype.decodePoint=function(T){var M=(T=u.parseBytes(T)).length-1,A=T.slice(0,M).concat(-129&T[M]),E=0!=(128&T[M]),k=u.intFromLE(A);return this.curve.pointFromY(k,E)},P.prototype.encodeInt=function(T){return T.toArray("le",this.encodingLength)},P.prototype.decodeInt=function(T){return u.intFromLE(T)},P.prototype.isPoint=function(T){return T instanceof this.pointClass}},7535:(He,j,p)=>{"use strict";var e=p(1970),i=e.assert,u=e.parseBytes,b=e.cachedProperty;function a(y,d){this.eddsa=y,this._secret=u(d.secret),y.isPoint(d.pub)?this._pub=d.pub:this._pubBytes=u(d.pub)}a.fromPublic=function(d,P){return P instanceof a?P:new a(d,{pub:P})},a.fromSecret=function(d,P){return P instanceof a?P:new a(d,{secret:P})},a.prototype.secret=function(){return this._secret},b(a,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),b(a,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),b(a,"privBytes",function(){var d=this.eddsa,P=this.hash(),D=d.encodingLength-1,T=P.slice(0,d.encodingLength);return T[0]&=248,T[D]&=127,T[D]|=64,T}),b(a,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),b(a,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),b(a,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),a.prototype.sign=function(d){return i(this._secret,"KeyPair can only verify"),this.eddsa.sign(d,this)},a.prototype.verify=function(d,P){return this.eddsa.verify(d,P,this)},a.prototype.getSecret=function(d){return i(this._secret,"KeyPair is public only"),e.encode(this.secret(),d)},a.prototype.getPublic=function(d){return e.encode(this.pubBytes(),d)},He.exports=a},8241:(He,j,p)=>{"use strict";var e=p(7433),i=p(1970),u=i.assert,b=i.cachedProperty,a=i.parseBytes;function y(d,P){this.eddsa=d,"object"!=typeof P&&(P=a(P)),Array.isArray(P)&&(P={R:P.slice(0,d.encodingLength),S:P.slice(d.encodingLength)}),u(P.R&&P.S,"Signature without R or S"),d.isPoint(P.R)&&(this._R=P.R),P.S instanceof e&&(this._S=P.S),this._Rencoded=Array.isArray(P.R)?P.R:P.Rencoded,this._Sencoded=Array.isArray(P.S)?P.S:P.Sencoded}b(y,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),b(y,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),b(y,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),b(y,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),y.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},y.prototype.toHex=function(){return i.encode(this.toBytes(),"hex").toUpperCase()},He.exports=y},5150:He=>{He.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},1970:(He,j,p)=>{"use strict";var e=j,i=p(7433),u=p(2391),b=p(8195);e.assert=u,e.toArray=b.toArray,e.zero2=b.zero2,e.toHex=b.toHex,e.encode=b.encode,e.getNAF=function a(T,M,A){var E=new Array(Math.max(T.bitLength(),A)+1);E.fill(0);for(var k=1<<M+1,w=T.clone(),z=0;z<E.length;z++){var U,W=w.andln(k-1);w.isOdd()?w.isubn(U=W>(k>>1)-1?(k>>1)-W:W):U=0,E[z]=U,w.iushrn(1)}return E},e.getJSF=function y(T,M){var A=[[],[]];T=T.clone(),M=M.clone();for(var w,E=0,k=0;T.cmpn(-E)>0||M.cmpn(-k)>0;){var W,ne,z=T.andln(3)+E&3,U=M.andln(3)+k&3;3===z&&(z=-1),3===U&&(U=-1),W=0==(1&z)?0:3!=(w=T.andln(7)+E&7)&&5!==w||2!==U?z:-z,A[0].push(W),ne=0==(1&U)?0:3!=(w=M.andln(7)+k&7)&&5!==w||2!==z?U:-U,A[1].push(ne),2*E===W+1&&(E=1-E),2*k===ne+1&&(k=1-k),T.iushrn(1),M.iushrn(1)}return A},e.cachedProperty=function d(T,M,A){var E="_"+M;T.prototype[M]=function(){return void 0!==this[E]?this[E]:this[E]=A.call(this)}},e.parseBytes=function P(T){return"string"==typeof T?e.toArray(T,"hex"):T},e.intFromLE=function D(T){return new i(T,"hex","le")}},7433:function(He,j,p){!function(e,i){"use strict";function u(x,t){if(!x)throw new Error(t||"Assertion failed")}function b(x,t){x.super_=t;var r=function(){};r.prototype=t.prototype,x.prototype=new r,x.prototype.constructor=x}function a(x,t,r){if(a.isBN(x))return x;this.negative=0,this.words=null,this.length=0,this.red=null,null!==x&&(("le"===t||"be"===t)&&(r=t,t=10),this._init(x||0,t||10,r||"be"))}var y;"object"==typeof e?e.exports=a:i.BN=a,a.BN=a,a.wordSize=26;try{y="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:p(5568).Buffer}catch(x){}function d(x,t){var r=x.charCodeAt(t);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function P(x,t,r){var h=d(x,r);return r-1>=t&&(h|=d(x,r-1)<<4),h}function D(x,t,r,h){for(var c=0,C=Math.min(x.length,r),S=t;S<C;S++){var I=x.charCodeAt(S)-48;c*=h,c+=I>=49?I-49+10:I>=17?I-17+10:I}return c}a.isBN=function(t){return t instanceof a||null!==t&&"object"==typeof t&&t.constructor.wordSize===a.wordSize&&Array.isArray(t.words)},a.max=function(t,r){return t.cmp(r)>0?t:r},a.min=function(t,r){return t.cmp(r)<0?t:r},a.prototype._init=function(t,r,h){if("number"==typeof t)return this._initNumber(t,r,h);if("object"==typeof t)return this._initArray(t,r,h);"hex"===r&&(r=16),u(r===(0|r)&&r>=2&&r<=36);var c=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(c++,this.negative=1),c<t.length&&(16===r?this._parseHex(t,c,h):(this._parseBase(t,r,c),"le"===h&&this._initArray(this.toArray(),r,h)))},a.prototype._initNumber=function(t,r,h){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(u(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===h&&this._initArray(this.toArray(),r,h)},a.prototype._initArray=function(t,r,h){if(u("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var c=0;c<this.length;c++)this.words[c]=0;var C,S,I=0;if("be"===h)for(c=t.length-1,C=0;c>=0;c-=3)this.words[C]|=(S=t[c]|t[c-1]<<8|t[c-2]<<16)<<I&67108863,this.words[C+1]=S>>>26-I&67108863,(I+=24)>=26&&(I-=26,C++);else if("le"===h)for(c=0,C=0;c<t.length;c+=3)this.words[C]|=(S=t[c]|t[c+1]<<8|t[c+2]<<16)<<I&67108863,this.words[C+1]=S>>>26-I&67108863,(I+=24)>=26&&(I-=26,C++);return this.strip()},a.prototype._parseHex=function(t,r,h){this.length=Math.ceil((t.length-r)/6),this.words=new Array(this.length);for(var c=0;c<this.length;c++)this.words[c]=0;var I,C=0,S=0;if("be"===h)for(c=t.length-1;c>=r;c-=2)I=P(t,r,c)<<C,this.words[S]|=67108863&I,C>=18?(C-=18,this.words[S+=1]|=I>>>26):C+=8;else for(c=(t.length-r)%2==0?r+1:r;c<t.length;c+=2)I=P(t,r,c)<<C,this.words[S]|=67108863&I,C>=18?(C-=18,this.words[S+=1]|=I>>>26):C+=8;this.strip()},a.prototype._parseBase=function(t,r,h){this.words=[0],this.length=1;for(var c=0,C=1;C<=67108863;C*=r)c++;c--,C=C/r|0;for(var S=t.length-h,I=S%c,_=Math.min(S,S-I)+h,n=0,g=h;g<_;g+=c)n=D(t,g,g+c,r),this.imuln(C),this.words[0]+n<67108864?this.words[0]+=n:this._iaddn(n);if(0!==I){var V=1;for(n=D(t,g,t.length,r),g=0;g<I;g++)V*=r;this.imuln(V),this.words[0]+n<67108864?this.words[0]+=n:this._iaddn(n)}this.strip()},a.prototype.copy=function(t){t.words=new Array(this.length);for(var r=0;r<this.length;r++)t.words[r]=this.words[r];t.length=this.length,t.negative=this.negative,t.red=this.red},a.prototype.clone=function(){var t=new a(null);return this.copy(t),t},a.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},a.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var T=["","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],A=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function k(x,t,r){r.negative=t.negative^x.negative;var h=x.length+t.length|0;r.length=h,h=h-1|0;var c=0|x.words[0],C=0|t.words[0],S=c*C,_=S/67108864|0;r.words[0]=67108863&S;for(var n=1;n<h;n++){for(var g=_>>>26,V=67108863&_,R=Math.min(n,t.length-1),H=Math.max(0,n-x.length+1);H<=R;H++)g+=(S=(c=0|x.words[n-H|0])*(C=0|t.words[H])+V)/67108864|0,V=67108863&S;r.words[n]=0|V,_=0|g}return 0!==_?r.words[n]=0|_:r.length--,r.strip()}a.prototype.toString=function(t,r){var h;if(r=0|r||1,16===(t=t||10)||"hex"===t){h="";for(var c=0,C=0,S=0;S<this.length;S++){var I=this.words[S],_=(16777215&(I<<c|C)).toString(16);h=0!=(C=I>>>24-c&16777215)||S!==this.length-1?T[6-_.length]+_+h:_+h,(c+=2)>=26&&(c-=26,S--)}for(0!==C&&(h=C.toString(16)+h);h.length%r!=0;)h="0"+h;return 0!==this.negative&&(h="-"+h),h}if(t===(0|t)&&t>=2&&t<=36){var n=M[t],g=A[t];h="";var V=this.clone();for(V.negative=0;!V.isZero();){var R=V.modn(g).toString(t);h=(V=V.idivn(g)).isZero()?R+h:T[n-R.length]+R+h}for(this.isZero()&&(h="0"+h);h.length%r!=0;)h="0"+h;return 0!==this.negative&&(h="-"+h),h}u(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&u(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(t,r){return u(void 0!==y),this.toArrayLike(y,t,r)},a.prototype.toArray=function(t,r){return this.toArrayLike(Array,t,r)},a.prototype.toArrayLike=function(t,r,h){var c=this.byteLength(),C=h||Math.max(1,c);u(c<=C,"byte array longer than desired length"),u(C>0,"Requested array length <= 0"),this.strip();var _,n,S="le"===r,I=new t(C),g=this.clone();if(S){for(n=0;!g.isZero();n++)_=g.andln(255),g.iushrn(8),I[n]=_;for(;n<C;n++)I[n]=0}else{for(n=0;n<C-c;n++)I[n]=0;for(n=0;!g.isZero();n++)_=g.andln(255),g.iushrn(8),I[C-n-1]=_}return I},a.prototype._countBits=Math.clz32?function(t){return 32-Math.clz32(t)}:function(t){var r=t,h=0;return r>=4096&&(h+=13,r>>>=13),r>=64&&(h+=7,r>>>=7),r>=8&&(h+=4,r>>>=4),r>=2&&(h+=2,r>>>=2),h+r},a.prototype._zeroBits=function(t){if(0===t)return 26;var r=t,h=0;return 0==(8191&r)&&(h+=13,r>>>=13),0==(127&r)&&(h+=7,r>>>=7),0==(15&r)&&(h+=4,r>>>=4),0==(3&r)&&(h+=2,r>>>=2),0==(1&r)&&h++,h},a.prototype.bitLength=function(){var r=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+r},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,r=0;r<this.length;r++){var h=this._zeroBits(this.words[r]);if(t+=h,26!==h)break}return t},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},a.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return 0!==this.negative},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]|t.words[r];return this.strip()},a.prototype.ior=function(t){return u(0==(this.negative|t.negative)),this.iuor(t)},a.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},a.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},a.prototype.iuand=function(t){var r;r=this.length>t.length?t:this;for(var h=0;h<r.length;h++)this.words[h]=this.words[h]&t.words[h];return this.length=r.length,this.strip()},a.prototype.iand=function(t){return u(0==(this.negative|t.negative)),this.iuand(t)},a.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},a.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},a.prototype.iuxor=function(t){var r,h;this.length>t.length?(r=this,h=t):(r=t,h=this);for(var c=0;c<h.length;c++)this.words[c]=r.words[c]^h.words[c];if(this!==r)for(;c<r.length;c++)this.words[c]=r.words[c];return this.length=r.length,this.strip()},a.prototype.ixor=function(t){return u(0==(this.negative|t.negative)),this.iuxor(t)},a.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},a.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},a.prototype.inotn=function(t){u("number"==typeof t&&t>=0);var r=0|Math.ceil(t/26),h=t%26;this._expand(r),h>0&&r--;for(var c=0;c<r;c++)this.words[c]=67108863&~this.words[c];return h>0&&(this.words[c]=~this.words[c]&67108863>>26-h),this.strip()},a.prototype.notn=function(t){return this.clone().inotn(t)},a.prototype.setn=function(t,r){u("number"==typeof t&&t>=0);var h=t/26|0,c=t%26;return this._expand(h+1),this.words[h]=r?this.words[h]|1<<c:this.words[h]&~(1<<c),this.strip()},a.prototype.iadd=function(t){var r,h,c;if(0!==this.negative&&0===t.negative)return this.negative=0,r=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,r=this.isub(t),t.negative=1,r._normSign();this.length>t.length?(h=this,c=t):(h=t,c=this);for(var C=0,S=0;S<c.length;S++)this.words[S]=67108863&(r=(0|h.words[S])+(0|c.words[S])+C),C=r>>>26;for(;0!==C&&S<h.length;S++)this.words[S]=67108863&(r=(0|h.words[S])+C),C=r>>>26;if(this.length=h.length,0!==C)this.words[this.length]=C,this.length++;else if(h!==this)for(;S<h.length;S++)this.words[S]=h.words[S];return this},a.prototype.add=function(t){var r;return 0!==t.negative&&0===this.negative?(t.negative=0,r=this.sub(t),t.negative^=1,r):0===t.negative&&0!==this.negative?(this.negative=0,r=t.sub(this),this.negative=1,r):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},a.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var r=this.iadd(t);return t.negative=1,r._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var c,C,h=this.cmp(t);if(0===h)return this.negative=0,this.length=1,this.words[0]=0,this;h>0?(c=this,C=t):(c=t,C=this);for(var S=0,I=0;I<C.length;I++)S=(r=(0|c.words[I])-(0|C.words[I])+S)>>26,this.words[I]=67108863&r;for(;0!==S&&I<c.length;I++)S=(r=(0|c.words[I])+S)>>26,this.words[I]=67108863&r;if(0===S&&I<c.length&&c!==this)for(;I<c.length;I++)this.words[I]=c.words[I];return this.length=Math.max(this.length,I),c!==this&&(this.negative=1),this.strip()},a.prototype.sub=function(t){return this.clone().isub(t)};var w=function(t,r,h){var _,n,g,c=t.words,C=r.words,S=h.words,I=0,V=0|c[0],R=8191&V,H=V>>>13,$=0|c[1],fe=8191&$,ye=$>>>13,ke=0|c[2],Ee=8191&ke,te=ke>>>13,ze=0|c[3],be=8191&ze,Z=ze>>>13,Y=0|c[4],ot=8191&Y,Ie=Y>>>13,Ae=0|c[5],ce=8191&Ae,Te=Ae>>>13,xe=0|c[6],G=8191&xe,ee=xe>>>13,ue=0|c[7],ve=8191&ue,Le=ue>>>13,lt=0|c[8],ht=8191&lt,Tt=lt>>>13,hi=0|c[9],jt=8191&hi,Gt=hi>>>13,di=0|C[0],vt=8191&di,kt=di>>>13,gt=0|C[1],Qe=8191&gt,_t=gt>>>13,ei=0|C[2],Zt=8191&ei,Pe=ei>>>13,De=0|C[3],oe=8191&De,Me=De>>>13,ut=0|C[4],ft=8191&ut,Rt=ut>>>13,et=0|C[5],Re=8191&et,qe=et>>>13,Ze=0|C[6],we=8191&Ze,Fe=Ze>>>13,rt=0|C[7],at=8191&rt,yt=rt>>>13,mi=0|C[8],Xt=8191&mi,Jt=mi>>>13,qi=0|C[9],ui=8191&qi,si=qi>>>13;h.negative=t.negative^r.negative,h.length=19;var en=(I+(_=Math.imul(R,vt))|0)+((8191&(n=(n=Math.imul(R,kt))+Math.imul(H,vt)|0))<<13)|0;I=((g=Math.imul(H,kt))+(n>>>13)|0)+(en>>>26)|0,en&=67108863,_=Math.imul(fe,vt),n=(n=Math.imul(fe,kt))+Math.imul(ye,vt)|0,g=Math.imul(ye,kt);var Ui=(I+(_=_+Math.imul(R,Qe)|0)|0)+((8191&(n=(n=n+Math.imul(R,_t)|0)+Math.imul(H,Qe)|0))<<13)|0;I=((g=g+Math.imul(H,_t)|0)+(n>>>13)|0)+(Ui>>>26)|0,Ui&=67108863,_=Math.imul(Ee,vt),n=(n=Math.imul(Ee,kt))+Math.imul(te,vt)|0,g=Math.imul(te,kt),_=_+Math.imul(fe,Qe)|0,n=(n=n+Math.imul(fe,_t)|0)+Math.imul(ye,Qe)|0,g=g+Math.imul(ye,_t)|0;var Bi=(I+(_=_+Math.imul(R,Zt)|0)|0)+((8191&(n=(n=n+Math.imul(R,Pe)|0)+Math.imul(H,Zt)|0))<<13)|0;I=((g=g+Math.imul(H,Pe)|0)+(n>>>13)|0)+(Bi>>>26)|0,Bi&=67108863,_=Math.imul(be,vt),n=(n=Math.imul(be,kt))+Math.imul(Z,vt)|0,g=Math.imul(Z,kt),_=_+Math.imul(Ee,Qe)|0,n=(n=n+Math.imul(Ee,_t)|0)+Math.imul(te,Qe)|0,g=g+Math.imul(te,_t)|0,_=_+Math.imul(fe,Zt)|0,n=(n=n+Math.imul(fe,Pe)|0)+Math.imul(ye,Zt)|0,g=g+Math.imul(ye,Pe)|0;var Gi=(I+(_=_+Math.imul(R,oe)|0)|0)+((8191&(n=(n=n+Math.imul(R,Me)|0)+Math.imul(H,oe)|0))<<13)|0;I=((g=g+Math.imul(H,Me)|0)+(n>>>13)|0)+(Gi>>>26)|0,Gi&=67108863,_=Math.imul(ot,vt),n=(n=Math.imul(ot,kt))+Math.imul(Ie,vt)|0,g=Math.imul(Ie,kt),_=_+Math.imul(be,Qe)|0,n=(n=n+Math.imul(be,_t)|0)+Math.imul(Z,Qe)|0,g=g+Math.imul(Z,_t)|0,_=_+Math.imul(Ee,Zt)|0,n=(n=n+Math.imul(Ee,Pe)|0)+Math.imul(te,Zt)|0,g=g+Math.imul(te,Pe)|0,_=_+Math.imul(fe,oe)|0,n=(n=n+Math.imul(fe,Me)|0)+Math.imul(ye,oe)|0,g=g+Math.imul(ye,Me)|0;var ct=(I+(_=_+Math.imul(R,ft)|0)|0)+((8191&(n=(n=n+Math.imul(R,Rt)|0)+Math.imul(H,ft)|0))<<13)|0;I=((g=g+Math.imul(H,Rt)|0)+(n>>>13)|0)+(ct>>>26)|0,ct&=67108863,_=Math.imul(ce,vt),n=(n=Math.imul(ce,kt))+Math.imul(Te,vt)|0,g=Math.imul(Te,kt),_=_+Math.imul(ot,Qe)|0,n=(n=n+Math.imul(ot,_t)|0)+Math.imul(Ie,Qe)|0,g=g+Math.imul(Ie,_t)|0,_=_+Math.imul(be,Zt)|0,n=(n=n+Math.imul(be,Pe)|0)+Math.imul(Z,Zt)|0,g=g+Math.imul(Z,Pe)|0,_=_+Math.imul(Ee,oe)|0,n=(n=n+Math.imul(Ee,Me)|0)+Math.imul(te,oe)|0,g=g+Math.imul(te,Me)|0,_=_+Math.imul(fe,ft)|0,n=(n=n+Math.imul(fe,Rt)|0)+Math.imul(ye,ft)|0,g=g+Math.imul(ye,Rt)|0;var Ft=(I+(_=_+Math.imul(R,Re)|0)|0)+((8191&(n=(n=n+Math.imul(R,qe)|0)+Math.imul(H,Re)|0))<<13)|0;I=((g=g+Math.imul(H,qe)|0)+(n>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,_=Math.imul(G,vt),n=(n=Math.imul(G,kt))+Math.imul(ee,vt)|0,g=Math.imul(ee,kt),_=_+Math.imul(ce,Qe)|0,n=(n=n+Math.imul(ce,_t)|0)+Math.imul(Te,Qe)|0,g=g+Math.imul(Te,_t)|0,_=_+Math.imul(ot,Zt)|0,n=(n=n+Math.imul(ot,Pe)|0)+Math.imul(Ie,Zt)|0,g=g+Math.imul(Ie,Pe)|0,_=_+Math.imul(be,oe)|0,n=(n=n+Math.imul(be,Me)|0)+Math.imul(Z,oe)|0,g=g+Math.imul(Z,Me)|0,_=_+Math.imul(Ee,ft)|0,n=(n=n+Math.imul(Ee,Rt)|0)+Math.imul(te,ft)|0,g=g+Math.imul(te,Rt)|0,_=_+Math.imul(fe,Re)|0,n=(n=n+Math.imul(fe,qe)|0)+Math.imul(ye,Re)|0,g=g+Math.imul(ye,qe)|0;var pt=(I+(_=_+Math.imul(R,we)|0)|0)+((8191&(n=(n=n+Math.imul(R,Fe)|0)+Math.imul(H,we)|0))<<13)|0;I=((g=g+Math.imul(H,Fe)|0)+(n>>>13)|0)+(pt>>>26)|0,pt&=67108863,_=Math.imul(ve,vt),n=(n=Math.imul(ve,kt))+Math.imul(Le,vt)|0,g=Math.imul(Le,kt),_=_+Math.imul(G,Qe)|0,n=(n=n+Math.imul(G,_t)|0)+Math.imul(ee,Qe)|0,g=g+Math.imul(ee,_t)|0,_=_+Math.imul(ce,Zt)|0,n=(n=n+Math.imul(ce,Pe)|0)+Math.imul(Te,Zt)|0,g=g+Math.imul(Te,Pe)|0,_=_+Math.imul(ot,oe)|0,n=(n=n+Math.imul(ot,Me)|0)+Math.imul(Ie,oe)|0,g=g+Math.imul(Ie,Me)|0,_=_+Math.imul(be,ft)|0,n=(n=n+Math.imul(be,Rt)|0)+Math.imul(Z,ft)|0,g=g+Math.imul(Z,Rt)|0,_=_+Math.imul(Ee,Re)|0,n=(n=n+Math.imul(Ee,qe)|0)+Math.imul(te,Re)|0,g=g+Math.imul(te,qe)|0,_=_+Math.imul(fe,we)|0,n=(n=n+Math.imul(fe,Fe)|0)+Math.imul(ye,we)|0,g=g+Math.imul(ye,Fe)|0;var it=(I+(_=_+Math.imul(R,at)|0)|0)+((8191&(n=(n=n+Math.imul(R,yt)|0)+Math.imul(H,at)|0))<<13)|0;I=((g=g+Math.imul(H,yt)|0)+(n>>>13)|0)+(it>>>26)|0,it&=67108863,_=Math.imul(ht,vt),n=(n=Math.imul(ht,kt))+Math.imul(Tt,vt)|0,g=Math.imul(Tt,kt),_=_+Math.imul(ve,Qe)|0,n=(n=n+Math.imul(ve,_t)|0)+Math.imul(Le,Qe)|0,g=g+Math.imul(Le,_t)|0,_=_+Math.imul(G,Zt)|0,n=(n=n+Math.imul(G,Pe)|0)+Math.imul(ee,Zt)|0,g=g+Math.imul(ee,Pe)|0,_=_+Math.imul(ce,oe)|0,n=(n=n+Math.imul(ce,Me)|0)+Math.imul(Te,oe)|0,g=g+Math.imul(Te,Me)|0,_=_+Math.imul(ot,ft)|0,n=(n=n+Math.imul(ot,Rt)|0)+Math.imul(Ie,ft)|0,g=g+Math.imul(Ie,Rt)|0,_=_+Math.imul(be,Re)|0,n=(n=n+Math.imul(be,qe)|0)+Math.imul(Z,Re)|0,g=g+Math.imul(Z,qe)|0,_=_+Math.imul(Ee,we)|0,n=(n=n+Math.imul(Ee,Fe)|0)+Math.imul(te,we)|0,g=g+Math.imul(te,Fe)|0,_=_+Math.imul(fe,at)|0,n=(n=n+Math.imul(fe,yt)|0)+Math.imul(ye,at)|0,g=g+Math.imul(ye,yt)|0;var It=(I+(_=_+Math.imul(R,Xt)|0)|0)+((8191&(n=(n=n+Math.imul(R,Jt)|0)+Math.imul(H,Xt)|0))<<13)|0;I=((g=g+Math.imul(H,Jt)|0)+(n>>>13)|0)+(It>>>26)|0,It&=67108863,_=Math.imul(jt,vt),n=(n=Math.imul(jt,kt))+Math.imul(Gt,vt)|0,g=Math.imul(Gt,kt),_=_+Math.imul(ht,Qe)|0,n=(n=n+Math.imul(ht,_t)|0)+Math.imul(Tt,Qe)|0,g=g+Math.imul(Tt,_t)|0,_=_+Math.imul(ve,Zt)|0,n=(n=n+Math.imul(ve,Pe)|0)+Math.imul(Le,Zt)|0,g=g+Math.imul(Le,Pe)|0,_=_+Math.imul(G,oe)|0,n=(n=n+Math.imul(G,Me)|0)+Math.imul(ee,oe)|0,g=g+Math.imul(ee,Me)|0,_=_+Math.imul(ce,ft)|0,n=(n=n+Math.imul(ce,Rt)|0)+Math.imul(Te,ft)|0,g=g+Math.imul(Te,Rt)|0,_=_+Math.imul(ot,Re)|0,n=(n=n+Math.imul(ot,qe)|0)+Math.imul(Ie,Re)|0,g=g+Math.imul(Ie,qe)|0,_=_+Math.imul(be,we)|0,n=(n=n+Math.imul(be,Fe)|0)+Math.imul(Z,we)|0,g=g+Math.imul(Z,Fe)|0,_=_+Math.imul(Ee,at)|0,n=(n=n+Math.imul(Ee,yt)|0)+Math.imul(te,at)|0,g=g+Math.imul(te,yt)|0,_=_+Math.imul(fe,Xt)|0,n=(n=n+Math.imul(fe,Jt)|0)+Math.imul(ye,Xt)|0,g=g+Math.imul(ye,Jt)|0;var de=(I+(_=_+Math.imul(R,ui)|0)|0)+((8191&(n=(n=n+Math.imul(R,si)|0)+Math.imul(H,ui)|0))<<13)|0;I=((g=g+Math.imul(H,si)|0)+(n>>>13)|0)+(de>>>26)|0,de&=67108863,_=Math.imul(jt,Qe),n=(n=Math.imul(jt,_t))+Math.imul(Gt,Qe)|0,g=Math.imul(Gt,_t),_=_+Math.imul(ht,Zt)|0,n=(n=n+Math.imul(ht,Pe)|0)+Math.imul(Tt,Zt)|0,g=g+Math.imul(Tt,Pe)|0,_=_+Math.imul(ve,oe)|0,n=(n=n+Math.imul(ve,Me)|0)+Math.imul(Le,oe)|0,g=g+Math.imul(Le,Me)|0,_=_+Math.imul(G,ft)|0,n=(n=n+Math.imul(G,Rt)|0)+Math.imul(ee,ft)|0,g=g+Math.imul(ee,Rt)|0,_=_+Math.imul(ce,Re)|0,n=(n=n+Math.imul(ce,qe)|0)+Math.imul(Te,Re)|0,g=g+Math.imul(Te,qe)|0,_=_+Math.imul(ot,we)|0,n=(n=n+Math.imul(ot,Fe)|0)+Math.imul(Ie,we)|0,g=g+Math.imul(Ie,Fe)|0,_=_+Math.imul(be,at)|0,n=(n=n+Math.imul(be,yt)|0)+Math.imul(Z,at)|0,g=g+Math.imul(Z,yt)|0,_=_+Math.imul(Ee,Xt)|0,n=(n=n+Math.imul(Ee,Jt)|0)+Math.imul(te,Xt)|0,g=g+Math.imul(te,Jt)|0;var $e=(I+(_=_+Math.imul(fe,ui)|0)|0)+((8191&(n=(n=n+Math.imul(fe,si)|0)+Math.imul(ye,ui)|0))<<13)|0;I=((g=g+Math.imul(ye,si)|0)+(n>>>13)|0)+($e>>>26)|0,$e&=67108863,_=Math.imul(jt,Zt),n=(n=Math.imul(jt,Pe))+Math.imul(Gt,Zt)|0,g=Math.imul(Gt,Pe),_=_+Math.imul(ht,oe)|0,n=(n=n+Math.imul(ht,Me)|0)+Math.imul(Tt,oe)|0,g=g+Math.imul(Tt,Me)|0,_=_+Math.imul(ve,ft)|0,n=(n=n+Math.imul(ve,Rt)|0)+Math.imul(Le,ft)|0,g=g+Math.imul(Le,Rt)|0,_=_+Math.imul(G,Re)|0,n=(n=n+Math.imul(G,qe)|0)+Math.imul(ee,Re)|0,g=g+Math.imul(ee,qe)|0,_=_+Math.imul(ce,we)|0,n=(n=n+Math.imul(ce,Fe)|0)+Math.imul(Te,we)|0,g=g+Math.imul(Te,Fe)|0,_=_+Math.imul(ot,at)|0,n=(n=n+Math.imul(ot,yt)|0)+Math.imul(Ie,at)|0,g=g+Math.imul(Ie,yt)|0,_=_+Math.imul(be,Xt)|0,n=(n=n+Math.imul(be,Jt)|0)+Math.imul(Z,Xt)|0,g=g+Math.imul(Z,Jt)|0;var bt=(I+(_=_+Math.imul(Ee,ui)|0)|0)+((8191&(n=(n=n+Math.imul(Ee,si)|0)+Math.imul(te,ui)|0))<<13)|0;I=((g=g+Math.imul(te,si)|0)+(n>>>13)|0)+(bt>>>26)|0,bt&=67108863,_=Math.imul(jt,oe),n=(n=Math.imul(jt,Me))+Math.imul(Gt,oe)|0,g=Math.imul(Gt,Me),_=_+Math.imul(ht,ft)|0,n=(n=n+Math.imul(ht,Rt)|0)+Math.imul(Tt,ft)|0,g=g+Math.imul(Tt,Rt)|0,_=_+Math.imul(ve,Re)|0,n=(n=n+Math.imul(ve,qe)|0)+Math.imul(Le,Re)|0,g=g+Math.imul(Le,qe)|0,_=_+Math.imul(G,we)|0,n=(n=n+Math.imul(G,Fe)|0)+Math.imul(ee,we)|0,g=g+Math.imul(ee,Fe)|0,_=_+Math.imul(ce,at)|0,n=(n=n+Math.imul(ce,yt)|0)+Math.imul(Te,at)|0,g=g+Math.imul(Te,yt)|0,_=_+Math.imul(ot,Xt)|0,n=(n=n+Math.imul(ot,Jt)|0)+Math.imul(Ie,Xt)|0,g=g+Math.imul(Ie,Jt)|0;var Vt=(I+(_=_+Math.imul(be,ui)|0)|0)+((8191&(n=(n=n+Math.imul(be,si)|0)+Math.imul(Z,ui)|0))<<13)|0;I=((g=g+Math.imul(Z,si)|0)+(n>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,_=Math.imul(jt,ft),n=(n=Math.imul(jt,Rt))+Math.imul(Gt,ft)|0,g=Math.imul(Gt,Rt),_=_+Math.imul(ht,Re)|0,n=(n=n+Math.imul(ht,qe)|0)+Math.imul(Tt,Re)|0,g=g+Math.imul(Tt,qe)|0,_=_+Math.imul(ve,we)|0,n=(n=n+Math.imul(ve,Fe)|0)+Math.imul(Le,we)|0,g=g+Math.imul(Le,Fe)|0,_=_+Math.imul(G,at)|0,n=(n=n+Math.imul(G,yt)|0)+Math.imul(ee,at)|0,g=g+Math.imul(ee,yt)|0,_=_+Math.imul(ce,Xt)|0,n=(n=n+Math.imul(ce,Jt)|0)+Math.imul(Te,Xt)|0,g=g+Math.imul(Te,Jt)|0;var bi=(I+(_=_+Math.imul(ot,ui)|0)|0)+((8191&(n=(n=n+Math.imul(ot,si)|0)+Math.imul(Ie,ui)|0))<<13)|0;I=((g=g+Math.imul(Ie,si)|0)+(n>>>13)|0)+(bi>>>26)|0,bi&=67108863,_=Math.imul(jt,Re),n=(n=Math.imul(jt,qe))+Math.imul(Gt,Re)|0,g=Math.imul(Gt,qe),_=_+Math.imul(ht,we)|0,n=(n=n+Math.imul(ht,Fe)|0)+Math.imul(Tt,we)|0,g=g+Math.imul(Tt,Fe)|0,_=_+Math.imul(ve,at)|0,n=(n=n+Math.imul(ve,yt)|0)+Math.imul(Le,at)|0,g=g+Math.imul(Le,yt)|0,_=_+Math.imul(G,Xt)|0,n=(n=n+Math.imul(G,Jt)|0)+Math.imul(ee,Xt)|0,g=g+Math.imul(ee,Jt)|0;var Li=(I+(_=_+Math.imul(ce,ui)|0)|0)+((8191&(n=(n=n+Math.imul(ce,si)|0)+Math.imul(Te,ui)|0))<<13)|0;I=((g=g+Math.imul(Te,si)|0)+(n>>>13)|0)+(Li>>>26)|0,Li&=67108863,_=Math.imul(jt,we),n=(n=Math.imul(jt,Fe))+Math.imul(Gt,we)|0,g=Math.imul(Gt,Fe),_=_+Math.imul(ht,at)|0,n=(n=n+Math.imul(ht,yt)|0)+Math.imul(Tt,at)|0,g=g+Math.imul(Tt,yt)|0,_=_+Math.imul(ve,Xt)|0,n=(n=n+Math.imul(ve,Jt)|0)+Math.imul(Le,Xt)|0,g=g+Math.imul(Le,Jt)|0;var Ji=(I+(_=_+Math.imul(G,ui)|0)|0)+((8191&(n=(n=n+Math.imul(G,si)|0)+Math.imul(ee,ui)|0))<<13)|0;I=((g=g+Math.imul(ee,si)|0)+(n>>>13)|0)+(Ji>>>26)|0,Ji&=67108863,_=Math.imul(jt,at),n=(n=Math.imul(jt,yt))+Math.imul(Gt,at)|0,g=Math.imul(Gt,yt),_=_+Math.imul(ht,Xt)|0,n=(n=n+Math.imul(ht,Jt)|0)+Math.imul(Tt,Xt)|0,g=g+Math.imul(Tt,Jt)|0;var Wi=(I+(_=_+Math.imul(ve,ui)|0)|0)+((8191&(n=(n=n+Math.imul(ve,si)|0)+Math.imul(Le,ui)|0))<<13)|0;I=((g=g+Math.imul(Le,si)|0)+(n>>>13)|0)+(Wi>>>26)|0,Wi&=67108863,_=Math.imul(jt,Xt),n=(n=Math.imul(jt,Jt))+Math.imul(Gt,Xt)|0,g=Math.imul(Gt,Jt);var sn=(I+(_=_+Math.imul(ht,ui)|0)|0)+((8191&(n=(n=n+Math.imul(ht,si)|0)+Math.imul(Tt,ui)|0))<<13)|0;I=((g=g+Math.imul(Tt,si)|0)+(n>>>13)|0)+(sn>>>26)|0,sn&=67108863;var mn=(I+(_=Math.imul(jt,ui))|0)+((8191&(n=(n=Math.imul(jt,si))+Math.imul(Gt,ui)|0))<<13)|0;return I=((g=Math.imul(Gt,si))+(n>>>13)|0)+(mn>>>26)|0,mn&=67108863,S[0]=en,S[1]=Ui,S[2]=Bi,S[3]=Gi,S[4]=ct,S[5]=Ft,S[6]=pt,S[7]=it,S[8]=It,S[9]=de,S[10]=$e,S[11]=bt,S[12]=Vt,S[13]=bi,S[14]=Li,S[15]=Ji,S[16]=Wi,S[17]=sn,S[18]=mn,0!==I&&(S[19]=I,h.length++),h};function U(x,t,r){return(new W).mulp(x,t,r)}function W(x,t){this.x=x,this.y=t}Math.imul||(w=k),a.prototype.mulTo=function(t,r){var h,c=this.length+t.length;return h=10===this.length&&10===t.length?w(this,t,r):c<63?k(this,t,r):c<1024?function z(x,t,r){r.negative=t.negative^x.negative,r.length=x.length+t.length;for(var h=0,c=0,C=0;C<r.length-1;C++){var S=c;c=0;for(var I=67108863&h,_=Math.min(C,t.length-1),n=Math.max(0,C-x.length+1);n<=_;n++){var H=(0|x.words[C-n])*(0|t.words[n]),$=67108863&H;I=67108863&($=$+I|0),c+=(S=(S=S+(H/67108864|0)|0)+($>>>26)|0)>>>26,S&=67108863}r.words[C]=I,h=S,S=c}return 0!==h?r.words[C]=h:r.length--,r.strip()}(this,t,r):U(this,t,r),h},W.prototype.makeRBT=function(t){for(var r=new Array(t),h=a.prototype._countBits(t)-1,c=0;c<t;c++)r[c]=this.revBin(c,h,t);return r},W.prototype.revBin=function(t,r,h){if(0===t||t===h-1)return t;for(var c=0,C=0;C<r;C++)c|=(1&t)<<r-C-1,t>>=1;return c},W.prototype.permute=function(t,r,h,c,C,S){for(var I=0;I<S;I++)c[I]=r[t[I]],C[I]=h[t[I]]},W.prototype.transform=function(t,r,h,c,C,S){this.permute(S,t,r,h,c,C);for(var I=1;I<C;I<<=1)for(var _=I<<1,n=Math.cos(2*Math.PI/_),g=Math.sin(2*Math.PI/_),V=0;V<C;V+=_)for(var R=n,H=g,$=0;$<I;$++){var fe=h[V+$],ye=c[V+$],ke=h[V+$+I],Ee=c[V+$+I],te=R*ke-H*Ee;Ee=R*Ee+H*ke,h[V+$]=fe+(ke=te),c[V+$]=ye+Ee,h[V+$+I]=fe-ke,c[V+$+I]=ye-Ee,$!==_&&(te=n*R-g*H,H=n*H+g*R,R=te)}},W.prototype.guessLen13b=function(t,r){var h=1|Math.max(r,t),c=1&h,C=0;for(h=h/2|0;h;h>>>=1)C++;return 1<<C+1+c},W.prototype.conjugate=function(t,r,h){if(!(h<=1))for(var c=0;c<h/2;c++){var C=t[c];t[c]=t[h-c-1],t[h-c-1]=C,C=r[c],r[c]=-r[h-c-1],r[h-c-1]=-C}},W.prototype.normalize13b=function(t,r){for(var h=0,c=0;c<r/2;c++){var C=8192*Math.round(t[2*c+1]/r)+Math.round(t[2*c]/r)+h;t[c]=67108863&C,h=C<67108864?0:C/67108864|0}return t},W.prototype.convert13b=function(t,r,h,c){for(var C=0,S=0;S<r;S++)h[2*S]=8191&(C+=0|t[S]),h[2*S+1]=8191&(C>>>=13),C>>>=13;for(S=2*r;S<c;++S)h[S]=0;u(0===C),u(0==(-8192&C))},W.prototype.stub=function(t){for(var r=new Array(t),h=0;h<t;h++)r[h]=0;return r},W.prototype.mulp=function(t,r,h){var c=2*this.guessLen13b(t.length,r.length),C=this.makeRBT(c),S=this.stub(c),I=new Array(c),_=new Array(c),n=new Array(c),g=new Array(c),V=new Array(c),R=new Array(c),H=h.words;H.length=c,this.convert13b(t.words,t.length,I,c),this.convert13b(r.words,r.length,g,c),this.transform(I,S,_,n,c,C),this.transform(g,S,V,R,c,C);for(var $=0;$<c;$++){var fe=_[$]*V[$]-n[$]*R[$];n[$]=_[$]*R[$]+n[$]*V[$],_[$]=fe}return this.conjugate(_,n,c),this.transform(_,n,H,S,c,C),this.conjugate(H,S,c),this.normalize13b(H,c),h.negative=t.negative^r.negative,h.length=t.length+r.length,h.strip()},a.prototype.mul=function(t){var r=new a(null);return r.words=new Array(this.length+t.length),this.mulTo(t,r)},a.prototype.mulf=function(t){var r=new a(null);return r.words=new Array(this.length+t.length),U(this,t,r)},a.prototype.imul=function(t){return this.clone().mulTo(t,this)},a.prototype.imuln=function(t){u("number"==typeof t),u(t<67108864);for(var r=0,h=0;h<this.length;h++){var c=(0|this.words[h])*t,C=(67108863&c)+(67108863&r);r>>=26,r+=c/67108864|0,r+=C>>>26,this.words[h]=67108863&C}return 0!==r&&(this.words[h]=r,this.length++),this},a.prototype.muln=function(t){return this.clone().imuln(t)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(t){var r=function E(x){for(var t=new Array(x.bitLength()),r=0;r<t.length;r++){var c=r%26;t[r]=(x.words[r/26|0]&1<<c)>>>c}return t}(t);if(0===r.length)return new a(1);for(var h=this,c=0;c<r.length&&0===r[c];c++,h=h.sqr());if(++c<r.length)for(var C=h.sqr();c<r.length;c++,C=C.sqr())0!==r[c]&&(h=h.mul(C));return h},a.prototype.iushln=function(t){u("number"==typeof t&&t>=0);var C,r=t%26,h=(t-r)/26,c=67108863>>>26-r<<26-r;if(0!==r){var S=0;for(C=0;C<this.length;C++){var I=this.words[C]&c;this.words[C]=(0|this.words[C])-I<<r|S,S=I>>>26-r}S&&(this.words[C]=S,this.length++)}if(0!==h){for(C=this.length-1;C>=0;C--)this.words[C+h]=this.words[C];for(C=0;C<h;C++)this.words[C]=0;this.length+=h}return this.strip()},a.prototype.ishln=function(t){return u(0===this.negative),this.iushln(t)},a.prototype.iushrn=function(t,r,h){var c;u("number"==typeof t&&t>=0),c=r?(r-r%26)/26:0;var C=t%26,S=Math.min((t-C)/26,this.length),I=67108863^67108863>>>C<<C,_=h;if(c-=S,c=Math.max(0,c),_){for(var n=0;n<S;n++)_.words[n]=this.words[n];_.length=S}if(0!==S)if(this.length>S)for(this.length-=S,n=0;n<this.length;n++)this.words[n]=this.words[n+S];else this.words[0]=0,this.length=1;var g=0;for(n=this.length-1;n>=0&&(0!==g||n>=c);n--){var V=0|this.words[n];this.words[n]=g<<26-C|V>>>C,g=V&I}return _&&0!==g&&(_.words[_.length++]=g),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(t,r,h){return u(0===this.negative),this.iushrn(t,r,h)},a.prototype.shln=function(t){return this.clone().ishln(t)},a.prototype.ushln=function(t){return this.clone().iushln(t)},a.prototype.shrn=function(t){return this.clone().ishrn(t)},a.prototype.ushrn=function(t){return this.clone().iushrn(t)},a.prototype.testn=function(t){u("number"==typeof t&&t>=0);var r=t%26,h=(t-r)/26;return!(this.length<=h||!(this.words[h]&1<<r))},a.prototype.imaskn=function(t){u("number"==typeof t&&t>=0);var r=t%26,h=(t-r)/26;return u(0===this.negative,"imaskn works only with positive numbers"),this.length<=h?this:(0!==r&&h++,this.length=Math.min(h,this.length),0!==r&&(this.words[this.length-1]&=67108863^67108863>>>r<<r),this.strip())},a.prototype.maskn=function(t){return this.clone().imaskn(t)},a.prototype.iaddn=function(t){return u("number"==typeof t),u(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},a.prototype._iaddn=function(t){this.words[0]+=t;for(var r=0;r<this.length&&this.words[r]>=67108864;r++)this.words[r]-=67108864,r===this.length-1?this.words[r+1]=1:this.words[r+1]++;return this.length=Math.max(this.length,r+1),this},a.prototype.isubn=function(t){if(u("number"==typeof t),u(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r<this.length&&this.words[r]<0;r++)this.words[r]+=67108864,this.words[r+1]-=1;return this.strip()},a.prototype.addn=function(t){return this.clone().iaddn(t)},a.prototype.subn=function(t){return this.clone().isubn(t)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(t,r,h){var C;this._expand(t.length+h);var S,I=0;for(C=0;C<t.length;C++){S=(0|this.words[C+h])+I;var _=(0|t.words[C])*r;I=((S-=67108863&_)>>26)-(_/67108864|0),this.words[C+h]=67108863&S}for(;C<this.length-h;C++)I=(S=(0|this.words[C+h])+I)>>26,this.words[C+h]=67108863&S;if(0===I)return this.strip();for(u(-1===I),I=0,C=0;C<this.length;C++)I=(S=-(0|this.words[C])+I)>>26,this.words[C]=67108863&S;return this.negative=1,this.strip()},a.prototype._wordDiv=function(t,r){var h,c=this.clone(),C=t,S=0|C.words[C.length-1];0!=(h=26-this._countBits(S))&&(C=C.ushln(h),c.iushln(h),S=0|C.words[C.length-1]);var n,_=c.length-C.length;if("mod"!==r){(n=new a(null)).length=_+1,n.words=new Array(n.length);for(var g=0;g<n.length;g++)n.words[g]=0}var V=c.clone()._ishlnsubmul(C,1,_);0===V.negative&&(c=V,n&&(n.words[_]=1));for(var R=_-1;R>=0;R--){var H=67108864*(0|c.words[C.length+R])+(0|c.words[C.length+R-1]);for(H=Math.min(H/S|0,67108863),c._ishlnsubmul(C,H,R);0!==c.negative;)H--,c.negative=0,c._ishlnsubmul(C,1,R),c.isZero()||(c.negative^=1);n&&(n.words[R]=H)}return n&&n.strip(),c.strip(),"div"!==r&&0!==h&&c.iushrn(h),{div:n||null,mod:c}},a.prototype.divmod=function(t,r,h){return u(!t.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===t.negative?(S=this.neg().divmod(t,r),"mod"!==r&&(c=S.div.neg()),"div"!==r&&(C=S.mod.neg(),h&&0!==C.negative&&C.iadd(t)),{div:c,mod:C}):0===this.negative&&0!==t.negative?(S=this.divmod(t.neg(),r),"mod"!==r&&(c=S.div.neg()),{div:c,mod:S.mod}):0!=(this.negative&t.negative)?(S=this.neg().divmod(t.neg(),r),"div"!==r&&(C=S.mod.neg(),h&&0!==C.negative&&C.isub(t)),{div:S.div,mod:C}):t.length>this.length||this.cmp(t)<0?{div:new a(0),mod:this}:1===t.length?"div"===r?{div:this.divn(t.words[0]),mod:null}:"mod"===r?{div:null,mod:new a(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new a(this.modn(t.words[0]))}:this._wordDiv(t,r);var c,C,S},a.prototype.div=function(t){return this.divmod(t,"div",!1).div},a.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},a.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},a.prototype.divRound=function(t){var r=this.divmod(t);if(r.mod.isZero())return r.div;var h=0!==r.div.negative?r.mod.isub(t):r.mod,c=t.ushrn(1),C=t.andln(1),S=h.cmp(c);return S<0||1===C&&0===S?r.div:0!==r.div.negative?r.div.isubn(1):r.div.iaddn(1)},a.prototype.modn=function(t){u(t<=67108863);for(var r=(1<<26)%t,h=0,c=this.length-1;c>=0;c--)h=(r*h+(0|this.words[c]))%t;return h},a.prototype.idivn=function(t){u(t<=67108863);for(var r=0,h=this.length-1;h>=0;h--){var c=(0|this.words[h])+67108864*r;this.words[h]=c/t|0,r=c%t}return this.strip()},a.prototype.divn=function(t){return this.clone().idivn(t)},a.prototype.egcd=function(t){u(0===t.negative),u(!t.isZero());var r=this,h=t.clone();r=0!==r.negative?r.umod(t):r.clone();for(var c=new a(1),C=new a(0),S=new a(0),I=new a(1),_=0;r.isEven()&&h.isEven();)r.iushrn(1),h.iushrn(1),++_;for(var n=h.clone(),g=r.clone();!r.isZero();){for(var V=0,R=1;0==(r.words[0]&R)&&V<26;++V,R<<=1);if(V>0)for(r.iushrn(V);V-- >0;)(c.isOdd()||C.isOdd())&&(c.iadd(n),C.isub(g)),c.iushrn(1),C.iushrn(1);for(var H=0,$=1;0==(h.words[0]&$)&&H<26;++H,$<<=1);if(H>0)for(h.iushrn(H);H-- >0;)(S.isOdd()||I.isOdd())&&(S.iadd(n),I.isub(g)),S.iushrn(1),I.iushrn(1);r.cmp(h)>=0?(r.isub(h),c.isub(S),C.isub(I)):(h.isub(r),S.isub(c),I.isub(C))}return{a:S,b:I,gcd:h.iushln(_)}},a.prototype._invmp=function(t){u(0===t.negative),u(!t.isZero());var V,r=this,h=t.clone();r=0!==r.negative?r.umod(t):r.clone();for(var c=new a(1),C=new a(0),S=h.clone();r.cmpn(1)>0&&h.cmpn(1)>0;){for(var I=0,_=1;0==(r.words[0]&_)&&I<26;++I,_<<=1);if(I>0)for(r.iushrn(I);I-- >0;)c.isOdd()&&c.iadd(S),c.iushrn(1);for(var n=0,g=1;0==(h.words[0]&g)&&n<26;++n,g<<=1);if(n>0)for(h.iushrn(n);n-- >0;)C.isOdd()&&C.iadd(S),C.iushrn(1);r.cmp(h)>=0?(r.isub(h),c.isub(C)):(h.isub(r),C.isub(c))}return(V=0===r.cmpn(1)?c:C).cmpn(0)<0&&V.iadd(t),V},a.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var r=this.clone(),h=t.clone();r.negative=0,h.negative=0;for(var c=0;r.isEven()&&h.isEven();c++)r.iushrn(1),h.iushrn(1);for(;;){for(;r.isEven();)r.iushrn(1);for(;h.isEven();)h.iushrn(1);var C=r.cmp(h);if(C<0){var S=r;r=h,h=S}else if(0===C||0===h.cmpn(1))break;r.isub(h)}return h.iushln(c)},a.prototype.invm=function(t){return this.egcd(t).a.umod(t)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(t){return this.words[0]&t},a.prototype.bincn=function(t){u("number"==typeof t);var r=t%26,h=(t-r)/26,c=1<<r;if(this.length<=h)return this._expand(h+1),this.words[h]|=c,this;for(var C=c,S=h;0!==C&&S<this.length;S++){var I=0|this.words[S];C=(I+=C)>>>26,this.words[S]=I&=67108863}return 0!==C&&(this.words[S]=C,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(t){var h,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)h=1;else{r&&(t=-t),u(t<=67108863,"Number is too big");var c=0|this.words[0];h=c===t?0:c<t?-1:1}return 0!==this.negative?0|-h:h},a.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var r=this.ucmp(t);return 0!==this.negative?0|-r:r},a.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var r=0,h=this.length-1;h>=0;h--){var c=0|this.words[h],C=0|t.words[h];if(c!==C){c<C?r=-1:c>C&&(r=1);break}}return r},a.prototype.gtn=function(t){return 1===this.cmpn(t)},a.prototype.gt=function(t){return 1===this.cmp(t)},a.prototype.gten=function(t){return this.cmpn(t)>=0},a.prototype.gte=function(t){return this.cmp(t)>=0},a.prototype.ltn=function(t){return-1===this.cmpn(t)},a.prototype.lt=function(t){return-1===this.cmp(t)},a.prototype.lten=function(t){return this.cmpn(t)<=0},a.prototype.lte=function(t){return this.cmp(t)<=0},a.prototype.eqn=function(t){return 0===this.cmpn(t)},a.prototype.eq=function(t){return 0===this.cmp(t)},a.red=function(t){return new J(t)},a.prototype.toRed=function(t){return u(!this.red,"Already a number in reduction context"),u(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},a.prototype.fromRed=function(){return u(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(t){return this.red=t,this},a.prototype.forceRed=function(t){return u(!this.red,"Already a number in reduction context"),this._forceRed(t)},a.prototype.redAdd=function(t){return u(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},a.prototype.redIAdd=function(t){return u(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},a.prototype.redSub=function(t){return u(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},a.prototype.redISub=function(t){return u(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},a.prototype.redShl=function(t){return u(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},a.prototype.redMul=function(t){return u(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},a.prototype.redIMul=function(t){return u(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},a.prototype.redSqr=function(){return u(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return u(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return u(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return u(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return u(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(t){return u(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var ne={k256:null,p224:null,p192:null,p25519:null};function Q(x,t){this.name=x,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function le(){Q.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function q(){Q.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ie(){Q.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function se(){Q.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function J(x){if("string"==typeof x){var t=a._prime(x);this.m=t.p,this.prime=t}else u(x.gtn(1),"modulus must be greater than 1"),this.m=x,this.prime=null}function me(x){J.call(this,x),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(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)}Q.prototype._tmp=function(){var t=new a(null);return t.words=new Array(Math.ceil(this.n/13)),t},Q.prototype.ireduce=function(t){var h,r=t;do{this.split(r,this.tmp),h=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(h>this.n);var c=h<this.n?-1:r.ucmp(this.p);return 0===c?(r.words[0]=0,r.length=1):c>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},Q.prototype.split=function(t,r){t.iushrn(this.n,0,r)},Q.prototype.imulK=function(t){return t.imul(this.k)},b(le,Q),le.prototype.split=function(t,r){for(var h=4194303,c=Math.min(t.length,9),C=0;C<c;C++)r.words[C]=t.words[C];if(r.length=c,t.length<=9)return t.words[0]=0,void(t.length=1);var S=t.words[9];for(r.words[r.length++]=S&h,C=10;C<t.length;C++){var I=0|t.words[C];t.words[C-10]=(I&h)<<4|S>>>22,S=I}t.words[C-10]=S>>>=22,t.length-=0===S&&t.length>10?10:9},le.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var r=0,h=0;h<t.length;h++){var c=0|t.words[h];t.words[h]=67108863&(r+=977*c),r=64*c+(r/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},b(q,Q),b(ie,Q),b(se,Q),se.prototype.imulK=function(t){for(var r=0,h=0;h<t.length;h++){var c=19*(0|t.words[h])+r,C=67108863&c;c>>>=26,t.words[h]=C,r=c}return 0!==r&&(t.words[t.length++]=r),t},a._prime=function(t){if(ne[t])return ne[t];var r;if("k256"===t)r=new le;else if("p224"===t)r=new q;else if("p192"===t)r=new ie;else{if("p25519"!==t)throw new Error("Unknown prime "+t);r=new se}return ne[t]=r,r},J.prototype._verify1=function(t){u(0===t.negative,"red works only with positives"),u(t.red,"red works only with red numbers")},J.prototype._verify2=function(t,r){u(0==(t.negative|r.negative),"red works only with positives"),u(t.red&&t.red===r.red,"red works only with red numbers")},J.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},J.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},J.prototype.add=function(t,r){this._verify2(t,r);var h=t.add(r);return h.cmp(this.m)>=0&&h.isub(this.m),h._forceRed(this)},J.prototype.iadd=function(t,r){this._verify2(t,r);var h=t.iadd(r);return h.cmp(this.m)>=0&&h.isub(this.m),h},J.prototype.sub=function(t,r){this._verify2(t,r);var h=t.sub(r);return h.cmpn(0)<0&&h.iadd(this.m),h._forceRed(this)},J.prototype.isub=function(t,r){this._verify2(t,r);var h=t.isub(r);return h.cmpn(0)<0&&h.iadd(this.m),h},J.prototype.shl=function(t,r){return this._verify1(t),this.imod(t.ushln(r))},J.prototype.imul=function(t,r){return this._verify2(t,r),this.imod(t.imul(r))},J.prototype.mul=function(t,r){return this._verify2(t,r),this.imod(t.mul(r))},J.prototype.isqr=function(t){return this.imul(t,t.clone())},J.prototype.sqr=function(t){return this.mul(t,t)},J.prototype.sqrt=function(t){if(t.isZero())return t.clone();var r=this.m.andln(3);if(u(r%2==1),3===r){var h=this.m.add(new a(1)).iushrn(2);return this.pow(t,h)}for(var c=this.m.subn(1),C=0;!c.isZero()&&0===c.andln(1);)C++,c.iushrn(1);u(!c.isZero());var S=new a(1).toRed(this),I=S.redNeg(),_=this.m.subn(1).iushrn(1),n=this.m.bitLength();for(n=new a(2*n*n).toRed(this);0!==this.pow(n,_).cmp(I);)n.redIAdd(I);for(var g=this.pow(n,c),V=this.pow(t,c.addn(1).iushrn(1)),R=this.pow(t,c),H=C;0!==R.cmp(S);){for(var $=R,fe=0;0!==$.cmp(S);fe++)$=$.redSqr();u(fe<H);var ye=this.pow(g,new a(1).iushln(H-fe-1));V=V.redMul(ye),g=ye.redSqr(),R=R.redMul(g),H=fe}return V},J.prototype.invm=function(t){var r=t._invmp(this.m);return 0!==r.negative?(r.negative=0,this.imod(r).redNeg()):this.imod(r)},J.prototype.pow=function(t,r){if(r.isZero())return new a(1).toRed(this);if(0===r.cmpn(1))return t.clone();var c=new Array(16);c[0]=new a(1).toRed(this),c[1]=t;for(var C=2;C<c.length;C++)c[C]=this.mul(c[C-1],t);var S=c[0],I=0,_=0,n=r.bitLength()%26;for(0===n&&(n=26),C=r.length-1;C>=0;C--){for(var g=r.words[C],V=n-1;V>=0;V--){var R=g>>V&1;S!==c[0]&&(S=this.sqr(S)),0!==R||0!==I?(I<<=1,I|=R,(4==++_||0===C&&0===V)&&(S=this.mul(S,c[I]),_=0,I=0)):_=0}n=26}return S},J.prototype.convertTo=function(t){var r=t.umod(this.m);return r===t?r.clone():r},J.prototype.convertFrom=function(t){var r=t.clone();return r.red=null,r},a.mont=function(t){return new me(t)},b(me,J),me.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},me.prototype.convertFrom=function(t){var r=this.imod(t.mul(this.rinv));return r.red=null,r},me.prototype.imul=function(t,r){if(t.isZero()||r.isZero())return t.words[0]=0,t.length=1,t;var h=t.imul(r),c=h.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),C=h.isub(c).iushrn(this.shift),S=C;return C.cmp(this.m)>=0?S=C.isub(this.m):C.cmpn(0)<0&&(S=C.iadd(this.m)),S._forceRed(this)},me.prototype.mul=function(t,r){if(t.isZero()||r.isZero())return new a(0)._forceRed(this);var h=t.mul(r),c=h.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),C=h.isub(c).iushrn(this.shift),S=C;return C.cmp(this.m)>=0?S=C.isub(this.m):C.cmpn(0)<0&&(S=C.iadd(this.m)),S._forceRed(this)},me.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(He=p.nmd(He),this)},8419:He=>{"use strict";He.exports=function(p){for(var e=[],i=p.length,u=0;u<i;u++){var b=p.charCodeAt(u);if(b>=55296&&b<=56319&&i>u+1){var a=p.charCodeAt(u+1);a>=56320&&a<=57343&&(b=1024*(b-55296)+a-56320+65536,u+=1)}b<128?e.push(b):b<2048?(e.push(b>>6|192),e.push(63&b|128)):b<55296||b>=57344&&b<65536?(e.push(b>>12|224),e.push(b>>6&63|128),e.push(63&b|128)):b>=65536&&b<=1114111?(e.push(b>>18|240),e.push(b>>12&63|128),e.push(b>>6&63|128),e.push(63&b|128)):e.push(239,191,189)}return new Uint8Array(e).buffer}},9069:He=>{"use strict";var e,j="object"==typeof Reflect?Reflect:null,p=j&&"function"==typeof j.apply?j.apply:function(Q,le,q){return Function.prototype.apply.call(Q,le,q)};e=j&&"function"==typeof j.ownKeys?j.ownKeys:Object.getOwnPropertySymbols?function(Q){return Object.getOwnPropertyNames(Q).concat(Object.getOwnPropertySymbols(Q))}:function(Q){return Object.getOwnPropertyNames(Q)};var u=Number.isNaN||function(Q){return Q!=Q};function b(){b.init.call(this)}He.exports=b,He.exports.once=function z(ne,Q){return new Promise(function(le,q){function ie(J){ne.removeListener(Q,se),q(J)}function se(){"function"==typeof ne.removeListener&&ne.removeListener("error",ie),le([].slice.call(arguments))}W(ne,Q,se,{once:!0}),"error"!==Q&&function U(ne,Q,le){"function"==typeof ne.on&&W(ne,"error",Q,le)}(ne,ie,{once:!0})})},b.EventEmitter=b,b.prototype._events=void 0,b.prototype._eventsCount=0,b.prototype._maxListeners=void 0;var a=10;function y(ne){if("function"!=typeof ne)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof ne)}function d(ne){return void 0===ne._maxListeners?b.defaultMaxListeners:ne._maxListeners}function P(ne,Q,le,q){var ie,se,J;if(y(le),void 0===(se=ne._events)?(se=ne._events=Object.create(null),ne._eventsCount=0):(void 0!==se.newListener&&(ne.emit("newListener",Q,le.listener?le.listener:le),se=ne._events),J=se[Q]),void 0===J)J=se[Q]=le,++ne._eventsCount;else if("function"==typeof J?J=se[Q]=q?[le,J]:[J,le]:q?J.unshift(le):J.push(le),(ie=d(ne))>0&&J.length>ie&&!J.warned){J.warned=!0;var me=new Error("Possible EventEmitter memory leak detected. "+J.length+" "+String(Q)+" listeners added. Use emitter.setMaxListeners() to increase limit");me.name="MaxListenersExceededWarning",me.emitter=ne,me.type=Q,me.count=J.length,function i(ne){console&&console.warn&&console.warn(ne)}(me)}return ne}function D(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function T(ne,Q,le){var q={fired:!1,wrapFn:void 0,target:ne,type:Q,listener:le},ie=D.bind(q);return ie.listener=le,q.wrapFn=ie,ie}function M(ne,Q,le){var q=ne._events;if(void 0===q)return[];var ie=q[Q];return void 0===ie?[]:"function"==typeof ie?le?[ie.listener||ie]:[ie]:le?function w(ne){for(var Q=new Array(ne.length),le=0;le<Q.length;++le)Q[le]=ne[le].listener||ne[le];return Q}(ie):E(ie,ie.length)}function A(ne){var Q=this._events;if(void 0!==Q){var le=Q[ne];if("function"==typeof le)return 1;if(void 0!==le)return le.length}return 0}function E(ne,Q){for(var le=new Array(Q),q=0;q<Q;++q)le[q]=ne[q];return le}function W(ne,Q,le,q){if("function"==typeof ne.on)q.once?ne.once(Q,le):ne.on(Q,le);else{if("function"!=typeof ne.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof ne);ne.addEventListener(Q,function ie(se){q.once&&ne.removeEventListener(Q,ie),le(se)})}}Object.defineProperty(b,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(ne){if("number"!=typeof ne||ne<0||u(ne))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+ne+".");a=ne}}),b.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},b.prototype.setMaxListeners=function(Q){if("number"!=typeof Q||Q<0||u(Q))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+Q+".");return this._maxListeners=Q,this},b.prototype.getMaxListeners=function(){return d(this)},b.prototype.emit=function(Q){for(var le=[],q=1;q<arguments.length;q++)le.push(arguments[q]);var ie="error"===Q,se=this._events;if(void 0!==se)ie=ie&&void 0===se.error;else if(!ie)return!1;if(ie){var J;if(le.length>0&&(J=le[0]),J instanceof Error)throw J;var me=new Error("Unhandled error."+(J?" ("+J.message+")":""));throw me.context=J,me}var x=se[Q];if(void 0===x)return!1;if("function"==typeof x)p(x,this,le);else{var t=x.length,r=E(x,t);for(q=0;q<t;++q)p(r[q],this,le)}return!0},b.prototype.on=b.prototype.addListener=function(Q,le){return P(this,Q,le,!1)},b.prototype.prependListener=function(Q,le){return P(this,Q,le,!0)},b.prototype.once=function(Q,le){return y(le),this.on(Q,T(this,Q,le)),this},b.prototype.prependOnceListener=function(Q,le){return y(le),this.prependListener(Q,T(this,Q,le)),this},b.prototype.off=b.prototype.removeListener=function(Q,le){var q,ie,se,J,me;if(y(le),void 0===(ie=this._events))return this;if(void 0===(q=ie[Q]))return this;if(q===le||q.listener===le)0==--this._eventsCount?this._events=Object.create(null):(delete ie[Q],ie.removeListener&&this.emit("removeListener",Q,q.listener||le));else if("function"!=typeof q){for(se=-1,J=q.length-1;J>=0;J--)if(q[J]===le||q[J].listener===le){me=q[J].listener,se=J;break}if(se<0)return this;0===se?q.shift():function k(ne,Q){for(;Q+1<ne.length;Q++)ne[Q]=ne[Q+1];ne.pop()}(q,se),1===q.length&&(ie[Q]=q[0]),void 0!==ie.removeListener&&this.emit("removeListener",Q,me||le)}return this},b.prototype.removeAllListeners=function(Q){var le,q,ie;if(void 0===(q=this._events))return this;if(void 0===q.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==q[Q]&&(0==--this._eventsCount?this._events=Object.create(null):delete q[Q]),this;if(0===arguments.length){var J,se=Object.keys(q);for(ie=0;ie<se.length;++ie)"removeListener"!==(J=se[ie])&&this.removeAllListeners(J);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(le=q[Q]))this.removeListener(Q,le);else if(void 0!==le)for(ie=le.length-1;ie>=0;ie--)this.removeListener(Q,le[ie]);return this},b.prototype.listeners=function(Q){return M(this,Q,!0)},b.prototype.rawListeners=function(Q){return M(this,Q,!1)},b.listenerCount=function(ne,Q){return"function"==typeof ne.listenerCount?ne.listenerCount(Q):A.call(ne,Q)},b.prototype.listenerCount=A,b.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]}},347:(He,j,p)=>{var e=p(3502).Buffer,i=p(8095);He.exports=function u(b,a,y,d){if(e.isBuffer(b)||(b=e.from(b,"binary")),a&&(e.isBuffer(a)||(a=e.from(a,"binary")),8!==a.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var P=y/8,D=e.alloc(P),T=e.alloc(d||0),M=e.alloc(0);P>0||d>0;){var A=new i;A.update(M),A.update(b),a&&A.update(a),M=A.digest();var E=0;if(P>0){var k=D.length-P;E=Math.min(P,M.length),M.copy(D,k,0,E),P-=E}if(E<M.length&&d>0){var w=T.length-d,z=Math.min(d,M.length-E);M.copy(T,w,E,E+z),d-=z}}return M.fill(0),{key:D,iv:T}}},9650:(He,j,p)=>{"use strict";var e=p(8444).Buffer,i=p(5685).Transform;function a(y){i.call(this),this._block=e.allocUnsafe(y),this._blockSize=y,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}p(3894)(a,i),a.prototype._transform=function(y,d,P){var D=null;try{this.update(y,d)}catch(T){D=T}P(D)},a.prototype._flush=function(y){var d=null;try{this.push(this.digest())}catch(P){d=P}y(d)},a.prototype.update=function(y,d){if(function b(y,d){if(!e.isBuffer(y)&&"string"!=typeof y)throw new TypeError(d+" must be a string or a buffer")}(y,"Data"),this._finalized)throw new Error("Digest already called");e.isBuffer(y)||(y=e.from(y,d));for(var P=this._block,D=0;this._blockOffset+y.length-D>=this._blockSize;){for(var T=this._blockOffset;T<this._blockSize;)P[T++]=y[D++];this._update(),this._blockOffset=0}for(;D<y.length;)P[this._blockOffset++]=y[D++];for(var M=0,A=8*y.length;A>0;++M)this._length[M]+=A,(A=this._length[M]/4294967296|0)>0&&(this._length[M]-=4294967296*A);return this},a.prototype._update=function(){throw new Error("_update is not implemented")},a.prototype.digest=function(y){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var d=this._digest();void 0!==y&&(d=d.toString(y)),this._block.fill(0),this._blockOffset=0;for(var P=0;P<4;++P)this._length[P]=0;return d},a.prototype._digest=function(){throw new Error("_digest is not implemented")},He.exports=a},8444:(He,j,p)=>{var e=p(3172),i=e.Buffer;function u(a,y){for(var d in a)y[d]=a[d]}function b(a,y,d){return i(a,y,d)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?He.exports=e:(u(e,j),j.Buffer=b),b.prototype=Object.create(i.prototype),u(i,b),b.from=function(a,y,d){if("number"==typeof a)throw new TypeError("Argument must not be a number");return i(a,y,d)},b.alloc=function(a,y,d){if("number"!=typeof a)throw new TypeError("Argument must be a number");var P=i(a);return void 0!==y?"string"==typeof d?P.fill(y,d):P.fill(y):P.fill(0),P},b.allocUnsafe=function(a){if("number"!=typeof a)throw new TypeError("Argument must be a number");return i(a)},b.allocUnsafeSlow=function(a){if("number"!=typeof a)throw new TypeError("Argument must be a number");return e.SlowBuffer(a)}},7084:(He,j,p)=>{var e=j;e.utils=p(9299),e.common=p(3800),e.sha=p(4962),e.ripemd=p(9458),e.hmac=p(2194),e.sha1=e.sha.sha1,e.sha256=e.sha.sha256,e.sha224=e.sha.sha224,e.sha384=e.sha.sha384,e.sha512=e.sha.sha512,e.ripemd160=e.ripemd.ripemd160},3800:(He,j,p)=>{"use strict";var e=p(9299),i=p(2391);function u(){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}j.BlockHash=u,u.prototype.update=function(a,y){if(a=e.toArray(a,y),this.pending=this.pending?this.pending.concat(a):a,this.pendingTotal+=a.length,this.pending.length>=this._delta8){var d=(a=this.pending).length%this._delta8;this.pending=a.slice(a.length-d,a.length),0===this.pending.length&&(this.pending=null),a=e.join32(a,0,a.length-d,this.endian);for(var P=0;P<a.length;P+=this._delta32)this._update(a,P,P+this._delta32)}return this},u.prototype.digest=function(a){return this.update(this._pad()),i(null===this.pending),this._digest(a)},u.prototype._pad=function(){var a=this.pendingTotal,y=this._delta8,d=y-(a+this.padLength)%y,P=new Array(d+this.padLength);P[0]=128;for(var D=1;D<d;D++)P[D]=0;if(a<<=3,"big"===this.endian){for(var T=8;T<this.padLength;T++)P[D++]=0;P[D++]=0,P[D++]=0,P[D++]=0,P[D++]=0,P[D++]=a>>>24&255,P[D++]=a>>>16&255,P[D++]=a>>>8&255,P[D++]=255&a}else for(P[D++]=255&a,P[D++]=a>>>8&255,P[D++]=a>>>16&255,P[D++]=a>>>24&255,P[D++]=0,P[D++]=0,P[D++]=0,P[D++]=0,T=8;T<this.padLength;T++)P[D++]=0;return P}},2194:(He,j,p)=>{"use strict";var e=p(9299),i=p(2391);function u(b,a,y){if(!(this instanceof u))return new u(b,a,y);this.Hash=b,this.blockSize=b.blockSize/8,this.outSize=b.outSize/8,this.inner=null,this.outer=null,this._init(e.toArray(a,y))}He.exports=u,u.prototype._init=function(a){a.length>this.blockSize&&(a=(new this.Hash).update(a).digest()),i(a.length<=this.blockSize);for(var y=a.length;y<this.blockSize;y++)a.push(0);for(y=0;y<a.length;y++)a[y]^=54;for(this.inner=(new this.Hash).update(a),y=0;y<a.length;y++)a[y]^=106;this.outer=(new this.Hash).update(a)},u.prototype.update=function(a,y){return this.inner.update(a,y),this},u.prototype.digest=function(a){return this.outer.update(this.inner.digest()),this.outer.digest(a)}},9458:(He,j,p)=>{"use strict";var e=p(9299),i=p(3800),u=e.rotl32,b=e.sum32,a=e.sum32_3,y=e.sum32_4,d=i.BlockHash;function P(){if(!(this instanceof P))return new P;d.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function D(z,U,W,ne){return z<=15?U^W^ne:z<=31?U&W|~U&ne:z<=47?(U|~W)^ne:z<=63?U&ne|W&~ne:U^(W|~ne)}function M(z){return z<=15?1352829926:z<=31?1548603684:z<=47?1836072691:z<=63?2053994217:0}e.inherits(P,d),j.ripemd160=P,P.blockSize=512,P.outSize=160,P.hmacStrength=192,P.padLength=64,P.prototype._update=function(U,W){for(var ne=this.h[0],Q=this.h[1],le=this.h[2],q=this.h[3],ie=this.h[4],se=ne,J=Q,me=le,x=q,t=ie,r=0;r<80;r++){var h=b(u(y(ne,D(r,Q,le,q),U[A[r]+W],(z=r)<=15?0:z<=31?1518500249:z<=47?1859775393:z<=63?2400959708:2840853838),k[r]),ie);ne=ie,ie=q,q=u(le,10),le=Q,Q=h,h=b(u(y(se,D(79-r,J,me,x),U[E[r]+W],M(r)),w[r]),t),se=t,t=x,x=u(me,10),me=J,J=h}var z;h=a(this.h[1],le,x),this.h[1]=a(this.h[2],q,t),this.h[2]=a(this.h[3],ie,se),this.h[3]=a(this.h[4],ne,J),this.h[4]=a(this.h[0],Q,me),this.h[0]=h},P.prototype._digest=function(U){return"hex"===U?e.toHex32(this.h,"little"):e.split32(this.h,"little")};var A=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],E=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],k=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],w=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},4962:(He,j,p)=>{"use strict";j.sha1=p(9007),j.sha224=p(55),j.sha256=p(9342),j.sha384=p(8634),j.sha512=p(39)},9007:(He,j,p)=>{"use strict";var e=p(9299),i=p(3800),u=p(3113),b=e.rotl32,a=e.sum32,y=e.sum32_5,d=u.ft_1,P=i.BlockHash,D=[1518500249,1859775393,2400959708,3395469782];function T(){if(!(this instanceof T))return new T;P.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}e.inherits(T,P),He.exports=T,T.blockSize=512,T.outSize=160,T.hmacStrength=80,T.padLength=64,T.prototype._update=function(A,E){for(var k=this.W,w=0;w<16;w++)k[w]=A[E+w];for(;w<k.length;w++)k[w]=b(k[w-3]^k[w-8]^k[w-14]^k[w-16],1);var z=this.h[0],U=this.h[1],W=this.h[2],ne=this.h[3],Q=this.h[4];for(w=0;w<k.length;w++){var le=~~(w/20),q=y(b(z,5),d(le,U,W,ne),Q,k[w],D[le]);Q=ne,ne=W,W=b(U,30),U=z,z=q}this.h[0]=a(this.h[0],z),this.h[1]=a(this.h[1],U),this.h[2]=a(this.h[2],W),this.h[3]=a(this.h[3],ne),this.h[4]=a(this.h[4],Q)},T.prototype._digest=function(A){return"hex"===A?e.toHex32(this.h,"big"):e.split32(this.h,"big")}},55:(He,j,p)=>{"use strict";var e=p(9299),i=p(9342);function u(){if(!(this instanceof u))return new u;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}e.inherits(u,i),He.exports=u,u.blockSize=512,u.outSize=224,u.hmacStrength=192,u.padLength=64,u.prototype._digest=function(a){return"hex"===a?e.toHex32(this.h.slice(0,7),"big"):e.split32(this.h.slice(0,7),"big")}},9342:(He,j,p)=>{"use strict";var e=p(9299),i=p(3800),u=p(3113),b=p(2391),a=e.sum32,y=e.sum32_4,d=e.sum32_5,P=u.ch32,D=u.maj32,T=u.s0_256,M=u.s1_256,A=u.g0_256,E=u.g1_256,k=i.BlockHash,w=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function z(){if(!(this instanceof z))return new z;k.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=w,this.W=new Array(64)}e.inherits(z,k),He.exports=z,z.blockSize=512,z.outSize=256,z.hmacStrength=192,z.padLength=64,z.prototype._update=function(W,ne){for(var Q=this.W,le=0;le<16;le++)Q[le]=W[ne+le];for(;le<Q.length;le++)Q[le]=y(E(Q[le-2]),Q[le-7],A(Q[le-15]),Q[le-16]);var q=this.h[0],ie=this.h[1],se=this.h[2],J=this.h[3],me=this.h[4],x=this.h[5],t=this.h[6],r=this.h[7];for(b(this.k.length===Q.length),le=0;le<Q.length;le++){var h=d(r,M(me),P(me,x,t),this.k[le],Q[le]),c=a(T(q),D(q,ie,se));r=t,t=x,x=me,me=a(J,h),J=se,se=ie,ie=q,q=a(h,c)}this.h[0]=a(this.h[0],q),this.h[1]=a(this.h[1],ie),this.h[2]=a(this.h[2],se),this.h[3]=a(this.h[3],J),this.h[4]=a(this.h[4],me),this.h[5]=a(this.h[5],x),this.h[6]=a(this.h[6],t),this.h[7]=a(this.h[7],r)},z.prototype._digest=function(W){return"hex"===W?e.toHex32(this.h,"big"):e.split32(this.h,"big")}},8634:(He,j,p)=>{"use strict";var e=p(9299),i=p(39);function u(){if(!(this instanceof u))return new u;i.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}e.inherits(u,i),He.exports=u,u.blockSize=1024,u.outSize=384,u.hmacStrength=192,u.padLength=128,u.prototype._digest=function(a){return"hex"===a?e.toHex32(this.h.slice(0,12),"big"):e.split32(this.h.slice(0,12),"big")}},39:(He,j,p)=>{"use strict";var e=p(9299),i=p(3800),u=p(2391),b=e.rotr64_hi,a=e.rotr64_lo,y=e.shr64_hi,d=e.shr64_lo,P=e.sum64,D=e.sum64_hi,T=e.sum64_lo,M=e.sum64_4_hi,A=e.sum64_4_lo,E=e.sum64_5_hi,k=e.sum64_5_lo,w=i.BlockHash,z=[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 U(){if(!(this instanceof U))return new U;w.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=z,this.W=new Array(160)}function W(h,c,C,S,I){var _=h&C^~h&I;return _<0&&(_+=4294967296),_}function ne(h,c,C,S,I,_){var n=c&S^~c&_;return n<0&&(n+=4294967296),n}function Q(h,c,C,S,I){var _=h&C^h&I^C&I;return _<0&&(_+=4294967296),_}function le(h,c,C,S,I,_){var n=c&S^c&_^S&_;return n<0&&(n+=4294967296),n}function q(h,c){var _=b(h,c,28)^b(c,h,2)^b(c,h,7);return _<0&&(_+=4294967296),_}function ie(h,c){var _=a(h,c,28)^a(c,h,2)^a(c,h,7);return _<0&&(_+=4294967296),_}function se(h,c){var _=b(h,c,14)^b(h,c,18)^b(c,h,9);return _<0&&(_+=4294967296),_}function J(h,c){var _=a(h,c,14)^a(h,c,18)^a(c,h,9);return _<0&&(_+=4294967296),_}function me(h,c){var _=b(h,c,1)^b(h,c,8)^y(h,c,7);return _<0&&(_+=4294967296),_}function x(h,c){var _=a(h,c,1)^a(h,c,8)^d(h,c,7);return _<0&&(_+=4294967296),_}function t(h,c){var _=b(h,c,19)^b(c,h,29)^y(h,c,6);return _<0&&(_+=4294967296),_}function r(h,c){var _=a(h,c,19)^a(c,h,29)^d(h,c,6);return _<0&&(_+=4294967296),_}e.inherits(U,w),He.exports=U,U.blockSize=1024,U.outSize=512,U.hmacStrength=192,U.padLength=128,U.prototype._prepareBlock=function(c,C){for(var S=this.W,I=0;I<32;I++)S[I]=c[C+I];for(;I<S.length;I+=2){var _=t(S[I-4],S[I-3]),n=r(S[I-4],S[I-3]),g=S[I-14],V=S[I-13],R=me(S[I-30],S[I-29]),H=x(S[I-30],S[I-29]),$=S[I-32],fe=S[I-31];S[I]=M(_,n,g,V,R,H,$,fe),S[I+1]=A(_,n,g,V,R,H,$,fe)}},U.prototype._update=function(c,C){this._prepareBlock(c,C);var S=this.W,I=this.h[0],_=this.h[1],n=this.h[2],g=this.h[3],V=this.h[4],R=this.h[5],H=this.h[6],$=this.h[7],fe=this.h[8],ye=this.h[9],ke=this.h[10],Ee=this.h[11],te=this.h[12],ze=this.h[13],be=this.h[14],Z=this.h[15];u(this.k.length===S.length);for(var Y=0;Y<S.length;Y+=2){var ot=be,Ie=Z,Ae=se(fe,ye),ce=J(fe,ye),Te=W(fe,0,ke,0,te),xe=ne(0,ye,0,Ee,0,ze),G=this.k[Y],ee=this.k[Y+1],ue=S[Y],ve=S[Y+1],Le=E(ot,Ie,Ae,ce,Te,xe,G,ee,ue,ve),lt=k(ot,Ie,Ae,ce,Te,xe,G,ee,ue,ve);ot=q(I,_),Ie=ie(I,_),Ae=Q(I,0,n,0,V),ce=le(0,_,0,g,0,R);var ht=D(ot,Ie,Ae,ce),Tt=T(ot,Ie,Ae,ce);be=te,Z=ze,te=ke,ze=Ee,ke=fe,Ee=ye,fe=D(H,$,Le,lt),ye=T($,$,Le,lt),H=V,$=R,V=n,R=g,n=I,g=_,I=D(Le,lt,ht,Tt),_=T(Le,lt,ht,Tt)}P(this.h,0,I,_),P(this.h,2,n,g),P(this.h,4,V,R),P(this.h,6,H,$),P(this.h,8,fe,ye),P(this.h,10,ke,Ee),P(this.h,12,te,ze),P(this.h,14,be,Z)},U.prototype._digest=function(c){return"hex"===c?e.toHex32(this.h,"big"):e.split32(this.h,"big")}},3113:(He,j,p)=>{"use strict";var i=p(9299).rotr32;function b(M,A,E){return M&A^~M&E}function a(M,A,E){return M&A^M&E^A&E}function y(M,A,E){return M^A^E}j.ft_1=function u(M,A,E,k){return 0===M?b(A,E,k):1===M||3===M?y(A,E,k):2===M?a(A,E,k):void 0},j.ch32=b,j.maj32=a,j.p32=y,j.s0_256=function d(M){return i(M,2)^i(M,13)^i(M,22)},j.s1_256=function P(M){return i(M,6)^i(M,11)^i(M,25)},j.g0_256=function D(M){return i(M,7)^i(M,18)^M>>>3},j.g1_256=function T(M){return i(M,17)^i(M,19)^M>>>10}},9299:(He,j,p)=>{"use strict";var e=p(2391),i=p(3894);function u(r,h){return!(55296!=(64512&r.charCodeAt(h))||h<0||h+1>=r.length)&&56320==(64512&r.charCodeAt(h+1))}function y(r){return(r>>>24|r>>>8&65280|r<<8&16711680|(255&r)<<24)>>>0}function P(r){return 1===r.length?"0"+r:r}function D(r){return 7===r.length?"0"+r:6===r.length?"00"+r:5===r.length?"000"+r:4===r.length?"0000"+r:3===r.length?"00000"+r:2===r.length?"000000"+r:1===r.length?"0000000"+r:r}j.inherits=i,j.toArray=function b(r,h){if(Array.isArray(r))return r.slice();if(!r)return[];var c=[];if("string"==typeof r)if(h){if("hex"===h)for((r=r.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(r="0"+r),S=0;S<r.length;S+=2)c.push(parseInt(r[S]+r[S+1],16))}else for(var C=0,S=0;S<r.length;S++){var I=r.charCodeAt(S);I<128?c[C++]=I:I<2048?(c[C++]=I>>6|192,c[C++]=63&I|128):u(r,S)?(I=65536+((1023&I)<<10)+(1023&r.charCodeAt(++S)),c[C++]=I>>18|240,c[C++]=I>>12&63|128,c[C++]=I>>6&63|128,c[C++]=63&I|128):(c[C++]=I>>12|224,c[C++]=I>>6&63|128,c[C++]=63&I|128)}else for(S=0;S<r.length;S++)c[S]=0|r[S];return c},j.toHex=function a(r){for(var h="",c=0;c<r.length;c++)h+=P(r[c].toString(16));return h},j.htonl=y,j.toHex32=function d(r,h){for(var c="",C=0;C<r.length;C++){var S=r[C];"little"===h&&(S=y(S)),c+=D(S.toString(16))}return c},j.zero2=P,j.zero8=D,j.join32=function T(r,h,c,C){var S=c-h;e(S%4==0);for(var I=new Array(S/4),_=0,n=h;_<I.length;_++,n+=4)I[_]=("big"===C?r[n]<<24|r[n+1]<<16|r[n+2]<<8|r[n+3]:r[n+3]<<24|r[n+2]<<16|r[n+1]<<8|r[n])>>>0;return I},j.split32=function M(r,h){for(var c=new Array(4*r.length),C=0,S=0;C<r.length;C++,S+=4){var I=r[C];"big"===h?(c[S]=I>>>24,c[S+1]=I>>>16&255,c[S+2]=I>>>8&255,c[S+3]=255&I):(c[S+3]=I>>>24,c[S+2]=I>>>16&255,c[S+1]=I>>>8&255,c[S]=255&I)}return c},j.rotr32=function A(r,h){return r>>>h|r<<32-h},j.rotl32=function E(r,h){return r<<h|r>>>32-h},j.sum32=function k(r,h){return r+h>>>0},j.sum32_3=function w(r,h,c){return r+h+c>>>0},j.sum32_4=function z(r,h,c,C){return r+h+c+C>>>0},j.sum32_5=function U(r,h,c,C,S){return r+h+c+C+S>>>0},j.sum64=function W(r,h,c,C){var _=C+r[h+1]>>>0;r[h]=(_<C?1:0)+c+r[h]>>>0,r[h+1]=_},j.sum64_hi=function ne(r,h,c,C){return(h+C>>>0<h?1:0)+r+c>>>0},j.sum64_lo=function Q(r,h,c,C){return h+C>>>0},j.sum64_4_hi=function le(r,h,c,C,S,I,_,n){var g=0,V=h;return g+=(V=V+C>>>0)<h?1:0,g+=(V=V+I>>>0)<I?1:0,r+c+S+_+(g+=(V=V+n>>>0)<n?1:0)>>>0},j.sum64_4_lo=function q(r,h,c,C,S,I,_,n){return h+C+I+n>>>0},j.sum64_5_hi=function ie(r,h,c,C,S,I,_,n,g,V){var R=0,H=h;return R+=(H=H+C>>>0)<h?1:0,R+=(H=H+I>>>0)<I?1:0,R+=(H=H+n>>>0)<n?1:0,r+c+S+_+g+(R+=(H=H+V>>>0)<V?1:0)>>>0},j.sum64_5_lo=function se(r,h,c,C,S,I,_,n,g,V){return h+C+I+n+V>>>0},j.rotr64_hi=function J(r,h,c){return(h<<32-c|r>>>c)>>>0},j.rotr64_lo=function me(r,h,c){return(r<<32-c|h>>>c)>>>0},j.shr64_hi=function x(r,h,c){return r>>>c},j.shr64_lo=function t(r,h,c){return(r<<32-c|h>>>c)>>>0}},2438:(He,j,p)=>{"use strict";var e=p(7084),i=p(8195),u=p(2391);function b(a){if(!(this instanceof b))return new b(a);this.hash=a.hash,this.predResist=!!a.predResist,this.outLen=this.hash.outSize,this.minEntropy=a.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var y=i.toArray(a.entropy,a.entropyEnc||"hex"),d=i.toArray(a.nonce,a.nonceEnc||"hex"),P=i.toArray(a.pers,a.persEnc||"hex");u(y.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(y,d,P)}He.exports=b,b.prototype._init=function(y,d,P){var D=y.concat(d).concat(P);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var T=0;T<this.V.length;T++)this.K[T]=0,this.V[T]=1;this._update(D),this._reseed=1,this.reseedInterval=281474976710656},b.prototype._hmac=function(){return new e.hmac(this.hash,this.K)},b.prototype._update=function(y){var d=this._hmac().update(this.V).update([0]);y&&(d=d.update(y)),this.K=d.digest(),this.V=this._hmac().update(this.V).digest(),y&&(this.K=this._hmac().update(this.V).update([1]).update(y).digest(),this.V=this._hmac().update(this.V).digest())},b.prototype.reseed=function(y,d,P,D){"string"!=typeof d&&(D=P,P=d,d=null),y=i.toArray(y,d),P=i.toArray(P,D),u(y.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(y.concat(P||[])),this._reseed=1},b.prototype.generate=function(y,d,P,D){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof d&&(D=P,P=d,d=null),P&&(P=i.toArray(P,D||"hex"),this._update(P));for(var T=[];T.length<y;)this.V=this._hmac().update(this.V).digest(),T=T.concat(this.V);var M=T.slice(0,y);return this._update(P),this._reseed++,i.encode(M,d)}},8461:(He,j)=>{j.read=function(p,e,i,u,b){var a,y,d=8*b-u-1,P=(1<<d)-1,D=P>>1,T=-7,M=i?b-1:0,A=i?-1:1,E=p[e+M];for(M+=A,a=E&(1<<-T)-1,E>>=-T,T+=d;T>0;a=256*a+p[e+M],M+=A,T-=8);for(y=a&(1<<-T)-1,a>>=-T,T+=u;T>0;y=256*y+p[e+M],M+=A,T-=8);if(0===a)a=1-D;else{if(a===P)return y?NaN:1/0*(E?-1:1);y+=Math.pow(2,u),a-=D}return(E?-1:1)*y*Math.pow(2,a-u)},j.write=function(p,e,i,u,b,a){var y,d,P,D=8*a-b-1,T=(1<<D)-1,M=T>>1,A=23===b?Math.pow(2,-24)-Math.pow(2,-77):0,E=u?0:a-1,k=u?1:-1,w=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(d=isNaN(e)?1:0,y=T):(y=Math.floor(Math.log(e)/Math.LN2),e*(P=Math.pow(2,-y))<1&&(y--,P*=2),(e+=y+M>=1?A/P:A*Math.pow(2,1-M))*P>=2&&(y++,P/=2),y+M>=T?(d=0,y=T):y+M>=1?(d=(e*P-1)*Math.pow(2,b),y+=M):(d=e*Math.pow(2,M-1)*Math.pow(2,b),y=0));b>=8;p[i+E]=255&d,E+=k,d/=256,b-=8);for(y=y<<b|d,D+=b;D>0;p[i+E]=255&y,E+=k,y/=256,D-=8);p[i+E-k]|=128*w}},3894:He=>{He.exports="function"==typeof Object.create?function(p,e){e&&(p.super_=e,p.prototype=Object.create(e.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}))}:function(p,e){if(e){p.super_=e;var i=function(){};i.prototype=e.prototype,p.prototype=new i,p.prototype.constructor=p}}},717:(He,j,p)=>{"use strict";var e=p(623);function i(u){return!0===e(u)&&"[object Object]"===Object.prototype.toString.call(u)}He.exports=function(b){var a,y;return!(!1===i(b)||(a=b.constructor,"function"!=typeof a)||(y=a.prototype,!1===i(y))||!1===y.hasOwnProperty("isPrototypeOf"))}},623:He=>{"use strict";He.exports=function(p){return null!=p&&"object"==typeof p&&!1===Array.isArray(p)}},2872:He=>{var j=Object.prototype.toString;function p(D){return"function"==typeof D.constructor?D.constructor.name:null}He.exports=function(T){if(void 0===T)return"undefined";if(null===T)return"null";var M=typeof T;if("boolean"===M)return"boolean";if("string"===M)return"string";if("number"===M)return"number";if("symbol"===M)return"symbol";if("function"===M)return function a(D,T){return"GeneratorFunction"===p(D)}(T)?"generatorfunction":"function";if(function e(D){return Array.isArray?Array.isArray(D):D instanceof Array}(T))return"array";if(function P(D){return!(!D.constructor||"function"!=typeof D.constructor.isBuffer)&&D.constructor.isBuffer(D)}(T))return"buffer";if(function d(D){try{if("number"==typeof D.length&&"function"==typeof D.callee)return!0}catch(T){if(-1!==T.message.indexOf("callee"))return!0}return!1}(T))return"arguments";if(function u(D){return D instanceof Date||"function"==typeof D.toDateString&&"function"==typeof D.getDate&&"function"==typeof D.setDate}(T))return"date";if(function i(D){return D instanceof Error||"string"==typeof D.message&&D.constructor&&"number"==typeof D.constructor.stackTraceLimit}(T))return"error";if(function b(D){return D instanceof RegExp||"string"==typeof D.flags&&"boolean"==typeof D.ignoreCase&&"boolean"==typeof D.multiline&&"boolean"==typeof D.global}(T))return"regexp";switch(p(T)){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 y(D){return"function"==typeof D.throw&&"function"==typeof D.return&&"function"==typeof D.next}(T))return"generator";switch(M=j.call(T)){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 M.slice(8,-1).toLowerCase().replace(/\s/g,"")}},8095:(He,j,p)=>{"use strict";var e=p(3894),i=p(9650),u=p(3502).Buffer,b=new Array(16);function a(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function y(M,A){return M<<A|M>>>32-A}function d(M,A,E,k,w,z,U){return y(M+(A&E|~A&k)+w+z|0,U)+A|0}function P(M,A,E,k,w,z,U){return y(M+(A&k|E&~k)+w+z|0,U)+A|0}function D(M,A,E,k,w,z,U){return y(M+(A^E^k)+w+z|0,U)+A|0}function T(M,A,E,k,w,z,U){return y(M+(E^(A|~k))+w+z|0,U)+A|0}e(a,i),a.prototype._update=function(){for(var M=b,A=0;A<16;++A)M[A]=this._block.readInt32LE(4*A);var E=this._a,k=this._b,w=this._c,z=this._d;E=d(E,k,w,z,M[0],3614090360,7),z=d(z,E,k,w,M[1],3905402710,12),w=d(w,z,E,k,M[2],606105819,17),k=d(k,w,z,E,M[3],3250441966,22),E=d(E,k,w,z,M[4],4118548399,7),z=d(z,E,k,w,M[5],1200080426,12),w=d(w,z,E,k,M[6],2821735955,17),k=d(k,w,z,E,M[7],4249261313,22),E=d(E,k,w,z,M[8],1770035416,7),z=d(z,E,k,w,M[9],2336552879,12),w=d(w,z,E,k,M[10],4294925233,17),k=d(k,w,z,E,M[11],2304563134,22),E=d(E,k,w,z,M[12],1804603682,7),z=d(z,E,k,w,M[13],4254626195,12),w=d(w,z,E,k,M[14],2792965006,17),E=P(E,k=d(k,w,z,E,M[15],1236535329,22),w,z,M[1],4129170786,5),z=P(z,E,k,w,M[6],3225465664,9),w=P(w,z,E,k,M[11],643717713,14),k=P(k,w,z,E,M[0],3921069994,20),E=P(E,k,w,z,M[5],3593408605,5),z=P(z,E,k,w,M[10],38016083,9),w=P(w,z,E,k,M[15],3634488961,14),k=P(k,w,z,E,M[4],3889429448,20),E=P(E,k,w,z,M[9],568446438,5),z=P(z,E,k,w,M[14],3275163606,9),w=P(w,z,E,k,M[3],4107603335,14),k=P(k,w,z,E,M[8],1163531501,20),E=P(E,k,w,z,M[13],2850285829,5),z=P(z,E,k,w,M[2],4243563512,9),w=P(w,z,E,k,M[7],1735328473,14),E=D(E,k=P(k,w,z,E,M[12],2368359562,20),w,z,M[5],4294588738,4),z=D(z,E,k,w,M[8],2272392833,11),w=D(w,z,E,k,M[11],1839030562,16),k=D(k,w,z,E,M[14],4259657740,23),E=D(E,k,w,z,M[1],2763975236,4),z=D(z,E,k,w,M[4],1272893353,11),w=D(w,z,E,k,M[7],4139469664,16),k=D(k,w,z,E,M[10],3200236656,23),E=D(E,k,w,z,M[13],681279174,4),z=D(z,E,k,w,M[0],3936430074,11),w=D(w,z,E,k,M[3],3572445317,16),k=D(k,w,z,E,M[6],76029189,23),E=D(E,k,w,z,M[9],3654602809,4),z=D(z,E,k,w,M[12],3873151461,11),w=D(w,z,E,k,M[15],530742520,16),E=T(E,k=D(k,w,z,E,M[2],3299628645,23),w,z,M[0],4096336452,6),z=T(z,E,k,w,M[7],1126891415,10),w=T(w,z,E,k,M[14],2878612391,15),k=T(k,w,z,E,M[5],4237533241,21),E=T(E,k,w,z,M[12],1700485571,6),z=T(z,E,k,w,M[3],2399980690,10),w=T(w,z,E,k,M[10],4293915773,15),k=T(k,w,z,E,M[1],2240044497,21),E=T(E,k,w,z,M[8],1873313359,6),z=T(z,E,k,w,M[15],4264355552,10),w=T(w,z,E,k,M[6],2734768916,15),k=T(k,w,z,E,M[13],1309151649,21),E=T(E,k,w,z,M[4],4149444226,6),z=T(z,E,k,w,M[11],3174756917,10),w=T(w,z,E,k,M[2],718787259,15),k=T(k,w,z,E,M[9],3951481745,21),this._a=this._a+E|0,this._b=this._b+k|0,this._c=this._c+w|0,this._d=this._d+z|0},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 M=u.allocUnsafe(16);return M.writeInt32LE(this._a,0),M.writeInt32LE(this._b,4),M.writeInt32LE(this._c,8),M.writeInt32LE(this._d,12),M},He.exports=a},7079:(He,j,p)=>{var e=p(1378),i=p(7950);function u(b){this.rand=b||new i.Rand}He.exports=u,u.create=function(a){return new u(a)},u.prototype._randbelow=function(a){var y=a.bitLength(),d=Math.ceil(y/8);do{var P=new e(this.rand.generate(d))}while(P.cmp(a)>=0);return P},u.prototype._randrange=function(a,y){var d=y.sub(a);return a.add(this._randbelow(d))},u.prototype.test=function(a,y,d){var P=a.bitLength(),D=e.mont(a),T=new e(1).toRed(D);y||(y=Math.max(1,P/48|0));for(var M=a.subn(1),A=0;!M.testn(A);A++);for(var E=a.shrn(A),k=M.toRed(D);y>0;y--){var z=this._randrange(new e(2),M);d&&d(z);var U=z.toRed(D).redPow(E);if(0!==U.cmp(T)&&0!==U.cmp(k)){for(var W=1;W<A;W++){if(0===(U=U.redSqr()).cmp(T))return!1;if(0===U.cmp(k))break}if(W===A)return!1}}return!0},u.prototype.getDivisor=function(a,y){var d=a.bitLength(),P=e.mont(a),D=new e(1).toRed(P);y||(y=Math.max(1,d/48|0));for(var T=a.subn(1),M=0;!T.testn(M);M++);for(var A=a.shrn(M),E=T.toRed(P);y>0;y--){var k=this._randrange(new e(2),T),w=a.gcd(k);if(0!==w.cmpn(1))return w;var z=k.toRed(P).redPow(A);if(0!==z.cmp(D)&&0!==z.cmp(E)){for(var U=1;U<M;U++){if(0===(z=z.redSqr()).cmp(D))return z.fromRed().subn(1).gcd(a);if(0===z.cmp(E))break}if(U===M)return(z=z.redSqr()).fromRed().subn(1).gcd(a)}}return!1}},1378:function(He,j,p){!function(e,i){"use strict";function u(x,t){if(!x)throw new Error(t||"Assertion failed")}function b(x,t){x.super_=t;var r=function(){};r.prototype=t.prototype,x.prototype=new r,x.prototype.constructor=x}function a(x,t,r){if(a.isBN(x))return x;this.negative=0,this.words=null,this.length=0,this.red=null,null!==x&&(("le"===t||"be"===t)&&(r=t,t=10),this._init(x||0,t||10,r||"be"))}var y;"object"==typeof e?e.exports=a:i.BN=a,a.BN=a,a.wordSize=26;try{y="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:p(6619).Buffer}catch(x){}function d(x,t){var r=x.charCodeAt(t);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function P(x,t,r){var h=d(x,r);return r-1>=t&&(h|=d(x,r-1)<<4),h}function D(x,t,r,h){for(var c=0,C=Math.min(x.length,r),S=t;S<C;S++){var I=x.charCodeAt(S)-48;c*=h,c+=I>=49?I-49+10:I>=17?I-17+10:I}return c}a.isBN=function(t){return t instanceof a||null!==t&&"object"==typeof t&&t.constructor.wordSize===a.wordSize&&Array.isArray(t.words)},a.max=function(t,r){return t.cmp(r)>0?t:r},a.min=function(t,r){return t.cmp(r)<0?t:r},a.prototype._init=function(t,r,h){if("number"==typeof t)return this._initNumber(t,r,h);if("object"==typeof t)return this._initArray(t,r,h);"hex"===r&&(r=16),u(r===(0|r)&&r>=2&&r<=36);var c=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(c++,this.negative=1),c<t.length&&(16===r?this._parseHex(t,c,h):(this._parseBase(t,r,c),"le"===h&&this._initArray(this.toArray(),r,h)))},a.prototype._initNumber=function(t,r,h){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(u(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===h&&this._initArray(this.toArray(),r,h)},a.prototype._initArray=function(t,r,h){if(u("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var c=0;c<this.length;c++)this.words[c]=0;var C,S,I=0;if("be"===h)for(c=t.length-1,C=0;c>=0;c-=3)this.words[C]|=(S=t[c]|t[c-1]<<8|t[c-2]<<16)<<I&67108863,this.words[C+1]=S>>>26-I&67108863,(I+=24)>=26&&(I-=26,C++);else if("le"===h)for(c=0,C=0;c<t.length;c+=3)this.words[C]|=(S=t[c]|t[c+1]<<8|t[c+2]<<16)<<I&67108863,this.words[C+1]=S>>>26-I&67108863,(I+=24)>=26&&(I-=26,C++);return this.strip()},a.prototype._parseHex=function(t,r,h){this.length=Math.ceil((t.length-r)/6),this.words=new Array(this.length);for(var c=0;c<this.length;c++)this.words[c]=0;var I,C=0,S=0;if("be"===h)for(c=t.length-1;c>=r;c-=2)I=P(t,r,c)<<C,this.words[S]|=67108863&I,C>=18?(C-=18,this.words[S+=1]|=I>>>26):C+=8;else for(c=(t.length-r)%2==0?r+1:r;c<t.length;c+=2)I=P(t,r,c)<<C,this.words[S]|=67108863&I,C>=18?(C-=18,this.words[S+=1]|=I>>>26):C+=8;this.strip()},a.prototype._parseBase=function(t,r,h){this.words=[0],this.length=1;for(var c=0,C=1;C<=67108863;C*=r)c++;c--,C=C/r|0;for(var S=t.length-h,I=S%c,_=Math.min(S,S-I)+h,n=0,g=h;g<_;g+=c)n=D(t,g,g+c,r),this.imuln(C),this.words[0]+n<67108864?this.words[0]+=n:this._iaddn(n);if(0!==I){var V=1;for(n=D(t,g,t.length,r),g=0;g<I;g++)V*=r;this.imuln(V),this.words[0]+n<67108864?this.words[0]+=n:this._iaddn(n)}this.strip()},a.prototype.copy=function(t){t.words=new Array(this.length);for(var r=0;r<this.length;r++)t.words[r]=this.words[r];t.length=this.length,t.negative=this.negative,t.red=this.red},a.prototype.clone=function(){var t=new a(null);return this.copy(t),t},a.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},a.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var T=["","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],A=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function k(x,t,r){r.negative=t.negative^x.negative;var h=x.length+t.length|0;r.length=h,h=h-1|0;var c=0|x.words[0],C=0|t.words[0],S=c*C,_=S/67108864|0;r.words[0]=67108863&S;for(var n=1;n<h;n++){for(var g=_>>>26,V=67108863&_,R=Math.min(n,t.length-1),H=Math.max(0,n-x.length+1);H<=R;H++)g+=(S=(c=0|x.words[n-H|0])*(C=0|t.words[H])+V)/67108864|0,V=67108863&S;r.words[n]=0|V,_=0|g}return 0!==_?r.words[n]=0|_:r.length--,r.strip()}a.prototype.toString=function(t,r){var h;if(r=0|r||1,16===(t=t||10)||"hex"===t){h="";for(var c=0,C=0,S=0;S<this.length;S++){var I=this.words[S],_=(16777215&(I<<c|C)).toString(16);h=0!=(C=I>>>24-c&16777215)||S!==this.length-1?T[6-_.length]+_+h:_+h,(c+=2)>=26&&(c-=26,S--)}for(0!==C&&(h=C.toString(16)+h);h.length%r!=0;)h="0"+h;return 0!==this.negative&&(h="-"+h),h}if(t===(0|t)&&t>=2&&t<=36){var n=M[t],g=A[t];h="";var V=this.clone();for(V.negative=0;!V.isZero();){var R=V.modn(g).toString(t);h=(V=V.idivn(g)).isZero()?R+h:T[n-R.length]+R+h}for(this.isZero()&&(h="0"+h);h.length%r!=0;)h="0"+h;return 0!==this.negative&&(h="-"+h),h}u(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&u(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(t,r){return u(void 0!==y),this.toArrayLike(y,t,r)},a.prototype.toArray=function(t,r){return this.toArrayLike(Array,t,r)},a.prototype.toArrayLike=function(t,r,h){var c=this.byteLength(),C=h||Math.max(1,c);u(c<=C,"byte array longer than desired length"),u(C>0,"Requested array length <= 0"),this.strip();var _,n,S="le"===r,I=new t(C),g=this.clone();if(S){for(n=0;!g.isZero();n++)_=g.andln(255),g.iushrn(8),I[n]=_;for(;n<C;n++)I[n]=0}else{for(n=0;n<C-c;n++)I[n]=0;for(n=0;!g.isZero();n++)_=g.andln(255),g.iushrn(8),I[C-n-1]=_}return I},a.prototype._countBits=Math.clz32?function(t){return 32-Math.clz32(t)}:function(t){var r=t,h=0;return r>=4096&&(h+=13,r>>>=13),r>=64&&(h+=7,r>>>=7),r>=8&&(h+=4,r>>>=4),r>=2&&(h+=2,r>>>=2),h+r},a.prototype._zeroBits=function(t){if(0===t)return 26;var r=t,h=0;return 0==(8191&r)&&(h+=13,r>>>=13),0==(127&r)&&(h+=7,r>>>=7),0==(15&r)&&(h+=4,r>>>=4),0==(3&r)&&(h+=2,r>>>=2),0==(1&r)&&h++,h},a.prototype.bitLength=function(){var r=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+r},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,r=0;r<this.length;r++){var h=this._zeroBits(this.words[r]);if(t+=h,26!==h)break}return t},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},a.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return 0!==this.negative},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]|t.words[r];return this.strip()},a.prototype.ior=function(t){return u(0==(this.negative|t.negative)),this.iuor(t)},a.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},a.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},a.prototype.iuand=function(t){var r;r=this.length>t.length?t:this;for(var h=0;h<r.length;h++)this.words[h]=this.words[h]&t.words[h];return this.length=r.length,this.strip()},a.prototype.iand=function(t){return u(0==(this.negative|t.negative)),this.iuand(t)},a.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},a.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},a.prototype.iuxor=function(t){var r,h;this.length>t.length?(r=this,h=t):(r=t,h=this);for(var c=0;c<h.length;c++)this.words[c]=r.words[c]^h.words[c];if(this!==r)for(;c<r.length;c++)this.words[c]=r.words[c];return this.length=r.length,this.strip()},a.prototype.ixor=function(t){return u(0==(this.negative|t.negative)),this.iuxor(t)},a.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},a.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},a.prototype.inotn=function(t){u("number"==typeof t&&t>=0);var r=0|Math.ceil(t/26),h=t%26;this._expand(r),h>0&&r--;for(var c=0;c<r;c++)this.words[c]=67108863&~this.words[c];return h>0&&(this.words[c]=~this.words[c]&67108863>>26-h),this.strip()},a.prototype.notn=function(t){return this.clone().inotn(t)},a.prototype.setn=function(t,r){u("number"==typeof t&&t>=0);var h=t/26|0,c=t%26;return this._expand(h+1),this.words[h]=r?this.words[h]|1<<c:this.words[h]&~(1<<c),this.strip()},a.prototype.iadd=function(t){var r,h,c;if(0!==this.negative&&0===t.negative)return this.negative=0,r=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,r=this.isub(t),t.negative=1,r._normSign();this.length>t.length?(h=this,c=t):(h=t,c=this);for(var C=0,S=0;S<c.length;S++)this.words[S]=67108863&(r=(0|h.words[S])+(0|c.words[S])+C),C=r>>>26;for(;0!==C&&S<h.length;S++)this.words[S]=67108863&(r=(0|h.words[S])+C),C=r>>>26;if(this.length=h.length,0!==C)this.words[this.length]=C,this.length++;else if(h!==this)for(;S<h.length;S++)this.words[S]=h.words[S];return this},a.prototype.add=function(t){var r;return 0!==t.negative&&0===this.negative?(t.negative=0,r=this.sub(t),t.negative^=1,r):0===t.negative&&0!==this.negative?(this.negative=0,r=t.sub(this),this.negative=1,r):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},a.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var r=this.iadd(t);return t.negative=1,r._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var c,C,h=this.cmp(t);if(0===h)return this.negative=0,this.length=1,this.words[0]=0,this;h>0?(c=this,C=t):(c=t,C=this);for(var S=0,I=0;I<C.length;I++)S=(r=(0|c.words[I])-(0|C.words[I])+S)>>26,this.words[I]=67108863&r;for(;0!==S&&I<c.length;I++)S=(r=(0|c.words[I])+S)>>26,this.words[I]=67108863&r;if(0===S&&I<c.length&&c!==this)for(;I<c.length;I++)this.words[I]=c.words[I];return this.length=Math.max(this.length,I),c!==this&&(this.negative=1),this.strip()},a.prototype.sub=function(t){return this.clone().isub(t)};var w=function(t,r,h){var _,n,g,c=t.words,C=r.words,S=h.words,I=0,V=0|c[0],R=8191&V,H=V>>>13,$=0|c[1],fe=8191&$,ye=$>>>13,ke=0|c[2],Ee=8191&ke,te=ke>>>13,ze=0|c[3],be=8191&ze,Z=ze>>>13,Y=0|c[4],ot=8191&Y,Ie=Y>>>13,Ae=0|c[5],ce=8191&Ae,Te=Ae>>>13,xe=0|c[6],G=8191&xe,ee=xe>>>13,ue=0|c[7],ve=8191&ue,Le=ue>>>13,lt=0|c[8],ht=8191&lt,Tt=lt>>>13,hi=0|c[9],jt=8191&hi,Gt=hi>>>13,di=0|C[0],vt=8191&di,kt=di>>>13,gt=0|C[1],Qe=8191&gt,_t=gt>>>13,ei=0|C[2],Zt=8191&ei,Pe=ei>>>13,De=0|C[3],oe=8191&De,Me=De>>>13,ut=0|C[4],ft=8191&ut,Rt=ut>>>13,et=0|C[5],Re=8191&et,qe=et>>>13,Ze=0|C[6],we=8191&Ze,Fe=Ze>>>13,rt=0|C[7],at=8191&rt,yt=rt>>>13,mi=0|C[8],Xt=8191&mi,Jt=mi>>>13,qi=0|C[9],ui=8191&qi,si=qi>>>13;h.negative=t.negative^r.negative,h.length=19;var en=(I+(_=Math.imul(R,vt))|0)+((8191&(n=(n=Math.imul(R,kt))+Math.imul(H,vt)|0))<<13)|0;I=((g=Math.imul(H,kt))+(n>>>13)|0)+(en>>>26)|0,en&=67108863,_=Math.imul(fe,vt),n=(n=Math.imul(fe,kt))+Math.imul(ye,vt)|0,g=Math.imul(ye,kt);var Ui=(I+(_=_+Math.imul(R,Qe)|0)|0)+((8191&(n=(n=n+Math.imul(R,_t)|0)+Math.imul(H,Qe)|0))<<13)|0;I=((g=g+Math.imul(H,_t)|0)+(n>>>13)|0)+(Ui>>>26)|0,Ui&=67108863,_=Math.imul(Ee,vt),n=(n=Math.imul(Ee,kt))+Math.imul(te,vt)|0,g=Math.imul(te,kt),_=_+Math.imul(fe,Qe)|0,n=(n=n+Math.imul(fe,_t)|0)+Math.imul(ye,Qe)|0,g=g+Math.imul(ye,_t)|0;var Bi=(I+(_=_+Math.imul(R,Zt)|0)|0)+((8191&(n=(n=n+Math.imul(R,Pe)|0)+Math.imul(H,Zt)|0))<<13)|0;I=((g=g+Math.imul(H,Pe)|0)+(n>>>13)|0)+(Bi>>>26)|0,Bi&=67108863,_=Math.imul(be,vt),n=(n=Math.imul(be,kt))+Math.imul(Z,vt)|0,g=Math.imul(Z,kt),_=_+Math.imul(Ee,Qe)|0,n=(n=n+Math.imul(Ee,_t)|0)+Math.imul(te,Qe)|0,g=g+Math.imul(te,_t)|0,_=_+Math.imul(fe,Zt)|0,n=(n=n+Math.imul(fe,Pe)|0)+Math.imul(ye,Zt)|0,g=g+Math.imul(ye,Pe)|0;var Gi=(I+(_=_+Math.imul(R,oe)|0)|0)+((8191&(n=(n=n+Math.imul(R,Me)|0)+Math.imul(H,oe)|0))<<13)|0;I=((g=g+Math.imul(H,Me)|0)+(n>>>13)|0)+(Gi>>>26)|0,Gi&=67108863,_=Math.imul(ot,vt),n=(n=Math.imul(ot,kt))+Math.imul(Ie,vt)|0,g=Math.imul(Ie,kt),_=_+Math.imul(be,Qe)|0,n=(n=n+Math.imul(be,_t)|0)+Math.imul(Z,Qe)|0,g=g+Math.imul(Z,_t)|0,_=_+Math.imul(Ee,Zt)|0,n=(n=n+Math.imul(Ee,Pe)|0)+Math.imul(te,Zt)|0,g=g+Math.imul(te,Pe)|0,_=_+Math.imul(fe,oe)|0,n=(n=n+Math.imul(fe,Me)|0)+Math.imul(ye,oe)|0,g=g+Math.imul(ye,Me)|0;var ct=(I+(_=_+Math.imul(R,ft)|0)|0)+((8191&(n=(n=n+Math.imul(R,Rt)|0)+Math.imul(H,ft)|0))<<13)|0;I=((g=g+Math.imul(H,Rt)|0)+(n>>>13)|0)+(ct>>>26)|0,ct&=67108863,_=Math.imul(ce,vt),n=(n=Math.imul(ce,kt))+Math.imul(Te,vt)|0,g=Math.imul(Te,kt),_=_+Math.imul(ot,Qe)|0,n=(n=n+Math.imul(ot,_t)|0)+Math.imul(Ie,Qe)|0,g=g+Math.imul(Ie,_t)|0,_=_+Math.imul(be,Zt)|0,n=(n=n+Math.imul(be,Pe)|0)+Math.imul(Z,Zt)|0,g=g+Math.imul(Z,Pe)|0,_=_+Math.imul(Ee,oe)|0,n=(n=n+Math.imul(Ee,Me)|0)+Math.imul(te,oe)|0,g=g+Math.imul(te,Me)|0,_=_+Math.imul(fe,ft)|0,n=(n=n+Math.imul(fe,Rt)|0)+Math.imul(ye,ft)|0,g=g+Math.imul(ye,Rt)|0;var Ft=(I+(_=_+Math.imul(R,Re)|0)|0)+((8191&(n=(n=n+Math.imul(R,qe)|0)+Math.imul(H,Re)|0))<<13)|0;I=((g=g+Math.imul(H,qe)|0)+(n>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,_=Math.imul(G,vt),n=(n=Math.imul(G,kt))+Math.imul(ee,vt)|0,g=Math.imul(ee,kt),_=_+Math.imul(ce,Qe)|0,n=(n=n+Math.imul(ce,_t)|0)+Math.imul(Te,Qe)|0,g=g+Math.imul(Te,_t)|0,_=_+Math.imul(ot,Zt)|0,n=(n=n+Math.imul(ot,Pe)|0)+Math.imul(Ie,Zt)|0,g=g+Math.imul(Ie,Pe)|0,_=_+Math.imul(be,oe)|0,n=(n=n+Math.imul(be,Me)|0)+Math.imul(Z,oe)|0,g=g+Math.imul(Z,Me)|0,_=_+Math.imul(Ee,ft)|0,n=(n=n+Math.imul(Ee,Rt)|0)+Math.imul(te,ft)|0,g=g+Math.imul(te,Rt)|0,_=_+Math.imul(fe,Re)|0,n=(n=n+Math.imul(fe,qe)|0)+Math.imul(ye,Re)|0,g=g+Math.imul(ye,qe)|0;var pt=(I+(_=_+Math.imul(R,we)|0)|0)+((8191&(n=(n=n+Math.imul(R,Fe)|0)+Math.imul(H,we)|0))<<13)|0;I=((g=g+Math.imul(H,Fe)|0)+(n>>>13)|0)+(pt>>>26)|0,pt&=67108863,_=Math.imul(ve,vt),n=(n=Math.imul(ve,kt))+Math.imul(Le,vt)|0,g=Math.imul(Le,kt),_=_+Math.imul(G,Qe)|0,n=(n=n+Math.imul(G,_t)|0)+Math.imul(ee,Qe)|0,g=g+Math.imul(ee,_t)|0,_=_+Math.imul(ce,Zt)|0,n=(n=n+Math.imul(ce,Pe)|0)+Math.imul(Te,Zt)|0,g=g+Math.imul(Te,Pe)|0,_=_+Math.imul(ot,oe)|0,n=(n=n+Math.imul(ot,Me)|0)+Math.imul(Ie,oe)|0,g=g+Math.imul(Ie,Me)|0,_=_+Math.imul(be,ft)|0,n=(n=n+Math.imul(be,Rt)|0)+Math.imul(Z,ft)|0,g=g+Math.imul(Z,Rt)|0,_=_+Math.imul(Ee,Re)|0,n=(n=n+Math.imul(Ee,qe)|0)+Math.imul(te,Re)|0,g=g+Math.imul(te,qe)|0,_=_+Math.imul(fe,we)|0,n=(n=n+Math.imul(fe,Fe)|0)+Math.imul(ye,we)|0,g=g+Math.imul(ye,Fe)|0;var it=(I+(_=_+Math.imul(R,at)|0)|0)+((8191&(n=(n=n+Math.imul(R,yt)|0)+Math.imul(H,at)|0))<<13)|0;I=((g=g+Math.imul(H,yt)|0)+(n>>>13)|0)+(it>>>26)|0,it&=67108863,_=Math.imul(ht,vt),n=(n=Math.imul(ht,kt))+Math.imul(Tt,vt)|0,g=Math.imul(Tt,kt),_=_+Math.imul(ve,Qe)|0,n=(n=n+Math.imul(ve,_t)|0)+Math.imul(Le,Qe)|0,g=g+Math.imul(Le,_t)|0,_=_+Math.imul(G,Zt)|0,n=(n=n+Math.imul(G,Pe)|0)+Math.imul(ee,Zt)|0,g=g+Math.imul(ee,Pe)|0,_=_+Math.imul(ce,oe)|0,n=(n=n+Math.imul(ce,Me)|0)+Math.imul(Te,oe)|0,g=g+Math.imul(Te,Me)|0,_=_+Math.imul(ot,ft)|0,n=(n=n+Math.imul(ot,Rt)|0)+Math.imul(Ie,ft)|0,g=g+Math.imul(Ie,Rt)|0,_=_+Math.imul(be,Re)|0,n=(n=n+Math.imul(be,qe)|0)+Math.imul(Z,Re)|0,g=g+Math.imul(Z,qe)|0,_=_+Math.imul(Ee,we)|0,n=(n=n+Math.imul(Ee,Fe)|0)+Math.imul(te,we)|0,g=g+Math.imul(te,Fe)|0,_=_+Math.imul(fe,at)|0,n=(n=n+Math.imul(fe,yt)|0)+Math.imul(ye,at)|0,g=g+Math.imul(ye,yt)|0;var It=(I+(_=_+Math.imul(R,Xt)|0)|0)+((8191&(n=(n=n+Math.imul(R,Jt)|0)+Math.imul(H,Xt)|0))<<13)|0;I=((g=g+Math.imul(H,Jt)|0)+(n>>>13)|0)+(It>>>26)|0,It&=67108863,_=Math.imul(jt,vt),n=(n=Math.imul(jt,kt))+Math.imul(Gt,vt)|0,g=Math.imul(Gt,kt),_=_+Math.imul(ht,Qe)|0,n=(n=n+Math.imul(ht,_t)|0)+Math.imul(Tt,Qe)|0,g=g+Math.imul(Tt,_t)|0,_=_+Math.imul(ve,Zt)|0,n=(n=n+Math.imul(ve,Pe)|0)+Math.imul(Le,Zt)|0,g=g+Math.imul(Le,Pe)|0,_=_+Math.imul(G,oe)|0,n=(n=n+Math.imul(G,Me)|0)+Math.imul(ee,oe)|0,g=g+Math.imul(ee,Me)|0,_=_+Math.imul(ce,ft)|0,n=(n=n+Math.imul(ce,Rt)|0)+Math.imul(Te,ft)|0,g=g+Math.imul(Te,Rt)|0,_=_+Math.imul(ot,Re)|0,n=(n=n+Math.imul(ot,qe)|0)+Math.imul(Ie,Re)|0,g=g+Math.imul(Ie,qe)|0,_=_+Math.imul(be,we)|0,n=(n=n+Math.imul(be,Fe)|0)+Math.imul(Z,we)|0,g=g+Math.imul(Z,Fe)|0,_=_+Math.imul(Ee,at)|0,n=(n=n+Math.imul(Ee,yt)|0)+Math.imul(te,at)|0,g=g+Math.imul(te,yt)|0,_=_+Math.imul(fe,Xt)|0,n=(n=n+Math.imul(fe,Jt)|0)+Math.imul(ye,Xt)|0,g=g+Math.imul(ye,Jt)|0;var de=(I+(_=_+Math.imul(R,ui)|0)|0)+((8191&(n=(n=n+Math.imul(R,si)|0)+Math.imul(H,ui)|0))<<13)|0;I=((g=g+Math.imul(H,si)|0)+(n>>>13)|0)+(de>>>26)|0,de&=67108863,_=Math.imul(jt,Qe),n=(n=Math.imul(jt,_t))+Math.imul(Gt,Qe)|0,g=Math.imul(Gt,_t),_=_+Math.imul(ht,Zt)|0,n=(n=n+Math.imul(ht,Pe)|0)+Math.imul(Tt,Zt)|0,g=g+Math.imul(Tt,Pe)|0,_=_+Math.imul(ve,oe)|0,n=(n=n+Math.imul(ve,Me)|0)+Math.imul(Le,oe)|0,g=g+Math.imul(Le,Me)|0,_=_+Math.imul(G,ft)|0,n=(n=n+Math.imul(G,Rt)|0)+Math.imul(ee,ft)|0,g=g+Math.imul(ee,Rt)|0,_=_+Math.imul(ce,Re)|0,n=(n=n+Math.imul(ce,qe)|0)+Math.imul(Te,Re)|0,g=g+Math.imul(Te,qe)|0,_=_+Math.imul(ot,we)|0,n=(n=n+Math.imul(ot,Fe)|0)+Math.imul(Ie,we)|0,g=g+Math.imul(Ie,Fe)|0,_=_+Math.imul(be,at)|0,n=(n=n+Math.imul(be,yt)|0)+Math.imul(Z,at)|0,g=g+Math.imul(Z,yt)|0,_=_+Math.imul(Ee,Xt)|0,n=(n=n+Math.imul(Ee,Jt)|0)+Math.imul(te,Xt)|0,g=g+Math.imul(te,Jt)|0;var $e=(I+(_=_+Math.imul(fe,ui)|0)|0)+((8191&(n=(n=n+Math.imul(fe,si)|0)+Math.imul(ye,ui)|0))<<13)|0;I=((g=g+Math.imul(ye,si)|0)+(n>>>13)|0)+($e>>>26)|0,$e&=67108863,_=Math.imul(jt,Zt),n=(n=Math.imul(jt,Pe))+Math.imul(Gt,Zt)|0,g=Math.imul(Gt,Pe),_=_+Math.imul(ht,oe)|0,n=(n=n+Math.imul(ht,Me)|0)+Math.imul(Tt,oe)|0,g=g+Math.imul(Tt,Me)|0,_=_+Math.imul(ve,ft)|0,n=(n=n+Math.imul(ve,Rt)|0)+Math.imul(Le,ft)|0,g=g+Math.imul(Le,Rt)|0,_=_+Math.imul(G,Re)|0,n=(n=n+Math.imul(G,qe)|0)+Math.imul(ee,Re)|0,g=g+Math.imul(ee,qe)|0,_=_+Math.imul(ce,we)|0,n=(n=n+Math.imul(ce,Fe)|0)+Math.imul(Te,we)|0,g=g+Math.imul(Te,Fe)|0,_=_+Math.imul(ot,at)|0,n=(n=n+Math.imul(ot,yt)|0)+Math.imul(Ie,at)|0,g=g+Math.imul(Ie,yt)|0,_=_+Math.imul(be,Xt)|0,n=(n=n+Math.imul(be,Jt)|0)+Math.imul(Z,Xt)|0,g=g+Math.imul(Z,Jt)|0;var bt=(I+(_=_+Math.imul(Ee,ui)|0)|0)+((8191&(n=(n=n+Math.imul(Ee,si)|0)+Math.imul(te,ui)|0))<<13)|0;I=((g=g+Math.imul(te,si)|0)+(n>>>13)|0)+(bt>>>26)|0,bt&=67108863,_=Math.imul(jt,oe),n=(n=Math.imul(jt,Me))+Math.imul(Gt,oe)|0,g=Math.imul(Gt,Me),_=_+Math.imul(ht,ft)|0,n=(n=n+Math.imul(ht,Rt)|0)+Math.imul(Tt,ft)|0,g=g+Math.imul(Tt,Rt)|0,_=_+Math.imul(ve,Re)|0,n=(n=n+Math.imul(ve,qe)|0)+Math.imul(Le,Re)|0,g=g+Math.imul(Le,qe)|0,_=_+Math.imul(G,we)|0,n=(n=n+Math.imul(G,Fe)|0)+Math.imul(ee,we)|0,g=g+Math.imul(ee,Fe)|0,_=_+Math.imul(ce,at)|0,n=(n=n+Math.imul(ce,yt)|0)+Math.imul(Te,at)|0,g=g+Math.imul(Te,yt)|0,_=_+Math.imul(ot,Xt)|0,n=(n=n+Math.imul(ot,Jt)|0)+Math.imul(Ie,Xt)|0,g=g+Math.imul(Ie,Jt)|0;var Vt=(I+(_=_+Math.imul(be,ui)|0)|0)+((8191&(n=(n=n+Math.imul(be,si)|0)+Math.imul(Z,ui)|0))<<13)|0;I=((g=g+Math.imul(Z,si)|0)+(n>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,_=Math.imul(jt,ft),n=(n=Math.imul(jt,Rt))+Math.imul(Gt,ft)|0,g=Math.imul(Gt,Rt),_=_+Math.imul(ht,Re)|0,n=(n=n+Math.imul(ht,qe)|0)+Math.imul(Tt,Re)|0,g=g+Math.imul(Tt,qe)|0,_=_+Math.imul(ve,we)|0,n=(n=n+Math.imul(ve,Fe)|0)+Math.imul(Le,we)|0,g=g+Math.imul(Le,Fe)|0,_=_+Math.imul(G,at)|0,n=(n=n+Math.imul(G,yt)|0)+Math.imul(ee,at)|0,g=g+Math.imul(ee,yt)|0,_=_+Math.imul(ce,Xt)|0,n=(n=n+Math.imul(ce,Jt)|0)+Math.imul(Te,Xt)|0,g=g+Math.imul(Te,Jt)|0;var bi=(I+(_=_+Math.imul(ot,ui)|0)|0)+((8191&(n=(n=n+Math.imul(ot,si)|0)+Math.imul(Ie,ui)|0))<<13)|0;I=((g=g+Math.imul(Ie,si)|0)+(n>>>13)|0)+(bi>>>26)|0,bi&=67108863,_=Math.imul(jt,Re),n=(n=Math.imul(jt,qe))+Math.imul(Gt,Re)|0,g=Math.imul(Gt,qe),_=_+Math.imul(ht,we)|0,n=(n=n+Math.imul(ht,Fe)|0)+Math.imul(Tt,we)|0,g=g+Math.imul(Tt,Fe)|0,_=_+Math.imul(ve,at)|0,n=(n=n+Math.imul(ve,yt)|0)+Math.imul(Le,at)|0,g=g+Math.imul(Le,yt)|0,_=_+Math.imul(G,Xt)|0,n=(n=n+Math.imul(G,Jt)|0)+Math.imul(ee,Xt)|0,g=g+Math.imul(ee,Jt)|0;var Li=(I+(_=_+Math.imul(ce,ui)|0)|0)+((8191&(n=(n=n+Math.imul(ce,si)|0)+Math.imul(Te,ui)|0))<<13)|0;I=((g=g+Math.imul(Te,si)|0)+(n>>>13)|0)+(Li>>>26)|0,Li&=67108863,_=Math.imul(jt,we),n=(n=Math.imul(jt,Fe))+Math.imul(Gt,we)|0,g=Math.imul(Gt,Fe),_=_+Math.imul(ht,at)|0,n=(n=n+Math.imul(ht,yt)|0)+Math.imul(Tt,at)|0,g=g+Math.imul(Tt,yt)|0,_=_+Math.imul(ve,Xt)|0,n=(n=n+Math.imul(ve,Jt)|0)+Math.imul(Le,Xt)|0,g=g+Math.imul(Le,Jt)|0;var Ji=(I+(_=_+Math.imul(G,ui)|0)|0)+((8191&(n=(n=n+Math.imul(G,si)|0)+Math.imul(ee,ui)|0))<<13)|0;I=((g=g+Math.imul(ee,si)|0)+(n>>>13)|0)+(Ji>>>26)|0,Ji&=67108863,_=Math.imul(jt,at),n=(n=Math.imul(jt,yt))+Math.imul(Gt,at)|0,g=Math.imul(Gt,yt),_=_+Math.imul(ht,Xt)|0,n=(n=n+Math.imul(ht,Jt)|0)+Math.imul(Tt,Xt)|0,g=g+Math.imul(Tt,Jt)|0;var Wi=(I+(_=_+Math.imul(ve,ui)|0)|0)+((8191&(n=(n=n+Math.imul(ve,si)|0)+Math.imul(Le,ui)|0))<<13)|0;I=((g=g+Math.imul(Le,si)|0)+(n>>>13)|0)+(Wi>>>26)|0,Wi&=67108863,_=Math.imul(jt,Xt),n=(n=Math.imul(jt,Jt))+Math.imul(Gt,Xt)|0,g=Math.imul(Gt,Jt);var sn=(I+(_=_+Math.imul(ht,ui)|0)|0)+((8191&(n=(n=n+Math.imul(ht,si)|0)+Math.imul(Tt,ui)|0))<<13)|0;I=((g=g+Math.imul(Tt,si)|0)+(n>>>13)|0)+(sn>>>26)|0,sn&=67108863;var mn=(I+(_=Math.imul(jt,ui))|0)+((8191&(n=(n=Math.imul(jt,si))+Math.imul(Gt,ui)|0))<<13)|0;return I=((g=Math.imul(Gt,si))+(n>>>13)|0)+(mn>>>26)|0,mn&=67108863,S[0]=en,S[1]=Ui,S[2]=Bi,S[3]=Gi,S[4]=ct,S[5]=Ft,S[6]=pt,S[7]=it,S[8]=It,S[9]=de,S[10]=$e,S[11]=bt,S[12]=Vt,S[13]=bi,S[14]=Li,S[15]=Ji,S[16]=Wi,S[17]=sn,S[18]=mn,0!==I&&(S[19]=I,h.length++),h};function U(x,t,r){return(new W).mulp(x,t,r)}function W(x,t){this.x=x,this.y=t}Math.imul||(w=k),a.prototype.mulTo=function(t,r){var h,c=this.length+t.length;return h=10===this.length&&10===t.length?w(this,t,r):c<63?k(this,t,r):c<1024?function z(x,t,r){r.negative=t.negative^x.negative,r.length=x.length+t.length;for(var h=0,c=0,C=0;C<r.length-1;C++){var S=c;c=0;for(var I=67108863&h,_=Math.min(C,t.length-1),n=Math.max(0,C-x.length+1);n<=_;n++){var H=(0|x.words[C-n])*(0|t.words[n]),$=67108863&H;I=67108863&($=$+I|0),c+=(S=(S=S+(H/67108864|0)|0)+($>>>26)|0)>>>26,S&=67108863}r.words[C]=I,h=S,S=c}return 0!==h?r.words[C]=h:r.length--,r.strip()}(this,t,r):U(this,t,r),h},W.prototype.makeRBT=function(t){for(var r=new Array(t),h=a.prototype._countBits(t)-1,c=0;c<t;c++)r[c]=this.revBin(c,h,t);return r},W.prototype.revBin=function(t,r,h){if(0===t||t===h-1)return t;for(var c=0,C=0;C<r;C++)c|=(1&t)<<r-C-1,t>>=1;return c},W.prototype.permute=function(t,r,h,c,C,S){for(var I=0;I<S;I++)c[I]=r[t[I]],C[I]=h[t[I]]},W.prototype.transform=function(t,r,h,c,C,S){this.permute(S,t,r,h,c,C);for(var I=1;I<C;I<<=1)for(var _=I<<1,n=Math.cos(2*Math.PI/_),g=Math.sin(2*Math.PI/_),V=0;V<C;V+=_)for(var R=n,H=g,$=0;$<I;$++){var fe=h[V+$],ye=c[V+$],ke=h[V+$+I],Ee=c[V+$+I],te=R*ke-H*Ee;Ee=R*Ee+H*ke,h[V+$]=fe+(ke=te),c[V+$]=ye+Ee,h[V+$+I]=fe-ke,c[V+$+I]=ye-Ee,$!==_&&(te=n*R-g*H,H=n*H+g*R,R=te)}},W.prototype.guessLen13b=function(t,r){var h=1|Math.max(r,t),c=1&h,C=0;for(h=h/2|0;h;h>>>=1)C++;return 1<<C+1+c},W.prototype.conjugate=function(t,r,h){if(!(h<=1))for(var c=0;c<h/2;c++){var C=t[c];t[c]=t[h-c-1],t[h-c-1]=C,C=r[c],r[c]=-r[h-c-1],r[h-c-1]=-C}},W.prototype.normalize13b=function(t,r){for(var h=0,c=0;c<r/2;c++){var C=8192*Math.round(t[2*c+1]/r)+Math.round(t[2*c]/r)+h;t[c]=67108863&C,h=C<67108864?0:C/67108864|0}return t},W.prototype.convert13b=function(t,r,h,c){for(var C=0,S=0;S<r;S++)h[2*S]=8191&(C+=0|t[S]),h[2*S+1]=8191&(C>>>=13),C>>>=13;for(S=2*r;S<c;++S)h[S]=0;u(0===C),u(0==(-8192&C))},W.prototype.stub=function(t){for(var r=new Array(t),h=0;h<t;h++)r[h]=0;return r},W.prototype.mulp=function(t,r,h){var c=2*this.guessLen13b(t.length,r.length),C=this.makeRBT(c),S=this.stub(c),I=new Array(c),_=new Array(c),n=new Array(c),g=new Array(c),V=new Array(c),R=new Array(c),H=h.words;H.length=c,this.convert13b(t.words,t.length,I,c),this.convert13b(r.words,r.length,g,c),this.transform(I,S,_,n,c,C),this.transform(g,S,V,R,c,C);for(var $=0;$<c;$++){var fe=_[$]*V[$]-n[$]*R[$];n[$]=_[$]*R[$]+n[$]*V[$],_[$]=fe}return this.conjugate(_,n,c),this.transform(_,n,H,S,c,C),this.conjugate(H,S,c),this.normalize13b(H,c),h.negative=t.negative^r.negative,h.length=t.length+r.length,h.strip()},a.prototype.mul=function(t){var r=new a(null);return r.words=new Array(this.length+t.length),this.mulTo(t,r)},a.prototype.mulf=function(t){var r=new a(null);return r.words=new Array(this.length+t.length),U(this,t,r)},a.prototype.imul=function(t){return this.clone().mulTo(t,this)},a.prototype.imuln=function(t){u("number"==typeof t),u(t<67108864);for(var r=0,h=0;h<this.length;h++){var c=(0|this.words[h])*t,C=(67108863&c)+(67108863&r);r>>=26,r+=c/67108864|0,r+=C>>>26,this.words[h]=67108863&C}return 0!==r&&(this.words[h]=r,this.length++),this},a.prototype.muln=function(t){return this.clone().imuln(t)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(t){var r=function E(x){for(var t=new Array(x.bitLength()),r=0;r<t.length;r++){var c=r%26;t[r]=(x.words[r/26|0]&1<<c)>>>c}return t}(t);if(0===r.length)return new a(1);for(var h=this,c=0;c<r.length&&0===r[c];c++,h=h.sqr());if(++c<r.length)for(var C=h.sqr();c<r.length;c++,C=C.sqr())0!==r[c]&&(h=h.mul(C));return h},a.prototype.iushln=function(t){u("number"==typeof t&&t>=0);var C,r=t%26,h=(t-r)/26,c=67108863>>>26-r<<26-r;if(0!==r){var S=0;for(C=0;C<this.length;C++){var I=this.words[C]&c;this.words[C]=(0|this.words[C])-I<<r|S,S=I>>>26-r}S&&(this.words[C]=S,this.length++)}if(0!==h){for(C=this.length-1;C>=0;C--)this.words[C+h]=this.words[C];for(C=0;C<h;C++)this.words[C]=0;this.length+=h}return this.strip()},a.prototype.ishln=function(t){return u(0===this.negative),this.iushln(t)},a.prototype.iushrn=function(t,r,h){var c;u("number"==typeof t&&t>=0),c=r?(r-r%26)/26:0;var C=t%26,S=Math.min((t-C)/26,this.length),I=67108863^67108863>>>C<<C,_=h;if(c-=S,c=Math.max(0,c),_){for(var n=0;n<S;n++)_.words[n]=this.words[n];_.length=S}if(0!==S)if(this.length>S)for(this.length-=S,n=0;n<this.length;n++)this.words[n]=this.words[n+S];else this.words[0]=0,this.length=1;var g=0;for(n=this.length-1;n>=0&&(0!==g||n>=c);n--){var V=0|this.words[n];this.words[n]=g<<26-C|V>>>C,g=V&I}return _&&0!==g&&(_.words[_.length++]=g),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(t,r,h){return u(0===this.negative),this.iushrn(t,r,h)},a.prototype.shln=function(t){return this.clone().ishln(t)},a.prototype.ushln=function(t){return this.clone().iushln(t)},a.prototype.shrn=function(t){return this.clone().ishrn(t)},a.prototype.ushrn=function(t){return this.clone().iushrn(t)},a.prototype.testn=function(t){u("number"==typeof t&&t>=0);var r=t%26,h=(t-r)/26;return!(this.length<=h||!(this.words[h]&1<<r))},a.prototype.imaskn=function(t){u("number"==typeof t&&t>=0);var r=t%26,h=(t-r)/26;return u(0===this.negative,"imaskn works only with positive numbers"),this.length<=h?this:(0!==r&&h++,this.length=Math.min(h,this.length),0!==r&&(this.words[this.length-1]&=67108863^67108863>>>r<<r),this.strip())},a.prototype.maskn=function(t){return this.clone().imaskn(t)},a.prototype.iaddn=function(t){return u("number"==typeof t),u(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},a.prototype._iaddn=function(t){this.words[0]+=t;for(var r=0;r<this.length&&this.words[r]>=67108864;r++)this.words[r]-=67108864,r===this.length-1?this.words[r+1]=1:this.words[r+1]++;return this.length=Math.max(this.length,r+1),this},a.prototype.isubn=function(t){if(u("number"==typeof t),u(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r<this.length&&this.words[r]<0;r++)this.words[r]+=67108864,this.words[r+1]-=1;return this.strip()},a.prototype.addn=function(t){return this.clone().iaddn(t)},a.prototype.subn=function(t){return this.clone().isubn(t)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(t,r,h){var C;this._expand(t.length+h);var S,I=0;for(C=0;C<t.length;C++){S=(0|this.words[C+h])+I;var _=(0|t.words[C])*r;I=((S-=67108863&_)>>26)-(_/67108864|0),this.words[C+h]=67108863&S}for(;C<this.length-h;C++)I=(S=(0|this.words[C+h])+I)>>26,this.words[C+h]=67108863&S;if(0===I)return this.strip();for(u(-1===I),I=0,C=0;C<this.length;C++)I=(S=-(0|this.words[C])+I)>>26,this.words[C]=67108863&S;return this.negative=1,this.strip()},a.prototype._wordDiv=function(t,r){var h,c=this.clone(),C=t,S=0|C.words[C.length-1];0!=(h=26-this._countBits(S))&&(C=C.ushln(h),c.iushln(h),S=0|C.words[C.length-1]);var n,_=c.length-C.length;if("mod"!==r){(n=new a(null)).length=_+1,n.words=new Array(n.length);for(var g=0;g<n.length;g++)n.words[g]=0}var V=c.clone()._ishlnsubmul(C,1,_);0===V.negative&&(c=V,n&&(n.words[_]=1));for(var R=_-1;R>=0;R--){var H=67108864*(0|c.words[C.length+R])+(0|c.words[C.length+R-1]);for(H=Math.min(H/S|0,67108863),c._ishlnsubmul(C,H,R);0!==c.negative;)H--,c.negative=0,c._ishlnsubmul(C,1,R),c.isZero()||(c.negative^=1);n&&(n.words[R]=H)}return n&&n.strip(),c.strip(),"div"!==r&&0!==h&&c.iushrn(h),{div:n||null,mod:c}},a.prototype.divmod=function(t,r,h){return u(!t.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===t.negative?(S=this.neg().divmod(t,r),"mod"!==r&&(c=S.div.neg()),"div"!==r&&(C=S.mod.neg(),h&&0!==C.negative&&C.iadd(t)),{div:c,mod:C}):0===this.negative&&0!==t.negative?(S=this.divmod(t.neg(),r),"mod"!==r&&(c=S.div.neg()),{div:c,mod:S.mod}):0!=(this.negative&t.negative)?(S=this.neg().divmod(t.neg(),r),"div"!==r&&(C=S.mod.neg(),h&&0!==C.negative&&C.isub(t)),{div:S.div,mod:C}):t.length>this.length||this.cmp(t)<0?{div:new a(0),mod:this}:1===t.length?"div"===r?{div:this.divn(t.words[0]),mod:null}:"mod"===r?{div:null,mod:new a(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new a(this.modn(t.words[0]))}:this._wordDiv(t,r);var c,C,S},a.prototype.div=function(t){return this.divmod(t,"div",!1).div},a.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},a.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},a.prototype.divRound=function(t){var r=this.divmod(t);if(r.mod.isZero())return r.div;var h=0!==r.div.negative?r.mod.isub(t):r.mod,c=t.ushrn(1),C=t.andln(1),S=h.cmp(c);return S<0||1===C&&0===S?r.div:0!==r.div.negative?r.div.isubn(1):r.div.iaddn(1)},a.prototype.modn=function(t){u(t<=67108863);for(var r=(1<<26)%t,h=0,c=this.length-1;c>=0;c--)h=(r*h+(0|this.words[c]))%t;return h},a.prototype.idivn=function(t){u(t<=67108863);for(var r=0,h=this.length-1;h>=0;h--){var c=(0|this.words[h])+67108864*r;this.words[h]=c/t|0,r=c%t}return this.strip()},a.prototype.divn=function(t){return this.clone().idivn(t)},a.prototype.egcd=function(t){u(0===t.negative),u(!t.isZero());var r=this,h=t.clone();r=0!==r.negative?r.umod(t):r.clone();for(var c=new a(1),C=new a(0),S=new a(0),I=new a(1),_=0;r.isEven()&&h.isEven();)r.iushrn(1),h.iushrn(1),++_;for(var n=h.clone(),g=r.clone();!r.isZero();){for(var V=0,R=1;0==(r.words[0]&R)&&V<26;++V,R<<=1);if(V>0)for(r.iushrn(V);V-- >0;)(c.isOdd()||C.isOdd())&&(c.iadd(n),C.isub(g)),c.iushrn(1),C.iushrn(1);for(var H=0,$=1;0==(h.words[0]&$)&&H<26;++H,$<<=1);if(H>0)for(h.iushrn(H);H-- >0;)(S.isOdd()||I.isOdd())&&(S.iadd(n),I.isub(g)),S.iushrn(1),I.iushrn(1);r.cmp(h)>=0?(r.isub(h),c.isub(S),C.isub(I)):(h.isub(r),S.isub(c),I.isub(C))}return{a:S,b:I,gcd:h.iushln(_)}},a.prototype._invmp=function(t){u(0===t.negative),u(!t.isZero());var V,r=this,h=t.clone();r=0!==r.negative?r.umod(t):r.clone();for(var c=new a(1),C=new a(0),S=h.clone();r.cmpn(1)>0&&h.cmpn(1)>0;){for(var I=0,_=1;0==(r.words[0]&_)&&I<26;++I,_<<=1);if(I>0)for(r.iushrn(I);I-- >0;)c.isOdd()&&c.iadd(S),c.iushrn(1);for(var n=0,g=1;0==(h.words[0]&g)&&n<26;++n,g<<=1);if(n>0)for(h.iushrn(n);n-- >0;)C.isOdd()&&C.iadd(S),C.iushrn(1);r.cmp(h)>=0?(r.isub(h),c.isub(C)):(h.isub(r),C.isub(c))}return(V=0===r.cmpn(1)?c:C).cmpn(0)<0&&V.iadd(t),V},a.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var r=this.clone(),h=t.clone();r.negative=0,h.negative=0;for(var c=0;r.isEven()&&h.isEven();c++)r.iushrn(1),h.iushrn(1);for(;;){for(;r.isEven();)r.iushrn(1);for(;h.isEven();)h.iushrn(1);var C=r.cmp(h);if(C<0){var S=r;r=h,h=S}else if(0===C||0===h.cmpn(1))break;r.isub(h)}return h.iushln(c)},a.prototype.invm=function(t){return this.egcd(t).a.umod(t)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(t){return this.words[0]&t},a.prototype.bincn=function(t){u("number"==typeof t);var r=t%26,h=(t-r)/26,c=1<<r;if(this.length<=h)return this._expand(h+1),this.words[h]|=c,this;for(var C=c,S=h;0!==C&&S<this.length;S++){var I=0|this.words[S];C=(I+=C)>>>26,this.words[S]=I&=67108863}return 0!==C&&(this.words[S]=C,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(t){var h,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)h=1;else{r&&(t=-t),u(t<=67108863,"Number is too big");var c=0|this.words[0];h=c===t?0:c<t?-1:1}return 0!==this.negative?0|-h:h},a.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var r=this.ucmp(t);return 0!==this.negative?0|-r:r},a.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var r=0,h=this.length-1;h>=0;h--){var c=0|this.words[h],C=0|t.words[h];if(c!==C){c<C?r=-1:c>C&&(r=1);break}}return r},a.prototype.gtn=function(t){return 1===this.cmpn(t)},a.prototype.gt=function(t){return 1===this.cmp(t)},a.prototype.gten=function(t){return this.cmpn(t)>=0},a.prototype.gte=function(t){return this.cmp(t)>=0},a.prototype.ltn=function(t){return-1===this.cmpn(t)},a.prototype.lt=function(t){return-1===this.cmp(t)},a.prototype.lten=function(t){return this.cmpn(t)<=0},a.prototype.lte=function(t){return this.cmp(t)<=0},a.prototype.eqn=function(t){return 0===this.cmpn(t)},a.prototype.eq=function(t){return 0===this.cmp(t)},a.red=function(t){return new J(t)},a.prototype.toRed=function(t){return u(!this.red,"Already a number in reduction context"),u(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},a.prototype.fromRed=function(){return u(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(t){return this.red=t,this},a.prototype.forceRed=function(t){return u(!this.red,"Already a number in reduction context"),this._forceRed(t)},a.prototype.redAdd=function(t){return u(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},a.prototype.redIAdd=function(t){return u(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},a.prototype.redSub=function(t){return u(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},a.prototype.redISub=function(t){return u(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},a.prototype.redShl=function(t){return u(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},a.prototype.redMul=function(t){return u(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},a.prototype.redIMul=function(t){return u(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},a.prototype.redSqr=function(){return u(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return u(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return u(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return u(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return u(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(t){return u(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var ne={k256:null,p224:null,p192:null,p25519:null};function Q(x,t){this.name=x,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function le(){Q.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function q(){Q.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ie(){Q.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function se(){Q.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function J(x){if("string"==typeof x){var t=a._prime(x);this.m=t.p,this.prime=t}else u(x.gtn(1),"modulus must be greater than 1"),this.m=x,this.prime=null}function me(x){J.call(this,x),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(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)}Q.prototype._tmp=function(){var t=new a(null);return t.words=new Array(Math.ceil(this.n/13)),t},Q.prototype.ireduce=function(t){var h,r=t;do{this.split(r,this.tmp),h=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(h>this.n);var c=h<this.n?-1:r.ucmp(this.p);return 0===c?(r.words[0]=0,r.length=1):c>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},Q.prototype.split=function(t,r){t.iushrn(this.n,0,r)},Q.prototype.imulK=function(t){return t.imul(this.k)},b(le,Q),le.prototype.split=function(t,r){for(var h=4194303,c=Math.min(t.length,9),C=0;C<c;C++)r.words[C]=t.words[C];if(r.length=c,t.length<=9)return t.words[0]=0,void(t.length=1);var S=t.words[9];for(r.words[r.length++]=S&h,C=10;C<t.length;C++){var I=0|t.words[C];t.words[C-10]=(I&h)<<4|S>>>22,S=I}t.words[C-10]=S>>>=22,t.length-=0===S&&t.length>10?10:9},le.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var r=0,h=0;h<t.length;h++){var c=0|t.words[h];t.words[h]=67108863&(r+=977*c),r=64*c+(r/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},b(q,Q),b(ie,Q),b(se,Q),se.prototype.imulK=function(t){for(var r=0,h=0;h<t.length;h++){var c=19*(0|t.words[h])+r,C=67108863&c;c>>>=26,t.words[h]=C,r=c}return 0!==r&&(t.words[t.length++]=r),t},a._prime=function(t){if(ne[t])return ne[t];var r;if("k256"===t)r=new le;else if("p224"===t)r=new q;else if("p192"===t)r=new ie;else{if("p25519"!==t)throw new Error("Unknown prime "+t);r=new se}return ne[t]=r,r},J.prototype._verify1=function(t){u(0===t.negative,"red works only with positives"),u(t.red,"red works only with red numbers")},J.prototype._verify2=function(t,r){u(0==(t.negative|r.negative),"red works only with positives"),u(t.red&&t.red===r.red,"red works only with red numbers")},J.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},J.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},J.prototype.add=function(t,r){this._verify2(t,r);var h=t.add(r);return h.cmp(this.m)>=0&&h.isub(this.m),h._forceRed(this)},J.prototype.iadd=function(t,r){this._verify2(t,r);var h=t.iadd(r);return h.cmp(this.m)>=0&&h.isub(this.m),h},J.prototype.sub=function(t,r){this._verify2(t,r);var h=t.sub(r);return h.cmpn(0)<0&&h.iadd(this.m),h._forceRed(this)},J.prototype.isub=function(t,r){this._verify2(t,r);var h=t.isub(r);return h.cmpn(0)<0&&h.iadd(this.m),h},J.prototype.shl=function(t,r){return this._verify1(t),this.imod(t.ushln(r))},J.prototype.imul=function(t,r){return this._verify2(t,r),this.imod(t.imul(r))},J.prototype.mul=function(t,r){return this._verify2(t,r),this.imod(t.mul(r))},J.prototype.isqr=function(t){return this.imul(t,t.clone())},J.prototype.sqr=function(t){return this.mul(t,t)},J.prototype.sqrt=function(t){if(t.isZero())return t.clone();var r=this.m.andln(3);if(u(r%2==1),3===r){var h=this.m.add(new a(1)).iushrn(2);return this.pow(t,h)}for(var c=this.m.subn(1),C=0;!c.isZero()&&0===c.andln(1);)C++,c.iushrn(1);u(!c.isZero());var S=new a(1).toRed(this),I=S.redNeg(),_=this.m.subn(1).iushrn(1),n=this.m.bitLength();for(n=new a(2*n*n).toRed(this);0!==this.pow(n,_).cmp(I);)n.redIAdd(I);for(var g=this.pow(n,c),V=this.pow(t,c.addn(1).iushrn(1)),R=this.pow(t,c),H=C;0!==R.cmp(S);){for(var $=R,fe=0;0!==$.cmp(S);fe++)$=$.redSqr();u(fe<H);var ye=this.pow(g,new a(1).iushln(H-fe-1));V=V.redMul(ye),g=ye.redSqr(),R=R.redMul(g),H=fe}return V},J.prototype.invm=function(t){var r=t._invmp(this.m);return 0!==r.negative?(r.negative=0,this.imod(r).redNeg()):this.imod(r)},J.prototype.pow=function(t,r){if(r.isZero())return new a(1).toRed(this);if(0===r.cmpn(1))return t.clone();var c=new Array(16);c[0]=new a(1).toRed(this),c[1]=t;for(var C=2;C<c.length;C++)c[C]=this.mul(c[C-1],t);var S=c[0],I=0,_=0,n=r.bitLength()%26;for(0===n&&(n=26),C=r.length-1;C>=0;C--){for(var g=r.words[C],V=n-1;V>=0;V--){var R=g>>V&1;S!==c[0]&&(S=this.sqr(S)),0!==R||0!==I?(I<<=1,I|=R,(4==++_||0===C&&0===V)&&(S=this.mul(S,c[I]),_=0,I=0)):_=0}n=26}return S},J.prototype.convertTo=function(t){var r=t.umod(this.m);return r===t?r.clone():r},J.prototype.convertFrom=function(t){var r=t.clone();return r.red=null,r},a.mont=function(t){return new me(t)},b(me,J),me.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},me.prototype.convertFrom=function(t){var r=this.imod(t.mul(this.rinv));return r.red=null,r},me.prototype.imul=function(t,r){if(t.isZero()||r.isZero())return t.words[0]=0,t.length=1,t;var h=t.imul(r),c=h.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),C=h.isub(c).iushrn(this.shift),S=C;return C.cmp(this.m)>=0?S=C.isub(this.m):C.cmpn(0)<0&&(S=C.iadd(this.m)),S._forceRed(this)},me.prototype.mul=function(t,r){if(t.isZero()||r.isZero())return new a(0)._forceRed(this);var h=t.mul(r),c=h.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),C=h.isub(c).iushrn(this.shift),S=C;return C.cmp(this.m)>=0?S=C.isub(this.m):C.cmpn(0)<0&&(S=C.iadd(this.m)),S._forceRed(this)},me.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(He=p.nmd(He),this)},2391:He=>{function j(p,e){if(!p)throw new Error(e||"Assertion failed")}He.exports=j,j.equal=function(e,i,u){if(e!=i)throw new Error(u||"Assertion failed: "+e+" != "+i)}},8195:(He,j)=>{"use strict";var p=j;function i(b){return 1===b.length?"0"+b:b}function u(b){for(var a="",y=0;y<b.length;y++)a+=i(b[y].toString(16));return a}p.toArray=function e(b,a){if(Array.isArray(b))return b.slice();if(!b)return[];var y=[];if("string"!=typeof b){for(var d=0;d<b.length;d++)y[d]=0|b[d];return y}if("hex"===a)for((b=b.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(b="0"+b),d=0;d<b.length;d+=2)y.push(parseInt(b[d]+b[d+1],16));else for(d=0;d<b.length;d++){var P=b.charCodeAt(d),D=P>>8,T=255&P;D?y.push(D,T):y.push(T)}return y},p.zero2=i,p.toHex=u,p.encode=function(a,y){return"hex"===y?u(a):a}},5768:(He,j,p)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0});var e=p(842);Object.keys(e).forEach(function(i){"default"!==i&&Object.defineProperty(j,i,{enumerable:!0,get:function(){return e[i]}})})},2999:(He,j,p)=>{"use strict";var e=p(7977);j.certificate=p(2390);var i=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())});j.RSAPrivateKey=i;var u=e.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});j.RSAPublicKey=u;var b=e.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())});j.PublicKey=b;var a=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())}),y=e.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(a),this.key("subjectPrivateKey").octstr())});j.PrivateKey=y;var d=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())});j.EncryptedPrivateKey=d;var P=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())});j.DSAPrivateKey=P,j.DSAparam=e.define("DSAparam",function(){this.int()});var D=e.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(T),this.key("publicKey").optional().explicit(1).bitstr())});j.ECPrivateKey=D;var T=e.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});j.signature=e.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},2390:(He,j,p)=>{"use strict";var e=p(7977),i=e.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),u=e.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),b=e.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),a=e.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(b),this.key("subjectPublicKey").bitstr())}),y=e.define("RelativeDistinguishedName",function(){this.setof(u)}),d=e.define("RDNSequence",function(){this.seqof(y)}),P=e.define("Name",function(){this.choice({rdnSequence:this.use(d)})}),D=e.define("Validity",function(){this.seq().obj(this.key("notBefore").use(i),this.key("notAfter").use(i))}),T=e.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),M=e.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(b),this.key("issuer").use(P),this.key("validity").use(D),this.key("subject").use(P),this.key("subjectPublicKeyInfo").use(a),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(T).optional())}),A=e.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(M),this.key("signatureAlgorithm").use(b),this.key("signatureValue").bitstr())});He.exports=A},5269:(He,j,p)=>{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,i=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,u=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,b=p(347),a=p(4330),y=p(3502).Buffer;He.exports=function(d,P){var M,D=d.toString(),T=D.match(e);if(T){var E="aes"+T[1],k=y.from(T[2],"hex"),w=y.from(T[3].replace(/[\r\n]/g,""),"base64"),z=b(P,k.slice(0,8),parseInt(T[1],10)).key,U=[],W=a.createDecipheriv(E,z,k);U.push(W.update(w)),U.push(W.final()),M=y.concat(U)}else{var A=D.match(u);M=y.from(A[2].replace(/[\r\n]/g,""),"base64")}return{tag:D.match(i)[1],data:M}}},2772:(He,j,p)=>{var e=p(2999),i=p(2562),u=p(5269),b=p(4330),a=p(9357),y=p(3502).Buffer;function d(D){var T;"object"==typeof D&&!y.isBuffer(D)&&(T=D.passphrase,D=D.key),"string"==typeof D&&(D=y.from(D));var k,w,M=u(D,T),A=M.tag,E=M.data;switch(A){case"CERTIFICATE":w=e.certificate.decode(E,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(w||(w=e.PublicKey.decode(E,"der")),k=w.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return e.RSAPublicKey.decode(w.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return w.subjectPrivateKey=w.subjectPublicKey,{type:"ec",data:w};case"1.2.840.10040.4.1":return w.algorithm.params.pub_key=e.DSAparam.decode(w.subjectPublicKey.data,"der"),{type:"dsa",data:w.algorithm.params};default:throw new Error("unknown key id "+k)}case"ENCRYPTED PRIVATE KEY":E=function P(D,T){var M=D.algorithm.decrypt.kde.kdeparams.salt,A=parseInt(D.algorithm.decrypt.kde.kdeparams.iters.toString(),10),E=i[D.algorithm.decrypt.cipher.algo.join(".")],k=D.algorithm.decrypt.cipher.iv,w=D.subjectPrivateKey,z=parseInt(E.split("-")[1],10)/8,U=a.pbkdf2Sync(T,M,A,z,"sha1"),W=b.createDecipheriv(E,U,k),ne=[];return ne.push(W.update(w)),ne.push(W.final()),y.concat(ne)}(E=e.EncryptedPrivateKey.decode(E,"der"),T);case"PRIVATE KEY":switch(k=(w=e.PrivateKey.decode(E,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return e.RSAPrivateKey.decode(w.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:w.algorithm.curve,privateKey:e.ECPrivateKey.decode(w.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return w.algorithm.params.priv_key=e.DSAparam.decode(w.subjectPrivateKey,"der"),{type:"dsa",params:w.algorithm.params};default:throw new Error("unknown key id "+k)}case"RSA PUBLIC KEY":return e.RSAPublicKey.decode(E,"der");case"RSA PRIVATE KEY":return e.RSAPrivateKey.decode(E,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:e.DSAPrivateKey.decode(E,"der")};case"EC PRIVATE KEY":return{curve:(E=e.ECPrivateKey.decode(E,"der")).parameters.value,privateKey:E.privateKey};default:throw new Error("unknown key type "+A)}}He.exports=d,d.signature=e.signature},9357:(He,j,p)=>{j.pbkdf2=p(415),j.pbkdf2Sync=p(7472)},415:(He,j,p)=>{var y,M,e=p(3502).Buffer,i=p(2697),u=p(8867),b=p(7472),a=p(4566),d=global.crypto&&global.crypto.subtle,P={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},D=[];function A(){return M||(M=global.process&&global.process.nextTick?global.process.nextTick:global.queueMicrotask?global.queueMicrotask:global.setImmediate?global.setImmediate:global.setTimeout)}function E(w,z,U,W,ne){return d.importKey("raw",w,{name:"PBKDF2"},!1,["deriveBits"]).then(function(Q){return d.deriveBits({name:"PBKDF2",salt:z,iterations:U,hash:{name:ne}},Q,W<<3)}).then(function(Q){return e.from(Q)})}He.exports=function(w,z,U,W,ne,Q){"function"==typeof ne&&(Q=ne,ne=void 0);var le=P[(ne=ne||"sha1").toLowerCase()];if(le&&"function"==typeof global.Promise){if(i(U,W),w=a(w,u,"Password"),z=a(z,u,"Salt"),"function"!=typeof Q)throw new Error("No callback provided to pbkdf2");!function k(w,z){w.then(function(U){A()(function(){z(null,U)})},function(U){A()(function(){z(U)})})}(function T(w){if(global.process&&!global.process.browser||!d||!d.importKey||!d.deriveBits)return Promise.resolve(!1);if(void 0!==D[w])return D[w];var z=E(y=y||e.alloc(8),y,10,128,w).then(function(){return!0}).catch(function(){return!1});return D[w]=z,z}(le).then(function(q){return q?E(w,z,U,W,le):b(w,z,U,W,ne)}),Q)}else A()(function(){var q;try{q=b(w,z,U,W,ne)}catch(ie){return Q(ie)}Q(null,q)})}},8867:He=>{var j;j=global.process&&global.process.browser?"utf-8":global.process&&global.process.version?parseInt(process.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary":"utf-8",He.exports=j},2697:He=>{var j=Math.pow(2,30)-1;He.exports=function(p,e){if("number"!=typeof p)throw new TypeError("Iterations not a number");if(p<0)throw new TypeError("Bad iterations");if("number"!=typeof e)throw new TypeError("Key length not a number");if(e<0||e>j||e!=e)throw new TypeError("Bad key length")}},7472:(He,j,p)=>{var e=p(5640),i=p(5634),u=p(5244),b=p(3502).Buffer,a=p(2697),y=p(8867),d=p(4566),P=b.alloc(128),D={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function T(E,k,w){var z=function M(E){return"rmd160"===E||"ripemd160"===E?function w(z){return(new i).update(z).digest()}:"md5"===E?e:function k(z){return u(E).update(z).digest()}}(E),U="sha512"===E||"sha384"===E?128:64;k.length>U?k=z(k):k.length<U&&(k=b.concat([k,P],U));for(var W=b.allocUnsafe(U+D[E]),ne=b.allocUnsafe(U+D[E]),Q=0;Q<U;Q++)W[Q]=54^k[Q],ne[Q]=92^k[Q];var le=b.allocUnsafe(U+w+4);W.copy(le,0,0,U),this.ipad1=le,this.ipad2=W,this.opad=ne,this.alg=E,this.blocksize=U,this.hash=z,this.size=D[E]}T.prototype.run=function(E,k){return E.copy(k,this.blocksize),this.hash(k).copy(this.opad,this.blocksize),this.hash(this.opad)},He.exports=function A(E,k,w,z,U){a(w,z);var W=new T(U=U||"sha1",E=d(E,y,"Password"),(k=d(k,y,"Salt")).length),ne=b.allocUnsafe(z),Q=b.allocUnsafe(k.length+4);k.copy(Q,0,0,k.length);for(var le=0,q=D[U],ie=Math.ceil(z/q),se=1;se<=ie;se++){Q.writeUInt32BE(se,k.length);for(var J=W.run(Q,W.ipad1),me=J,x=1;x<w;x++){me=W.run(me,W.ipad2);for(var t=0;t<q;t++)J[t]^=me[t]}J.copy(ne,le),le+=q}return ne}},4566:(He,j,p)=>{var e=p(3502).Buffer;He.exports=function(i,u,b){if(e.isBuffer(i))return i;if("string"==typeof i)return e.from(i,u);if(ArrayBuffer.isView(i))return e.from(i.buffer);throw new TypeError(b+" must be a string, a Buffer, a typed array or a DataView")}},3701:(He,j,p)=>{j.publicEncrypt=p(6562),j.privateDecrypt=p(6705),j.privateEncrypt=function(i,u){return j.publicEncrypt(i,u,!0)},j.publicDecrypt=function(i,u){return j.privateDecrypt(i,u,!0)}},6945:(He,j,p)=>{var e=p(6386),i=p(3502).Buffer;function u(b){var a=i.allocUnsafe(4);return a.writeUInt32BE(b,0),a}He.exports=function(b,a){for(var P,y=i.alloc(0),d=0;y.length<a;)P=u(d++),y=i.concat([y,e("sha1").update(b).update(P).digest()]);return y.slice(0,a)}},2057:function(He,j,p){!function(e,i){"use strict";function u(x,t){if(!x)throw new Error(t||"Assertion failed")}function b(x,t){x.super_=t;var r=function(){};r.prototype=t.prototype,x.prototype=new r,x.prototype.constructor=x}function a(x,t,r){if(a.isBN(x))return x;this.negative=0,this.words=null,this.length=0,this.red=null,null!==x&&(("le"===t||"be"===t)&&(r=t,t=10),this._init(x||0,t||10,r||"be"))}var y;"object"==typeof e?e.exports=a:i.BN=a,a.BN=a,a.wordSize=26;try{y="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:p(7108).Buffer}catch(x){}function d(x,t){var r=x.charCodeAt(t);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function P(x,t,r){var h=d(x,r);return r-1>=t&&(h|=d(x,r-1)<<4),h}function D(x,t,r,h){for(var c=0,C=Math.min(x.length,r),S=t;S<C;S++){var I=x.charCodeAt(S)-48;c*=h,c+=I>=49?I-49+10:I>=17?I-17+10:I}return c}a.isBN=function(t){return t instanceof a||null!==t&&"object"==typeof t&&t.constructor.wordSize===a.wordSize&&Array.isArray(t.words)},a.max=function(t,r){return t.cmp(r)>0?t:r},a.min=function(t,r){return t.cmp(r)<0?t:r},a.prototype._init=function(t,r,h){if("number"==typeof t)return this._initNumber(t,r,h);if("object"==typeof t)return this._initArray(t,r,h);"hex"===r&&(r=16),u(r===(0|r)&&r>=2&&r<=36);var c=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(c++,this.negative=1),c<t.length&&(16===r?this._parseHex(t,c,h):(this._parseBase(t,r,c),"le"===h&&this._initArray(this.toArray(),r,h)))},a.prototype._initNumber=function(t,r,h){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(u(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===h&&this._initArray(this.toArray(),r,h)},a.prototype._initArray=function(t,r,h){if(u("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var c=0;c<this.length;c++)this.words[c]=0;var C,S,I=0;if("be"===h)for(c=t.length-1,C=0;c>=0;c-=3)this.words[C]|=(S=t[c]|t[c-1]<<8|t[c-2]<<16)<<I&67108863,this.words[C+1]=S>>>26-I&67108863,(I+=24)>=26&&(I-=26,C++);else if("le"===h)for(c=0,C=0;c<t.length;c+=3)this.words[C]|=(S=t[c]|t[c+1]<<8|t[c+2]<<16)<<I&67108863,this.words[C+1]=S>>>26-I&67108863,(I+=24)>=26&&(I-=26,C++);return this.strip()},a.prototype._parseHex=function(t,r,h){this.length=Math.ceil((t.length-r)/6),this.words=new Array(this.length);for(var c=0;c<this.length;c++)this.words[c]=0;var I,C=0,S=0;if("be"===h)for(c=t.length-1;c>=r;c-=2)I=P(t,r,c)<<C,this.words[S]|=67108863&I,C>=18?(C-=18,this.words[S+=1]|=I>>>26):C+=8;else for(c=(t.length-r)%2==0?r+1:r;c<t.length;c+=2)I=P(t,r,c)<<C,this.words[S]|=67108863&I,C>=18?(C-=18,this.words[S+=1]|=I>>>26):C+=8;this.strip()},a.prototype._parseBase=function(t,r,h){this.words=[0],this.length=1;for(var c=0,C=1;C<=67108863;C*=r)c++;c--,C=C/r|0;for(var S=t.length-h,I=S%c,_=Math.min(S,S-I)+h,n=0,g=h;g<_;g+=c)n=D(t,g,g+c,r),this.imuln(C),this.words[0]+n<67108864?this.words[0]+=n:this._iaddn(n);if(0!==I){var V=1;for(n=D(t,g,t.length,r),g=0;g<I;g++)V*=r;this.imuln(V),this.words[0]+n<67108864?this.words[0]+=n:this._iaddn(n)}this.strip()},a.prototype.copy=function(t){t.words=new Array(this.length);for(var r=0;r<this.length;r++)t.words[r]=this.words[r];t.length=this.length,t.negative=this.negative,t.red=this.red},a.prototype.clone=function(){var t=new a(null);return this.copy(t),t},a.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},a.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var T=["","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],A=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function k(x,t,r){r.negative=t.negative^x.negative;var h=x.length+t.length|0;r.length=h,h=h-1|0;var c=0|x.words[0],C=0|t.words[0],S=c*C,_=S/67108864|0;r.words[0]=67108863&S;for(var n=1;n<h;n++){for(var g=_>>>26,V=67108863&_,R=Math.min(n,t.length-1),H=Math.max(0,n-x.length+1);H<=R;H++)g+=(S=(c=0|x.words[n-H|0])*(C=0|t.words[H])+V)/67108864|0,V=67108863&S;r.words[n]=0|V,_=0|g}return 0!==_?r.words[n]=0|_:r.length--,r.strip()}a.prototype.toString=function(t,r){var h;if(r=0|r||1,16===(t=t||10)||"hex"===t){h="";for(var c=0,C=0,S=0;S<this.length;S++){var I=this.words[S],_=(16777215&(I<<c|C)).toString(16);h=0!=(C=I>>>24-c&16777215)||S!==this.length-1?T[6-_.length]+_+h:_+h,(c+=2)>=26&&(c-=26,S--)}for(0!==C&&(h=C.toString(16)+h);h.length%r!=0;)h="0"+h;return 0!==this.negative&&(h="-"+h),h}if(t===(0|t)&&t>=2&&t<=36){var n=M[t],g=A[t];h="";var V=this.clone();for(V.negative=0;!V.isZero();){var R=V.modn(g).toString(t);h=(V=V.idivn(g)).isZero()?R+h:T[n-R.length]+R+h}for(this.isZero()&&(h="0"+h);h.length%r!=0;)h="0"+h;return 0!==this.negative&&(h="-"+h),h}u(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&u(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(t,r){return u(void 0!==y),this.toArrayLike(y,t,r)},a.prototype.toArray=function(t,r){return this.toArrayLike(Array,t,r)},a.prototype.toArrayLike=function(t,r,h){var c=this.byteLength(),C=h||Math.max(1,c);u(c<=C,"byte array longer than desired length"),u(C>0,"Requested array length <= 0"),this.strip();var _,n,S="le"===r,I=new t(C),g=this.clone();if(S){for(n=0;!g.isZero();n++)_=g.andln(255),g.iushrn(8),I[n]=_;for(;n<C;n++)I[n]=0}else{for(n=0;n<C-c;n++)I[n]=0;for(n=0;!g.isZero();n++)_=g.andln(255),g.iushrn(8),I[C-n-1]=_}return I},a.prototype._countBits=Math.clz32?function(t){return 32-Math.clz32(t)}:function(t){var r=t,h=0;return r>=4096&&(h+=13,r>>>=13),r>=64&&(h+=7,r>>>=7),r>=8&&(h+=4,r>>>=4),r>=2&&(h+=2,r>>>=2),h+r},a.prototype._zeroBits=function(t){if(0===t)return 26;var r=t,h=0;return 0==(8191&r)&&(h+=13,r>>>=13),0==(127&r)&&(h+=7,r>>>=7),0==(15&r)&&(h+=4,r>>>=4),0==(3&r)&&(h+=2,r>>>=2),0==(1&r)&&h++,h},a.prototype.bitLength=function(){var r=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+r},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,r=0;r<this.length;r++){var h=this._zeroBits(this.words[r]);if(t+=h,26!==h)break}return t},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},a.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return 0!==this.negative},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]|t.words[r];return this.strip()},a.prototype.ior=function(t){return u(0==(this.negative|t.negative)),this.iuor(t)},a.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},a.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},a.prototype.iuand=function(t){var r;r=this.length>t.length?t:this;for(var h=0;h<r.length;h++)this.words[h]=this.words[h]&t.words[h];return this.length=r.length,this.strip()},a.prototype.iand=function(t){return u(0==(this.negative|t.negative)),this.iuand(t)},a.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},a.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},a.prototype.iuxor=function(t){var r,h;this.length>t.length?(r=this,h=t):(r=t,h=this);for(var c=0;c<h.length;c++)this.words[c]=r.words[c]^h.words[c];if(this!==r)for(;c<r.length;c++)this.words[c]=r.words[c];return this.length=r.length,this.strip()},a.prototype.ixor=function(t){return u(0==(this.negative|t.negative)),this.iuxor(t)},a.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},a.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},a.prototype.inotn=function(t){u("number"==typeof t&&t>=0);var r=0|Math.ceil(t/26),h=t%26;this._expand(r),h>0&&r--;for(var c=0;c<r;c++)this.words[c]=67108863&~this.words[c];return h>0&&(this.words[c]=~this.words[c]&67108863>>26-h),this.strip()},a.prototype.notn=function(t){return this.clone().inotn(t)},a.prototype.setn=function(t,r){u("number"==typeof t&&t>=0);var h=t/26|0,c=t%26;return this._expand(h+1),this.words[h]=r?this.words[h]|1<<c:this.words[h]&~(1<<c),this.strip()},a.prototype.iadd=function(t){var r,h,c;if(0!==this.negative&&0===t.negative)return this.negative=0,r=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,r=this.isub(t),t.negative=1,r._normSign();this.length>t.length?(h=this,c=t):(h=t,c=this);for(var C=0,S=0;S<c.length;S++)this.words[S]=67108863&(r=(0|h.words[S])+(0|c.words[S])+C),C=r>>>26;for(;0!==C&&S<h.length;S++)this.words[S]=67108863&(r=(0|h.words[S])+C),C=r>>>26;if(this.length=h.length,0!==C)this.words[this.length]=C,this.length++;else if(h!==this)for(;S<h.length;S++)this.words[S]=h.words[S];return this},a.prototype.add=function(t){var r;return 0!==t.negative&&0===this.negative?(t.negative=0,r=this.sub(t),t.negative^=1,r):0===t.negative&&0!==this.negative?(this.negative=0,r=t.sub(this),this.negative=1,r):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},a.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var r=this.iadd(t);return t.negative=1,r._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var c,C,h=this.cmp(t);if(0===h)return this.negative=0,this.length=1,this.words[0]=0,this;h>0?(c=this,C=t):(c=t,C=this);for(var S=0,I=0;I<C.length;I++)S=(r=(0|c.words[I])-(0|C.words[I])+S)>>26,this.words[I]=67108863&r;for(;0!==S&&I<c.length;I++)S=(r=(0|c.words[I])+S)>>26,this.words[I]=67108863&r;if(0===S&&I<c.length&&c!==this)for(;I<c.length;I++)this.words[I]=c.words[I];return this.length=Math.max(this.length,I),c!==this&&(this.negative=1),this.strip()},a.prototype.sub=function(t){return this.clone().isub(t)};var w=function(t,r,h){var _,n,g,c=t.words,C=r.words,S=h.words,I=0,V=0|c[0],R=8191&V,H=V>>>13,$=0|c[1],fe=8191&$,ye=$>>>13,ke=0|c[2],Ee=8191&ke,te=ke>>>13,ze=0|c[3],be=8191&ze,Z=ze>>>13,Y=0|c[4],ot=8191&Y,Ie=Y>>>13,Ae=0|c[5],ce=8191&Ae,Te=Ae>>>13,xe=0|c[6],G=8191&xe,ee=xe>>>13,ue=0|c[7],ve=8191&ue,Le=ue>>>13,lt=0|c[8],ht=8191&lt,Tt=lt>>>13,hi=0|c[9],jt=8191&hi,Gt=hi>>>13,di=0|C[0],vt=8191&di,kt=di>>>13,gt=0|C[1],Qe=8191&gt,_t=gt>>>13,ei=0|C[2],Zt=8191&ei,Pe=ei>>>13,De=0|C[3],oe=8191&De,Me=De>>>13,ut=0|C[4],ft=8191&ut,Rt=ut>>>13,et=0|C[5],Re=8191&et,qe=et>>>13,Ze=0|C[6],we=8191&Ze,Fe=Ze>>>13,rt=0|C[7],at=8191&rt,yt=rt>>>13,mi=0|C[8],Xt=8191&mi,Jt=mi>>>13,qi=0|C[9],ui=8191&qi,si=qi>>>13;h.negative=t.negative^r.negative,h.length=19;var en=(I+(_=Math.imul(R,vt))|0)+((8191&(n=(n=Math.imul(R,kt))+Math.imul(H,vt)|0))<<13)|0;I=((g=Math.imul(H,kt))+(n>>>13)|0)+(en>>>26)|0,en&=67108863,_=Math.imul(fe,vt),n=(n=Math.imul(fe,kt))+Math.imul(ye,vt)|0,g=Math.imul(ye,kt);var Ui=(I+(_=_+Math.imul(R,Qe)|0)|0)+((8191&(n=(n=n+Math.imul(R,_t)|0)+Math.imul(H,Qe)|0))<<13)|0;I=((g=g+Math.imul(H,_t)|0)+(n>>>13)|0)+(Ui>>>26)|0,Ui&=67108863,_=Math.imul(Ee,vt),n=(n=Math.imul(Ee,kt))+Math.imul(te,vt)|0,g=Math.imul(te,kt),_=_+Math.imul(fe,Qe)|0,n=(n=n+Math.imul(fe,_t)|0)+Math.imul(ye,Qe)|0,g=g+Math.imul(ye,_t)|0;var Bi=(I+(_=_+Math.imul(R,Zt)|0)|0)+((8191&(n=(n=n+Math.imul(R,Pe)|0)+Math.imul(H,Zt)|0))<<13)|0;I=((g=g+Math.imul(H,Pe)|0)+(n>>>13)|0)+(Bi>>>26)|0,Bi&=67108863,_=Math.imul(be,vt),n=(n=Math.imul(be,kt))+Math.imul(Z,vt)|0,g=Math.imul(Z,kt),_=_+Math.imul(Ee,Qe)|0,n=(n=n+Math.imul(Ee,_t)|0)+Math.imul(te,Qe)|0,g=g+Math.imul(te,_t)|0,_=_+Math.imul(fe,Zt)|0,n=(n=n+Math.imul(fe,Pe)|0)+Math.imul(ye,Zt)|0,g=g+Math.imul(ye,Pe)|0;var Gi=(I+(_=_+Math.imul(R,oe)|0)|0)+((8191&(n=(n=n+Math.imul(R,Me)|0)+Math.imul(H,oe)|0))<<13)|0;I=((g=g+Math.imul(H,Me)|0)+(n>>>13)|0)+(Gi>>>26)|0,Gi&=67108863,_=Math.imul(ot,vt),n=(n=Math.imul(ot,kt))+Math.imul(Ie,vt)|0,g=Math.imul(Ie,kt),_=_+Math.imul(be,Qe)|0,n=(n=n+Math.imul(be,_t)|0)+Math.imul(Z,Qe)|0,g=g+Math.imul(Z,_t)|0,_=_+Math.imul(Ee,Zt)|0,n=(n=n+Math.imul(Ee,Pe)|0)+Math.imul(te,Zt)|0,g=g+Math.imul(te,Pe)|0,_=_+Math.imul(fe,oe)|0,n=(n=n+Math.imul(fe,Me)|0)+Math.imul(ye,oe)|0,g=g+Math.imul(ye,Me)|0;var ct=(I+(_=_+Math.imul(R,ft)|0)|0)+((8191&(n=(n=n+Math.imul(R,Rt)|0)+Math.imul(H,ft)|0))<<13)|0;I=((g=g+Math.imul(H,Rt)|0)+(n>>>13)|0)+(ct>>>26)|0,ct&=67108863,_=Math.imul(ce,vt),n=(n=Math.imul(ce,kt))+Math.imul(Te,vt)|0,g=Math.imul(Te,kt),_=_+Math.imul(ot,Qe)|0,n=(n=n+Math.imul(ot,_t)|0)+Math.imul(Ie,Qe)|0,g=g+Math.imul(Ie,_t)|0,_=_+Math.imul(be,Zt)|0,n=(n=n+Math.imul(be,Pe)|0)+Math.imul(Z,Zt)|0,g=g+Math.imul(Z,Pe)|0,_=_+Math.imul(Ee,oe)|0,n=(n=n+Math.imul(Ee,Me)|0)+Math.imul(te,oe)|0,g=g+Math.imul(te,Me)|0,_=_+Math.imul(fe,ft)|0,n=(n=n+Math.imul(fe,Rt)|0)+Math.imul(ye,ft)|0,g=g+Math.imul(ye,Rt)|0;var Ft=(I+(_=_+Math.imul(R,Re)|0)|0)+((8191&(n=(n=n+Math.imul(R,qe)|0)+Math.imul(H,Re)|0))<<13)|0;I=((g=g+Math.imul(H,qe)|0)+(n>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,_=Math.imul(G,vt),n=(n=Math.imul(G,kt))+Math.imul(ee,vt)|0,g=Math.imul(ee,kt),_=_+Math.imul(ce,Qe)|0,n=(n=n+Math.imul(ce,_t)|0)+Math.imul(Te,Qe)|0,g=g+Math.imul(Te,_t)|0,_=_+Math.imul(ot,Zt)|0,n=(n=n+Math.imul(ot,Pe)|0)+Math.imul(Ie,Zt)|0,g=g+Math.imul(Ie,Pe)|0,_=_+Math.imul(be,oe)|0,n=(n=n+Math.imul(be,Me)|0)+Math.imul(Z,oe)|0,g=g+Math.imul(Z,Me)|0,_=_+Math.imul(Ee,ft)|0,n=(n=n+Math.imul(Ee,Rt)|0)+Math.imul(te,ft)|0,g=g+Math.imul(te,Rt)|0,_=_+Math.imul(fe,Re)|0,n=(n=n+Math.imul(fe,qe)|0)+Math.imul(ye,Re)|0,g=g+Math.imul(ye,qe)|0;var pt=(I+(_=_+Math.imul(R,we)|0)|0)+((8191&(n=(n=n+Math.imul(R,Fe)|0)+Math.imul(H,we)|0))<<13)|0;I=((g=g+Math.imul(H,Fe)|0)+(n>>>13)|0)+(pt>>>26)|0,pt&=67108863,_=Math.imul(ve,vt),n=(n=Math.imul(ve,kt))+Math.imul(Le,vt)|0,g=Math.imul(Le,kt),_=_+Math.imul(G,Qe)|0,n=(n=n+Math.imul(G,_t)|0)+Math.imul(ee,Qe)|0,g=g+Math.imul(ee,_t)|0,_=_+Math.imul(ce,Zt)|0,n=(n=n+Math.imul(ce,Pe)|0)+Math.imul(Te,Zt)|0,g=g+Math.imul(Te,Pe)|0,_=_+Math.imul(ot,oe)|0,n=(n=n+Math.imul(ot,Me)|0)+Math.imul(Ie,oe)|0,g=g+Math.imul(Ie,Me)|0,_=_+Math.imul(be,ft)|0,n=(n=n+Math.imul(be,Rt)|0)+Math.imul(Z,ft)|0,g=g+Math.imul(Z,Rt)|0,_=_+Math.imul(Ee,Re)|0,n=(n=n+Math.imul(Ee,qe)|0)+Math.imul(te,Re)|0,g=g+Math.imul(te,qe)|0,_=_+Math.imul(fe,we)|0,n=(n=n+Math.imul(fe,Fe)|0)+Math.imul(ye,we)|0,g=g+Math.imul(ye,Fe)|0;var it=(I+(_=_+Math.imul(R,at)|0)|0)+((8191&(n=(n=n+Math.imul(R,yt)|0)+Math.imul(H,at)|0))<<13)|0;I=((g=g+Math.imul(H,yt)|0)+(n>>>13)|0)+(it>>>26)|0,it&=67108863,_=Math.imul(ht,vt),n=(n=Math.imul(ht,kt))+Math.imul(Tt,vt)|0,g=Math.imul(Tt,kt),_=_+Math.imul(ve,Qe)|0,n=(n=n+Math.imul(ve,_t)|0)+Math.imul(Le,Qe)|0,g=g+Math.imul(Le,_t)|0,_=_+Math.imul(G,Zt)|0,n=(n=n+Math.imul(G,Pe)|0)+Math.imul(ee,Zt)|0,g=g+Math.imul(ee,Pe)|0,_=_+Math.imul(ce,oe)|0,n=(n=n+Math.imul(ce,Me)|0)+Math.imul(Te,oe)|0,g=g+Math.imul(Te,Me)|0,_=_+Math.imul(ot,ft)|0,n=(n=n+Math.imul(ot,Rt)|0)+Math.imul(Ie,ft)|0,g=g+Math.imul(Ie,Rt)|0,_=_+Math.imul(be,Re)|0,n=(n=n+Math.imul(be,qe)|0)+Math.imul(Z,Re)|0,g=g+Math.imul(Z,qe)|0,_=_+Math.imul(Ee,we)|0,n=(n=n+Math.imul(Ee,Fe)|0)+Math.imul(te,we)|0,g=g+Math.imul(te,Fe)|0,_=_+Math.imul(fe,at)|0,n=(n=n+Math.imul(fe,yt)|0)+Math.imul(ye,at)|0,g=g+Math.imul(ye,yt)|0;var It=(I+(_=_+Math.imul(R,Xt)|0)|0)+((8191&(n=(n=n+Math.imul(R,Jt)|0)+Math.imul(H,Xt)|0))<<13)|0;I=((g=g+Math.imul(H,Jt)|0)+(n>>>13)|0)+(It>>>26)|0,It&=67108863,_=Math.imul(jt,vt),n=(n=Math.imul(jt,kt))+Math.imul(Gt,vt)|0,g=Math.imul(Gt,kt),_=_+Math.imul(ht,Qe)|0,n=(n=n+Math.imul(ht,_t)|0)+Math.imul(Tt,Qe)|0,g=g+Math.imul(Tt,_t)|0,_=_+Math.imul(ve,Zt)|0,n=(n=n+Math.imul(ve,Pe)|0)+Math.imul(Le,Zt)|0,g=g+Math.imul(Le,Pe)|0,_=_+Math.imul(G,oe)|0,n=(n=n+Math.imul(G,Me)|0)+Math.imul(ee,oe)|0,g=g+Math.imul(ee,Me)|0,_=_+Math.imul(ce,ft)|0,n=(n=n+Math.imul(ce,Rt)|0)+Math.imul(Te,ft)|0,g=g+Math.imul(Te,Rt)|0,_=_+Math.imul(ot,Re)|0,n=(n=n+Math.imul(ot,qe)|0)+Math.imul(Ie,Re)|0,g=g+Math.imul(Ie,qe)|0,_=_+Math.imul(be,we)|0,n=(n=n+Math.imul(be,Fe)|0)+Math.imul(Z,we)|0,g=g+Math.imul(Z,Fe)|0,_=_+Math.imul(Ee,at)|0,n=(n=n+Math.imul(Ee,yt)|0)+Math.imul(te,at)|0,g=g+Math.imul(te,yt)|0,_=_+Math.imul(fe,Xt)|0,n=(n=n+Math.imul(fe,Jt)|0)+Math.imul(ye,Xt)|0,g=g+Math.imul(ye,Jt)|0;var de=(I+(_=_+Math.imul(R,ui)|0)|0)+((8191&(n=(n=n+Math.imul(R,si)|0)+Math.imul(H,ui)|0))<<13)|0;I=((g=g+Math.imul(H,si)|0)+(n>>>13)|0)+(de>>>26)|0,de&=67108863,_=Math.imul(jt,Qe),n=(n=Math.imul(jt,_t))+Math.imul(Gt,Qe)|0,g=Math.imul(Gt,_t),_=_+Math.imul(ht,Zt)|0,n=(n=n+Math.imul(ht,Pe)|0)+Math.imul(Tt,Zt)|0,g=g+Math.imul(Tt,Pe)|0,_=_+Math.imul(ve,oe)|0,n=(n=n+Math.imul(ve,Me)|0)+Math.imul(Le,oe)|0,g=g+Math.imul(Le,Me)|0,_=_+Math.imul(G,ft)|0,n=(n=n+Math.imul(G,Rt)|0)+Math.imul(ee,ft)|0,g=g+Math.imul(ee,Rt)|0,_=_+Math.imul(ce,Re)|0,n=(n=n+Math.imul(ce,qe)|0)+Math.imul(Te,Re)|0,g=g+Math.imul(Te,qe)|0,_=_+Math.imul(ot,we)|0,n=(n=n+Math.imul(ot,Fe)|0)+Math.imul(Ie,we)|0,g=g+Math.imul(Ie,Fe)|0,_=_+Math.imul(be,at)|0,n=(n=n+Math.imul(be,yt)|0)+Math.imul(Z,at)|0,g=g+Math.imul(Z,yt)|0,_=_+Math.imul(Ee,Xt)|0,n=(n=n+Math.imul(Ee,Jt)|0)+Math.imul(te,Xt)|0,g=g+Math.imul(te,Jt)|0;var $e=(I+(_=_+Math.imul(fe,ui)|0)|0)+((8191&(n=(n=n+Math.imul(fe,si)|0)+Math.imul(ye,ui)|0))<<13)|0;I=((g=g+Math.imul(ye,si)|0)+(n>>>13)|0)+($e>>>26)|0,$e&=67108863,_=Math.imul(jt,Zt),n=(n=Math.imul(jt,Pe))+Math.imul(Gt,Zt)|0,g=Math.imul(Gt,Pe),_=_+Math.imul(ht,oe)|0,n=(n=n+Math.imul(ht,Me)|0)+Math.imul(Tt,oe)|0,g=g+Math.imul(Tt,Me)|0,_=_+Math.imul(ve,ft)|0,n=(n=n+Math.imul(ve,Rt)|0)+Math.imul(Le,ft)|0,g=g+Math.imul(Le,Rt)|0,_=_+Math.imul(G,Re)|0,n=(n=n+Math.imul(G,qe)|0)+Math.imul(ee,Re)|0,g=g+Math.imul(ee,qe)|0,_=_+Math.imul(ce,we)|0,n=(n=n+Math.imul(ce,Fe)|0)+Math.imul(Te,we)|0,g=g+Math.imul(Te,Fe)|0,_=_+Math.imul(ot,at)|0,n=(n=n+Math.imul(ot,yt)|0)+Math.imul(Ie,at)|0,g=g+Math.imul(Ie,yt)|0,_=_+Math.imul(be,Xt)|0,n=(n=n+Math.imul(be,Jt)|0)+Math.imul(Z,Xt)|0,g=g+Math.imul(Z,Jt)|0;var bt=(I+(_=_+Math.imul(Ee,ui)|0)|0)+((8191&(n=(n=n+Math.imul(Ee,si)|0)+Math.imul(te,ui)|0))<<13)|0;I=((g=g+Math.imul(te,si)|0)+(n>>>13)|0)+(bt>>>26)|0,bt&=67108863,_=Math.imul(jt,oe),n=(n=Math.imul(jt,Me))+Math.imul(Gt,oe)|0,g=Math.imul(Gt,Me),_=_+Math.imul(ht,ft)|0,n=(n=n+Math.imul(ht,Rt)|0)+Math.imul(Tt,ft)|0,g=g+Math.imul(Tt,Rt)|0,_=_+Math.imul(ve,Re)|0,n=(n=n+Math.imul(ve,qe)|0)+Math.imul(Le,Re)|0,g=g+Math.imul(Le,qe)|0,_=_+Math.imul(G,we)|0,n=(n=n+Math.imul(G,Fe)|0)+Math.imul(ee,we)|0,g=g+Math.imul(ee,Fe)|0,_=_+Math.imul(ce,at)|0,n=(n=n+Math.imul(ce,yt)|0)+Math.imul(Te,at)|0,g=g+Math.imul(Te,yt)|0,_=_+Math.imul(ot,Xt)|0,n=(n=n+Math.imul(ot,Jt)|0)+Math.imul(Ie,Xt)|0,g=g+Math.imul(Ie,Jt)|0;var Vt=(I+(_=_+Math.imul(be,ui)|0)|0)+((8191&(n=(n=n+Math.imul(be,si)|0)+Math.imul(Z,ui)|0))<<13)|0;I=((g=g+Math.imul(Z,si)|0)+(n>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,_=Math.imul(jt,ft),n=(n=Math.imul(jt,Rt))+Math.imul(Gt,ft)|0,g=Math.imul(Gt,Rt),_=_+Math.imul(ht,Re)|0,n=(n=n+Math.imul(ht,qe)|0)+Math.imul(Tt,Re)|0,g=g+Math.imul(Tt,qe)|0,_=_+Math.imul(ve,we)|0,n=(n=n+Math.imul(ve,Fe)|0)+Math.imul(Le,we)|0,g=g+Math.imul(Le,Fe)|0,_=_+Math.imul(G,at)|0,n=(n=n+Math.imul(G,yt)|0)+Math.imul(ee,at)|0,g=g+Math.imul(ee,yt)|0,_=_+Math.imul(ce,Xt)|0,n=(n=n+Math.imul(ce,Jt)|0)+Math.imul(Te,Xt)|0,g=g+Math.imul(Te,Jt)|0;var bi=(I+(_=_+Math.imul(ot,ui)|0)|0)+((8191&(n=(n=n+Math.imul(ot,si)|0)+Math.imul(Ie,ui)|0))<<13)|0;I=((g=g+Math.imul(Ie,si)|0)+(n>>>13)|0)+(bi>>>26)|0,bi&=67108863,_=Math.imul(jt,Re),n=(n=Math.imul(jt,qe))+Math.imul(Gt,Re)|0,g=Math.imul(Gt,qe),_=_+Math.imul(ht,we)|0,n=(n=n+Math.imul(ht,Fe)|0)+Math.imul(Tt,we)|0,g=g+Math.imul(Tt,Fe)|0,_=_+Math.imul(ve,at)|0,n=(n=n+Math.imul(ve,yt)|0)+Math.imul(Le,at)|0,g=g+Math.imul(Le,yt)|0,_=_+Math.imul(G,Xt)|0,n=(n=n+Math.imul(G,Jt)|0)+Math.imul(ee,Xt)|0,g=g+Math.imul(ee,Jt)|0;var Li=(I+(_=_+Math.imul(ce,ui)|0)|0)+((8191&(n=(n=n+Math.imul(ce,si)|0)+Math.imul(Te,ui)|0))<<13)|0;I=((g=g+Math.imul(Te,si)|0)+(n>>>13)|0)+(Li>>>26)|0,Li&=67108863,_=Math.imul(jt,we),n=(n=Math.imul(jt,Fe))+Math.imul(Gt,we)|0,g=Math.imul(Gt,Fe),_=_+Math.imul(ht,at)|0,n=(n=n+Math.imul(ht,yt)|0)+Math.imul(Tt,at)|0,g=g+Math.imul(Tt,yt)|0,_=_+Math.imul(ve,Xt)|0,n=(n=n+Math.imul(ve,Jt)|0)+Math.imul(Le,Xt)|0,g=g+Math.imul(Le,Jt)|0;var Ji=(I+(_=_+Math.imul(G,ui)|0)|0)+((8191&(n=(n=n+Math.imul(G,si)|0)+Math.imul(ee,ui)|0))<<13)|0;I=((g=g+Math.imul(ee,si)|0)+(n>>>13)|0)+(Ji>>>26)|0,Ji&=67108863,_=Math.imul(jt,at),n=(n=Math.imul(jt,yt))+Math.imul(Gt,at)|0,g=Math.imul(Gt,yt),_=_+Math.imul(ht,Xt)|0,n=(n=n+Math.imul(ht,Jt)|0)+Math.imul(Tt,Xt)|0,g=g+Math.imul(Tt,Jt)|0;var Wi=(I+(_=_+Math.imul(ve,ui)|0)|0)+((8191&(n=(n=n+Math.imul(ve,si)|0)+Math.imul(Le,ui)|0))<<13)|0;I=((g=g+Math.imul(Le,si)|0)+(n>>>13)|0)+(Wi>>>26)|0,Wi&=67108863,_=Math.imul(jt,Xt),n=(n=Math.imul(jt,Jt))+Math.imul(Gt,Xt)|0,g=Math.imul(Gt,Jt);var sn=(I+(_=_+Math.imul(ht,ui)|0)|0)+((8191&(n=(n=n+Math.imul(ht,si)|0)+Math.imul(Tt,ui)|0))<<13)|0;I=((g=g+Math.imul(Tt,si)|0)+(n>>>13)|0)+(sn>>>26)|0,sn&=67108863;var mn=(I+(_=Math.imul(jt,ui))|0)+((8191&(n=(n=Math.imul(jt,si))+Math.imul(Gt,ui)|0))<<13)|0;return I=((g=Math.imul(Gt,si))+(n>>>13)|0)+(mn>>>26)|0,mn&=67108863,S[0]=en,S[1]=Ui,S[2]=Bi,S[3]=Gi,S[4]=ct,S[5]=Ft,S[6]=pt,S[7]=it,S[8]=It,S[9]=de,S[10]=$e,S[11]=bt,S[12]=Vt,S[13]=bi,S[14]=Li,S[15]=Ji,S[16]=Wi,S[17]=sn,S[18]=mn,0!==I&&(S[19]=I,h.length++),h};function U(x,t,r){return(new W).mulp(x,t,r)}function W(x,t){this.x=x,this.y=t}Math.imul||(w=k),a.prototype.mulTo=function(t,r){var h,c=this.length+t.length;return h=10===this.length&&10===t.length?w(this,t,r):c<63?k(this,t,r):c<1024?function z(x,t,r){r.negative=t.negative^x.negative,r.length=x.length+t.length;for(var h=0,c=0,C=0;C<r.length-1;C++){var S=c;c=0;for(var I=67108863&h,_=Math.min(C,t.length-1),n=Math.max(0,C-x.length+1);n<=_;n++){var H=(0|x.words[C-n])*(0|t.words[n]),$=67108863&H;I=67108863&($=$+I|0),c+=(S=(S=S+(H/67108864|0)|0)+($>>>26)|0)>>>26,S&=67108863}r.words[C]=I,h=S,S=c}return 0!==h?r.words[C]=h:r.length--,r.strip()}(this,t,r):U(this,t,r),h},W.prototype.makeRBT=function(t){for(var r=new Array(t),h=a.prototype._countBits(t)-1,c=0;c<t;c++)r[c]=this.revBin(c,h,t);return r},W.prototype.revBin=function(t,r,h){if(0===t||t===h-1)return t;for(var c=0,C=0;C<r;C++)c|=(1&t)<<r-C-1,t>>=1;return c},W.prototype.permute=function(t,r,h,c,C,S){for(var I=0;I<S;I++)c[I]=r[t[I]],C[I]=h[t[I]]},W.prototype.transform=function(t,r,h,c,C,S){this.permute(S,t,r,h,c,C);for(var I=1;I<C;I<<=1)for(var _=I<<1,n=Math.cos(2*Math.PI/_),g=Math.sin(2*Math.PI/_),V=0;V<C;V+=_)for(var R=n,H=g,$=0;$<I;$++){var fe=h[V+$],ye=c[V+$],ke=h[V+$+I],Ee=c[V+$+I],te=R*ke-H*Ee;Ee=R*Ee+H*ke,h[V+$]=fe+(ke=te),c[V+$]=ye+Ee,h[V+$+I]=fe-ke,c[V+$+I]=ye-Ee,$!==_&&(te=n*R-g*H,H=n*H+g*R,R=te)}},W.prototype.guessLen13b=function(t,r){var h=1|Math.max(r,t),c=1&h,C=0;for(h=h/2|0;h;h>>>=1)C++;return 1<<C+1+c},W.prototype.conjugate=function(t,r,h){if(!(h<=1))for(var c=0;c<h/2;c++){var C=t[c];t[c]=t[h-c-1],t[h-c-1]=C,C=r[c],r[c]=-r[h-c-1],r[h-c-1]=-C}},W.prototype.normalize13b=function(t,r){for(var h=0,c=0;c<r/2;c++){var C=8192*Math.round(t[2*c+1]/r)+Math.round(t[2*c]/r)+h;t[c]=67108863&C,h=C<67108864?0:C/67108864|0}return t},W.prototype.convert13b=function(t,r,h,c){for(var C=0,S=0;S<r;S++)h[2*S]=8191&(C+=0|t[S]),h[2*S+1]=8191&(C>>>=13),C>>>=13;for(S=2*r;S<c;++S)h[S]=0;u(0===C),u(0==(-8192&C))},W.prototype.stub=function(t){for(var r=new Array(t),h=0;h<t;h++)r[h]=0;return r},W.prototype.mulp=function(t,r,h){var c=2*this.guessLen13b(t.length,r.length),C=this.makeRBT(c),S=this.stub(c),I=new Array(c),_=new Array(c),n=new Array(c),g=new Array(c),V=new Array(c),R=new Array(c),H=h.words;H.length=c,this.convert13b(t.words,t.length,I,c),this.convert13b(r.words,r.length,g,c),this.transform(I,S,_,n,c,C),this.transform(g,S,V,R,c,C);for(var $=0;$<c;$++){var fe=_[$]*V[$]-n[$]*R[$];n[$]=_[$]*R[$]+n[$]*V[$],_[$]=fe}return this.conjugate(_,n,c),this.transform(_,n,H,S,c,C),this.conjugate(H,S,c),this.normalize13b(H,c),h.negative=t.negative^r.negative,h.length=t.length+r.length,h.strip()},a.prototype.mul=function(t){var r=new a(null);return r.words=new Array(this.length+t.length),this.mulTo(t,r)},a.prototype.mulf=function(t){var r=new a(null);return r.words=new Array(this.length+t.length),U(this,t,r)},a.prototype.imul=function(t){return this.clone().mulTo(t,this)},a.prototype.imuln=function(t){u("number"==typeof t),u(t<67108864);for(var r=0,h=0;h<this.length;h++){var c=(0|this.words[h])*t,C=(67108863&c)+(67108863&r);r>>=26,r+=c/67108864|0,r+=C>>>26,this.words[h]=67108863&C}return 0!==r&&(this.words[h]=r,this.length++),this},a.prototype.muln=function(t){return this.clone().imuln(t)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(t){var r=function E(x){for(var t=new Array(x.bitLength()),r=0;r<t.length;r++){var c=r%26;t[r]=(x.words[r/26|0]&1<<c)>>>c}return t}(t);if(0===r.length)return new a(1);for(var h=this,c=0;c<r.length&&0===r[c];c++,h=h.sqr());if(++c<r.length)for(var C=h.sqr();c<r.length;c++,C=C.sqr())0!==r[c]&&(h=h.mul(C));return h},a.prototype.iushln=function(t){u("number"==typeof t&&t>=0);var C,r=t%26,h=(t-r)/26,c=67108863>>>26-r<<26-r;if(0!==r){var S=0;for(C=0;C<this.length;C++){var I=this.words[C]&c;this.words[C]=(0|this.words[C])-I<<r|S,S=I>>>26-r}S&&(this.words[C]=S,this.length++)}if(0!==h){for(C=this.length-1;C>=0;C--)this.words[C+h]=this.words[C];for(C=0;C<h;C++)this.words[C]=0;this.length+=h}return this.strip()},a.prototype.ishln=function(t){return u(0===this.negative),this.iushln(t)},a.prototype.iushrn=function(t,r,h){var c;u("number"==typeof t&&t>=0),c=r?(r-r%26)/26:0;var C=t%26,S=Math.min((t-C)/26,this.length),I=67108863^67108863>>>C<<C,_=h;if(c-=S,c=Math.max(0,c),_){for(var n=0;n<S;n++)_.words[n]=this.words[n];_.length=S}if(0!==S)if(this.length>S)for(this.length-=S,n=0;n<this.length;n++)this.words[n]=this.words[n+S];else this.words[0]=0,this.length=1;var g=0;for(n=this.length-1;n>=0&&(0!==g||n>=c);n--){var V=0|this.words[n];this.words[n]=g<<26-C|V>>>C,g=V&I}return _&&0!==g&&(_.words[_.length++]=g),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(t,r,h){return u(0===this.negative),this.iushrn(t,r,h)},a.prototype.shln=function(t){return this.clone().ishln(t)},a.prototype.ushln=function(t){return this.clone().iushln(t)},a.prototype.shrn=function(t){return this.clone().ishrn(t)},a.prototype.ushrn=function(t){return this.clone().iushrn(t)},a.prototype.testn=function(t){u("number"==typeof t&&t>=0);var r=t%26,h=(t-r)/26;return!(this.length<=h||!(this.words[h]&1<<r))},a.prototype.imaskn=function(t){u("number"==typeof t&&t>=0);var r=t%26,h=(t-r)/26;return u(0===this.negative,"imaskn works only with positive numbers"),this.length<=h?this:(0!==r&&h++,this.length=Math.min(h,this.length),0!==r&&(this.words[this.length-1]&=67108863^67108863>>>r<<r),this.strip())},a.prototype.maskn=function(t){return this.clone().imaskn(t)},a.prototype.iaddn=function(t){return u("number"==typeof t),u(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},a.prototype._iaddn=function(t){this.words[0]+=t;for(var r=0;r<this.length&&this.words[r]>=67108864;r++)this.words[r]-=67108864,r===this.length-1?this.words[r+1]=1:this.words[r+1]++;return this.length=Math.max(this.length,r+1),this},a.prototype.isubn=function(t){if(u("number"==typeof t),u(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r<this.length&&this.words[r]<0;r++)this.words[r]+=67108864,this.words[r+1]-=1;return this.strip()},a.prototype.addn=function(t){return this.clone().iaddn(t)},a.prototype.subn=function(t){return this.clone().isubn(t)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(t,r,h){var C;this._expand(t.length+h);var S,I=0;for(C=0;C<t.length;C++){S=(0|this.words[C+h])+I;var _=(0|t.words[C])*r;I=((S-=67108863&_)>>26)-(_/67108864|0),this.words[C+h]=67108863&S}for(;C<this.length-h;C++)I=(S=(0|this.words[C+h])+I)>>26,this.words[C+h]=67108863&S;if(0===I)return this.strip();for(u(-1===I),I=0,C=0;C<this.length;C++)I=(S=-(0|this.words[C])+I)>>26,this.words[C]=67108863&S;return this.negative=1,this.strip()},a.prototype._wordDiv=function(t,r){var h,c=this.clone(),C=t,S=0|C.words[C.length-1];0!=(h=26-this._countBits(S))&&(C=C.ushln(h),c.iushln(h),S=0|C.words[C.length-1]);var n,_=c.length-C.length;if("mod"!==r){(n=new a(null)).length=_+1,n.words=new Array(n.length);for(var g=0;g<n.length;g++)n.words[g]=0}var V=c.clone()._ishlnsubmul(C,1,_);0===V.negative&&(c=V,n&&(n.words[_]=1));for(var R=_-1;R>=0;R--){var H=67108864*(0|c.words[C.length+R])+(0|c.words[C.length+R-1]);for(H=Math.min(H/S|0,67108863),c._ishlnsubmul(C,H,R);0!==c.negative;)H--,c.negative=0,c._ishlnsubmul(C,1,R),c.isZero()||(c.negative^=1);n&&(n.words[R]=H)}return n&&n.strip(),c.strip(),"div"!==r&&0!==h&&c.iushrn(h),{div:n||null,mod:c}},a.prototype.divmod=function(t,r,h){return u(!t.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===t.negative?(S=this.neg().divmod(t,r),"mod"!==r&&(c=S.div.neg()),"div"!==r&&(C=S.mod.neg(),h&&0!==C.negative&&C.iadd(t)),{div:c,mod:C}):0===this.negative&&0!==t.negative?(S=this.divmod(t.neg(),r),"mod"!==r&&(c=S.div.neg()),{div:c,mod:S.mod}):0!=(this.negative&t.negative)?(S=this.neg().divmod(t.neg(),r),"div"!==r&&(C=S.mod.neg(),h&&0!==C.negative&&C.isub(t)),{div:S.div,mod:C}):t.length>this.length||this.cmp(t)<0?{div:new a(0),mod:this}:1===t.length?"div"===r?{div:this.divn(t.words[0]),mod:null}:"mod"===r?{div:null,mod:new a(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new a(this.modn(t.words[0]))}:this._wordDiv(t,r);var c,C,S},a.prototype.div=function(t){return this.divmod(t,"div",!1).div},a.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},a.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},a.prototype.divRound=function(t){var r=this.divmod(t);if(r.mod.isZero())return r.div;var h=0!==r.div.negative?r.mod.isub(t):r.mod,c=t.ushrn(1),C=t.andln(1),S=h.cmp(c);return S<0||1===C&&0===S?r.div:0!==r.div.negative?r.div.isubn(1):r.div.iaddn(1)},a.prototype.modn=function(t){u(t<=67108863);for(var r=(1<<26)%t,h=0,c=this.length-1;c>=0;c--)h=(r*h+(0|this.words[c]))%t;return h},a.prototype.idivn=function(t){u(t<=67108863);for(var r=0,h=this.length-1;h>=0;h--){var c=(0|this.words[h])+67108864*r;this.words[h]=c/t|0,r=c%t}return this.strip()},a.prototype.divn=function(t){return this.clone().idivn(t)},a.prototype.egcd=function(t){u(0===t.negative),u(!t.isZero());var r=this,h=t.clone();r=0!==r.negative?r.umod(t):r.clone();for(var c=new a(1),C=new a(0),S=new a(0),I=new a(1),_=0;r.isEven()&&h.isEven();)r.iushrn(1),h.iushrn(1),++_;for(var n=h.clone(),g=r.clone();!r.isZero();){for(var V=0,R=1;0==(r.words[0]&R)&&V<26;++V,R<<=1);if(V>0)for(r.iushrn(V);V-- >0;)(c.isOdd()||C.isOdd())&&(c.iadd(n),C.isub(g)),c.iushrn(1),C.iushrn(1);for(var H=0,$=1;0==(h.words[0]&$)&&H<26;++H,$<<=1);if(H>0)for(h.iushrn(H);H-- >0;)(S.isOdd()||I.isOdd())&&(S.iadd(n),I.isub(g)),S.iushrn(1),I.iushrn(1);r.cmp(h)>=0?(r.isub(h),c.isub(S),C.isub(I)):(h.isub(r),S.isub(c),I.isub(C))}return{a:S,b:I,gcd:h.iushln(_)}},a.prototype._invmp=function(t){u(0===t.negative),u(!t.isZero());var V,r=this,h=t.clone();r=0!==r.negative?r.umod(t):r.clone();for(var c=new a(1),C=new a(0),S=h.clone();r.cmpn(1)>0&&h.cmpn(1)>0;){for(var I=0,_=1;0==(r.words[0]&_)&&I<26;++I,_<<=1);if(I>0)for(r.iushrn(I);I-- >0;)c.isOdd()&&c.iadd(S),c.iushrn(1);for(var n=0,g=1;0==(h.words[0]&g)&&n<26;++n,g<<=1);if(n>0)for(h.iushrn(n);n-- >0;)C.isOdd()&&C.iadd(S),C.iushrn(1);r.cmp(h)>=0?(r.isub(h),c.isub(C)):(h.isub(r),C.isub(c))}return(V=0===r.cmpn(1)?c:C).cmpn(0)<0&&V.iadd(t),V},a.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var r=this.clone(),h=t.clone();r.negative=0,h.negative=0;for(var c=0;r.isEven()&&h.isEven();c++)r.iushrn(1),h.iushrn(1);for(;;){for(;r.isEven();)r.iushrn(1);for(;h.isEven();)h.iushrn(1);var C=r.cmp(h);if(C<0){var S=r;r=h,h=S}else if(0===C||0===h.cmpn(1))break;r.isub(h)}return h.iushln(c)},a.prototype.invm=function(t){return this.egcd(t).a.umod(t)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(t){return this.words[0]&t},a.prototype.bincn=function(t){u("number"==typeof t);var r=t%26,h=(t-r)/26,c=1<<r;if(this.length<=h)return this._expand(h+1),this.words[h]|=c,this;for(var C=c,S=h;0!==C&&S<this.length;S++){var I=0|this.words[S];C=(I+=C)>>>26,this.words[S]=I&=67108863}return 0!==C&&(this.words[S]=C,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(t){var h,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)h=1;else{r&&(t=-t),u(t<=67108863,"Number is too big");var c=0|this.words[0];h=c===t?0:c<t?-1:1}return 0!==this.negative?0|-h:h},a.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var r=this.ucmp(t);return 0!==this.negative?0|-r:r},a.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var r=0,h=this.length-1;h>=0;h--){var c=0|this.words[h],C=0|t.words[h];if(c!==C){c<C?r=-1:c>C&&(r=1);break}}return r},a.prototype.gtn=function(t){return 1===this.cmpn(t)},a.prototype.gt=function(t){return 1===this.cmp(t)},a.prototype.gten=function(t){return this.cmpn(t)>=0},a.prototype.gte=function(t){return this.cmp(t)>=0},a.prototype.ltn=function(t){return-1===this.cmpn(t)},a.prototype.lt=function(t){return-1===this.cmp(t)},a.prototype.lten=function(t){return this.cmpn(t)<=0},a.prototype.lte=function(t){return this.cmp(t)<=0},a.prototype.eqn=function(t){return 0===this.cmpn(t)},a.prototype.eq=function(t){return 0===this.cmp(t)},a.red=function(t){return new J(t)},a.prototype.toRed=function(t){return u(!this.red,"Already a number in reduction context"),u(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},a.prototype.fromRed=function(){return u(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(t){return this.red=t,this},a.prototype.forceRed=function(t){return u(!this.red,"Already a number in reduction context"),this._forceRed(t)},a.prototype.redAdd=function(t){return u(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},a.prototype.redIAdd=function(t){return u(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},a.prototype.redSub=function(t){return u(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},a.prototype.redISub=function(t){return u(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},a.prototype.redShl=function(t){return u(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},a.prototype.redMul=function(t){return u(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},a.prototype.redIMul=function(t){return u(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},a.prototype.redSqr=function(){return u(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return u(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return u(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return u(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return u(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(t){return u(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var ne={k256:null,p224:null,p192:null,p25519:null};function Q(x,t){this.name=x,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function le(){Q.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function q(){Q.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ie(){Q.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function se(){Q.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function J(x){if("string"==typeof x){var t=a._prime(x);this.m=t.p,this.prime=t}else u(x.gtn(1),"modulus must be greater than 1"),this.m=x,this.prime=null}function me(x){J.call(this,x),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(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)}Q.prototype._tmp=function(){var t=new a(null);return t.words=new Array(Math.ceil(this.n/13)),t},Q.prototype.ireduce=function(t){var h,r=t;do{this.split(r,this.tmp),h=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(h>this.n);var c=h<this.n?-1:r.ucmp(this.p);return 0===c?(r.words[0]=0,r.length=1):c>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},Q.prototype.split=function(t,r){t.iushrn(this.n,0,r)},Q.prototype.imulK=function(t){return t.imul(this.k)},b(le,Q),le.prototype.split=function(t,r){for(var h=4194303,c=Math.min(t.length,9),C=0;C<c;C++)r.words[C]=t.words[C];if(r.length=c,t.length<=9)return t.words[0]=0,void(t.length=1);var S=t.words[9];for(r.words[r.length++]=S&h,C=10;C<t.length;C++){var I=0|t.words[C];t.words[C-10]=(I&h)<<4|S>>>22,S=I}t.words[C-10]=S>>>=22,t.length-=0===S&&t.length>10?10:9},le.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var r=0,h=0;h<t.length;h++){var c=0|t.words[h];t.words[h]=67108863&(r+=977*c),r=64*c+(r/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},b(q,Q),b(ie,Q),b(se,Q),se.prototype.imulK=function(t){for(var r=0,h=0;h<t.length;h++){var c=19*(0|t.words[h])+r,C=67108863&c;c>>>=26,t.words[h]=C,r=c}return 0!==r&&(t.words[t.length++]=r),t},a._prime=function(t){if(ne[t])return ne[t];var r;if("k256"===t)r=new le;else if("p224"===t)r=new q;else if("p192"===t)r=new ie;else{if("p25519"!==t)throw new Error("Unknown prime "+t);r=new se}return ne[t]=r,r},J.prototype._verify1=function(t){u(0===t.negative,"red works only with positives"),u(t.red,"red works only with red numbers")},J.prototype._verify2=function(t,r){u(0==(t.negative|r.negative),"red works only with positives"),u(t.red&&t.red===r.red,"red works only with red numbers")},J.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},J.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},J.prototype.add=function(t,r){this._verify2(t,r);var h=t.add(r);return h.cmp(this.m)>=0&&h.isub(this.m),h._forceRed(this)},J.prototype.iadd=function(t,r){this._verify2(t,r);var h=t.iadd(r);return h.cmp(this.m)>=0&&h.isub(this.m),h},J.prototype.sub=function(t,r){this._verify2(t,r);var h=t.sub(r);return h.cmpn(0)<0&&h.iadd(this.m),h._forceRed(this)},J.prototype.isub=function(t,r){this._verify2(t,r);var h=t.isub(r);return h.cmpn(0)<0&&h.iadd(this.m),h},J.prototype.shl=function(t,r){return this._verify1(t),this.imod(t.ushln(r))},J.prototype.imul=function(t,r){return this._verify2(t,r),this.imod(t.imul(r))},J.prototype.mul=function(t,r){return this._verify2(t,r),this.imod(t.mul(r))},J.prototype.isqr=function(t){return this.imul(t,t.clone())},J.prototype.sqr=function(t){return this.mul(t,t)},J.prototype.sqrt=function(t){if(t.isZero())return t.clone();var r=this.m.andln(3);if(u(r%2==1),3===r){var h=this.m.add(new a(1)).iushrn(2);return this.pow(t,h)}for(var c=this.m.subn(1),C=0;!c.isZero()&&0===c.andln(1);)C++,c.iushrn(1);u(!c.isZero());var S=new a(1).toRed(this),I=S.redNeg(),_=this.m.subn(1).iushrn(1),n=this.m.bitLength();for(n=new a(2*n*n).toRed(this);0!==this.pow(n,_).cmp(I);)n.redIAdd(I);for(var g=this.pow(n,c),V=this.pow(t,c.addn(1).iushrn(1)),R=this.pow(t,c),H=C;0!==R.cmp(S);){for(var $=R,fe=0;0!==$.cmp(S);fe++)$=$.redSqr();u(fe<H);var ye=this.pow(g,new a(1).iushln(H-fe-1));V=V.redMul(ye),g=ye.redSqr(),R=R.redMul(g),H=fe}return V},J.prototype.invm=function(t){var r=t._invmp(this.m);return 0!==r.negative?(r.negative=0,this.imod(r).redNeg()):this.imod(r)},J.prototype.pow=function(t,r){if(r.isZero())return new a(1).toRed(this);if(0===r.cmpn(1))return t.clone();var c=new Array(16);c[0]=new a(1).toRed(this),c[1]=t;for(var C=2;C<c.length;C++)c[C]=this.mul(c[C-1],t);var S=c[0],I=0,_=0,n=r.bitLength()%26;for(0===n&&(n=26),C=r.length-1;C>=0;C--){for(var g=r.words[C],V=n-1;V>=0;V--){var R=g>>V&1;S!==c[0]&&(S=this.sqr(S)),0!==R||0!==I?(I<<=1,I|=R,(4==++_||0===C&&0===V)&&(S=this.mul(S,c[I]),_=0,I=0)):_=0}n=26}return S},J.prototype.convertTo=function(t){var r=t.umod(this.m);return r===t?r.clone():r},J.prototype.convertFrom=function(t){var r=t.clone();return r.red=null,r},a.mont=function(t){return new me(t)},b(me,J),me.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},me.prototype.convertFrom=function(t){var r=this.imod(t.mul(this.rinv));return r.red=null,r},me.prototype.imul=function(t,r){if(t.isZero()||r.isZero())return t.words[0]=0,t.length=1,t;var h=t.imul(r),c=h.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),C=h.isub(c).iushrn(this.shift),S=C;return C.cmp(this.m)>=0?S=C.isub(this.m):C.cmpn(0)<0&&(S=C.iadd(this.m)),S._forceRed(this)},me.prototype.mul=function(t,r){if(t.isZero()||r.isZero())return new a(0)._forceRed(this);var h=t.mul(r),c=h.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),C=h.isub(c).iushrn(this.shift),S=C;return C.cmp(this.m)>=0?S=C.isub(this.m):C.cmpn(0)<0&&(S=C.iadd(this.m)),S._forceRed(this)},me.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(He=p.nmd(He),this)},6705:(He,j,p)=>{var e=p(2772),i=p(6945),u=p(9401),b=p(2057),a=p(8466),y=p(6386),d=p(8651),P=p(3502).Buffer;He.exports=function(E,k,w){var z;z=E.padding?E.padding:w?1:4;var ne,U=e(E),W=U.modulus.byteLength();if(k.length>W||new b(k).cmp(U.modulus)>=0)throw new Error("decryption error");ne=w?d(new b(k),U):a(k,U);var Q=P.alloc(W-ne.length);if(ne=P.concat([Q,ne],W),4===z)return function D(A,E){var k=A.modulus.byteLength(),w=y("sha1").update(P.alloc(0)).digest(),z=w.length;if(0!==E[0])throw new Error("decryption error");var U=E.slice(1,z+1),W=E.slice(z+1),ne=u(U,i(W,z)),Q=u(W,i(ne,k-z-1));if(function M(A,E){A=P.from(A),E=P.from(E);var k=0,w=A.length;A.length!==E.length&&(k++,w=Math.min(A.length,E.length));for(var z=-1;++z<w;)k+=A[z]^E[z];return k}(w,Q.slice(0,z)))throw new Error("decryption error");for(var le=z;0===Q[le];)le++;if(1!==Q[le++])throw new Error("decryption error");return Q.slice(le)}(U,ne);if(1===z)return function T(A,E,k){for(var w=E.slice(0,2),z=2,U=0;0!==E[z++];)if(z>=E.length){U++;break}var W=E.slice(2,z-1);if(("0002"!==w.toString("hex")&&!k||"0001"!==w.toString("hex")&&k)&&U++,W.length<8&&U++,U)throw new Error("decryption error");return E.slice(z)}(0,ne,w);if(3===z)return ne;throw new Error("unknown padding")}},6562:(He,j,p)=>{var e=p(2772),i=p(3753),u=p(6386),b=p(6945),a=p(9401),y=p(2057),d=p(8651),P=p(8466),D=p(3502).Buffer;He.exports=function(k,w,z){var U;U=k.padding?k.padding:z?1:4;var ne,W=e(k);if(4===U)ne=function T(E,k){var w=E.modulus.byteLength(),z=k.length,U=u("sha1").update(D.alloc(0)).digest(),W=U.length,ne=2*W;if(z>w-ne-2)throw new Error("message too long");var Q=D.alloc(w-z-ne-2),le=w-W-1,q=i(W),ie=a(D.concat([U,Q,D.alloc(1,1),k],le),b(q,le)),se=a(q,b(ie,W));return new y(D.concat([D.alloc(1),se,ie],w))}(W,w);else if(1===U)ne=function M(E,k,w){var W,z=k.length,U=E.modulus.byteLength();if(z>U-11)throw new Error("message too long");return W=w?D.alloc(U-z-3,255):function A(E){for(var W,k=D.allocUnsafe(E),w=0,z=i(2*E),U=0;w<E;)U===z.length&&(z=i(2*E),U=0),(W=z[U++])&&(k[w++]=W);return k}(U-z-3),new y(D.concat([D.from([0,w?1:2]),W,D.alloc(1),k],U))}(W,w,z);else{if(3!==U)throw new Error("unknown padding");if((ne=new y(w)).cmp(W.modulus)>=0)throw new Error("data too long for modulus")}return z?P(ne,W):d(ne,W)}},8651:(He,j,p)=>{var e=p(2057),i=p(3502).Buffer;He.exports=function u(b,a){return i.from(b.toRed(e.mont(a.modulus)).redPow(new e(a.publicExponent)).fromRed().toArray())}},9401:He=>{He.exports=function(p,e){for(var i=p.length,u=-1;++u<i;)p[u]^=e[u];return p}},3259:(He,j,p)=>{const e=p(8695),i=p(1465),u=p(3210),b=p(2334);function a(y,d,P,D,T){const M=[].slice.call(arguments,1),A=M.length,E="function"==typeof M[A-1];if(!E&&!e())throw new Error("Callback required as last argument");if(!E){if(A<1)throw new Error("Too few arguments provided");return 1===A?(P=d,d=D=void 0):2===A&&!d.getContext&&(D=P,P=d,d=void 0),new Promise(function(k,w){try{const z=i.create(P,D);k(y(z,d,D))}catch(z){w(z)}})}if(A<2)throw new Error("Too few arguments provided");2===A?(T=P,P=d,d=D=void 0):3===A&&(d.getContext&&void 0===T?(T=D,D=void 0):(T=D,D=P,P=d,d=void 0));try{const k=i.create(P,D);T(null,y(k,d,D))}catch(k){T(k)}}j.create=i.create,j.toCanvas=a.bind(null,u.render),j.toDataURL=a.bind(null,u.renderToDataURL),j.toString=a.bind(null,function(y,d,P){return b.render(y,P)})},8695:He=>{He.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},6221:(He,j,p)=>{const e=p(4792).getSymbolSize;j.getRowColCoords=function(u){if(1===u)return[];const b=Math.floor(u/7)+2,a=e(u),y=145===a?26:2*Math.ceil((a-13)/(2*b-2)),d=[a-7];for(let P=1;P<b-1;P++)d[P]=d[P-1]-y;return d.push(6),d.reverse()},j.getPositions=function(u){const b=[],a=j.getRowColCoords(u),y=a.length;for(let d=0;d<y;d++)for(let P=0;P<y;P++)0===d&&0===P||0===d&&P===y-1||d===y-1&&0===P||b.push([a[d],a[P]]);return b}},2424:(He,j,p)=>{const e=p(4016),i=["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 u(b){this.mode=e.ALPHANUMERIC,this.data=b}u.getBitsLength=function(a){return 11*Math.floor(a/2)+a%2*6},u.prototype.getLength=function(){return this.data.length},u.prototype.getBitsLength=function(){return u.getBitsLength(this.data.length)},u.prototype.write=function(a){let y;for(y=0;y+2<=this.data.length;y+=2){let d=45*i.indexOf(this.data[y]);d+=i.indexOf(this.data[y+1]),a.put(d,11)}this.data.length%2&&a.put(i.indexOf(this.data[y]),6)},He.exports=u},2118:He=>{function j(){this.buffer=[],this.length=0}j.prototype={get:function(p){const e=Math.floor(p/8);return 1==(this.buffer[e]>>>7-p%8&1)},put:function(p,e){for(let i=0;i<e;i++)this.putBit(1==(p>>>e-i-1&1))},getLengthInBits:function(){return this.length},putBit:function(p){const e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),p&&(this.buffer[e]|=128>>>this.length%8),this.length++}},He.exports=j},4425:He=>{function j(p){if(!p||p<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=p,this.data=new Uint8Array(p*p),this.reservedBit=new Uint8Array(p*p)}j.prototype.set=function(p,e,i,u){const b=p*this.size+e;this.data[b]=i,u&&(this.reservedBit[b]=!0)},j.prototype.get=function(p,e){return this.data[p*this.size+e]},j.prototype.xor=function(p,e,i){this.data[p*this.size+e]^=i},j.prototype.isReserved=function(p,e){return this.reservedBit[p*this.size+e]},He.exports=j},5663:(He,j,p)=>{const e=p(8419),i=p(4016);function u(b){this.mode=i.BYTE,"string"==typeof b&&(b=e(b)),this.data=new Uint8Array(b)}u.getBitsLength=function(a){return 8*a},u.prototype.getLength=function(){return this.data.length},u.prototype.getBitsLength=function(){return u.getBitsLength(this.data.length)},u.prototype.write=function(b){for(let a=0,y=this.data.length;a<y;a++)b.put(this.data[a],8)},He.exports=u},4655:(He,j,p)=>{const e=p(2259),i=[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],u=[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];j.getBlocksCount=function(a,y){switch(y){case e.L:return i[4*(a-1)+0];case e.M:return i[4*(a-1)+1];case e.Q:return i[4*(a-1)+2];case e.H:return i[4*(a-1)+3];default:return}},j.getTotalCodewordsCount=function(a,y){switch(y){case e.L:return u[4*(a-1)+0];case e.M:return u[4*(a-1)+1];case e.Q:return u[4*(a-1)+2];case e.H:return u[4*(a-1)+3];default:return}}},2259:(He,j)=>{j.L={bit:1},j.M={bit:0},j.Q={bit:3},j.H={bit:2},j.isValid=function(i){return i&&void 0!==i.bit&&i.bit>=0&&i.bit<4},j.from=function(i,u){if(j.isValid(i))return i;try{return function p(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return j.L;case"m":case"medium":return j.M;case"q":case"quartile":return j.Q;case"h":case"high":return j.H;default:throw new Error("Unknown EC Level: "+e)}}(i)}catch(b){return u}}},3114:(He,j,p)=>{const e=p(4792).getSymbolSize;j.getPositions=function(b){const a=e(b);return[[0,0],[a-7,0],[0,a-7]]}},7078:(He,j,p)=>{const e=p(4792),b=e.getBCHDigit(1335);j.getEncodedBits=function(y,d){const P=y.bit<<3|d;let D=P<<10;for(;e.getBCHDigit(D)-b>=0;)D^=1335<<e.getBCHDigit(D)-b;return 21522^(P<<10|D)}},5339:(He,j)=>{const p=new Uint8Array(512),e=new Uint8Array(256);(function(){let u=1;for(let b=0;b<255;b++)p[b]=u,e[u]=b,u<<=1,256&u&&(u^=285);for(let b=255;b<512;b++)p[b]=p[b-255]})(),j.log=function(u){if(u<1)throw new Error("log("+u+")");return e[u]},j.exp=function(u){return p[u]},j.mul=function(u,b){return 0===u||0===b?0:p[e[u]+e[b]]}},4388:(He,j,p)=>{const e=p(4016),i=p(4792);function u(b){this.mode=e.KANJI,this.data=b}u.getBitsLength=function(a){return 13*a},u.prototype.getLength=function(){return this.data.length},u.prototype.getBitsLength=function(){return u.getBitsLength(this.data.length)},u.prototype.write=function(b){let a;for(a=0;a<this.data.length;a++){let y=i.toSJIS(this.data[a]);if(y>=33088&&y<=40956)y-=33088;else{if(!(y>=57408&&y<=60351))throw new Error("Invalid SJIS character: "+this.data[a]+"\nMake sure your charset is UTF-8");y-=49472}y=192*(y>>>8&255)+(255&y),b.put(y,13)}},He.exports=u},3667:(He,j)=>{j.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};function e(i,u,b){switch(i){case j.Patterns.PATTERN000:return(u+b)%2==0;case j.Patterns.PATTERN001:return u%2==0;case j.Patterns.PATTERN010:return b%3==0;case j.Patterns.PATTERN011:return(u+b)%3==0;case j.Patterns.PATTERN100:return(Math.floor(u/2)+Math.floor(b/3))%2==0;case j.Patterns.PATTERN101:return u*b%2+u*b%3==0;case j.Patterns.PATTERN110:return(u*b%2+u*b%3)%2==0;case j.Patterns.PATTERN111:return(u*b%3+(u+b)%2)%2==0;default:throw new Error("bad maskPattern:"+i)}}j.isValid=function(u){return null!=u&&""!==u&&!isNaN(u)&&u>=0&&u<=7},j.from=function(u){return j.isValid(u)?parseInt(u,10):void 0},j.getPenaltyN1=function(u){const b=u.size;let a=0,y=0,d=0,P=null,D=null;for(let T=0;T<b;T++){y=d=0,P=D=null;for(let M=0;M<b;M++){let A=u.get(T,M);A===P?y++:(y>=5&&(a+=y-5+3),P=A,y=1),A=u.get(M,T),A===D?d++:(d>=5&&(a+=d-5+3),D=A,d=1)}y>=5&&(a+=y-5+3),d>=5&&(a+=d-5+3)}return a},j.getPenaltyN2=function(u){const b=u.size;let a=0;for(let y=0;y<b-1;y++)for(let d=0;d<b-1;d++){const P=u.get(y,d)+u.get(y,d+1)+u.get(y+1,d)+u.get(y+1,d+1);(4===P||0===P)&&a++}return 3*a},j.getPenaltyN3=function(u){const b=u.size;let a=0,y=0,d=0;for(let P=0;P<b;P++){y=d=0;for(let D=0;D<b;D++)y=y<<1&2047|u.get(P,D),D>=10&&(1488===y||93===y)&&a++,d=d<<1&2047|u.get(D,P),D>=10&&(1488===d||93===d)&&a++}return 40*a},j.getPenaltyN4=function(u){let b=0;const a=u.data.length;for(let d=0;d<a;d++)b+=u.data[d];return 10*Math.abs(Math.ceil(100*b/a/5)-10)},j.applyMask=function(u,b){const a=b.size;for(let y=0;y<a;y++)for(let d=0;d<a;d++)b.isReserved(d,y)||b.xor(d,y,e(u,d,y))},j.getBestMask=function(u,b){const a=Object.keys(j.Patterns).length;let y=0,d=1/0;for(let P=0;P<a;P++){b(P),j.applyMask(P,u);const D=j.getPenaltyN1(u)+j.getPenaltyN2(u)+j.getPenaltyN3(u)+j.getPenaltyN4(u);j.applyMask(P,u),D<d&&(d=D,y=P)}return y}},4016:(He,j,p)=>{const e=p(4406),i=p(2699);j.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},j.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},j.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},j.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},j.MIXED={bit:-1},j.getCharCountIndicator=function(a,y){if(!a.ccBits)throw new Error("Invalid mode: "+a);if(!e.isValid(y))throw new Error("Invalid version: "+y);return y>=1&&y<10?a.ccBits[0]:y<27?a.ccBits[1]:a.ccBits[2]},j.getBestModeForData=function(a){return i.testNumeric(a)?j.NUMERIC:i.testAlphanumeric(a)?j.ALPHANUMERIC:i.testKanji(a)?j.KANJI:j.BYTE},j.toString=function(a){if(a&&a.id)return a.id;throw new Error("Invalid mode")},j.isValid=function(a){return a&&a.bit&&a.ccBits},j.from=function(a,y){if(j.isValid(a))return a;try{return function u(b){if("string"!=typeof b)throw new Error("Param is not a string");switch(b.toLowerCase()){case"numeric":return j.NUMERIC;case"alphanumeric":return j.ALPHANUMERIC;case"kanji":return j.KANJI;case"byte":return j.BYTE;default:throw new Error("Unknown mode: "+b)}}(a)}catch(d){return y}}},7783:(He,j,p)=>{const e=p(4016);function i(u){this.mode=e.NUMERIC,this.data=u.toString()}i.getBitsLength=function(b){return 10*Math.floor(b/3)+(b%3?b%3*3+1:0)},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(b){let a,y,d;for(a=0;a+3<=this.data.length;a+=3)y=this.data.substr(a,3),d=parseInt(y,10),b.put(d,10);const P=this.data.length-a;P>0&&(y=this.data.substr(a),d=parseInt(y,10),b.put(d,3*P+1))},He.exports=i},1106:(He,j,p)=>{const e=p(5339);j.mul=function(u,b){const a=new Uint8Array(u.length+b.length-1);for(let y=0;y<u.length;y++)for(let d=0;d<b.length;d++)a[y+d]^=e.mul(u[y],b[d]);return a},j.mod=function(u,b){let a=new Uint8Array(u);for(;a.length-b.length>=0;){const y=a[0];for(let P=0;P<b.length;P++)a[P]^=e.mul(b[P],y);let d=0;for(;d<a.length&&0===a[d];)d++;a=a.slice(d)}return a},j.generateECPolynomial=function(u){let b=new Uint8Array([1]);for(let a=0;a<u;a++)b=j.mul(b,new Uint8Array([1,e.exp(a)]));return b}},1465:(He,j,p)=>{const e=p(4792),i=p(2259),u=p(2118),b=p(4425),a=p(6221),y=p(3114),d=p(3667),P=p(4655),D=p(2636),T=p(2088),M=p(7078),A=p(4016),E=p(2033);function W(ie,se,J){const me=ie.size,x=M.getEncodedBits(se,J);let t,r;for(t=0;t<15;t++)r=1==(x>>t&1),ie.set(t<6?t:t<8?t+1:me-15+t,8,r,!0),ie.set(8,t<8?me-t-1:t<9?15-t-1+1:15-t-1,r,!0);ie.set(me-8,8,1,!0)}function q(ie,se,J,me){let x;if(Array.isArray(ie))x=E.fromArray(ie);else{if("string"!=typeof ie)throw new Error("Invalid data");{let C=se;if(!C){const S=E.rawSplit(ie);C=T.getBestVersionForData(S,J)}x=E.fromString(ie,C||40)}}const t=T.getBestVersionForData(x,J);if(!t)throw new Error("The amount of data is too big to be stored in a QR Code");if(se){if(se<t)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+t+".\n")}else se=t;const r=function Q(ie,se,J){const me=new u;J.forEach(function(c){me.put(c.mode.bit,4),me.put(c.getLength(),A.getCharCountIndicator(c.mode,ie)),c.write(me)});const r=8*(e.getSymbolTotalCodewords(ie)-P.getTotalCodewordsCount(ie,se));for(me.getLengthInBits()+4<=r&&me.put(0,4);me.getLengthInBits()%8!=0;)me.putBit(0);const h=(r-me.getLengthInBits())/8;for(let c=0;c<h;c++)me.put(c%2?17:236,8);return function le(ie,se,J){const me=e.getSymbolTotalCodewords(se),t=me-P.getTotalCodewordsCount(se,J),r=P.getBlocksCount(se,J),c=r-me%r,C=Math.floor(me/r),S=Math.floor(t/r),I=S+1,_=C-S,n=new D(_);let g=0;const V=new Array(r),R=new Array(r);let H=0;const $=new Uint8Array(ie.buffer);for(let te=0;te<r;te++){const ze=te<c?S:I;V[te]=$.slice(g,g+ze),R[te]=n.encode(V[te]),g+=ze,H=Math.max(H,ze)}const fe=new Uint8Array(me);let ke,Ee,ye=0;for(ke=0;ke<H;ke++)for(Ee=0;Ee<r;Ee++)ke<V[Ee].length&&(fe[ye++]=V[Ee][ke]);for(ke=0;ke<_;ke++)for(Ee=0;Ee<r;Ee++)fe[ye++]=R[Ee][ke];return fe}(me,ie,se)}(se,J,x),h=e.getSymbolSize(se),c=new b(h);return function k(ie,se){const J=ie.size,me=y.getPositions(se);for(let x=0;x<me.length;x++){const t=me[x][0],r=me[x][1];for(let h=-1;h<=7;h++)if(!(t+h<=-1||J<=t+h))for(let c=-1;c<=7;c++)r+c<=-1||J<=r+c||ie.set(t+h,r+c,h>=0&&h<=6&&(0===c||6===c)||c>=0&&c<=6&&(0===h||6===h)||h>=2&&h<=4&&c>=2&&c<=4,!0)}}(c,se),function w(ie){const se=ie.size;for(let J=8;J<se-8;J++){const me=J%2==0;ie.set(J,6,me,!0),ie.set(6,J,me,!0)}}(c),function z(ie,se){const J=a.getPositions(se);for(let me=0;me<J.length;me++){const x=J[me][0],t=J[me][1];for(let r=-2;r<=2;r++)for(let h=-2;h<=2;h++)ie.set(x+r,t+h,-2===r||2===r||-2===h||2===h||0===r&&0===h,!0)}}(c,se),W(c,J,0),se>=7&&function U(ie,se){const J=ie.size,me=T.getEncodedBits(se);let x,t,r;for(let h=0;h<18;h++)x=Math.floor(h/3),t=h%3+J-8-3,r=1==(me>>h&1),ie.set(x,t,r,!0),ie.set(t,x,r,!0)}(c,se),function ne(ie,se){const J=ie.size;let me=-1,x=J-1,t=7,r=0;for(let h=J-1;h>0;h-=2)for(6===h&&h--;;){for(let c=0;c<2;c++)if(!ie.isReserved(x,h-c)){let C=!1;r<se.length&&(C=1==(se[r]>>>t&1)),ie.set(x,h-c,C),t--,-1===t&&(r++,t=7)}if(x+=me,x<0||J<=x){x-=me,me=-me;break}}}(c,r),isNaN(me)&&(me=d.getBestMask(c,W.bind(null,c,J))),d.applyMask(me,c),W(c,J,me),{modules:c,version:se,errorCorrectionLevel:J,maskPattern:me,segments:x}}j.create=function(se,J){if(void 0===se||""===se)throw new Error("No input text");let x,t,me=i.M;return void 0!==J&&(me=i.from(J.errorCorrectionLevel,i.M),x=T.from(J.version),t=d.from(J.maskPattern),J.toSJISFunc&&e.setToSJISFunction(J.toSJISFunc)),q(se,x,me,t)}},2636:(He,j,p)=>{const e=p(1106);function i(u){this.genPoly=void 0,this.degree=u,this.degree&&this.initialize(this.degree)}i.prototype.initialize=function(b){this.degree=b,this.genPoly=e.generateECPolynomial(this.degree)},i.prototype.encode=function(b){if(!this.genPoly)throw new Error("Encoder not initialized");const a=new Uint8Array(b.length+this.degree);a.set(b);const y=e.mod(a,this.genPoly),d=this.degree-y.length;if(d>0){const P=new Uint8Array(this.degree);return P.set(y,d),P}return y},He.exports=i},2699:(He,j)=>{const p="[0-9]+";let i="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";i=i.replace(/u/g,"\\u");const u="(?:(?![A-Z0-9 $%*+\\-./:]|"+i+")(?:.|[\r\n]))+";j.KANJI=new RegExp(i,"g"),j.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),j.BYTE=new RegExp(u,"g"),j.NUMERIC=new RegExp(p,"g"),j.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const b=new RegExp("^"+i+"$"),a=new RegExp("^"+p+"$"),y=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");j.testKanji=function(P){return b.test(P)},j.testNumeric=function(P){return a.test(P)},j.testAlphanumeric=function(P){return y.test(P)}},2033:(He,j,p)=>{const e=p(4016),i=p(7783),u=p(2424),b=p(5663),a=p(4388),y=p(2699),d=p(4792),P=p(4901);function D(U){return unescape(encodeURIComponent(U)).length}function T(U,W,ne){const Q=[];let le;for(;null!==(le=U.exec(ne));)Q.push({data:le[0],index:le.index,mode:W,length:le[0].length});return Q}function M(U){const W=T(y.NUMERIC,e.NUMERIC,U),ne=T(y.ALPHANUMERIC,e.ALPHANUMERIC,U);let Q,le;return d.isKanjiModeEnabled()?(Q=T(y.BYTE,e.BYTE,U),le=T(y.KANJI,e.KANJI,U)):(Q=T(y.BYTE_KANJI,e.BYTE,U),le=[]),W.concat(ne,Q,le).sort(function(ie,se){return ie.index-se.index}).map(function(ie){return{data:ie.data,mode:ie.mode,length:ie.length}})}function A(U,W){switch(W){case e.NUMERIC:return i.getBitsLength(U);case e.ALPHANUMERIC:return u.getBitsLength(U);case e.KANJI:return a.getBitsLength(U);case e.BYTE:return b.getBitsLength(U)}}function z(U,W){let ne;const Q=e.getBestModeForData(U);if(ne=e.from(W,Q),ne!==e.BYTE&&ne.bit<Q.bit)throw new Error('"'+U+'" cannot be encoded with mode '+e.toString(ne)+".\n Suggested mode is: "+e.toString(Q));switch(ne===e.KANJI&&!d.isKanjiModeEnabled()&&(ne=e.BYTE),ne){case e.NUMERIC:return new i(U);case e.ALPHANUMERIC:return new u(U);case e.KANJI:return new a(U);case e.BYTE:return new b(U)}}j.fromArray=function(W){return W.reduce(function(ne,Q){return"string"==typeof Q?ne.push(z(Q,null)):Q.data&&ne.push(z(Q.data,Q.mode)),ne},[])},j.fromString=function(W,ne){const le=function k(U){const W=[];for(let ne=0;ne<U.length;ne++){const Q=U[ne];switch(Q.mode){case e.NUMERIC:W.push([Q,{data:Q.data,mode:e.ALPHANUMERIC,length:Q.length},{data:Q.data,mode:e.BYTE,length:Q.length}]);break;case e.ALPHANUMERIC:W.push([Q,{data:Q.data,mode:e.BYTE,length:Q.length}]);break;case e.KANJI:W.push([Q,{data:Q.data,mode:e.BYTE,length:D(Q.data)}]);break;case e.BYTE:W.push([{data:Q.data,mode:e.BYTE,length:D(Q.data)}])}}return W}(M(W,d.isKanjiModeEnabled())),q=function w(U,W){const ne={},Q={start:{}};let le=["start"];for(let q=0;q<U.length;q++){const ie=U[q],se=[];for(let J=0;J<ie.length;J++){const me=ie[J],x=""+q+J;se.push(x),ne[x]={node:me,lastCount:0},Q[x]={};for(let t=0;t<le.length;t++){const r=le[t];ne[r]&&ne[r].node.mode===me.mode?(Q[r][x]=A(ne[r].lastCount+me.length,me.mode)-A(ne[r].lastCount,me.mode),ne[r].lastCount+=me.length):(ne[r]&&(ne[r].lastCount=me.length),Q[r][x]=A(me.length,me.mode)+4+e.getCharCountIndicator(me.mode,W))}}le=se}for(let q=0;q<le.length;q++)Q[le[q]].end=0;return{map:Q,table:ne}}(le,ne),ie=P.find_path(q.map,"start","end"),se=[];for(let J=1;J<ie.length-1;J++)se.push(q.table[ie[J]].node);return j.fromArray(function E(U){return U.reduce(function(W,ne){const Q=W.length-1>=0?W[W.length-1]:null;return Q&&Q.mode===ne.mode?(W[W.length-1].data+=ne.data,W):(W.push(ne),W)},[])}(se))},j.rawSplit=function(W){return j.fromArray(M(W,d.isKanjiModeEnabled()))}},4792:(He,j)=>{let p;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];j.getSymbolSize=function(u){if(!u)throw new Error('"version" cannot be null or undefined');if(u<1||u>40)throw new Error('"version" should be in range from 1 to 40');return 4*u+17},j.getSymbolTotalCodewords=function(u){return e[u]},j.getBCHDigit=function(i){let u=0;for(;0!==i;)u++,i>>>=1;return u},j.setToSJISFunction=function(u){if("function"!=typeof u)throw new Error('"toSJISFunc" is not a valid function.');p=u},j.isKanjiModeEnabled=function(){return void 0!==p},j.toSJIS=function(u){return p(u)}},4406:(He,j)=>{j.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},2088:(He,j,p)=>{const e=p(4792),i=p(4655),u=p(2259),b=p(4016),a=p(4406),d=e.getBCHDigit(7973);function D(A,E){return b.getCharCountIndicator(A,E)+4}function T(A,E){let k=0;return A.forEach(function(w){k+=D(w.mode,E)+w.getBitsLength()}),k}j.from=function(E,k){return a.isValid(E)?parseInt(E,10):k},j.getCapacity=function(E,k,w){if(!a.isValid(E))throw new Error("Invalid QR Code version");void 0===w&&(w=b.BYTE);const W=8*(e.getSymbolTotalCodewords(E)-i.getTotalCodewordsCount(E,k));if(w===b.MIXED)return W;const ne=W-D(w,E);switch(w){case b.NUMERIC:return Math.floor(ne/10*3);case b.ALPHANUMERIC:return Math.floor(ne/11*2);case b.KANJI:return Math.floor(ne/13);default:return Math.floor(ne/8)}},j.getBestVersionForData=function(E,k){let w;const z=u.from(k,u.M);if(Array.isArray(E)){if(E.length>1)return function M(A,E){for(let k=1;k<=40;k++)if(T(A,k)<=j.getCapacity(k,E,b.MIXED))return k}(E,z);if(0===E.length)return 1;w=E[0]}else w=E;return function P(A,E,k){for(let w=1;w<=40;w++)if(E<=j.getCapacity(w,k,A))return w}(w.mode,w.getLength(),z)},j.getEncodedBits=function(E){if(!a.isValid(E)||E<7)throw new Error("Invalid QR Code version");let k=E<<12;for(;e.getBCHDigit(k)-d>=0;)k^=7973<<e.getBCHDigit(k)-d;return E<<12|k}},3210:(He,j,p)=>{const e=p(6355);j.render=function(a,y,d){let P=d,D=y;void 0===P&&(!y||!y.getContext)&&(P=y,y=void 0),y||(D=function u(){try{return document.createElement("canvas")}catch(b){throw new Error("You need to specify a canvas element")}}()),P=e.getOptions(P);const T=e.getImageWidth(a.modules.size,P),M=D.getContext("2d"),A=M.createImageData(T,T);return e.qrToImageData(A.data,a,P),function i(b,a,y){b.clearRect(0,0,a.width,a.height),a.style||(a.style={}),a.height=y,a.width=y,a.style.height=y+"px",a.style.width=y+"px"}(M,D,T),M.putImageData(A,0,0),D},j.renderToDataURL=function(a,y,d){let P=d;return void 0===P&&(!y||!y.getContext)&&(P=y,y=void 0),P||(P={}),j.render(a,y,P).toDataURL(P.type||"image/png",(P.rendererOpts||{}).quality)}},2334:(He,j,p)=>{const e=p(6355);function i(a,y){const d=a.a/255,P=y+'="'+a.hex+'"';return d<1?P+" "+y+'-opacity="'+d.toFixed(2).slice(1)+'"':P}function u(a,y,d){let P=a+y;return void 0!==d&&(P+=" "+d),P}j.render=function(y,d,P){const D=e.getOptions(d),T=y.modules.size,M=y.modules.data,A=T+2*D.margin,E=D.color.light.a?"<path "+i(D.color.light,"fill")+' d="M0 0h'+A+"v"+A+'H0z"/>':"",k="<path "+i(D.color.dark,"stroke")+' d="'+function b(a,y,d){let P="",D=0,T=!1,M=0;for(let A=0;A<a.length;A++){const E=Math.floor(A%y),k=Math.floor(A/y);!E&&!T&&(T=!0),a[A]?(M++,A>0&&E>0&&a[A-1]||(P+=T?u("M",E+d,.5+k+d):u("m",D,0),D=0,T=!1),E+1<y&&a[A+1]||(P+=u("h",M),M=0)):D++}return P}(M,T,D.margin)+'"/>',U='<svg xmlns="http://www.w3.org/2000/svg" '+(D.width?'width="'+D.width+'" height="'+D.width+'" ':"")+'viewBox="0 0 '+A+" "+A+'" shape-rendering="crispEdges">'+E+k+"</svg>\n";return"function"==typeof P&&P(null,U),U}},6355:(He,j)=>{function p(e){if("number"==typeof e&&(e=e.toString()),"string"!=typeof e)throw new Error("Color should be defined as hex string");let i=e.slice().replace("#","").split("");if(i.length<3||5===i.length||i.length>8)throw new Error("Invalid hex color: "+e);(3===i.length||4===i.length)&&(i=Array.prototype.concat.apply([],i.map(function(b){return[b,b]}))),6===i.length&&i.push("F","F");const u=parseInt(i.join(""),16);return{r:u>>24&255,g:u>>16&255,b:u>>8&255,a:255&u,hex:"#"+i.slice(0,6).join("")}}j.getOptions=function(i){i||(i={}),i.color||(i.color={});const b=i.width&&i.width>=21?i.width:void 0;return{width:b,scale:b?4:i.scale||4,margin:null==i.margin||i.margin<0?4:i.margin,color:{dark:p(i.color.dark||"#000000ff"),light:p(i.color.light||"#ffffffff")},type:i.type,rendererOpts:i.rendererOpts||{}}},j.getScale=function(i,u){return u.width&&u.width>=i+2*u.margin?u.width/(i+2*u.margin):u.scale},j.getImageWidth=function(i,u){const b=j.getScale(i,u);return Math.floor((i+2*u.margin)*b)},j.qrToImageData=function(i,u,b){const a=u.modules.size,y=u.modules.data,d=j.getScale(a,b),P=Math.floor((a+2*b.margin)*d),D=b.margin*d,T=[b.color.light,b.color.dark];for(let M=0;M<P;M++)for(let A=0;A<P;A++){let E=4*(M*P+A),k=b.color.light;M>=D&&A>=D&&M<P-D&&A<P-D&&(k=T[y[Math.floor((M-D)/d)*a+Math.floor((A-D)/d)]?1:0]),i[E++]=k.r,i[E++]=k.g,i[E++]=k.b,i[E]=k.a}}},3753:(He,j,p)=>{"use strict";var e=65536,b=p(3502).Buffer,a=global.crypto||global.msCrypto;He.exports=a&&a.getRandomValues?function y(d,P){if(d>4294967295)throw new RangeError("requested too many random bytes");var D=b.allocUnsafe(d);if(d>0)if(d>e)for(var T=0;T<d;T+=e)a.getRandomValues(D.slice(T,T+e));else a.getRandomValues(D);return"function"==typeof P?process.nextTick(function(){P(null,D)}):D}:function u(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}},4275:(He,j,p)=>{"use strict";function e(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var i=p(3502),u=p(3753),b=i.Buffer,a=i.kMaxLength,y=global.crypto||global.msCrypto,d=Math.pow(2,32)-1;function P(E,k){if("number"!=typeof E||E!=E)throw new TypeError("offset must be a number");if(E>d||E<0)throw new TypeError("offset must be a uint32");if(E>a||E>k)throw new RangeError("offset out of range")}function D(E,k,w){if("number"!=typeof E||E!=E)throw new TypeError("size must be a number");if(E>d||E<0)throw new TypeError("size must be a uint32");if(E+k>w||E>a)throw new RangeError("buffer too small")}function M(E,k,w,z){if(process.browser){var W=new Uint8Array(E.buffer,k,w);return y.getRandomValues(W),z?void process.nextTick(function(){z(null,E)}):E}if(!z)return u(w).copy(E,k),E;u(w,function(Q,le){if(Q)return z(Q);le.copy(E,k),z(null,E)})}y&&y.getRandomValues||!process.browser?(j.randomFill=function T(E,k,w,z){if(!(b.isBuffer(E)||E instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof k)z=k,k=0,w=E.length;else if("function"==typeof w)z=w,w=E.length-k;else if("function"!=typeof z)throw new TypeError('"cb" argument must be a function');return P(k,E.length),D(w,k,E.length),M(E,k,w,z)},j.randomFillSync=function A(E,k,w){if(void 0===k&&(k=0),!(b.isBuffer(E)||E instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return P(k,E.length),void 0===w&&(w=E.length-k),D(w,k,E.length),M(E,k,w)}):(j.randomFill=e,j.randomFillSync=e)},891:He=>{"use strict";var p={};function e(y,d,P){P||(P=Error);var T=function(M){function A(E,k,w){return M.call(this,function D(M,A,E){return"string"==typeof d?d:d(M,A,E)}(E,k,w))||this}return function j(y,d){y.prototype=Object.create(d.prototype),y.prototype.constructor=y,y.__proto__=d}(A,M),A}(P);T.prototype.name=P.name,T.prototype.code=y,p[y]=T}function i(y,d){if(Array.isArray(y)){var P=y.length;return y=y.map(function(D){return String(D)}),P>2?"one of ".concat(d," ").concat(y.slice(0,P-1).join(", "),", or ")+y[P-1]:2===P?"one of ".concat(d," ").concat(y[0]," or ").concat(y[1]):"of ".concat(d," ").concat(y[0])}return"of ".concat(d," ").concat(String(y))}e("ERR_INVALID_OPT_VALUE",function(y,d){return'The value "'+d+'" is invalid for option "'+y+'"'},TypeError),e("ERR_INVALID_ARG_TYPE",function(y,d,P){var D,T;if("string"==typeof d&&function u(y,d,P){return y.substr(!P||P<0?0:+P,d.length)===d}(d,"not ")?(D="must not be",d=d.replace(/^not /,"")):D="must be",function b(y,d,P){return(void 0===P||P>y.length)&&(P=y.length),y.substring(P-d.length,P)===d}(y," argument"))T="The ".concat(y," ").concat(D," ").concat(i(d,"type"));else{var M=function a(y,d,P){return"number"!=typeof P&&(P=0),!(P+d.length>y.length)&&-1!==y.indexOf(d,P)}(y,".")?"property":"argument";T='The "'.concat(y,'" ').concat(M," ").concat(D," ").concat(i(d,"type"))}return T+". Received type ".concat(typeof P)},TypeError),e("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),e("ERR_METHOD_NOT_IMPLEMENTED",function(y){return"The "+y+" method is not implemented"}),e("ERR_STREAM_PREMATURE_CLOSE","Premature close"),e("ERR_STREAM_DESTROYED",function(y){return"Cannot call "+y+" 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(y){return"Unknown encoding: "+y},TypeError),e("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),He.exports.q=p},1339:(He,j,p)=>{"use strict";var e=Object.keys||function(T){var M=[];for(var A in T)M.push(A);return M};He.exports=d;var i=p(3154),u=p(520);p(3894)(d,i);for(var b=e(u.prototype),a=0;a<b.length;a++){var y=b[a];d.prototype[y]||(d.prototype[y]=u.prototype[y])}function d(T){if(!(this instanceof d))return new d(T);i.call(this,T),u.call(this,T),this.allowHalfOpen=!0,T&&(!1===T.readable&&(this.readable=!1),!1===T.writable&&(this.writable=!1),!1===T.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",P)))}function P(){this._writableState.ended||process.nextTick(D,this)}function D(T){T.end()}Object.defineProperty(d.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(d.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(d.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(d.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(M){void 0===this._readableState||void 0===this._writableState||(this._readableState.destroyed=M,this._writableState.destroyed=M)}})},6071:(He,j,p)=>{"use strict";He.exports=i;var e=p(6025);function i(u){if(!(this instanceof i))return new i(u);e.call(this,u)}p(3894)(i,e),i.prototype._transform=function(u,b,a){a(null,u)}},3154:(He,j,p)=>{"use strict";var e;He.exports=x,x.ReadableState=me,p(9069);var T,u=function(Y,ot){return Y.listeners(ot).length},b=p(4970),a=p(3172).Buffer,y=global.Uint8Array||function(){},D=p(4616);T=D&&D.debuglog?D.debuglog("stream"):function(){};var Q,le,q,M=p(5019),A=p(1920),k=p(7102).getHighWaterMark,w=p(891).q,z=w.ERR_INVALID_ARG_TYPE,U=w.ERR_STREAM_PUSH_AFTER_EOF,W=w.ERR_METHOD_NOT_IMPLEMENTED,ne=w.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;p(3894)(x,b);var ie=A.errorOrDestroy,se=["error","close","destroy","pause","resume"];function me(Z,Y,ot){e=e||p(1339),"boolean"!=typeof ot&&(ot=Y instanceof e),this.objectMode=!!(Z=Z||{}).objectMode,ot&&(this.objectMode=this.objectMode||!!Z.readableObjectMode),this.highWaterMark=k(this,Z,"readableHighWaterMark",ot),this.buffer=new M,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==Z.emitClose,this.autoDestroy=!!Z.autoDestroy,this.destroyed=!1,this.defaultEncoding=Z.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,Z.encoding&&(Q||(Q=p(3054).s),this.decoder=new Q(Z.encoding),this.encoding=Z.encoding)}function x(Z){if(e=e||p(1339),!(this instanceof x))return new x(Z);this._readableState=new me(Z,this,this instanceof e),this.readable=!0,Z&&("function"==typeof Z.read&&(this._read=Z.read),"function"==typeof Z.destroy&&(this._destroy=Z.destroy)),b.call(this)}function t(Z,Y,ot,Ie,Ae){T("readableAddChunk",Y);var Te,ce=Z._readableState;if(null===Y)ce.reading=!1,function I(Z,Y){if(T("onEofChunk"),!Y.ended){if(Y.decoder){var ot=Y.decoder.end();ot&&ot.length&&(Y.buffer.push(ot),Y.length+=Y.objectMode?1:ot.length)}Y.ended=!0,Y.sync?_(Z):(Y.needReadable=!1,Y.emittedReadable||(Y.emittedReadable=!0,n(Z)))}}(Z,ce);else if(Ae||(Te=function h(Z,Y){var ot;return!function P(Z){return a.isBuffer(Z)||Z instanceof y}(Y)&&"string"!=typeof Y&&void 0!==Y&&!Z.objectMode&&(ot=new z("chunk",["string","Buffer","Uint8Array"],Y)),ot}(ce,Y)),Te)ie(Z,Te);else if(ce.objectMode||Y&&Y.length>0)if("string"!=typeof Y&&!ce.objectMode&&Object.getPrototypeOf(Y)!==a.prototype&&(Y=function d(Z){return a.from(Z)}(Y)),Ie)ce.endEmitted?ie(Z,new ne):r(Z,ce,Y,!0);else if(ce.ended)ie(Z,new U);else{if(ce.destroyed)return!1;ce.reading=!1,ce.decoder&&!ot?(Y=ce.decoder.write(Y),ce.objectMode||0!==Y.length?r(Z,ce,Y,!1):g(Z,ce)):r(Z,ce,Y,!1)}else Ie||(ce.reading=!1,g(Z,ce));return!ce.ended&&(ce.length<ce.highWaterMark||0===ce.length)}function r(Z,Y,ot,Ie){Y.flowing&&0===Y.length&&!Y.sync?(Y.awaitDrain=0,Z.emit("data",ot)):(Y.length+=Y.objectMode?1:ot.length,Ie?Y.buffer.unshift(ot):Y.buffer.push(ot),Y.needReadable&&_(Z)),g(Z,Y)}Object.defineProperty(x.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(Y){!this._readableState||(this._readableState.destroyed=Y)}}),x.prototype.destroy=A.destroy,x.prototype._undestroy=A.undestroy,x.prototype._destroy=function(Z,Y){Y(Z)},x.prototype.push=function(Z,Y){var Ie,ot=this._readableState;return ot.objectMode?Ie=!0:"string"==typeof Z&&((Y=Y||ot.defaultEncoding)!==ot.encoding&&(Z=a.from(Z,Y),Y=""),Ie=!0),t(this,Z,Y,!1,Ie)},x.prototype.unshift=function(Z){return t(this,Z,null,!0,!1)},x.prototype.isPaused=function(){return!1===this._readableState.flowing},x.prototype.setEncoding=function(Z){Q||(Q=p(3054).s);var Y=new Q(Z);this._readableState.decoder=Y,this._readableState.encoding=this._readableState.decoder.encoding;for(var ot=this._readableState.buffer.head,Ie="";null!==ot;)Ie+=Y.write(ot.data),ot=ot.next;return this._readableState.buffer.clear(),""!==Ie&&this._readableState.buffer.push(Ie),this._readableState.length=Ie.length,this};var c=1073741824;function S(Z,Y){return Z<=0||0===Y.length&&Y.ended?0:Y.objectMode?1:Z!=Z?Y.flowing&&Y.length?Y.buffer.head.data.length:Y.length:(Z>Y.highWaterMark&&(Y.highWaterMark=function C(Z){return Z>=c?Z=c:(Z--,Z|=Z>>>1,Z|=Z>>>2,Z|=Z>>>4,Z|=Z>>>8,Z|=Z>>>16,Z++),Z}(Z)),Z<=Y.length?Z:Y.ended?Y.length:(Y.needReadable=!0,0))}function _(Z){var Y=Z._readableState;T("emitReadable",Y.needReadable,Y.emittedReadable),Y.needReadable=!1,Y.emittedReadable||(T("emitReadable",Y.flowing),Y.emittedReadable=!0,process.nextTick(n,Z))}function n(Z){var Y=Z._readableState;T("emitReadable_",Y.destroyed,Y.length,Y.ended),!Y.destroyed&&(Y.length||Y.ended)&&(Z.emit("readable"),Y.emittedReadable=!1),Y.needReadable=!Y.flowing&&!Y.ended&&Y.length<=Y.highWaterMark,ke(Z)}function g(Z,Y){Y.readingMore||(Y.readingMore=!0,process.nextTick(V,Z,Y))}function V(Z,Y){for(;!Y.reading&&!Y.ended&&(Y.length<Y.highWaterMark||Y.flowing&&0===Y.length);){var ot=Y.length;if(T("maybeReadMore read 0"),Z.read(0),ot===Y.length)break}Y.readingMore=!1}function H(Z){var Y=Z._readableState;Y.readableListening=Z.listenerCount("readable")>0,Y.resumeScheduled&&!Y.paused?Y.flowing=!0:Z.listenerCount("data")>0&&Z.resume()}function $(Z){T("readable nexttick read 0"),Z.read(0)}function ye(Z,Y){T("resume",Y.reading),Y.reading||Z.read(0),Y.resumeScheduled=!1,Z.emit("resume"),ke(Z),Y.flowing&&!Y.reading&&Z.read(0)}function ke(Z){var Y=Z._readableState;for(T("flow",Y.flowing);Y.flowing&&null!==Z.read(););}function Ee(Z,Y){return 0===Y.length?null:(Y.objectMode?ot=Y.buffer.shift():!Z||Z>=Y.length?(ot=Y.decoder?Y.buffer.join(""):1===Y.buffer.length?Y.buffer.first():Y.buffer.concat(Y.length),Y.buffer.clear()):ot=Y.buffer.consume(Z,Y.decoder),ot);var ot}function te(Z){var Y=Z._readableState;T("endReadable",Y.endEmitted),Y.endEmitted||(Y.ended=!0,process.nextTick(ze,Y,Z))}function ze(Z,Y){if(T("endReadableNT",Z.endEmitted,Z.length),!Z.endEmitted&&0===Z.length&&(Z.endEmitted=!0,Y.readable=!1,Y.emit("end"),Z.autoDestroy)){var ot=Y._writableState;(!ot||ot.autoDestroy&&ot.finished)&&Y.destroy()}}function be(Z,Y){for(var ot=0,Ie=Z.length;ot<Ie;ot++)if(Z[ot]===Y)return ot;return-1}x.prototype.read=function(Z){T("read",Z),Z=parseInt(Z,10);var Y=this._readableState,ot=Z;if(0!==Z&&(Y.emittedReadable=!1),0===Z&&Y.needReadable&&((0!==Y.highWaterMark?Y.length>=Y.highWaterMark:Y.length>0)||Y.ended))return T("read: emitReadable",Y.length,Y.ended),0===Y.length&&Y.ended?te(this):_(this),null;if(0===(Z=S(Z,Y))&&Y.ended)return 0===Y.length&&te(this),null;var Ae,Ie=Y.needReadable;return T("need readable",Ie),(0===Y.length||Y.length-Z<Y.highWaterMark)&&T("length less than watermark",Ie=!0),Y.ended||Y.reading?T("reading or ended",Ie=!1):Ie&&(T("do read"),Y.reading=!0,Y.sync=!0,0===Y.length&&(Y.needReadable=!0),this._read(Y.highWaterMark),Y.sync=!1,Y.reading||(Z=S(ot,Y))),null===(Ae=Z>0?Ee(Z,Y):null)?(Y.needReadable=Y.length<=Y.highWaterMark,Z=0):(Y.length-=Z,Y.awaitDrain=0),0===Y.length&&(Y.ended||(Y.needReadable=!0),ot!==Z&&Y.ended&&te(this)),null!==Ae&&this.emit("data",Ae),Ae},x.prototype._read=function(Z){ie(this,new W("_read()"))},x.prototype.pipe=function(Z,Y){var ot=this,Ie=this._readableState;switch(Ie.pipesCount){case 0:Ie.pipes=Z;break;case 1:Ie.pipes=[Ie.pipes,Z];break;default:Ie.pipes.push(Z)}Ie.pipesCount+=1,T("pipe count=%d opts=%j",Ie.pipesCount,Y);var ce=Y&&!1===Y.end||Z===process.stdout||Z===process.stderr?Tt:xe;function xe(){T("onend"),Z.end()}Ie.endEmitted?process.nextTick(ce):ot.once("end",ce),Z.on("unpipe",function Te(hi,jt){T("onunpipe"),hi===ot&&jt&&!1===jt.hasUnpiped&&(jt.hasUnpiped=!0,function ue(){T("cleanup"),Z.removeListener("close",lt),Z.removeListener("finish",ht),Z.removeListener("drain",G),Z.removeListener("error",Le),Z.removeListener("unpipe",Te),ot.removeListener("end",xe),ot.removeListener("end",Tt),ot.removeListener("data",ve),ee=!0,Ie.awaitDrain&&(!Z._writableState||Z._writableState.needDrain)&&G()}())});var G=function R(Z){return function(){var ot=Z._readableState;T("pipeOnDrain",ot.awaitDrain),ot.awaitDrain&&ot.awaitDrain--,0===ot.awaitDrain&&u(Z,"data")&&(ot.flowing=!0,ke(Z))}}(ot);Z.on("drain",G);var ee=!1;function ve(hi){T("ondata");var jt=Z.write(hi);T("dest.write",jt),!1===jt&&((1===Ie.pipesCount&&Ie.pipes===Z||Ie.pipesCount>1&&-1!==be(Ie.pipes,Z))&&!ee&&(T("false write response, pause",Ie.awaitDrain),Ie.awaitDrain++),ot.pause())}function Le(hi){T("onerror",hi),Tt(),Z.removeListener("error",Le),0===u(Z,"error")&&ie(Z,hi)}function lt(){Z.removeListener("finish",ht),Tt()}function ht(){T("onfinish"),Z.removeListener("close",lt),Tt()}function Tt(){T("unpipe"),ot.unpipe(Z)}return ot.on("data",ve),function J(Z,Y,ot){if("function"==typeof Z.prependListener)return Z.prependListener(Y,ot);Z._events&&Z._events[Y]?Array.isArray(Z._events[Y])?Z._events[Y].unshift(ot):Z._events[Y]=[ot,Z._events[Y]]:Z.on(Y,ot)}(Z,"error",Le),Z.once("close",lt),Z.once("finish",ht),Z.emit("pipe",ot),Ie.flowing||(T("pipe resume"),ot.resume()),Z},x.prototype.unpipe=function(Z){var Y=this._readableState,ot={hasUnpiped:!1};if(0===Y.pipesCount)return this;if(1===Y.pipesCount)return Z&&Z!==Y.pipes||(Z||(Z=Y.pipes),Y.pipes=null,Y.pipesCount=0,Y.flowing=!1,Z&&Z.emit("unpipe",this,ot)),this;if(!Z){var Ie=Y.pipes,Ae=Y.pipesCount;Y.pipes=null,Y.pipesCount=0,Y.flowing=!1;for(var ce=0;ce<Ae;ce++)Ie[ce].emit("unpipe",this,{hasUnpiped:!1});return this}var Te=be(Y.pipes,Z);return-1===Te||(Y.pipes.splice(Te,1),Y.pipesCount-=1,1===Y.pipesCount&&(Y.pipes=Y.pipes[0]),Z.emit("unpipe",this,ot)),this},x.prototype.addListener=x.prototype.on=function(Z,Y){var ot=b.prototype.on.call(this,Z,Y),Ie=this._readableState;return"data"===Z?(Ie.readableListening=this.listenerCount("readable")>0,!1!==Ie.flowing&&this.resume()):"readable"===Z&&!Ie.endEmitted&&!Ie.readableListening&&(Ie.readableListening=Ie.needReadable=!0,Ie.flowing=!1,Ie.emittedReadable=!1,T("on readable",Ie.length,Ie.reading),Ie.length?_(this):Ie.reading||process.nextTick($,this)),ot},x.prototype.removeListener=function(Z,Y){var ot=b.prototype.removeListener.call(this,Z,Y);return"readable"===Z&&process.nextTick(H,this),ot},x.prototype.removeAllListeners=function(Z){var Y=b.prototype.removeAllListeners.apply(this,arguments);return("readable"===Z||void 0===Z)&&process.nextTick(H,this),Y},x.prototype.resume=function(){var Z=this._readableState;return Z.flowing||(T("resume"),Z.flowing=!Z.readableListening,function fe(Z,Y){Y.resumeScheduled||(Y.resumeScheduled=!0,process.nextTick(ye,Z,Y))}(this,Z)),Z.paused=!1,this},x.prototype.pause=function(){return T("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(T("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},x.prototype.wrap=function(Z){var Y=this,ot=this._readableState,Ie=!1;for(var Ae in Z.on("end",function(){if(T("wrapped end"),ot.decoder&&!ot.ended){var Te=ot.decoder.end();Te&&Te.length&&Y.push(Te)}Y.push(null)}),Z.on("data",function(Te){T("wrapped data"),ot.decoder&&(Te=ot.decoder.write(Te)),ot.objectMode&&null==Te||!(ot.objectMode||Te&&Te.length)||Y.push(Te)||(Ie=!0,Z.pause())}),Z)void 0===this[Ae]&&"function"==typeof Z[Ae]&&(this[Ae]=function(xe){return function(){return Z[xe].apply(Z,arguments)}}(Ae));for(var ce=0;ce<se.length;ce++)Z.on(se[ce],this.emit.bind(this,se[ce]));return this._read=function(Te){T("wrapped _read",Te),Ie&&(Ie=!1,Z.resume())},this},"function"==typeof Symbol&&(x.prototype[Symbol.asyncIterator]=function(){return void 0===le&&(le=p(3872)),le(this)}),Object.defineProperty(x.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(x.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(x.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(Y){this._readableState&&(this._readableState.flowing=Y)}}),x._fromList=Ee,Object.defineProperty(x.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(x.from=function(Z,Y){return void 0===q&&(q=p(7412)),q(x,Z,Y)})},6025:(He,j,p)=>{"use strict";He.exports=P;var e=p(891).q,i=e.ERR_METHOD_NOT_IMPLEMENTED,u=e.ERR_MULTIPLE_CALLBACK,b=e.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=e.ERR_TRANSFORM_WITH_LENGTH_0,y=p(1339);function d(M,A){var E=this._transformState;E.transforming=!1;var k=E.writecb;if(null===k)return this.emit("error",new u);E.writechunk=null,E.writecb=null,null!=A&&this.push(A),k(M);var w=this._readableState;w.reading=!1,(w.needReadable||w.length<w.highWaterMark)&&this._read(w.highWaterMark)}function P(M){if(!(this instanceof P))return new P(M);y.call(this,M),this._transformState={afterTransform:d.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,M&&("function"==typeof M.transform&&(this._transform=M.transform),"function"==typeof M.flush&&(this._flush=M.flush)),this.on("prefinish",D)}function D(){var M=this;"function"!=typeof this._flush||this._readableState.destroyed?T(this,null,null):this._flush(function(A,E){T(M,A,E)})}function T(M,A,E){if(A)return M.emit("error",A);if(null!=E&&M.push(E),M._writableState.length)throw new a;if(M._transformState.transforming)throw new b;return M.push(null)}p(3894)(P,y),P.prototype.push=function(M,A){return this._transformState.needTransform=!1,y.prototype.push.call(this,M,A)},P.prototype._transform=function(M,A,E){E(new i("_transform()"))},P.prototype._write=function(M,A,E){var k=this._transformState;if(k.writecb=E,k.writechunk=M,k.writeencoding=A,!k.transforming){var w=this._readableState;(k.needTransform||w.needReadable||w.length<w.highWaterMark)&&this._read(w.highWaterMark)}},P.prototype._read=function(M){var A=this._transformState;null===A.writechunk||A.transforming?A.needTransform=!0:(A.transforming=!0,this._transform(A.writechunk,A.writeencoding,A.afterTransform))},P.prototype._destroy=function(M,A){y.prototype._destroy.call(this,M,function(E){A(E)})}},520:(He,j,p)=>{"use strict";function i(ke){var Ee=this;this.next=null,this.entry=null,this.finish=function(){!function ye(ke,Ee,te){var ze=ke.entry;for(ke.entry=null;ze;){var be=ze.callback;Ee.pendingcb--,be(te),ze=ze.next}Ee.corkedRequestsFree.next=ke}(Ee,ke)}}var u;He.exports=me,me.WritableState=se;var J,b={deprecate:p(4364)},a=p(4970),y=p(3172).Buffer,d=global.Uint8Array||function(){},T=p(1920),A=p(7102).getHighWaterMark,E=p(891).q,k=E.ERR_INVALID_ARG_TYPE,w=E.ERR_METHOD_NOT_IMPLEMENTED,z=E.ERR_MULTIPLE_CALLBACK,U=E.ERR_STREAM_CANNOT_PIPE,W=E.ERR_STREAM_DESTROYED,ne=E.ERR_STREAM_NULL_VALUES,Q=E.ERR_STREAM_WRITE_AFTER_END,le=E.ERR_UNKNOWN_ENCODING,q=T.errorOrDestroy;function ie(){}function se(ke,Ee,te){u=u||p(1339),"boolean"!=typeof te&&(te=Ee instanceof u),this.objectMode=!!(ke=ke||{}).objectMode,te&&(this.objectMode=this.objectMode||!!ke.writableObjectMode),this.highWaterMark=A(this,ke,"writableHighWaterMark",te),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1,this.decodeStrings=!(!1===ke.decodeStrings),this.defaultEncoding=ke.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(be){!function I(ke,Ee){var te=ke._writableState,ze=te.sync,be=te.writecb;if("function"!=typeof be)throw new z;if(function S(ke){ke.writing=!1,ke.writecb=null,ke.length-=ke.writelen,ke.writelen=0}(te),Ee)!function C(ke,Ee,te,ze,be){--Ee.pendingcb,te?(process.nextTick(be,ze),process.nextTick($,ke,Ee),ke._writableState.errorEmitted=!0,q(ke,ze)):(be(ze),ke._writableState.errorEmitted=!0,q(ke,ze),$(ke,Ee))}(ke,te,ze,Ee,be);else{var Z=V(te)||ke.destroyed;!Z&&!te.corked&&!te.bufferProcessing&&te.bufferedRequest&&g(ke,te),ze?process.nextTick(_,ke,te,Z,be):_(ke,te,Z,be)}}(Ee,be)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==ke.emitClose,this.autoDestroy=!!ke.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function me(ke){var Ee=this instanceof(u=u||p(1339));if(!Ee&&!J.call(me,this))return new me(ke);this._writableState=new se(ke,this,Ee),this.writable=!0,ke&&("function"==typeof ke.write&&(this._write=ke.write),"function"==typeof ke.writev&&(this._writev=ke.writev),"function"==typeof ke.destroy&&(this._destroy=ke.destroy),"function"==typeof ke.final&&(this._final=ke.final)),a.call(this)}function c(ke,Ee,te,ze,be,Z,Y){Ee.writelen=ze,Ee.writecb=Y,Ee.writing=!0,Ee.sync=!0,Ee.destroyed?Ee.onwrite(new W("write")):te?ke._writev(be,Ee.onwrite):ke._write(be,Z,Ee.onwrite),Ee.sync=!1}function _(ke,Ee,te,ze){te||function n(ke,Ee){0===Ee.length&&Ee.needDrain&&(Ee.needDrain=!1,ke.emit("drain"))}(ke,Ee),Ee.pendingcb--,ze(),$(ke,Ee)}function g(ke,Ee){Ee.bufferProcessing=!0;var te=Ee.bufferedRequest;if(ke._writev&&te&&te.next){var be=new Array(Ee.bufferedRequestCount),Z=Ee.corkedRequestsFree;Z.entry=te;for(var Y=0,ot=!0;te;)be[Y]=te,te.isBuf||(ot=!1),te=te.next,Y+=1;be.allBuffers=ot,c(ke,Ee,!0,Ee.length,be,"",Z.finish),Ee.pendingcb++,Ee.lastBufferedRequest=null,Z.next?(Ee.corkedRequestsFree=Z.next,Z.next=null):Ee.corkedRequestsFree=new i(Ee),Ee.bufferedRequestCount=0}else{for(;te;){var Ie=te.chunk;if(c(ke,Ee,!1,Ee.objectMode?1:Ie.length,Ie,te.encoding,te.callback),te=te.next,Ee.bufferedRequestCount--,Ee.writing)break}null===te&&(Ee.lastBufferedRequest=null)}Ee.bufferedRequest=te,Ee.bufferProcessing=!1}function V(ke){return ke.ending&&0===ke.length&&null===ke.bufferedRequest&&!ke.finished&&!ke.writing}function R(ke,Ee){ke._final(function(te){Ee.pendingcb--,te&&q(ke,te),Ee.prefinished=!0,ke.emit("prefinish"),$(ke,Ee)})}function $(ke,Ee){var te=V(Ee);if(te&&(function H(ke,Ee){!Ee.prefinished&&!Ee.finalCalled&&("function"!=typeof ke._final||Ee.destroyed?(Ee.prefinished=!0,ke.emit("prefinish")):(Ee.pendingcb++,Ee.finalCalled=!0,process.nextTick(R,ke,Ee)))}(ke,Ee),0===Ee.pendingcb&&(Ee.finished=!0,ke.emit("finish"),Ee.autoDestroy))){var ze=ke._readableState;(!ze||ze.autoDestroy&&ze.endEmitted)&&ke.destroy()}return te}p(3894)(me,a),se.prototype.getBuffer=function(){for(var Ee=this.bufferedRequest,te=[];Ee;)te.push(Ee),Ee=Ee.next;return te},function(){try{Object.defineProperty(se.prototype,"buffer",{get:b.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(ke){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(J=Function.prototype[Symbol.hasInstance],Object.defineProperty(me,Symbol.hasInstance,{value:function(Ee){return!!J.call(this,Ee)||this===me&&Ee&&Ee._writableState instanceof se}})):J=function(Ee){return Ee instanceof this},me.prototype.pipe=function(){q(this,new U)},me.prototype.write=function(ke,Ee,te){var ze=this._writableState,be=!1,Z=!ze.objectMode&&function D(ke){return y.isBuffer(ke)||ke instanceof d}(ke);return Z&&!y.isBuffer(ke)&&(ke=function P(ke){return y.from(ke)}(ke)),"function"==typeof Ee&&(te=Ee,Ee=null),Z?Ee="buffer":Ee||(Ee=ze.defaultEncoding),"function"!=typeof te&&(te=ie),ze.ending?function x(ke,Ee){var te=new Q;q(ke,te),process.nextTick(Ee,te)}(this,te):(Z||function t(ke,Ee,te,ze){var be;return null===te?be=new ne:"string"!=typeof te&&!Ee.objectMode&&(be=new k("chunk",["string","Buffer"],te)),!be||(q(ke,be),process.nextTick(ze,be),!1)}(this,ze,ke,te))&&(ze.pendingcb++,be=function h(ke,Ee,te,ze,be,Z){if(!te){var Y=function r(ke,Ee,te){return!ke.objectMode&&!1!==ke.decodeStrings&&"string"==typeof Ee&&(Ee=y.from(Ee,te)),Ee}(Ee,ze,be);ze!==Y&&(te=!0,be="buffer",ze=Y)}var ot=Ee.objectMode?1:ze.length;Ee.length+=ot;var Ie=Ee.length<Ee.highWaterMark;if(Ie||(Ee.needDrain=!0),Ee.writing||Ee.corked){var Ae=Ee.lastBufferedRequest;Ee.lastBufferedRequest={chunk:ze,encoding:be,isBuf:te,callback:Z,next:null},Ae?Ae.next=Ee.lastBufferedRequest:Ee.bufferedRequest=Ee.lastBufferedRequest,Ee.bufferedRequestCount+=1}else c(ke,Ee,!1,ot,ze,be,Z);return Ie}(this,ze,Z,ke,Ee,te)),be},me.prototype.cork=function(){this._writableState.corked++},me.prototype.uncork=function(){var ke=this._writableState;ke.corked&&(ke.corked--,!ke.writing&&!ke.corked&&!ke.bufferProcessing&&ke.bufferedRequest&&g(this,ke))},me.prototype.setDefaultEncoding=function(Ee){if("string"==typeof Ee&&(Ee=Ee.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Ee+"").toLowerCase())>-1))throw new le(Ee);return this._writableState.defaultEncoding=Ee,this},Object.defineProperty(me.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(me.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),me.prototype._write=function(ke,Ee,te){te(new w("_write()"))},me.prototype._writev=null,me.prototype.end=function(ke,Ee,te){var ze=this._writableState;return"function"==typeof ke?(te=ke,ke=null,Ee=null):"function"==typeof Ee&&(te=Ee,Ee=null),null!=ke&&this.write(ke,Ee),ze.corked&&(ze.corked=1,this.uncork()),ze.ending||function fe(ke,Ee,te){Ee.ending=!0,$(ke,Ee),te&&(Ee.finished?process.nextTick(te):ke.once("finish",te)),Ee.ended=!0,ke.writable=!1}(this,ze,te),this},Object.defineProperty(me.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(me.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(Ee){!this._writableState||(this._writableState.destroyed=Ee)}}),me.prototype.destroy=T.destroy,me.prototype._undestroy=T.undestroy,me.prototype._destroy=function(ke,Ee){Ee(ke)}},3872:(He,j,p)=>{"use strict";var e;function i(W,ne,Q){return ne in W?Object.defineProperty(W,ne,{value:Q,enumerable:!0,configurable:!0,writable:!0}):W[ne]=Q,W}var u=p(7542),b=Symbol("lastResolve"),a=Symbol("lastReject"),y=Symbol("error"),d=Symbol("ended"),P=Symbol("lastPromise"),D=Symbol("handlePromise"),T=Symbol("stream");function M(W,ne){return{value:W,done:ne}}function A(W){var ne=W[b];if(null!==ne){var Q=W[T].read();null!==Q&&(W[P]=null,W[b]=null,W[a]=null,ne(M(Q,!1)))}}function E(W){process.nextTick(A,W)}var w=Object.getPrototypeOf(function(){}),z=Object.setPrototypeOf((i(e={get stream(){return this[T]},next:function(){var ne=this,Q=this[y];if(null!==Q)return Promise.reject(Q);if(this[d])return Promise.resolve(M(void 0,!0));if(this[T].destroyed)return new Promise(function(se,J){process.nextTick(function(){ne[y]?J(ne[y]):se(M(void 0,!0))})});var q,le=this[P];if(le)q=new Promise(function k(W,ne){return function(Q,le){W.then(function(){ne[d]?Q(M(void 0,!0)):ne[D](Q,le)},le)}}(le,this));else{var ie=this[T].read();if(null!==ie)return Promise.resolve(M(ie,!1));q=new Promise(this[D])}return this[P]=q,q}},Symbol.asyncIterator,function(){return this}),i(e,"return",function(){var ne=this;return new Promise(function(Q,le){ne[T].destroy(null,function(q){q?le(q):Q(M(void 0,!0))})})}),e),w);He.exports=function(ne){var Q,le=Object.create(z,(i(Q={},T,{value:ne,writable:!0}),i(Q,b,{value:null,writable:!0}),i(Q,a,{value:null,writable:!0}),i(Q,y,{value:null,writable:!0}),i(Q,d,{value:ne._readableState.endEmitted,writable:!0}),i(Q,D,{value:function(ie,se){var J=le[T].read();J?(le[P]=null,le[b]=null,le[a]=null,ie(M(J,!1))):(le[b]=ie,le[a]=se)},writable:!0}),Q));return le[P]=null,u(ne,function(q){if(q&&"ERR_STREAM_PREMATURE_CLOSE"!==q.code){var ie=le[a];return null!==ie&&(le[P]=null,le[b]=null,le[a]=null,ie(q)),void(le[y]=q)}var se=le[b];null!==se&&(le[P]=null,le[b]=null,le[a]=null,se(M(void 0,!0))),le[d]=!0}),ne.on("readable",E.bind(null,le)),le}},5019:(He,j,p)=>{"use strict";function e(E,k){var w=Object.keys(E);if(Object.getOwnPropertySymbols){var z=Object.getOwnPropertySymbols(E);k&&(z=z.filter(function(U){return Object.getOwnPropertyDescriptor(E,U).enumerable})),w.push.apply(w,z)}return w}function u(E,k,w){return k in E?Object.defineProperty(E,k,{value:w,enumerable:!0,configurable:!0,writable:!0}):E[k]=w,E}function a(E,k){for(var w=0;w<k.length;w++){var z=k[w];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(E,z.key,z)}}var P=p(3172).Buffer,T=p(2361).inspect,M=T&&T.custom||"inspect";function A(E,k,w){P.prototype.copy.call(E,k,w)}He.exports=function(){function E(){(function b(E,k){if(!(E instanceof k))throw new TypeError("Cannot call a class as a function")})(this,E),this.head=null,this.tail=null,this.length=0}return function y(E,k,w){k&&a(E.prototype,k),w&&a(E,w)}(E,[{key:"push",value:function(w){var z={data:w,next:null};this.length>0?this.tail.next=z:this.head=z,this.tail=z,++this.length}},{key:"unshift",value:function(w){var z={data:w,next:this.head};0===this.length&&(this.tail=z),this.head=z,++this.length}},{key:"shift",value:function(){if(0!==this.length){var w=this.head.data;return this.head=1===this.length?this.tail=null:this.head.next,--this.length,w}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(w){if(0===this.length)return"";for(var z=this.head,U=""+z.data;z=z.next;)U+=w+z.data;return U}},{key:"concat",value:function(w){if(0===this.length)return P.alloc(0);for(var z=P.allocUnsafe(w>>>0),U=this.head,W=0;U;)A(U.data,z,W),W+=U.data.length,U=U.next;return z}},{key:"consume",value:function(w,z){var U;return w<this.head.data.length?(U=this.head.data.slice(0,w),this.head.data=this.head.data.slice(w)):U=w===this.head.data.length?this.shift():z?this._getString(w):this._getBuffer(w),U}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(w){var z=this.head,U=1,W=z.data;for(w-=W.length;z=z.next;){var ne=z.data,Q=w>ne.length?ne.length:w;if(W+=Q===ne.length?ne:ne.slice(0,w),0==(w-=Q)){Q===ne.length?(++U,this.head=z.next?z.next:this.tail=null):(this.head=z,z.data=ne.slice(Q));break}++U}return this.length-=U,W}},{key:"_getBuffer",value:function(w){var z=P.allocUnsafe(w),U=this.head,W=1;for(U.data.copy(z),w-=U.data.length;U=U.next;){var ne=U.data,Q=w>ne.length?ne.length:w;if(ne.copy(z,z.length-w,0,Q),0==(w-=Q)){Q===ne.length?(++W,this.head=U.next?U.next:this.tail=null):(this.head=U,U.data=ne.slice(Q));break}++W}return this.length-=W,z}},{key:M,value:function(w,z){return T(this,function i(E){for(var k=1;k<arguments.length;k++){var w=null!=arguments[k]?arguments[k]:{};k%2?e(Object(w),!0).forEach(function(z){u(E,z,w[z])}):Object.getOwnPropertyDescriptors?Object.defineProperties(E,Object.getOwnPropertyDescriptors(w)):e(Object(w)).forEach(function(z){Object.defineProperty(E,z,Object.getOwnPropertyDescriptor(w,z))})}return E}({},z,{depth:0,customInspect:!1}))}}]),E}()},1920:He=>{"use strict";function p(a,y){u(a,y),e(a)}function e(a){a._writableState&&!a._writableState.emitClose||a._readableState&&!a._readableState.emitClose||a.emit("close")}function u(a,y){a.emit("error",y)}He.exports={destroy:function j(a,y){var d=this;return this._readableState&&this._readableState.destroyed||this._writableState&&this._writableState.destroyed?(y?y(a):a&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(u,this,a)):process.nextTick(u,this,a)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(a||null,function(T){!y&&T?d._writableState?d._writableState.errorEmitted?process.nextTick(e,d):(d._writableState.errorEmitted=!0,process.nextTick(p,d,T)):process.nextTick(p,d,T):y?(process.nextTick(e,d),y(T)):process.nextTick(e,d)}),this)},undestroy:function i(){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 b(a,y){var d=a._readableState,P=a._writableState;d&&d.autoDestroy||P&&P.autoDestroy?a.destroy(y):a.emit("error",y)}}},7542:(He,j,p)=>{"use strict";var e=p(891).q.ERR_STREAM_PREMATURE_CLOSE;function u(){}He.exports=function a(y,d,P){if("function"==typeof d)return a(y,null,d);d||(d={}),P=function i(y){var d=!1;return function(){if(!d){d=!0;for(var P=arguments.length,D=new Array(P),T=0;T<P;T++)D[T]=arguments[T];y.apply(this,D)}}}(P||u);var D=d.readable||!1!==d.readable&&y.readable,T=d.writable||!1!==d.writable&&y.writable,M=function(){y.writable||E()},A=y._writableState&&y._writableState.finished,E=function(){T=!1,A=!0,D||P.call(y)},k=y._readableState&&y._readableState.endEmitted,w=function(){D=!1,k=!0,T||P.call(y)},z=function(Q){P.call(y,Q)},U=function(){var Q;return D&&!k?((!y._readableState||!y._readableState.ended)&&(Q=new e),P.call(y,Q)):T&&!A?((!y._writableState||!y._writableState.ended)&&(Q=new e),P.call(y,Q)):void 0},W=function(){y.req.on("finish",E)};return function b(y){return y.setHeader&&"function"==typeof y.abort}(y)?(y.on("complete",E),y.on("abort",U),y.req?W():y.on("request",W)):T&&!y._writableState&&(y.on("end",M),y.on("close",M)),y.on("end",w),y.on("finish",E),!1!==d.error&&y.on("error",z),y.on("close",U),function(){y.removeListener("complete",E),y.removeListener("abort",U),y.removeListener("request",W),y.req&&y.req.removeListener("finish",E),y.removeListener("end",M),y.removeListener("close",M),y.removeListener("finish",E),y.removeListener("end",w),y.removeListener("error",z),y.removeListener("close",U)}}},7412:He=>{He.exports=function(){throw new Error("Readable.from is not available in the browser")}},954:(He,j,p)=>{"use strict";var e,u=p(891).q,b=u.ERR_MISSING_ARGS,a=u.ERR_STREAM_DESTROYED;function y(E){if(E)throw E}function P(E,k,w,z){z=function i(E){var k=!1;return function(){k||(k=!0,E.apply(void 0,arguments))}}(z);var U=!1;E.on("close",function(){U=!0}),void 0===e&&(e=p(7542)),e(E,{readable:k,writable:w},function(ne){if(ne)return z(ne);U=!0,z()});var W=!1;return function(ne){if(!U&&!W){if(W=!0,function d(E){return E.setHeader&&"function"==typeof E.abort}(E))return E.abort();if("function"==typeof E.destroy)return E.destroy();z(ne||new a("pipe"))}}}function D(E){E()}function T(E,k){return E.pipe(k)}function M(E){return E.length&&"function"==typeof E[E.length-1]?E.pop():y}He.exports=function A(){for(var E=arguments.length,k=new Array(E),w=0;w<E;w++)k[w]=arguments[w];var z=M(k);if(Array.isArray(k[0])&&(k=k[0]),k.length<2)throw new b("streams");var U,W=k.map(function(ne,Q){var le=Q<k.length-1;return P(ne,le,Q>0,function(ie){U||(U=ie),ie&&W.forEach(D),!le&&(W.forEach(D),z(U))})});return k.reduce(T)}},7102:(He,j,p)=>{"use strict";var e=p(891).q.ERR_INVALID_OPT_VALUE;He.exports={getHighWaterMark:function u(b,a,y,d){var P=function i(b,a,y){return null!=b.highWaterMark?b.highWaterMark:a?b[y]:null}(a,d,y);if(null!=P){if(!isFinite(P)||Math.floor(P)!==P||P<0)throw new e(d?y:"highWaterMark",P);return Math.floor(P)}return b.objectMode?16:16384}}},4970:(He,j,p)=>{He.exports=p(9069).EventEmitter},5685:(He,j,p)=>{(j=He.exports=p(3154)).Stream=j,j.Readable=j,j.Writable=p(520),j.Duplex=p(1339),j.Transform=p(6025),j.PassThrough=p(6071),j.finished=p(7542),j.pipeline=p(954)},5634:(He,j,p)=>{"use strict";var e=p(3172).Buffer,i=p(3894),u=p(9650),b=new Array(16),a=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],y=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],d=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],P=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],D=[0,1518500249,1859775393,2400959708,2840853838],T=[1352829926,1548603684,1836072691,2053994217,0];function M(){u.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function A(W,ne){return W<<ne|W>>>32-ne}function E(W,ne,Q,le,q,ie,se,J){return A(W+(ne^Q^le)+ie+se|0,J)+q|0}function k(W,ne,Q,le,q,ie,se,J){return A(W+(ne&Q|~ne&le)+ie+se|0,J)+q|0}function w(W,ne,Q,le,q,ie,se,J){return A(W+((ne|~Q)^le)+ie+se|0,J)+q|0}function z(W,ne,Q,le,q,ie,se,J){return A(W+(ne&le|Q&~le)+ie+se|0,J)+q|0}function U(W,ne,Q,le,q,ie,se,J){return A(W+(ne^(Q|~le))+ie+se|0,J)+q|0}i(M,u),M.prototype._update=function(){for(var W=b,ne=0;ne<16;++ne)W[ne]=this._block.readInt32LE(4*ne);for(var Q=0|this._a,le=0|this._b,q=0|this._c,ie=0|this._d,se=0|this._e,J=0|this._a,me=0|this._b,x=0|this._c,t=0|this._d,r=0|this._e,h=0;h<80;h+=1){var c,C;h<16?(c=E(Q,le,q,ie,se,W[a[h]],D[0],d[h]),C=U(J,me,x,t,r,W[y[h]],T[0],P[h])):h<32?(c=k(Q,le,q,ie,se,W[a[h]],D[1],d[h]),C=z(J,me,x,t,r,W[y[h]],T[1],P[h])):h<48?(c=w(Q,le,q,ie,se,W[a[h]],D[2],d[h]),C=w(J,me,x,t,r,W[y[h]],T[2],P[h])):h<64?(c=z(Q,le,q,ie,se,W[a[h]],D[3],d[h]),C=k(J,me,x,t,r,W[y[h]],T[3],P[h])):(c=U(Q,le,q,ie,se,W[a[h]],D[4],d[h]),C=E(J,me,x,t,r,W[y[h]],T[4],P[h])),Q=se,se=ie,ie=A(q,10),q=le,le=c,J=r,r=t,t=A(x,10),x=me,me=C}var S=this._b+q+t|0;this._b=this._c+ie+r|0,this._c=this._d+se+J|0,this._d=this._e+Q+me|0,this._e=this._a+le+x|0,this._a=S},M.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var W=e.alloc?e.alloc(20):new e(20);return W.writeInt32LE(this._a,0),W.writeInt32LE(this._b,4),W.writeInt32LE(this._c,8),W.writeInt32LE(this._d,12),W.writeInt32LE(this._e,16),W},He.exports=M},1135:(He,j,p)=>{"use strict";p.d(j,{X:()=>i});var e=p(7579);class i extends e.x{constructor(b){super(),this._value=b}get value(){return this.getValue()}_subscribe(b){const a=super._subscribe(b);return!a.closed&&b.next(this._value),a}getValue(){const{hasError:b,thrownError:a,_value:y}=this;if(b)throw a;return this._throwIfClosed(),y}next(b){super.next(this._value=b)}}},8306:(He,j,p)=>{"use strict";p.d(j,{y:()=>T});var e=p(930),i=p(727),u=p(8822),b=p(4671);var d=p(2416),P=p(576),D=p(2806);let T=(()=>{class k{constructor(z){z&&(this._subscribe=z)}lift(z){const U=new k;return U.source=this,U.operator=z,U}subscribe(z,U,W){const ne=function E(k){return k&&k instanceof e.Lv||function A(k){return k&&(0,P.m)(k.next)&&(0,P.m)(k.error)&&(0,P.m)(k.complete)}(k)&&(0,i.Nn)(k)}(z)?z:new e.Hp(z,U,W);return(0,D.x)(()=>{const{operator:Q,source:le}=this;ne.add(Q?Q.call(ne,le):le?this._subscribe(ne):this._trySubscribe(ne))}),ne}_trySubscribe(z){try{return this._subscribe(z)}catch(U){z.error(U)}}forEach(z,U){return new(U=M(U))((W,ne)=>{const Q=new e.Hp({next:le=>{try{z(le)}catch(q){ne(q),Q.unsubscribe()}},error:ne,complete:W});this.subscribe(Q)})}_subscribe(z){var U;return null===(U=this.source)||void 0===U?void 0:U.subscribe(z)}[u.L](){return this}pipe(...z){return function y(k){return 0===k.length?b.y:1===k.length?k[0]:function(z){return k.reduce((U,W)=>W(U),z)}}(z)(this)}toPromise(z){return new(z=M(z))((U,W)=>{let ne;this.subscribe(Q=>ne=Q,Q=>W(Q),()=>U(ne))})}}return k.create=w=>new k(w),k})();function M(k){var w;return null!==(w=null!=k?k:d.v.Promise)&&void 0!==w?w:Promise}},4707:(He,j,p)=>{"use strict";p.d(j,{t:()=>u});var e=p(7579),i=p(6063);class u extends e.x{constructor(a=1/0,y=1/0,d=i.l){super(),this._bufferSize=a,this._windowTime=y,this._timestampProvider=d,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=y===1/0,this._bufferSize=Math.max(1,a),this._windowTime=Math.max(1,y)}next(a){const{isStopped:y,_buffer:d,_infiniteTimeWindow:P,_timestampProvider:D,_windowTime:T}=this;y||(d.push(a),!P&&d.push(D.now()+T)),this._trimBuffer(),super.next(a)}_subscribe(a){this._throwIfClosed(),this._trimBuffer();const y=this._innerSubscribe(a),{_infiniteTimeWindow:d,_buffer:P}=this,D=P.slice();for(let T=0;T<D.length&&!a.closed;T+=d?1:2)a.next(D[T]);return this._checkFinalizedStatuses(a),y}_trimBuffer(){const{_bufferSize:a,_timestampProvider:y,_buffer:d,_infiniteTimeWindow:P}=this,D=(P?1:2)*a;if(a<1/0&&D<d.length&&d.splice(0,d.length-D),!P){const T=y.now();let M=0;for(let A=1;A<d.length&&d[A]<=T;A+=2)M=A;M&&d.splice(0,M+1)}}}},7579:(He,j,p)=>{"use strict";p.d(j,{u:()=>P,x:()=>d});var e=p(8306),i=p(727);const b=(0,p(3888).d)(D=>function(){D(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var a=p(8737),y=p(2806);let d=(()=>{class D extends e.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(M){const A=new P(this,this);return A.operator=M,A}_throwIfClosed(){if(this.closed)throw new b}next(M){(0,y.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const A of this.currentObservers)A.next(M)}})}error(M){(0,y.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=M;const{observers:A}=this;for(;A.length;)A.shift().error(M)}})}complete(){(0,y.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:M}=this;for(;M.length;)M.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var M;return(null===(M=this.observers)||void 0===M?void 0:M.length)>0}_trySubscribe(M){return this._throwIfClosed(),super._trySubscribe(M)}_subscribe(M){return this._throwIfClosed(),this._checkFinalizedStatuses(M),this._innerSubscribe(M)}_innerSubscribe(M){const{hasError:A,isStopped:E,observers:k}=this;return A||E?i.Lc:(this.currentObservers=null,k.push(M),new i.w0(()=>{this.currentObservers=null,(0,a.P)(k,M)}))}_checkFinalizedStatuses(M){const{hasError:A,thrownError:E,isStopped:k}=this;A?M.error(E):k&&M.complete()}asObservable(){const M=new e.y;return M.source=this,M}}return D.create=(T,M)=>new P(T,M),D})();class P extends d{constructor(T,M){super(),this.destination=T,this.source=M}next(T){var M,A;null===(A=null===(M=this.destination)||void 0===M?void 0:M.next)||void 0===A||A.call(M,T)}error(T){var M,A;null===(A=null===(M=this.destination)||void 0===M?void 0:M.error)||void 0===A||A.call(M,T)}complete(){var T,M;null===(M=null===(T=this.destination)||void 0===T?void 0:T.complete)||void 0===M||M.call(T)}_subscribe(T){var M,A;return null!==(A=null===(M=this.source)||void 0===M?void 0:M.subscribe(T))&&void 0!==A?A:i.Lc}}},930:(He,j,p)=>{"use strict";p.d(j,{Hp:()=>z,Lv:()=>A});var e=p(576),i=p(727),u=p(2416),b=p(7849),a=p(5032);const y=D("C",void 0,void 0);function D(le,q,ie){return{kind:le,value:q,error:ie}}var T=p(3410),M=p(2806);class A extends i.w0{constructor(q){super(),this.isStopped=!1,q?(this.destination=q,(0,i.Nn)(q)&&q.add(this)):this.destination=Q}static create(q,ie,se){return new z(q,ie,se)}next(q){this.isStopped?ne(function P(le){return D("N",le,void 0)}(q),this):this._next(q)}error(q){this.isStopped?ne(function d(le){return D("E",void 0,le)}(q),this):(this.isStopped=!0,this._error(q))}complete(){this.isStopped?ne(y,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(q){this.destination.next(q)}_error(q){try{this.destination.error(q)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const E=Function.prototype.bind;function k(le,q){return E.call(le,q)}class w{constructor(q){this.partialObserver=q}next(q){const{partialObserver:ie}=this;if(ie.next)try{ie.next(q)}catch(se){U(se)}}error(q){const{partialObserver:ie}=this;if(ie.error)try{ie.error(q)}catch(se){U(se)}else U(q)}complete(){const{partialObserver:q}=this;if(q.complete)try{q.complete()}catch(ie){U(ie)}}}class z extends A{constructor(q,ie,se){let J;if(super(),(0,e.m)(q)||!q)J={next:null!=q?q:void 0,error:null!=ie?ie:void 0,complete:null!=se?se:void 0};else{let me;this&&u.v.useDeprecatedNextContext?(me=Object.create(q),me.unsubscribe=()=>this.unsubscribe(),J={next:q.next&&k(q.next,me),error:q.error&&k(q.error,me),complete:q.complete&&k(q.complete,me)}):J=q}this.destination=new w(J)}}function U(le){u.v.useDeprecatedSynchronousErrorHandling?(0,M.O)(le):(0,b.h)(le)}function ne(le,q){const{onStoppedNotification:ie}=u.v;ie&&T.z.setTimeout(()=>ie(le,q))}const Q={closed:!0,next:a.Z,error:function W(le){throw le},complete:a.Z}},727:(He,j,p)=>{"use strict";p.d(j,{Lc:()=>y,w0:()=>a,Nn:()=>d});var e=p(576);const u=(0,p(3888).d)(D=>function(M){D(this),this.message=M?`${M.length} errors occurred during unsubscription:\n${M.map((A,E)=>`${E+1}) ${A.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=M});var b=p(8737);class a{constructor(T){this.initialTeardown=T,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let T;if(!this.closed){this.closed=!0;const{_parentage:M}=this;if(M)if(this._parentage=null,Array.isArray(M))for(const k of M)k.remove(this);else M.remove(this);const{initialTeardown:A}=this;if((0,e.m)(A))try{A()}catch(k){T=k instanceof u?k.errors:[k]}const{_finalizers:E}=this;if(E){this._finalizers=null;for(const k of E)try{P(k)}catch(w){T=null!=T?T:[],w instanceof u?T=[...T,...w.errors]:T.push(w)}}if(T)throw new u(T)}}add(T){var M;if(T&&T!==this)if(this.closed)P(T);else{if(T instanceof a){if(T.closed||T._hasParent(this))return;T._addParent(this)}(this._finalizers=null!==(M=this._finalizers)&&void 0!==M?M:[]).push(T)}}_hasParent(T){const{_parentage:M}=this;return M===T||Array.isArray(M)&&M.includes(T)}_addParent(T){const{_parentage:M}=this;this._parentage=Array.isArray(M)?(M.push(T),M):M?[M,T]:T}_removeParent(T){const{_parentage:M}=this;M===T?this._parentage=null:Array.isArray(M)&&(0,b.P)(M,T)}remove(T){const{_finalizers:M}=this;M&&(0,b.P)(M,T),T instanceof a&&T._removeParent(this)}}a.EMPTY=(()=>{const D=new a;return D.closed=!0,D})();const y=a.EMPTY;function d(D){return D instanceof a||D&&"closed"in D&&(0,e.m)(D.remove)&&(0,e.m)(D.add)&&(0,e.m)(D.unsubscribe)}function P(D){(0,e.m)(D)?D():D.unsubscribe()}},2416:(He,j,p)=>{"use strict";p.d(j,{v:()=>e});const e={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9841:(He,j,p)=>{"use strict";p.d(j,{a:()=>T});var e=p(8306),i=p(4742),u=p(457),b=p(4671),a=p(3268),y=p(3269),d=p(1810),P=p(5403),D=p(9672);function T(...E){const k=(0,y.yG)(E),w=(0,y.jO)(E),{args:z,keys:U}=(0,i.D)(E);if(0===z.length)return(0,u.D)([],k);const W=new e.y(function M(E,k,w=b.y){return z=>{A(k,()=>{const{length:U}=E,W=new Array(U);let ne=U,Q=U;for(let le=0;le<U;le++)A(k,()=>{const q=(0,u.D)(E[le],k);let ie=!1;q.subscribe((0,P.x)(z,se=>{W[le]=se,ie||(ie=!0,Q--),Q||z.next(w(W.slice()))},()=>{--ne||z.complete()}))},z)},z)}}(z,k,U?ne=>(0,d.n)(U,ne):b.y));return w?W.pipe((0,a.Z)(w)):W}function A(E,k,w){E?(0,D.f)(w,E,k):k()}},7272:(He,j,p)=>{"use strict";p.d(j,{z:()=>a});var e=p(8189),u=p(3269),b=p(457);function a(...y){return function i(){return(0,e.J)(1)}()((0,b.D)(y,(0,u.yG)(y)))}},9770:(He,j,p)=>{"use strict";p.d(j,{P:()=>u});var e=p(8306),i=p(8421);function u(b){return new e.y(a=>{(0,i.Xf)(b()).subscribe(a)})}},515:(He,j,p)=>{"use strict";p.d(j,{E:()=>i});const i=new(p(8306).y)(a=>a.complete())},4128:(He,j,p)=>{"use strict";p.d(j,{D:()=>P});var e=p(8306),i=p(4742),u=p(8421),b=p(3269),a=p(5403),y=p(3268),d=p(1810);function P(...D){const T=(0,b.jO)(D),{args:M,keys:A}=(0,i.D)(D),E=new e.y(k=>{const{length:w}=M;if(!w)return void k.complete();const z=new Array(w);let U=w,W=w;for(let ne=0;ne<w;ne++){let Q=!1;(0,u.Xf)(M[ne]).subscribe((0,a.x)(k,le=>{Q||(Q=!0,W--),z[ne]=le},()=>U--,void 0,()=>{(!U||!Q)&&(W||k.next(A?(0,d.n)(A,z):z),k.complete())}))}});return T?E.pipe((0,y.Z)(T)):E}},457:(He,j,p)=>{"use strict";p.d(j,{D:()=>ie});var e=p(8421),i=p(5363),u=p(4482);function b(se,J=0){return(0,u.e)((me,x)=>{x.add(se.schedule(()=>me.subscribe(x),J))})}var d=p(8306),D=p(2202),T=p(576),M=p(9672);function E(se,J){if(!se)throw new Error("Iterable cannot be null");return new d.y(me=>{(0,M.f)(me,J,()=>{const x=se[Symbol.asyncIterator]();(0,M.f)(me,J,()=>{x.next().then(t=>{t.done?me.complete():me.next(t.value)})},0,!0)})})}var k=p(3670),w=p(8239),z=p(1144),U=p(6495),W=p(2206),ne=p(4532),Q=p(3260);function ie(se,J){return J?function q(se,J){if(null!=se){if((0,k.c)(se))return function a(se,J){return(0,e.Xf)(se).pipe(b(J),(0,i.Q)(J))}(se,J);if((0,z.z)(se))return function P(se,J){return new d.y(me=>{let x=0;return J.schedule(function(){x===se.length?me.complete():(me.next(se[x++]),me.closed||this.schedule())})})}(se,J);if((0,w.t)(se))return function y(se,J){return(0,e.Xf)(se).pipe(b(J),(0,i.Q)(J))}(se,J);if((0,W.D)(se))return E(se,J);if((0,U.T)(se))return function A(se,J){return new d.y(me=>{let x;return(0,M.f)(me,J,()=>{x=se[D.h](),(0,M.f)(me,J,()=>{let t,r;try{({value:t,done:r}=x.next())}catch(h){return void me.error(h)}r?me.complete():me.next(t)},0,!0)}),()=>(0,T.m)(null==x?void 0:x.return)&&x.return()})}(se,J);if((0,Q.L)(se))return function le(se,J){return E((0,Q.Q)(se),J)}(se,J)}throw(0,ne.z)(se)}(se,J):(0,e.Xf)(se)}},4968:(He,j,p)=>{"use strict";p.d(j,{R:()=>T});var e=p(8421),i=p(8306),u=p(5577),b=p(1144),a=p(576),y=p(3268);const d=["addListener","removeListener"],P=["addEventListener","removeEventListener"],D=["on","off"];function T(w,z,U,W){if((0,a.m)(U)&&(W=U,U=void 0),W)return T(w,z,U).pipe((0,y.Z)(W));const[ne,Q]=function k(w){return(0,a.m)(w.addEventListener)&&(0,a.m)(w.removeEventListener)}(w)?P.map(le=>q=>w[le](z,q,U)):function A(w){return(0,a.m)(w.addListener)&&(0,a.m)(w.removeListener)}(w)?d.map(M(w,z)):function E(w){return(0,a.m)(w.on)&&(0,a.m)(w.off)}(w)?D.map(M(w,z)):[];if(!ne&&(0,b.z)(w))return(0,u.z)(le=>T(le,z,U))((0,e.Xf)(w));if(!ne)throw new TypeError("Invalid event target");return new i.y(le=>{const q=(...ie)=>le.next(1<ie.length?ie:ie[0]);return ne(q),()=>Q(q)})}function M(w,z){return U=>W=>w[U](z,W)}},8421:(He,j,p)=>{"use strict";p.d(j,{Xf:()=>E});var e=p(655),i=p(1144),u=p(8239),b=p(8306),a=p(3670),y=p(2206),d=p(4532),P=p(6495),D=p(3260),T=p(576),M=p(7849),A=p(8822);function E(le){if(le instanceof b.y)return le;if(null!=le){if((0,a.c)(le))return function k(le){return new b.y(q=>{const ie=le[A.L]();if((0,T.m)(ie.subscribe))return ie.subscribe(q);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(le);if((0,i.z)(le))return function w(le){return new b.y(q=>{for(let ie=0;ie<le.length&&!q.closed;ie++)q.next(le[ie]);q.complete()})}(le);if((0,u.t)(le))return function z(le){return new b.y(q=>{le.then(ie=>{q.closed||(q.next(ie),q.complete())},ie=>q.error(ie)).then(null,M.h)})}(le);if((0,y.D)(le))return W(le);if((0,P.T)(le))return function U(le){return new b.y(q=>{for(const ie of le)if(q.next(ie),q.closed)return;q.complete()})}(le);if((0,D.L)(le))return function ne(le){return W((0,D.Q)(le))}(le)}throw(0,d.z)(le)}function W(le){return new b.y(q=>{(function Q(le,q){var ie,se,J,me;return(0,e.mG)(this,void 0,void 0,function*(){try{for(ie=(0,e.KL)(le);!(se=yield ie.next()).done;)if(q.next(se.value),q.closed)return}catch(x){J={error:x}}finally{try{se&&!se.done&&(me=ie.return)&&(yield me.call(ie))}finally{if(J)throw J.error}}q.complete()})})(le,q).catch(ie=>q.error(ie))})}},6451:(He,j,p)=>{"use strict";p.d(j,{T:()=>y});var e=p(8189),i=p(8421),u=p(515),b=p(3269),a=p(457);function y(...d){const P=(0,b.yG)(d),D=(0,b._6)(d,1/0),T=d;return T.length?1===T.length?(0,i.Xf)(T[0]):(0,e.J)(D)((0,a.D)(T,P)):u.E}},9646:(He,j,p)=>{"use strict";p.d(j,{of:()=>u});var e=p(3269),i=p(457);function u(...b){const a=(0,e.yG)(b);return(0,i.D)(b,a)}},2843:(He,j,p)=>{"use strict";p.d(j,{_:()=>u});var e=p(8306),i=p(576);function u(b,a){const y=(0,i.m)(b)?b:()=>b,d=P=>P.error(y());return new e.y(a?P=>a.schedule(d,0,P):d)}},2805:(He,j,p)=>{"use strict";p.d(j,{H:()=>a});var e=p(8306),i=p(4986),u=p(3532),b=p(1165);function a(y=0,d,P=i.P){let D=-1;return null!=d&&((0,u.K)(d)?P=d:D=d),new e.y(T=>{let M=(0,b.q)(y)?+y-P.now():y;M<0&&(M=0);let A=0;return P.schedule(function(){T.closed||(T.next(A++),0<=D?this.schedule(void 0,D):T.complete())},M)})}},5403:(He,j,p)=>{"use strict";p.d(j,{Q:()=>u,x:()=>i});var e=p(930);function i(b,a,y,d,P){return new u(b,a,y,d,P)}class u extends e.Lv{constructor(a,y,d,P,D,T){super(a),this.onFinalize=D,this.shouldUnsubscribe=T,this._next=y?function(M){try{y(M)}catch(A){a.error(A)}}:super._next,this._error=P?function(M){try{P(M)}catch(A){a.error(A)}finally{this.unsubscribe()}}:super._error,this._complete=d?function(){try{d()}catch(M){a.error(M)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var a;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:y}=this;super.unsubscribe(),!y&&(null===(a=this.onFinalize)||void 0===a||a.call(this))}}}},3601:(He,j,p)=>{"use strict";p.d(j,{e:()=>d});var e=p(4986),i=p(4482),u=p(8421),b=p(5403),y=p(2805);function d(P,D=e.z){return function a(P){return(0,i.e)((D,T)=>{let M=!1,A=null,E=null,k=!1;const w=()=>{if(null==E||E.unsubscribe(),E=null,M){M=!1;const U=A;A=null,T.next(U)}k&&T.complete()},z=()=>{E=null,k&&T.complete()};D.subscribe((0,b.x)(T,U=>{M=!0,A=U,E||(0,u.Xf)(P(U)).subscribe(E=(0,b.x)(T,w,z))},()=>{k=!0,(!M||!E||E.closed)&&T.complete()}))})}(()=>(0,y.H)(P,D))}},262:(He,j,p)=>{"use strict";p.d(j,{K:()=>b});var e=p(8421),i=p(5403),u=p(4482);function b(a){return(0,u.e)((y,d)=>{let T,P=null,D=!1;P=y.subscribe((0,i.x)(d,void 0,void 0,M=>{T=(0,e.Xf)(a(M,b(a)(y))),P?(P.unsubscribe(),P=null,T.subscribe(d)):D=!0})),D&&(P.unsubscribe(),P=null,T.subscribe(d))})}},4351:(He,j,p)=>{"use strict";p.d(j,{b:()=>u});var e=p(5577),i=p(576);function u(b,a){return(0,i.m)(a)?(0,e.z)(b,a,1):(0,e.z)(b,1)}},8372:(He,j,p)=>{"use strict";p.d(j,{b:()=>b});var e=p(4986),i=p(4482),u=p(5403);function b(a,y=e.z){return(0,i.e)((d,P)=>{let D=null,T=null,M=null;const A=()=>{if(D){D.unsubscribe(),D=null;const k=T;T=null,P.next(k)}};function E(){const k=M+a,w=y.now();if(w<k)return D=this.schedule(void 0,k-w),void P.add(D);A()}d.subscribe((0,u.x)(P,k=>{T=k,M=y.now(),D||(D=y.schedule(E,a),P.add(D))},()=>{A(),P.complete()},void 0,()=>{T=D=null}))})}},6590:(He,j,p)=>{"use strict";p.d(j,{d:()=>u});var e=p(4482),i=p(5403);function u(b){return(0,e.e)((a,y)=>{let d=!1;a.subscribe((0,i.x)(y,P=>{d=!0,y.next(P)},()=>{d||y.next(b),y.complete()}))})}},4086:(He,j,p)=>{"use strict";p.d(j,{g:()=>D});var e=p(4986),i=p(7272),u=p(5698),b=p(8502),a=p(9718),y=p(5577);function d(T,M){return M?A=>(0,i.z)(M.pipe((0,u.q)(1),(0,b.l)()),A.pipe(d(T))):(0,y.z)((A,E)=>T(A,E).pipe((0,u.q)(1),(0,a.h)(A)))}var P=p(2805);function D(T,M=e.z){const A=(0,P.H)(T,M);return d(()=>A)}},1884:(He,j,p)=>{"use strict";p.d(j,{x:()=>b});var e=p(4671),i=p(4482),u=p(5403);function b(y,d=e.y){return y=null!=y?y:a,(0,i.e)((P,D)=>{let T,M=!0;P.subscribe((0,u.x)(D,A=>{const E=d(A);(M||!y(T,E))&&(M=!1,T=E,D.next(A))}))})}function a(y,d){return y===d}},9300:(He,j,p)=>{"use strict";p.d(j,{h:()=>u});var e=p(4482),i=p(5403);function u(b,a){return(0,e.e)((y,d)=>{let P=0;y.subscribe((0,i.x)(d,D=>b.call(a,D,P++)&&d.next(D)))})}},8746:(He,j,p)=>{"use strict";p.d(j,{x:()=>i});var e=p(4482);function i(u){return(0,e.e)((b,a)=>{try{b.subscribe(a)}finally{a.add(u)}})}},590:(He,j,p)=>{"use strict";p.d(j,{P:()=>d});var e=p(6805),i=p(9300),u=p(5698),b=p(6590),a=p(8068),y=p(4671);function d(P,D){const T=arguments.length>=2;return M=>M.pipe(P?(0,i.h)((A,E)=>P(A,E,M)):y.y,(0,u.q)(1),T?(0,b.d)(D):(0,a.T)(()=>new e.K))}},8502:(He,j,p)=>{"use strict";p.d(j,{l:()=>b});var e=p(4482),i=p(5403),u=p(5032);function b(){return(0,e.e)((a,y)=>{a.subscribe((0,i.x)(y,u.Z))})}},4004:(He,j,p)=>{"use strict";p.d(j,{U:()=>u});var e=p(4482),i=p(5403);function u(b,a){return(0,e.e)((y,d)=>{let P=0;y.subscribe((0,i.x)(d,D=>{d.next(b.call(a,D,P++))}))})}},9718:(He,j,p)=>{"use strict";p.d(j,{h:()=>i});var e=p(4004);function i(u){return(0,e.U)(()=>u)}},8189:(He,j,p)=>{"use strict";p.d(j,{J:()=>u});var e=p(5577),i=p(4671);function u(b=1/0){return(0,e.z)(i.y,b)}},5577:(He,j,p)=>{"use strict";p.d(j,{z:()=>P});var e=p(4004),i=p(8421),u=p(4482),b=p(9672),a=p(5403),d=p(576);function P(D,T,M=1/0){return(0,d.m)(T)?P((A,E)=>(0,e.U)((k,w)=>T(A,k,E,w))((0,i.Xf)(D(A,E))),M):("number"==typeof T&&(M=T),(0,u.e)((A,E)=>function y(D,T,M,A,E,k,w,z){const U=[];let W=0,ne=0,Q=!1;const le=()=>{Q&&!U.length&&!W&&T.complete()},q=se=>W<A?ie(se):U.push(se),ie=se=>{k&&T.next(se),W++;let J=!1;(0,i.Xf)(M(se,ne++)).subscribe((0,a.x)(T,me=>{null==E||E(me),k?q(me):T.next(me)},()=>{J=!0},void 0,()=>{if(J)try{for(W--;U.length&&W<A;){const me=U.shift();w?(0,b.f)(T,w,()=>ie(me)):ie(me)}le()}catch(me){T.error(me)}}))};return D.subscribe((0,a.x)(T,q,()=>{Q=!0,le()})),()=>{null==z||z()}}(A,E,D,M)))}},5363:(He,j,p)=>{"use strict";p.d(j,{Q:()=>b});var e=p(9672),i=p(4482),u=p(5403);function b(a,y=0){return(0,i.e)((d,P)=>{d.subscribe((0,u.x)(P,D=>(0,e.f)(P,a,()=>P.next(D),y),()=>(0,e.f)(P,a,()=>P.complete(),y),D=>(0,e.f)(P,a,()=>P.error(D),y)))})}},5026:(He,j,p)=>{"use strict";p.d(j,{R:()=>b});var e=p(4482),i=p(5403);function u(a,y,d,P,D){return(T,M)=>{let A=d,E=y,k=0;T.subscribe((0,i.x)(M,w=>{const z=k++;E=A?a(E,w,z):(A=!0,w),P&&M.next(E)},D&&(()=>{A&&M.next(E),M.complete()})))}}function b(a,y){return(0,e.e)(u(a,y,arguments.length>=2,!0))}},3099:(He,j,p)=>{"use strict";p.d(j,{B:()=>a});var e=p(8421),i=p(7579),u=p(930),b=p(4482);function a(d={}){const{connector:P=(()=>new i.x),resetOnError:D=!0,resetOnComplete:T=!0,resetOnRefCountZero:M=!0}=d;return A=>{let E,k,w,z=0,U=!1,W=!1;const ne=()=>{null==k||k.unsubscribe(),k=void 0},Q=()=>{ne(),E=w=void 0,U=W=!1},le=()=>{const q=E;Q(),null==q||q.unsubscribe()};return(0,b.e)((q,ie)=>{z++,!W&&!U&&ne();const se=w=null!=w?w:P();ie.add(()=>{z--,0===z&&!W&&!U&&(k=y(le,M))}),se.subscribe(ie),!E&&z>0&&(E=new u.Hp({next:J=>se.next(J),error:J=>{W=!0,ne(),k=y(Q,D,J),se.error(J)},complete:()=>{U=!0,ne(),k=y(Q,T),se.complete()}}),(0,e.Xf)(q).subscribe(E))})(A)}}function y(d,P,...D){if(!0===P)return void d();if(!1===P)return;const T=new u.Hp({next:()=>{T.unsubscribe(),d()}});return P(...D).subscribe(T)}},5684:(He,j,p)=>{"use strict";p.d(j,{T:()=>i});var e=p(9300);function i(u){return(0,e.h)((b,a)=>u<=a)}},8675:(He,j,p)=>{"use strict";p.d(j,{O:()=>b});var e=p(7272),i=p(3269),u=p(4482);function b(...a){const y=(0,i.yG)(a);return(0,u.e)((d,P)=>{(y?(0,e.z)(a,d,y):(0,e.z)(a,d)).subscribe(P)})}},3900:(He,j,p)=>{"use strict";p.d(j,{w:()=>b});var e=p(8421),i=p(4482),u=p(5403);function b(a,y){return(0,i.e)((d,P)=>{let D=null,T=0,M=!1;const A=()=>M&&!D&&P.complete();d.subscribe((0,u.x)(P,E=>{null==D||D.unsubscribe();let k=0;const w=T++;(0,e.Xf)(a(E,w)).subscribe(D=(0,u.x)(P,z=>P.next(y?y(E,z,w,k++):z),()=>{D=null,A()}))},()=>{M=!0,A()}))})}},5698:(He,j,p)=>{"use strict";p.d(j,{q:()=>b});var e=p(515),i=p(4482),u=p(5403);function b(a){return a<=0?()=>e.E:(0,i.e)((y,d)=>{let P=0;y.subscribe((0,u.x)(d,D=>{++P<=a&&(d.next(D),a<=P&&d.complete())}))})}},2722:(He,j,p)=>{"use strict";p.d(j,{R:()=>a});var e=p(4482),i=p(5403),u=p(8421),b=p(5032);function a(y){return(0,e.e)((d,P)=>{(0,u.Xf)(y).subscribe((0,i.x)(P,()=>P.complete(),b.Z)),!P.closed&&d.subscribe(P)})}},8505:(He,j,p)=>{"use strict";p.d(j,{b:()=>a});var e=p(576),i=p(4482),u=p(5403),b=p(4671);function a(y,d,P){const D=(0,e.m)(y)||d||P?{next:y,error:d,complete:P}:y;return D?(0,i.e)((T,M)=>{var A;null===(A=D.subscribe)||void 0===A||A.call(D);let E=!0;T.subscribe((0,u.x)(M,k=>{var w;null===(w=D.next)||void 0===w||w.call(D,k),M.next(k)},()=>{var k;E=!1,null===(k=D.complete)||void 0===k||k.call(D),M.complete()},k=>{var w;E=!1,null===(w=D.error)||void 0===w||w.call(D,k),M.error(k)},()=>{var k,w;E&&(null===(k=D.unsubscribe)||void 0===k||k.call(D)),null===(w=D.finalize)||void 0===w||w.call(D)}))}):b.y}},8068:(He,j,p)=>{"use strict";p.d(j,{T:()=>b});var e=p(6805),i=p(4482),u=p(5403);function b(y=a){return(0,i.e)((d,P)=>{let D=!1;d.subscribe((0,u.x)(P,T=>{D=!0,P.next(T)},()=>D?P.complete():P.error(y())))})}function a(){return new e.K}},7414:(He,j,p)=>{"use strict";p.d(j,{V:()=>D});var e=p(4986),i=p(1165),u=p(4482),b=p(8421),a=p(3888),y=p(5403),d=p(9672);const P=(0,a.d)(M=>function(E=null){M(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=E});function D(M,A){const{first:E,each:k,with:w=T,scheduler:z=(null!=A?A:e.z),meta:U=null}=(0,i.q)(M)?{first:M}:"number"==typeof M?{each:M}:M;if(null==E&&null==k)throw new TypeError("No timeout provided.");return(0,u.e)((W,ne)=>{let Q,le,q=null,ie=0;const se=J=>{le=(0,d.f)(ne,z,()=>{try{Q.unsubscribe(),(0,b.Xf)(w({meta:U,lastValue:q,seen:ie})).subscribe(ne)}catch(me){ne.error(me)}},J)};Q=W.subscribe((0,y.x)(ne,J=>{null==le||le.unsubscribe(),ie++,ne.next(q=J),k>0&&se(k)},void 0,void 0,()=>{(null==le?void 0:le.closed)||null==le||le.unsubscribe(),q=null})),!ie&&se(null!=E?"number"==typeof E?E:+E-z.now():k)})}function T(M){throw new P(M)}},1365:(He,j,p)=>{"use strict";p.d(j,{M:()=>d});var e=p(4482),i=p(5403),u=p(8421),b=p(4671),a=p(5032),y=p(3269);function d(...P){const D=(0,y.jO)(P);return(0,e.e)((T,M)=>{const A=P.length,E=new Array(A);let k=P.map(()=>!1),w=!1;for(let z=0;z<A;z++)(0,u.Xf)(P[z]).subscribe((0,i.x)(M,U=>{E[z]=U,!w&&!k[z]&&(k[z]=!0,(w=k.every(b.y))&&(k=null))},a.Z));T.subscribe((0,i.x)(M,z=>{if(w){const U=[z,...E];M.next(D?D(...U):U)}}))})}},4408:(He,j,p)=>{"use strict";p.d(j,{o:()=>a});var e=p(727);class i extends e.w0{constructor(d,P){super()}schedule(d,P=0){return this}}const u={setInterval(y,d,...P){const{delegate:D}=u;return(null==D?void 0:D.setInterval)?D.setInterval(y,d,...P):setInterval(y,d,...P)},clearInterval(y){const{delegate:d}=u;return((null==d?void 0:d.clearInterval)||clearInterval)(y)},delegate:void 0};var b=p(8737);class a extends i{constructor(d,P){super(d,P),this.scheduler=d,this.work=P,this.pending=!1}schedule(d,P=0){if(this.closed)return this;this.state=d;const D=this.id,T=this.scheduler;return null!=D&&(this.id=this.recycleAsyncId(T,D,P)),this.pending=!0,this.delay=P,this.id=this.id||this.requestAsyncId(T,this.id,P),this}requestAsyncId(d,P,D=0){return u.setInterval(d.flush.bind(d,this),D)}recycleAsyncId(d,P,D=0){if(null!=D&&this.delay===D&&!1===this.pending)return P;u.clearInterval(P)}execute(d,P){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const D=this._execute(d,P);if(D)return D;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(d,P){let T,D=!1;try{this.work(d)}catch(M){D=!0,T=M||new Error("Scheduled action threw falsy error")}if(D)return this.unsubscribe(),T}unsubscribe(){if(!this.closed){const{id:d,scheduler:P}=this,{actions:D}=P;this.work=this.state=this.scheduler=null,this.pending=!1,(0,b.P)(D,this),null!=d&&(this.id=this.recycleAsyncId(P,d,null)),this.delay=null,super.unsubscribe()}}}},7565:(He,j,p)=>{"use strict";p.d(j,{v:()=>u});var e=p(6063);class i{constructor(a,y=i.now){this.schedulerActionCtor=a,this.now=y}schedule(a,y=0,d){return new this.schedulerActionCtor(this,a).schedule(d,y)}}i.now=e.l.now;class u extends i{constructor(a,y=i.now){super(a,y),this.actions=[],this._active=!1,this._scheduled=void 0}flush(a){const{actions:y}=this;if(this._active)return void y.push(a);let d;this._active=!0;do{if(d=a.execute(a.state,a.delay))break}while(a=y.shift());if(this._active=!1,d){for(;a=y.shift();)a.unsubscribe();throw d}}}},3101:(He,j,p)=>{"use strict";p.d(j,{E:()=>k});var e=p(4408);let u,i=1;const b={};function a(z){return z in b&&(delete b[z],!0)}const y={setImmediate(z){const U=i++;return b[U]=!0,u||(u=Promise.resolve()),u.then(()=>a(U)&&z()),U},clearImmediate(z){a(z)}},{setImmediate:P,clearImmediate:D}=y,T={setImmediate(...z){const{delegate:U}=T;return((null==U?void 0:U.setImmediate)||P)(...z)},clearImmediate(z){const{delegate:U}=T;return((null==U?void 0:U.clearImmediate)||D)(z)},delegate:void 0};var A=p(7565);const k=new class E extends A.v{flush(U){this._active=!0;const W=this._scheduled;this._scheduled=void 0;const{actions:ne}=this;let Q;U=U||ne.shift();do{if(Q=U.execute(U.state,U.delay))break}while((U=ne[0])&&U.id===W&&ne.shift());if(this._active=!1,Q){for(;(U=ne[0])&&U.id===W&&ne.shift();)U.unsubscribe();throw Q}}}(class M extends e.o{constructor(U,W){super(U,W),this.scheduler=U,this.work=W}requestAsyncId(U,W,ne=0){return null!==ne&&ne>0?super.requestAsyncId(U,W,ne):(U.actions.push(this),U._scheduled||(U._scheduled=T.setImmediate(U.flush.bind(U,void 0))))}recycleAsyncId(U,W,ne=0){if(null!=ne&&ne>0||null==ne&&this.delay>0)return super.recycleAsyncId(U,W,ne);U.actions.some(Q=>Q.id===W)||(T.clearImmediate(W),U._scheduled=void 0)}})},4986:(He,j,p)=>{"use strict";p.d(j,{P:()=>b,z:()=>u});var e=p(4408);const u=new(p(7565).v)(e.o),b=u},6063:(He,j,p)=>{"use strict";p.d(j,{l:()=>e});const e={now:()=>(e.delegate||Date).now(),delegate:void 0}},233:(He,j,p)=>{"use strict";p.d(j,{N:()=>a});var e=p(4408),u=p(7565);const a=new class b extends u.v{}(class i extends e.o{constructor(P,D){super(P,D),this.scheduler=P,this.work=D}schedule(P,D=0){return D>0?super.schedule(P,D):(this.delay=D,this.state=P,this.scheduler.flush(this),this)}execute(P,D){return D>0||this.closed?super.execute(P,D):this._execute(P,D)}requestAsyncId(P,D,T=0){return null!=T&&T>0||null==T&&this.delay>0?super.requestAsyncId(P,D,T):P.flush(this)}})},3410:(He,j,p)=>{"use strict";p.d(j,{z:()=>e});const e={setTimeout(i,u,...b){const{delegate:a}=e;return(null==a?void 0:a.setTimeout)?a.setTimeout(i,u,...b):setTimeout(i,u,...b)},clearTimeout(i){const{delegate:u}=e;return((null==u?void 0:u.clearTimeout)||clearTimeout)(i)},delegate:void 0}},2202:(He,j,p)=>{"use strict";p.d(j,{h:()=>i});const i=function e(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(He,j,p)=>{"use strict";p.d(j,{L:()=>e});const e="function"==typeof Symbol&&Symbol.observable||"@@observable"},6805:(He,j,p)=>{"use strict";p.d(j,{K:()=>i});const i=(0,p(3888).d)(u=>function(){u(this),this.name="EmptyError",this.message="no elements in sequence"})},3269:(He,j,p)=>{"use strict";p.d(j,{_6:()=>y,jO:()=>b,yG:()=>a});var e=p(576),i=p(3532);function u(d){return d[d.length-1]}function b(d){return(0,e.m)(u(d))?d.pop():void 0}function a(d){return(0,i.K)(u(d))?d.pop():void 0}function y(d,P){return"number"==typeof u(d)?d.pop():P}},4742:(He,j,p)=>{"use strict";p.d(j,{D:()=>a});const{isArray:e}=Array,{getPrototypeOf:i,prototype:u,keys:b}=Object;function a(d){if(1===d.length){const P=d[0];if(e(P))return{args:P,keys:null};if(function y(d){return d&&"object"==typeof d&&i(d)===u}(P)){const D=b(P);return{args:D.map(T=>P[T]),keys:D}}}return{args:d,keys:null}}},8737:(He,j,p)=>{"use strict";function e(i,u){if(i){const b=i.indexOf(u);0<=b&&i.splice(b,1)}}p.d(j,{P:()=>e})},3888:(He,j,p)=>{"use strict";function e(i){const b=i(a=>{Error.call(a),a.stack=(new Error).stack});return b.prototype=Object.create(Error.prototype),b.prototype.constructor=b,b}p.d(j,{d:()=>e})},1810:(He,j,p)=>{"use strict";function e(i,u){return i.reduce((b,a,y)=>(b[a]=u[y],b),{})}p.d(j,{n:()=>e})},2806:(He,j,p)=>{"use strict";p.d(j,{O:()=>b,x:()=>u});var e=p(2416);let i=null;function u(a){if(e.v.useDeprecatedSynchronousErrorHandling){const y=!i;if(y&&(i={errorThrown:!1,error:null}),a(),y){const{errorThrown:d,error:P}=i;if(i=null,d)throw P}}else a()}function b(a){e.v.useDeprecatedSynchronousErrorHandling&&i&&(i.errorThrown=!0,i.error=a)}},9672:(He,j,p)=>{"use strict";function e(i,u,b,a=0,y=!1){const d=u.schedule(function(){b(),y?i.add(this.schedule(null,a)):this.unsubscribe()},a);if(i.add(d),!y)return d}p.d(j,{f:()=>e})},4671:(He,j,p)=>{"use strict";function e(i){return i}p.d(j,{y:()=>e})},1144:(He,j,p)=>{"use strict";p.d(j,{z:()=>e});const e=i=>i&&"number"==typeof i.length&&"function"!=typeof i},2206:(He,j,p)=>{"use strict";p.d(j,{D:()=>i});var e=p(576);function i(u){return Symbol.asyncIterator&&(0,e.m)(null==u?void 0:u[Symbol.asyncIterator])}},1165:(He,j,p)=>{"use strict";function e(i){return i instanceof Date&&!isNaN(i)}p.d(j,{q:()=>e})},576:(He,j,p)=>{"use strict";function e(i){return"function"==typeof i}p.d(j,{m:()=>e})},3670:(He,j,p)=>{"use strict";p.d(j,{c:()=>u});var e=p(8822),i=p(576);function u(b){return(0,i.m)(b[e.L])}},6495:(He,j,p)=>{"use strict";p.d(j,{T:()=>u});var e=p(2202),i=p(576);function u(b){return(0,i.m)(null==b?void 0:b[e.h])}},5191:(He,j,p)=>{"use strict";p.d(j,{b:()=>u});var e=p(8306),i=p(576);function u(b){return!!b&&(b instanceof e.y||(0,i.m)(b.lift)&&(0,i.m)(b.subscribe))}},8239:(He,j,p)=>{"use strict";p.d(j,{t:()=>i});var e=p(576);function i(u){return(0,e.m)(null==u?void 0:u.then)}},3260:(He,j,p)=>{"use strict";p.d(j,{L:()=>b,Q:()=>u});var e=p(655),i=p(576);function u(a){return(0,e.FC)(this,arguments,function*(){const d=a.getReader();try{for(;;){const{value:P,done:D}=yield(0,e.qq)(d.read());if(D)return yield(0,e.qq)(void 0);yield yield(0,e.qq)(P)}}finally{d.releaseLock()}})}function b(a){return(0,i.m)(null==a?void 0:a.getReader)}},3532:(He,j,p)=>{"use strict";p.d(j,{K:()=>i});var e=p(576);function i(u){return u&&(0,e.m)(u.schedule)}},4482:(He,j,p)=>{"use strict";p.d(j,{A:()=>i,e:()=>u});var e=p(576);function i(b){return(0,e.m)(null==b?void 0:b.lift)}function u(b){return a=>{if(i(a))return a.lift(function(y){try{return b(y,this)}catch(d){this.error(d)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(He,j,p)=>{"use strict";p.d(j,{Z:()=>b});var e=p(4004);const{isArray:i}=Array;function b(a){return(0,e.U)(y=>function u(a,y){return i(y)?a(...y):a(y)}(a,y))}},5032:(He,j,p)=>{"use strict";function e(){}p.d(j,{Z:()=>e})},7849:(He,j,p)=>{"use strict";p.d(j,{h:()=>u});var e=p(2416),i=p(3410);function u(b){i.z.setTimeout(()=>{const{onUnhandledError:a}=e.v;if(!a)throw b;a(b)})}},4532:(He,j,p)=>{"use strict";function e(i){return new TypeError(`You provided ${null!==i&&"object"==typeof i?"an invalid object":`'${i}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}p.d(j,{z:()=>e})},3502:(He,j,p)=>{var e=p(3172),i=e.Buffer;function u(a,y){for(var d in a)y[d]=a[d]}function b(a,y,d){return i(a,y,d)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?He.exports=e:(u(e,j),j.Buffer=b),u(i,b),b.from=function(a,y,d){if("number"==typeof a)throw new TypeError("Argument must not be a number");return i(a,y,d)},b.alloc=function(a,y,d){if("number"!=typeof a)throw new TypeError("Argument must be a number");var P=i(a);return void 0!==y?"string"==typeof d?P.fill(y,d):P.fill(y):P.fill(0),P},b.allocUnsafe=function(a){if("number"!=typeof a)throw new TypeError("Argument must be a number");return i(a)},b.allocUnsafeSlow=function(a){if("number"!=typeof a)throw new TypeError("Argument must be a number");return e.SlowBuffer(a)}},2038:(He,j,p)=>{"use strict";var b,e=p(3172),i=e.Buffer,u={};for(b in e)!e.hasOwnProperty(b)||"SlowBuffer"===b||"Buffer"===b||(u[b]=e[b]);var a=u.Buffer={};for(b in i)!i.hasOwnProperty(b)||"allocUnsafe"===b||"allocUnsafeSlow"===b||(a[b]=i[b]);if(u.Buffer.prototype=i.prototype,(!a.from||a.from===Uint8Array.from)&&(a.from=function(y,d,P){if("number"==typeof y)throw new TypeError('The "value" argument must not be of type number. Received type '+typeof y);if(y&&void 0===y.length)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof y);return i(y,d,P)}),a.alloc||(a.alloc=function(y,d,P){if("number"!=typeof y)throw new TypeError('The "size" argument must be of type number. Received type '+typeof y);if(y<0||y>=2*(1<<30))throw new RangeError('The value "'+y+'" is invalid for option "size"');var D=i(y);return d&&0!==d.length?"string"==typeof P?D.fill(d,P):D.fill(d):D.fill(0),D}),!u.kStringMaxLength)try{u.kStringMaxLength=process.binding("buffer").kStringMaxLength}catch(y){}u.constants||(u.constants={MAX_LENGTH:u.kMaxLength},u.kStringMaxLength&&(u.constants.MAX_STRING_LENGTH=u.kStringMaxLength)),He.exports=u},6692:(He,j,p)=>{var e=p(3502).Buffer;function i(u,b){this._block=e.alloc(u),this._finalSize=b,this._blockSize=u,this._len=0}i.prototype.update=function(u,b){"string"==typeof u&&(u=e.from(u,b=b||"utf8"));for(var a=this._block,y=this._blockSize,d=u.length,P=this._len,D=0;D<d;){for(var T=P%y,M=Math.min(d-D,y-T),A=0;A<M;A++)a[T+A]=u[D+A];D+=M,(P+=M)%y==0&&this._update(a)}return this._len+=d,this},i.prototype.digest=function(u){var b=this._len%this._blockSize;this._block[b]=128,this._block.fill(0,b+1),b>=this._finalSize&&(this._update(this._block),this._block.fill(0));var a=8*this._len;if(a<=4294967295)this._block.writeUInt32BE(a,this._blockSize-4);else{var y=(4294967295&a)>>>0;this._block.writeUInt32BE((a-y)/4294967296,this._blockSize-8),this._block.writeUInt32BE(y,this._blockSize-4)}this._update(this._block);var P=this._hash();return u?P.toString(u):P},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},He.exports=i},5244:(He,j,p)=>{var e=He.exports=function(u){u=u.toLowerCase();var b=e[u];if(!b)throw new Error(u+" is not supported (we accept pull requests)");return new b};e.sha=p(8932),e.sha1=p(7736),e.sha224=p(5044),e.sha256=p(5014),e.sha384=p(6540),e.sha512=p(117)},8932:(He,j,p)=>{var e=p(3894),i=p(6692),u=p(3502).Buffer,b=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function y(){this.init(),this._w=a,i.call(this,64,56)}function d(T){return T<<5|T>>>27}function P(T){return T<<30|T>>>2}function D(T,M,A,E){return 0===T?M&A|~M&E:2===T?M&A|M&E|A&E:M^A^E}e(y,i),y.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},y.prototype._update=function(T){for(var M=this._w,A=0|this._a,E=0|this._b,k=0|this._c,w=0|this._d,z=0|this._e,U=0;U<16;++U)M[U]=T.readInt32BE(4*U);for(;U<80;++U)M[U]=M[U-3]^M[U-8]^M[U-14]^M[U-16];for(var W=0;W<80;++W){var ne=~~(W/20),Q=d(A)+D(ne,E,k,w)+z+M[W]+b[ne]|0;z=w,w=k,k=P(E),E=A,A=Q}this._a=A+this._a|0,this._b=E+this._b|0,this._c=k+this._c|0,this._d=w+this._d|0,this._e=z+this._e|0},y.prototype._hash=function(){var T=u.allocUnsafe(20);return T.writeInt32BE(0|this._a,0),T.writeInt32BE(0|this._b,4),T.writeInt32BE(0|this._c,8),T.writeInt32BE(0|this._d,12),T.writeInt32BE(0|this._e,16),T},He.exports=y},7736:(He,j,p)=>{var e=p(3894),i=p(6692),u=p(3502).Buffer,b=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function y(){this.init(),this._w=a,i.call(this,64,56)}function d(M){return M<<1|M>>>31}function P(M){return M<<5|M>>>27}function D(M){return M<<30|M>>>2}function T(M,A,E,k){return 0===M?A&E|~A&k:2===M?A&E|A&k|E&k:A^E^k}e(y,i),y.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},y.prototype._update=function(M){for(var A=this._w,E=0|this._a,k=0|this._b,w=0|this._c,z=0|this._d,U=0|this._e,W=0;W<16;++W)A[W]=M.readInt32BE(4*W);for(;W<80;++W)A[W]=d(A[W-3]^A[W-8]^A[W-14]^A[W-16]);for(var ne=0;ne<80;++ne){var Q=~~(ne/20),le=P(E)+T(Q,k,w,z)+U+A[ne]+b[Q]|0;U=z,z=w,w=D(k),k=E,E=le}this._a=E+this._a|0,this._b=k+this._b|0,this._c=w+this._c|0,this._d=z+this._d|0,this._e=U+this._e|0},y.prototype._hash=function(){var M=u.allocUnsafe(20);return M.writeInt32BE(0|this._a,0),M.writeInt32BE(0|this._b,4),M.writeInt32BE(0|this._c,8),M.writeInt32BE(0|this._d,12),M.writeInt32BE(0|this._e,16),M},He.exports=y},5044:(He,j,p)=>{var e=p(3894),i=p(5014),u=p(6692),b=p(3502).Buffer,a=new Array(64);function y(){this.init(),this._w=a,u.call(this,64,56)}e(y,i),y.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},y.prototype._hash=function(){var d=b.allocUnsafe(28);return d.writeInt32BE(this._a,0),d.writeInt32BE(this._b,4),d.writeInt32BE(this._c,8),d.writeInt32BE(this._d,12),d.writeInt32BE(this._e,16),d.writeInt32BE(this._f,20),d.writeInt32BE(this._g,24),d},He.exports=y},5014:(He,j,p)=>{var e=p(3894),i=p(6692),u=p(3502).Buffer,b=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],a=new Array(64);function y(){this.init(),this._w=a,i.call(this,64,56)}function d(E,k,w){return w^E&(k^w)}function P(E,k,w){return E&k|w&(E|k)}function D(E){return(E>>>2|E<<30)^(E>>>13|E<<19)^(E>>>22|E<<10)}function T(E){return(E>>>6|E<<26)^(E>>>11|E<<21)^(E>>>25|E<<7)}function M(E){return(E>>>7|E<<25)^(E>>>18|E<<14)^E>>>3}function A(E){return(E>>>17|E<<15)^(E>>>19|E<<13)^E>>>10}e(y,i),y.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},y.prototype._update=function(E){for(var k=this._w,w=0|this._a,z=0|this._b,U=0|this._c,W=0|this._d,ne=0|this._e,Q=0|this._f,le=0|this._g,q=0|this._h,ie=0;ie<16;++ie)k[ie]=E.readInt32BE(4*ie);for(;ie<64;++ie)k[ie]=A(k[ie-2])+k[ie-7]+M(k[ie-15])+k[ie-16]|0;for(var se=0;se<64;++se){var J=q+T(ne)+d(ne,Q,le)+b[se]+k[se]|0,me=D(w)+P(w,z,U)|0;q=le,le=Q,Q=ne,ne=W+J|0,W=U,U=z,z=w,w=J+me|0}this._a=w+this._a|0,this._b=z+this._b|0,this._c=U+this._c|0,this._d=W+this._d|0,this._e=ne+this._e|0,this._f=Q+this._f|0,this._g=le+this._g|0,this._h=q+this._h|0},y.prototype._hash=function(){var E=u.allocUnsafe(32);return E.writeInt32BE(this._a,0),E.writeInt32BE(this._b,4),E.writeInt32BE(this._c,8),E.writeInt32BE(this._d,12),E.writeInt32BE(this._e,16),E.writeInt32BE(this._f,20),E.writeInt32BE(this._g,24),E.writeInt32BE(this._h,28),E},He.exports=y},6540:(He,j,p)=>{var e=p(3894),i=p(117),u=p(6692),b=p(3502).Buffer,a=new Array(160);function y(){this.init(),this._w=a,u.call(this,128,112)}e(y,i),y.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},y.prototype._hash=function(){var d=b.allocUnsafe(48);function P(D,T,M){d.writeInt32BE(D,M),d.writeInt32BE(T,M+4)}return P(this._ah,this._al,0),P(this._bh,this._bl,8),P(this._ch,this._cl,16),P(this._dh,this._dl,24),P(this._eh,this._el,32),P(this._fh,this._fl,40),d},He.exports=y},117:(He,j,p)=>{var e=p(3894),i=p(6692),u=p(3502).Buffer,b=[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],a=new Array(160);function y(){this.init(),this._w=a,i.call(this,128,112)}function d(z,U,W){return W^z&(U^W)}function P(z,U,W){return z&U|W&(z|U)}function D(z,U){return(z>>>28|U<<4)^(U>>>2|z<<30)^(U>>>7|z<<25)}function T(z,U){return(z>>>14|U<<18)^(z>>>18|U<<14)^(U>>>9|z<<23)}function M(z,U){return(z>>>1|U<<31)^(z>>>8|U<<24)^z>>>7}function A(z,U){return(z>>>1|U<<31)^(z>>>8|U<<24)^(z>>>7|U<<25)}function E(z,U){return(z>>>19|U<<13)^(U>>>29|z<<3)^z>>>6}function k(z,U){return(z>>>19|U<<13)^(U>>>29|z<<3)^(z>>>6|U<<26)}function w(z,U){return z>>>0<U>>>0?1:0}e(y,i),y.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},y.prototype._update=function(z){for(var U=this._w,W=0|this._ah,ne=0|this._bh,Q=0|this._ch,le=0|this._dh,q=0|this._eh,ie=0|this._fh,se=0|this._gh,J=0|this._hh,me=0|this._al,x=0|this._bl,t=0|this._cl,r=0|this._dl,h=0|this._el,c=0|this._fl,C=0|this._gl,S=0|this._hl,I=0;I<32;I+=2)U[I]=z.readInt32BE(4*I),U[I+1]=z.readInt32BE(4*I+4);for(;I<160;I+=2){var _=U[I-30],n=U[I-30+1],g=M(_,n),V=A(n,_),R=E(_=U[I-4],n=U[I-4+1]),H=k(n,_),ye=U[I-32],ke=U[I-32+1],Ee=V+U[I-14+1]|0,te=g+U[I-14]+w(Ee,V)|0;te=(te=te+R+w(Ee=Ee+H|0,H)|0)+ye+w(Ee=Ee+ke|0,ke)|0,U[I]=te,U[I+1]=Ee}for(var ze=0;ze<160;ze+=2){te=U[ze],Ee=U[ze+1];var be=P(W,ne,Q),Z=P(me,x,t),Y=D(W,me),ot=D(me,W),Ie=T(q,h),Ae=T(h,q),ce=b[ze],Te=b[ze+1],xe=d(q,ie,se),G=d(h,c,C),ee=S+Ae|0,ue=J+Ie+w(ee,S)|0;ue=(ue=(ue=ue+xe+w(ee=ee+G|0,G)|0)+ce+w(ee=ee+Te|0,Te)|0)+te+w(ee=ee+Ee|0,Ee)|0;var ve=ot+Z|0,Le=Y+be+w(ve,ot)|0;J=se,S=C,se=ie,C=c,ie=q,c=h,q=le+ue+w(h=r+ee|0,r)|0,le=Q,r=t,Q=ne,t=x,ne=W,x=me,W=ue+Le+w(me=ee+ve|0,ee)|0}this._al=this._al+me|0,this._bl=this._bl+x|0,this._cl=this._cl+t|0,this._dl=this._dl+r|0,this._el=this._el+h|0,this._fl=this._fl+c|0,this._gl=this._gl+C|0,this._hl=this._hl+S|0,this._ah=this._ah+W+w(this._al,me)|0,this._bh=this._bh+ne+w(this._bl,x)|0,this._ch=this._ch+Q+w(this._cl,t)|0,this._dh=this._dh+le+w(this._dl,r)|0,this._eh=this._eh+q+w(this._el,h)|0,this._fh=this._fh+ie+w(this._fl,c)|0,this._gh=this._gh+se+w(this._gl,C)|0,this._hh=this._hh+J+w(this._hl,S)|0},y.prototype._hash=function(){var z=u.allocUnsafe(64);function U(W,ne,Q){z.writeInt32BE(W,Q),z.writeInt32BE(ne,Q+4)}return U(this._ah,this._al,0),U(this._bh,this._bl,8),U(this._ch,this._cl,16),U(this._dh,this._dl,24),U(this._eh,this._el,32),U(this._fh,this._fl,40),U(this._gh,this._gl,48),U(this._hh,this._hl,56),z},He.exports=y},8012:function(He,j,p){!function(e){"use strict";var i={};He.exports?(i.bytesToHex=p(6128).bytesToHex,i.convertString=p(5612),He.exports=P):(i.bytesToHex=e.convertHex.bytesToHex,i.convertString=e.convertString,e.sha256=P);var u=[];!function(){function D(E){for(var k=Math.sqrt(E),w=2;w<=k;w++)if(!(E%w))return!1;return!0}for(var M=2,A=0;A<64;)D(M)&&(u[A]=4294967296*((E=Math.pow(M,1/3))-(0|E))|0,A++),M++;var E}();var y=[],d=function(D,T,M){for(var A=D[0],E=D[1],k=D[2],w=D[3],z=D[4],U=D[5],W=D[6],ne=D[7],Q=0;Q<64;Q++){if(Q<16)y[Q]=0|T[M+Q];else{var le=y[Q-15],ie=y[Q-2];y[Q]=((le<<25|le>>>7)^(le<<14|le>>>18)^le>>>3)+y[Q-7]+((ie<<15|ie>>>17)^(ie<<13|ie>>>19)^ie>>>10)+y[Q-16]}var me=A&E^A&k^E&k,r=ne+((z<<26|z>>>6)^(z<<21|z>>>11)^(z<<7|z>>>25))+(z&U^~z&W)+u[Q]+y[Q];ne=W,W=U,U=z,z=w+r|0,w=k,k=E,E=A,A=r+(((A<<30|A>>>2)^(A<<19|A>>>13)^(A<<10|A>>>22))+me)|0}D[0]=D[0]+A|0,D[1]=D[1]+E|0,D[2]=D[2]+k|0,D[3]=D[3]+w|0,D[4]=D[4]+z|0,D[5]=D[5]+U|0,D[6]=D[6]+W|0,D[7]=D[7]+ne|0};function P(D,T){D.constructor===String&&(D=i.convertString.UTF8.stringToBytes(D));var M=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],A=function(D){for(var T=[],M=0,A=0;M<D.length;M++,A+=8)T[A>>>5]|=D[M]<<24-A%32;return T}(D),E=8*D.length;A[E>>5]|=128<<24-E%32,A[15+(E+64>>9<<4)]=E;for(var k=0;k<A.length;k+=16)d(M,A,k);var w=function(D){for(var T=[],M=0;M<32*D.length;M+=8)T.push(D[M>>>5]>>>24-M%32&255);return T}(M);return T&&T.asBytes?w:T&&T.asString?i.convertString.bytesToString(w):i.bytesToHex(w)}P.x2=function(D,T){return P(P(D,{asBytes:!0}),T)}}(this)},4315:(He,j,p)=>{"use strict";const e=Symbol.prototype.valueOf,i=p(2872);He.exports=function u(D,T){switch(i(D)){case"array":return D.slice();case"object":return Object.assign({},D);case"date":return new D.constructor(Number(D));case"map":return new Map(D);case"set":return new Set(D);case"buffer":return function d(D){const T=D.length,M=Buffer.allocUnsafe?Buffer.allocUnsafe(T):Buffer.from(T);return D.copy(M),M}(D);case"symbol":return function P(D){return e?Object(e.call(D)):{}}(D);case"arraybuffer":return function a(D){const T=new D.constructor(D.byteLength);return new Uint8Array(T).set(new Uint8Array(D)),T}(D);case"float32array":case"float64array":case"int16array":case"int32array":case"int8array":case"uint16array":case"uint32array":case"uint8clampedarray":case"uint8array":return function y(D,T){return new D.constructor(D.buffer,D.byteOffset,D.length)}(D);case"regexp":return function b(D){const T=void 0!==D.flags?D.flags:/\w+$/.exec(D)||void 0,M=new D.constructor(D.source,T);return M.lastIndex=D.lastIndex,M}(D);case"error":return Object.create(D);default:return D}}},295:(He,j,p)=>{He.exports=u;var e=p(9069).EventEmitter;function u(){e.call(this)}p(3894)(u,e),u.Readable=p(3154),u.Writable=p(520),u.Duplex=p(1339),u.Transform=p(6025),u.PassThrough=p(6071),u.finished=p(7542),u.pipeline=p(954),u.Stream=u,u.prototype.pipe=function(b,a){var y=this;function d(k){b.writable&&!1===b.write(k)&&y.pause&&y.pause()}function P(){y.readable&&y.resume&&y.resume()}y.on("data",d),b.on("drain",P),!b._isStdio&&(!a||!1!==a.end)&&(y.on("end",T),y.on("close",M));var D=!1;function T(){D||(D=!0,b.end())}function M(){D||(D=!0,"function"==typeof b.destroy&&b.destroy())}function A(k){if(E(),0===e.listenerCount(this,"error"))throw k}function E(){y.removeListener("data",d),b.removeListener("drain",P),y.removeListener("end",T),y.removeListener("close",M),y.removeListener("error",A),b.removeListener("error",A),y.removeListener("end",E),y.removeListener("close",E),b.removeListener("close",E)}return y.on("error",A),b.on("error",A),y.on("end",E),y.on("close",E),b.on("close",E),b.emit("pipe",y),b}},3054:(He,j,p)=>{"use strict";var e=p(858).Buffer,i=e.isEncoding||function(W){switch((W=""+W)&&W.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function a(W){var ne;switch(this.encoding=function b(W){var ne=function u(W){if(!W)return"utf8";for(var ne;;)switch(W){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return W;default:if(ne)return;W=(""+W).toLowerCase(),ne=!0}}(W);if("string"!=typeof ne&&(e.isEncoding===i||!i(W)))throw new Error("Unknown encoding: "+W);return ne||W}(W),this.encoding){case"utf16le":this.text=A,this.end=E,ne=4;break;case"utf8":this.fillLast=D,ne=4;break;case"base64":this.text=k,this.end=w,ne=3;break;default:return this.write=z,void(this.end=U)}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(ne)}function y(W){return W<=127?0:W>>5==6?2:W>>4==14?3:W>>3==30?4:W>>6==2?-1:-2}function D(W){var ne=this.lastTotal-this.lastNeed,Q=function P(W,ne,Q){if(128!=(192&ne[0]))return W.lastNeed=0,"\ufffd";if(W.lastNeed>1&&ne.length>1){if(128!=(192&ne[1]))return W.lastNeed=1,"\ufffd";if(W.lastNeed>2&&ne.length>2&&128!=(192&ne[2]))return W.lastNeed=2,"\ufffd"}}(this,W);return void 0!==Q?Q:this.lastNeed<=W.length?(W.copy(this.lastChar,ne,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(W.copy(this.lastChar,ne,0,W.length),void(this.lastNeed-=W.length))}function A(W,ne){if((W.length-ne)%2==0){var Q=W.toString("utf16le",ne);if(Q){var le=Q.charCodeAt(Q.length-1);if(le>=55296&&le<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=W[W.length-2],this.lastChar[1]=W[W.length-1],Q.slice(0,-1)}return Q}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=W[W.length-1],W.toString("utf16le",ne,W.length-1)}function E(W){var ne=W&&W.length?this.write(W):"";return this.lastNeed?ne+this.lastChar.toString("utf16le",0,this.lastTotal-this.lastNeed):ne}function k(W,ne){var Q=(W.length-ne)%3;return 0===Q?W.toString("base64",ne):(this.lastNeed=3-Q,this.lastTotal=3,1===Q?this.lastChar[0]=W[W.length-1]:(this.lastChar[0]=W[W.length-2],this.lastChar[1]=W[W.length-1]),W.toString("base64",ne,W.length-Q))}function w(W){var ne=W&&W.length?this.write(W):"";return this.lastNeed?ne+this.lastChar.toString("base64",0,3-this.lastNeed):ne}function z(W){return W.toString(this.encoding)}function U(W){return W&&W.length?this.write(W):""}j.s=a,a.prototype.write=function(W){if(0===W.length)return"";var ne,Q;if(this.lastNeed){if(void 0===(ne=this.fillLast(W)))return"";Q=this.lastNeed,this.lastNeed=0}else Q=0;return Q<W.length?ne?ne+this.text(W,Q):this.text(W,Q):ne||""},a.prototype.end=function M(W){var ne=W&&W.length?this.write(W):"";return this.lastNeed?ne+"\ufffd":ne},a.prototype.text=function T(W,ne){var Q=function d(W,ne,Q){var le=ne.length-1;if(le<Q)return 0;var q=y(ne[le]);return q>=0?(q>0&&(W.lastNeed=q-1),q):--le<Q||-2===q?0:(q=y(ne[le]))>=0?(q>0&&(W.lastNeed=q-2),q):--le<Q||-2===q?0:(q=y(ne[le]))>=0?(q>0&&(2===q?q=0:W.lastNeed=q-3),q):0}(this,W,ne);if(!this.lastNeed)return W.toString("utf8",ne);this.lastTotal=Q;var le=W.length-(Q-this.lastNeed);return W.copy(this.lastChar,0,le),W.toString("utf8",ne,le)},a.prototype.fillLast=function(W){if(this.lastNeed<=W.length)return W.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);W.copy(this.lastChar,this.lastTotal-this.lastNeed,0,W.length),this.lastNeed-=W.length}},858:(He,j,p)=>{var e=p(3172),i=e.Buffer;function u(a,y){for(var d in a)y[d]=a[d]}function b(a,y,d){return i(a,y,d)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?He.exports=e:(u(e,j),j.Buffer=b),b.prototype=Object.create(i.prototype),u(i,b),b.from=function(a,y,d){if("number"==typeof a)throw new TypeError("Argument must not be a number");return i(a,y,d)},b.alloc=function(a,y,d){if("number"!=typeof a)throw new TypeError("Argument must be a number");var P=i(a);return void 0!==y?"string"==typeof d?P.fill(y,d):P.fill(y):P.fill(0),P},b.allocUnsafe=function(a){if("number"!=typeof a)throw new TypeError("Argument must be a number");return i(a)},b.allocUnsafeSlow=function(a){if("number"!=typeof a)throw new TypeError("Argument must be a number");return e.SlowBuffer(a)}},2167:(He,j,p)=>{var e=p(4606);j.encode=e.encode,j.decode=e.decode},4606:(He,j)=>{"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];j.encode=function(u){Buffer.isBuffer(u)||(u=new Buffer(u));for(var b=0,a=0,y=0,d=0,P=new Buffer(8*function i(u){var b=Math.floor(u.length/5);return u.length%5==0?b:b+1}(u));b<u.length;){var D=u[b];y>3?(d=(d=D&255>>y)<<(y=(y+5)%8)|(b+1<u.length?u[b+1]:0)>>8-y,b++):(d=D>>8-(y+5)&31,0==(y=(y+5)%8)&&b++),P[a]="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567".charCodeAt(d),a++}for(b=a;b<P.length;b++)P[b]=61;return P},j.decode=function(u){var y,b=0,a=0,d=0;Buffer.isBuffer(u)||(u=new Buffer(u));for(var P=new Buffer(Math.ceil(5*u.length/8)),D=0;D<u.length&&61!==u[D];D++){var T=u[D]-48;if(!(T<e.length))throw new Error("Invalid input - it is not base32 encoded string");a=e[T],b<=3?0==(b=(b+5)%8)?(P[d]=y|=a,d++,y=0):y|=255&a<<8-b:(P[d]=y|=255&a>>>(b=(b+5)%8),d++,y=255&a<<8-b)}return P.slice(0,d)}},4364:He=>{function p(e){try{if(!global.localStorage)return!1}catch(u){return!1}var i=global.localStorage[e];return null!=i&&"true"===String(i).toLowerCase()}He.exports=function j(e,i){if(p("noDeprecation"))return e;var u=!1;return function b(){if(!u){if(p("throwDeprecation"))throw new Error(i);p("traceDeprecation")?console.trace(i):console.warn(i),u=!0}return e.apply(this,arguments)}}},655:(He,j,p)=>{"use strict";function a(t,r,h,c){var I,C=arguments.length,S=C<3?r:null===c?c=Object.getOwnPropertyDescriptor(r,h):c;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)S=Reflect.decorate(t,r,h,c);else for(var _=t.length-1;_>=0;_--)(I=t[_])&&(S=(C<3?I(S):C>3?I(r,h,S):I(r,h))||S);return C>3&&S&&Object.defineProperty(r,h,S),S}function P(t,r,h,c){return new(h||(h=Promise))(function(S,I){function _(V){try{g(c.next(V))}catch(R){I(R)}}function n(V){try{g(c.throw(V))}catch(R){I(R)}}function g(V){V.done?S(V.value):function C(S){return S instanceof h?S:new h(function(I){I(S)})}(V.value).then(_,n)}g((c=c.apply(t,r||[])).next())})}function U(t){return this instanceof U?(this.v=t,this):new U(t)}function W(t,r,h){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var C,c=h.apply(t,r||[]),S=[];return C={},I("next"),I("throw"),I("return"),C[Symbol.asyncIterator]=function(){return this},C;function I(H){c[H]&&(C[H]=function($){return new Promise(function(fe,ye){S.push([H,$,fe,ye])>1||_(H,$)})})}function _(H,$){try{!function n(H){H.value instanceof U?Promise.resolve(H.value.v).then(g,V):R(S[0][2],H)}(c[H]($))}catch(fe){R(S[0][3],fe)}}function g(H){_("next",H)}function V(H){_("throw",H)}function R(H,$){H($),S.shift(),S.length&&_(S[0][0],S[0][1])}}function Q(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var h,r=t[Symbol.asyncIterator];return r?r.call(t):(t=function A(t){var r="function"==typeof Symbol&&Symbol.iterator,h=r&&t[r],c=0;if(h)return h.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&c>=t.length&&(t=void 0),{value:t&&t[c++],done:!t}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),h={},c("next"),c("throw"),c("return"),h[Symbol.asyncIterator]=function(){return this},h);function c(S){h[S]=t[S]&&function(I){return new Promise(function(_,n){!function C(S,I,_,n){Promise.resolve(n).then(function(g){S({value:g,done:_})},I)}(_,n,(I=t[S](I)).done,I.value)})}}}p.d(j,{FC:()=>W,KL:()=>Q,gn:()=>a,mG:()=>P,qq:()=>U})},950:()=>{},6601:()=>{},8623:()=>{},7748:()=>{},5568:()=>{},6619:()=>{},7108:()=>{},2361:()=>{},4616:()=>{},1777:(He,j,p)=>{"use strict";p.d(j,{F4:()=>T,IO:()=>w,LC:()=>i,SB:()=>D,X$:()=>b,ZE:()=>ne,ZN:()=>W,_j:()=>e,eR:()=>M,jt:()=>a,k1:()=>Q,l3:()=>u,oB:()=>P,pV:()=>E,ru:()=>y,vP:()=>d});class e{}class i{}const u="*";function b(le,q){return{type:7,name:le,definitions:q,options:{}}}function a(le,q=null){return{type:4,styles:q,timings:le}}function y(le,q=null){return{type:3,steps:le,options:q}}function d(le,q=null){return{type:2,steps:le,options:q}}function P(le){return{type:6,styles:le,offset:null}}function D(le,q,ie){return{type:0,name:le,styles:q,options:ie}}function T(le){return{type:5,steps:le}}function M(le,q,ie=null){return{type:1,expr:le,animation:q,options:ie}}function E(le=null){return{type:9,options:le}}function w(le,q,ie=null){return{type:11,selector:le,animation:q,options:ie}}function U(le){Promise.resolve(null).then(le)}class W{constructor(q=0,ie=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=q+ie}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(q=>q()),this._onDoneFns=[])}onStart(q){this._onStartFns.push(q)}onDone(q){this._onDoneFns.push(q)}onDestroy(q){this._onDestroyFns.push(q)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){U(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(q=>q()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(q=>q()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(q){this._position=this.totalTime?q*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(q){const ie="start"==q?this._onStartFns:this._onDoneFns;ie.forEach(se=>se()),ie.length=0}}class ne{constructor(q){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=q;let ie=0,se=0,J=0;const me=this.players.length;0==me?U(()=>this._onFinish()):this.players.forEach(x=>{x.onDone(()=>{++ie==me&&this._onFinish()}),x.onDestroy(()=>{++se==me&&this._onDestroy()}),x.onStart(()=>{++J==me&&this._onStart()})}),this.totalTime=this.players.reduce((x,t)=>Math.max(x,t.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(q=>q()),this._onDoneFns=[])}init(){this.players.forEach(q=>q.init())}onStart(q){this._onStartFns.push(q)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(q=>q()),this._onStartFns=[])}onDone(q){this._onDoneFns.push(q)}onDestroy(q){this._onDestroyFns.push(q)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(q=>q.play())}pause(){this.players.forEach(q=>q.pause())}restart(){this.players.forEach(q=>q.restart())}finish(){this._onFinish(),this.players.forEach(q=>q.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(q=>q.destroy()),this._onDestroyFns.forEach(q=>q()),this._onDestroyFns=[])}reset(){this.players.forEach(q=>q.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(q){const ie=q*this.totalTime;this.players.forEach(se=>{const J=se.totalTime?Math.min(1,ie/se.totalTime):1;se.setPosition(J)})}getPosition(){const q=this.players.reduce((ie,se)=>null===ie||se.totalTime>ie.totalTime?se:ie,null);return null!=q?q.getPosition():0}beforeDestroy(){this.players.forEach(q=>{q.beforeDestroy&&q.beforeDestroy()})}triggerCallback(q){const ie="start"==q?this._onStartFns:this._onDoneFns;ie.forEach(se=>se()),ie.length=0}}const Q="!"},5664:(He,j,p)=>{"use strict";p.d(j,{$s:()=>x,Em:()=>C,Kd:()=>hi,X6:()=>Te,ic:()=>I,kH:()=>kt,mK:()=>Z,qV:()=>be,qm:()=>ei,rt:()=>Zt,s1:()=>c,tE:()=>vt,yG:()=>xe});var e=p(9808),i=p(5e3),u=p(925),b=p(7579),a=p(727),y=p(1135),d=p(9646),P=p(1159),D=p(8505),T=p(8372),M=p(9300),A=p(4004),E=p(5698),k=p(5684),w=p(1884),z=p(2722),U=p(3191),W=p(7144);function q(Pe,De){return(Pe.getAttribute(De)||"").match(/\S+/g)||[]}const se="cdk-describedby-message",J="cdk-describedby-host";let me=0,x=(()=>{class Pe{constructor(oe,Me){this._platform=Me,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+me++,this._document=oe}describe(oe,Me,ut){if(!this._canBeDescribed(oe,Me))return;const ft=t(Me,ut);"string"!=typeof Me?(r(Me),this._messageRegistry.set(ft,{messageElement:Me,referenceCount:0})):this._messageRegistry.has(ft)||this._createMessageElement(Me,ut),this._isElementDescribedByMessage(oe,ft)||this._addMessageReference(oe,ft)}removeDescription(oe,Me,ut){var ft;if(!Me||!this._isElementNode(oe))return;const Rt=t(Me,ut);if(this._isElementDescribedByMessage(oe,Rt)&&this._removeMessageReference(oe,Rt),"string"==typeof Me){const et=this._messageRegistry.get(Rt);et&&0===et.referenceCount&&this._deleteMessageElement(Rt)}0===(null===(ft=this._messagesContainer)||void 0===ft?void 0:ft.childNodes.length)&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){var oe;const Me=this._document.querySelectorAll(`[${J}="${this._id}"]`);for(let ut=0;ut<Me.length;ut++)this._removeCdkDescribedByReferenceIds(Me[ut]),Me[ut].removeAttribute(J);null===(oe=this._messagesContainer)||void 0===oe||oe.remove(),this._messagesContainer=null,this._messageRegistry.clear()}_createMessageElement(oe,Me){const ut=this._document.createElement("div");r(ut),ut.textContent=oe,Me&&ut.setAttribute("role",Me),this._createMessagesContainer(),this._messagesContainer.appendChild(ut),this._messageRegistry.set(t(oe,Me),{messageElement:ut,referenceCount:0})}_deleteMessageElement(oe){var Me,ut;null===(ut=null===(Me=this._messageRegistry.get(oe))||void 0===Me?void 0:Me.messageElement)||void 0===ut||ut.remove(),this._messageRegistry.delete(oe)}_createMessagesContainer(){if(this._messagesContainer)return;const oe="cdk-describedby-message-container",Me=this._document.querySelectorAll(`.${oe}[platform="server"]`);for(let ft=0;ft<Me.length;ft++)Me[ft].remove();const ut=this._document.createElement("div");ut.style.visibility="hidden",ut.classList.add(oe),ut.classList.add("cdk-visually-hidden"),this._platform&&!this._platform.isBrowser&&ut.setAttribute("platform","server"),this._document.body.appendChild(ut),this._messagesContainer=ut}_removeCdkDescribedByReferenceIds(oe){const Me=q(oe,"aria-describedby").filter(ut=>0!=ut.indexOf(se));oe.setAttribute("aria-describedby",Me.join(" "))}_addMessageReference(oe,Me){const ut=this._messageRegistry.get(Me);(function Q(Pe,De,oe){const Me=q(Pe,De);Me.some(ut=>ut.trim()==oe.trim())||(Me.push(oe.trim()),Pe.setAttribute(De,Me.join(" ")))})(oe,"aria-describedby",ut.messageElement.id),oe.setAttribute(J,this._id),ut.referenceCount++}_removeMessageReference(oe,Me){const ut=this._messageRegistry.get(Me);ut.referenceCount--,function le(Pe,De,oe){const ut=q(Pe,De).filter(ft=>ft!=oe.trim());ut.length?Pe.setAttribute(De,ut.join(" ")):Pe.removeAttribute(De)}(oe,"aria-describedby",ut.messageElement.id),oe.removeAttribute(J)}_isElementDescribedByMessage(oe,Me){const ut=q(oe,"aria-describedby"),ft=this._messageRegistry.get(Me),Rt=ft&&ft.messageElement.id;return!!Rt&&-1!=ut.indexOf(Rt)}_canBeDescribed(oe,Me){if(!this._isElementNode(oe))return!1;if(Me&&"object"==typeof Me)return!0;const ut=null==Me?"":`${Me}`.trim(),ft=oe.getAttribute("aria-label");return!(!ut||ft&&ft.trim()===ut)}_isElementNode(oe){return oe.nodeType===this._document.ELEMENT_NODE}}return Pe.\u0275fac=function(oe){return new(oe||Pe)(i.LFG(e.K0),i.LFG(u.t4))},Pe.\u0275prov=i.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})();function t(Pe,De){return"string"==typeof Pe?`${De||""}/${Pe}`:Pe}function r(Pe){Pe.id||(Pe.id=`${se}-${me++}`)}class h{constructor(De){this._items=De,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new b.x,this._typeaheadSubscription=a.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=oe=>oe.disabled,this._pressedLetters=[],this.tabOut=new b.x,this.change=new b.x,De instanceof i.n_E&&De.changes.subscribe(oe=>{if(this._activeItem){const ut=oe.toArray().indexOf(this._activeItem);ut>-1&&ut!==this._activeItemIndex&&(this._activeItemIndex=ut)}})}skipPredicate(De){return this._skipPredicateFn=De,this}withWrap(De=!0){return this._wrap=De,this}withVerticalOrientation(De=!0){return this._vertical=De,this}withHorizontalOrientation(De){return this._horizontal=De,this}withAllowedModifierKeys(De){return this._allowedModifierKeys=De,this}withTypeAhead(De=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,D.b)(oe=>this._pressedLetters.push(oe)),(0,T.b)(De),(0,M.h)(()=>this._pressedLetters.length>0),(0,A.U)(()=>this._pressedLetters.join(""))).subscribe(oe=>{const Me=this._getItemsArray();for(let ut=1;ut<Me.length+1;ut++){const ft=(this._activeItemIndex+ut)%Me.length,Rt=Me[ft];if(!this._skipPredicateFn(Rt)&&0===Rt.getLabel().toUpperCase().trim().indexOf(oe)){this.setActiveItem(ft);break}}this._pressedLetters=[]}),this}withHomeAndEnd(De=!0){return this._homeAndEnd=De,this}setActiveItem(De){const oe=this._activeItem;this.updateActiveItem(De),this._activeItem!==oe&&this.change.next(this._activeItemIndex)}onKeydown(De){const oe=De.keyCode,ut=["altKey","ctrlKey","metaKey","shiftKey"].every(ft=>!De[ft]||this._allowedModifierKeys.indexOf(ft)>-1);switch(oe){case P.Mf:return void this.tabOut.next();case P.JH:if(this._vertical&&ut){this.setNextItemActive();break}return;case P.LH:if(this._vertical&&ut){this.setPreviousItemActive();break}return;case P.SV:if(this._horizontal&&ut){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case P.oh:if(this._horizontal&&ut){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case P.Sd:if(this._homeAndEnd&&ut){this.setFirstItemActive();break}return;case P.uR:if(this._homeAndEnd&&ut){this.setLastItemActive();break}return;default:return void((ut||(0,P.Vb)(De,"shiftKey"))&&(De.key&&1===De.key.length?this._letterKeyStream.next(De.key.toLocaleUpperCase()):(oe>=P.A&&oe<=P.Z||oe>=P.xE&&oe<=P.aO)&&this._letterKeyStream.next(String.fromCharCode(oe))))}this._pressedLetters=[],De.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(De){const oe=this._getItemsArray(),Me="number"==typeof De?De:oe.indexOf(De),ut=oe[Me];this._activeItem=null==ut?null:ut,this._activeItemIndex=Me}_setActiveItemByDelta(De){this._wrap?this._setActiveInWrapMode(De):this._setActiveInDefaultMode(De)}_setActiveInWrapMode(De){const oe=this._getItemsArray();for(let Me=1;Me<=oe.length;Me++){const ut=(this._activeItemIndex+De*Me+oe.length)%oe.length;if(!this._skipPredicateFn(oe[ut]))return void this.setActiveItem(ut)}}_setActiveInDefaultMode(De){this._setActiveItemByIndex(this._activeItemIndex+De,De)}_setActiveItemByIndex(De,oe){const Me=this._getItemsArray();if(Me[De]){for(;this._skipPredicateFn(Me[De]);)if(!Me[De+=oe])return;this.setActiveItem(De)}}_getItemsArray(){return this._items instanceof i.n_E?this._items.toArray():this._items}}class c extends h{setActiveItem(De){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(De),this.activeItem&&this.activeItem.setActiveStyles()}}class C extends h{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(De){return this._origin=De,this}setActiveItem(De){super.setActiveItem(De),this.activeItem&&this.activeItem.focus(this._origin)}}let I=(()=>{class Pe{constructor(oe){this._platform=oe}isDisabled(oe){return oe.hasAttribute("disabled")}isVisible(oe){return function n(Pe){return!!(Pe.offsetWidth||Pe.offsetHeight||"function"==typeof Pe.getClientRects&&Pe.getClientRects().length)}(oe)&&"visible"===getComputedStyle(oe).visibility}isTabbable(oe){if(!this._platform.isBrowser)return!1;const Me=function _(Pe){try{return Pe.frameElement}catch(De){return null}}(function te(Pe){return Pe.ownerDocument&&Pe.ownerDocument.defaultView||window}(oe));if(Me&&(-1===ye(Me)||!this.isVisible(Me)))return!1;let ut=oe.nodeName.toLowerCase(),ft=ye(oe);return oe.hasAttribute("contenteditable")?-1!==ft:!("iframe"===ut||"object"===ut||this._platform.WEBKIT&&this._platform.IOS&&!function ke(Pe){let De=Pe.nodeName.toLowerCase(),oe="input"===De&&Pe.type;return"text"===oe||"password"===oe||"select"===De||"textarea"===De}(oe))&&("audio"===ut?!!oe.hasAttribute("controls")&&-1!==ft:"video"===ut?-1!==ft&&(null!==ft||this._platform.FIREFOX||oe.hasAttribute("controls")):oe.tabIndex>=0)}isFocusable(oe,Me){return function Ee(Pe){return!function V(Pe){return function H(Pe){return"input"==Pe.nodeName.toLowerCase()}(Pe)&&"hidden"==Pe.type}(Pe)&&(function g(Pe){let De=Pe.nodeName.toLowerCase();return"input"===De||"select"===De||"button"===De||"textarea"===De}(Pe)||function R(Pe){return function $(Pe){return"a"==Pe.nodeName.toLowerCase()}(Pe)&&Pe.hasAttribute("href")}(Pe)||Pe.hasAttribute("contenteditable")||fe(Pe))}(oe)&&!this.isDisabled(oe)&&((null==Me?void 0:Me.ignoreVisibility)||this.isVisible(oe))}}return Pe.\u0275fac=function(oe){return new(oe||Pe)(i.LFG(u.t4))},Pe.\u0275prov=i.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})();function fe(Pe){if(!Pe.hasAttribute("tabindex")||void 0===Pe.tabIndex)return!1;let De=Pe.getAttribute("tabindex");return!(!De||isNaN(parseInt(De,10)))}function ye(Pe){if(!fe(Pe))return null;const De=parseInt(Pe.getAttribute("tabindex")||"",10);return isNaN(De)?-1:De}class ze{constructor(De,oe,Me,ut,ft=!1){this._element=De,this._checker=oe,this._ngZone=Me,this._document=ut,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,ft||this.attachAnchors()}get enabled(){return this._enabled}set enabled(De){this._enabled=De,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(De,this._startAnchor),this._toggleAnchorTabIndex(De,this._endAnchor))}destroy(){const De=this._startAnchor,oe=this._endAnchor;De&&(De.removeEventListener("focus",this.startAnchorListener),De.remove()),oe&&(oe.removeEventListener("focus",this.endAnchorListener),oe.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(De){return new Promise(oe=>{this._executeOnStable(()=>oe(this.focusInitialElement(De)))})}focusFirstTabbableElementWhenReady(De){return new Promise(oe=>{this._executeOnStable(()=>oe(this.focusFirstTabbableElement(De)))})}focusLastTabbableElementWhenReady(De){return new Promise(oe=>{this._executeOnStable(()=>oe(this.focusLastTabbableElement(De)))})}_getRegionBoundary(De){const oe=this._element.querySelectorAll(`[cdk-focus-region-${De}], [cdkFocusRegion${De}], [cdk-focus-${De}]`);return"start"==De?oe.length?oe[0]:this._getFirstTabbableElement(this._element):oe.length?oe[oe.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(De){const oe=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(oe){if(!this._checker.isFocusable(oe)){const Me=this._getFirstTabbableElement(oe);return null==Me||Me.focus(De),!!Me}return oe.focus(De),!0}return this.focusFirstTabbableElement(De)}focusFirstTabbableElement(De){const oe=this._getRegionBoundary("start");return oe&&oe.focus(De),!!oe}focusLastTabbableElement(De){const oe=this._getRegionBoundary("end");return oe&&oe.focus(De),!!oe}hasAttached(){return this._hasAttached}_getFirstTabbableElement(De){if(this._checker.isFocusable(De)&&this._checker.isTabbable(De))return De;const oe=De.children;for(let Me=0;Me<oe.length;Me++){const ut=oe[Me].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(oe[Me]):null;if(ut)return ut}return null}_getLastTabbableElement(De){if(this._checker.isFocusable(De)&&this._checker.isTabbable(De))return De;const oe=De.children;for(let Me=oe.length-1;Me>=0;Me--){const ut=oe[Me].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(oe[Me]):null;if(ut)return ut}return null}_createAnchor(){const De=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,De),De.classList.add("cdk-visually-hidden"),De.classList.add("cdk-focus-trap-anchor"),De.setAttribute("aria-hidden","true"),De}_toggleAnchorTabIndex(De,oe){De?oe.setAttribute("tabindex","0"):oe.removeAttribute("tabindex")}toggleAnchors(De){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(De,this._startAnchor),this._toggleAnchorTabIndex(De,this._endAnchor))}_executeOnStable(De){this._ngZone.isStable?De():this._ngZone.onStable.pipe((0,E.q)(1)).subscribe(De)}}let be=(()=>{class Pe{constructor(oe,Me,ut){this._checker=oe,this._ngZone=Me,this._document=ut}create(oe,Me=!1){return new ze(oe,this._checker,this._ngZone,this._document,Me)}}return Pe.\u0275fac=function(oe){return new(oe||Pe)(i.LFG(I),i.LFG(i.R0b),i.LFG(e.K0))},Pe.\u0275prov=i.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})(),Z=(()=>{class Pe{constructor(oe,Me,ut){this._elementRef=oe,this._focusTrapFactory=Me,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(oe){this.focusTrap.enabled=(0,U.Ig)(oe)}get autoCapture(){return this._autoCapture}set autoCapture(oe){this._autoCapture=(0,U.Ig)(oe)}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(oe){const Me=oe.autoCapture;Me&&!Me.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,u.ht)(),this.focusTrap.focusInitialElementWhenReady()}}return Pe.\u0275fac=function(oe){return new(oe||Pe)(i.Y36(i.SBq),i.Y36(be),i.Y36(e.K0))},Pe.\u0275dir=i.lG2({type:Pe,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[i.TTD]}),Pe})();function Te(Pe){return 0===Pe.buttons||0===Pe.offsetX&&0===Pe.offsetY}function xe(Pe){const De=Pe.touches&&Pe.touches[0]||Pe.changedTouches&&Pe.changedTouches[0];return!(!De||-1!==De.identifier||null!=De.radiusX&&1!==De.radiusX||null!=De.radiusY&&1!==De.radiusY)}const G=new i.OlP("cdk-input-modality-detector-options"),ee={ignoreKeys:[P.zL,P.jx,P.b2,P.MW,P.JU]},ve=(0,u.i$)({passive:!0,capture:!0});let Le=(()=>{class Pe{constructor(oe,Me,ut,ft){this._platform=oe,this._mostRecentTarget=null,this._modality=new y.X(null),this._lastTouchMs=0,this._onKeydown=Rt=>{var et,Re;(null===(Re=null===(et=this._options)||void 0===et?void 0:et.ignoreKeys)||void 0===Re?void 0:Re.some(qe=>qe===Rt.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=(0,u.sA)(Rt))},this._onMousedown=Rt=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Te(Rt)?"keyboard":"mouse"),this._mostRecentTarget=(0,u.sA)(Rt))},this._onTouchstart=Rt=>{xe(Rt)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,u.sA)(Rt))},this._options=Object.assign(Object.assign({},ee),ft),this.modalityDetected=this._modality.pipe((0,k.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,w.x)()),oe.isBrowser&&Me.runOutsideAngular(()=>{ut.addEventListener("keydown",this._onKeydown,ve),ut.addEventListener("mousedown",this._onMousedown,ve),ut.addEventListener("touchstart",this._onTouchstart,ve)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,ve),document.removeEventListener("mousedown",this._onMousedown,ve),document.removeEventListener("touchstart",this._onTouchstart,ve))}}return Pe.\u0275fac=function(oe){return new(oe||Pe)(i.LFG(u.t4),i.LFG(i.R0b),i.LFG(e.K0),i.LFG(G,8))},Pe.\u0275prov=i.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})();const lt=new i.OlP("liveAnnouncerElement",{providedIn:"root",factory:function ht(){return null}}),Tt=new i.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let hi=(()=>{class Pe{constructor(oe,Me,ut,ft){this._ngZone=Me,this._defaultOptions=ft,this._document=ut,this._liveElement=oe||this._createLiveElement()}announce(oe,...Me){const ut=this._defaultOptions;let ft,Rt;return 1===Me.length&&"number"==typeof Me[0]?Rt=Me[0]:[ft,Rt]=Me,this.clear(),clearTimeout(this._previousTimeout),ft||(ft=ut&&ut.politeness?ut.politeness:"polite"),null==Rt&&ut&&(Rt=ut.duration),this._liveElement.setAttribute("aria-live",ft),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(et=>this._currentResolve=et)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=oe,"number"==typeof Rt&&(this._previousTimeout=setTimeout(()=>this.clear(),Rt)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){var oe,Me;clearTimeout(this._previousTimeout),null===(oe=this._liveElement)||void 0===oe||oe.remove(),this._liveElement=null,null===(Me=this._currentResolve)||void 0===Me||Me.call(this),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const oe="cdk-live-announcer-element",Me=this._document.getElementsByClassName(oe),ut=this._document.createElement("div");for(let ft=0;ft<Me.length;ft++)Me[ft].remove();return ut.classList.add(oe),ut.classList.add("cdk-visually-hidden"),ut.setAttribute("aria-atomic","true"),ut.setAttribute("aria-live","polite"),this._document.body.appendChild(ut),ut}}return Pe.\u0275fac=function(oe){return new(oe||Pe)(i.LFG(lt,8),i.LFG(i.R0b),i.LFG(e.K0),i.LFG(Tt,8))},Pe.\u0275prov=i.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})();const Gt=new i.OlP("cdk-focus-monitor-default-options"),di=(0,u.i$)({passive:!0,capture:!0});let vt=(()=>{class Pe{constructor(oe,Me,ut,ft,Rt){this._ngZone=oe,this._platform=Me,this._inputModalityDetector=ut,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 b.x,this._rootNodeFocusAndBlurListener=et=>{const Re=(0,u.sA)(et),qe="focus"===et.type?this._onFocus:this._onBlur;for(let Ze=Re;Ze;Ze=Ze.parentElement)qe.call(this,et,Ze)},this._document=ft,this._detectionMode=(null==Rt?void 0:Rt.detectionMode)||0}monitor(oe,Me=!1){const ut=(0,U.fI)(oe);if(!this._platform.isBrowser||1!==ut.nodeType)return(0,d.of)(null);const ft=(0,u.kV)(ut)||this._getDocument(),Rt=this._elementInfo.get(ut);if(Rt)return Me&&(Rt.checkChildren=!0),Rt.subject;const et={checkChildren:Me,subject:new b.x,rootNode:ft};return this._elementInfo.set(ut,et),this._registerGlobalListeners(et),et.subject}stopMonitoring(oe){const Me=(0,U.fI)(oe),ut=this._elementInfo.get(Me);ut&&(ut.subject.complete(),this._setClasses(Me),this._elementInfo.delete(Me),this._removeGlobalListeners(ut))}focusVia(oe,Me,ut){const ft=(0,U.fI)(oe);ft===this._getDocument().activeElement?this._getClosestElementsInfo(ft).forEach(([et,Re])=>this._originChanged(et,Me,Re)):(this._setOrigin(Me),"function"==typeof ft.focus&&ft.focus(ut))}ngOnDestroy(){this._elementInfo.forEach((oe,Me)=>this.stopMonitoring(Me))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(oe){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(oe)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(oe){return 1===this._detectionMode||!!(null==oe?void 0:oe.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(oe,Me){oe.classList.toggle("cdk-focused",!!Me),oe.classList.toggle("cdk-touch-focused","touch"===Me),oe.classList.toggle("cdk-keyboard-focused","keyboard"===Me),oe.classList.toggle("cdk-mouse-focused","mouse"===Me),oe.classList.toggle("cdk-program-focused","program"===Me)}_setOrigin(oe,Me=!1){this._ngZone.runOutsideAngular(()=>{this._origin=oe,this._originFromTouchInteraction="touch"===oe&&Me,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(oe,Me){const ut=this._elementInfo.get(Me),ft=(0,u.sA)(oe);!ut||!ut.checkChildren&&Me!==ft||this._originChanged(Me,this._getFocusOrigin(ft),ut)}_onBlur(oe,Me){const ut=this._elementInfo.get(Me);!ut||ut.checkChildren&&oe.relatedTarget instanceof Node&&Me.contains(oe.relatedTarget)||(this._setClasses(Me),this._emitOrigin(ut.subject,null))}_emitOrigin(oe,Me){this._ngZone.run(()=>oe.next(Me))}_registerGlobalListeners(oe){if(!this._platform.isBrowser)return;const Me=oe.rootNode,ut=this._rootNodeFocusListenerCount.get(Me)||0;ut||this._ngZone.runOutsideAngular(()=>{Me.addEventListener("focus",this._rootNodeFocusAndBlurListener,di),Me.addEventListener("blur",this._rootNodeFocusAndBlurListener,di)}),this._rootNodeFocusListenerCount.set(Me,ut+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,z.R)(this._stopInputModalityDetector)).subscribe(ft=>{this._setOrigin(ft,!0)}))}_removeGlobalListeners(oe){const Me=oe.rootNode;if(this._rootNodeFocusListenerCount.has(Me)){const ut=this._rootNodeFocusListenerCount.get(Me);ut>1?this._rootNodeFocusListenerCount.set(Me,ut-1):(Me.removeEventListener("focus",this._rootNodeFocusAndBlurListener,di),Me.removeEventListener("blur",this._rootNodeFocusAndBlurListener,di),this._rootNodeFocusListenerCount.delete(Me))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(oe,Me,ut){this._setClasses(oe,Me),this._emitOrigin(ut.subject,Me),this._lastFocusOrigin=Me}_getClosestElementsInfo(oe){const Me=[];return this._elementInfo.forEach((ut,ft)=>{(ft===oe||ut.checkChildren&&ft.contains(oe))&&Me.push([ft,ut])}),Me}}return Pe.\u0275fac=function(oe){return new(oe||Pe)(i.LFG(i.R0b),i.LFG(u.t4),i.LFG(Le),i.LFG(e.K0,8),i.LFG(Gt,8))},Pe.\u0275prov=i.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})(),kt=(()=>{class Pe{constructor(oe,Me){this._elementRef=oe,this._focusMonitor=Me,this.cdkFocusChange=new i.vpe}ngAfterViewInit(){const oe=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(oe,1===oe.nodeType&&oe.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(Me=>this.cdkFocusChange.emit(Me))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return Pe.\u0275fac=function(oe){return new(oe||Pe)(i.Y36(i.SBq),i.Y36(vt))},Pe.\u0275dir=i.lG2({type:Pe,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),Pe})();const gt="cdk-high-contrast-black-on-white",Qe="cdk-high-contrast-white-on-black",_t="cdk-high-contrast-active";let ei=(()=>{class Pe{constructor(oe,Me){this._platform=oe,this._document=Me}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const oe=this._document.createElement("div");oe.style.backgroundColor="rgb(1,2,3)",oe.style.position="absolute",this._document.body.appendChild(oe);const Me=this._document.defaultView||window,ut=Me&&Me.getComputedStyle?Me.getComputedStyle(oe):null,ft=(ut&&ut.backgroundColor||"").replace(/ /g,"");switch(oe.remove(),ft){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const oe=this._document.body.classList;oe.remove(_t),oe.remove(gt),oe.remove(Qe),this._hasCheckedHighContrastMode=!0;const Me=this.getHighContrastMode();1===Me?(oe.add(_t),oe.add(gt)):2===Me&&(oe.add(_t),oe.add(Qe))}}}return Pe.\u0275fac=function(oe){return new(oe||Pe)(i.LFG(u.t4),i.LFG(e.K0))},Pe.\u0275prov=i.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})(),Zt=(()=>{class Pe{constructor(oe){oe._applyBodyHighContrastModeCssClasses()}}return Pe.\u0275fac=function(oe){return new(oe||Pe)(i.LFG(ei))},Pe.\u0275mod=i.oAB({type:Pe}),Pe.\u0275inj=i.cJS({imports:[[W.Q8]]}),Pe})()},226:(He,j,p)=>{"use strict";p.d(j,{Is:()=>d,vT:()=>D});var e=p(5e3),i=p(9808);const u=new e.OlP("cdk-dir-doc",{providedIn:"root",factory:function b(){return(0,e.f3M)(i.K0)}}),a=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let d=(()=>{class T{constructor(A){if(this.value="ltr",this.change=new e.vpe,A){const k=A.documentElement?A.documentElement.dir:null;this.value=function y(T){const M=(null==T?void 0:T.toLowerCase())||"";return"auto"===M&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?a.test(navigator.language)?"rtl":"ltr":"rtl"===M?"rtl":"ltr"}((A.body?A.body.dir:null)||k||"ltr")}}ngOnDestroy(){this.change.complete()}}return T.\u0275fac=function(A){return new(A||T)(e.LFG(u,8))},T.\u0275prov=e.Yz7({token:T,factory:T.\u0275fac,providedIn:"root"}),T})(),D=(()=>{class T{}return T.\u0275fac=function(A){return new(A||T)},T.\u0275mod=e.oAB({type:T}),T.\u0275inj=e.cJS({}),T})()},3191:(He,j,p)=>{"use strict";p.d(j,{Eq:()=>a,HM:()=>y,Ig:()=>i,du:()=>P,fI:()=>d,su:()=>u,t6:()=>b});var e=p(5e3);function i(D){return null!=D&&"false"!=`${D}`}function u(D,T=0){return b(D)?Number(D):T}function b(D){return!isNaN(parseFloat(D))&&!isNaN(Number(D))}function a(D){return Array.isArray(D)?D:[D]}function y(D){return null==D?"":"string"==typeof D?D:`${D}px`}function d(D){return D instanceof e.SBq?D.nativeElement:D}function P(D,T=/\s+/){const M=[];if(null!=D){const A=Array.isArray(D)?D:`${D}`.split(T);for(const E of A){const k=`${E}`.trim();k&&M.push(k)}}return M}},449:(He,j,p)=>{"use strict";p.d(j,{A8:()=>T,Ov:()=>P,Z9:()=>b,eX:()=>d,k:()=>M,o2:()=>u,yy:()=>y});var e=p(7579),i=p(5e3);class u{}function b(A){return A&&"function"==typeof A.connect}class y{applyChanges(E,k,w,z,U){E.forEachOperation((W,ne,Q)=>{let le,q;if(null==W.previousIndex){const ie=w(W,ne,Q);le=k.createEmbeddedView(ie.templateRef,ie.context,ie.index),q=1}else null==Q?(k.remove(ne),q=3):(le=k.get(ne),k.move(le,Q),q=2);U&&U({context:null==le?void 0:le.context,operation:q,record:W})})}detach(){}}class d{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(E,k,w,z,U){E.forEachOperation((W,ne,Q)=>{let le,q;null==W.previousIndex?(le=this._insertView(()=>w(W,ne,Q),Q,k,z(W)),q=le?1:0):null==Q?(this._detachAndCacheView(ne,k),q=3):(le=this._moveView(ne,Q,k,z(W)),q=2),U&&U({context:null==le?void 0:le.context,operation:q,record:W})})}detach(){for(const E of this._viewCache)E.destroy();this._viewCache=[]}_insertView(E,k,w,z){const U=this._insertViewFromCache(k,w);if(U)return void(U.context.$implicit=z);const W=E();return w.createEmbeddedView(W.templateRef,W.context,W.index)}_detachAndCacheView(E,k){const w=k.detach(E);this._maybeCacheView(w,k)}_moveView(E,k,w,z){const U=w.get(E);return w.move(U,k),U.context.$implicit=z,U}_maybeCacheView(E,k){if(this._viewCache.length<this.viewCacheSize)this._viewCache.push(E);else{const w=k.indexOf(E);-1===w?E.destroy():k.remove(w)}}_insertViewFromCache(E,k){const w=this._viewCache.pop();return w&&k.insert(w,E),w||null}}class P{constructor(E=!1,k,w=!0){this._multiple=E,this._emitChanges=w,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new e.x,k&&k.length&&(E?k.forEach(z=>this._markSelected(z)):this._markSelected(k[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...E){this._verifyValueAssignment(E),E.forEach(k=>this._markSelected(k)),this._emitChangeEvent()}deselect(...E){this._verifyValueAssignment(E),E.forEach(k=>this._unmarkSelected(k)),this._emitChangeEvent()}toggle(E){this.isSelected(E)?this.deselect(E):this.select(E)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(E){return this._selection.has(E)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(E){this._multiple&&this.selected&&this._selected.sort(E)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(E){this.isSelected(E)||(this._multiple||this._unmarkAll(),this._selection.add(E),this._emitChanges&&this._selectedToEmit.push(E))}_unmarkSelected(E){this.isSelected(E)&&(this._selection.delete(E),this._emitChanges&&this._deselectedToEmit.push(E))}_unmarkAll(){this.isEmpty()||this._selection.forEach(E=>this._unmarkSelected(E))}_verifyValueAssignment(E){}}let T=(()=>{class A{constructor(){this._listeners=[]}notify(k,w){for(let z of this._listeners)z(k,w)}listen(k){return this._listeners.push(k),()=>{this._listeners=this._listeners.filter(w=>k!==w)}}ngOnDestroy(){this._listeners=[]}}return A.\u0275fac=function(k){return new(k||A)},A.\u0275prov=i.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"}),A})();const M=new i.OlP("_ViewRepeater")},1159:(He,j,p)=>{"use strict";p.d(j,{A:()=>R,JH:()=>Q,JU:()=>y,K5:()=>a,Ku:()=>E,LH:()=>W,L_:()=>A,MW:()=>hi,Mf:()=>u,SV:()=>ne,Sd:()=>z,VM:()=>k,Vb:()=>Nt,Z:()=>Tt,ZH:()=>i,aO:()=>I,b2:()=>Je,hY:()=>M,jx:()=>d,oh:()=>U,uR:()=>w,xE:()=>J,yY:()=>se,zL:()=>P});const i=8,u=9,a=13,y=16,d=17,P=18,M=27,A=32,E=33,k=34,w=35,z=36,U=37,W=38,ne=39,Q=40,se=46,J=48,I=57,R=65,Tt=90,hi=91,Je=224;function Nt(Kt,...pi){return pi.length?pi.some(Ri=>Kt[Ri]):Kt.altKey||Kt.shiftKey||Kt.ctrlKey||Kt.metaKey}},5113:(He,j,p)=>{"use strict";p.d(j,{Yg:()=>Q,u3:()=>q,xu:()=>k});var e=p(5e3),i=p(3191),u=p(7579),b=p(9841),a=p(7272),y=p(8306),d=p(5698),P=p(5684),D=p(8372),T=p(4004),M=p(8675),A=p(2722),E=p(925);let k=(()=>{class ie{}return ie.\u0275fac=function(J){return new(J||ie)},ie.\u0275mod=e.oAB({type:ie}),ie.\u0275inj=e.cJS({}),ie})();const w=new Set;let z,U=(()=>{class ie{constructor(J){this._platform=J,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):ne}matchMedia(J){return(this._platform.WEBKIT||this._platform.BLINK)&&function W(ie){if(!w.has(ie))try{z||(z=document.createElement("style"),z.setAttribute("type","text/css"),document.head.appendChild(z)),z.sheet&&(z.sheet.insertRule(`@media ${ie} {body{ }}`,0),w.add(ie))}catch(se){console.error(se)}}(J),this._matchMedia(J)}}return ie.\u0275fac=function(J){return new(J||ie)(e.LFG(E.t4))},ie.\u0275prov=e.Yz7({token:ie,factory:ie.\u0275fac,providedIn:"root"}),ie})();function ne(ie){return{matches:"all"===ie||""===ie,media:ie,addListener:()=>{},removeListener:()=>{}}}let Q=(()=>{class ie{constructor(J,me){this._mediaMatcher=J,this._zone=me,this._queries=new Map,this._destroySubject=new u.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(J){return le((0,i.Eq)(J)).some(x=>this._registerQuery(x).mql.matches)}observe(J){const x=le((0,i.Eq)(J)).map(r=>this._registerQuery(r).observable);let t=(0,b.a)(x);return t=(0,a.z)(t.pipe((0,d.q)(1)),t.pipe((0,P.T)(1),(0,D.b)(0))),t.pipe((0,T.U)(r=>{const h={matches:!1,breakpoints:{}};return r.forEach(({matches:c,query:C})=>{h.matches=h.matches||c,h.breakpoints[C]=c}),h}))}_registerQuery(J){if(this._queries.has(J))return this._queries.get(J);const me=this._mediaMatcher.matchMedia(J),t={observable:new y.y(r=>{const h=c=>this._zone.run(()=>r.next(c));return me.addListener(h),()=>{me.removeListener(h)}}).pipe((0,M.O)(me),(0,T.U)(({matches:r})=>({query:J,matches:r})),(0,A.R)(this._destroySubject)),mql:me};return this._queries.set(J,t),t}}return ie.\u0275fac=function(J){return new(J||ie)(e.LFG(U),e.LFG(e.R0b))},ie.\u0275prov=e.Yz7({token:ie,factory:ie.\u0275fac,providedIn:"root"}),ie})();function le(ie){return ie.map(se=>se.split(",")).reduce((se,J)=>se.concat(J)).map(se=>se.trim())}const q={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"}},7144:(He,j,p)=>{"use strict";p.d(j,{Q8:()=>D,wD:()=>P});var e=p(3191),i=p(5e3),u=p(8306),b=p(7579),a=p(8372);let y=(()=>{class T{create(A){return"undefined"==typeof MutationObserver?null:new MutationObserver(A)}}return T.\u0275fac=function(A){return new(A||T)},T.\u0275prov=i.Yz7({token:T,factory:T.\u0275fac,providedIn:"root"}),T})(),d=(()=>{class T{constructor(A){this._mutationObserverFactory=A,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((A,E)=>this._cleanupObserver(E))}observe(A){const E=(0,e.fI)(A);return new u.y(k=>{const z=this._observeElement(E).subscribe(k);return()=>{z.unsubscribe(),this._unobserveElement(E)}})}_observeElement(A){if(this._observedElements.has(A))this._observedElements.get(A).count++;else{const E=new b.x,k=this._mutationObserverFactory.create(w=>E.next(w));k&&k.observe(A,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(A,{observer:k,stream:E,count:1})}return this._observedElements.get(A).stream}_unobserveElement(A){this._observedElements.has(A)&&(this._observedElements.get(A).count--,this._observedElements.get(A).count||this._cleanupObserver(A))}_cleanupObserver(A){if(this._observedElements.has(A)){const{observer:E,stream:k}=this._observedElements.get(A);E&&E.disconnect(),k.complete(),this._observedElements.delete(A)}}}return T.\u0275fac=function(A){return new(A||T)(i.LFG(y))},T.\u0275prov=i.Yz7({token:T,factory:T.\u0275fac,providedIn:"root"}),T})(),P=(()=>{class T{constructor(A,E,k){this._contentObserver=A,this._elementRef=E,this._ngZone=k,this.event=new i.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,a.b)(this.debounce)):A).subscribe(this.event)})}_unsubscribe(){var A;null===(A=this._currentSubscription)||void 0===A||A.unsubscribe()}}return T.\u0275fac=function(A){return new(A||T)(i.Y36(d),i.Y36(i.SBq),i.Y36(i.R0b))},T.\u0275dir=i.lG2({type:T,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),T})(),D=(()=>{class T{}return T.\u0275fac=function(A){return new(A||T)},T.\u0275mod=i.oAB({type:T}),T.\u0275inj=i.cJS({providers:[y]}),T})()},9776:(He,j,p)=>{"use strict";p.d(j,{pI:()=>ot,xu:()=>Y,_G:()=>n,aV:()=>ze,X_:()=>me,Xj:()=>S,U8:()=>ce});var e=p(5303),i=p(9808),u=p(5e3),b=p(3191),a=p(925),y=p(226),d=p(7429),P=p(7579),D=p(727),T=p(6451),M=p(4482),A=p(5403),k=p(5698),w=p(2722),z=p(1159);const U=(0,a.Mq)();class W{constructor(G,ee){this._viewportRuler=G,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=ee}attach(){}enable(){if(this._canBeEnabled()){const G=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=G.style.left||"",this._previousHTMLStyles.top=G.style.top||"",G.style.left=(0,b.HM)(-this._previousScrollPosition.left),G.style.top=(0,b.HM)(-this._previousScrollPosition.top),G.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const G=this._document.documentElement,ue=G.style,ve=this._document.body.style,Le=ue.scrollBehavior||"",lt=ve.scrollBehavior||"";this._isEnabled=!1,ue.left=this._previousHTMLStyles.left,ue.top=this._previousHTMLStyles.top,G.classList.remove("cdk-global-scrollblock"),U&&(ue.scrollBehavior=ve.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),U&&(ue.scrollBehavior=Le,ve.scrollBehavior=lt)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const ee=this._document.body,ue=this._viewportRuler.getViewportSize();return ee.scrollHeight>ue.height||ee.scrollWidth>ue.width}}class Q{constructor(G,ee,ue,ve){this._scrollDispatcher=G,this._ngZone=ee,this._viewportRuler=ue,this._config=ve,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(G){this._overlayRef=G}enable(){if(this._scrollSubscription)return;const G=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=G.subscribe(()=>{const ee=this._viewportRuler.getViewportScrollPosition().top;Math.abs(ee-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=G.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class le{enable(){}disable(){}attach(){}}function q(xe,G){return G.some(ee=>xe.bottom<ee.top||xe.top>ee.bottom||xe.right<ee.left||xe.left>ee.right)}function ie(xe,G){return G.some(ee=>xe.top<ee.top||xe.bottom>ee.bottom||xe.left<ee.left||xe.right>ee.right)}class se{constructor(G,ee,ue,ve){this._scrollDispatcher=G,this._viewportRuler=ee,this._ngZone=ue,this._config=ve,this._scrollSubscription=null}attach(G){this._overlayRef=G}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const ee=this._overlayRef.overlayElement.getBoundingClientRect(),{width:ue,height:ve}=this._viewportRuler.getViewportSize();q(ee,[{width:ue,height:ve,bottom:ve,right:ue,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let J=(()=>{class xe{constructor(ee,ue,ve,Le){this._scrollDispatcher=ee,this._viewportRuler=ue,this._ngZone=ve,this.noop=()=>new le,this.close=lt=>new Q(this._scrollDispatcher,this._ngZone,this._viewportRuler,lt),this.block=()=>new W(this._viewportRuler,this._document),this.reposition=lt=>new se(this._scrollDispatcher,this._viewportRuler,this._ngZone,lt),this._document=Le}}return xe.\u0275fac=function(ee){return new(ee||xe)(u.LFG(e.mF),u.LFG(e.rL),u.LFG(u.R0b),u.LFG(i.K0))},xe.\u0275prov=u.Yz7({token:xe,factory:xe.\u0275fac,providedIn:"root"}),xe})();class me{constructor(G){if(this.scrollStrategy=new le,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,G){const ee=Object.keys(G);for(const ue of ee)void 0!==G[ue]&&(this[ue]=G[ue])}}}class r{constructor(G,ee){this.connectionPair=G,this.scrollableViewProperties=ee}}class C{constructor(G,ee,ue,ve,Le,lt,ht,Tt,hi){this._portalOutlet=G,this._host=ee,this._pane=ue,this._config=ve,this._ngZone=Le,this._keyboardDispatcher=lt,this._document=ht,this._location=Tt,this._outsideClickDispatcher=hi,this._backdropElement=null,this._backdropClick=new P.x,this._attachments=new P.x,this._detachments=new P.x,this._locationChanges=D.w0.EMPTY,this._backdropClickHandler=jt=>this._backdropClick.next(jt),this._backdropTransitionendHandler=jt=>{this._disposeBackdrop(jt.target)},this._keydownEvents=new P.x,this._outsidePointerEvents=new P.x,ve.scrollStrategy&&(this._scrollStrategy=ve.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=ve.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(G){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const ee=this._portalOutlet.attach(G);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,k.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),ee}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const G=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),G}dispose(){var G;const ee=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),null===(G=this._host)||void 0===G||G.remove(),this._previousHostParent=this._pane=this._host=null,ee&&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(G){G!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=G,this.hasAttached()&&(G.attach(this),this.updatePosition()))}updateSize(G){this._config=Object.assign(Object.assign({},this._config),G),this._updateElementSize()}setDirection(G){this._config=Object.assign(Object.assign({},this._config),{direction:G}),this._updateElementDirection()}addPanelClass(G){this._pane&&this._toggleClasses(this._pane,G,!0)}removePanelClass(G){this._pane&&this._toggleClasses(this._pane,G,!1)}getDirection(){const G=this._config.direction;return G?"string"==typeof G?G:G.value:"ltr"}updateScrollStrategy(G){G!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=G,this.hasAttached()&&(G.attach(this),G.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const G=this._pane.style;G.width=(0,b.HM)(this._config.width),G.height=(0,b.HM)(this._config.height),G.minWidth=(0,b.HM)(this._config.minWidth),G.minHeight=(0,b.HM)(this._config.minHeight),G.maxWidth=(0,b.HM)(this._config.maxWidth),G.maxHeight=(0,b.HM)(this._config.maxHeight)}_togglePointerEvents(G){this._pane.style.pointerEvents=G?"":"none"}_attachBackdrop(){const G="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(G)})}):this._backdropElement.classList.add(G)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const G=this._backdropElement;!G||(G.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{G.addEventListener("transitionend",this._backdropTransitionendHandler)}),G.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(G)},500)))}_toggleClasses(G,ee,ue){const ve=(0,b.Eq)(ee||[]).filter(Le=>!!Le);ve.length&&(ue?G.classList.add(...ve):G.classList.remove(...ve))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const G=this._ngZone.onStable.pipe((0,w.R)((0,T.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()),G.unsubscribe())})})}_disposeScrollStrategy(){const G=this._scrollStrategy;G&&(G.disable(),G.detach&&G.detach())}_disposeBackdrop(G){G&&(G.removeEventListener("click",this._backdropClickHandler),G.removeEventListener("transitionend",this._backdropTransitionendHandler),G.remove(),this._backdropElement===G&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}let S=(()=>{class xe{constructor(ee,ue){this._platform=ue,this._document=ee}ngOnDestroy(){var ee;null===(ee=this._containerElement)||void 0===ee||ee.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const ee="cdk-overlay-container";if(this._platform.isBrowser||(0,a.Oy)()){const ve=this._document.querySelectorAll(`.${ee}[platform="server"], .${ee}[platform="test"]`);for(let Le=0;Le<ve.length;Le++)ve[Le].remove()}const ue=this._document.createElement("div");ue.classList.add(ee),(0,a.Oy)()?ue.setAttribute("platform","test"):this._platform.isBrowser||ue.setAttribute("platform","server"),this._document.body.appendChild(ue),this._containerElement=ue}}return xe.\u0275fac=function(ee){return new(ee||xe)(u.LFG(i.K0),u.LFG(a.t4))},xe.\u0275prov=u.Yz7({token:xe,factory:xe.\u0275fac,providedIn:"root"}),xe})();const I="cdk-overlay-connected-position-bounding-box",_=/([A-Za-z%]+)$/;class n{constructor(G,ee,ue,ve,Le){this._viewportRuler=ee,this._document=ue,this._platform=ve,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 P.x,this._resizeSubscription=D.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(G)}get positions(){return this._preferredPositions}attach(G){this._validatePositions(),G.hostElement.classList.add(I),this._overlayRef=G,this._boundingBox=G.hostElement,this._pane=G.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 G=this._originRect,ee=this._overlayRect,ue=this._viewportRect,ve=this._containerRect,Le=[];let lt;for(let ht of this._preferredPositions){let Tt=this._getOriginPoint(G,ve,ht),hi=this._getOverlayPoint(Tt,ee,ht),jt=this._getOverlayFit(hi,ee,ue,ht);if(jt.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(ht,Tt);this._canFitWithFlexibleDimensions(jt,hi,ue)?Le.push({position:ht,origin:Tt,overlayRect:ee,boundingBoxRect:this._calculateBoundingBoxRect(Tt,ht)}):(!lt||lt.overlayFit.visibleArea<jt.visibleArea)&&(lt={overlayFit:jt,overlayPoint:hi,originPoint:Tt,position:ht,overlayRect:ee})}if(Le.length){let ht=null,Tt=-1;for(const hi of Le){const jt=hi.boundingBoxRect.width*hi.boundingBoxRect.height*(hi.position.weight||1);jt>Tt&&(Tt=jt,ht=hi)}return this._isPushed=!1,void this._applyPosition(ht.position,ht.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(lt.position,lt.originPoint);this._applyPosition(lt.position,lt.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&g(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(I),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const G=this._lastPosition;if(G){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const ee=this._getOriginPoint(this._originRect,this._containerRect,G);this._applyPosition(G,ee)}else this.apply()}withScrollableContainers(G){return this._scrollables=G,this}withPositions(G){return this._preferredPositions=G,-1===G.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(G){return this._viewportMargin=G,this}withFlexibleDimensions(G=!0){return this._hasFlexibleDimensions=G,this}withGrowAfterOpen(G=!0){return this._growAfterOpen=G,this}withPush(G=!0){return this._canPush=G,this}withLockedPosition(G=!0){return this._positionLocked=G,this}setOrigin(G){return this._origin=G,this}withDefaultOffsetX(G){return this._offsetX=G,this}withDefaultOffsetY(G){return this._offsetY=G,this}withTransformOriginOn(G){return this._transformOriginSelector=G,this}_getOriginPoint(G,ee,ue){let ve,Le;if("center"==ue.originX)ve=G.left+G.width/2;else{const lt=this._isRtl()?G.right:G.left,ht=this._isRtl()?G.left:G.right;ve="start"==ue.originX?lt:ht}return ee.left<0&&(ve-=ee.left),Le="center"==ue.originY?G.top+G.height/2:"top"==ue.originY?G.top:G.bottom,ee.top<0&&(Le-=ee.top),{x:ve,y:Le}}_getOverlayPoint(G,ee,ue){let ve,Le;return ve="center"==ue.overlayX?-ee.width/2:"start"===ue.overlayX?this._isRtl()?-ee.width:0:this._isRtl()?0:-ee.width,Le="center"==ue.overlayY?-ee.height/2:"top"==ue.overlayY?0:-ee.height,{x:G.x+ve,y:G.y+Le}}_getOverlayFit(G,ee,ue,ve){const Le=R(ee);let{x:lt,y:ht}=G,Tt=this._getOffset(ve,"x"),hi=this._getOffset(ve,"y");Tt&&(lt+=Tt),hi&&(ht+=hi);let di=0-ht,vt=ht+Le.height-ue.height,kt=this._subtractOverflows(Le.width,0-lt,lt+Le.width-ue.width),gt=this._subtractOverflows(Le.height,di,vt),Qe=kt*gt;return{visibleArea:Qe,isCompletelyWithinViewport:Le.width*Le.height===Qe,fitsInViewportVertically:gt===Le.height,fitsInViewportHorizontally:kt==Le.width}}_canFitWithFlexibleDimensions(G,ee,ue){if(this._hasFlexibleDimensions){const ve=ue.bottom-ee.y,Le=ue.right-ee.x,lt=V(this._overlayRef.getConfig().minHeight),ht=V(this._overlayRef.getConfig().minWidth),hi=G.fitsInViewportHorizontally||null!=ht&&ht<=Le;return(G.fitsInViewportVertically||null!=lt&&lt<=ve)&&hi}return!1}_pushOverlayOnScreen(G,ee,ue){if(this._previousPushAmount&&this._positionLocked)return{x:G.x+this._previousPushAmount.x,y:G.y+this._previousPushAmount.y};const ve=R(ee),Le=this._viewportRect,lt=Math.max(G.x+ve.width-Le.width,0),ht=Math.max(G.y+ve.height-Le.height,0),Tt=Math.max(Le.top-ue.top-G.y,0),hi=Math.max(Le.left-ue.left-G.x,0);let jt=0,Gt=0;return jt=ve.width<=Le.width?hi||-lt:G.x<this._viewportMargin?Le.left-ue.left-G.x:0,Gt=ve.height<=Le.height?Tt||-ht:G.y<this._viewportMargin?Le.top-ue.top-G.y:0,this._previousPushAmount={x:jt,y:Gt},{x:G.x+jt,y:G.y+Gt}}_applyPosition(G,ee){if(this._setTransformOrigin(G),this._setOverlayElementStyles(ee,G),this._setBoundingBoxStyles(ee,G),G.panelClass&&this._addPanelClasses(G.panelClass),this._lastPosition=G,this._positionChanges.observers.length){const ue=this._getScrollVisibility(),ve=new r(G,ue);this._positionChanges.next(ve)}this._isInitialRender=!1}_setTransformOrigin(G){if(!this._transformOriginSelector)return;const ee=this._boundingBox.querySelectorAll(this._transformOriginSelector);let ue,ve=G.overlayY;ue="center"===G.overlayX?"center":this._isRtl()?"start"===G.overlayX?"right":"left":"start"===G.overlayX?"left":"right";for(let Le=0;Le<ee.length;Le++)ee[Le].style.transformOrigin=`${ue} ${ve}`}_calculateBoundingBoxRect(G,ee){const ue=this._viewportRect,ve=this._isRtl();let Le,lt,ht,jt,Gt,di;if("top"===ee.overlayY)lt=G.y,Le=ue.height-lt+this._viewportMargin;else if("bottom"===ee.overlayY)ht=ue.height-G.y+2*this._viewportMargin,Le=ue.height-ht+this._viewportMargin;else{const vt=Math.min(ue.bottom-G.y+ue.top,G.y),kt=this._lastBoundingBoxSize.height;Le=2*vt,lt=G.y-vt,Le>kt&&!this._isInitialRender&&!this._growAfterOpen&&(lt=G.y-kt/2)}if("end"===ee.overlayX&&!ve||"start"===ee.overlayX&&ve)di=ue.width-G.x+this._viewportMargin,jt=G.x-this._viewportMargin;else if("start"===ee.overlayX&&!ve||"end"===ee.overlayX&&ve)Gt=G.x,jt=ue.right-G.x;else{const vt=Math.min(ue.right-G.x+ue.left,G.x),kt=this._lastBoundingBoxSize.width;jt=2*vt,Gt=G.x-vt,jt>kt&&!this._isInitialRender&&!this._growAfterOpen&&(Gt=G.x-kt/2)}return{top:lt,left:Gt,bottom:ht,right:di,width:jt,height:Le}}_setBoundingBoxStyles(G,ee){const ue=this._calculateBoundingBoxRect(G,ee);!this._isInitialRender&&!this._growAfterOpen&&(ue.height=Math.min(ue.height,this._lastBoundingBoxSize.height),ue.width=Math.min(ue.width,this._lastBoundingBoxSize.width));const ve={};if(this._hasExactPosition())ve.top=ve.left="0",ve.bottom=ve.right=ve.maxHeight=ve.maxWidth="",ve.width=ve.height="100%";else{const Le=this._overlayRef.getConfig().maxHeight,lt=this._overlayRef.getConfig().maxWidth;ve.height=(0,b.HM)(ue.height),ve.top=(0,b.HM)(ue.top),ve.bottom=(0,b.HM)(ue.bottom),ve.width=(0,b.HM)(ue.width),ve.left=(0,b.HM)(ue.left),ve.right=(0,b.HM)(ue.right),ve.alignItems="center"===ee.overlayX?"center":"end"===ee.overlayX?"flex-end":"flex-start",ve.justifyContent="center"===ee.overlayY?"center":"bottom"===ee.overlayY?"flex-end":"flex-start",Le&&(ve.maxHeight=(0,b.HM)(Le)),lt&&(ve.maxWidth=(0,b.HM)(lt))}this._lastBoundingBoxSize=ue,g(this._boundingBox.style,ve)}_resetBoundingBoxStyles(){g(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){g(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(G,ee){const ue={},ve=this._hasExactPosition(),Le=this._hasFlexibleDimensions,lt=this._overlayRef.getConfig();if(ve){const jt=this._viewportRuler.getViewportScrollPosition();g(ue,this._getExactOverlayY(ee,G,jt)),g(ue,this._getExactOverlayX(ee,G,jt))}else ue.position="static";let ht="",Tt=this._getOffset(ee,"x"),hi=this._getOffset(ee,"y");Tt&&(ht+=`translateX(${Tt}px) `),hi&&(ht+=`translateY(${hi}px)`),ue.transform=ht.trim(),lt.maxHeight&&(ve?ue.maxHeight=(0,b.HM)(lt.maxHeight):Le&&(ue.maxHeight="")),lt.maxWidth&&(ve?ue.maxWidth=(0,b.HM)(lt.maxWidth):Le&&(ue.maxWidth="")),g(this._pane.style,ue)}_getExactOverlayY(G,ee,ue){let ve={top:"",bottom:""},Le=this._getOverlayPoint(ee,this._overlayRect,G);return this._isPushed&&(Le=this._pushOverlayOnScreen(Le,this._overlayRect,ue)),"bottom"===G.overlayY?ve.bottom=this._document.documentElement.clientHeight-(Le.y+this._overlayRect.height)+"px":ve.top=(0,b.HM)(Le.y),ve}_getExactOverlayX(G,ee,ue){let lt,ve={left:"",right:""},Le=this._getOverlayPoint(ee,this._overlayRect,G);return this._isPushed&&(Le=this._pushOverlayOnScreen(Le,this._overlayRect,ue)),lt=this._isRtl()?"end"===G.overlayX?"left":"right":"end"===G.overlayX?"right":"left","right"===lt?ve.right=this._document.documentElement.clientWidth-(Le.x+this._overlayRect.width)+"px":ve.left=(0,b.HM)(Le.x),ve}_getScrollVisibility(){const G=this._getOriginRect(),ee=this._pane.getBoundingClientRect(),ue=this._scrollables.map(ve=>ve.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:ie(G,ue),isOriginOutsideView:q(G,ue),isOverlayClipped:ie(ee,ue),isOverlayOutsideView:q(ee,ue)}}_subtractOverflows(G,...ee){return ee.reduce((ue,ve)=>ue-Math.max(ve,0),G)}_getNarrowedViewportRect(){const G=this._document.documentElement.clientWidth,ee=this._document.documentElement.clientHeight,ue=this._viewportRuler.getViewportScrollPosition();return{top:ue.top+this._viewportMargin,left:ue.left+this._viewportMargin,right:ue.left+G-this._viewportMargin,bottom:ue.top+ee-this._viewportMargin,width:G-2*this._viewportMargin,height:ee-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(G,ee){return"x"===ee?null==G.offsetX?this._offsetX:G.offsetX:null==G.offsetY?this._offsetY:G.offsetY}_validatePositions(){}_addPanelClasses(G){this._pane&&(0,b.Eq)(G).forEach(ee=>{""!==ee&&-1===this._appliedPanelClasses.indexOf(ee)&&(this._appliedPanelClasses.push(ee),this._pane.classList.add(ee))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(G=>{this._pane.classList.remove(G)}),this._appliedPanelClasses=[])}_getOriginRect(){const G=this._origin;if(G instanceof u.SBq)return G.nativeElement.getBoundingClientRect();if(G instanceof Element)return G.getBoundingClientRect();const ee=G.width||0,ue=G.height||0;return{top:G.y,bottom:G.y+ue,left:G.x,right:G.x+ee,height:ue,width:ee}}}function g(xe,G){for(let ee in G)G.hasOwnProperty(ee)&&(xe[ee]=G[ee]);return xe}function V(xe){if("number"!=typeof xe&&null!=xe){const[G,ee]=xe.split(_);return ee&&"px"!==ee?null:parseFloat(G)}return xe||null}function R(xe){return{top:Math.floor(xe.top),right:Math.floor(xe.right),bottom:Math.floor(xe.bottom),left:Math.floor(xe.left),width:Math.floor(xe.width),height:Math.floor(xe.height)}}const H="cdk-global-overlay-wrapper";class ${constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(G){const ee=G.getConfig();this._overlayRef=G,this._width&&!ee.width&&G.updateSize({width:this._width}),this._height&&!ee.height&&G.updateSize({height:this._height}),G.hostElement.classList.add(H),this._isDisposed=!1}top(G=""){return this._bottomOffset="",this._topOffset=G,this._alignItems="flex-start",this}left(G=""){return this._rightOffset="",this._leftOffset=G,this._justifyContent="flex-start",this}bottom(G=""){return this._topOffset="",this._bottomOffset=G,this._alignItems="flex-end",this}right(G=""){return this._leftOffset="",this._rightOffset=G,this._justifyContent="flex-end",this}width(G=""){return this._overlayRef?this._overlayRef.updateSize({width:G}):this._width=G,this}height(G=""){return this._overlayRef?this._overlayRef.updateSize({height:G}):this._height=G,this}centerHorizontally(G=""){return this.left(G),this._justifyContent="center",this}centerVertically(G=""){return this.top(G),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const G=this._overlayRef.overlayElement.style,ee=this._overlayRef.hostElement.style,ue=this._overlayRef.getConfig(),{width:ve,height:Le,maxWidth:lt,maxHeight:ht}=ue,Tt=!("100%"!==ve&&"100vw"!==ve||lt&&"100%"!==lt&&"100vw"!==lt),hi=!("100%"!==Le&&"100vh"!==Le||ht&&"100%"!==ht&&"100vh"!==ht);G.position=this._cssPosition,G.marginLeft=Tt?"0":this._leftOffset,G.marginTop=hi?"0":this._topOffset,G.marginBottom=this._bottomOffset,G.marginRight=this._rightOffset,Tt?ee.justifyContent="flex-start":"center"===this._justifyContent?ee.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?ee.justifyContent="flex-end":"flex-end"===this._justifyContent&&(ee.justifyContent="flex-start"):ee.justifyContent=this._justifyContent,ee.alignItems=hi?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const G=this._overlayRef.overlayElement.style,ee=this._overlayRef.hostElement,ue=ee.style;ee.classList.remove(H),ue.justifyContent=ue.alignItems=G.marginTop=G.marginBottom=G.marginLeft=G.marginRight=G.position="",this._overlayRef=null,this._isDisposed=!0}}let fe=(()=>{class xe{constructor(ee,ue,ve,Le){this._viewportRuler=ee,this._document=ue,this._platform=ve,this._overlayContainer=Le}global(){return new $}flexibleConnectedTo(ee){return new n(ee,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return xe.\u0275fac=function(ee){return new(ee||xe)(u.LFG(e.rL),u.LFG(i.K0),u.LFG(a.t4),u.LFG(S))},xe.\u0275prov=u.Yz7({token:xe,factory:xe.\u0275fac,providedIn:"root"}),xe})(),ye=(()=>{class xe{constructor(ee){this._attachedOverlays=[],this._document=ee}ngOnDestroy(){this.detach()}add(ee){this.remove(ee),this._attachedOverlays.push(ee)}remove(ee){const ue=this._attachedOverlays.indexOf(ee);ue>-1&&this._attachedOverlays.splice(ue,1),0===this._attachedOverlays.length&&this.detach()}}return xe.\u0275fac=function(ee){return new(ee||xe)(u.LFG(i.K0))},xe.\u0275prov=u.Yz7({token:xe,factory:xe.\u0275fac,providedIn:"root"}),xe})(),ke=(()=>{class xe extends ye{constructor(ee,ue){super(ee),this._ngZone=ue,this._keydownListener=ve=>{const Le=this._attachedOverlays;for(let lt=Le.length-1;lt>-1;lt--)if(Le[lt]._keydownEvents.observers.length>0){const ht=Le[lt]._keydownEvents;this._ngZone?this._ngZone.run(()=>ht.next(ve)):ht.next(ve);break}}}add(ee){super.add(ee),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return xe.\u0275fac=function(ee){return new(ee||xe)(u.LFG(i.K0),u.LFG(u.R0b,8))},xe.\u0275prov=u.Yz7({token:xe,factory:xe.\u0275fac,providedIn:"root"}),xe})(),Ee=(()=>{class xe extends ye{constructor(ee,ue,ve){super(ee),this._platform=ue,this._ngZone=ve,this._cursorStyleIsSet=!1,this._pointerDownListener=Le=>{this._pointerDownEventTarget=(0,a.sA)(Le)},this._clickListener=Le=>{const lt=(0,a.sA)(Le),ht="click"===Le.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:lt;this._pointerDownEventTarget=null;const Tt=this._attachedOverlays.slice();for(let hi=Tt.length-1;hi>-1;hi--){const jt=Tt[hi];if(jt._outsidePointerEvents.observers.length<1||!jt.hasAttached())continue;if(jt.overlayElement.contains(lt)||jt.overlayElement.contains(ht))break;const Gt=jt._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>Gt.next(Le)):Gt.next(Le)}}}add(ee){if(super.add(ee),!this._isAttached){const ue=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(ue)):this._addEventListeners(ue),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=ue.style.cursor,ue.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const ee=this._document.body;ee.removeEventListener("pointerdown",this._pointerDownListener,!0),ee.removeEventListener("click",this._clickListener,!0),ee.removeEventListener("auxclick",this._clickListener,!0),ee.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(ee.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(ee){ee.addEventListener("pointerdown",this._pointerDownListener,!0),ee.addEventListener("click",this._clickListener,!0),ee.addEventListener("auxclick",this._clickListener,!0),ee.addEventListener("contextmenu",this._clickListener,!0)}}return xe.\u0275fac=function(ee){return new(ee||xe)(u.LFG(i.K0),u.LFG(a.t4),u.LFG(u.R0b,8))},xe.\u0275prov=u.Yz7({token:xe,factory:xe.\u0275fac,providedIn:"root"}),xe})(),te=0,ze=(()=>{class xe{constructor(ee,ue,ve,Le,lt,ht,Tt,hi,jt,Gt,di){this.scrollStrategies=ee,this._overlayContainer=ue,this._componentFactoryResolver=ve,this._positionBuilder=Le,this._keyboardDispatcher=lt,this._injector=ht,this._ngZone=Tt,this._document=hi,this._directionality=jt,this._location=Gt,this._outsideClickDispatcher=di}create(ee){const ue=this._createHostElement(),ve=this._createPaneElement(ue),Le=this._createPortalOutlet(ve),lt=new me(ee);return lt.direction=lt.direction||this._directionality.value,new C(Le,ue,ve,lt,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(ee){const ue=this._document.createElement("div");return ue.id="cdk-overlay-"+te++,ue.classList.add("cdk-overlay-pane"),ee.appendChild(ue),ue}_createHostElement(){const ee=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(ee),ee}_createPortalOutlet(ee){return this._appRef||(this._appRef=this._injector.get(u.z2F)),new d.u0(ee,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return xe.\u0275fac=function(ee){return new(ee||xe)(u.LFG(J),u.LFG(S),u.LFG(u._Vd),u.LFG(fe),u.LFG(ke),u.LFG(u.zs3),u.LFG(u.R0b),u.LFG(i.K0),u.LFG(y.Is),u.LFG(i.Ye),u.LFG(Ee))},xe.\u0275prov=u.Yz7({token:xe,factory:xe.\u0275fac}),xe})();const be=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Z=new u.OlP("cdk-connected-overlay-scroll-strategy");let Y=(()=>{class xe{constructor(ee){this.elementRef=ee}}return xe.\u0275fac=function(ee){return new(ee||xe)(u.Y36(u.SBq))},xe.\u0275dir=u.lG2({type:xe,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),xe})(),ot=(()=>{class xe{constructor(ee,ue,ve,Le,lt){this._overlay=ee,this._dir=lt,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=D.w0.EMPTY,this._attachSubscription=D.w0.EMPTY,this._detachSubscription=D.w0.EMPTY,this._positionSubscription=D.w0.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new u.vpe,this.positionChange=new u.vpe,this.attach=new u.vpe,this.detach=new u.vpe,this.overlayKeydown=new u.vpe,this.overlayOutsideClick=new u.vpe,this._templatePortal=new d.UE(ue,ve),this._scrollStrategyFactory=Le,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(ee){this._offsetX=ee,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(ee){this._offsetY=ee,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(ee){this._hasBackdrop=(0,b.Ig)(ee)}get lockPosition(){return this._lockPosition}set lockPosition(ee){this._lockPosition=(0,b.Ig)(ee)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(ee){this._flexibleDimensions=(0,b.Ig)(ee)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(ee){this._growAfterOpen=(0,b.Ig)(ee)}get push(){return this._push}set push(ee){this._push=(0,b.Ig)(ee)}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(ee){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),ee.origin&&this.open&&this._position.apply()),ee.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=be);const ee=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=ee.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=ee.detachments().subscribe(()=>this.detach.emit()),ee.keydownEvents().subscribe(ue=>{this.overlayKeydown.next(ue),ue.keyCode===z.hY&&!this.disableClose&&!(0,z.Vb)(ue)&&(ue.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(ue=>{this.overlayOutsideClick.next(ue)})}_buildConfig(){const ee=this._position=this.positionStrategy||this._createPositionStrategy(),ue=new me({direction:this._dir,positionStrategy:ee,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(ue.width=this.width),(this.height||0===this.height)&&(ue.height=this.height),(this.minWidth||0===this.minWidth)&&(ue.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(ue.minHeight=this.minHeight),this.backdropClass&&(ue.backdropClass=this.backdropClass),this.panelClass&&(ue.panelClass=this.panelClass),ue}_updatePositionStrategy(ee){const ue=this.positions.map(ve=>({originX:ve.originX,originY:ve.originY,overlayX:ve.overlayX,overlayY:ve.overlayY,offsetX:ve.offsetX||this.offsetX,offsetY:ve.offsetY||this.offsetY,panelClass:ve.panelClass||void 0}));return ee.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(ue).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const ee=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(ee),ee}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof Y?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(ee=>{this.backdropClick.emit(ee)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function E(xe,G=!1){return(0,M.e)((ee,ue)=>{let ve=0;ee.subscribe((0,A.x)(ue,Le=>{const lt=xe(Le,ve++);(lt||G)&&ue.next(Le),!lt&&ue.complete()}))})}(()=>this.positionChange.observers.length>0)).subscribe(ee=>{this.positionChange.emit(ee),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return xe.\u0275fac=function(ee){return new(ee||xe)(u.Y36(ze),u.Y36(u.Rgc),u.Y36(u.s_b),u.Y36(Z),u.Y36(y.Is,8))},xe.\u0275dir=u.lG2({type:xe,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:[u.TTD]}),xe})();const Ae={provide:Z,deps:[ze],useFactory:function Ie(xe){return()=>xe.scrollStrategies.reposition()}};let ce=(()=>{class xe{}return xe.\u0275fac=function(ee){return new(ee||xe)},xe.\u0275mod=u.oAB({type:xe}),xe.\u0275inj=u.cJS({providers:[ze,Ae],imports:[[y.vT,d.eL,e.Cl],e.Cl]}),xe})()},925:(He,j,p)=>{"use strict";p.d(j,{Mq:()=>k,Oy:()=>le,_i:()=>w,ht:()=>ne,i$:()=>M,kV:()=>W,qK:()=>P,sA:()=>Q,t4:()=>b});var e=p(5e3),i=p(9808);let u;try{u="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(q){u=!1}let y,b=(()=>{class q{constructor(se){this._platformId=se,this.isBrowser=this._platformId?(0,i.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&&!u)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return q.\u0275fac=function(se){return new(se||q)(e.LFG(e.Lbi))},q.\u0275prov=e.Yz7({token:q,factory:q.\u0275fac,providedIn:"root"}),q})();const d=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function P(){if(y)return y;if("object"!=typeof document||!document)return y=new Set(d),y;let q=document.createElement("input");return y=new Set(d.filter(ie=>(q.setAttribute("type",ie),q.type===ie))),y}let D,A,E,z;function M(q){return function T(){if(null==D&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>D=!0}))}finally{D=D||!1}return D}()?q:!!q.capture}function k(){if(null==E){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return E=!1,E;if("scrollBehavior"in document.documentElement.style)E=!0;else{const q=Element.prototype.scrollTo;E=!!q&&!/\{\s*\[native code\]\s*\}/.test(q.toString())}}return E}function w(){if("object"!=typeof document||!document)return 0;if(null==A){const q=document.createElement("div"),ie=q.style;q.dir="rtl",ie.width="1px",ie.overflow="auto",ie.visibility="hidden",ie.pointerEvents="none",ie.position="absolute";const se=document.createElement("div"),J=se.style;J.width="2px",J.height="1px",q.appendChild(se),document.body.appendChild(q),A=0,0===q.scrollLeft&&(q.scrollLeft=1,A=0===q.scrollLeft?1:2),q.remove()}return A}function W(q){if(function U(){if(null==z){const q="undefined"!=typeof document?document.head:null;z=!(!q||!q.createShadowRoot&&!q.attachShadow)}return z}()){const ie=q.getRootNode?q.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&ie instanceof ShadowRoot)return ie}return null}function ne(){let q="undefined"!=typeof document&&document?document.activeElement:null;for(;q&&q.shadowRoot;){const ie=q.shadowRoot.activeElement;if(ie===q)break;q=ie}return q}function Q(q){return q.composedPath?q.composedPath()[0]:q.target}function le(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}},7429:(He,j,p)=>{"use strict";p.d(j,{C5:()=>T,Pl:()=>ne,UE:()=>M,eL:()=>le,en:()=>E,ig:()=>U,u0:()=>w});var e=p(5e3),i=p(9808);class D{attach(se){return this._attachedHost=se,se.attach(this)}detach(){let se=this._attachedHost;null!=se&&(this._attachedHost=null,se.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(se){this._attachedHost=se}}class T extends D{constructor(se,J,me,x){super(),this.component=se,this.viewContainerRef=J,this.injector=me,this.componentFactoryResolver=x}}class M extends D{constructor(se,J,me){super(),this.templateRef=se,this.viewContainerRef=J,this.context=me}get origin(){return this.templateRef.elementRef}attach(se,J=this.context){return this.context=J,super.attach(se)}detach(){return this.context=void 0,super.detach()}}class A extends D{constructor(se){super(),this.element=se instanceof e.SBq?se.nativeElement:se}}class E{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(se){return se instanceof T?(this._attachedPortal=se,this.attachComponentPortal(se)):se instanceof M?(this._attachedPortal=se,this.attachTemplatePortal(se)):this.attachDomPortal&&se instanceof A?(this._attachedPortal=se,this.attachDomPortal(se)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(se){this._disposeFn=se}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class w extends E{constructor(se,J,me,x,t){super(),this.outletElement=se,this._componentFactoryResolver=J,this._appRef=me,this._defaultInjector=x,this.attachDomPortal=r=>{const h=r.element,c=this._document.createComment("dom-portal");h.parentNode.insertBefore(c,h),this.outletElement.appendChild(h),this._attachedPortal=r,super.setDisposeFn(()=>{c.parentNode&&c.parentNode.replaceChild(h,c)})},this._document=t}attachComponentPortal(se){const me=(se.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(se.component);let x;return se.viewContainerRef?(x=se.viewContainerRef.createComponent(me,se.viewContainerRef.length,se.injector||se.viewContainerRef.injector),this.setDisposeFn(()=>x.destroy())):(x=me.create(se.injector||this._defaultInjector||e.zs3.NULL),this._appRef.attachView(x.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(x.hostView),x.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(x)),this._attachedPortal=se,x}attachTemplatePortal(se){let J=se.viewContainerRef,me=J.createEmbeddedView(se.templateRef,se.context);return me.rootNodes.forEach(x=>this.outletElement.appendChild(x)),me.detectChanges(),this.setDisposeFn(()=>{let x=J.indexOf(me);-1!==x&&J.remove(x)}),this._attachedPortal=se,me}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(se){return se.hostView.rootNodes[0]}}let U=(()=>{class ie extends M{constructor(J,me){super(J,me)}}return ie.\u0275fac=function(J){return new(J||ie)(e.Y36(e.Rgc),e.Y36(e.s_b))},ie.\u0275dir=e.lG2({type:ie,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[e.qOj]}),ie})(),ne=(()=>{class ie extends E{constructor(J,me,x){super(),this._componentFactoryResolver=J,this._viewContainerRef=me,this._isInitialized=!1,this.attached=new e.vpe,this.attachDomPortal=t=>{const r=t.element,h=this._document.createComment("dom-portal");t.setAttachedHost(this),r.parentNode.insertBefore(h,r),this._getRootNode().appendChild(r),this._attachedPortal=t,super.setDisposeFn(()=>{h.parentNode&&h.parentNode.replaceChild(r,h)})},this._document=x}get portal(){return this._attachedPortal}set portal(J){this.hasAttached()&&!J&&!this._isInitialized||(this.hasAttached()&&super.detach(),J&&super.attach(J),this._attachedPortal=J||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(J){J.setAttachedHost(this);const me=null!=J.viewContainerRef?J.viewContainerRef:this._viewContainerRef,t=(J.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(J.component),r=me.createComponent(t,me.length,J.injector||me.injector);return me!==this._viewContainerRef&&this._getRootNode().appendChild(r.hostView.rootNodes[0]),super.setDisposeFn(()=>r.destroy()),this._attachedPortal=J,this._attachedRef=r,this.attached.emit(r),r}attachTemplatePortal(J){J.setAttachedHost(this);const me=this._viewContainerRef.createEmbeddedView(J.templateRef,J.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=J,this._attachedRef=me,this.attached.emit(me),me}_getRootNode(){const J=this._viewContainerRef.element.nativeElement;return J.nodeType===J.ELEMENT_NODE?J:J.parentNode}}return ie.\u0275fac=function(J){return new(J||ie)(e.Y36(e._Vd),e.Y36(e.s_b),e.Y36(i.K0))},ie.\u0275dir=e.lG2({type:ie,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[e.qOj]}),ie})(),le=(()=>{class ie{}return ie.\u0275fac=function(J){return new(J||ie)},ie.\u0275mod=e.oAB({type:ie}),ie.\u0275inj=e.cJS({}),ie})()},5303:(He,j,p)=>{"use strict";p.d(j,{PQ:()=>h,ZD:()=>V,mF:()=>r,Cl:()=>R,rL:()=>C});var e=p(3191),i=p(5e3),u=p(4408),b=p(727);const a={schedule(H){let $=requestAnimationFrame,fe=cancelAnimationFrame;const{delegate:ye}=a;ye&&($=ye.requestAnimationFrame,fe=ye.cancelAnimationFrame);const ke=$(Ee=>{fe=void 0,H(Ee)});return new b.w0(()=>null==fe?void 0:fe(ke))},requestAnimationFrame(...H){const{delegate:$}=a;return((null==$?void 0:$.requestAnimationFrame)||requestAnimationFrame)(...H)},cancelAnimationFrame(...H){const{delegate:$}=a;return((null==$?void 0:$.cancelAnimationFrame)||cancelAnimationFrame)(...H)},delegate:void 0};var d=p(7565);new class P extends d.v{flush($){this._active=!0;const fe=this._scheduled;this._scheduled=void 0;const{actions:ye}=this;let ke;$=$||ye.shift();do{if(ke=$.execute($.state,$.delay))break}while(($=ye[0])&&$.id===fe&&ye.shift());if(this._active=!1,ke){for(;($=ye[0])&&$.id===fe&&ye.shift();)$.unsubscribe();throw ke}}}(class y extends u.o{constructor($,fe){super($,fe),this.scheduler=$,this.work=fe}requestAsyncId($,fe,ye=0){return null!==ye&&ye>0?super.requestAsyncId($,fe,ye):($.actions.push(this),$._scheduled||($._scheduled=a.requestAnimationFrame(()=>$.flush(void 0))))}recycleAsyncId($,fe,ye=0){if(null!=ye&&ye>0||null==ye&&this.delay>0)return super.recycleAsyncId($,fe,ye);$.actions.some(ke=>ke.id===fe)||(a.cancelAnimationFrame(fe),$._scheduled=void 0)}});var M=p(7579),A=p(9646),E=p(8306),k=p(4968),z=(p(3101),p(3601)),U=p(9300),W=p(2722),ne=p(9808),Q=p(925),le=p(226);let r=(()=>{class H{constructor(fe,ye,ke){this._ngZone=fe,this._platform=ye,this._scrolled=new M.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=ke}register(fe){this.scrollContainers.has(fe)||this.scrollContainers.set(fe,fe.elementScrolled().subscribe(()=>this._scrolled.next(fe)))}deregister(fe){const ye=this.scrollContainers.get(fe);ye&&(ye.unsubscribe(),this.scrollContainers.delete(fe))}scrolled(fe=20){return this._platform.isBrowser?new E.y(ye=>{this._globalSubscription||this._addGlobalListener();const ke=fe>0?this._scrolled.pipe((0,z.e)(fe)).subscribe(ye):this._scrolled.subscribe(ye);return this._scrolledCount++,()=>{ke.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,A.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((fe,ye)=>this.deregister(ye)),this._scrolled.complete()}ancestorScrolled(fe,ye){const ke=this.getAncestorScrollContainers(fe);return this.scrolled(ye).pipe((0,U.h)(Ee=>!Ee||ke.indexOf(Ee)>-1))}getAncestorScrollContainers(fe){const ye=[];return this.scrollContainers.forEach((ke,Ee)=>{this._scrollableContainsElement(Ee,fe)&&ye.push(Ee)}),ye}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(fe,ye){let ke=(0,e.fI)(ye),Ee=fe.getElementRef().nativeElement;do{if(ke==Ee)return!0}while(ke=ke.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const fe=this._getWindow();return(0,k.R)(fe.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return H.\u0275fac=function(fe){return new(fe||H)(i.LFG(i.R0b),i.LFG(Q.t4),i.LFG(ne.K0,8))},H.\u0275prov=i.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"}),H})(),h=(()=>{class H{constructor(fe,ye,ke,Ee){this.elementRef=fe,this.scrollDispatcher=ye,this.ngZone=ke,this.dir=Ee,this._destroyed=new M.x,this._elementScrolled=new E.y(te=>this.ngZone.runOutsideAngular(()=>(0,k.R)(this.elementRef.nativeElement,"scroll").pipe((0,W.R)(this._destroyed)).subscribe(te)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(fe){const ye=this.elementRef.nativeElement,ke=this.dir&&"rtl"==this.dir.value;null==fe.left&&(fe.left=ke?fe.end:fe.start),null==fe.right&&(fe.right=ke?fe.start:fe.end),null!=fe.bottom&&(fe.top=ye.scrollHeight-ye.clientHeight-fe.bottom),ke&&0!=(0,Q._i)()?(null!=fe.left&&(fe.right=ye.scrollWidth-ye.clientWidth-fe.left),2==(0,Q._i)()?fe.left=fe.right:1==(0,Q._i)()&&(fe.left=fe.right?-fe.right:fe.right)):null!=fe.right&&(fe.left=ye.scrollWidth-ye.clientWidth-fe.right),this._applyScrollToOptions(fe)}_applyScrollToOptions(fe){const ye=this.elementRef.nativeElement;(0,Q.Mq)()?ye.scrollTo(fe):(null!=fe.top&&(ye.scrollTop=fe.top),null!=fe.left&&(ye.scrollLeft=fe.left))}measureScrollOffset(fe){const ye="left",Ee=this.elementRef.nativeElement;if("top"==fe)return Ee.scrollTop;if("bottom"==fe)return Ee.scrollHeight-Ee.clientHeight-Ee.scrollTop;const te=this.dir&&"rtl"==this.dir.value;return"start"==fe?fe=te?"right":ye:"end"==fe&&(fe=te?ye:"right"),te&&2==(0,Q._i)()?fe==ye?Ee.scrollWidth-Ee.clientWidth-Ee.scrollLeft:Ee.scrollLeft:te&&1==(0,Q._i)()?fe==ye?Ee.scrollLeft+Ee.scrollWidth-Ee.clientWidth:-Ee.scrollLeft:fe==ye?Ee.scrollLeft:Ee.scrollWidth-Ee.clientWidth-Ee.scrollLeft}}return H.\u0275fac=function(fe){return new(fe||H)(i.Y36(i.SBq),i.Y36(r),i.Y36(i.R0b),i.Y36(le.Is,8))},H.\u0275dir=i.lG2({type:H,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),H})(),C=(()=>{class H{constructor(fe,ye,ke){this._platform=fe,this._change=new M.x,this._changeListener=Ee=>{this._change.next(Ee)},this._document=ke,ye.runOutsideAngular(()=>{if(fe.isBrowser){const Ee=this._getWindow();Ee.addEventListener("resize",this._changeListener),Ee.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const fe=this._getWindow();fe.removeEventListener("resize",this._changeListener),fe.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const fe={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),fe}getViewportRect(){const fe=this.getViewportScrollPosition(),{width:ye,height:ke}=this.getViewportSize();return{top:fe.top,left:fe.left,bottom:fe.top+ke,right:fe.left+ye,height:ke,width:ye}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const fe=this._document,ye=this._getWindow(),ke=fe.documentElement,Ee=ke.getBoundingClientRect();return{top:-Ee.top||fe.body.scrollTop||ye.scrollY||ke.scrollTop||0,left:-Ee.left||fe.body.scrollLeft||ye.scrollX||ke.scrollLeft||0}}change(fe=20){return fe>0?this._change.pipe((0,z.e)(fe)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const fe=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:fe.innerWidth,height:fe.innerHeight}:{width:0,height:0}}}return H.\u0275fac=function(fe){return new(fe||H)(i.LFG(Q.t4),i.LFG(i.R0b),i.LFG(ne.K0,8))},H.\u0275prov=i.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"}),H})(),V=(()=>{class H{}return H.\u0275fac=function(fe){return new(fe||H)},H.\u0275mod=i.oAB({type:H}),H.\u0275inj=i.cJS({}),H})(),R=(()=>{class H{}return H.\u0275fac=function(fe){return new(fe||H)},H.\u0275mod=i.oAB({type:H}),H.\u0275inj=i.cJS({imports:[[le.vT,V],le.vT,V]}),H})()},1555:(He,j,p)=>{"use strict";p.d(j,{B8:()=>le,KL:()=>k,U5:()=>se,be:()=>Q,gx:()=>ne,po:()=>ie,st:()=>q,u6:()=>w});var e=p(5664),i=p(3191),u=p(1159),b=p(9808),a=p(5e3),y=p(925),d=p(7579),P=p(9646),D=p(8675),T=p(2722),M=p(226);function A(J,me){1&J&&a.Hsn(0)}const E=["*"];let k=(()=>{class J{constructor(x){this._elementRef=x}focus(){this._elementRef.nativeElement.focus()}}return J.\u0275fac=function(x){return new(x||J)(a.Y36(a.SBq))},J.\u0275dir=a.lG2({type:J,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),J})(),w=(()=>{class J{constructor(x){this.template=x}}return J.\u0275fac=function(x){return new(x||J)(a.Y36(a.Rgc))},J.\u0275dir=a.lG2({type:J,selectors:[["","cdkStepLabel",""]]}),J})(),z=0;const ne=new a.OlP("STEPPER_GLOBAL_OPTIONS");let Q=(()=>{class J{constructor(x,t){this._stepper=x,this.interacted=!1,this.interactedStream=new a.vpe,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=t||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType}get editable(){return this._editable}set editable(x){this._editable=(0,i.Ig)(x)}get optional(){return this._optional}set optional(x){this._optional=(0,i.Ig)(x)}get completed(){return null==this._completedOverride?this._getDefaultCompleted():this._completedOverride}set completed(x){this._completedOverride=(0,i.Ig)(x)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return null==this._customError?this._getDefaultError():this._customError}set hasError(x){this._customError=(0,i.Ig)(x)}_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}select(){this._stepper.selected=this}reset(){this.interacted=!1,null!=this._completedOverride&&(this._completedOverride=!1),null!=this._customError&&(this._customError=!1),this.stepControl&&this.stepControl.reset()}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}_showError(){var x;return null!==(x=this._stepperOptions.showError)&&void 0!==x?x:null!=this._customError}}return J.\u0275fac=function(x){return new(x||J)(a.Y36((0,a.Gpc)(()=>le)),a.Y36(ne,8))},J.\u0275cmp=a.Xpm({type:J,selectors:[["cdk-step"]],contentQueries:function(x,t,r){if(1&x&&a.Suo(r,w,5),2&x){let h;a.iGM(h=a.CRH())&&(t.stepLabel=h.first)}},viewQuery:function(x,t){if(1&x&&a.Gf(a.Rgc,7),2&x){let r;a.iGM(r=a.CRH())&&(t.content=r.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],state:"state",editable:"editable",optional:"optional",completed:"completed",hasError:"hasError"},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[a.TTD],ngContentSelectors:E,decls:1,vars:0,template:function(x,t){1&x&&(a.F$t(),a.YNc(0,A,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),J})(),le=(()=>{class J{constructor(x,t,r,h){this._dir=x,this._changeDetectorRef=t,this._elementRef=r,this._destroyed=new d.x,this.steps=new a.n_E,this._sortedHeaders=new a.n_E,this._linear=!1,this._selectedIndex=0,this.selectionChange=new a.vpe,this._orientation="horizontal",this._groupId=z++}get linear(){return this._linear}set linear(x){this._linear=(0,i.Ig)(x)}get selectedIndex(){return this._selectedIndex}set selectedIndex(x){var t;const r=(0,i.su)(x);this.steps&&this._steps?(this._isValidIndex(r),null===(t=this.selected)||void 0===t||t._markAsInteracted(),this._selectedIndex!==r&&!this._anyControlsInvalidOrPending(r)&&(r>=this._selectedIndex||this.steps.toArray()[r].editable)&&this._updateSelectedItemIndex(r)):this._selectedIndex=r}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(x){this.selectedIndex=x&&this.steps?this.steps.toArray().indexOf(x):-1}get orientation(){return this._orientation}set orientation(x){this._orientation=x,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===x)}ngAfterContentInit(){this._steps.changes.pipe((0,D.O)(this._steps),(0,T.R)(this._destroyed)).subscribe(x=>{this.steps.reset(x.filter(t=>t._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe((0,D.O)(this._stepHeader),(0,T.R)(this._destroyed)).subscribe(x=>{this._sortedHeaders.reset(x.toArray().sort((t,r)=>t._elementRef.nativeElement.compareDocumentPosition(r._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,P.of)()).pipe((0,D.O)(this._layoutDirection()),(0,T.R)(this._destroyed)).subscribe(x=>this._keyManager.withHorizontalOrientation(x)),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(x=>x.reset()),this._stateChanged()}_getStepLabelId(x){return`cdk-step-label-${this._groupId}-${x}`}_getStepContentId(x){return`cdk-step-content-${this._groupId}-${x}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(x){const t=x-this._selectedIndex;return t<0?"rtl"===this._layoutDirection()?"next":"previous":t>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(x,t="number"){const r=this.steps.toArray()[x],h=this._isCurrentStep(x);return r._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(r,h):this._getGuidelineLogic(r,h,t)}_getDefaultIndicatorLogic(x,t){return x._showError()&&x.hasError&&!t?"error":!x.completed||t?"number":x.editable?"edit":"done"}_getGuidelineLogic(x,t,r="number"){return x._showError()&&x.hasError&&!t?"error":x.completed&&!t?"done":x.completed&&t?r:x.editable&&t?"edit":r}_isCurrentStep(x){return this._selectedIndex===x}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(x){const t=this.steps.toArray();this.selectionChange.emit({selectedIndex:x,previouslySelectedIndex:this._selectedIndex,selectedStep:t[x],previouslySelectedStep:t[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(x):this._keyManager.updateActiveItem(x),this._selectedIndex=x,this._stateChanged()}_onKeydown(x){const t=(0,u.Vb)(x),r=x.keyCode,h=this._keyManager;null==h.activeItemIndex||t||r!==u.L_&&r!==u.K5?h.onKeydown(x):(this.selectedIndex=h.activeItemIndex,x.preventDefault())}_anyControlsInvalidOrPending(x){return!!(this._linear&&x>=0)&&this.steps.toArray().slice(0,x).some(t=>{const r=t.stepControl;return(r?r.invalid||r.pending||!t.interacted:!t.completed)&&!t.optional&&!t._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){const x=this._elementRef.nativeElement,t=(0,y.ht)();return x===t||x.contains(t)}_isValidIndex(x){return x>-1&&(!this.steps||x<this.steps.length)}}return J.\u0275fac=function(x){return new(x||J)(a.Y36(M.Is,8),a.Y36(a.sBO),a.Y36(a.SBq),a.Y36(b.K0))},J.\u0275dir=a.lG2({type:J,selectors:[["","cdkStepper",""]],contentQueries:function(x,t,r){if(1&x&&(a.Suo(r,Q,5),a.Suo(r,k,5)),2&x){let h;a.iGM(h=a.CRH())&&(t._steps=h),a.iGM(h=a.CRH())&&(t._stepHeader=h)}},inputs:{linear:"linear",selectedIndex:"selectedIndex",selected:"selected",orientation:"orientation"},outputs:{selectionChange:"selectionChange"},exportAs:["cdkStepper"]}),J})(),q=(()=>{class J{constructor(x){this._stepper=x,this.type="submit"}}return J.\u0275fac=function(x){return new(x||J)(a.Y36(le))},J.\u0275dir=a.lG2({type:J,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(x,t){1&x&&a.NdJ("click",function(){return t._stepper.next()}),2&x&&a.Ikx("type",t.type)},inputs:{type:"type"}}),J})(),ie=(()=>{class J{constructor(x){this._stepper=x,this.type="button"}}return J.\u0275fac=function(x){return new(x||J)(a.Y36(le))},J.\u0275dir=a.lG2({type:J,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(x,t){1&x&&a.NdJ("click",function(){return t._stepper.previous()}),2&x&&a.Ikx("type",t.type)},inputs:{type:"type"}}),J})(),se=(()=>{class J{}return J.\u0275fac=function(x){return new(x||J)},J.\u0275mod=a.oAB({type:J}),J.\u0275inj=a.cJS({imports:[[M.vT]]}),J})()},8258:(He,j,p)=>{"use strict";p.d(j,{HI:()=>w,Hs:()=>J,Ud:()=>c,VY:()=>k,XJ:()=>h,Xx:()=>t,_0:()=>se,cu:()=>z,nZ:()=>S,rO:()=>W});var e=p(449),i=p(5191),u=p(7579),b=p(1135),a=p(9646),y=p(5698),d=p(9300),P=p(2722),D=p(5e3),T=p(3191),M=p(226);class k extends class A{constructor(){this.expansionModel=new e.Ov(!0)}toggle(_){this.expansionModel.toggle(this._trackByValue(_))}expand(_){this.expansionModel.select(this._trackByValue(_))}collapse(_){this.expansionModel.deselect(this._trackByValue(_))}isExpanded(_){return this.expansionModel.isSelected(this._trackByValue(_))}toggleDescendants(_){this.expansionModel.isSelected(this._trackByValue(_))?this.collapseDescendants(_):this.expandDescendants(_)}collapseAll(){this.expansionModel.clear()}expandDescendants(_){let n=[_];n.push(...this.getDescendants(_)),this.expansionModel.select(...n.map(g=>this._trackByValue(g)))}collapseDescendants(_){let n=[_];n.push(...this.getDescendants(_)),this.expansionModel.deselect(...n.map(g=>this._trackByValue(g)))}_trackByValue(_){return this.trackBy?this.trackBy(_):_}}{constructor(_,n){super(),this.getChildren=_,this.options=n,this.options&&(this.trackBy=this.options.trackBy)}expandAll(){this.expansionModel.clear();const _=this.dataNodes.reduce((n,g)=>[...n,...this.getDescendants(g),g],[]);this.expansionModel.select(..._.map(n=>this._trackByValue(n)))}getDescendants(_){const n=[];return this._getDescendants(n,_),n.splice(1)}_getDescendants(_,n){_.push(n);const g=this.getChildren(n);Array.isArray(g)?g.forEach(V=>this._getDescendants(_,V)):(0,i.b)(g)&&g.pipe((0,y.q)(1),(0,d.h)(Boolean)).subscribe(V=>{for(const R of V)this._getDescendants(_,R)})}}const w=new D.OlP("CDK_TREE_NODE_OUTLET_NODE");let z=(()=>{class I{constructor(n,g){this.viewContainer=n,this._node=g}}return I.\u0275fac=function(n){return new(n||I)(D.Y36(D.s_b),D.Y36(w,8))},I.\u0275dir=D.lG2({type:I,selectors:[["","cdkTreeNodeOutlet",""]]}),I})();class U{constructor(_){this.$implicit=_}}let W=(()=>{class I{constructor(n){this.template=n}}return I.\u0275fac=function(n){return new(n||I)(D.Y36(D.Rgc))},I.\u0275dir=D.lG2({type:I,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:["cdkTreeNodeDefWhen","when"]}}),I})(),se=(()=>{class I{constructor(n,g){this._differs=n,this._changeDetectorRef=g,this._onDestroy=new u.x,this._levels=new Map,this.viewChange=new b.X({start:0,end:Number.MAX_VALUE})}get dataSource(){return this._dataSource}set dataSource(n){this._dataSource!==n&&this._switchDataSource(n)}ngOnInit(){this._dataDiffer=this._differs.find([]).create(this.trackBy)}ngOnDestroy(){this._nodeOutlet.viewContainer.clear(),this.viewChange.complete(),this._onDestroy.next(),this._onDestroy.complete(),this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null)}ngAfterContentChecked(){const n=this._nodeDefs.filter(g=>!g.when);this._defaultNodeDef=n[0],this.dataSource&&this._nodeDefs&&!this._dataSubscription&&this._observeRenderChanges()}_switchDataSource(n){this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),n||this._nodeOutlet.viewContainer.clear(),this._dataSource=n,this._nodeDefs&&this._observeRenderChanges()}_observeRenderChanges(){let n;(0,e.Z9)(this._dataSource)?n=this._dataSource.connect(this):(0,i.b)(this._dataSource)?n=this._dataSource:Array.isArray(this._dataSource)&&(n=(0,a.of)(this._dataSource)),n&&(this._dataSubscription=n.pipe((0,P.R)(this._onDestroy)).subscribe(g=>this.renderNodeChanges(g)))}renderNodeChanges(n,g=this._dataDiffer,V=this._nodeOutlet.viewContainer,R){const H=g.diff(n);!H||(H.forEachOperation(($,fe,ye)=>{if(null==$.previousIndex)this.insertNode(n[ye],ye,V,R);else if(null==ye)V.remove(fe),this._levels.delete($.item);else{const ke=V.get(fe);V.move(ke,ye)}}),this._changeDetectorRef.detectChanges())}_getNodeDef(n,g){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find(R=>R.when&&R.when(g,n))||this._defaultNodeDef}insertNode(n,g,V,R){const H=this._getNodeDef(n,g),$=new U(n);$.level=this.treeControl.getLevel?this.treeControl.getLevel(n):void 0!==R&&this._levels.has(R)?this._levels.get(R)+1:0,this._levels.set(n,$.level),(V||this._nodeOutlet.viewContainer).createEmbeddedView(H.template,$,g),J.mostRecentTreeNode&&(J.mostRecentTreeNode.data=n)}}return I.\u0275fac=function(n){return new(n||I)(D.Y36(D.ZZ4),D.Y36(D.sBO))},I.\u0275cmp=D.Xpm({type:I,selectors:[["cdk-tree"]],contentQueries:function(n,g,V){if(1&n&&D.Suo(V,W,5),2&n){let R;D.iGM(R=D.CRH())&&(g._nodeDefs=R)}},viewQuery:function(n,g){if(1&n&&D.Gf(z,7),2&n){let V;D.iGM(V=D.CRH())&&(g._nodeOutlet=V.first)}},hostAttrs:["role","tree",1,"cdk-tree"],inputs:{dataSource:"dataSource",treeControl:"treeControl",trackBy:"trackBy"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(n,g){1&n&&D.GkF(0,0)},directives:[z],encapsulation:2}),I})(),J=(()=>{class I{constructor(n,g){this._elementRef=n,this._tree=g,this._destroyed=new u.x,this._dataChanges=new u.x,I.mostRecentTreeNode=this,this.role="treeitem"}get role(){return"treeitem"}set role(n){this._elementRef.nativeElement.setAttribute("role",n)}get data(){return this._data}set data(n){n!==this._data&&(this._data=n,this._setRoleFromData(),this._dataChanges.next())}get isExpanded(){return this._tree.treeControl.isExpanded(this._data)}get level(){return this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._data):this._parentNodeAriaLevel}ngOnInit(){this._parentNodeAriaLevel=function me(I){let _=I.parentElement;for(;_&&!x(_);)_=_.parentElement;return _?_.classList.contains("cdk-nested-tree-node")?(0,T.su)(_.getAttribute("aria-level")):0:-1}(this._elementRef.nativeElement),this._elementRef.nativeElement.setAttribute("aria-level",`${this.level+1}`)}ngOnDestroy(){I.mostRecentTreeNode===this&&(I.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}focus(){this._elementRef.nativeElement.focus()}_setRoleFromData(){this.role="treeitem"}}return I.mostRecentTreeNode=null,I.\u0275fac=function(n){return new(n||I)(D.Y36(D.SBq),D.Y36(se))},I.\u0275dir=D.lG2({type:I,selectors:[["cdk-tree-node"]],hostAttrs:[1,"cdk-tree-node"],hostVars:1,hostBindings:function(n,g){2&n&&D.uIk("aria-expanded",g.isExpanded)},inputs:{role:"role"},exportAs:["cdkTreeNode"]}),I})();function x(I){const _=I.classList;return!(!(null==_?void 0:_.contains("cdk-nested-tree-node"))&&!(null==_?void 0:_.contains("cdk-tree")))}let t=(()=>{class I extends J{constructor(n,g,V){super(n,g),this._differs=V}ngAfterContentInit(){this._dataDiffer=this._differs.find([]).create(this._tree.trackBy);const n=this._tree.treeControl.getChildren(this.data);Array.isArray(n)?this.updateChildrenNodes(n):(0,i.b)(n)&&n.pipe((0,P.R)(this._destroyed)).subscribe(g=>this.updateChildrenNodes(g)),this.nodeOutlet.changes.pipe((0,P.R)(this._destroyed)).subscribe(()=>this.updateChildrenNodes())}ngOnInit(){super.ngOnInit()}ngOnDestroy(){this._clear(),super.ngOnDestroy()}updateChildrenNodes(n){const g=this._getNodeOutlet();n&&(this._children=n),g&&this._children?this._tree.renderNodeChanges(this._children,this._dataDiffer,g.viewContainer,this._data):this._dataDiffer.diff([])}_clear(){const n=this._getNodeOutlet();n&&(n.viewContainer.clear(),this._dataDiffer.diff([]))}_getNodeOutlet(){const n=this.nodeOutlet;return n&&n.find(g=>!g._node||g._node===this)}}return I.\u0275fac=function(n){return new(n||I)(D.Y36(D.SBq),D.Y36(se),D.Y36(D.ZZ4))},I.\u0275dir=D.lG2({type:I,selectors:[["cdk-nested-tree-node"]],contentQueries:function(n,g,V){if(1&n&&D.Suo(V,z,5),2&n){let R;D.iGM(R=D.CRH())&&(g.nodeOutlet=R)}},hostAttrs:[1,"cdk-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["cdkNestedTreeNode"],features:[D._Bn([{provide:J,useExisting:I},{provide:w,useExisting:I}]),D.qOj]}),I})();const r=/([A-Za-z%]+)$/;let h=(()=>{class I{constructor(n,g,V,R){this._treeNode=n,this._tree=g,this._element=V,this._dir=R,this._destroyed=new u.x,this.indentUnits="px",this._indent=40,this._setPadding(),R&&R.change.pipe((0,P.R)(this._destroyed)).subscribe(()=>this._setPadding(!0)),n._dataChanges.subscribe(()=>this._setPadding())}get level(){return this._level}set level(n){this._setLevelInput(n)}get indent(){return this._indent}set indent(n){this._setIndentInput(n)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_paddingIndent(){const n=this._treeNode.data&&this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._treeNode.data):null,g=null==this._level?n:this._level;return"number"==typeof g?`${g*this._indent}${this.indentUnits}`:null}_setPadding(n=!1){const g=this._paddingIndent();if(g!==this._currentPadding||n){const V=this._element.nativeElement,R=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",H="paddingLeft"===R?"paddingRight":"paddingLeft";V.style[R]=g||"",V.style[H]="",this._currentPadding=g}}_setLevelInput(n){this._level=(0,T.su)(n,null),this._setPadding()}_setIndentInput(n){let g=n,V="px";if("string"==typeof n){const R=n.split(r);g=R[0],V=R[1]||V}this.indentUnits=V,this._indent=(0,T.su)(g),this._setPadding()}}return I.\u0275fac=function(n){return new(n||I)(D.Y36(J),D.Y36(se),D.Y36(D.SBq),D.Y36(M.Is,8))},I.\u0275dir=D.lG2({type:I,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:["cdkTreeNodePadding","level"],indent:["cdkTreeNodePaddingIndent","indent"]}}),I})(),c=(()=>{class I{constructor(n,g){this._tree=n,this._treeNode=g,this._recursive=!1}get recursive(){return this._recursive}set recursive(n){this._recursive=(0,T.Ig)(n)}_toggle(n){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),n.stopPropagation()}}return I.\u0275fac=function(n){return new(n||I)(D.Y36(se),D.Y36(J))},I.\u0275dir=D.lG2({type:I,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(n,g){1&n&&D.NdJ("click",function(R){return g._toggle(R)})},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}}),I})(),S=(()=>{class I{}return I.\u0275fac=function(n){return new(n||I)},I.\u0275mod=D.oAB({type:I}),I.\u0275inj=D.cJS({}),I})()},9808:(He,j,p)=>{"use strict";p.d(j,{Do:()=>le,ED:()=>Hn,EM:()=>Hr,HT:()=>a,JF:()=>Wn,JJ:()=>wr,K0:()=>d,Mx:()=>Ji,NF:()=>Jn,Nd:()=>la,O5:()=>Nt,OU:()=>Nr,Ov:()=>sa,PC:()=>wi,PM:()=>ga,RF:()=>ki,S$:()=>U,Ts:()=>Rr,V_:()=>T,Ye:()=>q,b0:()=>Q,bD:()=>gr,ez:()=>mr,gd:()=>rr,i8:()=>oa,lw:()=>P,mk:()=>Wi,mr:()=>ne,n9:()=>hn,q:()=>u,rS:()=>Ta,sg:()=>Yt,tP:()=>Yi,uU:()=>na,w_:()=>y});var e=p(5e3);let i=null;function u(){return i}function a(je){i||(i=je)}class y{}const d=new e.OlP("DocumentToken");let P=(()=>{class je{historyGo(Ye){throw new Error("Not implemented")}}return je.\u0275fac=function(Ye){return new(Ye||je)},je.\u0275prov=e.Yz7({token:je,factory:function(){return function D(){return(0,e.LFG)(M)}()},providedIn:"platform"}),je})();const T=new e.OlP("Location Initialized");let M=(()=>{class je extends P{constructor(Ye){super(),this._doc=Ye,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return u().getBaseHref(this._doc)}onPopState(Ye){const Ot=u().getGlobalEventTarget(this._doc,"window");return Ot.addEventListener("popstate",Ye,!1),()=>Ot.removeEventListener("popstate",Ye)}onHashChange(Ye){const Ot=u().getGlobalEventTarget(this._doc,"window");return Ot.addEventListener("hashchange",Ye,!1),()=>Ot.removeEventListener("hashchange",Ye)}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(Ye){this.location.pathname=Ye}pushState(Ye,Ot,ri){A()?this._history.pushState(Ye,Ot,ri):this.location.hash=ri}replaceState(Ye,Ot,ri){A()?this._history.replaceState(Ye,Ot,ri):this.location.hash=ri}forward(){this._history.forward()}back(){this._history.back()}historyGo(Ye=0){this._history.go(Ye)}getState(){return this._history.state}}return je.\u0275fac=function(Ye){return new(Ye||je)(e.LFG(d))},je.\u0275prov=e.Yz7({token:je,factory:function(){return function E(){return new M((0,e.LFG)(d))}()},providedIn:"platform"}),je})();function A(){return!!window.history.pushState}function k(je,Mt){if(0==je.length)return Mt;if(0==Mt.length)return je;let Ye=0;return je.endsWith("/")&&Ye++,Mt.startsWith("/")&&Ye++,2==Ye?je+Mt.substring(1):1==Ye?je+Mt:je+"/"+Mt}function w(je){const Mt=je.match(/#|\?|$/),Ye=Mt&&Mt.index||je.length;return je.slice(0,Ye-("/"===je[Ye-1]?1:0))+je.slice(Ye)}function z(je){return je&&"?"!==je[0]?"?"+je:je}let U=(()=>{class je{historyGo(Ye){throw new Error("Not implemented")}}return je.\u0275fac=function(Ye){return new(Ye||je)},je.\u0275prov=e.Yz7({token:je,factory:function(){return function W(je){const Mt=(0,e.LFG)(d).location;return new Q((0,e.LFG)(P),Mt&&Mt.origin||"")}()},providedIn:"root"}),je})();const ne=new e.OlP("appBaseHref");let Q=(()=>{class je extends U{constructor(Ye,Ot){if(super(),this._platformLocation=Ye,this._removeListenerFns=[],null==Ot&&(Ot=this._platformLocation.getBaseHrefFromDOM()),null==Ot)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=Ot}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(Ye){this._removeListenerFns.push(this._platformLocation.onPopState(Ye),this._platformLocation.onHashChange(Ye))}getBaseHref(){return this._baseHref}prepareExternalUrl(Ye){return k(this._baseHref,Ye)}path(Ye=!1){const Ot=this._platformLocation.pathname+z(this._platformLocation.search),ri=this._platformLocation.hash;return ri&&Ye?`${Ot}${ri}`:Ot}pushState(Ye,Ot,ri,Si){const Oi=this.prepareExternalUrl(ri+z(Si));this._platformLocation.pushState(Ye,Ot,Oi)}replaceState(Ye,Ot,ri,Si){const Oi=this.prepareExternalUrl(ri+z(Si));this._platformLocation.replaceState(Ye,Ot,Oi)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(Ye=0){var Ot,ri;null===(ri=(Ot=this._platformLocation).historyGo)||void 0===ri||ri.call(Ot,Ye)}}return je.\u0275fac=function(Ye){return new(Ye||je)(e.LFG(P),e.LFG(ne,8))},je.\u0275prov=e.Yz7({token:je,factory:je.\u0275fac}),je})(),le=(()=>{class je extends U{constructor(Ye,Ot){super(),this._platformLocation=Ye,this._baseHref="",this._removeListenerFns=[],null!=Ot&&(this._baseHref=Ot)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(Ye){this._removeListenerFns.push(this._platformLocation.onPopState(Ye),this._platformLocation.onHashChange(Ye))}getBaseHref(){return this._baseHref}path(Ye=!1){let Ot=this._platformLocation.hash;return null==Ot&&(Ot="#"),Ot.length>0?Ot.substring(1):Ot}prepareExternalUrl(Ye){const Ot=k(this._baseHref,Ye);return Ot.length>0?"#"+Ot:Ot}pushState(Ye,Ot,ri,Si){let Oi=this.prepareExternalUrl(ri+z(Si));0==Oi.length&&(Oi=this._platformLocation.pathname),this._platformLocation.pushState(Ye,Ot,Oi)}replaceState(Ye,Ot,ri,Si){let Oi=this.prepareExternalUrl(ri+z(Si));0==Oi.length&&(Oi=this._platformLocation.pathname),this._platformLocation.replaceState(Ye,Ot,Oi)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(Ye=0){var Ot,ri;null===(ri=(Ot=this._platformLocation).historyGo)||void 0===ri||ri.call(Ot,Ye)}}return je.\u0275fac=function(Ye){return new(Ye||je)(e.LFG(P),e.LFG(ne,8))},je.\u0275prov=e.Yz7({token:je,factory:je.\u0275fac}),je})(),q=(()=>{class je{constructor(Ye,Ot){this._subject=new e.vpe,this._urlChangeListeners=[],this._platformStrategy=Ye;const ri=this._platformStrategy.getBaseHref();this._platformLocation=Ot,this._baseHref=w(J(ri)),this._platformStrategy.onPopState(Si=>{this._subject.emit({url:this.path(!0),pop:!0,state:Si.state,type:Si.type})})}path(Ye=!1){return this.normalize(this._platformStrategy.path(Ye))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(Ye,Ot=""){return this.path()==this.normalize(Ye+z(Ot))}normalize(Ye){return je.stripTrailingSlash(function se(je,Mt){return je&&Mt.startsWith(je)?Mt.substring(je.length):Mt}(this._baseHref,J(Ye)))}prepareExternalUrl(Ye){return Ye&&"/"!==Ye[0]&&(Ye="/"+Ye),this._platformStrategy.prepareExternalUrl(Ye)}go(Ye,Ot="",ri=null){this._platformStrategy.pushState(ri,"",Ye,Ot),this._notifyUrlChangeListeners(this.prepareExternalUrl(Ye+z(Ot)),ri)}replaceState(Ye,Ot="",ri=null){this._platformStrategy.replaceState(ri,"",Ye,Ot),this._notifyUrlChangeListeners(this.prepareExternalUrl(Ye+z(Ot)),ri)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(Ye=0){var Ot,ri;null===(ri=(Ot=this._platformStrategy).historyGo)||void 0===ri||ri.call(Ot,Ye)}onUrlChange(Ye){this._urlChangeListeners.push(Ye),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(Ot=>{this._notifyUrlChangeListeners(Ot.url,Ot.state)}))}_notifyUrlChangeListeners(Ye="",Ot){this._urlChangeListeners.forEach(ri=>ri(Ye,Ot))}subscribe(Ye,Ot,ri){return this._subject.subscribe({next:Ye,error:Ot,complete:ri})}}return je.normalizeQueryParams=z,je.joinWithSlash=k,je.stripTrailingSlash=w,je.\u0275fac=function(Ye){return new(Ye||je)(e.LFG(U),e.LFG(P))},je.\u0275prov=e.Yz7({token:je,factory:function(){return function ie(){return new q((0,e.LFG)(U),(0,e.LFG)(P))}()},providedIn:"root"}),je})();function J(je){return je.replace(/\/index.html$/,"")}var x=(()=>((x=x||{})[x.Decimal=0]="Decimal",x[x.Percent=1]="Percent",x[x.Currency=2]="Currency",x[x.Scientific=3]="Scientific",x))(),r=(()=>((r=r||{})[r.Format=0]="Format",r[r.Standalone=1]="Standalone",r))(),h=(()=>((h=h||{})[h.Narrow=0]="Narrow",h[h.Abbreviated=1]="Abbreviated",h[h.Wide=2]="Wide",h[h.Short=3]="Short",h))(),c=(()=>((c=c||{})[c.Short=0]="Short",c[c.Medium=1]="Medium",c[c.Long=2]="Long",c[c.Full=3]="Full",c))(),C=(()=>((C=C||{})[C.Decimal=0]="Decimal",C[C.Group=1]="Group",C[C.List=2]="List",C[C.PercentSign=3]="PercentSign",C[C.PlusSign=4]="PlusSign",C[C.MinusSign=5]="MinusSign",C[C.Exponential=6]="Exponential",C[C.SuperscriptingExponent=7]="SuperscriptingExponent",C[C.PerMille=8]="PerMille",C[C.Infinity=9]="Infinity",C[C.NaN=10]="NaN",C[C.TimeSeparator=11]="TimeSeparator",C[C.CurrencyDecimal=12]="CurrencyDecimal",C[C.CurrencyGroup=13]="CurrencyGroup",C))();function $(je,Mt){return Te((0,e.cg1)(je)[e.wAp.DateFormat],Mt)}function fe(je,Mt){return Te((0,e.cg1)(je)[e.wAp.TimeFormat],Mt)}function ye(je,Mt){return Te((0,e.cg1)(je)[e.wAp.DateTimeFormat],Mt)}function ke(je,Mt){const Ye=(0,e.cg1)(je),Ot=Ye[e.wAp.NumberSymbols][Mt];if(void 0===Ot){if(Mt===C.CurrencyDecimal)return Ye[e.wAp.NumberSymbols][C.Decimal];if(Mt===C.CurrencyGroup)return Ye[e.wAp.NumberSymbols][C.Group]}return Ot}function ot(je){if(!je[e.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${je[e.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Te(je,Mt){for(let Ye=Mt;Ye>-1;Ye--)if(void 0!==je[Ye])return je[Ye];throw new Error("Locale data API: locale data undefined")}function xe(je){const[Mt,Ye]=je.split(":");return{hours:+Mt,minutes:+Ye}}const ve=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Le={},lt=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var ht=(()=>((ht=ht||{})[ht.Short=0]="Short",ht[ht.ShortGMT=1]="ShortGMT",ht[ht.Long=2]="Long",ht[ht.Extended=3]="Extended",ht))(),Tt=(()=>((Tt=Tt||{})[Tt.FullYear=0]="FullYear",Tt[Tt.Month=1]="Month",Tt[Tt.Date=2]="Date",Tt[Tt.Hours=3]="Hours",Tt[Tt.Minutes=4]="Minutes",Tt[Tt.Seconds=5]="Seconds",Tt[Tt.FractionalSeconds=6]="FractionalSeconds",Tt[Tt.Day=7]="Day",Tt))(),hi=(()=>((hi=hi||{})[hi.DayPeriods=0]="DayPeriods",hi[hi.Days=1]="Days",hi[hi.Months=2]="Months",hi[hi.Eras=3]="Eras",hi))();function jt(je,Mt,Ye,Ot){let ri=function Fe(je){if(at(je))return je;if("number"==typeof je&&!isNaN(je))return new Date(je);if("string"==typeof je){if(je=je.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(je)){const[ri,Si=1,Oi=1]=je.split("-").map(rn=>+rn);return Gt(ri,Si-1,Oi)}const Ye=parseFloat(je);if(!isNaN(je-Ye))return new Date(Ye);let Ot;if(Ot=je.match(ve))return function rt(je){const Mt=new Date(0);let Ye=0,Ot=0;const ri=je[8]?Mt.setUTCFullYear:Mt.setFullYear,Si=je[8]?Mt.setUTCHours:Mt.setHours;je[9]&&(Ye=Number(je[9]+je[10]),Ot=Number(je[9]+je[11])),ri.call(Mt,Number(je[1]),Number(je[2])-1,Number(je[3]));const Oi=Number(je[4]||0)-Ye,rn=Number(je[5]||0)-Ot,Yn=Number(je[6]||0),At=Math.floor(1e3*parseFloat("0."+(je[7]||0)));return Si.call(Mt,Oi,rn,Yn,At),Mt}(Ot)}const Mt=new Date(je);if(!at(Mt))throw new Error(`Unable to convert "${je}" into a date`);return Mt}(je);Mt=di(Ye,Mt)||Mt;let rn,Oi=[];for(;Mt;){if(rn=lt.exec(Mt),!rn){Oi.push(Mt);break}{Oi=Oi.concat(rn.slice(1));const oi=Oi.pop();if(!oi)break;Mt=oi}}let Yn=ri.getTimezoneOffset();Ot&&(Yn=qe(Ot,Yn),ri=function we(je,Mt,Ye){const Ot=Ye?-1:1,ri=je.getTimezoneOffset();return function Ze(je,Mt){return(je=new Date(je.getTime())).setMinutes(je.getMinutes()+Mt),je}(je,Ot*(qe(Mt,ri)-ri))}(ri,Ot,!0));let At="";return Oi.forEach(oi=>{const mt=function Re(je){if(et[je])return et[je];let Mt;switch(je){case"G":case"GG":case"GGG":Mt=ei(hi.Eras,h.Abbreviated);break;case"GGGG":Mt=ei(hi.Eras,h.Wide);break;case"GGGGG":Mt=ei(hi.Eras,h.Narrow);break;case"y":Mt=Qe(Tt.FullYear,1,0,!1,!0);break;case"yy":Mt=Qe(Tt.FullYear,2,0,!0,!0);break;case"yyy":Mt=Qe(Tt.FullYear,3,0,!1,!0);break;case"yyyy":Mt=Qe(Tt.FullYear,4,0,!1,!0);break;case"Y":Mt=Rt(1);break;case"YY":Mt=Rt(2,!0);break;case"YYY":Mt=Rt(3);break;case"YYYY":Mt=Rt(4);break;case"M":case"L":Mt=Qe(Tt.Month,1,1);break;case"MM":case"LL":Mt=Qe(Tt.Month,2,1);break;case"MMM":Mt=ei(hi.Months,h.Abbreviated);break;case"MMMM":Mt=ei(hi.Months,h.Wide);break;case"MMMMM":Mt=ei(hi.Months,h.Narrow);break;case"LLL":Mt=ei(hi.Months,h.Abbreviated,r.Standalone);break;case"LLLL":Mt=ei(hi.Months,h.Wide,r.Standalone);break;case"LLLLL":Mt=ei(hi.Months,h.Narrow,r.Standalone);break;case"w":Mt=ft(1);break;case"ww":Mt=ft(2);break;case"W":Mt=ft(1,!0);break;case"d":Mt=Qe(Tt.Date,1);break;case"dd":Mt=Qe(Tt.Date,2);break;case"c":case"cc":Mt=Qe(Tt.Day,1);break;case"ccc":Mt=ei(hi.Days,h.Abbreviated,r.Standalone);break;case"cccc":Mt=ei(hi.Days,h.Wide,r.Standalone);break;case"ccccc":Mt=ei(hi.Days,h.Narrow,r.Standalone);break;case"cccccc":Mt=ei(hi.Days,h.Short,r.Standalone);break;case"E":case"EE":case"EEE":Mt=ei(hi.Days,h.Abbreviated);break;case"EEEE":Mt=ei(hi.Days,h.Wide);break;case"EEEEE":Mt=ei(hi.Days,h.Narrow);break;case"EEEEEE":Mt=ei(hi.Days,h.Short);break;case"a":case"aa":case"aaa":Mt=ei(hi.DayPeriods,h.Abbreviated);break;case"aaaa":Mt=ei(hi.DayPeriods,h.Wide);break;case"aaaaa":Mt=ei(hi.DayPeriods,h.Narrow);break;case"b":case"bb":case"bbb":Mt=ei(hi.DayPeriods,h.Abbreviated,r.Standalone,!0);break;case"bbbb":Mt=ei(hi.DayPeriods,h.Wide,r.Standalone,!0);break;case"bbbbb":Mt=ei(hi.DayPeriods,h.Narrow,r.Standalone,!0);break;case"B":case"BB":case"BBB":Mt=ei(hi.DayPeriods,h.Abbreviated,r.Format,!0);break;case"BBBB":Mt=ei(hi.DayPeriods,h.Wide,r.Format,!0);break;case"BBBBB":Mt=ei(hi.DayPeriods,h.Narrow,r.Format,!0);break;case"h":Mt=Qe(Tt.Hours,1,-12);break;case"hh":Mt=Qe(Tt.Hours,2,-12);break;case"H":Mt=Qe(Tt.Hours,1);break;case"HH":Mt=Qe(Tt.Hours,2);break;case"m":Mt=Qe(Tt.Minutes,1);break;case"mm":Mt=Qe(Tt.Minutes,2);break;case"s":Mt=Qe(Tt.Seconds,1);break;case"ss":Mt=Qe(Tt.Seconds,2);break;case"S":Mt=Qe(Tt.FractionalSeconds,1);break;case"SS":Mt=Qe(Tt.FractionalSeconds,2);break;case"SSS":Mt=Qe(Tt.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":Mt=Pe(ht.Short);break;case"ZZZZZ":Mt=Pe(ht.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":Mt=Pe(ht.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":Mt=Pe(ht.Long);break;default:return null}return et[je]=Mt,Mt}(oi);At+=mt?mt(ri,Ye,Yn):"''"===oi?"'":oi.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),At}function Gt(je,Mt,Ye){const Ot=new Date(0);return Ot.setFullYear(je,Mt,Ye),Ot.setHours(0,0,0),Ot}function di(je,Mt){const Ye=function I(je){return(0,e.cg1)(je)[e.wAp.LocaleId]}(je);if(Le[Ye]=Le[Ye]||{},Le[Ye][Mt])return Le[Ye][Mt];let Ot="";switch(Mt){case"shortDate":Ot=$(je,c.Short);break;case"mediumDate":Ot=$(je,c.Medium);break;case"longDate":Ot=$(je,c.Long);break;case"fullDate":Ot=$(je,c.Full);break;case"shortTime":Ot=fe(je,c.Short);break;case"mediumTime":Ot=fe(je,c.Medium);break;case"longTime":Ot=fe(je,c.Long);break;case"fullTime":Ot=fe(je,c.Full);break;case"short":const ri=di(je,"shortTime"),Si=di(je,"shortDate");Ot=vt(ye(je,c.Short),[ri,Si]);break;case"medium":const Oi=di(je,"mediumTime"),rn=di(je,"mediumDate");Ot=vt(ye(je,c.Medium),[Oi,rn]);break;case"long":const Yn=di(je,"longTime"),At=di(je,"longDate");Ot=vt(ye(je,c.Long),[Yn,At]);break;case"full":const oi=di(je,"fullTime"),mt=di(je,"fullDate");Ot=vt(ye(je,c.Full),[oi,mt])}return Ot&&(Le[Ye][Mt]=Ot),Ot}function vt(je,Mt){return Mt&&(je=je.replace(/\{([^}]+)}/g,function(Ye,Ot){return null!=Mt&&Ot in Mt?Mt[Ot]:Ye})),je}function kt(je,Mt,Ye="-",Ot,ri){let Si="";(je<0||ri&&je<=0)&&(ri?je=1-je:(je=-je,Si=Ye));let Oi=String(je);for(;Oi.length<Mt;)Oi="0"+Oi;return Ot&&(Oi=Oi.substr(Oi.length-Mt)),Si+Oi}function Qe(je,Mt,Ye=0,Ot=!1,ri=!1){return function(Si,Oi){let rn=function _t(je,Mt){switch(je){case Tt.FullYear:return Mt.getFullYear();case Tt.Month:return Mt.getMonth();case Tt.Date:return Mt.getDate();case Tt.Hours:return Mt.getHours();case Tt.Minutes:return Mt.getMinutes();case Tt.Seconds:return Mt.getSeconds();case Tt.FractionalSeconds:return Mt.getMilliseconds();case Tt.Day:return Mt.getDay();default:throw new Error(`Unknown DateType value "${je}".`)}}(je,Si);if((Ye>0||rn>-Ye)&&(rn+=Ye),je===Tt.Hours)0===rn&&-12===Ye&&(rn=12);else if(je===Tt.FractionalSeconds)return function gt(je,Mt){return kt(je,3).substr(0,Mt)}(rn,Mt);const Yn=ke(Oi,C.MinusSign);return kt(rn,Mt,Yn,Ot,ri)}}function ei(je,Mt,Ye=r.Format,Ot=!1){return function(ri,Si){return function Zt(je,Mt,Ye,Ot,ri,Si){switch(Ye){case hi.Months:return function g(je,Mt,Ye){const Ot=(0,e.cg1)(je),Si=Te([Ot[e.wAp.MonthsFormat],Ot[e.wAp.MonthsStandalone]],Mt);return Te(Si,Ye)}(Mt,ri,Ot)[je.getMonth()];case hi.Days:return function n(je,Mt,Ye){const Ot=(0,e.cg1)(je),Si=Te([Ot[e.wAp.DaysFormat],Ot[e.wAp.DaysStandalone]],Mt);return Te(Si,Ye)}(Mt,ri,Ot)[je.getDay()];case hi.DayPeriods:const Oi=je.getHours(),rn=je.getMinutes();if(Si){const At=function Ie(je){const Mt=(0,e.cg1)(je);return ot(Mt),(Mt[e.wAp.ExtraData][2]||[]).map(Ot=>"string"==typeof Ot?xe(Ot):[xe(Ot[0]),xe(Ot[1])])}(Mt),oi=function Ae(je,Mt,Ye){const Ot=(0,e.cg1)(je);ot(Ot);const Si=Te([Ot[e.wAp.ExtraData][0],Ot[e.wAp.ExtraData][1]],Mt)||[];return Te(Si,Ye)||[]}(Mt,ri,Ot),mt=At.findIndex($t=>{if(Array.isArray($t)){const[Ai,ji]=$t,Ke=Oi>=Ai.hours&&rn>=Ai.minutes,Be=Oi<ji.hours||Oi===ji.hours&&rn<ji.minutes;if(Ai.hours<ji.hours){if(Ke&&Be)return!0}else if(Ke||Be)return!0}else if($t.hours===Oi&&$t.minutes===rn)return!0;return!1});if(-1!==mt)return oi[mt]}return function _(je,Mt,Ye){const Ot=(0,e.cg1)(je),Si=Te([Ot[e.wAp.DayPeriodsFormat],Ot[e.wAp.DayPeriodsStandalone]],Mt);return Te(Si,Ye)}(Mt,ri,Ot)[Oi<12?0:1];case hi.Eras:return function V(je,Mt){return Te((0,e.cg1)(je)[e.wAp.Eras],Mt)}(Mt,Ot)[je.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${Ye}`)}}(ri,Si,je,Mt,Ye,Ot)}}function Pe(je){return function(Mt,Ye,Ot){const ri=-1*Ot,Si=ke(Ye,C.MinusSign),Oi=ri>0?Math.floor(ri/60):Math.ceil(ri/60);switch(je){case ht.Short:return(ri>=0?"+":"")+kt(Oi,2,Si)+kt(Math.abs(ri%60),2,Si);case ht.ShortGMT:return"GMT"+(ri>=0?"+":"")+kt(Oi,1,Si);case ht.Long:return"GMT"+(ri>=0?"+":"")+kt(Oi,2,Si)+":"+kt(Math.abs(ri%60),2,Si);case ht.Extended:return 0===Ot?"Z":(ri>=0?"+":"")+kt(Oi,2,Si)+":"+kt(Math.abs(ri%60),2,Si);default:throw new Error(`Unknown zone width "${je}"`)}}}function ut(je){return Gt(je.getFullYear(),je.getMonth(),je.getDate()+(4-je.getDay()))}function ft(je,Mt=!1){return function(Ye,Ot){let ri;if(Mt){const Si=new Date(Ye.getFullYear(),Ye.getMonth(),1).getDay()-1,Oi=Ye.getDate();ri=1+Math.floor((Oi+Si)/7)}else{const Si=ut(Ye),Oi=function Me(je){const Mt=Gt(je,0,1).getDay();return Gt(je,0,1+(Mt<=4?4:11)-Mt)}(Si.getFullYear()),rn=Si.getTime()-Oi.getTime();ri=1+Math.round(rn/6048e5)}return kt(ri,je,ke(Ot,C.MinusSign))}}function Rt(je,Mt=!1){return function(Ye,Ot){return kt(ut(Ye).getFullYear(),je,ke(Ot,C.MinusSign),Mt)}}const et={};function qe(je,Mt){je=je.replace(/:/g,"");const Ye=Date.parse("Jan 01, 1970 00:00:00 "+je)/6e4;return isNaN(Ye)?Mt:Ye}function at(je){return je instanceof Date&&!isNaN(je.valueOf())}const yt=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function $e(je){const Mt=parseInt(je);if(isNaN(Mt))throw new Error("Invalid integer literal when parsing "+je);return Mt}function Ji(je,Mt){Mt=encodeURIComponent(Mt);for(const Ye of je.split(";")){const Ot=Ye.indexOf("="),[ri,Si]=-1==Ot?[Ye,""]:[Ye.slice(0,Ot),Ye.slice(Ot+1)];if(ri.trim()===Mt)return decodeURIComponent(Si)}return null}let Wi=(()=>{class je{constructor(Ye,Ot,ri,Si){this._iterableDiffers=Ye,this._keyValueDiffers=Ot,this._ngEl=ri,this._renderer=Si,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(Ye){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof Ye?Ye.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(Ye){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof Ye?Ye.split(/\s+/):Ye,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 Ye=this._iterableDiffer.diff(this._rawClass);Ye&&this._applyIterableChanges(Ye)}else if(this._keyValueDiffer){const Ye=this._keyValueDiffer.diff(this._rawClass);Ye&&this._applyKeyValueChanges(Ye)}}_applyKeyValueChanges(Ye){Ye.forEachAddedItem(Ot=>this._toggleClass(Ot.key,Ot.currentValue)),Ye.forEachChangedItem(Ot=>this._toggleClass(Ot.key,Ot.currentValue)),Ye.forEachRemovedItem(Ot=>{Ot.previousValue&&this._toggleClass(Ot.key,!1)})}_applyIterableChanges(Ye){Ye.forEachAddedItem(Ot=>{if("string"!=typeof Ot.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,e.AaK)(Ot.item)}`);this._toggleClass(Ot.item,!0)}),Ye.forEachRemovedItem(Ot=>this._toggleClass(Ot.item,!1))}_applyClasses(Ye){Ye&&(Array.isArray(Ye)||Ye instanceof Set?Ye.forEach(Ot=>this._toggleClass(Ot,!0)):Object.keys(Ye).forEach(Ot=>this._toggleClass(Ot,!!Ye[Ot])))}_removeClasses(Ye){Ye&&(Array.isArray(Ye)||Ye instanceof Set?Ye.forEach(Ot=>this._toggleClass(Ot,!1)):Object.keys(Ye).forEach(Ot=>this._toggleClass(Ot,!1)))}_toggleClass(Ye,Ot){(Ye=Ye.trim())&&Ye.split(/\s+/g).forEach(ri=>{Ot?this._renderer.addClass(this._ngEl.nativeElement,ri):this._renderer.removeClass(this._ngEl.nativeElement,ri)})}}return je.\u0275fac=function(Ye){return new(Ye||je)(e.Y36(e.ZZ4),e.Y36(e.aQg),e.Y36(e.SBq),e.Y36(e.Qsj))},je.\u0275dir=e.lG2({type:je,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),je})();class mn{constructor(Mt,Ye,Ot,ri){this.$implicit=Mt,this.ngForOf=Ye,this.index=Ot,this.count=ri}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Yt=(()=>{class je{constructor(Ye,Ot,ri){this._viewContainer=Ye,this._template=Ot,this._differs=ri,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(Ye){this._ngForOf=Ye,this._ngForOfDirty=!0}set ngForTrackBy(Ye){this._trackByFn=Ye}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(Ye){Ye&&(this._template=Ye)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const Ye=this._ngForOf;!this._differ&&Ye&&(this._differ=this._differs.find(Ye).create(this.ngForTrackBy))}if(this._differ){const Ye=this._differ.diff(this._ngForOf);Ye&&this._applyChanges(Ye)}}_applyChanges(Ye){const Ot=this._viewContainer;Ye.forEachOperation((ri,Si,Oi)=>{if(null==ri.previousIndex)Ot.createEmbeddedView(this._template,new mn(ri.item,this._ngForOf,-1,-1),null===Oi?void 0:Oi);else if(null==Oi)Ot.remove(null===Si?void 0:Si);else if(null!==Si){const rn=Ot.get(Si);Ot.move(rn,Oi),Mi(rn,ri)}});for(let ri=0,Si=Ot.length;ri<Si;ri++){const rn=Ot.get(ri).context;rn.index=ri,rn.count=Si,rn.ngForOf=this._ngForOf}Ye.forEachIdentityChange(ri=>{Mi(Ot.get(ri.currentIndex),ri)})}static ngTemplateContextGuard(Ye,Ot){return!0}}return je.\u0275fac=function(Ye){return new(Ye||je)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(e.ZZ4))},je.\u0275dir=e.lG2({type:je,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),je})();function Mi(je,Mt){je.context.$implicit=Mt.item}let Nt=(()=>{class je{constructor(Ye,Ot){this._viewContainer=Ye,this._context=new Kt,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=Ot}set ngIf(Ye){this._context.$implicit=this._context.ngIf=Ye,this._updateView()}set ngIfThen(Ye){pi("ngIfThen",Ye),this._thenTemplateRef=Ye,this._thenViewRef=null,this._updateView()}set ngIfElse(Ye){pi("ngIfElse",Ye),this._elseTemplateRef=Ye,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(Ye,Ot){return!0}}return je.\u0275fac=function(Ye){return new(Ye||je)(e.Y36(e.s_b),e.Y36(e.Rgc))},je.\u0275dir=e.lG2({type:je,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),je})();class Kt{constructor(){this.$implicit=null,this.ngIf=null}}function pi(je,Mt){if(Mt&&!Mt.createEmbeddedView)throw new Error(`${je} must be a TemplateRef, but received '${(0,e.AaK)(Mt)}'.`)}class Ri{constructor(Mt,Ye){this._viewContainerRef=Mt,this._templateRef=Ye,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(Mt){Mt&&!this._created?this.create():!Mt&&this._created&&this.destroy()}}let ki=(()=>{class je{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(Ye){this._ngSwitch=Ye,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(Ye){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(Ye)}_matchCase(Ye){const Ot=Ye==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||Ot,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),Ot}_updateDefaultCases(Ye){if(this._defaultViews&&Ye!==this._defaultUsed){this._defaultUsed=Ye;for(let Ot=0;Ot<this._defaultViews.length;Ot++)this._defaultViews[Ot].enforceState(Ye)}}}return je.\u0275fac=function(Ye){return new(Ye||je)},je.\u0275dir=e.lG2({type:je,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),je})(),hn=(()=>{class je{constructor(Ye,Ot,ri){this.ngSwitch=ri,ri._addCase(),this._view=new Ri(Ye,Ot)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return je.\u0275fac=function(Ye){return new(Ye||je)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(ki,9))},je.\u0275dir=e.lG2({type:je,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),je})(),Hn=(()=>{class je{constructor(Ye,Ot,ri){ri._addDefault(new Ri(Ye,Ot))}}return je.\u0275fac=function(Ye){return new(Ye||je)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(ki,9))},je.\u0275dir=e.lG2({type:je,selectors:[["","ngSwitchDefault",""]]}),je})(),wi=(()=>{class je{constructor(Ye,Ot,ri){this._ngEl=Ye,this._differs=Ot,this._renderer=ri,this._ngStyle=null,this._differ=null}set ngStyle(Ye){this._ngStyle=Ye,!this._differ&&Ye&&(this._differ=this._differs.find(Ye).create())}ngDoCheck(){if(this._differ){const Ye=this._differ.diff(this._ngStyle);Ye&&this._applyChanges(Ye)}}_setStyle(Ye,Ot){const[ri,Si]=Ye.split(".");null!=(Ot=null!=Ot&&Si?`${Ot}${Si}`:Ot)?this._renderer.setStyle(this._ngEl.nativeElement,ri,Ot):this._renderer.removeStyle(this._ngEl.nativeElement,ri)}_applyChanges(Ye){Ye.forEachRemovedItem(Ot=>this._setStyle(Ot.key,null)),Ye.forEachAddedItem(Ot=>this._setStyle(Ot.key,Ot.currentValue)),Ye.forEachChangedItem(Ot=>this._setStyle(Ot.key,Ot.currentValue))}}return je.\u0275fac=function(Ye){return new(Ye||je)(e.Y36(e.SBq),e.Y36(e.aQg),e.Y36(e.Qsj))},je.\u0275dir=e.lG2({type:je,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),je})(),Yi=(()=>{class je{constructor(Ye){this._viewContainerRef=Ye,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(Ye){if(Ye.ngTemplateOutlet){const Ot=this._viewContainerRef;this._viewRef&&Ot.remove(Ot.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?Ot.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&Ye.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return je.\u0275fac=function(Ye){return new(Ye||je)(e.Y36(e.s_b))},je.\u0275dir=e.lG2({type:je,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[e.TTD]}),je})();function Gn(je,Mt){return new e.vHH(2100,"")}class ar{createSubscription(Mt,Ye){return Mt.subscribe({next:Ye,error:Ot=>{throw Ot}})}dispose(Mt){Mt.unsubscribe()}onDestroy(Mt){Mt.unsubscribe()}}class kr{createSubscription(Mt,Ye){return Mt.then(Ye,Ot=>{throw Ot})}dispose(Mt){}onDestroy(Mt){}}const Pr=new kr,ia=new ar;let sa=(()=>{class je{constructor(Ye){this._ref=Ye,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(Ye){return this._obj?Ye!==this._obj?(this._dispose(),this.transform(Ye)):this._latestValue:(Ye&&this._subscribe(Ye),this._latestValue)}_subscribe(Ye){this._obj=Ye,this._strategy=this._selectStrategy(Ye),this._subscription=this._strategy.createSubscription(Ye,Ot=>this._updateLatestValue(Ye,Ot))}_selectStrategy(Ye){if((0,e.QGY)(Ye))return Pr;if((0,e.F4k)(Ye))return ia;throw Gn()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(Ye,Ot){Ye===this._obj&&(this._latestValue=Ot,this._ref.markForCheck())}}return je.\u0275fac=function(Ye){return new(Ye||je)(e.Y36(e.sBO,16))},je.\u0275pipe=e.Yjl({name:"async",type:je,pure:!1}),je})(),oa=(()=>{class je{transform(Ye){if(null==Ye)return null;if("string"!=typeof Ye)throw Gn();return Ye.toLowerCase()}}return je.\u0275fac=function(Ye){return new(Ye||je)},je.\u0275pipe=e.Yjl({name:"lowercase",type:je,pure:!0}),je})();const La=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g;let Ta=(()=>{class je{transform(Ye){if(null==Ye)return null;if("string"!=typeof Ye)throw Gn();return Ye.replace(La,Ot=>Ot[0].toUpperCase()+Ot.substr(1).toLowerCase())}}return je.\u0275fac=function(Ye){return new(Ye||je)},je.\u0275pipe=e.Yjl({name:"titlecase",type:je,pure:!0}),je})(),rr=(()=>{class je{transform(Ye){if(null==Ye)return null;if("string"!=typeof Ye)throw Gn();return Ye.toUpperCase()}}return je.\u0275fac=function(Ye){return new(Ye||je)},je.\u0275pipe=e.Yjl({name:"uppercase",type:je,pure:!0}),je})();const Yr=new e.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let na=(()=>{class je{constructor(Ye,Ot){this.locale=Ye,this.defaultTimezone=Ot}transform(Ye,Ot="mediumDate",ri,Si){var Oi;if(null==Ye||""===Ye||Ye!=Ye)return null;try{return jt(Ye,Ot,Si||this.locale,null!==(Oi=null!=ri?ri:this.defaultTimezone)&&void 0!==Oi?Oi:void 0)}catch(rn){throw Gn()}}}return je.\u0275fac=function(Ye){return new(Ye||je)(e.Y36(e.soG,16),e.Y36(Yr,24))},je.\u0275pipe=e.Yjl({name:"date",type:je,pure:!0}),je})(),Rr=(()=>{class je{transform(Ye){return JSON.stringify(Ye,null,2)}}return je.\u0275fac=function(Ye){return new(Ye||je)},je.\u0275pipe=e.Yjl({name:"json",type:je,pure:!1}),je})(),la=(()=>{class je{constructor(Ye){this.differs=Ye,this.keyValues=[],this.compareFn=tr}transform(Ye,Ot=tr){if(!Ye||!(Ye instanceof Map)&&"object"!=typeof Ye)return null;this.differ||(this.differ=this.differs.find(Ye).create());const ri=this.differ.diff(Ye),Si=Ot!==this.compareFn;return ri&&(this.keyValues=[],ri.forEachItem(Oi=>{this.keyValues.push(function Xn(je,Mt){return{key:je,value:Mt}}(Oi.key,Oi.currentValue))})),(ri||Si)&&(this.keyValues.sort(Ot),this.compareFn=Ot),this.keyValues}}return je.\u0275fac=function(Ye){return new(Ye||je)(e.Y36(e.aQg,16))},je.\u0275pipe=e.Yjl({name:"keyvalue",type:je,pure:!1}),je})();function tr(je,Mt){const Ye=je.key,Ot=Mt.key;if(Ye===Ot)return 0;if(void 0===Ye)return 1;if(void 0===Ot)return-1;if(null===Ye)return 1;if(null===Ot)return-1;if("string"==typeof Ye&&"string"==typeof Ot)return Ye<Ot?-1:1;if("number"==typeof Ye&&"number"==typeof Ot)return Ye-Ot;if("boolean"==typeof Ye&&"boolean"==typeof Ot)return Ye<Ot?-1:1;const ri=String(Ye),Si=String(Ot);return ri==Si?0:ri<Si?-1:1}let wr=(()=>{class je{constructor(Ye){this._locale=Ye}transform(Ye,Ot,ri){if(!function jr(je){return!(null==je||""===je||je!=je)}(Ye))return null;ri=ri||this._locale;try{return function Ft(je,Mt,Ye){return function Bi(je,Mt,Ye,Ot,ri,Si,Oi=!1){let rn="",Yn=!1;if(isFinite(je)){let At=function It(je){let Ot,ri,Si,Oi,rn,Mt=Math.abs(je)+"",Ye=0;for((ri=Mt.indexOf("."))>-1&&(Mt=Mt.replace(".","")),(Si=Mt.search(/e/i))>0?(ri<0&&(ri=Si),ri+=+Mt.slice(Si+1),Mt=Mt.substring(0,Si)):ri<0&&(ri=Mt.length),Si=0;"0"===Mt.charAt(Si);Si++);if(Si===(rn=Mt.length))Ot=[0],ri=1;else{for(rn--;"0"===Mt.charAt(rn);)rn--;for(ri-=Si,Ot=[],Oi=0;Si<=rn;Si++,Oi++)Ot[Oi]=Number(Mt.charAt(Si))}return ri>22&&(Ot=Ot.splice(0,21),Ye=ri-1,ri=1),{digits:Ot,exponent:Ye,integerLen:ri}}(je);Oi&&(At=function it(je){if(0===je.digits[0])return je;const Mt=je.digits.length-je.integerLen;return je.exponent?je.exponent+=2:(0===Mt?je.digits.push(0,0):1===Mt&&je.digits.push(0),je.integerLen+=2),je}(At));let oi=Mt.minInt,mt=Mt.minFrac,$t=Mt.maxFrac;if(Si){const Lt=Si.match(yt);if(null===Lt)throw new Error(`${Si} is not a valid digit info`);const vi=Lt[1],$i=Lt[3],Nn=Lt[5];null!=vi&&(oi=$e(vi)),null!=$i&&(mt=$e($i)),null!=Nn?$t=$e(Nn):null!=$i&&mt>$t&&($t=mt)}!function de(je,Mt,Ye){if(Mt>Ye)throw new Error(`The minimum number of digits after fraction (${Mt}) is higher than the maximum (${Ye}).`);let Ot=je.digits,ri=Ot.length-je.integerLen;const Si=Math.min(Math.max(Mt,ri),Ye);let Oi=Si+je.integerLen,rn=Ot[Oi];if(Oi>0){Ot.splice(Math.max(je.integerLen,Oi));for(let mt=Oi;mt<Ot.length;mt++)Ot[mt]=0}else{ri=Math.max(0,ri),je.integerLen=1,Ot.length=Math.max(1,Oi=Si+1),Ot[0]=0;for(let mt=1;mt<Oi;mt++)Ot[mt]=0}if(rn>=5)if(Oi-1<0){for(let mt=0;mt>Oi;mt--)Ot.unshift(0),je.integerLen++;Ot.unshift(1),je.integerLen++}else Ot[Oi-1]++;for(;ri<Math.max(0,Si);ri++)Ot.push(0);let Yn=0!==Si;const At=Mt+je.integerLen,oi=Ot.reduceRight(function(mt,$t,Ai,ji){return ji[Ai]=($t+=mt)<10?$t:$t-10,Yn&&(0===ji[Ai]&&Ai>=At?ji.pop():Yn=!1),$t>=10?1:0},0);oi&&(Ot.unshift(oi),je.integerLen++)}(At,mt,$t);let Ai=At.digits,ji=At.integerLen;const Ke=At.exponent;let Be=[];for(Yn=Ai.every(Lt=>!Lt);ji<oi;ji++)Ai.unshift(0);for(;ji<0;ji++)Ai.unshift(0);ji>0?Be=Ai.splice(ji,Ai.length):(Be=Ai,Ai=[0]);const Ne=[];for(Ai.length>=Mt.lgSize&&Ne.unshift(Ai.splice(-Mt.lgSize,Ai.length).join(""));Ai.length>Mt.gSize;)Ne.unshift(Ai.splice(-Mt.gSize,Ai.length).join(""));Ai.length&&Ne.unshift(Ai.join("")),rn=Ne.join(ke(Ye,Ot)),Be.length&&(rn+=ke(Ye,ri)+Be.join("")),Ke&&(rn+=ke(Ye,C.Exponential)+"+"+Ke)}else rn=ke(Ye,C.Infinity);return rn=je<0&&!Yn?Mt.negPre+rn+Mt.negSuf:Mt.posPre+rn+Mt.posSuf,rn}(je,function pt(je,Mt="-"){const Ye={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},Ot=je.split(";"),ri=Ot[0],Si=Ot[1],Oi=-1!==ri.indexOf(".")?ri.split("."):[ri.substring(0,ri.lastIndexOf("0")+1),ri.substring(ri.lastIndexOf("0")+1)],rn=Oi[0],Yn=Oi[1]||"";Ye.posPre=rn.substr(0,rn.indexOf("#"));for(let oi=0;oi<Yn.length;oi++){const mt=Yn.charAt(oi);"0"===mt?Ye.minFrac=Ye.maxFrac=oi+1:"#"===mt?Ye.maxFrac=oi+1:Ye.posSuf+=mt}const At=rn.split(",");if(Ye.gSize=At[1]?At[1].length:0,Ye.lgSize=At[2]||At[1]?(At[2]||At[1]).length:0,Si){const oi=ri.length-Ye.posPre.length-Ye.posSuf.length,mt=Si.indexOf("#");Ye.negPre=Si.substr(0,mt).replace(/'/g,""),Ye.negSuf=Si.substr(mt+oi).replace(/'/g,"")}else Ye.negPre=Mt+Ye.posPre,Ye.negSuf=Ye.posSuf;return Ye}(function Ee(je,Mt){return(0,e.cg1)(je)[e.wAp.NumberFormats][Mt]}(Mt,x.Decimal),ke(Mt,C.MinusSign)),Mt,C.Group,C.Decimal,Ye)}(function Dr(je){if("string"==typeof je&&!isNaN(Number(je)-parseFloat(je)))return Number(je);if("number"!=typeof je)throw new Error(`${je} is not a number`);return je}(Ye),ri,Ot)}catch(Si){throw Gn()}}}return je.\u0275fac=function(Ye){return new(Ye||je)(e.Y36(e.soG,16))},je.\u0275pipe=e.Yjl({name:"number",type:je,pure:!0}),je})();let Nr=(()=>{class je{transform(Ye,Ot,ri){if(null==Ye)return null;if(!this.supports(Ye))throw Gn();return Ye.slice(Ot,ri)}supports(Ye){return"string"==typeof Ye||Array.isArray(Ye)}}return je.\u0275fac=function(Ye){return new(Ye||je)},je.\u0275pipe=e.Yjl({name:"slice",type:je,pure:!1}),je})(),mr=(()=>{class je{}return je.\u0275fac=function(Ye){return new(Ye||je)},je.\u0275mod=e.oAB({type:je}),je.\u0275inj=e.cJS({}),je})();const gr="browser";function Jn(je){return je===gr}function ga(je){return"server"===je}let Hr=(()=>{class je{}return je.\u0275prov=(0,e.Yz7)({token:je,providedIn:"root",factory:()=>new br((0,e.LFG)(d),window)}),je})();class br{constructor(Mt,Ye){this.document=Mt,this.window=Ye,this.offset=()=>[0,0]}setOffset(Mt){this.offset=Array.isArray(Mt)?()=>Mt:Mt}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(Mt){this.supportsScrolling()&&this.window.scrollTo(Mt[0],Mt[1])}scrollToAnchor(Mt){if(!this.supportsScrolling())return;const Ye=function ha(je,Mt){const Ye=je.getElementById(Mt)||je.getElementsByName(Mt)[0];if(Ye)return Ye;if("function"==typeof je.createTreeWalker&&je.body&&(je.body.createShadowRoot||je.body.attachShadow)){const Ot=je.createTreeWalker(je.body,NodeFilter.SHOW_ELEMENT);let ri=Ot.currentNode;for(;ri;){const Si=ri.shadowRoot;if(Si){const Oi=Si.getElementById(Mt)||Si.querySelector(`[name="${Mt}"]`);if(Oi)return Oi}ri=Ot.nextNode()}}return null}(this.document,Mt);Ye&&(this.scrollToElement(Ye),Ye.focus())}setHistoryScrollRestoration(Mt){if(this.supportScrollRestoration()){const Ye=this.window.history;Ye&&Ye.scrollRestoration&&(Ye.scrollRestoration=Mt)}}scrollToElement(Mt){const Ye=Mt.getBoundingClientRect(),Ot=Ye.left+this.window.pageXOffset,ri=Ye.top+this.window.pageYOffset,Si=this.offset();this.window.scrollTo(Ot-Si[0],ri-Si[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const Mt=Fr(this.window.history)||Fr(Object.getPrototypeOf(this.window.history));return!(!Mt||!Mt.writable&&!Mt.set)}catch(Mt){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(Mt){return!1}}}function Fr(je){return Object.getOwnPropertyDescriptor(je,"scrollRestoration")}class Wn{}},8138:(He,j,p)=>{"use strict";p.d(j,{JF:()=>xe,LE:()=>U,TP:()=>I,eN:()=>C});var e=p(9808),i=p(5e3),u=p(9646),b=p(8306),a=p(4351),y=p(9300),d=p(4004);class P{}class D{}class T{constructor(ve){this.normalizedNames=new Map,this.lazyUpdate=null,ve?this.lazyInit="string"==typeof ve?()=>{this.headers=new Map,ve.split("\n").forEach(Le=>{const lt=Le.indexOf(":");if(lt>0){const ht=Le.slice(0,lt),Tt=ht.toLowerCase(),hi=Le.slice(lt+1).trim();this.maybeSetNormalizedName(ht,Tt),this.headers.has(Tt)?this.headers.get(Tt).push(hi):this.headers.set(Tt,[hi])}})}:()=>{this.headers=new Map,Object.keys(ve).forEach(Le=>{let lt=ve[Le];const ht=Le.toLowerCase();"string"==typeof lt&&(lt=[lt]),lt.length>0&&(this.headers.set(ht,lt),this.maybeSetNormalizedName(Le,ht))})}:this.headers=new Map}has(ve){return this.init(),this.headers.has(ve.toLowerCase())}get(ve){this.init();const Le=this.headers.get(ve.toLowerCase());return Le&&Le.length>0?Le[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(ve){return this.init(),this.headers.get(ve.toLowerCase())||null}append(ve,Le){return this.clone({name:ve,value:Le,op:"a"})}set(ve,Le){return this.clone({name:ve,value:Le,op:"s"})}delete(ve,Le){return this.clone({name:ve,value:Le,op:"d"})}maybeSetNormalizedName(ve,Le){this.normalizedNames.has(Le)||this.normalizedNames.set(Le,ve)}init(){this.lazyInit&&(this.lazyInit instanceof T?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(ve=>this.applyUpdate(ve)),this.lazyUpdate=null))}copyFrom(ve){ve.init(),Array.from(ve.headers.keys()).forEach(Le=>{this.headers.set(Le,ve.headers.get(Le)),this.normalizedNames.set(Le,ve.normalizedNames.get(Le))})}clone(ve){const Le=new T;return Le.lazyInit=this.lazyInit&&this.lazyInit instanceof T?this.lazyInit:this,Le.lazyUpdate=(this.lazyUpdate||[]).concat([ve]),Le}applyUpdate(ve){const Le=ve.name.toLowerCase();switch(ve.op){case"a":case"s":let lt=ve.value;if("string"==typeof lt&&(lt=[lt]),0===lt.length)return;this.maybeSetNormalizedName(ve.name,Le);const ht=("a"===ve.op?this.headers.get(Le):void 0)||[];ht.push(...lt),this.headers.set(Le,ht);break;case"d":const Tt=ve.value;if(Tt){let hi=this.headers.get(Le);if(!hi)return;hi=hi.filter(jt=>-1===Tt.indexOf(jt)),0===hi.length?(this.headers.delete(Le),this.normalizedNames.delete(Le)):this.headers.set(Le,hi)}else this.headers.delete(Le),this.normalizedNames.delete(Le)}}forEach(ve){this.init(),Array.from(this.normalizedNames.keys()).forEach(Le=>ve(this.normalizedNames.get(Le),this.headers.get(Le)))}}class M{encodeKey(ve){return w(ve)}encodeValue(ve){return w(ve)}decodeKey(ve){return decodeURIComponent(ve)}decodeValue(ve){return decodeURIComponent(ve)}}const E=/%(\d[a-f0-9])/gi,k={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function w(ue){return encodeURIComponent(ue).replace(E,(ve,Le)=>{var lt;return null!==(lt=k[Le])&&void 0!==lt?lt:ve})}function z(ue){return`${ue}`}class U{constructor(ve={}){if(this.updates=null,this.cloneFrom=null,this.encoder=ve.encoder||new M,ve.fromString){if(ve.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function A(ue,ve){const Le=new Map;return ue.length>0&&ue.replace(/^\?/,"").split("&").forEach(ht=>{const Tt=ht.indexOf("="),[hi,jt]=-1==Tt?[ve.decodeKey(ht),""]:[ve.decodeKey(ht.slice(0,Tt)),ve.decodeValue(ht.slice(Tt+1))],Gt=Le.get(hi)||[];Gt.push(jt),Le.set(hi,Gt)}),Le}(ve.fromString,this.encoder)}else ve.fromObject?(this.map=new Map,Object.keys(ve.fromObject).forEach(Le=>{const lt=ve.fromObject[Le];this.map.set(Le,Array.isArray(lt)?lt:[lt])})):this.map=null}has(ve){return this.init(),this.map.has(ve)}get(ve){this.init();const Le=this.map.get(ve);return Le?Le[0]:null}getAll(ve){return this.init(),this.map.get(ve)||null}keys(){return this.init(),Array.from(this.map.keys())}append(ve,Le){return this.clone({param:ve,value:Le,op:"a"})}appendAll(ve){const Le=[];return Object.keys(ve).forEach(lt=>{const ht=ve[lt];Array.isArray(ht)?ht.forEach(Tt=>{Le.push({param:lt,value:Tt,op:"a"})}):Le.push({param:lt,value:ht,op:"a"})}),this.clone(Le)}set(ve,Le){return this.clone({param:ve,value:Le,op:"s"})}delete(ve,Le){return this.clone({param:ve,value:Le,op:"d"})}toString(){return this.init(),this.keys().map(ve=>{const Le=this.encoder.encodeKey(ve);return this.map.get(ve).map(lt=>Le+"="+this.encoder.encodeValue(lt)).join("&")}).filter(ve=>""!==ve).join("&")}clone(ve){const Le=new U({encoder:this.encoder});return Le.cloneFrom=this.cloneFrom||this,Le.updates=(this.updates||[]).concat(ve),Le}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(ve=>this.map.set(ve,this.cloneFrom.map.get(ve))),this.updates.forEach(ve=>{switch(ve.op){case"a":case"s":const Le=("a"===ve.op?this.map.get(ve.param):void 0)||[];Le.push(z(ve.value)),this.map.set(ve.param,Le);break;case"d":if(void 0===ve.value){this.map.delete(ve.param);break}{let lt=this.map.get(ve.param)||[];const ht=lt.indexOf(z(ve.value));-1!==ht&&lt.splice(ht,1),lt.length>0?this.map.set(ve.param,lt):this.map.delete(ve.param)}}}),this.cloneFrom=this.updates=null)}}class ne{constructor(){this.map=new Map}set(ve,Le){return this.map.set(ve,Le),this}get(ve){return this.map.has(ve)||this.map.set(ve,ve.defaultValue()),this.map.get(ve)}delete(ve){return this.map.delete(ve),this}has(ve){return this.map.has(ve)}keys(){return this.map.keys()}}function le(ue){return"undefined"!=typeof ArrayBuffer&&ue instanceof ArrayBuffer}function q(ue){return"undefined"!=typeof Blob&&ue instanceof Blob}function ie(ue){return"undefined"!=typeof FormData&&ue instanceof FormData}class J{constructor(ve,Le,lt,ht){let Tt;if(this.url=Le,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=ve.toUpperCase(),function Q(ue){switch(ue){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||ht?(this.body=void 0!==lt?lt:null,Tt=ht):Tt=lt,Tt&&(this.reportProgress=!!Tt.reportProgress,this.withCredentials=!!Tt.withCredentials,Tt.responseType&&(this.responseType=Tt.responseType),Tt.headers&&(this.headers=Tt.headers),Tt.context&&(this.context=Tt.context),Tt.params&&(this.params=Tt.params)),this.headers||(this.headers=new T),this.context||(this.context=new ne),this.params){const hi=this.params.toString();if(0===hi.length)this.urlWithParams=Le;else{const jt=Le.indexOf("?");this.urlWithParams=Le+(-1===jt?"?":jt<Le.length-1?"&":"")+hi}}else this.params=new U,this.urlWithParams=Le}serializeBody(){return null===this.body?null:le(this.body)||q(this.body)||ie(this.body)||function se(ue){return"undefined"!=typeof URLSearchParams&&ue instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof U?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||ie(this.body)?null:q(this.body)?this.body.type||null:le(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof U?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(ve={}){var Le;const lt=ve.method||this.method,ht=ve.url||this.url,Tt=ve.responseType||this.responseType,hi=void 0!==ve.body?ve.body:this.body,jt=void 0!==ve.withCredentials?ve.withCredentials:this.withCredentials,Gt=void 0!==ve.reportProgress?ve.reportProgress:this.reportProgress;let di=ve.headers||this.headers,vt=ve.params||this.params;const kt=null!==(Le=ve.context)&&void 0!==Le?Le:this.context;return void 0!==ve.setHeaders&&(di=Object.keys(ve.setHeaders).reduce((gt,Qe)=>gt.set(Qe,ve.setHeaders[Qe]),di)),ve.setParams&&(vt=Object.keys(ve.setParams).reduce((gt,Qe)=>gt.set(Qe,ve.setParams[Qe]),vt)),new J(lt,ht,hi,{params:vt,headers:di,context:kt,reportProgress:Gt,responseType:Tt,withCredentials:jt})}}var me=(()=>((me=me||{})[me.Sent=0]="Sent",me[me.UploadProgress=1]="UploadProgress",me[me.ResponseHeader=2]="ResponseHeader",me[me.DownloadProgress=3]="DownloadProgress",me[me.Response=4]="Response",me[me.User=5]="User",me))();class x{constructor(ve,Le=200,lt="OK"){this.headers=ve.headers||new T,this.status=void 0!==ve.status?ve.status:Le,this.statusText=ve.statusText||lt,this.url=ve.url||null,this.ok=this.status>=200&&this.status<300}}class t extends x{constructor(ve={}){super(ve),this.type=me.ResponseHeader}clone(ve={}){return new t({headers:ve.headers||this.headers,status:void 0!==ve.status?ve.status:this.status,statusText:ve.statusText||this.statusText,url:ve.url||this.url||void 0})}}class r extends x{constructor(ve={}){super(ve),this.type=me.Response,this.body=void 0!==ve.body?ve.body:null}clone(ve={}){return new r({body:void 0!==ve.body?ve.body:this.body,headers:ve.headers||this.headers,status:void 0!==ve.status?ve.status:this.status,statusText:ve.statusText||this.statusText,url:ve.url||this.url||void 0})}}class h extends x{constructor(ve){super(ve,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${ve.url||"(unknown url)"}`:`Http failure response for ${ve.url||"(unknown url)"}: ${ve.status} ${ve.statusText}`,this.error=ve.error||null}}function c(ue,ve){return{body:ve,headers:ue.headers,context:ue.context,observe:ue.observe,params:ue.params,reportProgress:ue.reportProgress,responseType:ue.responseType,withCredentials:ue.withCredentials}}let C=(()=>{class ue{constructor(Le){this.handler=Le}request(Le,lt,ht={}){let Tt;if(Le instanceof J)Tt=Le;else{let Gt,di;Gt=ht.headers instanceof T?ht.headers:new T(ht.headers),ht.params&&(di=ht.params instanceof U?ht.params:new U({fromObject:ht.params})),Tt=new J(Le,lt,void 0!==ht.body?ht.body:null,{headers:Gt,context:ht.context,params:di,reportProgress:ht.reportProgress,responseType:ht.responseType||"json",withCredentials:ht.withCredentials})}const hi=(0,u.of)(Tt).pipe((0,a.b)(Gt=>this.handler.handle(Gt)));if(Le instanceof J||"events"===ht.observe)return hi;const jt=hi.pipe((0,y.h)(Gt=>Gt instanceof r));switch(ht.observe||"body"){case"body":switch(Tt.responseType){case"arraybuffer":return jt.pipe((0,d.U)(Gt=>{if(null!==Gt.body&&!(Gt.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Gt.body}));case"blob":return jt.pipe((0,d.U)(Gt=>{if(null!==Gt.body&&!(Gt.body instanceof Blob))throw new Error("Response is not a Blob.");return Gt.body}));case"text":return jt.pipe((0,d.U)(Gt=>{if(null!==Gt.body&&"string"!=typeof Gt.body)throw new Error("Response is not a string.");return Gt.body}));default:return jt.pipe((0,d.U)(Gt=>Gt.body))}case"response":return jt;default:throw new Error(`Unreachable: unhandled observe type ${ht.observe}}`)}}delete(Le,lt={}){return this.request("DELETE",Le,lt)}get(Le,lt={}){return this.request("GET",Le,lt)}head(Le,lt={}){return this.request("HEAD",Le,lt)}jsonp(Le,lt){return this.request("JSONP",Le,{params:(new U).append(lt,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(Le,lt={}){return this.request("OPTIONS",Le,lt)}patch(Le,lt,ht={}){return this.request("PATCH",Le,c(ht,lt))}post(Le,lt,ht={}){return this.request("POST",Le,c(ht,lt))}put(Le,lt,ht={}){return this.request("PUT",Le,c(ht,lt))}}return ue.\u0275fac=function(Le){return new(Le||ue)(i.LFG(P))},ue.\u0275prov=i.Yz7({token:ue,factory:ue.\u0275fac}),ue})();class S{constructor(ve,Le){this.next=ve,this.interceptor=Le}handle(ve){return this.interceptor.intercept(ve,this.next)}}const I=new i.OlP("HTTP_INTERCEPTORS");let _=(()=>{class ue{intercept(Le,lt){return lt.handle(Le)}}return ue.\u0275fac=function(Le){return new(Le||ue)},ue.\u0275prov=i.Yz7({token:ue,factory:ue.\u0275fac}),ue})();const ke=/^\)\]\}',?\n/;let te=(()=>{class ue{constructor(Le){this.xhrFactory=Le}handle(Le){if("JSONP"===Le.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new b.y(lt=>{const ht=this.xhrFactory.build();if(ht.open(Le.method,Le.urlWithParams),Le.withCredentials&&(ht.withCredentials=!0),Le.headers.forEach((Qe,_t)=>ht.setRequestHeader(Qe,_t.join(","))),Le.headers.has("Accept")||ht.setRequestHeader("Accept","application/json, text/plain, */*"),!Le.headers.has("Content-Type")){const Qe=Le.detectContentTypeHeader();null!==Qe&&ht.setRequestHeader("Content-Type",Qe)}if(Le.responseType){const Qe=Le.responseType.toLowerCase();ht.responseType="json"!==Qe?Qe:"text"}const Tt=Le.serializeBody();let hi=null;const jt=()=>{if(null!==hi)return hi;const Qe=ht.statusText||"OK",_t=new T(ht.getAllResponseHeaders()),ei=function Ee(ue){return"responseURL"in ue&&ue.responseURL?ue.responseURL:/^X-Request-URL:/m.test(ue.getAllResponseHeaders())?ue.getResponseHeader("X-Request-URL"):null}(ht)||Le.url;return hi=new t({headers:_t,status:ht.status,statusText:Qe,url:ei}),hi},Gt=()=>{let{headers:Qe,status:_t,statusText:ei,url:Zt}=jt(),Pe=null;204!==_t&&(Pe=void 0===ht.response?ht.responseText:ht.response),0===_t&&(_t=Pe?200:0);let De=_t>=200&&_t<300;if("json"===Le.responseType&&"string"==typeof Pe){const oe=Pe;Pe=Pe.replace(ke,"");try{Pe=""!==Pe?JSON.parse(Pe):null}catch(Me){Pe=oe,De&&(De=!1,Pe={error:Me,text:Pe})}}De?(lt.next(new r({body:Pe,headers:Qe,status:_t,statusText:ei,url:Zt||void 0})),lt.complete()):lt.error(new h({error:Pe,headers:Qe,status:_t,statusText:ei,url:Zt||void 0}))},di=Qe=>{const{url:_t}=jt(),ei=new h({error:Qe,status:ht.status||0,statusText:ht.statusText||"Unknown Error",url:_t||void 0});lt.error(ei)};let vt=!1;const kt=Qe=>{vt||(lt.next(jt()),vt=!0);let _t={type:me.DownloadProgress,loaded:Qe.loaded};Qe.lengthComputable&&(_t.total=Qe.total),"text"===Le.responseType&&!!ht.responseText&&(_t.partialText=ht.responseText),lt.next(_t)},gt=Qe=>{let _t={type:me.UploadProgress,loaded:Qe.loaded};Qe.lengthComputable&&(_t.total=Qe.total),lt.next(_t)};return ht.addEventListener("load",Gt),ht.addEventListener("error",di),ht.addEventListener("timeout",di),ht.addEventListener("abort",di),Le.reportProgress&&(ht.addEventListener("progress",kt),null!==Tt&&ht.upload&&ht.upload.addEventListener("progress",gt)),ht.send(Tt),lt.next({type:me.Sent}),()=>{ht.removeEventListener("error",di),ht.removeEventListener("abort",di),ht.removeEventListener("load",Gt),ht.removeEventListener("timeout",di),Le.reportProgress&&(ht.removeEventListener("progress",kt),null!==Tt&&ht.upload&&ht.upload.removeEventListener("progress",gt)),ht.readyState!==ht.DONE&&ht.abort()}})}}return ue.\u0275fac=function(Le){return new(Le||ue)(i.LFG(e.JF))},ue.\u0275prov=i.Yz7({token:ue,factory:ue.\u0275fac}),ue})();const ze=new i.OlP("XSRF_COOKIE_NAME"),be=new i.OlP("XSRF_HEADER_NAME");class Z{}let Y=(()=>{class ue{constructor(Le,lt,ht){this.doc=Le,this.platform=lt,this.cookieName=ht,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const Le=this.doc.cookie||"";return Le!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,e.Mx)(Le,this.cookieName),this.lastCookieString=Le),this.lastToken}}return ue.\u0275fac=function(Le){return new(Le||ue)(i.LFG(e.K0),i.LFG(i.Lbi),i.LFG(ze))},ue.\u0275prov=i.Yz7({token:ue,factory:ue.\u0275fac}),ue})(),ot=(()=>{class ue{constructor(Le,lt){this.tokenService=Le,this.headerName=lt}intercept(Le,lt){const ht=Le.url.toLowerCase();if("GET"===Le.method||"HEAD"===Le.method||ht.startsWith("http://")||ht.startsWith("https://"))return lt.handle(Le);const Tt=this.tokenService.getToken();return null!==Tt&&!Le.headers.has(this.headerName)&&(Le=Le.clone({headers:Le.headers.set(this.headerName,Tt)})),lt.handle(Le)}}return ue.\u0275fac=function(Le){return new(Le||ue)(i.LFG(Z),i.LFG(be))},ue.\u0275prov=i.Yz7({token:ue,factory:ue.\u0275fac}),ue})(),Ie=(()=>{class ue{constructor(Le,lt){this.backend=Le,this.injector=lt,this.chain=null}handle(Le){if(null===this.chain){const lt=this.injector.get(I,[]);this.chain=lt.reduceRight((ht,Tt)=>new S(ht,Tt),this.backend)}return this.chain.handle(Le)}}return ue.\u0275fac=function(Le){return new(Le||ue)(i.LFG(D),i.LFG(i.zs3))},ue.\u0275prov=i.Yz7({token:ue,factory:ue.\u0275fac}),ue})(),Te=(()=>{class ue{static disable(){return{ngModule:ue,providers:[{provide:ot,useClass:_}]}}static withOptions(Le={}){return{ngModule:ue,providers:[Le.cookieName?{provide:ze,useValue:Le.cookieName}:[],Le.headerName?{provide:be,useValue:Le.headerName}:[]]}}}return ue.\u0275fac=function(Le){return new(Le||ue)},ue.\u0275mod=i.oAB({type:ue}),ue.\u0275inj=i.cJS({providers:[ot,{provide:I,useExisting:ot,multi:!0},{provide:Z,useClass:Y},{provide:ze,useValue:"XSRF-TOKEN"},{provide:be,useValue:"X-XSRF-TOKEN"}]}),ue})(),xe=(()=>{class ue{}return ue.\u0275fac=function(Le){return new(Le||ue)},ue.\u0275mod=i.oAB({type:ue}),ue.\u0275inj=i.cJS({providers:[C,{provide:P,useClass:Ie},te,{provide:D,useExisting:te}],imports:[[Te.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),ue})()},5e3:(He,j,p)=>{"use strict";p.d(j,{$8M:()=>sl,$Z:()=>Pc,AFp:()=>w8,ALo:()=>$f,AaK:()=>P,AsE:()=>$c,BQk:()=>Fc,CHM:()=>ms,CRH:()=>fu,CZH:()=>xu,CqO:()=>Vc,DdM:()=>Bf,Dn7:()=>iu,EJc:()=>Y7,EiD:()=>El,EpF:()=>o0,F$t:()=>ph,F4k:()=>j2,FYo:()=>Df,FiY:()=>n1,G48:()=>um,Gf:()=>hu,GfV:()=>kf,GkF:()=>s0,Gpc:()=>M,Gre:()=>Rh,HOy:()=>M0,Hsn:()=>mh,Ikx:()=>Dn,JOm:()=>ys,JVY:()=>t5,Jf7:()=>W3,L6k:()=>dd,LAX:()=>hd,LFG:()=>Fa,LSH:()=>Sl,Lbi:()=>G7,MAs:()=>es,MGl:()=>Z2,NdJ:()=>R1,O4$:()=>ur,OlP:()=>Or,Oqu:()=>b0,PXZ:()=>am,PiD:()=>Fs,Q6J:()=>Rc,QGY:()=>ts,Qsj:()=>If,R0b:()=>Ks,RDi:()=>Fr,Rgc:()=>il,SBq:()=>t3,Sil:()=>K7,Suo:()=>uu,TTD:()=>jr,TgZ:()=>Y2,Tol:()=>Sh,Udp:()=>Gc,VKq:()=>Uf,VLi:()=>rm,W1O:()=>d8,WFA:()=>l0,WLB:()=>Gf,X6Q:()=>z8,XFs:()=>Ae,Xpm:()=>ut,Y36:()=>Wo,YKP:()=>$h,YNc:()=>xc,Yjl:()=>rt,Yz7:()=>$,ZZ4:()=>Nu,_Bn:()=>Mf,_UZ:()=>P1,_Vd:()=>k0,_c5:()=>Dm,_uU:()=>y0,aQg:()=>Hu,c2e:()=>L8,cJS:()=>ye,cg1:()=>pa,d8E:()=>En,dDg:()=>I8,deG:()=>So,dqk:()=>di,eBb:()=>i5,eFA:()=>R8,ekj:()=>Wc,f3M:()=>Z1,g9A:()=>Eu,h0i:()=>J2,hGG:()=>Im,hij:()=>Kc,iGM:()=>a8,ifc:()=>ht,ip1:()=>bu,kEZ:()=>Wf,kL8:()=>Tr,kcU:()=>tt,lG2:()=>Fe,lcZ:()=>Qf,lnq:()=>x0,mCW:()=>Do,n5z:()=>rl,n_E:()=>R0,oAB:()=>qe,oJD:()=>k3,oxw:()=>uh,pB0:()=>n5,q3G:()=>ea,qLn:()=>a2,qOj:()=>_c,qZA:()=>k1,qzn:()=>Ao,s9C:()=>d0,sBO:()=>U8,sIi:()=>P2,s_b:()=>r3,soG:()=>B0,tBr:()=>po,tb:()=>wu,tp0:()=>Ts,uIk:()=>X4,vHH:()=>w,vpe:()=>oo,wAp:()=>ln,xi3:()=>Xf,xp6:()=>c4,yhl:()=>E3,ynx:()=>Hc,z2F:()=>Iu,z3N:()=>Is,zSh:()=>pc,zs3:()=>Us});var e=p(7579),i=p(727),u=p(8306),b=p(6451),a=p(3099);function y(s){for(let l in s)if(s[l]===y)return l;throw Error("Could not find renamed property on target object.")}function d(s,l){for(const m in l)l.hasOwnProperty(m)&&!s.hasOwnProperty(m)&&(s[m]=l[m])}function P(s){if("string"==typeof s)return s;if(Array.isArray(s))return"["+s.map(P).join(", ")+"]";if(null==s)return""+s;if(s.overriddenName)return`${s.overriddenName}`;if(s.name)return`${s.name}`;const l=s.toString();if(null==l)return""+l;const m=l.indexOf("\n");return-1===m?l:l.substring(0,m)}function D(s,l){return null==s||""===s?null===l?"":l:null==l||""===l?s:s+" "+l}const T=y({__forward_ref__:y});function M(s){return s.__forward_ref__=M,s.toString=function(){return P(this())},s}function A(s){return E(s)?s():s}function E(s){return"function"==typeof s&&s.hasOwnProperty(T)&&s.__forward_ref__===M}class w extends Error{constructor(l,m){super(function z(s,l){return`NG0${Math.abs(s)}${l?": "+l:""}`}(l,m)),this.code=l}}function U(s){return"string"==typeof s?s:null==s?"":String(s)}function W(s){return"function"==typeof s?s.name||s.toString():"object"==typeof s&&null!=s&&"function"==typeof s.type?s.type.name||s.type.toString():U(s)}function q(s,l){const m=l?` in ${l}`:"";throw new w(-201,`No provider for ${W(s)} found${m}`)}function n(s,l){null==s&&function g(s,l,m,L){throw new Error(`ASSERTION ERROR: ${s}`+(null==L?"":` [Expected=> ${m} ${L} ${l} <=Actual]`))}(l,s,null,"!=")}function $(s){return{token:s.token,providedIn:s.providedIn||null,factory:s.factory,value:void 0}}function ye(s){return{providers:s.providers||[],imports:s.imports||[]}}function ke(s){return Ee(s,Z)||Ee(s,ot)}function Ee(s,l){return s.hasOwnProperty(l)?s[l]:null}function be(s){return s&&(s.hasOwnProperty(Y)||s.hasOwnProperty(Ie))?s[Y]:null}const Z=y({\u0275prov:y}),Y=y({\u0275inj:y}),ot=y({ngInjectableDef:y}),Ie=y({ngInjectorDef:y});var Ae=(()=>((Ae=Ae||{})[Ae.Default=0]="Default",Ae[Ae.Host=1]="Host",Ae[Ae.Self=2]="Self",Ae[Ae.SkipSelf=4]="SkipSelf",Ae[Ae.Optional=8]="Optional",Ae))();let ce;function xe(s){const l=ce;return ce=s,l}function G(s,l,m){const L=ke(s);return L&&"root"==L.providedIn?void 0===L.value?L.value=L.factory():L.value:m&Ae.Optional?null:void 0!==l?l:void q(P(s),"Injector")}function ue(s){return{toString:s}.toString()}var ve=(()=>((ve=ve||{})[ve.OnPush=0]="OnPush",ve[ve.Default=1]="Default",ve))(),ht=(()=>{return(s=ht||(ht={}))[s.Emulated=0]="Emulated",s[s.None=2]="None",s[s.ShadowDom=3]="ShadowDom",ht;var s})();const Tt="undefined"!=typeof globalThis&&globalThis,hi="undefined"!=typeof window&&window,jt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,di=Tt||"undefined"!=typeof global&&global||hi||jt,gt={},Qe=[],_t=y({\u0275cmp:y}),ei=y({\u0275dir:y}),Zt=y({\u0275pipe:y}),Pe=y({\u0275mod:y}),De=y({\u0275fac:y}),oe=y({__NG_ELEMENT_ID__:y});let Me=0;function ut(s){return ue(()=>{const m={},L={type:s.type,providersResolver:null,decls:s.decls,vars:s.vars,factory:null,template:s.template||null,consts:s.consts||null,ngContentSelectors:s.ngContentSelectors,hostBindings:s.hostBindings||null,hostVars:s.hostVars||0,hostAttrs:s.hostAttrs||null,contentQueries:s.contentQueries||null,declaredInputs:m,inputs:null,outputs:null,exportAs:s.exportAs||null,onPush:s.changeDetection===ve.OnPush,directiveDefs:null,pipeDefs:null,selectors:s.selectors||Qe,viewQuery:s.viewQuery||null,features:s.features||null,data:s.data||{},encapsulation:s.encapsulation||ht.Emulated,id:"c",styles:s.styles||Qe,_:null,setInput:null,schemas:s.schemas||null,tView:null},N=s.directives,B=s.features,ae=s.pipes;return L.id+=Me++,L.inputs=we(s.inputs,m),L.outputs=we(s.outputs),B&&B.forEach(Se=>Se(L)),L.directiveDefs=N?()=>("function"==typeof N?N():N).map(Rt):null,L.pipeDefs=ae?()=>("function"==typeof ae?ae():ae).map(et):null,L})}function Rt(s){return at(s)||function yt(s){return s[ei]||null}(s)}function et(s){return function mi(s){return s[Zt]||null}(s)}const Re={};function qe(s){return ue(()=>{const l={type:s.type,bootstrap:s.bootstrap||Qe,declarations:s.declarations||Qe,imports:s.imports||Qe,exports:s.exports||Qe,transitiveCompileScopes:null,schemas:s.schemas||null,id:s.id||null};return null!=s.id&&(Re[s.id]=s.type),l})}function we(s,l){if(null==s)return gt;const m={};for(const L in s)if(s.hasOwnProperty(L)){let N=s[L],B=N;Array.isArray(N)&&(B=N[1],N=N[0]),m[N]=L,l&&(l[N]=B)}return m}const Fe=ut;function rt(s){return{type:s.type,name:s.name,factory:null,pure:!1!==s.pure,onDestroy:s.type.prototype.ngOnDestroy||null}}function at(s){return s[_t]||null}function Xt(s,l){const m=s[Pe]||null;if(!m&&!0===l)throw new Error(`Type ${P(s)} does not have '\u0275mod' property.`);return m}function ki(s){return Array.isArray(s)&&"object"==typeof s[1]}function hn(s){return Array.isArray(s)&&!0===s[1]}function Hn(s){return 0!=(8&s.flags)}function An(s){return 2==(2&s.flags)}function Kn(s){return 1==(1&s.flags)}function Cn(s){return null!==s.template}function wi(s){return 0!=(512&s[2])}function lr(s,l){return s.hasOwnProperty(De)?s[De]:null}class ma{constructor(l,m,L){this.previousValue=l,this.currentValue=m,this.firstChange=L}isFirstChange(){return this.firstChange}}function jr(){return Dr}function Dr(s){return s.type.prototype.ngOnChanges&&(s.setInput=Ur),Nr}function Nr(){const s=gr(this),l=null==s?void 0:s.current;if(l){const m=s.previous;if(m===gt)s.previous=l;else for(let L in l)m[L]=l[L];s.current=null,this.ngOnChanges(l)}}function Ur(s,l,m,L){const N=gr(s)||function ra(s,l){return s[mr]=l}(s,{previous:gt,current:null}),B=N.current||(N.current={}),ae=N.previous,Se=this.declaredInputs[m],Ve=ae[Se];B[Se]=new ma(Ve&&Ve.currentValue,l,ae===gt),s[L]=l}jr.ngInherit=!0;const mr="__ngSimpleChanges__";function gr(s){return s[mr]||null}let br;function Fr(s){br=s}function ha(){return void 0!==br?br:"undefined"!=typeof document?document:void 0}function Wn(s){return!!s.listen}const je={createRenderer:(s,l)=>ha()};function Ye(s){for(;Array.isArray(s);)s=s[0];return s}function Si(s,l){return Ye(l[s])}function Oi(s,l){return Ye(l[s.index])}function Yn(s,l){return s.data[l]}function At(s,l){return s[l]}function oi(s,l){const m=l[s];return ki(m)?m:m[0]}function mt(s){return 4==(4&s[2])}function $t(s){return 128==(128&s[2])}function ji(s,l){return null==l?null:s[l]}function Ke(s){s[18]=0}function Be(s,l){s[5]+=l;let m=s,L=s[3];for(;null!==L&&(1===l&&1===m[5]||-1===l&&0===m[5]);)L[5]+=l,m=L,L=L[3]}const Ne={lFrame:Ln(null),bindingsEnabled:!0};function Ca(){return Ne.bindingsEnabled}function Hi(){return Ne.lFrame.lView}function Vn(){return Ne.lFrame.tView}function ms(s){return Ne.lFrame.contextLView=s,s[8]}function Cr(){let s=ss();for(;null!==s&&64===s.type;)s=s.parent;return s}function ss(){return Ne.lFrame.currentTNode}function cr(s,l){const m=Ne.lFrame;m.currentTNode=s,m.isParent=l}function gs(){return Ne.lFrame.isParent}function Cs(){Ne.lFrame.isParent=!1}function Vr(){const s=Ne.lFrame;let l=s.bindingRootIndex;return-1===l&&(l=s.bindingRootIndex=s.tView.bindingStartIndex),l}function Oa(){return Ne.lFrame.bindingIndex}function re(){return Ne.lFrame.bindingIndex++}function pe(s){const l=Ne.lFrame,m=l.bindingIndex;return l.bindingIndex=l.bindingIndex+s,m}function Ht(s,l){const m=Ne.lFrame;m.bindingIndex=m.bindingRootIndex=s,ni(l)}function ni(s){Ne.lFrame.currentDirectiveIndex=s}function Ci(s){const l=Ne.lFrame.currentDirectiveIndex;return-1===l?null:s[l]}function Pi(){return Ne.lFrame.currentQueryIndex}function tn(s){Ne.lFrame.currentQueryIndex=s}function cn(s){const l=s[1];return 2===l.type?l.declTNode:1===l.type?s[6]:null}function wn(s,l,m){if(m&Ae.SkipSelf){let N=l,B=s;for(;!(N=N.parent,null!==N||m&Ae.Host||(N=cn(B),null===N||(B=B[15],10&N.type))););if(null===N)return!1;l=N,s=B}const L=Ne.lFrame=yn();return L.currentTNode=l,L.lView=s,!0}function Pn(s){const l=yn(),m=s[1];Ne.lFrame=l,l.currentTNode=m.firstChild,l.lView=s,l.tView=m,l.contextLView=s,l.bindingIndex=m.bindingStartIndex,l.inI18n=!1}function yn(){const s=Ne.lFrame,l=null===s?null:s.child;return null===l?Ln(s):l}function Ln(s){const l={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:s,child:null,inI18n:!1};return null!==s&&(s.child=l),l}function Qn(){const s=Ne.lFrame;return Ne.lFrame=s.parent,s.currentTNode=null,s.lView=null,s}const xr=Qn;function dr(){const s=Qn();s.isParent=!0,s.tView=null,s.selectedIndex=-1,s.contextLView=null,s.elementDepthCount=0,s.currentDirectiveIndex=-1,s.currentNamespace=null,s.bindingRootIndex=-1,s.bindingIndex=-1,s.currentQueryIndex=0}function hr(){return Ne.lFrame.selectedIndex}function zr(s){Ne.lFrame.selectedIndex=s}function zn(){const s=Ne.lFrame;return Yn(s.tView,s.selectedIndex)}function ur(){Ne.lFrame.currentNamespace="svg"}function tt(){!function Et(){Ne.lFrame.currentNamespace=null}()}function qt(s,l){for(let m=l.directiveStart,L=l.directiveEnd;m<L;m++){const B=s.data[m].type.prototype,{ngAfterContentInit:ae,ngAfterContentChecked:Se,ngAfterViewInit:Ve,ngAfterViewChecked:dt,ngOnDestroy:wt}=B;ae&&(s.contentHooks||(s.contentHooks=[])).push(-m,ae),Se&&((s.contentHooks||(s.contentHooks=[])).push(m,Se),(s.contentCheckHooks||(s.contentCheckHooks=[])).push(m,Se)),Ve&&(s.viewHooks||(s.viewHooks=[])).push(-m,Ve),dt&&((s.viewHooks||(s.viewHooks=[])).push(m,dt),(s.viewCheckHooks||(s.viewCheckHooks=[])).push(m,dt)),null!=wt&&(s.destroyHooks||(s.destroyHooks=[])).push(m,wt)}}function gi(s,l,m){Ei(s,l,3,m)}function ti(s,l,m,L){(3&s[2])===m&&Ei(s,l,m,L)}function fi(s,l){let m=s[2];(3&m)===l&&(m&=2047,m+=1,s[2]=m)}function Ei(s,l,m,L){const B=null!=L?L:-1,ae=l.length-1;let Se=0;for(let Ve=void 0!==L?65535&s[18]:0;Ve<ae;Ve++)if("number"==typeof l[Ve+1]){if(Se=l[Ve],null!=L&&Se>=L)break}else l[Ve]<0&&(s[18]+=65536),(Se<B||-1==B)&&(Ki(s,m,l,Ve),s[18]=(4294901760&s[18])+Ve+2),Ve++}function Ki(s,l,m,L){const N=m[L]<0,B=m[L+1],Se=s[N?-m[L]:m[L]];if(N){if(s[2]>>11<s[18]>>16&&(3&s[2])===l){s[2]+=2048;try{B.call(Se)}finally{}}}else try{B.call(Se)}finally{}}class on{constructor(l,m,L){this.factory=l,this.resolving=!1,this.canSeeViewProviders=m,this.injectImpl=L}}function Ir(s,l,m){const L=Wn(s);let N=0;for(;N<m.length;){const B=m[N];if("number"==typeof B){if(0!==B)break;N++;const ae=m[N++],Se=m[N++],Ve=m[N++];L?s.setAttribute(l,Se,Ve,ae):l.setAttributeNS(ae,Se,Ve)}else{const ae=B,Se=m[++N];Na(ae)?L&&s.setProperty(l,ae,Se):L?s.setAttribute(l,ae,Se):l.setAttribute(ae,Se),N++}}return N}function Br(s){return 3===s||4===s||6===s}function Na(s){return 64===s.charCodeAt(0)}function za(s,l){if(null!==l&&0!==l.length)if(null===s||0===s.length)s=l.slice();else{let m=-1;for(let L=0;L<l.length;L++){const N=l[L];"number"==typeof N?m=N:0===m||Qa(s,m,N,null,-1===m||2===m?l[++L]:null)}}return s}function Qa(s,l,m,L,N){let B=0,ae=s.length;if(-1===l)ae=-1;else for(;B<s.length;){const Se=s[B++];if("number"==typeof Se){if(Se===l){ae=-1;break}if(Se>l){ae=B-1;break}}}for(;B<s.length;){const Se=s[B];if("number"==typeof Se)break;if(Se===m){if(null===L)return void(null!==N&&(s[B+1]=N));if(L===s[B+1])return void(s[B+2]=N)}B++,null!==L&&B++,null!==N&&B++}-1!==ae&&(s.splice(ae,0,l),B=ae+1),s.splice(B++,0,m),null!==L&&s.splice(B++,0,L),null!==N&&s.splice(B++,0,N)}function _e(s){return-1!==s}function Xe(s){return 32767&s}function We(s,l){let m=function K(s){return s>>16}(s),L=l;for(;m>0;)L=L[15],m--;return L}let Bt=!0;function Ce(s){const l=Bt;return Bt=s,l}let nt=0;function Qt(s,l){const m=Di(s,l);if(-1!==m)return m;const L=l[1];L.firstCreatePass&&(s.injectorIndex=l.length,ai(L.data,s),ai(l,null),ai(L.blueprint,null));const N=Vi(s,l),B=s.injectorIndex;if(_e(N)){const ae=Xe(N),Se=We(N,l),Ve=Se[1].data;for(let dt=0;dt<8;dt++)l[B+dt]=Se[ae+dt]|Ve[ae+dt]}return l[B+8]=N,B}function ai(s,l){s.push(0,0,0,0,0,0,0,0,l)}function Di(s,l){return-1===s.injectorIndex||s.parent&&s.parent.injectorIndex===s.injectorIndex||null===l[s.injectorIndex+8]?-1:s.injectorIndex}function Vi(s,l){if(s.parent&&-1!==s.parent.injectorIndex)return s.parent.injectorIndex;let m=0,L=null,N=l;for(;null!==N;){const B=N[1],ae=B.type;if(L=2===ae?B.declTNode:1===ae?N[6]:null,null===L)return-1;if(m++,N=N[15],-1!==L.injectorIndex)return L.injectorIndex|m<<16}return-1}function Mn(s,l,m){!function Dt(s,l,m){let L;"string"==typeof m?L=m.charCodeAt(0)||0:m.hasOwnProperty(oe)&&(L=m[oe]),null==L&&(L=m[oe]=nt++);const N=255&L;l.data[s+(N>>5)]|=1<<N}(s,l,m)}function un(s,l,m){if(m&Ae.Optional)return s;q(l,"NodeInjector")}function kn(s,l,m,L){if(m&Ae.Optional&&void 0===L&&(L=null),0==(m&(Ae.Self|Ae.Host))){const N=s[9],B=xe(void 0);try{return N?N.get(l,L,m&Ae.Optional):G(l,L,m&Ae.Optional)}finally{xe(B)}}return un(L,l,m)}function ns(s,l,m,L=Ae.Default,N){if(null!==s){const B=function c3(s){if("string"==typeof s)return s.charCodeAt(0)||0;const l=s.hasOwnProperty(oe)?s[oe]:void 0;return"number"==typeof l?l>=0?255&l:Zo:l}(m);if("function"==typeof B){if(!wn(l,s,L))return L&Ae.Host?un(N,m,L):kn(l,m,L,N);try{const ae=B(L);if(null!=ae||L&Ae.Optional)return ae;q(m)}finally{xr()}}else if("number"==typeof B){let ae=null,Se=Di(s,l),Ve=-1,dt=L&Ae.Host?l[16][6]:null;for((-1===Se||L&Ae.SkipSelf)&&(Ve=-1===Se?Vi(s,l):l[Se+8],-1!==Ve&&d3(L,!1)?(ae=l[1],Se=Xe(Ve),l=We(Ve,l)):Se=-1);-1!==Se;){const wt=l[1];if($s(B,Se,wt.data)){const Wt=B1(Se,l,m,ae,L,dt);if(Wt!==Ss)return Wt}Ve=l[Se+8],-1!==Ve&&d3(L,l[1].data[Se+8]===dt)&&$s(B,Se,l)?(ae=wt,Se=Xe(Ve),l=We(Ve,l)):Se=-1}}}return kn(l,m,L,N)}const Ss={};function Zo(){return new Ko(Cr(),Hi())}function B1(s,l,m,L,N,B){const ae=l[1],Se=ae.data[s+8],wt=Ea(Se,ae,m,null==L?An(Se)&&Bt:L!=ae&&0!=(3&Se.type),N&Ae.Host&&B===Se);return null!==wt?lo(l,ae,wt,Se):Ss}function Ea(s,l,m,L,N){const B=s.providerIndexes,ae=l.data,Se=1048575&B,Ve=s.directiveStart,wt=B>>20,ci=N?Se+wt:s.directiveEnd;for(let _i=L?Se:Se+wt;_i<ci;_i++){const Ni=ae[_i];if(_i<Ve&&m===Ni||_i>=Ve&&Ni.type===m)return _i}if(N){const _i=ae[Ve];if(_i&&Cn(_i)&&_i.type===m)return Ve}return null}function lo(s,l,m,L){let N=s[m];const B=l.data;if(function xn(s){return s instanceof on}(N)){const ae=N;ae.resolving&&function ne(s,l){const m=l?`. Dependency path: ${l.join(" > ")} > ${s}`:"";throw new w(-200,`Circular dependency in DI detected for ${s}${m}`)}(W(B[m]));const Se=Ce(ae.canSeeViewProviders);ae.resolving=!0;const Ve=ae.injectImpl?xe(ae.injectImpl):null;wn(s,L,Ae.Default);try{N=s[m]=ae.factory(void 0,B,s,L),l.firstCreatePass&&m>=L.directiveStart&&function Pt(s,l,m){const{ngOnChanges:L,ngOnInit:N,ngDoCheck:B}=l.type.prototype;if(L){const ae=Dr(l);(m.preOrderHooks||(m.preOrderHooks=[])).push(s,ae),(m.preOrderCheckHooks||(m.preOrderCheckHooks=[])).push(s,ae)}N&&(m.preOrderHooks||(m.preOrderHooks=[])).push(0-s,N),B&&((m.preOrderHooks||(m.preOrderHooks=[])).push(s,B),(m.preOrderCheckHooks||(m.preOrderCheckHooks=[])).push(s,B))}(m,B[m],l)}finally{null!==Ve&&xe(Ve),Ce(Se),ae.resolving=!1,xr()}}return N}function $s(s,l,m){return!!(m[l+(s>>5)]&1<<s)}function d3(s,l){return!(s&Ae.Self||s&Ae.Host&&l)}class Ko{constructor(l,m){this._tNode=l,this._lView=m}get(l,m,L){return ns(this._tNode,this._lView,l,L,m)}}function rl(s){return ue(()=>{const l=s.prototype.constructor,m=l[De]||al(l),L=Object.prototype;let N=Object.getPrototypeOf(s.prototype).constructor;for(;N&&N!==L;){const B=N[De]||al(N);if(B&&B!==m)return B;N=Object.getPrototypeOf(N)}return B=>new B})}function al(s){return E(s)?()=>{const l=al(A(s));return l&&l()}:lr(s)}function sl(s){return function zi(s,l){if("class"===l)return s.classes;if("style"===l)return s.styles;const m=s.attrs;if(m){const L=m.length;let N=0;for(;N<L;){const B=m[N];if(Br(B))break;if(0===B)N+=2;else if("number"==typeof B)for(N++;N<L&&"string"==typeof m[N];)N++;else{if(B===l)return m[N+1];N+=2}}}return null}(Cr(),s)}const co="__parameters__";function wo(s,l,m){return ue(()=>{const L=function ol(s){return function(...m){if(s){const L=s(...m);for(const N in L)this[N]=L[N]}}}(l);function N(...B){if(this instanceof N)return L.apply(this,B),this;const ae=new N(...B);return Se.annotation=ae,Se;function Se(Ve,dt,wt){const Wt=Ve.hasOwnProperty(co)?Ve[co]:Object.defineProperty(Ve,co,{value:[]})[co];for(;Wt.length<=wt;)Wt.push(null);return(Wt[wt]=Wt[wt]||[]).push(ae),Ve}}return m&&(N.prototype=Object.create(m.prototype)),N.prototype.ngMetadataName=s,N.annotationCls=N,N})}class Or{constructor(l,m){this._desc=l,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof m?this.__NG_ELEMENT_ID__=m:void 0!==m&&(this.\u0275prov=$({token:this,providedIn:m.providedIn||"root",factory:m.factory}))}toString(){return`InjectionToken ${this._desc}`}}const So=new Or("AnalyzeForEntryComponents");function ls(s,l){void 0===l&&(l=s);for(let m=0;m<s.length;m++){let L=s[m];Array.isArray(L)?(l===s&&(l=s.slice(0,m)),ls(L,l)):l!==s&&l.push(L)}return l}function Xa(s,l){s.forEach(m=>Array.isArray(m)?Xa(m,l):l(m))}function f3(s,l,m){l>=s.length?s.push(m):s.splice(l,0,m)}function U1(s,l){return l>=s.length-1?s.pop():s.splice(l,1)[0]}function qo(s,l){const m=[];for(let L=0;L<s;L++)m.push(l);return m}function Ha(s,l,m){let L=Xs(s,l);return L>=0?s[1|L]=m:(L=~L,function q0(s,l,m,L){let N=s.length;if(N==l)s.push(m,L);else if(1===N)s.push(L,s[0]),s[0]=m;else{for(N--,s.push(s[N-1],s[N]);N>l;)s[N]=s[N-2],N--;s[l]=m,s[l+1]=L}}(s,L,l,m)),L}function Jo(s,l){const m=Xs(s,l);if(m>=0)return s[1|m]}function Xs(s,l){return function W1(s,l,m){let L=0,N=s.length>>m;for(;N!==L;){const B=L+(N-L>>1),ae=s[B<<m];if(l===ae)return B<<m;ae>l?N=B:L=B+1}return~(N<<m)}(s,l,1)}const qs={},Y1="__NG_DI_FLAG__",uo="ngTempTokenPath",ml=/\n/gm,e1="__source",id=y({provide:String,useValue:y});let j1;function gl(s){const l=j1;return j1=s,l}function t1(s,l=Ae.Default){if(void 0===j1)throw new w(203,"");return null===j1?G(s,void 0,l):j1.get(s,l&Ae.Optional?null:void 0,l)}function Fa(s,l=Ae.Default){return(function Te(){return ce}()||t1)(A(s),l)}const Z1=Fa;function m3(s){const l=[];for(let m=0;m<s.length;m++){const L=A(s[m]);if(Array.isArray(L)){if(0===L.length)throw new w(900,"");let N,B=Ae.Default;for(let ae=0;ae<L.length;ae++){const Se=L[ae],Ve=g3(Se);"number"==typeof Ve?-1===Ve?N=Se.token:B|=Ve:N=Se}l.push(Fa(N,B))}else l.push(Fa(L))}return l}function fo(s,l){return s[Y1]=l,s.prototype[Y1]=l,s}function g3(s){return s[Y1]}const po=fo(wo("Inject",s=>({token:s})),-1),n1=fo(wo("Optional"),8),Fs=fo(wo("Self"),2),Ts=fo(wo("SkipSelf"),4);let Ds,Q1;function mo(s){var l;return(null===(l=function b3(){if(void 0===Ds&&(Ds=null,di.trustedTypes))try{Ds=di.trustedTypes.createPolicy("angular",{createHTML:s=>s,createScript:s=>s,createScriptURL:s=>s})}catch(s){}return Ds}())||void 0===l?void 0:l.createHTML(s))||s}function bl(s){var l;return(null===(l=function x3(){if(void 0===Q1&&(Q1=null,di.trustedTypes))try{Q1=di.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:s=>s,createScript:s=>s,createScriptURL:s=>s})}catch(s){}return Q1}())||void 0===l?void 0:l.createHTML(s))||s}class rs{constructor(l){this.changingThisBreaksApplicationSecurity=l}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class xl extends rs{getTypeName(){return"HTML"}}class q1 extends rs{getTypeName(){return"Style"}}class cd extends rs{getTypeName(){return"Script"}}class M3 extends rs{getTypeName(){return"URL"}}class To extends rs{getTypeName(){return"ResourceURL"}}function Is(s){return s instanceof rs?s.changingThisBreaksApplicationSecurity:s}function Ao(s,l){const m=E3(s);if(null!=m&&m!==l){if("ResourceURL"===m&&"URL"===l)return!0;throw new Error(`Required a safe ${l}, got a ${m} (see https://g.co/ng/security#xss)`)}return m===l}function E3(s){return s instanceof rs&&s.getTypeName()||null}function t5(s){return new xl(s)}function dd(s){return new q1(s)}function i5(s){return new cd(s)}function hd(s){return new M3(s)}function n5(s){return new To(s)}class S3{constructor(l){this.inertDocumentHelper=l}getInertBodyElement(l){l="<body><remove></remove>"+l;try{const m=(new window.DOMParser).parseFromString(mo(l),"text/html").body;return null===m?this.inertDocumentHelper.getInertBodyElement(l):(m.removeChild(m.firstChild),m)}catch(m){return null}}}class L3{constructor(l){if(this.defaultDoc=l,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const m=this.inertDocument.createElement("html");this.inertDocument.appendChild(m);const L=this.inertDocument.createElement("body");m.appendChild(L)}}getInertBodyElement(l){const m=this.inertDocument.createElement("template");if("content"in m)return m.innerHTML=mo(l),m;const L=this.inertDocument.createElement("body");return L.innerHTML=mo(l),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(L),L}stripCustomNsAttrs(l){const m=l.attributes;for(let N=m.length-1;0<N;N--){const ae=m.item(N).name;("xmlns:ns1"===ae||0===ae.indexOf("ns1:"))&&l.removeAttribute(ae)}let L=l.firstChild;for(;L;)L.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(L),L=L.nextSibling}}const J1=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,ud=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function Do(s){return(s=String(s)).match(J1)||s.match(ud)?s:"unsafe:"+s}function Vs(s){const l={};for(const m of s.split(","))l[m]=!0;return l}function Io(...s){const l={};for(const m of s)for(const L in m)m.hasOwnProperty(L)&&(l[L]=!0);return l}const A3=Vs("area,br,col,hr,img,wbr"),s1=Vs("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),e2=Vs("rp,rt"),ua=Io(A3,Io(s1,Vs("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")),Io(e2,Vs("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")),Io(e2,s1)),t2=Vs("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Ml=Vs("srcset"),go=Io(t2,Ml,Vs("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Vs("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")),l1=Vs("script,style,template");class I3{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(l){let m=l.firstChild,L=!0;for(;m;)if(m.nodeType===Node.ELEMENT_NODE?L=this.startElement(m):m.nodeType===Node.TEXT_NODE?this.chars(m.nodeValue):this.sanitizedSomething=!0,L&&m.firstChild)m=m.firstChild;else for(;m;){m.nodeType===Node.ELEMENT_NODE&&this.endElement(m);let N=this.checkClobberedElement(m,m.nextSibling);if(N){m=N;break}m=this.checkClobberedElement(m,m.parentNode)}return this.buf.join("")}startElement(l){const m=l.nodeName.toLowerCase();if(!ua.hasOwnProperty(m))return this.sanitizedSomething=!0,!l1.hasOwnProperty(m);this.buf.push("<"),this.buf.push(m);const L=l.attributes;for(let N=0;N<L.length;N++){const B=L.item(N),ae=B.name,Se=ae.toLowerCase();if(!go.hasOwnProperty(Se)){this.sanitizedSomething=!0;continue}let Ve=B.value;t2[Se]&&(Ve=Do(Ve)),Ml[Se]&&(s=Ve,Ve=(s=String(s)).split(",").map(l=>Do(l.trim())).join(", ")),this.buf.push(" ",ae,'="',O3(Ve),'"')}var s;return this.buf.push(">"),!0}endElement(l){const m=l.nodeName.toLowerCase();ua.hasOwnProperty(m)&&!A3.hasOwnProperty(m)&&(this.buf.push("</"),this.buf.push(m),this.buf.push(">"))}chars(l){this.buf.push(O3(l))}checkClobberedElement(l,m){if(m&&(l.compareDocumentPosition(m)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${l.outerHTML}`);return m}}const pd=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,md=/([^\#-~ |!])/g;function O3(s){return s.replace(/&/g,"&amp;").replace(pd,function(l){return"&#"+(1024*(l.charCodeAt(0)-55296)+(l.charCodeAt(1)-56320)+65536)+";"}).replace(md,function(l){return"&#"+l.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let c1;function El(s,l){let m=null;try{c1=c1||function w3(s){const l=new L3(s);return function r5(){try{return!!(new window.DOMParser).parseFromString(mo(""),"text/html")}catch(s){return!1}}()?new S3(l):l}(s);let L=l?String(l):"";m=c1.getInertBodyElement(L);let N=5,B=L;do{if(0===N)throw new Error("Failed to sanitize html because the input is unstable");N--,L=B,B=m.innerHTML,m=c1.getInertBodyElement(L)}while(L!==B);return mo((new I3).sanitizeChildren(d1(m)||m))}finally{if(m){const L=d1(m)||m;for(;L.firstChild;)L.removeChild(L.firstChild)}}}function d1(s){return"content"in s&&function gd(s){return s.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===s.nodeName}(s)?s.content:null}var ea=(()=>((ea=ea||{})[ea.NONE=0]="NONE",ea[ea.HTML=1]="HTML",ea[ea.STYLE=2]="STYLE",ea[ea.SCRIPT=3]="SCRIPT",ea[ea.URL=4]="URL",ea[ea.RESOURCE_URL=5]="RESOURCE_URL",ea))();function k3(s){const l=Co();return l?bl(l.sanitize(ea.HTML,s)||""):Ao(s,"HTML")?bl(Is(s)):El(ha(),U(s))}function Sl(s){const l=Co();return l?l.sanitize(ea.URL,s)||"":Ao(s,"URL")?Is(s):Do(U(s))}function Co(){const s=Hi();return s&&s[12]}const Ll="__ngContext__";function Va(s,l){s[Ll]=l}function Tl(s){const l=function u1(s){return s[Ll]||null}(s);return l?Array.isArray(l)?l:l.lView:null}function r2(s){return s.ngOriginalError}function kl(s,...l){s.error(...l)}class a2{constructor(){this._console=console}handleError(l){const m=this._findOriginalError(l),L=function Sd(s){return s&&s.ngErrorLogger||kl}(l);L(this._console,"ERROR",l),m&&L(this._console,"ORIGINAL ERROR",m)}_findOriginalError(l){let m=l&&r2(l);for(;m&&r2(m);)m=r2(m);return m||null}}const kd=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(di))();function W3(s){return s.ownerDocument.defaultView}function Os(s){return s instanceof Function?s():s}var ys=(()=>((ys=ys||{})[ys.Important=1]="Important",ys[ys.DashCase=2]="DashCase",ys))();function Nl(s,l){return undefined(s,l)}function ko(s){const l=s[3];return hn(l)?l[3]:l}function Hl(s){return Hd(s[13])}function $3(s){return Hd(s[4])}function Hd(s){for(;null!==s&&!hn(s);)s=s[4];return s}function Po(s,l,m,L,N){if(null!=L){let B,ae=!1;hn(L)?B=L:ki(L)&&(ae=!0,L=L[0]);const Se=Ye(L);0===s&&null!==m?null==N?p1(l,m,Se):vo(l,m,Se,N||null,!0):1===s&&null!==m?vo(l,m,Se,N||null,!0):2===s?function Gl(s,l,m){const L=yo(s,l);L&&function Wd(s,l,m,L){Wn(s)?s.removeChild(l,m,L):l.removeChild(m)}(s,L,l,m)}(l,Se,ae):3===s&&l.destroyNode(Se),null!=B&&function r4(s,l,m,L,N){const B=m[7];B!==Ye(m)&&Po(l,s,L,B,N);for(let Se=10;Se<m.length;Se++){const Ve=m[Se];g1(Ve[1],Ve,s,l,L,B)}}(l,s,B,m,N)}}function Js(s,l,m){if(Wn(s))return s.createElement(l,m);{const L=null!==m?function Hr(s){const l=s.toLowerCase();return"svg"===l?"http://www.w3.org/2000/svg":"math"===l?"http://www.w3.org/1998/MathML/":null}(m):null;return null===L?s.createElement(l):s.createElementNS(L,l)}}function Vl(s,l){const m=s[9],L=m.indexOf(l),N=l[3];1024&l[2]&&(l[2]&=-1025,Be(N,-1)),m.splice(L,1)}function _o(s,l){if(s.length<=10)return;const m=10+l,L=s[m];if(L){const N=L[17];null!==N&&N!==s&&Vl(N,L),l>0&&(s[m-1][4]=L[4]);const B=U1(s,10+l);!function l2(s,l){g1(s,l,l[11],2,null,null),l[0]=null,l[6]=null}(L[1],L);const ae=B[19];null!==ae&&ae.detachView(B[1]),L[3]=null,L[4]=null,L[2]&=-129}return L}function q3(s,l){if(!(256&l[2])){const m=l[11];Wn(m)&&m.destroyNode&&g1(s,l,m,3,null,null),function Bd(s){let l=s[13];if(!l)return zl(s[1],s);for(;l;){let m=null;if(ki(l))m=l[13];else{const L=l[10];L&&(m=L)}if(!m){for(;l&&!l[4]&&l!==s;)ki(l)&&zl(l[1],l),l=l[3];null===l&&(l=s),ki(l)&&zl(l[1],l),m=l&&l[4]}l=m}}(l)}}function zl(s,l){if(!(256&l[2])){l[2]&=-129,l[2]|=256,function J3(s,l){let m;if(null!=s&&null!=(m=s.destroyHooks))for(let L=0;L<m.length;L+=2){const N=l[m[L]];if(!(N instanceof on)){const B=m[L+1];if(Array.isArray(B))for(let ae=0;ae<B.length;ae+=2){const Se=N[B[ae]],Ve=B[ae+1];try{Ve.call(Se)}finally{}}else try{B.call(N)}finally{}}}}(s,l),function Gd(s,l){const m=s.cleanup,L=l[7];let N=-1;if(null!==m)for(let B=0;B<m.length-1;B+=2)if("string"==typeof m[B]){const ae=m[B+1],Se="function"==typeof ae?ae(l):Ye(l[ae]),Ve=L[N=m[B+2]],dt=m[B+3];"boolean"==typeof dt?Se.removeEventListener(m[B],Ve,dt):dt>=0?L[N=dt]():L[N=-dt].unsubscribe(),B+=2}else{const ae=L[N=m[B+1]];m[B].call(ae)}if(null!==L){for(let B=N+1;B<L.length;B++)L[B]();l[7]=null}}(s,l),1===l[1].type&&Wn(l[11])&&l[11].destroy();const m=l[17];if(null!==m&&hn(l[3])){m!==l[3]&&Vl(m,l);const L=l[19];null!==L&&L.detachView(s)}}}function Bl(s,l,m){return function e4(s,l,m){let L=l;for(;null!==L&&40&L.type;)L=(l=L).parent;if(null===L)return m[0];if(2&L.flags){const N=s.data[L.directiveStart].encapsulation;if(N===ht.None||N===ht.Emulated)return null}return Oi(L,m)}(s,l.parent,m)}function vo(s,l,m,L,N){Wn(s)?s.insertBefore(l,m,L,N):l.insertBefore(m,L,N)}function p1(s,l,m){Wn(s)?s.appendChild(l,m):l.appendChild(m)}function c2(s,l,m,L,N){null!==L?vo(s,l,m,L,N):p1(s,l,m)}function yo(s,l){return Wn(s)?s.parentNode(l):l.parentNode}function t4(s,l,m){return n4(s,l,m)}let n4=function i4(s,l,m){return 40&s.type?Oi(s,m):null};function h2(s,l,m,L){const N=Bl(s,L,l),B=l[11],Se=t4(L.parent||l[6],L,l);if(null!=N)if(Array.isArray(m))for(let Ve=0;Ve<m.length;Ve++)c2(B,N,m[Ve],Se,!1);else c2(B,N,m,Se,!1)}function m1(s,l){if(null!==l){const m=l.type;if(3&m)return Oi(l,s);if(4&m)return f2(-1,s[l.index]);if(8&m){const L=l.child;if(null!==L)return m1(s,L);{const N=s[l.index];return hn(N)?f2(-1,N):Ye(N)}}if(32&m)return Nl(l,s)()||Ye(s[l.index]);{const L=u2(s,l);return null!==L?Array.isArray(L)?L[0]:m1(ko(s[16]),L):m1(s,l.next)}}return null}function u2(s,l){return null!==l?s[16][6].projection[l.projection]:null}function f2(s,l){const m=10+s+1;if(m<l.length){const L=l[m],N=L[1].firstChild;if(null!==N)return m1(L,N)}return l[7]}function p2(s,l,m,L,N,B,ae){for(;null!=m;){const Se=L[m.index],Ve=m.type;if(ae&&0===l&&(Se&&Va(Ye(Se),L),m.flags|=4),64!=(64&m.flags))if(8&Ve)p2(s,l,m.child,L,N,B,!1),Po(l,s,N,Se,B);else if(32&Ve){const dt=Nl(m,L);let wt;for(;wt=dt();)Po(l,s,N,wt,B);Po(l,s,N,Se,B)}else 16&Ve?m2(s,l,L,m,N,B):Po(l,s,N,Se,B);m=ae?m.projectionNext:m.next}}function g1(s,l,m,L,N,B){p2(m,L,s.firstChild,l,N,B,!1)}function m2(s,l,m,L,N,B){const ae=m[16],Ve=ae[6].projection[L.projection];if(Array.isArray(Ve))for(let dt=0;dt<Ve.length;dt++)Po(l,s,N,Ve[dt],B);else p2(s,l,Ve,ae[3],N,B,!0)}function Wl(s,l,m){Wn(s)?s.setAttribute(l,"style",m):l.style.cssText=m}function Yl(s,l,m){Wn(s)?""===m?s.removeAttribute(l,"class"):s.setAttribute(l,"class",m):l.className=m}function a4(s,l,m){let L=s.length;for(;;){const N=s.indexOf(l,m);if(-1===N)return N;if(0===N||s.charCodeAt(N-1)<=32){const B=l.length;if(N+B===L||s.charCodeAt(N+B)<=32)return N}m=N+1}}const eo="ng-template";function s4(s,l,m){let L=0;for(;L<s.length;){let N=s[L++];if(m&&"class"===N){if(N=s[L],-1!==a4(N.toLowerCase(),l,0))return!0}else if(1===N){for(;L<s.length&&"string"==typeof(N=s[L++]);)if(N.toLowerCase()===l)return!0;return!1}}return!1}function jl(s){return 4===s.type&&s.value!==eo}function Zl(s,l,m){return l===(4!==s.type||m?s.value:eo)}function No(s,l,m){let L=4;const N=s.attrs||[],B=function o4(s){for(let l=0;l<s.length;l++)if(Br(s[l]))return l;return s.length}(N);let ae=!1;for(let Se=0;Se<l.length;Se++){const Ve=l[Se];if("number"!=typeof Ve){if(!ae)if(4&L){if(L=2|1&L,""!==Ve&&!Zl(s,Ve,m)||""===Ve&&1===l.length){if(ds(L))return!1;ae=!0}}else{const dt=8&L?Ve:l[++Se];if(8&L&&null!==s.attrs){if(!s4(s.attrs,dt,m)){if(ds(L))return!1;ae=!0}continue}const Wt=jd(8&L?"class":Ve,N,jl(s),m);if(-1===Wt){if(ds(L))return!1;ae=!0;continue}if(""!==dt){let ci;ci=Wt>B?"":N[Wt+1].toLowerCase();const _i=8&L?ci:null;if(_i&&-1!==a4(_i,dt,0)||2&L&&dt!==ci){if(ds(L))return!1;ae=!0}}}}else{if(!ae&&!ds(L)&&!ds(Ve))return!1;if(ae&&ds(Ve))continue;ae=!1,L=Ve|1&L}}return ds(L)||ae}function ds(s){return 0==(1&s)}function jd(s,l,m,L){if(null===l)return-1;let N=0;if(L||!m){let B=!1;for(;N<l.length;){const ae=l[N];if(ae===s)return N;if(3===ae||6===ae)B=!0;else{if(1===ae||2===ae){let Se=l[++N];for(;"string"==typeof Se;)Se=l[++N];continue}if(4===ae)break;if(0===ae){N+=4;continue}}N+=B?1:2}return-1}return function l5(s,l){let m=s.indexOf(4);if(m>-1)for(m++;m<s.length;){const L=s[m];if("number"==typeof L)return-1;if(L===l)return m;m++}return-1}(l,s)}function Zd(s,l,m=!1){for(let L=0;L<l.length;L++)if(No(s,l[L],m))return!0;return!1}function $d(s,l){e:for(let m=0;m<l.length;m++){const L=l[m];if(s.length===L.length){for(let N=0;N<s.length;N++)if(s[N]!==L[N])continue e;return!0}}return!1}function g2(s,l){return s?":not("+l.trim()+")":l}function Qd(s){let l=s[0],m=1,L=2,N="",B=!1;for(;m<s.length;){let ae=s[m];if("string"==typeof ae)if(2&L){const Se=s[++m];N+="["+ae+(Se.length>0?'="'+Se+'"':"")+"]"}else 8&L?N+="."+ae:4&L&&(N+=" "+ae);else""!==N&&!ds(ae)&&(l+=g2(B,N),N=""),L=ae,B=B||!ds(L);m++}return""!==N&&(l+=g2(B,N)),l}const Bn={};function c4(s){d4(Vn(),Hi(),hr()+s,!1)}function d4(s,l,m,L){if(!L)if(3==(3&l[2])){const B=s.preOrderCheckHooks;null!==B&&gi(l,B,m)}else{const B=s.preOrderHooks;null!==B&&ti(l,B,0,m)}zr(m)}function _1(s,l){return s<<17|l<<2}function hs(s){return s>>17&32767}function $l(s){return 2|s}function ks(s){return(131068&s)>>2}function Ql(s,l){return-131069&s|l<<2}function C2(s){return 1|s}function l6(s,l){const m=s.contentQueries;if(null!==m)for(let L=0;L<m.length;L+=2){const N=m[L],B=m[L+1];if(-1!==B){const ae=s.data[B];tn(N),ae.contentQueries(2,l[B],B)}}}function E2(s,l,m,L,N,B,ae,Se,Ve,dt){const wt=l.blueprint.slice();return wt[0]=N,wt[2]=140|L,Ke(wt),wt[3]=wt[15]=s,wt[8]=m,wt[10]=ae||s&&s[10],wt[11]=Se||s&&s[11],wt[12]=Ve||s&&s[12]||null,wt[9]=dt||s&&s[9]||null,wt[6]=B,wt[16]=2==l.type?s[16]:wt,wt}function Ho(s,l,m,L,N){let B=s.data[l];if(null===B)B=function b4(s,l,m,L,N){const B=ss(),ae=gs(),Ve=s.data[l]=function d6(s,l,m,L,N,B){return{type:m,index:L,insertBeforeIndex:null,injectorIndex:l?l.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:N,attrs:B,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:l,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,ae?B:B&&B.parent,m,l,L,N);return null===s.firstChild&&(s.firstChild=Ve),null!==B&&(ae?null==B.child&&null!==Ve.parent&&(B.child=Ve):null===B.next&&(B.next=Ve)),Ve}(s,l,m,L,N),function Ge(){return Ne.lFrame.inI18n}()&&(B.flags|=64);else if(64&B.type){B.type=m,B.value=L,B.attrs=N;const ae=function Da(){const s=Ne.lFrame,l=s.currentTNode;return s.isParent?l:l.parent}();B.injectorIndex=null===ae?-1:ae.injectorIndex}return cr(B,!0),B}function Fo(s,l,m,L){if(0===m)return-1;const N=l.length;for(let B=0;B<m;B++)l.push(L),s.blueprint.push(L),s.data.push(null);return N}function bs(s,l,m){Pn(l);try{const L=s.viewQuery;null!==L&&R4(1,L,m);const N=s.template;null!==N&&c6(s,l,N,1,m),s.firstCreatePass&&(s.firstCreatePass=!1),s.staticContentQueries&&l6(s,l),s.staticViewQueries&&R4(2,s.viewQuery,m);const B=s.components;null!==B&&function y5(s,l){for(let m=0;m<l.length;m++)w6(s,l[m])}(l,B)}catch(L){throw s.firstCreatePass&&(s.incompleteFirstPass=!0,s.firstCreatePass=!1),L}finally{l[2]&=-5,dr()}}function bo(s,l,m,L){const N=l[2];if(256!=(256&N)){Pn(l);try{Ke(l),function Ct(s){return Ne.lFrame.bindingIndex=s}(s.bindingStartIndex),null!==m&&c6(s,l,m,2,L);const ae=3==(3&N);if(ae){const dt=s.preOrderCheckHooks;null!==dt&&gi(l,dt,null)}else{const dt=s.preOrderHooks;null!==dt&&ti(l,dt,0,null),fi(l,0)}if(function k4(s){for(let l=Hl(s);null!==l;l=$3(l)){if(!l[2])continue;const m=l[9];for(let L=0;L<m.length;L++){const N=m[L],B=N[3];0==(1024&N[2])&&Be(B,1),N[2]|=1024}}}(l),function M6(s){for(let l=Hl(s);null!==l;l=$3(l))for(let m=10;m<l.length;m++){const L=l[m],N=L[1];$t(L)&&bo(N,L,N.template,L[8])}}(l),null!==s.contentQueries&&l6(s,l),ae){const dt=s.contentCheckHooks;null!==dt&&gi(l,dt)}else{const dt=s.contentHooks;null!==dt&&ti(l,dt,1),fi(l,1)}!function v4(s,l){const m=s.hostBindingOpCodes;if(null!==m)try{for(let L=0;L<m.length;L++){const N=m[L];if(N<0)zr(~N);else{const B=N,ae=m[++L],Se=m[++L];Ht(ae,B),Se(2,l[B])}}}finally{zr(-1)}}(s,l);const Se=s.components;null!==Se&&function y4(s,l){for(let m=0;m<l.length;m++)E6(s,l[m])}(l,Se);const Ve=s.viewQuery;if(null!==Ve&&R4(2,Ve,L),ae){const dt=s.viewCheckHooks;null!==dt&&gi(l,dt)}else{const dt=s.viewHooks;null!==dt&&ti(l,dt,2),fi(l,2)}!0===s.firstUpdatePass&&(s.firstUpdatePass=!1),l[2]&=-73,1024&l[2]&&(l[2]&=-1025,Be(l[3],-1))}finally{dr()}}}function b5(s,l,m,L){const N=l[10],ae=mt(l);try{!ae&&N.begin&&N.begin(),ae&&bs(s,l,L),bo(s,l,m,L)}finally{!ae&&N.end&&N.end()}}function c6(s,l,m,L,N){const B=hr(),ae=2&L;try{zr(-1),ae&&l.length>20&&d4(s,l,20,!1),m(L,N)}finally{zr(B)}}function x4(s,l,m){if(Hn(l)){const N=l.directiveEnd;for(let B=l.directiveStart;B<N;B++){const ae=s.data[B];ae.contentQueries&&ae.contentQueries(1,m[B],B)}}}function sc(s,l,m){!Ca()||(function E5(s,l,m,L){const N=m.directiveStart,B=m.directiveEnd;s.firstCreatePass||Qt(m,l),Va(L,l);const ae=m.initialInputs;for(let Se=N;Se<B;Se++){const Ve=s.data[Se],dt=Cn(Ve);dt&&x6(l,m,Ve);const wt=lo(l,s,Se,m);Va(wt,l),null!==ae&&S5(0,Se-N,wt,Ve,0,ae),dt&&(oi(m.index,l)[8]=wt)}}(s,l,m,Oi(m,l)),128==(128&m.flags)&&function D4(s,l,m){const L=m.directiveStart,N=m.directiveEnd,ae=m.index,Se=function ii(){return Ne.lFrame.currentDirectiveIndex}();try{zr(ae);for(let Ve=L;Ve<N;Ve++){const dt=s.data[Ve],wt=l[Ve];ni(Ve),(null!==dt.hostBindings||0!==dt.hostVars||null!==dt.hostAttrs)&&_6(dt,wt)}}finally{zr(-1),ni(Se)}}(s,l,m))}function oc(s,l,m=Oi){const L=l.localNames;if(null!==L){let N=l.index+1;for(let B=0;B<L.length;B+=2){const ae=L[B+1],Se=-1===ae?m(l,s):s[ae];s[N++]=Se}}}function M4(s){const l=s.tView;return null===l||l.incompleteFirstPass?s.tView=w2(1,null,s.template,s.decls,s.vars,s.directiveDefs,s.pipeDefs,s.viewQuery,s.schemas,s.consts):l}function w2(s,l,m,L,N,B,ae,Se,Ve,dt){const wt=20+L,Wt=wt+N,ci=function E4(s,l){const m=[];for(let L=0;L<l;L++)m.push(L<s?null:Bn);return m}(wt,Wt),_i="function"==typeof dt?dt():dt;return ci[1]={type:s,blueprint:ci,template:m,queries:null,viewQuery:Se,declTNode:l,data:ci.slice().fill(null,wt),bindingStartIndex:wt,expandoStartIndex:Wt,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 B?B():B,pipeRegistry:"function"==typeof ae?ae():ae,firstChild:null,schemas:Ve,consts:_i,incompleteFirstPass:!1}}function L4(s,l,m,L){const N=N4(l);null===m?N.push(L):(N.push(m),s.firstCreatePass&&H4(s).push(L,N.length-1))}function T4(s,l,m){for(let L in s)if(s.hasOwnProperty(L)){const N=s[L];(m=null===m?{}:m).hasOwnProperty(L)?m[L].push(l,N):m[L]=[l,N]}return m}function Ja(s,l,m,L,N,B,ae,Se){const Ve=Oi(l,m);let wt,dt=l.inputs;!Se&&null!=dt&&(wt=dt[L])?(V4(s,m,wt,L,N),An(l)&&function f6(s,l){const m=oi(l,s);16&m[2]||(m[2]|=64)}(m,l.index)):3&l.type&&(L=function u6(s){return"class"===s?"className":"for"===s?"htmlFor":"formaction"===s?"formAction":"innerHtml"===s?"innerHTML":"readonly"===s?"readOnly":"tabindex"===s?"tabIndex":s}(L),N=null!=ae?ae(N,l.value||"",L):N,Wn(B)?B.setProperty(Ve,L,N):Na(L)||(Ve.setProperty?Ve.setProperty(L,N):Ve[L]=N))}function lc(s,l,m,L){let N=!1;if(Ca()){const B=function v6(s,l,m){const L=s.directiveRegistry;let N=null;if(L)for(let B=0;B<L.length;B++){const ae=L[B];Zd(m,ae.selectors,!1)&&(N||(N=[]),Mn(Qt(m,l),s,ae.type),Cn(ae)?(y6(s,m),N.unshift(ae)):N.push(ae))}return N}(s,l,m),ae=null===L?null:{"":-1};if(null!==B){N=!0,cc(m,s.data.length,B.length);for(let wt=0;wt<B.length;wt++){const Wt=B[wt];Wt.providersResolver&&Wt.providersResolver(Wt)}let Se=!1,Ve=!1,dt=Fo(s,l,B.length,null);for(let wt=0;wt<B.length;wt++){const Wt=B[wt];m.mergedAttrs=za(m.mergedAttrs,Wt.hostAttrs),b6(s,m,l,dt,Wt),w5(dt,Wt,ae),null!==Wt.contentQueries&&(m.flags|=8),(null!==Wt.hostBindings||null!==Wt.hostAttrs||0!==Wt.hostVars)&&(m.flags|=128);const ci=Wt.type.prototype;!Se&&(ci.ngOnChanges||ci.ngOnInit||ci.ngDoCheck)&&((s.preOrderHooks||(s.preOrderHooks=[])).push(m.index),Se=!0),!Ve&&(ci.ngOnChanges||ci.ngDoCheck)&&((s.preOrderCheckHooks||(s.preOrderCheckHooks=[])).push(m.index),Ve=!0),dt++}!function h6(s,l){const L=l.directiveEnd,N=s.data,B=l.attrs,ae=[];let Se=null,Ve=null;for(let dt=l.directiveStart;dt<L;dt++){const wt=N[dt],Wt=wt.inputs,ci=null===B||jl(l)?null:O4(Wt,B);ae.push(ci),Se=T4(Wt,dt,Se),Ve=T4(wt.outputs,dt,Ve)}null!==Se&&(Se.hasOwnProperty("class")&&(l.flags|=16),Se.hasOwnProperty("style")&&(l.flags|=32)),l.initialInputs=ae,l.inputs=Se,l.outputs=Ve}(s,m)}ae&&function I4(s,l,m){if(l){const L=s.localNames=[];for(let N=0;N<l.length;N+=2){const B=m[l[N+1]];if(null==B)throw new w(-301,!1);L.push(l[N],B)}}}(m,L,ae)}return m.mergedAttrs=za(m.mergedAttrs,m.attrs),N}function C6(s,l,m,L,N,B){const ae=B.hostBindings;if(ae){let Se=s.hostBindingOpCodes;null===Se&&(Se=s.hostBindingOpCodes=[]);const Ve=~l.index;(function A4(s){let l=s.length;for(;l>0;){const m=s[--l];if("number"==typeof m&&m<0)return m}return 0})(Se)!=Ve&&Se.push(Ve),Se.push(L,N,ae)}}function _6(s,l){null!==s.hostBindings&&s.hostBindings(1,l)}function y6(s,l){l.flags|=2,(s.components||(s.components=[])).push(l.index)}function w5(s,l,m){if(m){if(l.exportAs)for(let L=0;L<l.exportAs.length;L++)m[l.exportAs[L]]=s;Cn(l)&&(m[""]=s)}}function cc(s,l,m){s.flags|=1,s.directiveStart=l,s.directiveEnd=l+m,s.providerIndexes=l}function b6(s,l,m,L,N){s.data[L]=N;const B=N.factory||(N.factory=lr(N.type)),ae=new on(B,Cn(N),null);s.blueprint[L]=ae,m[L]=ae,C6(s,l,0,L,Fo(s,m,N.hostVars,Bn),N)}function x6(s,l,m){const L=Oi(l,s),N=M4(m),B=s[10],ae=T2(s,E2(s,N,null,m.onPush?64:16,L,l,B,B.createRenderer(L,m),null,null));s[l.index]=ae}function zs(s,l,m,L,N,B){const ae=Oi(s,l);!function S2(s,l,m,L,N,B,ae){if(null==B)Wn(s)?s.removeAttribute(l,N,m):l.removeAttribute(N);else{const Se=null==ae?U(B):ae(B,L||"",N);Wn(s)?s.setAttribute(l,N,Se,m):m?l.setAttributeNS(m,N,Se):l.setAttribute(N,Se)}}(l[11],ae,B,s.value,m,L,N)}function S5(s,l,m,L,N,B){const ae=B[l];if(null!==ae){const Se=L.setInput;for(let Ve=0;Ve<ae.length;){const dt=ae[Ve++],wt=ae[Ve++],Wt=ae[Ve++];null!==Se?L.setInput(m,Wt,dt,wt):m[wt]=Wt}}}function O4(s,l){let m=null,L=0;for(;L<l.length;){const N=l[L];if(0!==N)if(5!==N){if("number"==typeof N)break;s.hasOwnProperty(N)&&(null===m&&(m=[]),m.push(N,s[N],l[L+1])),L+=2}else L+=2;else L+=4}return m}function dc(s,l,m,L){return new Array(s,!0,!1,l,null,0,L,m,null,null)}function E6(s,l){const m=oi(l,s);if($t(m)){const L=m[1];80&m[2]?bo(L,m,L.template,m[8]):m[5]>0&&L2(m)}}function L2(s){for(let L=Hl(s);null!==L;L=$3(L))for(let N=10;N<L.length;N++){const B=L[N];if(1024&B[2]){const ae=B[1];bo(ae,B,ae.template,B[8])}else B[5]>0&&L2(B)}const m=s[1].components;if(null!==m)for(let L=0;L<m.length;L++){const N=oi(m[L],s);$t(N)&&N[5]>0&&L2(N)}}function w6(s,l){const m=oi(l,s),L=m[1];(function P4(s,l){for(let m=l.length;m<s.blueprint.length;m++)l.push(s.blueprint[m])})(L,m),bs(L,m,m[8])}function T2(s,l){return s[13]?s[14][4]=l:s[13]=l,s[14]=l,l}function A2(s){for(;s;){s[2]|=64;const l=ko(s);if(wi(s)&&!l)return s;s=l}return null}function uc(s){!function D2(s){for(let l=0;l<s.components.length;l++){const m=s.components[l],L=Tl(m),N=L[1];b5(N,L,N.template,m)}}(s[8])}function R4(s,l,m){tn(0),l(s,m)}const T6=(()=>Promise.resolve(null))();function N4(s){return s[7]||(s[7]=[])}function H4(s){return s.cleanup||(s.cleanup=[])}function F4(s,l,m){return(null===s||Cn(s))&&(m=function Ot(s){for(;Array.isArray(s);){if("object"==typeof s[1])return s;s=s[0]}return null}(m[l.index])),m[11]}function A6(s,l){const m=s[9],L=m?m.get(a2,null):null;L&&L.handleError(l)}function V4(s,l,m,L,N){for(let B=0;B<m.length;){const ae=m[B++],Se=m[B++],Ve=l[ae],dt=s.data[ae];null!==dt.setInput?dt.setInput(Ve,N,L,Se):Ve[Se]=N}}function Bs(s,l,m){const L=Si(l,s);!function Q3(s,l,m){Wn(s)?s.setValue(l,m):l.textContent=m}(s[11],L,m)}function I2(s,l,m){let L=m?s.styles:null,N=m?s.classes:null,B=0;if(null!==l)for(let ae=0;ae<l.length;ae++){const Se=l[ae];"number"==typeof Se?B=Se:1==B?N=D(N,Se):2==B&&(L=D(L,Se+": "+l[++ae]+";"))}m?s.styles=L:s.stylesWithoutHost=L,m?s.classes=N:s.classesWithoutHost=N}const fc=new Or("INJECTOR",-1);class O6{get(l,m=qs){if(m===qs){const L=new Error(`NullInjectorError: No provider for ${P(l)}!`);throw L.name="NullInjectorError",L}return m}}const pc=new Or("Set Injector scope."),O2={},k6={};let mc;function gc(){return void 0===mc&&(mc=new O6),mc}function P6(s,l=null,m=null,L){const N=R6(s,l,m,L);return N._resolveInjectorDefTypes(),N}function R6(s,l=null,m=null,L){return new A5(s,m,l||gc(),L)}class A5{constructor(l,m,L,N=null){this.parent=L,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const B=[];m&&Xa(m,Se=>this.processProvider(Se,l,m)),Xa([l],Se=>this.processInjectorType(Se,[],B)),this.records.set(fc,v1(void 0,this));const ae=this.records.get(pc);this.scope=null!=ae?ae.value:null,this.source=N||("object"==typeof l?null:P(l))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(l=>l.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(l,m=qs,L=Ae.Default){this.assertNotDestroyed();const N=gl(this),B=xe(void 0);try{if(!(L&Ae.SkipSelf)){let Se=this.records.get(l);if(void 0===Se){const Ve=function P5(s){return"function"==typeof s||"object"==typeof s&&s instanceof Or}(l)&&ke(l);Se=Ve&&this.injectableDefInScope(Ve)?v1(Cc(l),O2):null,this.records.set(l,Se)}if(null!=Se)return this.hydrate(l,Se)}return(L&Ae.Self?gc():this.parent).get(l,m=L&Ae.Optional&&m===qs?null:m)}catch(ae){if("NullInjectorError"===ae.name){if((ae[uo]=ae[uo]||[]).unshift(P(l)),N)throw ae;return function nd(s,l,m,L){const N=s[uo];throw l[e1]&&N.unshift(l[e1]),s.message=function C3(s,l,m,L=null){s=s&&"\n"===s.charAt(0)&&"\u0275"==s.charAt(1)?s.substr(2):s;let N=P(l);if(Array.isArray(l))N=l.map(P).join(" -> ");else if("object"==typeof l){let B=[];for(let ae in l)if(l.hasOwnProperty(ae)){let Se=l[ae];B.push(ae+":"+("string"==typeof Se?JSON.stringify(Se):P(Se)))}N=`{${B.join(", ")}}`}return`${m}${L?"("+L+")":""}[${N}]: ${s.replace(ml,"\n ")}`}("\n"+s.message,N,m,L),s.ngTokenPath=N,s[uo]=null,s}(ae,l,"R3InjectorError",this.source)}throw ae}finally{xe(B),gl(N)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(l=>this.get(l))}toString(){const l=[];return this.records.forEach((L,N)=>l.push(P(N))),`R3Injector[${l.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new w(205,!1)}processInjectorType(l,m,L){if(!(l=A(l)))return!1;let N=be(l);const B=null==N&&l.ngModule||void 0,ae=void 0===B?l:B,Se=-1!==L.indexOf(ae);if(void 0!==B&&(N=be(B)),null==N)return!1;if(null!=N.imports&&!Se){let wt;L.push(ae);try{Xa(N.imports,Wt=>{this.processInjectorType(Wt,m,L)&&(void 0===wt&&(wt=[]),wt.push(Wt))})}finally{}if(void 0!==wt)for(let Wt=0;Wt<wt.length;Wt++){const{ngModule:ci,providers:_i}=wt[Wt];Xa(_i,Ni=>this.processProvider(Ni,ci,_i||Qe))}}this.injectorDefTypes.add(ae);const Ve=lr(ae)||(()=>new ae);this.records.set(ae,v1(Ve,O2));const dt=N.providers;if(null!=dt&&!Se){const wt=l;Xa(dt,Wt=>this.processProvider(Wt,wt,dt))}return void 0!==B&&void 0!==l.providers}processProvider(l,m,L){let N=y1(l=A(l))?l:A(l&&l.provide);const B=function N6(s,l,m){return H6(s)?v1(void 0,s.useValue):v1(z4(s),O2)}(l);if(y1(l)||!0!==l.multi)this.records.get(N);else{let ae=this.records.get(N);ae||(ae=v1(void 0,O2,!0),ae.factory=()=>m3(ae.multi),this.records.set(N,ae)),N=l,ae.multi.push(l)}this.records.set(N,B)}hydrate(l,m){return m.value===O2&&(m.value=k6,m.value=m.factory()),"object"==typeof m.value&&m.value&&function k5(s){return null!==s&&"object"==typeof s&&"function"==typeof s.ngOnDestroy}(m.value)&&this.onDestroy.add(m.value),m.value}injectableDefInScope(l){if(!l.providedIn)return!1;const m=A(l.providedIn);return"string"==typeof m?"any"===m||m===this.scope:this.injectorDefTypes.has(m)}}function Cc(s){const l=ke(s),m=null!==l?l.factory:lr(s);if(null!==m)return m;if(s instanceof Or)throw new w(204,!1);if(s instanceof Function)return function D5(s){const l=s.length;if(l>0)throw qo(l,"?"),new w(204,!1);const m=function te(s){const l=s&&(s[Z]||s[ot]);if(l){const m=function ze(s){if(s.hasOwnProperty("name"))return s.name;const l=(""+s).match(/^function\s*([^\s(]+)/);return null===l?"":l[1]}(s);return console.warn(`DEPRECATED: DI is instantiating a token "${m}" 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 "${m}" class.`),l}return null}(s);return null!==m?()=>m.factory(s):()=>new s}(s);throw new w(204,!1)}function z4(s,l,m){let L;if(y1(s)){const N=A(s);return lr(N)||Cc(N)}if(H6(s))L=()=>A(s.useValue);else if(function B4(s){return!(!s||!s.useFactory)}(s))L=()=>s.useFactory(...m3(s.deps||[]));else if(function I5(s){return!(!s||!s.useExisting)}(s))L=()=>Fa(A(s.useExisting));else{const N=A(s&&(s.useClass||s.provide));if(!function O5(s){return!!s.deps}(s))return lr(N)||Cc(N);L=()=>new N(...m3(s.deps))}return L}function v1(s,l,m=!1){return{factory:s,value:l,multi:m?[]:void 0}}function H6(s){return null!==s&&"object"==typeof s&&id in s}function y1(s){return"function"==typeof s}let Us=(()=>{class s{static create(m,L){var N;if(Array.isArray(m))return P6({name:""},L,m,"");{const B=null!==(N=m.name)&&void 0!==N?N:"";return P6({name:B},m.parent,m.providers,B)}}}return s.THROW_IF_NOT_FOUND=qs,s.NULL=new O6,s.\u0275prov=$({token:s,providedIn:"any",factory:()=>Fa(fc)}),s.__NG_ELEMENT_ID__=-1,s})();function Q6(s,l){qt(Tl(s)[1],Cr())}function _c(s){let l=function X6(s){return Object.getPrototypeOf(s.prototype).constructor}(s.type),m=!0;const L=[s];for(;l;){let N;if(Cn(s))N=l.\u0275cmp||l.\u0275dir;else{if(l.\u0275cmp)throw new w(903,"");N=l.\u0275dir}if(N){if(m){L.push(N);const ae=s;ae.inputs=$4(s.inputs),ae.declaredInputs=$4(s.declaredInputs),ae.outputs=$4(s.outputs);const Se=N.hostBindings;Se&&U5(s,Se);const Ve=N.viewQuery,dt=N.contentQueries;if(Ve&&z5(s,Ve),dt&&B5(s,dt),d(s.inputs,N.inputs),d(s.declaredInputs,N.declaredInputs),d(s.outputs,N.outputs),Cn(N)&&N.data.animation){const wt=s.data;wt.animation=(wt.animation||[]).concat(N.data.animation)}}const B=N.features;if(B)for(let ae=0;ae<B.length;ae++){const Se=B[ae];Se&&Se.ngInherit&&Se(s),Se===_c&&(m=!1)}}l=Object.getPrototypeOf(l)}!function q6(s){let l=0,m=null;for(let L=s.length-1;L>=0;L--){const N=s[L];N.hostVars=l+=N.hostVars,N.hostAttrs=za(N.hostAttrs,m=za(m,N.hostAttrs))}}(L)}function $4(s){return s===gt?{}:s===Qe?[]:s}function z5(s,l){const m=s.viewQuery;s.viewQuery=m?(L,N)=>{l(L,N),m(L,N)}:l}function B5(s,l){const m=s.contentQueries;s.contentQueries=m?(L,N,B)=>{l(L,N,B),m(L,N,B)}:l}function U5(s,l){const m=s.hostBindings;s.hostBindings=m?(L,N)=>{l(L,N),m(L,N)}:l}let k2=null;function Vo(){if(!k2){const s=di.Symbol;if(s&&s.iterator)k2=s.iterator;else{const l=Object.getOwnPropertyNames(Map.prototype);for(let m=0;m<l.length;++m){const L=l[m];"entries"!==L&&"size"!==L&&Map.prototype[L]===Map.prototype.entries&&(k2=L)}}}return k2}function P2(s){return!!vc(s)&&(Array.isArray(s)||!(s instanceof Map)&&Vo()in s)}function vc(s){return null!==s&&("function"==typeof s||"object"==typeof s)}function Gs(s,l,m){return s[l]=m}function Wa(s,l,m){return!Object.is(s[l],m)&&(s[l]=m,!0)}function zo(s,l,m,L){const N=Wa(s,l,m);return Wa(s,l+1,L)||N}function N2(s,l,m,L,N){const B=zo(s,l,m,L);return Wa(s,l+2,N)||B}function X4(s,l,m,L){const N=Hi();return Wa(N,re(),l)&&(Vn(),zs(zn(),N,s,l,m,L)),X4}function Bo(s,l,m,L){return Wa(s,re(),m)?l+U(m)+L:Bn}function Uo(s,l,m,L,N,B,ae,Se,Ve,dt){const Wt=function us(s,l,m,L,N,B){const ae=zo(s,l,m,L);return zo(s,l+2,N,B)||ae}(s,Oa(),m,N,ae,Ve);return pe(4),Wt?l+U(m)+L+U(N)+B+U(ae)+Se+U(Ve)+dt:Bn}function xc(s,l,m,L,N,B,ae,Se){const Ve=Hi(),dt=Vn(),wt=s+20,Wt=dt.firstCreatePass?function Ws(s,l,m,L,N,B,ae,Se,Ve){const dt=l.consts,wt=Ho(l,s,4,ae||null,ji(dt,Se));lc(l,m,wt,ji(dt,Ve)),qt(l,wt);const Wt=wt.tViews=w2(2,wt,L,N,B,l.directiveRegistry,l.pipeRegistry,null,l.schemas,dt);return null!==l.queries&&(l.queries.template(l,wt),Wt.queries=l.queries.embeddedTView(wt)),wt}(wt,dt,Ve,l,m,L,N,B,ae):dt.data[wt];cr(Wt,!1);const ci=Ve[11].createComment("");h2(dt,Ve,ci,Wt),Va(ci,Ve),T2(Ve,Ve[wt]=dc(ci,Ve,ci,Wt)),Kn(Wt)&&sc(dt,Ve,Wt),null!=ae&&oc(Ve,Wt,Se)}function es(s){return At(function _s(){return Ne.lFrame.contextLView}(),20+s)}function Wo(s,l=Ae.Default){const m=Hi();return null===m?Fa(s,l):ns(Cr(),m,A(s),l)}function Pc(){throw new Error("invalid")}function Rc(s,l,m){const L=Hi();return Wa(L,re(),l)&&Ja(Vn(),zn(),L,s,l,L[11],m,!1),Rc}function W2(s,l,m,L,N){const ae=N?"class":"style";V4(s,m,l.inputs[ae],ae,L)}function Y2(s,l,m,L){const N=Hi(),B=Vn(),ae=20+s,Se=N[11],Ve=N[ae]=Js(Se,l,function St(){return Ne.lFrame.currentNamespace}()),dt=B.firstCreatePass?function lh(s,l,m,L,N,B,ae){const Se=l.consts,dt=Ho(l,s,2,N,ji(Se,B));return lc(l,m,dt,ji(Se,ae)),null!==dt.attrs&&I2(dt,dt.attrs,!1),null!==dt.mergedAttrs&&I2(dt,dt.mergedAttrs,!0),null!==l.queries&&l.queries.elementStart(l,dt),dt}(ae,B,N,0,l,m,L):B.data[ae];cr(dt,!0);const wt=dt.mergedAttrs;null!==wt&&Ir(Se,Ve,wt);const Wt=dt.classes;null!==Wt&&Yl(Se,Ve,Wt);const ci=dt.styles;return null!==ci&&Wl(Se,Ve,ci),64!=(64&dt.flags)&&h2(B,N,Ve,dt),0===function $i(){return Ne.lFrame.elementDepthCount}()&&Va(Ve,N),function Nn(){Ne.lFrame.elementDepthCount++}(),Kn(dt)&&(sc(B,N,dt),x4(B,dt,N)),null!==L&&oc(N,dt),Y2}function k1(){let s=Cr();gs()?Cs():(s=s.parent,cr(s,!1));const l=s;!function Sr(){Ne.lFrame.elementDepthCount--}();const m=Vn();return m.firstCreatePass&&(qt(m,s),Hn(s)&&m.queries.elementEnd(s)),null!=l.classesWithoutHost&&function _a(s){return 0!=(16&s.flags)}(l)&&W2(m,l,Hi(),l.classesWithoutHost,!0),null!=l.stylesWithoutHost&&function ir(s){return 0!=(32&s.flags)}(l)&&W2(m,l,Hi(),l.stylesWithoutHost,!1),k1}function P1(s,l,m,L){return Y2(s,l,m,L),k1(),P1}function Hc(s,l,m){const L=Hi(),N=Vn(),B=s+20,ae=N.firstCreatePass?function Nc(s,l,m,L,N){const B=l.consts,ae=ji(B,L),Se=Ho(l,s,8,"ng-container",ae);return null!==ae&&I2(Se,ae,!0),lc(l,m,Se,ji(B,N)),null!==l.queries&&l.queries.elementStart(l,Se),Se}(B,N,L,l,m):N.data[B];cr(ae,!0);const Se=L[B]=L[11].createComment("");return h2(N,L,Se,ae),Va(Se,L),Kn(ae)&&(sc(N,L,ae),x4(N,ae,L)),null!=m&&oc(L,ae),Hc}function Fc(){let s=Cr();const l=Vn();return gs()?Cs():(s=s.parent,cr(s,!1)),l.firstCreatePass&&(qt(l,s),Hn(s)&&l.queries.elementEnd(s)),Fc}function s0(s,l,m){return Hc(s,l,m),Fc(),s0}function o0(){return Hi()}function ts(s){return!!s&&"function"==typeof s.then}function j2(s){return!!s&&"function"==typeof s.subscribe}const Vc=j2;function R1(s,l,m,L){const N=Hi(),B=Vn(),ae=Cr();return dh(B,N,N[11],ae,s,l,!!m,L),R1}function l0(s,l){const m=Cr(),L=Hi(),N=Vn();return dh(N,L,F4(Ci(N.data),m,L),m,s,l,!1),l0}function dh(s,l,m,L,N,B,ae,Se){const Ve=Kn(L),wt=s.firstCreatePass&&H4(s),Wt=l[8],ci=N4(l);let _i=!0;if(3&L.type||Se){const an=Oi(L,l),gn=Se?Se(an):an,Fi=ci.length,Tn=Se?nr=>Se(Ye(nr[L.index])):L.index;if(Wn(m)){let nr=null;if(!Se&&Ve&&(nr=function c0(s,l,m,L){const N=s.cleanup;if(null!=N)for(let B=0;B<N.length-1;B+=2){const ae=N[B];if(ae===m&&N[B+1]===L){const Se=l[7],Ve=N[B+2];return Se.length>Ve?Se[Ve]:null}"string"==typeof ae&&(B+=2)}return null}(s,l,N,L.index)),null!==nr)(nr.__ngLastListenerFn__||nr).__ngNextListenerFn__=B,nr.__ngLastListenerFn__=B,_i=!1;else{B=zc(L,l,Wt,B,!1);const Er=m.listen(gn,N,B);ci.push(B,Er),wt&&wt.push(N,Tn,Fi,Fi+1)}}else B=zc(L,l,Wt,B,!0),gn.addEventListener(N,B,ae),ci.push(B),wt&&wt.push(N,Tn,Fi,ae)}else B=zc(L,l,Wt,B,!1);const Ni=L.outputs;let Xi;if(_i&&null!==Ni&&(Xi=Ni[N])){const an=Xi.length;if(an)for(let gn=0;gn<an;gn+=2){const Es=l[Xi[gn]][Xi[gn+1]].subscribe(B),jo=ci.length;ci.push(B,Es),wt&&wt.push(N,L.index,jo,-(jo+1))}}}function hh(s,l,m,L){try{return!1!==m(L)}catch(N){return A6(s,N),!1}}function zc(s,l,m,L,N){return function B(ae){if(ae===Function)return L;const Se=2&s.flags?oi(s.index,l):l;0==(32&l[2])&&A2(Se);let Ve=hh(l,0,L,ae),dt=B.__ngNextListenerFn__;for(;dt;)Ve=hh(l,0,dt,ae)&&Ve,dt=dt.__ngNextListenerFn__;return N&&!1===Ve&&(ae.preventDefault(),ae.returnValue=!1),Ve}}function uh(s=1){return function Zr(s){return(Ne.lFrame.contextLView=function Gr(s,l){for(;s>0;)l=l[15],s--;return l}(s,Ne.lFrame.contextLView))[8]}(s)}function fh(s,l){let m=null;const L=function Kd(s){const l=s.attrs;if(null!=l){const m=l.indexOf(5);if(0==(1&m))return l[m+1]}return null}(s);for(let N=0;N<l.length;N++){const B=l[N];if("*"!==B){if(null===L?Zd(s,B,!0):$d(L,B))return N}else m=N}return m}function ph(s){const l=Hi()[16][6];if(!l.projection){const L=l.projection=qo(s?s.length:1,null),N=L.slice();let B=l.child;for(;null!==B;){const ae=s?fh(B,s):0;null!==ae&&(N[ae]?N[ae].projectionNext=B:L[ae]=B,N[ae]=B),B=B.next}}}function mh(s,l=0,m){const L=Hi(),N=Vn(),B=Ho(N,20+s,16,null,m||null);null===B.projection&&(B.projection=l),Cs(),64!=(64&B.flags)&&function C1(s,l,m){m2(l[11],0,l,m,Bl(s,m,l),t4(m.parent||l[6],m,l))}(N,L,B)}function d0(s,l,m){return Z2(s,"",l,"",m),d0}function Z2(s,l,m,L,N){const B=Hi(),ae=Bo(B,l,m,L);return ae!==Bn&&Ja(Vn(),zn(),B,s,ae,B[11],N,!1),Z2}function p0(s,l,m,L,N){const B=s[m+1],ae=null===l;let Se=L?hs(B):ks(B),Ve=!1;for(;0!==Se&&(!1===Ve||ae);){const wt=s[Se+1];m0(s[Se],l)&&(Ve=!0,s[Se+1]=L?C2(wt):$l(wt)),Se=L?hs(wt):ks(wt)}Ve&&(s[m+1]=L?$l(B):C2(B))}function m0(s,l){return null===s||null==l||(Array.isArray(s)?s[1]:s)===l||!(!Array.isArray(s)||"string"!=typeof l)&&Xs(s,l)>=0}const wa={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Bc(s){return s.substring(wa.key,wa.keyEnd)}function bh(s,l){const m=wa.textEnd;return m===l?-1:(l=wa.keyEnd=function K5(s,l,m){for(;l<m&&s.charCodeAt(l)>32;)l++;return l}(s,wa.key=l,m),N1(s,l,m))}function N1(s,l,m){for(;l<m&&s.charCodeAt(l)<=32;)l++;return l}function Gc(s,l,m){return Ns(s,l,m,!1),Gc}function Wc(s,l){return Ns(s,l,null,!0),Wc}function Sh(s){Hs(Ha,Rs,s,!0)}function Rs(s,l){for(let m=function Z5(s){return function g0(s){wa.key=0,wa.keyEnd=0,wa.value=0,wa.valueEnd=0,wa.textEnd=s.length}(s),bh(s,N1(s,0,wa.textEnd))}(l);m>=0;m=bh(l,m))Ha(s,Bc(l),!0)}function Ns(s,l,m,L){const N=Hi(),B=Vn(),ae=pe(2);B.firstUpdatePass&&_0(B,s,ae,L),l!==Bn&&Wa(N,ae,l)&&v0(B,B.data[hr()],N,N[11],s,N[ae+1]=function Ih(s,l){return null==s||("string"==typeof l?s+=l:"object"==typeof s&&(s=P(Is(s)))),s}(l,m),L,ae)}function Hs(s,l,m,L){const N=Vn(),B=pe(2);N.firstUpdatePass&&_0(N,null,B,L);const ae=Hi();if(m!==Bn&&Wa(ae,B,m)){const Se=N.data[hr()];if(Oh(Se,L)&&!Lh(N,B)){let Ve=L?Se.classesWithoutHost:Se.stylesWithoutHost;null!==Ve&&(m=D(Ve,m||"")),W2(N,Se,ae,m,L)}else!function Ah(s,l,m,L,N,B,ae,Se){N===Bn&&(N=Qe);let Ve=0,dt=0,wt=0<N.length?N[0]:null,Wt=0<B.length?B[0]:null;for(;null!==wt||null!==Wt;){const ci=Ve<N.length?N[Ve+1]:void 0,_i=dt<B.length?B[dt+1]:void 0;let Xi,Ni=null;wt===Wt?(Ve+=2,dt+=2,ci!==_i&&(Ni=Wt,Xi=_i)):null===Wt||null!==wt&&wt<Wt?(Ve+=2,Ni=wt):(dt+=2,Ni=Wt,Xi=_i),null!==Ni&&v0(s,l,m,L,Ni,Xi,ae,Se),wt=Ve<N.length?N[Ve]:null,Wt=dt<B.length?B[dt]:null}}(N,Se,ae,ae[11],ae[B+1],ae[B+1]=function ef(s,l,m){if(null==m||""===m)return Qe;const L=[],N=Is(m);if(Array.isArray(N))for(let B=0;B<N.length;B++)s(L,N[B],!0);else if("object"==typeof N)for(const B in N)N.hasOwnProperty(B)&&s(L,B,N[B]);else"string"==typeof N&&l(L,N);return L}(s,l,m),L,B)}}function Lh(s,l){return l>=s.expandoStartIndex}function _0(s,l,m,L){const N=s.data;if(null===N[m+1]){const B=N[hr()],ae=Lh(s,m);Oh(B,L)&&null===l&&!ae&&(l=!1),l=function X5(s,l,m,L){const N=Ci(s);let B=L?l.residualClasses:l.residualStyles;if(null===N)0===(L?l.classBindings:l.styleBindings)&&(m=K2(m=jc(null,s,l,m,L),l.attrs,L),B=null);else{const ae=l.directiveStylingLast;if(-1===ae||s[ae]!==N)if(m=jc(N,s,l,m,L),null===B){let Ve=function q5(s,l,m){const L=m?l.classBindings:l.styleBindings;if(0!==ks(L))return s[hs(L)]}(s,l,L);void 0!==Ve&&Array.isArray(Ve)&&(Ve=jc(null,s,l,Ve[1],L),Ve=K2(Ve,l.attrs,L),function Th(s,l,m,L){s[hs(m?l.classBindings:l.styleBindings)]=L}(s,l,L,Ve))}else B=function J5(s,l,m){let L;const N=l.directiveEnd;for(let B=1+l.directiveStylingLast;B<N;B++)L=K2(L,s[B].hostAttrs,m);return K2(L,l.attrs,m)}(s,l,L)}return void 0!==B&&(L?l.residualClasses=B:l.residualStyles=B),m}(N,B,l,L),function f0(s,l,m,L,N,B){let ae=B?l.classBindings:l.styleBindings,Se=hs(ae),Ve=ks(ae);s[L]=m;let wt,dt=!1;if(Array.isArray(m)){const Wt=m;wt=Wt[1],(null===wt||Xs(Wt,wt)>0)&&(dt=!0)}else wt=m;if(N)if(0!==Ve){const ci=hs(s[Se+1]);s[L+1]=_1(ci,Se),0!==ci&&(s[ci+1]=Ql(s[ci+1],L)),s[Se+1]=function u4(s,l){return 131071&s|l<<17}(s[Se+1],L)}else s[L+1]=_1(Se,0),0!==Se&&(s[Se+1]=Ql(s[Se+1],L)),Se=L;else s[L+1]=_1(Ve,0),0===Se?Se=L:s[Ve+1]=Ql(s[Ve+1],L),Ve=L;dt&&(s[L+1]=$l(s[L+1])),p0(s,wt,L,!0),p0(s,wt,L,!1),function yh(s,l,m,L,N){const B=N?s.residualClasses:s.residualStyles;null!=B&&"string"==typeof l&&Xs(B,l)>=0&&(m[L+1]=C2(m[L+1]))}(l,wt,s,L,B),ae=_1(Se,Ve),B?l.classBindings=ae:l.styleBindings=ae}(N,B,l,m,ae,L)}}function jc(s,l,m,L,N){let B=null;const ae=m.directiveEnd;let Se=m.directiveStylingLast;for(-1===Se?Se=m.directiveStart:Se++;Se<ae&&(B=l[Se],L=K2(L,B.hostAttrs,N),B!==s);)Se++;return null!==s&&(m.directiveStylingLast=Se),L}function K2(s,l,m){const L=m?1:2;let N=-1;if(null!==l)for(let B=0;B<l.length;B++){const ae=l[B];"number"==typeof ae?N=ae:N===L&&(Array.isArray(s)||(s=void 0===s?[]:["",s]),Ha(s,ae,!!m||l[++B]))}return void 0===s?null:s}function v0(s,l,m,L,N,B,ae,Se){if(!(3&l.type))return;const Ve=s.data,dt=Ve[Se+1];Zc(function f4(s){return 1==(1&s)}(dt)?Dh(Ve,l,m,N,ks(dt),ae):void 0)||(Zc(B)||function Kl(s){return 2==(2&s)}(dt)&&(B=Dh(Ve,null,m,N,Se,ae)),function Yd(s,l,m,L,N){const B=Wn(s);if(l)N?B?s.addClass(m,L):m.classList.add(L):B?s.removeClass(m,L):m.classList.remove(L);else{let ae=-1===L.indexOf("-")?void 0:ys.DashCase;if(null==N)B?s.removeStyle(m,L,ae):m.style.removeProperty(L);else{const Se="string"==typeof N&&N.endsWith("!important");Se&&(N=N.slice(0,-10),ae|=ys.Important),B?s.setStyle(m,L,N,ae):m.style.setProperty(L,N,Se?"important":"")}}}(L,ae,Si(hr(),m),N,B))}function Dh(s,l,m,L,N,B){const ae=null===l;let Se;for(;N>0;){const Ve=s[N],dt=Array.isArray(Ve),wt=dt?Ve[1]:Ve,Wt=null===wt;let ci=m[N+1];ci===Bn&&(ci=Wt?Qe:void 0);let _i=Wt?Jo(ci,L):wt===L?ci:void 0;if(dt&&!Zc(_i)&&(_i=Jo(Ve,L)),Zc(_i)&&(Se=_i,ae))return Se;const Ni=s[N+1];N=ae?hs(Ni):ks(Ni)}if(null!==l){let Ve=B?l.residualClasses:l.residualStyles;null!=Ve&&(Se=Jo(Ve,L))}return Se}function Zc(s){return void 0!==s}function Oh(s,l){return 0!=(s.flags&(l?16:32))}function y0(s,l=""){const m=Hi(),L=Vn(),N=s+20,B=L.firstCreatePass?Ho(L,N,1,l,null):L.data[N],ae=m[N]=function o2(s,l){return Wn(s)?s.createText(l):s.createTextNode(l)}(m[11],l);h2(L,m,ae,B),cr(B,!1)}function b0(s){return Kc("",s,""),b0}function Kc(s,l,m){const L=Hi(),N=Bo(L,s,l,m);return N!==Bn&&Bs(L,hr(),N),Kc}function $c(s,l,m,L,N){const B=Hi(),ae=function x1(s,l,m,L,N,B){const Se=zo(s,Oa(),m,N);return pe(2),Se?l+U(m)+L+U(N)+B:Bn}(B,s,l,m,L,N);return ae!==Bn&&Bs(B,hr(),ae),$c}function x0(s,l,m,L,N,B,ae){const Se=Hi(),Ve=function M1(s,l,m,L,N,B,ae,Se){const dt=N2(s,Oa(),m,N,ae);return pe(3),dt?l+U(m)+L+U(N)+B+U(ae)+Se:Bn}(Se,s,l,m,L,N,B,ae);return Ve!==Bn&&Bs(Se,hr(),Ve),x0}function M0(s,l,m,L,N,B,ae,Se,Ve){const dt=Hi(),wt=Uo(dt,s,l,m,L,N,B,ae,Se,Ve);return wt!==Bn&&Bs(dt,hr(),wt),M0}function Rh(s,l,m){Hs(Ha,Rs,Bo(Hi(),s,l,m),!0)}function Dn(s,l,m){const L=Hi();return Wa(L,re(),l)&&Ja(Vn(),zn(),L,s,l,L[11],m,!0),Dn}function En(s,l,m){const L=Hi();if(Wa(L,re(),l)){const B=Vn(),ae=zn();Ja(B,ae,L,s,l,F4(Ci(B.data),ae,L),m,!0)}return En}const pr=void 0;var Sa=["en",[["a","p"],["AM","PM"],pr],[["AM","PM"],pr,pr],[["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"]],pr,[["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"]],pr,[["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}",pr,"{1} 'at' {0}",pr],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Mr(s){const m=Math.floor(Math.abs(s)),L=s.toString().replace(/^[^.]*\.?/,"").length;return 1===m&&0===L?1:5}];let Lr={};function pa(s){const l=function ja(s){return s.toLowerCase().replace(/_/g,"-")}(s);let m=Ya(l);if(m)return m;const L=l.split("-")[0];if(m=Ya(L),m)return m;if("en"===L)return Sa;throw new Error(`Missing locale data for the locale "${s}".`)}function Tr(s){return pa(s)[ln.PluralCase]}function Ya(s){return s in Lr||(Lr[s]=di.ng&&di.ng.common&&di.ng.common.locales&&di.ng.common.locales[s]),Lr[s]}var ln=(()=>((ln=ln||{})[ln.LocaleId=0]="LocaleId",ln[ln.DayPeriodsFormat=1]="DayPeriodsFormat",ln[ln.DayPeriodsStandalone=2]="DayPeriodsStandalone",ln[ln.DaysFormat=3]="DaysFormat",ln[ln.DaysStandalone=4]="DaysStandalone",ln[ln.MonthsFormat=5]="MonthsFormat",ln[ln.MonthsStandalone=6]="MonthsStandalone",ln[ln.Eras=7]="Eras",ln[ln.FirstDayOfWeek=8]="FirstDayOfWeek",ln[ln.WeekendRange=9]="WeekendRange",ln[ln.DateFormat=10]="DateFormat",ln[ln.TimeFormat=11]="TimeFormat",ln[ln.DateTimeFormat=12]="DateTimeFormat",ln[ln.NumberSymbols=13]="NumberSymbols",ln[ln.NumberFormats=14]="NumberFormats",ln[ln.CurrencyCode=15]="CurrencyCode",ln[ln.CurrencySymbol=16]="CurrencySymbol",ln[ln.CurrencyName=17]="CurrencyName",ln[ln.Currencies=18]="Currencies",ln[ln.Directionality=19]="Directionality",ln[ln.PluralCase=20]="PluralCase",ln[ln.ExtraData=21]="ExtraData",ln))();const Wr="en-US";let Pa=Wr;function Gh(s,l,m,L,N){if(s=A(s),Array.isArray(s))for(let B=0;B<s.length;B++)Gh(s[B],l,m,L,N);else{const B=Vn(),ae=Hi();let Se=y1(s)?s:A(s.provide),Ve=z4(s);const dt=Cr(),wt=1048575&dt.providerIndexes,Wt=dt.directiveStart,ci=dt.providerIndexes>>20;if(y1(s)||!s.multi){const _i=new on(Ve,N,Wo),Ni=Yh(Se,l,N?wt:wt+ci,Wt);-1===Ni?(Mn(Qt(dt,ae),B,Se),Wh(B,s,l.length),l.push(Se),dt.directiveStart++,dt.directiveEnd++,N&&(dt.providerIndexes+=1048576),m.push(_i),ae.push(_i)):(m[Ni]=_i,ae[Ni]=_i)}else{const _i=Yh(Se,l,wt+ci,Wt),Ni=Yh(Se,l,wt,wt+ci),Xi=_i>=0&&m[_i],an=Ni>=0&&m[Ni];if(N&&!an||!N&&!Xi){Mn(Qt(dt,ae),B,Se);const gn=function $p(s,l,m,L,N){const B=new on(s,m,Wo);return B.multi=[],B.index=l,B.componentProviders=0,I0(B,N,L&&!m),B}(N?Kp:O0,m.length,N,L,Ve);!N&&an&&(m[Ni].providerFactory=gn),Wh(B,s,l.length,0),l.push(Se),dt.directiveStart++,dt.directiveEnd++,N&&(dt.providerIndexes+=1048576),m.push(gn),ae.push(gn)}else Wh(B,s,_i>-1?_i:Ni,I0(m[N?Ni:_i],Ve,!N&&L));!N&&L&&an&&m[Ni].componentProviders++}}}function Wh(s,l,m,L){const N=y1(l),B=function F6(s){return!!s.useClass}(l);if(N||B){const Ve=(B?A(l.useClass):l).prototype.ngOnDestroy;if(Ve){const dt=s.destroyHooks||(s.destroyHooks=[]);if(!N&&l.multi){const wt=dt.indexOf(m);-1===wt?dt.push(m,[L,Ve]):dt[wt+1].push(L,Ve)}else dt.push(m,Ve)}}}function I0(s,l,m){return m&&s.componentProviders++,s.multi.push(l)-1}function Yh(s,l,m,L){for(let N=m;N<L;N++)if(l[N]===s)return N;return-1}function O0(s,l,m,L){return jh(this.multi,[])}function Kp(s,l,m,L){const N=this.multi;let B;if(this.providerFactory){const ae=this.providerFactory.componentProviders,Se=lo(m,m[1],this.providerFactory.index,L);B=Se.slice(0,ae),jh(N,B);for(let Ve=ae;Ve<Se.length;Ve++)B.push(Se[Ve])}else B=[],jh(N,B);return B}function jh(s,l){for(let m=0;m<s.length;m++)l.push((0,s[m])());return l}function Mf(s,l=[]){return m=>{m.providersResolver=(L,N)=>function xf(s,l,m){const L=Vn();if(L.firstCreatePass){const N=Cn(s);Gh(m,L.data,L.blueprint,N,!0),Gh(l,L.data,L.blueprint,N,!1)}}(L,N?N(s):s,l)}}class wf{}class Qp{resolveComponentFactory(l){throw function Sf(s){const l=Error(`No component factory found for ${P(s)}. Did you add it to @NgModule.entryComponents?`);return l.ngComponent=s,l}(l)}}let k0=(()=>{class s{}return s.NULL=new Qp,s})();function Af(){return q2(Cr(),Hi())}function q2(s,l){return new t3(Oi(s,l))}let t3=(()=>{class s{constructor(m){this.nativeElement=m}}return s.__NG_ELEMENT_ID__=Af,s})();function Xp(s){return s instanceof t3?s.nativeElement:s}class Df{}let If=(()=>{class s{}return s.__NG_ELEMENT_ID__=()=>function Of(){const s=Hi(),m=oi(Cr().index,s);return function Jp(s){return s[11]}(ki(m)?m:s)}(),s})(),e7=(()=>{class s{}return s.\u0275prov=$({token:s,providedIn:"root",factory:()=>null}),s})();class kf{constructor(l){this.full=l,this.major=l.split(".")[0],this.minor=l.split(".")[1],this.patch=l.split(".").slice(2).join(".")}}const Pf=new kf("13.3.11"),Zh={};function P0(s,l,m,L,N=!1){for(;null!==m;){const B=l[m.index];if(null!==B&&L.push(Ye(B)),hn(B))for(let Se=10;Se<B.length;Se++){const Ve=B[Se],dt=Ve[1].firstChild;null!==dt&&P0(Ve[1],Ve,dt,L)}const ae=m.type;if(8&ae)P0(s,l,m.child,L);else if(32&ae){const Se=Nl(m,l);let Ve;for(;Ve=Se();)L.push(Ve)}else if(16&ae){const Se=u2(l,m);if(Array.isArray(Se))L.push(...Se);else{const Ve=ko(l[16]);P0(Ve[1],Ve,Se,L,!0)}}m=N?m.projectionNext:m.next}return L}class i3{constructor(l,m){this._lView=l,this._cdRefInjectingView=m,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const l=this._lView,m=l[1];return P0(m,l,m.firstChild,[])}get context(){return this._lView[8]}set context(l){this._lView[8]=l}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const l=this._lView[3];if(hn(l)){const m=l[8],L=m?m.indexOf(this):-1;L>-1&&(_o(l,L),U1(m,L))}this._attachedToViewContainer=!1}q3(this._lView[1],this._lView)}onDestroy(l){L4(this._lView[1],this._lView,null,l)}markForCheck(){A2(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){!function hc(s,l,m){const L=l[10];L.begin&&L.begin();try{bo(s,l,s.template,m)}catch(N){throw A6(l,N),N}finally{L.end&&L.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new w(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function zd(s,l){g1(s,l,l[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(l){if(this._attachedToViewContainer)throw new w(902,"");this._appRef=l}}class t7 extends i3{constructor(l){super(l),this._view=l}detectChanges(){uc(this._view)}checkNoChanges(){}get context(){return null}}class Rf extends k0{constructor(l){super(),this.ngModule=l}resolveComponentFactory(l){const m=at(l);return new Kh(m,this.ngModule)}}function Nf(s){const l=[];for(let m in s)s.hasOwnProperty(m)&&l.push({propName:s[m],templateName:m});return l}class Kh extends wf{constructor(l,m){super(),this.componentDef=l,this.ngModule=m,this.componentType=l.type,this.selector=function Xd(s){return s.map(Qd).join(",")}(l.selectors),this.ngContentSelectors=l.ngContentSelectors?l.ngContentSelectors:[],this.isBoundToModule=!!m}get inputs(){return Nf(this.componentDef.inputs)}get outputs(){return Nf(this.componentDef.outputs)}create(l,m,L,N){const B=(N=N||this.ngModule)?function Ff(s,l){return{get:(m,L,N)=>{const B=s.get(m,Zh,N);return B!==Zh||L===Zh?B:l.get(m,L,N)}}}(l,N.injector):l,ae=B.get(Df,je),Se=B.get(e7,null),Ve=ae.createRenderer(null,this.componentDef),dt=this.componentDef.selectors[0][0]||"div",wt=L?function S4(s,l,m){if(Wn(s))return s.selectRootElement(l,m===ht.ShadowDom);let L="string"==typeof l?s.querySelector(l):l;return L.textContent="",L}(Ve,L,this.componentDef.encapsulation):Js(ae.createRenderer(null,this.componentDef),dt,function Hf(s){const l=s.toLowerCase();return"svg"===l?"svg":"math"===l?"math":null}(dt)),Wt=this.componentDef.onPush?576:528,ci=function K4(s,l){return{components:[],scheduler:s||kd,clean:T6,playerHandler:l||null,flags:0}}(),_i=w2(0,null,null,1,0,null,null,null,null,null),Ni=E2(null,_i,ci,Wt,null,null,ae,Ve,Se,B);let Xi,an;Pn(Ni);try{const gn=function Z4(s,l,m,L,N,B){const ae=m[1];m[20]=s;const Ve=Ho(ae,20,2,"#host",null),dt=Ve.mergedAttrs=l.hostAttrs;null!==dt&&(I2(Ve,dt,!0),null!==s&&(Ir(N,s,dt),null!==Ve.classes&&Yl(N,s,Ve.classes),null!==Ve.styles&&Wl(N,s,Ve.styles)));const wt=L.createRenderer(s,l),Wt=E2(m,M4(l),null,l.onPush?64:16,m[20],Ve,L,wt,B||null,null);return ae.firstCreatePass&&(Mn(Qt(Ve,m),ae,l.type),y6(ae,Ve),cc(Ve,m.length,1)),T2(m,Wt),m[20]=Wt}(wt,this.componentDef,Ni,ae,Ve);if(wt)if(L)Ir(Ve,wt,["ng-version",Pf.full]);else{const{attrs:Fi,classes:Tn}=function l4(s){const l=[],m=[];let L=1,N=2;for(;L<s.length;){let B=s[L];if("string"==typeof B)2===N?""!==B&&l.push(B,s[++L]):8===N&&m.push(B);else{if(!ds(N))break;N=B}L++}return{attrs:l,classes:m}}(this.componentDef.selectors[0]);Fi&&Ir(Ve,wt,Fi),Tn&&Tn.length>0&&Yl(Ve,wt,Tn.join(" "))}if(an=Yn(_i,20),void 0!==m){const Fi=an.projection=[];for(let Tn=0;Tn<this.ngContentSelectors.length;Tn++){const nr=m[Tn];Fi.push(null!=nr?Array.from(nr):null)}}Xi=function $6(s,l,m,L,N){const B=m[1],ae=function M5(s,l,m){const L=Cr();s.firstCreatePass&&(m.providersResolver&&m.providersResolver(m),b6(s,L,l,Fo(s,l,1,null),m));const N=lo(l,s,L.directiveStart,L);Va(N,l);const B=Oi(L,l);return B&&Va(B,l),N}(B,m,l);if(L.components.push(ae),s[8]=ae,N&&N.forEach(Ve=>Ve(ae,l)),l.contentQueries){const Ve=Cr();l.contentQueries(1,ae,Ve.directiveStart)}const Se=Cr();return!B.firstCreatePass||null===l.hostBindings&&null===l.hostAttrs||(zr(Se.index),C6(m[1],Se,0,Se.directiveStart,Se.directiveEnd,l),_6(l,ae)),ae}(gn,this.componentDef,Ni,ci,[Q6]),bs(_i,Ni,null)}finally{dr()}return new r7(this.componentType,Xi,q2(an,Ni),Ni,an)}}class r7 extends class Ef{}{constructor(l,m,L,N,B){super(),this.location=L,this._rootLView=N,this._tNode=B,this.instance=m,this.hostView=this.changeDetectorRef=new t7(N),this.componentType=l}get injector(){return new Ko(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(l){this.hostView.onDestroy(l)}}class J2{}class $h{}const el=new Map;class Xh extends J2{constructor(l,m){super(),this._parent=m,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Rf(this);const L=Xt(l);this._bootstrapComponents=Os(L.bootstrap),this._r3Injector=R6(l,m,[{provide:J2,useValue:this},{provide:k0,useValue:this.componentFactoryResolver}],P(l)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(l)}get(l,m=Us.THROW_IF_NOT_FOUND,L=Ae.Default){return l===Us||l===J2||l===fc?this:this._r3Injector.get(l,m,L)}destroy(){const l=this._r3Injector;!l.destroyed&&l.destroy(),this.destroyCbs.forEach(m=>m()),this.destroyCbs=null}onDestroy(l){this.destroyCbs.push(l)}}class qh extends $h{constructor(l){super(),this.moduleType=l,null!==Xt(l)&&function s7(s){const l=new Set;!function m(L){const N=Xt(L,!0),B=N.id;null!==B&&(function zf(s,l,m){if(l&&l!==m)throw new Error(`Duplicate module registered for ${s} - ${P(l)} vs ${P(l.name)}`)}(B,el.get(B),L),el.set(B,L));const ae=Os(N.imports);for(const Se of ae)l.has(Se)||(l.add(Se),m(Se))}(s)}(l)}create(l){return new Xh(this.moduleType,l)}}function Bf(s,l,m){const L=Vr()+s,N=Hi();return N[L]===Bn?Gs(N,L,m?l.call(m):l()):function R2(s,l){return s[l]}(N,L)}function Uf(s,l,m,L){return Jh(Hi(),Vr(),s,l,m,L)}function Gf(s,l,m,L,N){return Zf(Hi(),Vr(),s,l,m,L,N)}function Wf(s,l,m,L,N,B){return eu(Hi(),Vr(),s,l,m,L,N,B)}function n3(s,l){const m=s[l];return m===Bn?void 0:m}function Jh(s,l,m,L,N,B){const ae=l+m;return Wa(s,ae,N)?Gs(s,ae+1,B?L.call(B,N):L(N)):n3(s,ae+1)}function Zf(s,l,m,L,N,B,ae){const Se=l+m;return zo(s,Se,N,B)?Gs(s,Se+2,ae?L.call(ae,N,B):L(N,B)):n3(s,Se+2)}function eu(s,l,m,L,N,B,ae,Se){const Ve=l+m;return N2(s,Ve,N,B,ae)?Gs(s,Ve+3,Se?L.call(Se,N,B,ae):L(N,B,ae)):n3(s,Ve+3)}function $f(s,l){const m=Vn();let L;const N=s+20;m.firstCreatePass?(L=function h7(s,l){if(l)for(let m=l.length-1;m>=0;m--){const L=l[m];if(s===L.name)return L}}(l,m.pipeRegistry),m.data[N]=L,L.onDestroy&&(m.destroyHooks||(m.destroyHooks=[])).push(N,L.onDestroy)):L=m.data[N];const B=L.factory||(L.factory=lr(L.type)),ae=xe(Wo);try{const Se=Ce(!1),Ve=B();return Ce(Se),function Mc(s,l,m,L){m>=s.data.length&&(s.data[m]=null,s.blueprint[m]=null),l[m]=L}(m,Hi(),N,Ve),Ve}finally{xe(ae)}}function Qf(s,l,m){const L=s+20,N=Hi(),B=At(N,L);return tl(N,L)?Jh(N,Vr(),l,B.transform,m,B):B.transform(m)}function Xf(s,l,m,L){const N=s+20,B=Hi(),ae=At(B,N);return tl(B,N)?Zf(B,Vr(),l,ae.transform,m,L,ae):ae.transform(m,L)}function iu(s,l,m,L,N){const B=s+20,ae=Hi(),Se=At(ae,B);return tl(ae,B)?eu(ae,Vr(),l,Se.transform,m,L,N,Se):Se.transform(m,L,N)}function tl(s,l){return s[1].data[l].pure}function nu(s){return l=>{setTimeout(s,void 0,l)}}const oo=class p7 extends e.x{constructor(l=!1){super(),this.__isAsync=l}emit(l){super.next(l)}subscribe(l,m,L){var N,B,ae;let Se=l,Ve=m||(()=>null),dt=L;if(l&&"object"==typeof l){const Wt=l;Se=null===(N=Wt.next)||void 0===N?void 0:N.bind(Wt),Ve=null===(B=Wt.error)||void 0===B?void 0:B.bind(Wt),dt=null===(ae=Wt.complete)||void 0===ae?void 0:ae.bind(Wt)}this.__isAsync&&(Ve=nu(Ve),Se&&(Se=nu(Se)),dt&&(dt=nu(dt)));const wt=super.subscribe({next:Se,error:Ve,complete:dt});return l instanceof i.w0&&l.add(wt),wt}};function m7(){return this._results[Vo()]()}class R0{constructor(l=!1){this._emitDistinctChangesOnly=l,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const m=Vo(),L=R0.prototype;L[m]||(L[m]=m7)}get changes(){return this._changes||(this._changes=new oo)}get(l){return this._results[l]}map(l){return this._results.map(l)}filter(l){return this._results.filter(l)}find(l){return this._results.find(l)}reduce(l,m){return this._results.reduce(l,m)}forEach(l){this._results.forEach(l)}some(l){return this._results.some(l)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(l,m){const L=this;L.dirty=!1;const N=ls(l);(this._changesDetected=!function u3(s,l,m){if(s.length!==l.length)return!1;for(let L=0;L<s.length;L++){let N=s[L],B=l[L];if(m&&(N=m(N),B=m(B)),B!==N)return!1}return!0}(L._results,N,m))&&(L._results=N,L.length=N.length,L.last=N[this.length-1],L.first=N[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}Symbol;let il=(()=>{class s{}return s.__NG_ELEMENT_ID__=_7,s})();const g7=il,C7=class extends g7{constructor(l,m,L){super(),this._declarationLView=l,this._declarationTContainer=m,this.elementRef=L}createEmbeddedView(l){const m=this._declarationTContainer.tViews,L=E2(this._declarationLView,m,l,16,null,m.declTNode,null,null,null,null);L[17]=this._declarationLView[this._declarationTContainer.index];const B=this._declarationLView[19];return null!==B&&(L[19]=B.createEmbeddedView(m)),bs(m,L,l),new i3(L)}};function _7(){return N0(Cr(),Hi())}function N0(s,l){return 4&s.type?new C7(l,s,q2(s,l)):null}let r3=(()=>{class s{}return s.__NG_ELEMENT_ID__=v7,s})();function v7(){return t8(Cr(),Hi())}const qf=r3,Jf=class extends qf{constructor(l,m,L){super(),this._lContainer=l,this._hostTNode=m,this._hostLView=L}get element(){return q2(this._hostTNode,this._hostLView)}get injector(){return new Ko(this._hostTNode,this._hostLView)}get parentInjector(){const l=Vi(this._hostTNode,this._hostLView);if(_e(l)){const m=We(l,this._hostLView),L=Xe(l);return new Ko(m[1].data[L+8],m)}return new Ko(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(l){const m=e8(this._lContainer);return null!==m&&m[l]||null}get length(){return this._lContainer.length-10}createEmbeddedView(l,m,L){const N=l.createEmbeddedView(m||{});return this.insert(N,L),N}createComponent(l,m,L,N,B){const ae=l&&!function ho(s){return"function"==typeof s}(l);let Se;if(ae)Se=m;else{const Wt=m||{};Se=Wt.index,L=Wt.injector,N=Wt.projectableNodes,B=Wt.ngModuleRef}const Ve=ae?l:new Kh(at(l)),dt=L||this.parentInjector;if(!B&&null==Ve.ngModule){const ci=(ae?dt:this.parentInjector).get(J2,null);ci&&(B=ci)}const wt=Ve.create(dt,N,void 0,B);return this.insert(wt.hostView,Se),wt}insert(l,m){const L=l._lView,N=L[1];if(function Ai(s){return hn(s[3])}(L)){const wt=this.indexOf(l);if(-1!==wt)this.detach(wt);else{const Wt=L[3],ci=new Jf(Wt,Wt[6],Wt[3]);ci.detach(ci.indexOf(l))}}const B=this._adjustIndex(m),ae=this._lContainer;!function Fl(s,l,m,L){const N=10+L,B=m.length;L>0&&(m[N-1][4]=l),L<B-10?(l[4]=m[N],f3(m,10+L,l)):(m.push(l),l[4]=null),l[3]=m;const ae=l[17];null!==ae&&m!==ae&&function Ud(s,l){const m=s[9];l[16]!==l[3][3][16]&&(s[2]=!0),null===m?s[9]=[l]:m.push(l)}(ae,l);const Se=l[19];null!==Se&&Se.insertView(s),l[2]|=128}(N,L,ae,B);const Se=f2(B,ae),Ve=L[11],dt=yo(Ve,ae[7]);return null!==dt&&function Vd(s,l,m,L,N,B){L[0]=N,L[6]=l,g1(s,L,m,1,N,B)}(N,ae[6],Ve,L,dt,Se),l.attachToViewContainerRef(),f3(ru(ae),B,l),l}move(l,m){return this.insert(l,m)}indexOf(l){const m=e8(this._lContainer);return null!==m?m.indexOf(l):-1}remove(l){const m=this._adjustIndex(l,-1),L=_o(this._lContainer,m);L&&(U1(ru(this._lContainer),m),q3(L[1],L))}detach(l){const m=this._adjustIndex(l,-1),L=_o(this._lContainer,m);return L&&null!=U1(ru(this._lContainer),m)?new i3(L):null}_adjustIndex(l,m=0){return null==l?this.length+m:l}};function e8(s){return s[8]}function ru(s){return s[8]||(s[8]=[])}function t8(s,l){let m;const L=l[s.index];if(hn(L))m=L;else{let N;if(8&s.type)N=Ye(L);else{const B=l[11];N=B.createComment("");const ae=Oi(s,l);vo(B,yo(B,ae),N,function Ro(s,l){return Wn(s)?s.nextSibling(l):l.nextSibling}(B,ae),!1)}l[s.index]=m=dc(L,l,N,s),T2(l,m)}return new Jf(m,s,l)}class au{constructor(l){this.queryList=l,this.matches=null}clone(){return new au(this.queryList)}setDirty(){this.queryList.setDirty()}}class su{constructor(l=[]){this.queries=l}createEmbeddedView(l){const m=l.queries;if(null!==m){const L=null!==l.contentQueries?l.contentQueries[0]:m.length,N=[];for(let B=0;B<L;B++){const ae=m.getByIndex(B);N.push(this.queries[ae.indexInDeclarationView].clone())}return new su(N)}return null}insertView(l){this.dirtyQueriesWithMatches(l)}detachView(l){this.dirtyQueriesWithMatches(l)}dirtyQueriesWithMatches(l){for(let m=0;m<this.queries.length;m++)null!==c8(l,m).matches&&this.queries[m].setDirty()}}class H0{constructor(l,m,L=null){this.predicate=l,this.flags=m,this.read=L}}class ou{constructor(l=[]){this.queries=l}elementStart(l,m){for(let L=0;L<this.queries.length;L++)this.queries[L].elementStart(l,m)}elementEnd(l){for(let m=0;m<this.queries.length;m++)this.queries[m].elementEnd(l)}embeddedTView(l){let m=null;for(let L=0;L<this.length;L++){const N=null!==m?m.length:0,B=this.getByIndex(L).embeddedTView(l,N);B&&(B.indexInDeclarationView=L,null!==m?m.push(B):m=[B])}return null!==m?new ou(m):null}template(l,m){for(let L=0;L<this.queries.length;L++)this.queries[L].template(l,m)}getByIndex(l){return this.queries[l]}get length(){return this.queries.length}track(l){this.queries.push(l)}}class lu{constructor(l,m=-1){this.metadata=l,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=m}elementStart(l,m){this.isApplyingToNode(m)&&this.matchTNode(l,m)}elementEnd(l){this._declarationNodeIndex===l.index&&(this._appliesToNextNode=!1)}template(l,m){this.elementStart(l,m)}embeddedTView(l,m){return this.isApplyingToNode(l)?(this.crossesNgTemplate=!0,this.addMatch(-l.index,m),new lu(this.metadata)):null}isApplyingToNode(l){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const m=this._declarationNodeIndex;let L=l.parent;for(;null!==L&&8&L.type&&L.index!==m;)L=L.parent;return m===(null!==L?L.index:-1)}return this._appliesToNextNode}matchTNode(l,m){const L=this.metadata.predicate;if(Array.isArray(L))for(let N=0;N<L.length;N++){const B=L[N];this.matchTNodeWithReadOption(l,m,x7(m,B)),this.matchTNodeWithReadOption(l,m,Ea(m,l,B,!1,!1))}else L===il?4&m.type&&this.matchTNodeWithReadOption(l,m,-1):this.matchTNodeWithReadOption(l,m,Ea(m,l,L,!1,!1))}matchTNodeWithReadOption(l,m,L){if(null!==L){const N=this.metadata.read;if(null!==N)if(N===t3||N===r3||N===il&&4&m.type)this.addMatch(m.index,-2);else{const B=Ea(m,l,N,!1,!1);null!==B&&this.addMatch(m.index,B)}else this.addMatch(m.index,L)}}addMatch(l,m){null===this.matches?this.matches=[l,m]:this.matches.push(l,m)}}function x7(s,l){const m=s.localNames;if(null!==m)for(let L=0;L<m.length;L+=2)if(m[L]===l)return m[L+1];return null}function r8(s,l,m,L){return-1===m?function M7(s,l){return 11&s.type?q2(s,l):4&s.type?N0(s,l):null}(l,s):-2===m?function E7(s,l,m){return m===t3?q2(l,s):m===il?N0(l,s):m===r3?t8(l,s):void 0}(s,l,L):lo(s,s[1],m,l)}function cu(s,l,m,L){const N=l[19].queries[L];if(null===N.matches){const B=s.data,ae=m.matches,Se=[];for(let Ve=0;Ve<ae.length;Ve+=2){const dt=ae[Ve];Se.push(dt<0?null:r8(l,B[dt],ae[Ve+1],m.metadata.read))}N.matches=Se}return N.matches}function du(s,l,m,L){const N=s.queries.getByIndex(m),B=N.matches;if(null!==B){const ae=cu(s,l,N,m);for(let Se=0;Se<B.length;Se+=2){const Ve=B[Se];if(Ve>0)L.push(ae[Se/2]);else{const dt=B[Se+1],wt=l[-Ve];for(let Wt=10;Wt<wt.length;Wt++){const ci=wt[Wt];ci[17]===ci[3]&&du(ci[1],ci,dt,L)}if(null!==wt[9]){const Wt=wt[9];for(let ci=0;ci<Wt.length;ci++){const _i=Wt[ci];du(_i[1],_i,dt,L)}}}}}return L}function a8(s){const l=Hi(),m=Vn(),L=Pi();tn(L+1);const N=c8(m,L);if(s.dirty&&mt(l)===(2==(2&N.metadata.flags))){if(null===N.matches)s.reset([]);else{const B=N.crossesNgTemplate?du(m,l,L,[]):cu(m,l,N,L);s.reset(B,Xp),s.notifyOnChanges()}return!0}return!1}function hu(s,l,m){const L=Vn();L.firstCreatePass&&(o8(L,new H0(s,l,m),-1),2==(2&l)&&(L.staticViewQueries=!0)),s8(L,Hi(),l)}function uu(s,l,m,L){const N=Vn();if(N.firstCreatePass){const B=Cr();o8(N,new H0(l,m,L),B.index),function l8(s,l){const m=s.contentQueries||(s.contentQueries=[]);l!==(m.length?m[m.length-1]:-1)&&m.push(s.queries.length-1,l)}(N,s),2==(2&m)&&(N.staticContentQueries=!0)}s8(N,Hi(),m)}function fu(){return function w7(s,l){return s[19].queries[l].queryList}(Hi(),Pi())}function s8(s,l,m){const L=new R0(4==(4&m));L4(s,l,L,L.destroy),null===l[19]&&(l[19]=new su),l[19].queries.push(new au(L))}function o8(s,l,m){null===s.queries&&(s.queries=new ou),s.queries.track(new lu(l,m))}function c8(s,l){return s.queries.getByIndex(l)}function d8(s,l){return N0(s,l)}function z0(...s){}const bu=new Or("Application Initializer");let xu=(()=>{class s{constructor(m){this.appInits=m,this.resolve=z0,this.reject=z0,this.initialized=!1,this.done=!1,this.donePromise=new Promise((L,N)=>{this.resolve=L,this.reject=N})}runInitializers(){if(this.initialized)return;const m=[],L=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let N=0;N<this.appInits.length;N++){const B=this.appInits[N]();if(ts(B))m.push(B);else if(Vc(B)){const ae=new Promise((Se,Ve)=>{B.subscribe({complete:Se,error:Ve})});m.push(ae)}}Promise.all(m).then(()=>{L()}).catch(N=>{this.reject(N)}),0===m.length&&L(),this.initialized=!0}}return s.\u0275fac=function(m){return new(m||s)(Fa(bu,8))},s.\u0275prov=$({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const w8=new Or("AppId",{providedIn:"root",factory:function S8(){return`${Mu()}${Mu()}${Mu()}`}});function Mu(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Eu=new Or("Platform Initializer"),G7=new Or("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),wu=new Or("appBootstrapListener");let L8=(()=>{class s{log(m){console.log(m)}warn(m){console.warn(m)}}return s.\u0275fac=function(m){return new(m||s)},s.\u0275prov=$({token:s,factory:s.\u0275fac,providedIn:"platform"}),s})();const B0=new Or("LocaleId",{providedIn:"root",factory:()=>Z1(B0,Ae.Optional|Ae.SkipSelf)||function W7(){return"undefined"!=typeof $localize&&$localize.locale||Wr}()}),Y7=new Or("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class Z7{constructor(l,m){this.ngModuleFactory=l,this.componentFactories=m}}let K7=(()=>{class s{compileModuleSync(m){return new qh(m)}compileModuleAsync(m){return Promise.resolve(this.compileModuleSync(m))}compileModuleAndAllComponentsSync(m){const L=this.compileModuleSync(m),B=Os(Xt(m).declarations).reduce((ae,Se)=>{const Ve=at(Se);return Ve&&ae.push(new Kh(Ve)),ae},[]);return new Z7(L,B)}compileModuleAndAllComponentsAsync(m){return Promise.resolve(this.compileModuleAndAllComponentsSync(m))}clearCache(){}clearCacheFor(m){}getModuleId(m){}}return s.\u0275fac=function(m){return new(m||s)},s.\u0275prov=$({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const T8=(()=>Promise.resolve(0))();function U0(s){"undefined"==typeof Zone?T8.then(()=>{s&&s.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",s)}class Ks{constructor({enableLongStackTrace:l=!1,shouldCoalesceEventChangeDetection:m=!1,shouldCoalesceRunChangeDetection:L=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new oo(!1),this.onMicrotaskEmpty=new oo(!1),this.onStable=new oo(!1),this.onError=new oo(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const N=this;N._nesting=0,N._outer=N._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(N._inner=N._inner.fork(new Zone.TaskTrackingZoneSpec)),l&&Zone.longStackTraceZoneSpec&&(N._inner=N._inner.fork(Zone.longStackTraceZoneSpec)),N.shouldCoalesceEventChangeDetection=!L&&m,N.shouldCoalesceRunChangeDetection=L,N.lastRequestAnimationFrameId=-1,N.nativeRequestAnimationFrame=function X7(){let s=di.requestAnimationFrame,l=di.cancelAnimationFrame;if("undefined"!=typeof Zone&&s&&l){const m=s[Zone.__symbol__("OriginalDelegate")];m&&(s=m);const L=l[Zone.__symbol__("OriginalDelegate")];L&&(l=L)}return{nativeRequestAnimationFrame:s,nativeCancelAnimationFrame:l}}().nativeRequestAnimationFrame,function em(s){const l=()=>{!function J7(s){s.isCheckStableRunning||-1!==s.lastRequestAnimationFrameId||(s.lastRequestAnimationFrameId=s.nativeRequestAnimationFrame.call(di,()=>{s.fakeTopEventTask||(s.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{s.lastRequestAnimationFrameId=-1,Su(s),s.isCheckStableRunning=!0,G0(s),s.isCheckStableRunning=!1},void 0,()=>{},()=>{})),s.fakeTopEventTask.invoke()}),Su(s))}(s)};s._inner=s._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(m,L,N,B,ae,Se)=>{try{return A8(s),m.invokeTask(N,B,ae,Se)}finally{(s.shouldCoalesceEventChangeDetection&&"eventTask"===B.type||s.shouldCoalesceRunChangeDetection)&&l(),D8(s)}},onInvoke:(m,L,N,B,ae,Se,Ve)=>{try{return A8(s),m.invoke(N,B,ae,Se,Ve)}finally{s.shouldCoalesceRunChangeDetection&&l(),D8(s)}},onHasTask:(m,L,N,B)=>{m.hasTask(N,B),L===N&&("microTask"==B.change?(s._hasPendingMicrotasks=B.microTask,Su(s),G0(s)):"macroTask"==B.change&&(s.hasPendingMacrotasks=B.macroTask))},onHandleError:(m,L,N,B)=>(m.handleError(N,B),s.runOutsideAngular(()=>s.onError.emit(B)),!1)})}(N)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Ks.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Ks.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(l,m,L){return this._inner.run(l,m,L)}runTask(l,m,L,N){const B=this._inner,ae=B.scheduleEventTask("NgZoneEvent: "+N,l,q7,z0,z0);try{return B.runTask(ae,m,L)}finally{B.cancelTask(ae)}}runGuarded(l,m,L){return this._inner.runGuarded(l,m,L)}runOutsideAngular(l){return this._outer.run(l)}}const q7={};function G0(s){if(0==s._nesting&&!s.hasPendingMicrotasks&&!s.isStable)try{s._nesting++,s.onMicrotaskEmpty.emit(null)}finally{if(s._nesting--,!s.hasPendingMicrotasks)try{s.runOutsideAngular(()=>s.onStable.emit(null))}finally{s.isStable=!0}}}function Su(s){s.hasPendingMicrotasks=!!(s._hasPendingMicrotasks||(s.shouldCoalesceEventChangeDetection||s.shouldCoalesceRunChangeDetection)&&-1!==s.lastRequestAnimationFrameId)}function A8(s){s._nesting++,s.isStable&&(s.isStable=!1,s.onUnstable.emit(null))}function D8(s){s._nesting--,G0(s)}class tm{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new oo,this.onMicrotaskEmpty=new oo,this.onStable=new oo,this.onError=new oo}run(l,m,L){return l.apply(m,L)}runGuarded(l,m,L){return l.apply(m,L)}runOutsideAngular(l){return l()}runTask(l,m,L,N){return l.apply(m,L)}}let I8=(()=>{class s{constructor(m){this._ngZone=m,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),m.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Ks.assertNotInAngularZone(),U0(()=>{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())U0(()=>{for(;0!==this._callbacks.length;){let m=this._callbacks.pop();clearTimeout(m.timeoutId),m.doneCb(this._didWork)}this._didWork=!1});else{let m=this.getPendingTasks();this._callbacks=this._callbacks.filter(L=>!L.updateCb||!L.updateCb(m)||(clearTimeout(L.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(m=>({source:m.source,creationLocation:m.creationLocation,data:m.data})):[]}addCallback(m,L,N){let B=-1;L&&L>0&&(B=setTimeout(()=>{this._callbacks=this._callbacks.filter(ae=>ae.timeoutId!==B),m(this._didWork,this.getPendingTasks())},L)),this._callbacks.push({doneCb:m,timeoutId:B,updateCb:N})}whenStable(m,L,N){if(N&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(m,L,N),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(m,L,N){return[]}}return s.\u0275fac=function(m){return new(m||s)(Fa(Ks))},s.\u0275prov=$({token:s,factory:s.\u0275fac}),s})(),im=(()=>{class s{constructor(){this._applications=new Map,Lu.addToWindow(this)}registerApplication(m,L){this._applications.set(m,L)}unregisterApplication(m){this._applications.delete(m)}unregisterAllApplications(){this._applications.clear()}getTestability(m){return this._applications.get(m)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(m,L=!0){return Lu.findTestabilityInTree(this,m,L)}}return s.\u0275fac=function(m){return new(m||s)},s.\u0275prov=$({token:s,factory:s.\u0275fac,providedIn:"platform"}),s})();class nm{addToWindow(l){}findTestabilityInTree(l,m,L){return null}}function rm(s){Lu=s}let Lu=new nm,V1=null;const Tu=new Or("AllowMultipleToken"),O8=new Or("PlatformOnDestroy");class am{constructor(l,m){this.name=l,this.token=m}}function R8(s,l,m=[]){const L=`Platform: ${l}`,N=new Or(L);return(B=[])=>{let ae=Au();if(!ae||ae.injector.get(Tu,!1)){const Se=[...m,...B,{provide:N,useValue:!0}];s?s(Se):function sm(s){if(V1&&!V1.get(Tu,!1))throw new w(400,"");V1=s;const l=s.get(Du),m=s.get(Eu,null);m&&m.forEach(L=>L())}(function lm(s=[],l){return Us.create({name:l,providers:[{provide:pc,useValue:"platform"},{provide:O8,useValue:()=>V1=null},...s]})}(Se,L))}return function om(s){const l=Au();if(!l)throw new w(401,"");return l}()}}function Au(){var s;return null!==(s=null==V1?void 0:V1.get(Du))&&void 0!==s?s:null}let Du=(()=>{class s{constructor(m){this._injector=m,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(m,L){const Se=function cm(s,l){let m;return m="noop"===s?new tm:("zone.js"===s?void 0:s)||new Ks({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==l?void 0:l.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==l?void 0:l.ngZoneRunCoalescing)}),m}(L?L.ngZone:void 0,{ngZoneEventCoalescing:L&&L.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:L&&L.ngZoneRunCoalescing||!1}),Ve=[{provide:Ks,useValue:Se}];return Se.run(()=>{const dt=Us.create({providers:Ve,parent:this.injector,name:m.moduleType.name}),wt=m.create(dt),Wt=wt.injector.get(a2,null);if(!Wt)throw new w(402,"");return Se.runOutsideAngular(()=>{const ci=Se.onError.subscribe({next:_i=>{Wt.handleError(_i)}});wt.onDestroy(()=>{W0(this._modules,wt),ci.unsubscribe()})}),function dm(s,l,m){try{const L=m();return ts(L)?L.catch(N=>{throw l.runOutsideAngular(()=>s.handleError(N)),N}):L}catch(L){throw l.runOutsideAngular(()=>s.handleError(L)),L}}(Wt,Se,()=>{const ci=wt.injector.get(xu);return ci.runInitializers(),ci.donePromise.then(()=>(function Q2(s){n(s,"Expected localeId to be defined"),"string"==typeof s&&(Pa=s.toLowerCase().replace(/_/g,"-"))}(wt.injector.get(B0,Wr)||Wr),this._moduleDoBootstrap(wt),wt))})})}bootstrapModule(m,L=[]){const N=N8({},L);return function k8(s,l,m){const L=new qh(m);return Promise.resolve(L)}(0,0,m).then(B=>this.bootstrapModuleFactory(B,N))}_moduleDoBootstrap(m){const L=m.injector.get(Iu);if(m._bootstrapComponents.length>0)m._bootstrapComponents.forEach(N=>L.bootstrap(N));else{if(!m.instance.ngDoBootstrap)throw new w(403,"");m.instance.ngDoBootstrap(L)}this._modules.push(m)}onDestroy(m){this._destroyListeners.push(m)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new w(404,"");this._modules.slice().forEach(L=>L.destroy()),this._destroyListeners.forEach(L=>L());const m=this._injector.get(O8,null);null==m||m(),this._destroyed=!0}get destroyed(){return this._destroyed}}return s.\u0275fac=function(m){return new(m||s)(Fa(Us))},s.\u0275prov=$({token:s,factory:s.\u0275fac,providedIn:"platform"}),s})();function N8(s,l){return Array.isArray(l)?l.reduce(N8,s):Object.assign(Object.assign({},s),l)}let Iu=(()=>{class s{constructor(m,L,N,B){this._zone=m,this._injector=L,this._exceptionHandler=N,this._initStatus=B,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const ae=new u.y(Ve=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{Ve.next(this._stable),Ve.complete()})}),Se=new u.y(Ve=>{let dt;this._zone.runOutsideAngular(()=>{dt=this._zone.onStable.subscribe(()=>{Ks.assertNotInAngularZone(),U0(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,Ve.next(!0))})})});const wt=this._zone.onUnstable.subscribe(()=>{Ks.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{Ve.next(!1)}))});return()=>{dt.unsubscribe(),wt.unsubscribe()}});this.isStable=(0,b.T)(ae,Se.pipe((0,a.B)()))}bootstrap(m,L){if(!this._initStatus.done)throw new w(405,"");let N;N=m instanceof wf?m:this._injector.get(k0).resolveComponentFactory(m),this.componentTypes.push(N.componentType);const B=function P8(s){return s.isBoundToModule}(N)?void 0:this._injector.get(J2),Se=N.create(Us.NULL,[],L||N.selector,B),Ve=Se.location.nativeElement,dt=Se.injector.get(I8,null),wt=dt&&Se.injector.get(im);return dt&&wt&&wt.registerApplication(Ve,dt),Se.onDestroy(()=>{this.detachView(Se.hostView),W0(this.components,Se),wt&&wt.unregisterApplication(Ve)}),this._loadComponent(Se),Se}tick(){if(this._runningTick)throw new w(101,"");try{this._runningTick=!0;for(let m of this._views)m.detectChanges()}catch(m){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(m))}finally{this._runningTick=!1}}attachView(m){const L=m;this._views.push(L),L.attachToAppRef(this)}detachView(m){const L=m;W0(this._views,L),L.detachFromAppRef()}_loadComponent(m){this.attachView(m.hostView),this.tick(),this.components.push(m),this._injector.get(wu,[]).concat(this._bootstrapListeners).forEach(N=>N(m))}ngOnDestroy(){this._views.slice().forEach(m=>m.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return s.\u0275fac=function(m){return new(m||s)(Fa(Ks),Fa(Us),Fa(a2),Fa(xu))},s.\u0275prov=$({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();function W0(s,l){const m=s.indexOf(l);m>-1&&s.splice(m,1)}let F8=!0,V8=!1;function z8(){return V8=!0,F8}function um(){if(V8)throw new Error("Cannot enable prod mode after platform setup.");F8=!1}let U8=(()=>{class s{}return s.__NG_ELEMENT_ID__=pm,s})();function pm(s){return function G8(s,l,m){if(An(s)&&!m){const L=oi(s.index,l);return new i3(L,L)}return 47&s.type?new i3(l[16],l):null}(Cr(),Hi(),16==(16&s))}class Ru{constructor(){}supports(l){return P2(l)}create(l){return new Mm(l)}}const xm=(s,l)=>l;class Mm{constructor(l){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=l||xm}forEachItem(l){let m;for(m=this._itHead;null!==m;m=m._next)l(m)}forEachOperation(l){let m=this._itHead,L=this._removalsHead,N=0,B=null;for(;m||L;){const ae=!L||m&&m.currentIndex<Z8(L,N,B)?m:L,Se=Z8(ae,N,B),Ve=ae.currentIndex;if(ae===L)N--,L=L._nextRemoved;else if(m=m._next,null==ae.previousIndex)N++;else{B||(B=[]);const dt=Se-N,wt=Ve-N;if(dt!=wt){for(let ci=0;ci<dt;ci++){const _i=ci<B.length?B[ci]:B[ci]=0,Ni=_i+ci;wt<=Ni&&Ni<dt&&(B[ci]=_i+1)}B[ae.previousIndex]=wt-dt}}Se!==Ve&&l(ae,Se,Ve)}}forEachPreviousItem(l){let m;for(m=this._previousItHead;null!==m;m=m._nextPrevious)l(m)}forEachAddedItem(l){let m;for(m=this._additionsHead;null!==m;m=m._nextAdded)l(m)}forEachMovedItem(l){let m;for(m=this._movesHead;null!==m;m=m._nextMoved)l(m)}forEachRemovedItem(l){let m;for(m=this._removalsHead;null!==m;m=m._nextRemoved)l(m)}forEachIdentityChange(l){let m;for(m=this._identityChangesHead;null!==m;m=m._nextIdentityChange)l(m)}diff(l){if(null==l&&(l=[]),!P2(l))throw new w(900,"");return this.check(l)?this:null}onDestroy(){}check(l){this._reset();let N,B,ae,m=this._itHead,L=!1;if(Array.isArray(l)){this.length=l.length;for(let Se=0;Se<this.length;Se++)B=l[Se],ae=this._trackByFn(Se,B),null!==m&&Object.is(m.trackById,ae)?(L&&(m=this._verifyReinsertion(m,B,ae,Se)),Object.is(m.item,B)||this._addIdentityChange(m,B)):(m=this._mismatch(m,B,ae,Se),L=!0),m=m._next}else N=0,function W5(s,l){if(Array.isArray(s))for(let m=0;m<s.length;m++)l(s[m]);else{const m=s[Vo()]();let L;for(;!(L=m.next()).done;)l(L.value)}}(l,Se=>{ae=this._trackByFn(N,Se),null!==m&&Object.is(m.trackById,ae)?(L&&(m=this._verifyReinsertion(m,Se,ae,N)),Object.is(m.item,Se)||this._addIdentityChange(m,Se)):(m=this._mismatch(m,Se,ae,N),L=!0),m=m._next,N++}),this.length=N;return this._truncate(m),this.collection=l,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let l;for(l=this._previousItHead=this._itHead;null!==l;l=l._next)l._nextPrevious=l._next;for(l=this._additionsHead;null!==l;l=l._nextAdded)l.previousIndex=l.currentIndex;for(this._additionsHead=this._additionsTail=null,l=this._movesHead;null!==l;l=l._nextMoved)l.previousIndex=l.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(l,m,L,N){let B;return null===l?B=this._itTail:(B=l._prev,this._remove(l)),null!==(l=null===this._unlinkedRecords?null:this._unlinkedRecords.get(L,null))?(Object.is(l.item,m)||this._addIdentityChange(l,m),this._reinsertAfter(l,B,N)):null!==(l=null===this._linkedRecords?null:this._linkedRecords.get(L,N))?(Object.is(l.item,m)||this._addIdentityChange(l,m),this._moveAfter(l,B,N)):l=this._addAfter(new Em(m,L),B,N),l}_verifyReinsertion(l,m,L,N){let B=null===this._unlinkedRecords?null:this._unlinkedRecords.get(L,null);return null!==B?l=this._reinsertAfter(B,l._prev,N):l.currentIndex!=N&&(l.currentIndex=N,this._addToMoves(l,N)),l}_truncate(l){for(;null!==l;){const m=l._next;this._addToRemovals(this._unlink(l)),l=m}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(l,m,L){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(l);const N=l._prevRemoved,B=l._nextRemoved;return null===N?this._removalsHead=B:N._nextRemoved=B,null===B?this._removalsTail=N:B._prevRemoved=N,this._insertAfter(l,m,L),this._addToMoves(l,L),l}_moveAfter(l,m,L){return this._unlink(l),this._insertAfter(l,m,L),this._addToMoves(l,L),l}_addAfter(l,m,L){return this._insertAfter(l,m,L),this._additionsTail=null===this._additionsTail?this._additionsHead=l:this._additionsTail._nextAdded=l,l}_insertAfter(l,m,L){const N=null===m?this._itHead:m._next;return l._next=N,l._prev=m,null===N?this._itTail=l:N._prev=l,null===m?this._itHead=l:m._next=l,null===this._linkedRecords&&(this._linkedRecords=new j8),this._linkedRecords.put(l),l.currentIndex=L,l}_remove(l){return this._addToRemovals(this._unlink(l))}_unlink(l){null!==this._linkedRecords&&this._linkedRecords.remove(l);const m=l._prev,L=l._next;return null===m?this._itHead=L:m._next=L,null===L?this._itTail=m:L._prev=m,l}_addToMoves(l,m){return l.previousIndex===m||(this._movesTail=null===this._movesTail?this._movesHead=l:this._movesTail._nextMoved=l),l}_addToRemovals(l){return null===this._unlinkedRecords&&(this._unlinkedRecords=new j8),this._unlinkedRecords.put(l),l.currentIndex=null,l._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=l,l._prevRemoved=null):(l._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=l),l}_addIdentityChange(l,m){return l.item=m,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=l:this._identityChangesTail._nextIdentityChange=l,l}}class Em{constructor(l,m){this.item=l,this.trackById=m,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 wm{constructor(){this._head=null,this._tail=null}add(l){null===this._head?(this._head=this._tail=l,l._nextDup=null,l._prevDup=null):(this._tail._nextDup=l,l._prevDup=this._tail,l._nextDup=null,this._tail=l)}get(l,m){let L;for(L=this._head;null!==L;L=L._nextDup)if((null===m||m<=L.currentIndex)&&Object.is(L.trackById,l))return L;return null}remove(l){const m=l._prevDup,L=l._nextDup;return null===m?this._head=L:m._nextDup=L,null===L?this._tail=m:L._prevDup=m,null===this._head}}class j8{constructor(){this.map=new Map}put(l){const m=l.trackById;let L=this.map.get(m);L||(L=new wm,this.map.set(m,L)),L.add(l)}get(l,m){const N=this.map.get(l);return N?N.get(l,m):null}remove(l){const m=l.trackById;return this.map.get(m).remove(l)&&this.map.delete(m),l}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Z8(s,l,m){const L=s.previousIndex;if(null===L)return L;let N=0;return m&&L<m.length&&(N=m[L]),L+l+N}class K8{constructor(){}supports(l){return l instanceof Map||vc(l)}create(){return new Sm}}class Sm{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(l){let m;for(m=this._mapHead;null!==m;m=m._next)l(m)}forEachPreviousItem(l){let m;for(m=this._previousMapHead;null!==m;m=m._nextPrevious)l(m)}forEachChangedItem(l){let m;for(m=this._changesHead;null!==m;m=m._nextChanged)l(m)}forEachAddedItem(l){let m;for(m=this._additionsHead;null!==m;m=m._nextAdded)l(m)}forEachRemovedItem(l){let m;for(m=this._removalsHead;null!==m;m=m._nextRemoved)l(m)}diff(l){if(l){if(!(l instanceof Map||vc(l)))throw new w(900,"")}else l=new Map;return this.check(l)?this:null}onDestroy(){}check(l){this._reset();let m=this._mapHead;if(this._appendAfter=null,this._forEach(l,(L,N)=>{if(m&&m.key===N)this._maybeAddToChanges(m,L),this._appendAfter=m,m=m._next;else{const B=this._getOrCreateRecordForKey(N,L);m=this._insertBeforeOrAppend(m,B)}}),m){m._prev&&(m._prev._next=null),this._removalsHead=m;for(let L=m;null!==L;L=L._nextRemoved)L===this._mapHead&&(this._mapHead=null),this._records.delete(L.key),L._nextRemoved=L._next,L.previousValue=L.currentValue,L.currentValue=null,L._prev=null,L._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(l,m){if(l){const L=l._prev;return m._next=l,m._prev=L,l._prev=m,L&&(L._next=m),l===this._mapHead&&(this._mapHead=m),this._appendAfter=l,l}return this._appendAfter?(this._appendAfter._next=m,m._prev=this._appendAfter):this._mapHead=m,this._appendAfter=m,null}_getOrCreateRecordForKey(l,m){if(this._records.has(l)){const N=this._records.get(l);this._maybeAddToChanges(N,m);const B=N._prev,ae=N._next;return B&&(B._next=ae),ae&&(ae._prev=B),N._next=null,N._prev=null,N}const L=new Lm(l);return this._records.set(l,L),L.currentValue=m,this._addToAdditions(L),L}_reset(){if(this.isDirty){let l;for(this._previousMapHead=this._mapHead,l=this._previousMapHead;null!==l;l=l._next)l._nextPrevious=l._next;for(l=this._changesHead;null!==l;l=l._nextChanged)l.previousValue=l.currentValue;for(l=this._additionsHead;null!=l;l=l._nextAdded)l.previousValue=l.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(l,m){Object.is(m,l.currentValue)||(l.previousValue=l.currentValue,l.currentValue=m,this._addToChanges(l))}_addToAdditions(l){null===this._additionsHead?this._additionsHead=this._additionsTail=l:(this._additionsTail._nextAdded=l,this._additionsTail=l)}_addToChanges(l){null===this._changesHead?this._changesHead=this._changesTail=l:(this._changesTail._nextChanged=l,this._changesTail=l)}_forEach(l,m){l instanceof Map?l.forEach(m):Object.keys(l).forEach(L=>m(l[L],L))}}class Lm{constructor(l){this.key=l,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function $8(){return new Nu([new Ru])}let Nu=(()=>{class s{constructor(m){this.factories=m}static create(m,L){if(null!=L){const N=L.factories.slice();m=m.concat(N)}return new s(m)}static extend(m){return{provide:s,useFactory:L=>s.create(m,L||$8()),deps:[[s,new Ts,new n1]]}}find(m){const L=this.factories.find(N=>N.supports(m));if(null!=L)return L;throw new w(901,"")}}return s.\u0275prov=$({token:s,providedIn:"root",factory:$8}),s})();function Q8(){return new Hu([new K8])}let Hu=(()=>{class s{constructor(m){this.factories=m}static create(m,L){if(L){const N=L.factories.slice();m=m.concat(N)}return new s(m)}static extend(m){return{provide:s,useFactory:L=>s.create(m,L||Q8()),deps:[[s,new Ts,new n1]]}}find(m){const L=this.factories.find(B=>B.supports(m));if(L)return L;throw new w(901,"")}}return s.\u0275prov=$({token:s,providedIn:"root",factory:Q8}),s})();const Dm=R8(null,"core",[]);let Im=(()=>{class s{constructor(m){}}return s.\u0275fac=function(m){return new(m||s)(Fa(Iu))},s.\u0275mod=qe({type:s}),s.\u0275inj=ye({}),s})()},9042:(He,j,p)=>{"use strict";function e(T){for(let M in T){let A=T[M]||"";switch(M){case"display":T.display="flex"===A?["-webkit-flex","flex"]:"inline-flex"===A?["-webkit-inline-flex","inline-flex"]:A;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":T["-webkit-"+M]=A;break;case"flex-direction":A=A||"row",T["-webkit-flex-direction"]=A,T["flex-direction"]=A;break;case"order":T.order=T["-webkit-"+M]=isNaN(+A)?"0":A}}return T}p.d(j,{Ar:()=>b,GK:()=>e,iQ:()=>u,kt:()=>D,tj:()=>y});const i="inline",u=["row","column","row-reverse","column-reverse"];function b(T){let[M,A,E]=a(T);return function P(T,M=null,A=!1){return{display:A?"inline-flex":"flex","box-sizing":"border-box","flex-direction":T,"flex-wrap":M||null}}(M,A,E)}function a(T){var M;T=null!==(M=null==T?void 0:T.toLowerCase())&&void 0!==M?M:"";let[A,E,k]=T.split(" ");return u.find(w=>w===A)||(A=u[0]),E===i&&(E=k!==i?k:"",k=i),[A,d(E),!!k]}function y(T){let[M]=a(T);return M.indexOf("row")>-1}function d(T){if(T)switch(T.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":T="wrap-reverse";break;case"no":case"none":case"nowrap":T="nowrap";break;default:T="wrap"}return T}function D(T,...M){if(null==T)throw TypeError("Cannot convert undefined or null to object");for(let A of M)if(null!=A)for(let E in A)A.hasOwnProperty(E)&&(T[E]=A[E]);return T}},3270:(He,j,p)=>{"use strict";p.d(j,{Bs:()=>ne,FL:()=>di,IR:()=>E,Ot:()=>hi,QI:()=>le,RK:()=>q,WU:()=>U,g5:()=>z,iR:()=>xe,wY:()=>W,yB:()=>ce});var e=p(5e3),i=p(9808),u=p(1135),b=p(8306),a=p(6451),y=p(7579),d=p(9042),P=p(9300),D=p(8505);const M={provide:e.tb,useFactory:function T(vt,kt){return()=>{if((0,i.NF)(kt)){const gt=Array.from(vt.querySelectorAll(`[class*=${A}]`)),Qe=/\bflex-layout-.+?\b/g;gt.forEach(_t=>{_t.classList.contains(`${A}ssr`)&&_t.parentNode?_t.parentNode.removeChild(_t):_t.className.replace(Qe,"")})}}},deps:[i.K0,e.Lbi],multi:!0},A="flex-layout-";let E=(()=>{class vt{}return vt.\u0275fac=function(gt){return new(gt||vt)},vt.\u0275mod=e.oAB({type:vt}),vt.\u0275inj=e.cJS({providers:[M]}),vt})();class k{constructor(kt=!1,gt="all",Qe="",_t="",ei=0){this.matches=kt,this.mediaQuery=gt,this.mqAlias=Qe,this.suffix=_t,this.priority=ei,this.property=""}clone(){return new k(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let w=(()=>{class vt{constructor(){this.stylesheet=new Map}addStyleToElement(gt,Qe,_t){const ei=this.stylesheet.get(gt);ei?ei.set(Qe,_t):this.stylesheet.set(gt,new Map([[Qe,_t]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(gt,Qe){const _t=this.stylesheet.get(gt);let ei="";if(_t){const Zt=_t.get(Qe);("number"==typeof Zt||"string"==typeof Zt)&&(ei=Zt+"")}return ei}}return vt.\u0275fac=function(gt){return new(gt||vt)},vt.\u0275prov=e.Yz7({token:vt,factory:vt.\u0275fac,providedIn:"root"}),vt})();const z={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[],multiplier:void 0,defaultUnit:"px",detectLayoutDisplay:!1},U=new e.OlP("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>z}),W=new e.OlP("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),ne=new e.OlP("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function Q(vt,kt){return vt=vt?vt.clone():new k,kt&&(vt.mqAlias=kt.alias,vt.mediaQuery=kt.mediaQuery,vt.suffix=kt.suffix,vt.priority=kt.priority),vt}class le{constructor(){this.shouldCache=!0}sideEffect(kt,gt,Qe){}}let q=(()=>{class vt{constructor(gt,Qe,_t,ei){this._serverStylesheet=gt,this._serverModuleLoaded=Qe,this._platformId=_t,this.layoutConfig=ei}applyStyleToElement(gt,Qe,_t=null){let ei={};"string"==typeof Qe&&(ei[Qe]=_t,Qe=ei),ei=this.layoutConfig.disableVendorPrefixes?Qe:(0,d.GK)(Qe),this._applyMultiValueStyleToElement(ei,gt)}applyStyleToElements(gt,Qe=[]){const _t=this.layoutConfig.disableVendorPrefixes?gt:(0,d.GK)(gt);Qe.forEach(ei=>{this._applyMultiValueStyleToElement(_t,ei)})}getFlowDirection(gt){const Qe="flex-direction";let _t=this.lookupStyle(gt,Qe);return[_t||"row",this.lookupInlineStyle(gt,Qe)||(0,i.PM)(this._platformId)&&this._serverModuleLoaded?_t:""]}hasWrap(gt){return"wrap"===this.lookupStyle(gt,"flex-wrap")}lookupAttributeValue(gt,Qe){var _t;return null!==(_t=gt.getAttribute(Qe))&&void 0!==_t?_t:""}lookupInlineStyle(gt,Qe){return(0,i.NF)(this._platformId)?gt.style.getPropertyValue(Qe):function ie(vt,kt){var gt;return null!==(gt=me(vt)[kt])&&void 0!==gt?gt:""}(gt,Qe)}lookupStyle(gt,Qe,_t=!1){let ei="";return gt&&((ei=this.lookupInlineStyle(gt,Qe))||((0,i.NF)(this._platformId)?_t||(ei=getComputedStyle(gt).getPropertyValue(Qe)):this._serverModuleLoaded&&(ei=this._serverStylesheet.getStyleForElement(gt,Qe)))),ei?ei.trim():""}_applyMultiValueStyleToElement(gt,Qe){Object.keys(gt).sort().forEach(_t=>{const ei=gt[_t],Zt=Array.isArray(ei)?ei:[ei];Zt.sort();for(let Pe of Zt)Pe=Pe?Pe+"":"",(0,i.NF)(this._platformId)||!this._serverModuleLoaded?(0,i.NF)(this._platformId)?Qe.style.setProperty(_t,Pe):se(Qe,_t,Pe):this._serverStylesheet.addStyleToElement(Qe,_t,Pe)})}}return vt.\u0275fac=function(gt){return new(gt||vt)(e.LFG(w),e.LFG(W),e.LFG(e.Lbi),e.LFG(U))},vt.\u0275prov=e.Yz7({token:vt,factory:vt.\u0275fac,providedIn:"root"}),vt})();function se(vt,kt,gt){kt=kt.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const Qe=me(vt);Qe[kt]=null!=gt?gt:"",function J(vt,kt){let gt="";for(const Qe in kt)kt[Qe]&&(gt+=`${Qe}:${kt[Qe]};`);vt.setAttribute("style",gt)}(vt,Qe)}function me(vt){const kt={},gt=vt.getAttribute("style");if(gt){const Qe=gt.split(/;+/g);for(let _t=0;_t<Qe.length;_t++){const ei=Qe[_t].trim();if(ei.length>0){const Zt=ei.indexOf(":");if(-1===Zt)throw new Error(`Invalid CSS style: ${ei}`);kt[ei.substr(0,Zt).trim()]=ei.substr(Zt+1).trim()}}}return kt}function x(vt,kt){return(kt&&kt.priority||0)-(vt&&vt.priority||0)}function t(vt,kt){return(vt.priority||0)-(kt.priority||0)}let r=(()=>{class vt{constructor(gt,Qe,_t){this._zone=gt,this._platformId=Qe,this._document=_t,this.source=new u.X(new k(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const gt=[];return this.registry.forEach((Qe,_t)=>{Qe.matches&&gt.push(_t)}),gt}isActive(gt){var Qe;const _t=this.registry.get(gt);return null!==(Qe=null==_t?void 0:_t.matches)&&void 0!==Qe?Qe:this.registerQuery(gt).some(ei=>ei.matches)}observe(gt,Qe=!1){if(gt&&gt.length){const _t=this._observable$.pipe((0,P.h)(Zt=>!Qe||gt.indexOf(Zt.mediaQuery)>-1)),ei=new b.y(Zt=>{const Pe=this.registerQuery(gt);if(Pe.length){const De=Pe.pop();Pe.forEach(oe=>{Zt.next(oe)}),this.source.next(De)}Zt.complete()});return(0,a.T)(ei,_t)}return this._observable$}registerQuery(gt){const Qe=Array.isArray(gt)?gt:[gt],_t=[];return function c(vt,kt){const gt=vt.filter(Qe=>!h[Qe]);if(gt.length>0){const Qe=gt.join(", ");try{const _t=kt.createElement("style");_t.setAttribute("type","text/css"),_t.styleSheet||_t.appendChild(kt.createTextNode(`\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ${Qe} {.fx-query-test{ }}\n`)),kt.head.appendChild(_t),gt.forEach(ei=>h[ei]=_t)}catch(_t){console.error(_t)}}}(Qe,this._document),Qe.forEach(ei=>{const Zt=De=>{this._zone.run(()=>this.source.next(new k(De.matches,ei)))};let Pe=this.registry.get(ei);Pe||(Pe=this.buildMQL(ei),Pe.addListener(Zt),this.pendingRemoveListenerFns.push(()=>Pe.removeListener(Zt)),this.registry.set(ei,Pe)),Pe.matches&&_t.push(new k(!0,ei))}),_t}ngOnDestroy(){let gt;for(;gt=this.pendingRemoveListenerFns.pop();)gt()}buildMQL(gt){return function C(vt,kt){return kt&&window.matchMedia("all").addListener?window.matchMedia(vt):{matches:"all"===vt||""===vt,media:vt,addListener:()=>{},removeListener:()=>{},onchange:null,addEventListener(){},removeEventListener(){},dispatchEvent:()=>!1}}(gt,(0,i.NF)(this._platformId))}}return vt.\u0275fac=function(gt){return new(gt||vt)(e.LFG(e.R0b),e.LFG(e.Lbi),e.LFG(i.K0))},vt.\u0275prov=e.Yz7({token:vt,factory:vt.\u0275fac,providedIn:"root"}),vt})();const h={},S=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.98px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.98px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.98px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.98px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.98px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.98px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.98px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.98px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.98px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}],I="(orientation: portrait) and (max-width: 599.98px)",_="(orientation: landscape) and (max-width: 959.98px)",n="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",g="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",V="(orientation: portrait) and (min-width: 840px)",R="(orientation: landscape) and (min-width: 1280px)",H={HANDSET:`${I}, ${_}`,TABLET:`${n} , ${g}`,WEB:`${V}, ${R} `,HANDSET_PORTRAIT:`${I}`,TABLET_PORTRAIT:`${n} `,WEB_PORTRAIT:`${V}`,HANDSET_LANDSCAPE:`${_}`,TABLET_LANDSCAPE:`${g}`,WEB_LANDSCAPE:`${R}`},$=[{alias:"handset",priority:2e3,mediaQuery:H.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:H.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:H.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:H.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:H.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:H.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:H.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:H.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:H.WEB_PORTRAIT,overlapping:!0}],fe=/(\.|-|_)/g;function ye(vt){let kt=vt.length>0?vt.charAt(0):"",gt=vt.length>1?vt.slice(1):"";return kt.toUpperCase()+gt}const ze=new e.OlP("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const vt=(0,e.f3M)(ne),kt=(0,e.f3M)(U),gt=[].concat.apply([],(vt||[]).map(_t=>Array.isArray(_t)?_t:[_t]));return function te(vt,kt=[]){const gt={};return vt.forEach(Qe=>{gt[Qe.alias]=Qe}),kt.forEach(Qe=>{gt[Qe.alias]?(0,d.kt)(gt[Qe.alias],Qe):gt[Qe.alias]=Qe}),function Ee(vt){return vt.forEach(kt=>{kt.suffix||(kt.suffix=function ke(vt){return vt.replace(fe,"|").split("|").map(ye).join("")}(kt.alias),kt.overlapping=!!kt.overlapping)}),vt}(Object.keys(gt).map(Qe=>gt[Qe]))}((kt.disableDefaultBps?[]:S).concat(kt.addOrientationBps?$:[]),gt)}});let be=(()=>{class vt{constructor(gt){this.findByMap=new Map,this.items=[...gt].sort(t)}findByAlias(gt){return gt?this.findWithPredicate(gt,Qe=>Qe.alias===gt):null}findByQuery(gt){return this.findWithPredicate(gt,Qe=>Qe.mediaQuery===gt)}get overlappings(){return this.items.filter(gt=>gt.overlapping)}get aliases(){return this.items.map(gt=>gt.alias)}get suffixes(){return this.items.map(gt=>{var Qe;return null!==(Qe=null==gt?void 0:gt.suffix)&&void 0!==Qe?Qe:""})}findWithPredicate(gt,Qe){var _t;let ei=this.findByMap.get(gt);return ei||(ei=null!==(_t=this.items.find(Qe))&&void 0!==_t?_t:null,this.findByMap.set(gt,ei)),null!=ei?ei:null}}return vt.\u0275fac=function(gt){return new(gt||vt)(e.LFG(ze))},vt.\u0275prov=e.Yz7({token:vt,factory:vt.\u0275fac,providedIn:"root"}),vt})();const Z="print",Y={alias:Z,mediaQuery:Z,priority:1e3};let ot=(()=>{class vt{constructor(gt,Qe,_t){this.breakpoints=gt,this.layoutConfig=Qe,this._document=_t,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.formerActivations=null,this.isPrinting=!1,this.queue=new Ie,this.deactivations=[]}withPrintQuery(gt){return[...gt,Z]}isPrintEvent(gt){return gt.mediaQuery.startsWith(Z)}get printAlias(){var gt;return[...null!==(gt=this.layoutConfig.printWithBreakpoints)&&void 0!==gt?gt:[]]}get printBreakPoints(){return this.printAlias.map(gt=>this.breakpoints.findByAlias(gt)).filter(gt=>null!==gt)}getEventBreakpoints({mediaQuery:gt}){const Qe=this.breakpoints.findByQuery(gt);return(Qe?[...this.printBreakPoints,Qe]:this.printBreakPoints).sort(x)}updateEvent(gt){var Qe;let _t=this.breakpoints.findByQuery(gt.mediaQuery);return this.isPrintEvent(gt)&&(_t=this.getEventBreakpoints(gt)[0],gt.mediaQuery=null!==(Qe=null==_t?void 0:_t.mediaQuery)&&void 0!==Qe?Qe:""),Q(gt,_t)}registerBeforeAfterPrintHooks(gt){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const Qe=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(gt,this.getEventBreakpoints(new k(!0,Z))),gt.updateStyles())},_t=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(gt),gt.updateStyles())};this._document.defaultView.addEventListener("beforeprint",Qe),this._document.defaultView.addEventListener("afterprint",_t),this.beforePrintEventListeners.push(Qe),this.afterPrintEventListeners.push(_t)}interceptEvents(gt){return Qe=>{this.isPrintEvent(Qe)?Qe.matches&&!this.isPrinting?(this.startPrinting(gt,this.getEventBreakpoints(Qe)),gt.updateStyles()):!Qe.matches&&this.isPrinting&&!this.isPrintingBeforeAfterEvent&&(this.stopPrinting(gt),gt.updateStyles()):this.collectActivations(gt,Qe)}}blockPropagation(){return gt=>!(this.isPrinting||this.isPrintEvent(gt))}startPrinting(gt,Qe){this.isPrinting=!0,this.formerActivations=gt.activatedBreakpoints,gt.activatedBreakpoints=this.queue.addPrintBreakpoints(Qe)}stopPrinting(gt){gt.activatedBreakpoints=this.deactivations,this.deactivations=[],this.formerActivations=null,this.queue.clear(),this.isPrinting=!1}collectActivations(gt,Qe){if(!this.isPrinting||this.isPrintingBeforeAfterEvent){if(!this.isPrintingBeforeAfterEvent)return void(this.deactivations=[]);if(!Qe.matches){const _t=this.breakpoints.findByQuery(Qe.mediaQuery);if(_t){const ei=this.formerActivations&&this.formerActivations.includes(_t),Zt=!this.formerActivations&&gt.activatedBreakpoints.includes(_t);(ei||Zt)&&(this.deactivations.push(_t),this.deactivations.sort(x))}}}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(gt=>this._document.defaultView.removeEventListener("beforeprint",gt)),this.afterPrintEventListeners.forEach(gt=>this._document.defaultView.removeEventListener("afterprint",gt)))}}return vt.\u0275fac=function(gt){return new(gt||vt)(e.LFG(be),e.LFG(U),e.LFG(i.K0))},vt.\u0275prov=e.Yz7({token:vt,factory:vt.\u0275fac,providedIn:"root"}),vt})();class Ie{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(kt){return kt.push(Y),kt.sort(x),kt.forEach(gt=>this.addBreakpoint(gt)),this.printBreakpoints}addBreakpoint(kt){kt&&void 0===this.printBreakpoints.find(Qe=>Qe.mediaQuery===kt.mediaQuery)&&(this.printBreakpoints=function Ae(vt){var kt;return null!==(kt=null==vt?void 0:vt.mediaQuery.startsWith(Z))&&void 0!==kt&&kt}(kt)?[kt,...this.printBreakpoints]:[...this.printBreakpoints,kt])}clear(){this.printBreakpoints=[]}}let ce=(()=>{class vt{constructor(gt,Qe,_t){this.matchMedia=gt,this.breakpoints=Qe,this.hook=_t,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 y.x,this.observeActivations()}get activatedAlias(){var gt,Qe;return null!==(Qe=null===(gt=this.activatedBreakpoints[0])||void 0===gt?void 0:gt.alias)&&void 0!==Qe?Qe:""}set activatedBreakpoints(gt){this._activatedBreakpoints=[...gt]}get activatedBreakpoints(){return[...this._activatedBreakpoints]}set useFallbacks(gt){this._useFallbacks=gt}onMediaChange(gt){const Qe=this.findByQuery(gt.mediaQuery);if(Qe){gt=Q(gt,Qe);const _t=this.activatedBreakpoints.indexOf(Qe);gt.matches&&-1===_t?(this._activatedBreakpoints.push(Qe),this._activatedBreakpoints.sort(x),this.updateStyles()):!gt.matches&&-1!==_t&&(this._activatedBreakpoints.splice(_t,1),this._activatedBreakpoints.sort(x),this.updateStyles())}}init(gt,Qe,_t,ei,Zt=[]){Te(this.updateMap,gt,Qe,_t),Te(this.clearMap,gt,Qe,ei),this.buildElementKeyMap(gt,Qe),this.watchExtraTriggers(gt,Qe,Zt)}getValue(gt,Qe,_t){const ei=this.elementMap.get(gt);if(ei){const Zt=void 0!==_t?ei.get(_t):this.getActivatedValues(ei,Qe);if(Zt)return Zt.get(Qe)}}hasValue(gt,Qe){const _t=this.elementMap.get(gt);if(_t){const ei=this.getActivatedValues(_t,Qe);if(ei)return void 0!==ei.get(Qe)||!1}return!1}setValue(gt,Qe,_t,ei){var Zt;let Pe=this.elementMap.get(gt);if(Pe){const oe=(null!==(Zt=Pe.get(ei))&&void 0!==Zt?Zt:new Map).set(Qe,_t);Pe.set(ei,oe),this.elementMap.set(gt,Pe)}else Pe=(new Map).set(ei,(new Map).set(Qe,_t)),this.elementMap.set(gt,Pe);const De=this.getValue(gt,Qe);void 0!==De&&this.updateElement(gt,Qe,De)}trackValue(gt,Qe){return this.subject.asObservable().pipe((0,P.h)(_t=>_t.element===gt&&_t.key===Qe))}updateStyles(){this.elementMap.forEach((gt,Qe)=>{const _t=new Set(this.elementKeyMap.get(Qe));let ei=this.getActivatedValues(gt);ei&&ei.forEach((Zt,Pe)=>{this.updateElement(Qe,Pe,Zt),_t.delete(Pe)}),_t.forEach(Zt=>{if(ei=this.getActivatedValues(gt,Zt),ei){const Pe=ei.get(Zt);this.updateElement(Qe,Zt,Pe)}else this.clearElement(Qe,Zt)})})}clearElement(gt,Qe){const _t=this.clearMap.get(gt);if(_t){const ei=_t.get(Qe);ei&&(ei(),this.subject.next({element:gt,key:Qe,value:""}))}}updateElement(gt,Qe,_t){const ei=this.updateMap.get(gt);if(ei){const Zt=ei.get(Qe);Zt&&(Zt(_t),this.subject.next({element:gt,key:Qe,value:_t}))}}releaseElement(gt){const Qe=this.watcherMap.get(gt);Qe&&(Qe.forEach(ei=>ei.unsubscribe()),this.watcherMap.delete(gt));const _t=this.elementMap.get(gt);_t&&(_t.forEach((ei,Zt)=>_t.delete(Zt)),this.elementMap.delete(gt))}triggerUpdate(gt,Qe){const _t=this.elementMap.get(gt);if(_t){const ei=this.getActivatedValues(_t,Qe);ei&&(Qe?this.updateElement(gt,Qe,ei.get(Qe)):ei.forEach((Zt,Pe)=>this.updateElement(gt,Pe,Zt)))}}buildElementKeyMap(gt,Qe){let _t=this.elementKeyMap.get(gt);_t||(_t=new Set,this.elementKeyMap.set(gt,_t)),_t.add(Qe)}watchExtraTriggers(gt,Qe,_t){if(_t&&_t.length){let ei=this.watcherMap.get(gt);if(ei||(ei=new Map,this.watcherMap.set(gt,ei)),!ei.get(Qe)){const Pe=(0,a.T)(..._t).subscribe(()=>{const De=this.getValue(gt,Qe);this.updateElement(gt,Qe,De)});ei.set(Qe,Pe)}}}findByQuery(gt){return this.breakpoints.findByQuery(gt)}getActivatedValues(gt,Qe){for(let ei=0;ei<this.activatedBreakpoints.length;ei++){const Pe=gt.get(this.activatedBreakpoints[ei].alias);if(Pe&&(void 0===Qe||Pe.has(Qe)&&null!=Pe.get(Qe)))return Pe}if(!this._useFallbacks)return;const _t=gt.get("");return void 0===Qe||_t&&_t.has(Qe)?_t:void 0}observeActivations(){const gt=this.breakpoints.items.map(Qe=>Qe.mediaQuery);this.hook.registerBeforeAfterPrintHooks(this),this.matchMedia.observe(this.hook.withPrintQuery(gt)).pipe((0,D.b)(this.hook.interceptEvents(this)),(0,P.h)(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return vt.\u0275fac=function(gt){return new(gt||vt)(e.LFG(r),e.LFG(be),e.LFG(ot))},vt.\u0275prov=e.Yz7({token:vt,factory:vt.\u0275fac,providedIn:"root"}),vt})();function Te(vt,kt,gt,Qe){var _t;if(void 0!==Qe){const ei=null!==(_t=vt.get(kt))&&void 0!==_t?_t:new Map;ei.set(gt,Qe),vt.set(kt,ei)}}let xe=(()=>{class vt{constructor(gt,Qe,_t,ei){this.elementRef=gt,this.styleBuilder=Qe,this.styler=_t,this.marshal=ei,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new y.x,this.styleCache=new Map}get parentElement(){return this.elementRef.nativeElement.parentElement}get nativeElement(){return this.elementRef.nativeElement}get activatedValue(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)}set activatedValue(gt){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,gt,this.marshal.activatedAlias)}ngOnChanges(gt){Object.keys(gt).forEach(Qe=>{if(-1!==this.inputs.indexOf(Qe)){const _t=Qe.split(".").slice(1).join(".");this.setValue(gt[Qe].currentValue,_t)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(gt=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),gt)}addStyles(gt,Qe){const _t=this.styleBuilder,ei=_t.shouldCache;let Zt=this.styleCache.get(gt);(!Zt||!ei)&&(Zt=_t.buildStyles(gt,Qe),ei&&this.styleCache.set(gt,Zt)),this.mru=Object.assign({},Zt),this.applyStyleToElement(Zt),_t.sideEffect(gt,Zt,Qe)}clearStyles(){Object.keys(this.mru).forEach(gt=>{this.mru[gt]=""}),this.applyStyleToElement(this.mru),this.mru={},this.currentValue=void 0}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(gt,Qe=!1){if(gt){const[_t,ei]=this.styler.getFlowDirection(gt);if(!ei&&Qe){const Zt=(0,d.Ar)(_t);this.styler.applyStyleToElements(Zt,[gt])}return _t.trim()}return"row"}hasWrap(gt){return this.styler.hasWrap(gt)}applyStyleToElement(gt,Qe,_t=this.nativeElement){this.styler.applyStyleToElement(_t,gt,Qe)}setValue(gt,Qe){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,gt,Qe)}updateWithValue(gt){this.currentValue!==gt&&(this.addStyles(gt),this.currentValue=gt)}}return vt.\u0275fac=function(gt){return new(gt||vt)(e.Y36(e.SBq),e.Y36(le),e.Y36(q),e.Y36(ce))},vt.\u0275dir=e.lG2({type:vt,features:[e.TTD]}),vt})();function hi(vt,kt="1",gt="1"){let Qe=[kt,gt,vt],_t=vt.indexOf("calc");if(_t>0){Qe[2]=jt(vt.substring(_t).trim());let ei=vt.substr(0,_t).trim().split(" ");2==ei.length&&(Qe[0]=ei[0],Qe[1]=ei[1])}else if(0==_t)Qe[2]=jt(vt.trim());else{let ei=vt.split(" ");Qe=3===ei.length?ei:[kt,gt,vt]}return Qe}function jt(vt){return vt.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}function di(vt,kt){if(void 0===kt)return vt;const gt=Qe=>{const _t=+Qe.slice(0,-"x".length);return vt.endsWith("x")&&!isNaN(_t)?`${_t*kt.value}${kt.unit}`:vt};return vt.includes(" ")?vt.split(" ").map(gt).join(" "):gt(vt)}},3322:(He,j,p)=>{"use strict";p.d(j,{Zl:()=>S,aT:()=>n,oO:()=>z});var e=p(5e3),i=p(3270),u=p(9808),y=(p(3191),p(2722),p(2313));let E=(()=>{class g extends i.iR{constructor(R,H,$,fe,ye,ke,Ee){super(R,null,H,$),this.ngClassInstance=Ee,this.DIRECTIVE_KEY="ngClass",this.ngClassInstance||(this.ngClassInstance=new u.mk(fe,ye,R,ke)),this.init(),this.setValue("","")}set klass(R){this.ngClassInstance.klass=R,this.setValue(R,"")}updateWithValue(R){this.ngClassInstance.ngClass=R,this.ngClassInstance.ngDoCheck()}ngDoCheck(){this.ngClassInstance.ngDoCheck()}}return g.\u0275fac=function(R){return new(R||g)(e.Y36(e.SBq),e.Y36(i.RK),e.Y36(i.yB),e.Y36(e.ZZ4),e.Y36(e.aQg),e.Y36(e.Qsj),e.Y36(u.mk,10))},g.\u0275dir=e.lG2({type:g,inputs:{klass:["class","klass"]},features:[e.qOj]}),g})();const k=["ngClass","ngClass.xs","ngClass.sm","ngClass.md","ngClass.lg","ngClass.xl","ngClass.lt-sm","ngClass.lt-md","ngClass.lt-lg","ngClass.lt-xl","ngClass.gt-xs","ngClass.gt-sm","ngClass.gt-md","ngClass.gt-lg"];let z=(()=>{class g extends E{constructor(){super(...arguments),this.inputs=k}}return g.\u0275fac=function(){let V;return function(H){return(V||(V=e.n5z(g)))(H||g)}}(),g.\u0275dir=e.lG2({type:g,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]}),g})();class ie{constructor(V,R,H=!0){this.key=V,this.value=R,this.key=H?V.replace(/['"]/g,"").trim():V.trim(),this.value=H?R.replace(/['"]/g,"").trim():R.trim(),this.value=this.value.replace(/;/,"")}}function se(g){let V=typeof g;return"object"===V?g.constructor===Array?"array":g.constructor===Set?"set":"object":V}function t(g){const[V,...R]=g.split(":");return new ie(V,R.join(":"))}function r(g,V){return V.key&&(g[V.key]=V.value),g}let h=(()=>{class g extends i.iR{constructor(R,H,$,fe,ye,ke,Ee,te,ze){var be;super(R,null,H,$),this.sanitizer=fe,this.ngStyleInstance=Ee,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new u.PC(R,ye,ke)),this.init();const Z=null!==(be=this.nativeElement.getAttribute("style"))&&void 0!==be?be:"";this.fallbackStyles=this.buildStyleMap(Z),this.isServer=te&&(0,u.PM)(ze)}updateWithValue(R){const H=this.buildStyleMap(R);this.ngStyleInstance.ngStyle=Object.assign(Object.assign({},this.fallbackStyles),H),this.isServer&&this.applyStyleToElement(H),this.ngStyleInstance.ngDoCheck()}clearStyles(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}buildStyleMap(R){const H=$=>{var fe;return null!==(fe=this.sanitizer.sanitize(e.q3G.STYLE,$))&&void 0!==fe?fe:""};if(R)switch(se(R)){case"string":return I(function J(g,V=";"){return String(g).trim().split(V).map(R=>R.trim()).filter(R=>""!==R)}(R),H);case"array":return I(R,H);default:return function x(g,V){let R=[];return"set"===se(g)?g.forEach(H=>R.push(H)):Object.keys(g).forEach(H=>{R.push(`${H}:${g[H]}`)}),function me(g,V){return g.map(t).filter(H=>!!H).map(H=>(V&&(H.value=V(H.value)),H)).reduce(r,{})}(R,V)}(R,H)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return g.\u0275fac=function(R){return new(R||g)(e.Y36(e.SBq),e.Y36(i.RK),e.Y36(i.yB),e.Y36(y.H7),e.Y36(e.aQg),e.Y36(e.Qsj),e.Y36(u.PC,10),e.Y36(i.wY),e.Y36(e.Lbi))},g.\u0275dir=e.lG2({type:g,features:[e.qOj]}),g})();const c=["ngStyle","ngStyle.xs","ngStyle.sm","ngStyle.md","ngStyle.lg","ngStyle.xl","ngStyle.lt-sm","ngStyle.lt-md","ngStyle.lt-lg","ngStyle.lt-xl","ngStyle.gt-xs","ngStyle.gt-sm","ngStyle.gt-md","ngStyle.gt-lg"];let S=(()=>{class g extends h{constructor(){super(...arguments),this.inputs=c}}return g.\u0275fac=function(){let V;return function(H){return(V||(V=e.n5z(g)))(H||g)}}(),g.\u0275dir=e.lG2({type:g,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]}),g})();function I(g,V){return g.map(t).filter(H=>!!H).map(H=>(V&&(H.value=V(H.value)),H)).reduce(r,{})}let n=(()=>{class g{}return g.\u0275fac=function(R){return new(R||g)},g.\u0275mod=e.oAB({type:g}),g.\u0275inj=e.cJS({imports:[[i.IR]]}),g})()},7093:(He,j,p)=>{"use strict";p.d(j,{Wh:()=>jt,ae:()=>Pe,xw:()=>M,yH:()=>C});var e=p(5e3),i=p(226),u=p(3270),b=p(9042),y=(p(7579),p(2722));let d=(()=>{class De extends u.QI{buildStyles(Me,{display:ut}){const ft=(0,b.Ar)(Me);return Object.assign(Object.assign({},ft),{display:"none"===ut?ut:ft.display})}}return De.\u0275fac=function(){let oe;return function(ut){return(oe||(oe=e.n5z(De)))(ut||De)}}(),De.\u0275prov=e.Yz7({token:De,factory:De.\u0275fac,providedIn:"root"}),De})();const P=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"];let T=(()=>{class De extends u.iR{constructor(Me,ut,ft,Rt,et){super(Me,ft,ut,Rt),this._config=et,this.DIRECTIVE_KEY="layout",this.init()}updateWithValue(Me){var ut;const Rt=this._config.detectLayoutDisplay?this.styler.lookupStyle(this.nativeElement,"display"):"";this.styleCache=null!==(ut=A.get(Rt))&&void 0!==ut?ut:new Map,A.set(Rt,this.styleCache),this.currentValue!==Me&&(this.addStyles(Me,{display:Rt}),this.currentValue=Me)}}return De.\u0275fac=function(Me){return new(Me||De)(e.Y36(e.SBq),e.Y36(u.RK),e.Y36(d),e.Y36(u.yB),e.Y36(u.WU))},De.\u0275dir=e.lG2({type:De,features:[e.qOj]}),De})(),M=(()=>{class De extends T{constructor(){super(...arguments),this.inputs=P}}return De.\u0275fac=function(){let oe;return function(ut){return(oe||(oe=e.n5z(De)))(ut||De)}}(),De.\u0275dir=e.lG2({type:De,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]}),De})();const A=new Map;let t=(()=>{class De extends u.QI{constructor(Me){super(),this.layoutConfig=Me}buildStyles(Me,ut){let[ft,Rt,...et]=Me.split(" "),Re=et.join(" ");const qe=ut.direction.indexOf("column")>-1?"column":"row",Ze=(0,b.tj)(qe)?"max-width":"max-height",we=(0,b.tj)(qe)?"min-width":"min-height",Fe=String(Re).indexOf("calc")>-1,rt=Fe||"auto"===Re,at=String(Re).indexOf("%")>-1&&!Fe,yt=String(Re).indexOf("px")>-1||String(Re).indexOf("rem")>-1||String(Re).indexOf("em")>-1||String(Re).indexOf("vw")>-1||String(Re).indexOf("vh")>-1;let mi=Fe||yt;ft="0"==ft?0:ft,Rt="0"==Rt?0:Rt;const Xt=!ft&&!Rt;let Jt={};const qi={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(Re||""){case"":const ui=!1!==this.layoutConfig.useColumnBasisZero;Re="row"===qe?"0%":ui?"0.000000001px":"auto";break;case"initial":case"nogrow":ft=0,Re="auto";break;case"grow":Re="100%";break;case"noshrink":Rt=0,Re="auto";break;case"auto":break;case"none":ft=0,Rt=0,Re="auto";break;default:!mi&&!at&&!isNaN(Re)&&(Re+="%"),"0%"===Re&&(mi=!0),"0px"===Re&&(Re="0%"),Jt=(0,b.kt)(qi,Fe?{"flex-grow":ft,"flex-shrink":Rt,"flex-basis":mi?Re:"100%"}:{flex:`${ft} ${Rt} ${mi?Re:"100%"}`})}return Jt.flex||Jt["flex-grow"]||(Jt=(0,b.kt)(qi,Fe?{"flex-grow":ft,"flex-shrink":Rt,"flex-basis":Re}:{flex:`${ft} ${Rt} ${Re}`})),"0%"!==Re&&"0px"!==Re&&"0.000000001px"!==Re&&"auto"!==Re&&(Jt[we]=Xt||mi&&ft?Re:null,Jt[Ze]=Xt||!rt&&Rt?Re:null),Jt[we]||Jt[Ze]?ut.hasWrap&&(Jt[Fe?"flex-basis":"flex"]=Jt[Ze]?Fe?Jt[Ze]:`${ft} ${Rt} ${Jt[Ze]}`:Fe?Jt[we]:`${ft} ${Rt} ${Jt[we]}`):Jt=(0,b.kt)(qi,Fe?{"flex-grow":ft,"flex-shrink":Rt,"flex-basis":Re}:{flex:`${ft} ${Rt} ${Re}`}),(0,b.kt)(Jt,{"box-sizing":"border-box"})}}return De.\u0275fac=function(Me){return new(Me||De)(e.LFG(u.WU))},De.\u0275prov=e.Yz7({token:De,factory:De.\u0275fac,providedIn:"root"}),De})();const r=["fxFlex","fxFlex.xs","fxFlex.sm","fxFlex.md","fxFlex.lg","fxFlex.xl","fxFlex.lt-sm","fxFlex.lt-md","fxFlex.lt-lg","fxFlex.lt-xl","fxFlex.gt-xs","fxFlex.gt-sm","fxFlex.gt-md","fxFlex.gt-lg"];let c=(()=>{class De extends u.iR{constructor(Me,ut,ft,Rt,et){super(Me,Rt,ut,et),this.layoutConfig=ft,this.marshal=et,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(Me){this.flexShrink=Me||"1",this.triggerReflow()}get grow(){return this.flexGrow}set grow(Me){this.flexGrow=Me||"1",this.triggerReflow()}ngOnInit(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe((0,y.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe((0,y.R)(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}onLayoutChange(Me){const ft=Me.value.split(" ");this.direction=ft[0],this.wrap=void 0!==ft[1]&&"wrap"===ft[1],this.triggerUpdate()}updateWithValue(Me){void 0===this.direction&&(this.direction=this.getFlexFlowDirection(this.parentElement,!1!==this.layoutConfig.addFlexToParent)),void 0===this.wrap&&(this.wrap=this.hasWrap(this.parentElement));const ft=this.direction,Rt=ft.startsWith("row"),et=this.wrap;Rt&&et?this.styleCache=_:Rt&&!et?this.styleCache=S:!Rt&&et?this.styleCache=n:!Rt&&!et&&(this.styleCache=I);const Re=String(Me).replace(";",""),qe=(0,u.Ot)(Re,this.flexGrow,this.flexShrink);this.addStyles(qe.join(" "),{direction:ft,hasWrap:et})}triggerReflow(){const Me=this.activatedValue;if(void 0!==Me){const ut=(0,u.Ot)(Me+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,ut.join(" "))}}}return De.\u0275fac=function(Me){return new(Me||De)(e.Y36(e.SBq),e.Y36(u.RK),e.Y36(u.WU),e.Y36(t),e.Y36(u.yB))},De.\u0275dir=e.lG2({type:De,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[e.qOj]}),De})(),C=(()=>{class De extends c{constructor(){super(...arguments),this.inputs=r}}return De.\u0275fac=function(){let oe;return function(ut){return(oe||(oe=e.n5z(De)))(ut||De)}}(),De.\u0275dir=e.lG2({type:De,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]}),De})();const S=new Map,I=new Map,_=new Map,n=new Map;let lt=(()=>{class De extends u.QI{buildStyles(Me,ut){const ft={},[Rt,et]=Me.split(" ");switch(Rt){case"center":ft["justify-content"]="center";break;case"space-around":ft["justify-content"]="space-around";break;case"space-between":ft["justify-content"]="space-between";break;case"space-evenly":ft["justify-content"]="space-evenly";break;case"end":case"flex-end":ft["justify-content"]="flex-end";break;default:ft["justify-content"]="flex-start"}switch(et){case"start":case"flex-start":ft["align-items"]=ft["align-content"]="flex-start";break;case"center":ft["align-items"]=ft["align-content"]="center";break;case"end":case"flex-end":ft["align-items"]=ft["align-content"]="flex-end";break;case"space-between":ft["align-content"]="space-between",ft["align-items"]="stretch";break;case"space-around":ft["align-content"]="space-around",ft["align-items"]="stretch";break;case"baseline":ft["align-content"]="stretch",ft["align-items"]="baseline";break;default:ft["align-items"]=ft["align-content"]="stretch"}return(0,b.kt)(ft,{display:ut.inline?"inline-flex":"flex","flex-direction":ut.layout,"box-sizing":"border-box","max-width":"stretch"===et?(0,b.tj)(ut.layout)?null:"100%":null,"max-height":"stretch"===et&&(0,b.tj)(ut.layout)?"100%":null})}}return De.\u0275fac=function(){let oe;return function(ut){return(oe||(oe=e.n5z(De)))(ut||De)}}(),De.\u0275prov=e.Yz7({token:De,factory:De.\u0275fac,providedIn:"root"}),De})();const ht=["fxLayoutAlign","fxLayoutAlign.xs","fxLayoutAlign.sm","fxLayoutAlign.md","fxLayoutAlign.lg","fxLayoutAlign.xl","fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg"];let hi=(()=>{class De extends u.iR{constructor(Me,ut,ft,Rt){super(Me,ft,ut,Rt),this.DIRECTIVE_KEY="layout-align",this.layout="row",this.inline=!1,this.init(),this.marshal.trackValue(this.nativeElement,"layout").pipe((0,y.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}updateWithValue(Me){const ut=this.layout||"row",ft=this.inline;"row"===ut&&ft?this.styleCache=gt:"row"!==ut||ft?"row-reverse"===ut&&ft?this.styleCache=_t:"row-reverse"!==ut||ft?"column"===ut&&ft?this.styleCache=Qe:"column"!==ut||ft?"column-reverse"===ut&&ft?this.styleCache=ei:"column-reverse"===ut&&!ft&&(this.styleCache=kt):this.styleCache=di:this.styleCache=vt:this.styleCache=Gt,this.addStyles(Me,{layout:ut,inline:ft})}onLayoutChange(Me){const ut=Me.value.split(" ");this.layout=ut[0],this.inline=Me.value.includes("inline"),b.iQ.find(ft=>ft===this.layout)||(this.layout="row"),this.triggerUpdate()}}return De.\u0275fac=function(Me){return new(Me||De)(e.Y36(e.SBq),e.Y36(u.RK),e.Y36(lt),e.Y36(u.yB))},De.\u0275dir=e.lG2({type:De,features:[e.qOj]}),De})(),jt=(()=>{class De extends hi{constructor(){super(...arguments),this.inputs=ht}}return De.\u0275fac=function(){let oe;return function(ut){return(oe||(oe=e.n5z(De)))(ut||De)}}(),De.\u0275dir=e.lG2({type:De,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]}),De})();const Gt=new Map,di=new Map,vt=new Map,kt=new Map,gt=new Map,Qe=new Map,_t=new Map,ei=new Map;let Pe=(()=>{class De{}return De.\u0275fac=function(Me){return new(Me||De)},De.\u0275mod=e.oAB({type:De}),De.\u0275inj=e.cJS({imports:[[u.IR,i.vT]]}),De})()},3075:(He,j,p)=>{"use strict";p.d(j,{Cf:()=>U,F:()=>Yt,Fd:()=>Ma,Fj:()=>k,JJ:()=>Ae,JL:()=>ce,JU:()=>P,NI:()=>Li,On:()=>An,Q7:()=>Fr,UX:()=>mt,Zs:()=>ha,_Y:()=>Kn,a5:()=>be,kI:()=>Q,oH:()=>La,qQ:()=>qn,qu:()=>Ai,sg:()=>rr,u:()=>Xn,u5:()=>oi,wV:()=>wi});var e=p(5e3),i=p(9808),u=p(457),b=p(4128),a=p(4004);let y=(()=>{class Ke{constructor(Ne,Lt){this._renderer=Ne,this._elementRef=Lt,this.onChange=vi=>{},this.onTouched=()=>{}}setProperty(Ne,Lt){this._renderer.setProperty(this._elementRef.nativeElement,Ne,Lt)}registerOnTouched(Ne){this.onTouched=Ne}registerOnChange(Ne){this.onChange=Ne}setDisabledState(Ne){this.setProperty("disabled",Ne)}}return Ke.\u0275fac=function(Ne){return new(Ne||Ke)(e.Y36(e.Qsj),e.Y36(e.SBq))},Ke.\u0275dir=e.lG2({type:Ke}),Ke})(),d=(()=>{class Ke extends y{}return Ke.\u0275fac=function(){let Be;return function(Lt){return(Be||(Be=e.n5z(Ke)))(Lt||Ke)}}(),Ke.\u0275dir=e.lG2({type:Ke,features:[e.qOj]}),Ke})();const P=new e.OlP("NgValueAccessor"),M={provide:P,useExisting:(0,e.Gpc)(()=>k),multi:!0},E=new e.OlP("CompositionEventMode");let k=(()=>{class Ke extends y{constructor(Ne,Lt,vi){super(Ne,Lt),this._compositionMode=vi,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function A(){const Ke=(0,i.q)()?(0,i.q)().getUserAgent():"";return/android (\d+)/.test(Ke.toLowerCase())}())}writeValue(Ne){this.setProperty("value",null==Ne?"":Ne)}_handleInput(Ne){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(Ne)}_compositionStart(){this._composing=!0}_compositionEnd(Ne){this._composing=!1,this._compositionMode&&this.onChange(Ne)}}return Ke.\u0275fac=function(Ne){return new(Ne||Ke)(e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(E,8))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(Ne,Lt){1&Ne&&e.NdJ("input",function($i){return Lt._handleInput($i.target.value)})("blur",function(){return Lt.onTouched()})("compositionstart",function(){return Lt._compositionStart()})("compositionend",function($i){return Lt._compositionEnd($i.target.value)})},features:[e._Bn([M]),e.qOj]}),Ke})();function w(Ke){return null==Ke||0===Ke.length}function z(Ke){return null!=Ke&&"number"==typeof Ke.length}const U=new e.OlP("NgValidators"),W=new e.OlP("NgAsyncValidators"),ne=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class Q{static min(Be){return le(Be)}static max(Be){return q(Be)}static required(Be){return ie(Be)}static requiredTrue(Be){return se(Be)}static email(Be){return function J(Ke){return w(Ke.value)||ne.test(Ke.value)?null:{email:!0}}(Be)}static minLength(Be){return function me(Ke){return Be=>w(Be.value)||!z(Be.value)?null:Be.value.length<Ke?{minlength:{requiredLength:Ke,actualLength:Be.value.length}}:null}(Be)}static maxLength(Be){return function x(Ke){return Be=>z(Be.value)&&Be.value.length>Ke?{maxlength:{requiredLength:Ke,actualLength:Be.value.length}}:null}(Be)}static pattern(Be){return function t(Ke){if(!Ke)return r;let Be,Ne;return"string"==typeof Ke?(Ne="","^"!==Ke.charAt(0)&&(Ne+="^"),Ne+=Ke,"$"!==Ke.charAt(Ke.length-1)&&(Ne+="$"),Be=new RegExp(Ne)):(Ne=Ke.toString(),Be=Ke),Lt=>{if(w(Lt.value))return null;const vi=Lt.value;return Be.test(vi)?null:{pattern:{requiredPattern:Ne,actualValue:vi}}}}(Be)}static nullValidator(Be){return null}static compose(Be){return n(Be)}static composeAsync(Be){return V(Be)}}function le(Ke){return Be=>{if(w(Be.value)||w(Ke))return null;const Ne=parseFloat(Be.value);return!isNaN(Ne)&&Ne<Ke?{min:{min:Ke,actual:Be.value}}:null}}function q(Ke){return Be=>{if(w(Be.value)||w(Ke))return null;const Ne=parseFloat(Be.value);return!isNaN(Ne)&&Ne>Ke?{max:{max:Ke,actual:Be.value}}:null}}function ie(Ke){return w(Ke.value)?{required:!0}:null}function se(Ke){return!0===Ke.value?null:{required:!0}}function r(Ke){return null}function h(Ke){return null!=Ke}function c(Ke){const Be=(0,e.QGY)(Ke)?(0,u.D)(Ke):Ke;return(0,e.CqO)(Be),Be}function C(Ke){let Be={};return Ke.forEach(Ne=>{Be=null!=Ne?Object.assign(Object.assign({},Be),Ne):Be}),0===Object.keys(Be).length?null:Be}function S(Ke,Be){return Be.map(Ne=>Ne(Ke))}function _(Ke){return Ke.map(Be=>function I(Ke){return!Ke.validate}(Be)?Be:Ne=>Be.validate(Ne))}function n(Ke){if(!Ke)return null;const Be=Ke.filter(h);return 0==Be.length?null:function(Ne){return C(S(Ne,Be))}}function g(Ke){return null!=Ke?n(_(Ke)):null}function V(Ke){if(!Ke)return null;const Be=Ke.filter(h);return 0==Be.length?null:function(Ne){const Lt=S(Ne,Be).map(c);return(0,b.D)(Lt).pipe((0,a.U)(C))}}function R(Ke){return null!=Ke?V(_(Ke)):null}function H(Ke,Be){return null===Ke?[Be]:Array.isArray(Ke)?[...Ke,Be]:[Ke,Be]}function $(Ke){return Ke._rawValidators}function fe(Ke){return Ke._rawAsyncValidators}function ye(Ke){return Ke?Array.isArray(Ke)?Ke:[Ke]:[]}function ke(Ke,Be){return Array.isArray(Ke)?Ke.includes(Be):Ke===Be}function Ee(Ke,Be){const Ne=ye(Be);return ye(Ke).forEach(vi=>{ke(Ne,vi)||Ne.push(vi)}),Ne}function te(Ke,Be){return ye(Be).filter(Ne=>!ke(Ke,Ne))}class ze{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=g(this._rawValidators)}_setAsyncValidators(Be){this._rawAsyncValidators=Be||[],this._composedAsyncValidatorFn=R(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,Ne){return!!this.control&&this.control.hasError(Be,Ne)}getError(Be,Ne){return this.control?this.control.getError(Be,Ne):null}}class be extends ze{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Z extends ze{get formDirective(){return null}get path(){return null}}class Y{constructor(Be){this._cd=Be}is(Be){var Ne,Lt,vi;return"submitted"===Be?!!(null===(Ne=this._cd)||void 0===Ne?void 0:Ne.submitted):!!(null===(vi=null===(Lt=this._cd)||void 0===Lt?void 0:Lt.control)||void 0===vi?void 0:vi[Be])}}let Ae=(()=>{class Ke extends Y{constructor(Ne){super(Ne)}}return Ke.\u0275fac=function(Ne){return new(Ne||Ke)(e.Y36(be,2))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(Ne,Lt){2&Ne&&e.ekj("ng-untouched",Lt.is("untouched"))("ng-touched",Lt.is("touched"))("ng-pristine",Lt.is("pristine"))("ng-dirty",Lt.is("dirty"))("ng-valid",Lt.is("valid"))("ng-invalid",Lt.is("invalid"))("ng-pending",Lt.is("pending"))},features:[e.qOj]}),Ke})(),ce=(()=>{class Ke extends Y{constructor(Ne){super(Ne)}}return Ke.\u0275fac=function(Ne){return new(Ne||Ke)(e.Y36(Z,10))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(Ne,Lt){2&Ne&&e.ekj("ng-untouched",Lt.is("untouched"))("ng-touched",Lt.is("touched"))("ng-pristine",Lt.is("pristine"))("ng-dirty",Lt.is("dirty"))("ng-valid",Lt.is("valid"))("ng-invalid",Lt.is("invalid"))("ng-pending",Lt.is("pending"))("ng-submitted",Lt.is("submitted"))},features:[e.qOj]}),Ke})();function gt(Ke,Be){return[...Be.path,Ke]}function Qe(Ke,Be){Pe(Ke,Be),Be.valueAccessor.writeValue(Ke.value),function oe(Ke,Be){Be.valueAccessor.registerOnChange(Ne=>{Ke._pendingValue=Ne,Ke._pendingChange=!0,Ke._pendingDirty=!0,"change"===Ke.updateOn&&ut(Ke,Be)})}(Ke,Be),function ft(Ke,Be){const Ne=(Lt,vi)=>{Be.valueAccessor.writeValue(Lt),vi&&Be.viewToModelUpdate(Lt)};Ke.registerOnChange(Ne),Be._registerOnDestroy(()=>{Ke._unregisterOnChange(Ne)})}(Ke,Be),function Me(Ke,Be){Be.valueAccessor.registerOnTouched(()=>{Ke._pendingTouched=!0,"blur"===Ke.updateOn&&Ke._pendingChange&&ut(Ke,Be),"submit"!==Ke.updateOn&&Ke.markAsTouched()})}(Ke,Be),function Zt(Ke,Be){if(Be.valueAccessor.setDisabledState){const Ne=Lt=>{Be.valueAccessor.setDisabledState(Lt)};Ke.registerOnDisabledChange(Ne),Be._registerOnDestroy(()=>{Ke._unregisterOnDisabledChange(Ne)})}}(Ke,Be)}function _t(Ke,Be,Ne=!0){const Lt=()=>{};Be.valueAccessor&&(Be.valueAccessor.registerOnChange(Lt),Be.valueAccessor.registerOnTouched(Lt)),De(Ke,Be),Ke&&(Be._invokeOnDestroyCallbacks(),Ke._registerOnCollectionChange(()=>{}))}function ei(Ke,Be){Ke.forEach(Ne=>{Ne.registerOnValidatorChange&&Ne.registerOnValidatorChange(Be)})}function Pe(Ke,Be){const Ne=$(Ke);null!==Be.validator?Ke.setValidators(H(Ne,Be.validator)):"function"==typeof Ne&&Ke.setValidators([Ne]);const Lt=fe(Ke);null!==Be.asyncValidator?Ke.setAsyncValidators(H(Lt,Be.asyncValidator)):"function"==typeof Lt&&Ke.setAsyncValidators([Lt]);const vi=()=>Ke.updateValueAndValidity();ei(Be._rawValidators,vi),ei(Be._rawAsyncValidators,vi)}function De(Ke,Be){let Ne=!1;if(null!==Ke){if(null!==Be.validator){const vi=$(Ke);if(Array.isArray(vi)&&vi.length>0){const $i=vi.filter(Nn=>Nn!==Be.validator);$i.length!==vi.length&&(Ne=!0,Ke.setValidators($i))}}if(null!==Be.asyncValidator){const vi=fe(Ke);if(Array.isArray(vi)&&vi.length>0){const $i=vi.filter(Nn=>Nn!==Be.asyncValidator);$i.length!==vi.length&&(Ne=!0,Ke.setAsyncValidators($i))}}}const Lt=()=>{};return ei(Be._rawValidators,Lt),ei(Be._rawAsyncValidators,Lt),Ne}function ut(Ke,Be){Ke._pendingDirty&&Ke.markAsDirty(),Ke.setValue(Ke._pendingValue,{emitModelToViewChange:!1}),Be.viewToModelUpdate(Ke._pendingValue),Ke._pendingChange=!1}function Rt(Ke,Be){Pe(Ke,Be)}function Fe(Ke,Be){if(!Ke.hasOwnProperty("model"))return!1;const Ne=Ke.model;return!!Ne.isFirstChange()||!Object.is(Be,Ne.currentValue)}function at(Ke,Be){Ke._syncPendingControls(),Be.forEach(Ne=>{const Lt=Ne.control;"submit"===Lt.updateOn&&Lt._pendingChange&&(Ne.viewToModelUpdate(Lt._pendingValue),Lt._pendingChange=!1)})}function yt(Ke,Be){if(!Be)return null;let Ne,Lt,vi;return Array.isArray(Be),Be.forEach($i=>{$i.constructor===k?Ne=$i:function rt(Ke){return Object.getPrototypeOf(Ke.constructor)===d}($i)?Lt=$i:vi=$i}),vi||Lt||Ne||null}function mi(Ke,Be){const Ne=Ke.indexOf(Be);Ne>-1&&Ke.splice(Ne,1)}const qi="VALID",ui="INVALID",si="PENDING",en="DISABLED";function Bi(Ke){return(pt(Ke)?Ke.validators:Ke)||null}function Gi(Ke){return Array.isArray(Ke)?g(Ke):Ke||null}function ct(Ke,Be){return(pt(Be)?Be.asyncValidators:Ke)||null}function Ft(Ke){return Array.isArray(Ke)?R(Ke):Ke||null}function pt(Ke){return null!=Ke&&!Array.isArray(Ke)&&"object"==typeof Ke}const it=Ke=>Ke instanceof Li,It=Ke=>Ke instanceof Ji,de=Ke=>Ke instanceof Wi;function $e(Ke){return it(Ke)?Ke.value:Ke.getRawValue()}function bt(Ke,Be){const Ne=It(Ke),Lt=Ke.controls;if(!(Ne?Object.keys(Lt):Lt).length)throw new e.vHH(1e3,"");if(!Lt[Be])throw new e.vHH(1001,"")}function Vt(Ke,Be){It(Ke),Ke._forEachChild((Lt,vi)=>{if(void 0===Be[vi])throw new e.vHH(1002,"")})}class bi{constructor(Be,Ne){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=Be,this._rawAsyncValidators=Ne,this._composedValidatorFn=Gi(this._rawValidators),this._composedAsyncValidatorFn=Ft(this._rawAsyncValidators)}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===qi}get invalid(){return this.status===ui}get pending(){return this.status==si}get disabled(){return this.status===en}get enabled(){return this.status!==en}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._rawValidators=Be,this._composedValidatorFn=Gi(Be)}setAsyncValidators(Be){this._rawAsyncValidators=Be,this._composedAsyncValidatorFn=Ft(Be)}addValidators(Be){this.setValidators(Ee(Be,this._rawValidators))}addAsyncValidators(Be){this.setAsyncValidators(Ee(Be,this._rawAsyncValidators))}removeValidators(Be){this.setValidators(te(Be,this._rawValidators))}removeAsyncValidators(Be){this.setAsyncValidators(te(Be,this._rawAsyncValidators))}hasValidator(Be){return ke(this._rawValidators,Be)}hasAsyncValidator(Be){return ke(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(Ne=>{Ne.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(Ne=>{Ne.markAsPristine({onlySelf:!0})}),this._parent&&!Be.onlySelf&&this._parent._updatePristine(Be)}markAsPending(Be={}){this.status=si,!1!==Be.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!Be.onlySelf&&this._parent.markAsPending(Be)}disable(Be={}){const Ne=this._parentMarkedDirty(Be.onlySelf);this.status=en,this.errors=null,this._forEachChild(Lt=>{Lt.disable(Object.assign(Object.assign({},Be),{onlySelf:!0}))}),this._updateValue(),!1!==Be.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},Be),{skipPristineCheck:Ne})),this._onDisabledChange.forEach(Lt=>Lt(!0))}enable(Be={}){const Ne=this._parentMarkedDirty(Be.onlySelf);this.status=qi,this._forEachChild(Lt=>{Lt.enable(Object.assign(Object.assign({},Be),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:Be.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},Be),{skipPristineCheck:Ne})),this._onDisabledChange.forEach(Lt=>Lt(!1))}_updateAncestors(Be){this._parent&&!Be.onlySelf&&(this._parent.updateValueAndValidity(Be),Be.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(Be){this._parent=Be}updateValueAndValidity(Be={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===qi||this.status===si)&&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(Ne=>Ne._updateTreeValidity(Be)),this.updateValueAndValidity({onlySelf:!0,emitEvent:Be.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?en:qi}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(Be){if(this.asyncValidator){this.status=si,this._hasOwnPendingAsyncValidator=!0;const Ne=c(this.asyncValidator(this));this._asyncValidationSubscription=Ne.subscribe(Lt=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(Lt,{emitEvent:Be})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(Be,Ne={}){this.errors=Be,this._updateControlsErrors(!1!==Ne.emitEvent)}get(Be){return function Ui(Ke,Be,Ne){if(null==Be||(Array.isArray(Be)||(Be=Be.split(Ne)),Array.isArray(Be)&&0===Be.length))return null;let Lt=Ke;return Be.forEach(vi=>{Lt=It(Lt)?Lt.controls.hasOwnProperty(vi)?Lt.controls[vi]:null:de(Lt)&&Lt.at(vi)||null}),Lt}(this,Be,".")}getError(Be,Ne){const Lt=Ne?this.get(Ne):this;return Lt&&Lt.errors?Lt.errors[Be]:null}hasError(Be,Ne){return!!this.getError(Be,Ne)}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()?en:this.errors?ui:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(si)?si:this._anyControlsHaveStatus(ui)?ui:qi}_anyControlsHaveStatus(Be){return this._anyControls(Ne=>Ne.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)}_isBoxedValue(Be){return"object"==typeof Be&&null!==Be&&2===Object.keys(Be).length&&"value"in Be&&"disabled"in Be}_registerOnCollectionChange(Be){this._onCollectionChange=Be}_setUpdateStrategy(Be){pt(Be)&&null!=Be.updateOn&&(this._updateOn=Be.updateOn)}_parentMarkedDirty(Be){return!Be&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Li extends bi{constructor(Be=null,Ne,Lt){super(Bi(Ne),ct(Lt,Ne)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(Be),this._setUpdateStrategy(Ne),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),pt(Ne)&&Ne.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(Be)?Be.value:Be)}setValue(Be,Ne={}){this.value=this._pendingValue=Be,this._onChange.length&&!1!==Ne.emitModelToViewChange&&this._onChange.forEach(Lt=>Lt(this.value,!1!==Ne.emitViewToModelChange)),this.updateValueAndValidity(Ne)}patchValue(Be,Ne={}){this.setValue(Be,Ne)}reset(Be=this.defaultValue,Ne={}){this._applyFormState(Be),this.markAsPristine(Ne),this.markAsUntouched(Ne),this.setValue(this.value,Ne),this._pendingChange=!1}_updateValue(){}_anyControls(Be){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(Be){this._onChange.push(Be)}_unregisterOnChange(Be){mi(this._onChange,Be)}registerOnDisabledChange(Be){this._onDisabledChange.push(Be)}_unregisterOnDisabledChange(Be){mi(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){this._isBoxedValue(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}}class Ji extends bi{constructor(Be,Ne,Lt){super(Bi(Ne),ct(Lt,Ne)),this.controls=Be,this._initObservables(),this._setUpdateStrategy(Ne),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(Be,Ne){return this.controls[Be]?this.controls[Be]:(this.controls[Be]=Ne,Ne.setParent(this),Ne._registerOnCollectionChange(this._onCollectionChange),Ne)}addControl(Be,Ne,Lt={}){this.registerControl(Be,Ne),this.updateValueAndValidity({emitEvent:Lt.emitEvent}),this._onCollectionChange()}removeControl(Be,Ne={}){this.controls[Be]&&this.controls[Be]._registerOnCollectionChange(()=>{}),delete this.controls[Be],this.updateValueAndValidity({emitEvent:Ne.emitEvent}),this._onCollectionChange()}setControl(Be,Ne,Lt={}){this.controls[Be]&&this.controls[Be]._registerOnCollectionChange(()=>{}),delete this.controls[Be],Ne&&this.registerControl(Be,Ne),this.updateValueAndValidity({emitEvent:Lt.emitEvent}),this._onCollectionChange()}contains(Be){return this.controls.hasOwnProperty(Be)&&this.controls[Be].enabled}setValue(Be,Ne={}){Vt(this,Be),Object.keys(Be).forEach(Lt=>{bt(this,Lt),this.controls[Lt].setValue(Be[Lt],{onlySelf:!0,emitEvent:Ne.emitEvent})}),this.updateValueAndValidity(Ne)}patchValue(Be,Ne={}){null!=Be&&(Object.keys(Be).forEach(Lt=>{this.controls[Lt]&&this.controls[Lt].patchValue(Be[Lt],{onlySelf:!0,emitEvent:Ne.emitEvent})}),this.updateValueAndValidity(Ne))}reset(Be={},Ne={}){this._forEachChild((Lt,vi)=>{Lt.reset(Be[vi],{onlySelf:!0,emitEvent:Ne.emitEvent})}),this._updatePristine(Ne),this._updateTouched(Ne),this.updateValueAndValidity(Ne)}getRawValue(){return this._reduceChildren({},(Be,Ne,Lt)=>(Be[Lt]=$e(Ne),Be))}_syncPendingControls(){let Be=this._reduceChildren(!1,(Ne,Lt)=>!!Lt._syncPendingControls()||Ne);return Be&&this.updateValueAndValidity({onlySelf:!0}),Be}_forEachChild(Be){Object.keys(this.controls).forEach(Ne=>{const Lt=this.controls[Ne];Lt&&Be(Lt,Ne)})}_setUpControls(){this._forEachChild(Be=>{Be.setParent(this),Be._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(Be){for(const Ne of Object.keys(this.controls)){const Lt=this.controls[Ne];if(this.contains(Ne)&&Be(Lt))return!0}return!1}_reduceValue(){return this._reduceChildren({},(Be,Ne,Lt)=>((Ne.enabled||this.disabled)&&(Be[Lt]=Ne.value),Be))}_reduceChildren(Be,Ne){let Lt=Be;return this._forEachChild((vi,$i)=>{Lt=Ne(Lt,vi,$i)}),Lt}_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}}class Wi extends bi{constructor(Be,Ne,Lt){super(Bi(Ne),ct(Lt,Ne)),this.controls=Be,this._initObservables(),this._setUpdateStrategy(Ne),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(Be){return this.controls[Be]}push(Be,Ne={}){this.controls.push(Be),this._registerControl(Be),this.updateValueAndValidity({emitEvent:Ne.emitEvent}),this._onCollectionChange()}insert(Be,Ne,Lt={}){this.controls.splice(Be,0,Ne),this._registerControl(Ne),this.updateValueAndValidity({emitEvent:Lt.emitEvent})}removeAt(Be,Ne={}){this.controls[Be]&&this.controls[Be]._registerOnCollectionChange(()=>{}),this.controls.splice(Be,1),this.updateValueAndValidity({emitEvent:Ne.emitEvent})}setControl(Be,Ne,Lt={}){this.controls[Be]&&this.controls[Be]._registerOnCollectionChange(()=>{}),this.controls.splice(Be,1),Ne&&(this.controls.splice(Be,0,Ne),this._registerControl(Ne)),this.updateValueAndValidity({emitEvent:Lt.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(Be,Ne={}){Vt(this,Be),Be.forEach((Lt,vi)=>{bt(this,vi),this.at(vi).setValue(Lt,{onlySelf:!0,emitEvent:Ne.emitEvent})}),this.updateValueAndValidity(Ne)}patchValue(Be,Ne={}){null!=Be&&(Be.forEach((Lt,vi)=>{this.at(vi)&&this.at(vi).patchValue(Lt,{onlySelf:!0,emitEvent:Ne.emitEvent})}),this.updateValueAndValidity(Ne))}reset(Be=[],Ne={}){this._forEachChild((Lt,vi)=>{Lt.reset(Be[vi],{onlySelf:!0,emitEvent:Ne.emitEvent})}),this._updatePristine(Ne),this._updateTouched(Ne),this.updateValueAndValidity(Ne)}getRawValue(){return this.controls.map(Be=>$e(Be))}clear(Be={}){this.controls.length<1||(this._forEachChild(Ne=>Ne._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:Be.emitEvent}))}_syncPendingControls(){let Be=this.controls.reduce((Ne,Lt)=>!!Lt._syncPendingControls()||Ne,!1);return Be&&this.updateValueAndValidity({onlySelf:!0}),Be}_forEachChild(Be){this.controls.forEach((Ne,Lt)=>{Be(Ne,Lt)})}_updateValue(){this.value=this.controls.filter(Be=>Be.enabled||this.disabled).map(Be=>Be.value)}_anyControls(Be){return this.controls.some(Ne=>Ne.enabled&&Be(Ne))}_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)}}const sn={provide:Z,useExisting:(0,e.Gpc)(()=>Yt)},mn=(()=>Promise.resolve(null))();let Yt=(()=>{class Ke extends Z{constructor(Ne,Lt){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new e.vpe,this.form=new Ji({},g(Ne),R(Lt))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(Ne){mn.then(()=>{const Lt=this._findContainer(Ne.path);Ne.control=Lt.registerControl(Ne.name,Ne.control),Qe(Ne.control,Ne),Ne.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(Ne)})}getControl(Ne){return this.form.get(Ne.path)}removeControl(Ne){mn.then(()=>{const Lt=this._findContainer(Ne.path);Lt&&Lt.removeControl(Ne.name),this._directives.delete(Ne)})}addFormGroup(Ne){mn.then(()=>{const Lt=this._findContainer(Ne.path),vi=new Ji({});Rt(vi,Ne),Lt.registerControl(Ne.name,vi),vi.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(Ne){mn.then(()=>{const Lt=this._findContainer(Ne.path);Lt&&Lt.removeControl(Ne.name)})}getFormGroup(Ne){return this.form.get(Ne.path)}updateModel(Ne,Lt){mn.then(()=>{this.form.get(Ne.path).setValue(Lt)})}setValue(Ne){this.control.setValue(Ne)}onSubmit(Ne){return this.submitted=!0,at(this.form,this._directives),this.ngSubmit.emit(Ne),!1}onReset(){this.resetForm()}resetForm(Ne){this.form.reset(Ne),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(Ne){return Ne.pop(),Ne.length?this.form.get(Ne):this.form}}return Ke.\u0275fac=function(Ne){return new(Ne||Ke)(e.Y36(U,10),e.Y36(W,10))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(Ne,Lt){1&Ne&&e.NdJ("submit",function($i){return Lt.onSubmit($i)})("reset",function(){return Lt.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[e._Bn([sn]),e.qOj]}),Ke})();const hn={provide:be,useExisting:(0,e.Gpc)(()=>An)},Hn=(()=>Promise.resolve(null))();let An=(()=>{class Ke extends be{constructor(Ne,Lt,vi,$i,Nn){super(),this._changeDetectorRef=Nn,this.control=new Li,this._registered=!1,this.update=new e.vpe,this._parent=Ne,this._setValidators(Lt),this._setAsyncValidators(vi),this.valueAccessor=yt(0,$i)}ngOnChanges(Ne){if(this._checkForErrors(),!this._registered||"name"in Ne){if(this._registered&&(this._checkName(),this.formDirective)){const Lt=Ne.name.previousValue;this.formDirective.removeControl({name:Lt,path:this._getPath(Lt)})}this._setUpControl()}"isDisabled"in Ne&&this._updateDisabled(Ne),Fe(Ne,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(Ne){this.viewModel=Ne,this.update.emit(Ne)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Qe(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(Ne){Hn.then(()=>{var Lt;this.control.setValue(Ne,{emitViewToModelChange:!1}),null===(Lt=this._changeDetectorRef)||void 0===Lt||Lt.markForCheck()})}_updateDisabled(Ne){const Lt=Ne.isDisabled.currentValue,vi=""===Lt||Lt&&"false"!==Lt;Hn.then(()=>{var $i;vi&&!this.control.disabled?this.control.disable():!vi&&this.control.disabled&&this.control.enable(),null===($i=this._changeDetectorRef)||void 0===$i||$i.markForCheck()})}_getPath(Ne){return this._parent?gt(Ne,this._parent):[Ne]}}return Ke.\u0275fac=function(Ne){return new(Ne||Ke)(e.Y36(Z,9),e.Y36(U,10),e.Y36(W,10),e.Y36(P,10),e.Y36(e.sBO,8))},Ke.\u0275dir=e.lG2({type:Ke,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([hn]),e.qOj,e.TTD]}),Ke})(),Kn=(()=>{class Ke{}return Ke.\u0275fac=function(Ne){return new(Ne||Ke)},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),Ke})();const Cn={provide:P,useExisting:(0,e.Gpc)(()=>wi),multi:!0};let wi=(()=>{class Ke extends d{writeValue(Ne){this.setProperty("value",null==Ne?"":Ne)}registerOnChange(Ne){this.onChange=Lt=>{Ne(""==Lt?null:parseFloat(Lt))}}}return Ke.\u0275fac=function(){let Be;return function(Lt){return(Be||(Be=e.n5z(Ke)))(Lt||Ke)}}(),Ke.\u0275dir=e.lG2({type:Ke,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(Ne,Lt){1&Ne&&e.NdJ("input",function($i){return Lt.onChange($i.target.value)})("blur",function(){return Lt.onTouched()})},features:[e._Bn([Cn]),e.qOj]}),Ke})(),Gn=(()=>{class Ke{}return Ke.\u0275fac=function(Ne){return new(Ne||Ke)},Ke.\u0275mod=e.oAB({type:Ke}),Ke.\u0275inj=e.cJS({}),Ke})();const sa=new e.OlP("NgModelWithFormControlWarning"),oa={provide:be,useExisting:(0,e.Gpc)(()=>La)};let La=(()=>{class Ke extends be{constructor(Ne,Lt,vi,$i){super(),this._ngModelWarningConfig=$i,this.update=new e.vpe,this._ngModelWarningSent=!1,this._setValidators(Ne),this._setAsyncValidators(Lt),this.valueAccessor=yt(0,vi)}set isDisabled(Ne){}ngOnChanges(Ne){if(this._isControlChanged(Ne)){const Lt=Ne.form.previousValue;Lt&&_t(Lt,this,!1),Qe(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}Fe(Ne,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(Ne){this.viewModel=Ne,this.update.emit(Ne)}_isControlChanged(Ne){return Ne.hasOwnProperty("form")}}return Ke._ngModelWarningSentOnce=!1,Ke.\u0275fac=function(Ne){return new(Ne||Ke)(e.Y36(U,10),e.Y36(W,10),e.Y36(P,10),e.Y36(sa,8))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[e._Bn([oa]),e.qOj,e.TTD]}),Ke})();const Ta={provide:Z,useExisting:(0,e.Gpc)(()=>rr)};let rr=(()=>{class Ke extends Z{constructor(Ne,Lt){super(),this.validators=Ne,this.asyncValidators=Lt,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new e.vpe,this._setValidators(Ne),this._setAsyncValidators(Lt)}ngOnChanges(Ne){this._checkFormPresent(),Ne.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(De(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(Ne){const Lt=this.form.get(Ne.path);return Qe(Lt,Ne),Lt.updateValueAndValidity({emitEvent:!1}),this.directives.push(Ne),Lt}getControl(Ne){return this.form.get(Ne.path)}removeControl(Ne){_t(Ne.control||null,Ne,!1),mi(this.directives,Ne)}addFormGroup(Ne){this._setUpFormContainer(Ne)}removeFormGroup(Ne){this._cleanUpFormContainer(Ne)}getFormGroup(Ne){return this.form.get(Ne.path)}addFormArray(Ne){this._setUpFormContainer(Ne)}removeFormArray(Ne){this._cleanUpFormContainer(Ne)}getFormArray(Ne){return this.form.get(Ne.path)}updateModel(Ne,Lt){this.form.get(Ne.path).setValue(Lt)}onSubmit(Ne){return this.submitted=!0,at(this.form,this.directives),this.ngSubmit.emit(Ne),!1}onReset(){this.resetForm()}resetForm(Ne){this.form.reset(Ne),this.submitted=!1}_updateDomValue(){this.directives.forEach(Ne=>{const Lt=Ne.control,vi=this.form.get(Ne.path);Lt!==vi&&(_t(Lt||null,Ne),it(vi)&&(Qe(vi,Ne),Ne.control=vi))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(Ne){const Lt=this.form.get(Ne.path);Rt(Lt,Ne),Lt.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(Ne){if(this.form){const Lt=this.form.get(Ne.path);Lt&&function et(Ke,Be){return De(Ke,Be)}(Lt,Ne)&&Lt.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Pe(this.form,this),this._oldForm&&De(this._oldForm,this)}_checkFormPresent(){}}return Ke.\u0275fac=function(Ne){return new(Ne||Ke)(e.Y36(U,10),e.Y36(W,10))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","formGroup",""]],hostBindings:function(Ne,Lt){1&Ne&&e.NdJ("submit",function($i){return Lt.onSubmit($i)})("reset",function(){return Lt.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[e._Bn([Ta]),e.qOj,e.TTD]}),Ke})();const Rr={provide:be,useExisting:(0,e.Gpc)(()=>Xn)};let Xn=(()=>{class Ke extends be{constructor(Ne,Lt,vi,$i,Nn){super(),this._ngModelWarningConfig=Nn,this._added=!1,this.update=new e.vpe,this._ngModelWarningSent=!1,this._parent=Ne,this._setValidators(Lt),this._setAsyncValidators(vi),this.valueAccessor=yt(0,$i)}set isDisabled(Ne){}ngOnChanges(Ne){this._added||this._setUpControl(),Fe(Ne,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(Ne){this.viewModel=Ne,this.update.emit(Ne)}get path(){return gt(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return Ke._ngModelWarningSentOnce=!1,Ke.\u0275fac=function(Ne){return new(Ne||Ke)(e.Y36(Z,13),e.Y36(U,10),e.Y36(W,10),e.Y36(P,10),e.Y36(sa,8))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[e._Bn([Rr]),e.qOj,e.TTD]}),Ke})();function da(Ke){return"number"==typeof Ke?Ke:parseFloat(Ke)}let Jn=(()=>{class Ke{constructor(){this._validator=r}ngOnChanges(Ne){if(this.inputName in Ne){const Lt=this.normalizeInput(Ne[this.inputName].currentValue);this._enabled=this.enabled(Lt),this._validator=this._enabled?this.createValidator(Lt):r,this._onChange&&this._onChange()}}validate(Ne){return this._validator(Ne)}registerOnValidatorChange(Ne){this._onChange=Ne}enabled(Ne){return null!=Ne}}return Ke.\u0275fac=function(Ne){return new(Ne||Ke)},Ke.\u0275dir=e.lG2({type:Ke,features:[e.TTD]}),Ke})();const ga={provide:U,useExisting:(0,e.Gpc)(()=>Ma),multi:!0};let Ma=(()=>{class Ke extends Jn{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=Ne=>da(Ne),this.createValidator=Ne=>q(Ne)}}return Ke.\u0275fac=function(){let Be;return function(Lt){return(Be||(Be=e.n5z(Ke)))(Lt||Ke)}}(),Ke.\u0275dir=e.lG2({type:Ke,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(Ne,Lt){2&Ne&&e.uIk("max",Lt._enabled?Lt.max:null)},inputs:{max:"max"},features:[e._Bn([ga]),e.qOj]}),Ke})();const $n={provide:U,useExisting:(0,e.Gpc)(()=>qn),multi:!0};let qn=(()=>{class Ke extends Jn{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=Ne=>da(Ne),this.createValidator=Ne=>le(Ne)}}return Ke.\u0275fac=function(){let Be;return function(Lt){return(Be||(Be=e.n5z(Ke)))(Lt||Ke)}}(),Ke.\u0275dir=e.lG2({type:Ke,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(Ne,Lt){2&Ne&&e.uIk("min",Lt._enabled?Lt.min:null)},inputs:{min:"min"},features:[e._Bn([$n]),e.qOj]}),Ke})();const Hr={provide:U,useExisting:(0,e.Gpc)(()=>Fr),multi:!0},br={provide:U,useExisting:(0,e.Gpc)(()=>ha),multi:!0};let Fr=(()=>{class Ke extends Jn{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=Ne=>function ca(Ke){return null!=Ke&&!1!==Ke&&"false"!=`${Ke}`}(Ne),this.createValidator=Ne=>ie}enabled(Ne){return Ne}}return Ke.\u0275fac=function(){let Be;return function(Lt){return(Be||(Be=e.n5z(Ke)))(Lt||Ke)}}(),Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(Ne,Lt){2&Ne&&e.uIk("required",Lt._enabled?"":null)},inputs:{required:"required"},features:[e._Bn([Hr]),e.qOj]}),Ke})(),ha=(()=>{class Ke extends Fr{constructor(){super(...arguments),this.createValidator=Ne=>se}}return Ke.\u0275fac=function(){let Be;return function(Lt){return(Be||(Be=e.n5z(Ke)))(Lt||Ke)}}(),Ke.\u0275dir=e.lG2({type:Ke,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(Ne,Lt){2&Ne&&e.uIk("required",Lt._enabled?"":null)},features:[e._Bn([br]),e.qOj]}),Ke})(),At=(()=>{class Ke{}return Ke.\u0275fac=function(Ne){return new(Ne||Ke)},Ke.\u0275mod=e.oAB({type:Ke}),Ke.\u0275inj=e.cJS({imports:[[Gn]]}),Ke})(),oi=(()=>{class Ke{}return Ke.\u0275fac=function(Ne){return new(Ne||Ke)},Ke.\u0275mod=e.oAB({type:Ke}),Ke.\u0275inj=e.cJS({imports:[At]}),Ke})(),mt=(()=>{class Ke{static withConfig(Ne){return{ngModule:Ke,providers:[{provide:sa,useValue:Ne.warnOnNgModelWithFormControl}]}}}return Ke.\u0275fac=function(Ne){return new(Ne||Ke)},Ke.\u0275mod=e.oAB({type:Ke}),Ke.\u0275inj=e.cJS({imports:[At]}),Ke})(),Ai=(()=>{class Ke{group(Ne,Lt=null){const vi=this._reduceControls(Ne);let Sr,$i=null,Nn=null;return null!=Lt&&(function $t(Ke){return void 0!==Ke.asyncValidators||void 0!==Ke.validators||void 0!==Ke.updateOn}(Lt)?($i=null!=Lt.validators?Lt.validators:null,Nn=null!=Lt.asyncValidators?Lt.asyncValidators:null,Sr=null!=Lt.updateOn?Lt.updateOn:void 0):($i=null!=Lt.validator?Lt.validator:null,Nn=null!=Lt.asyncValidator?Lt.asyncValidator:null)),new Ji(vi,{asyncValidators:Nn,updateOn:Sr,validators:$i})}control(Ne,Lt,vi){return new Li(Ne,Lt,vi)}array(Ne,Lt,vi){const $i=Ne.map(Nn=>this._createControl(Nn));return new Wi($i,Lt,vi)}_reduceControls(Ne){const Lt={};return Object.keys(Ne).forEach(vi=>{Lt[vi]=this._createControl(Ne[vi])}),Lt}_createControl(Ne){return it(Ne)||It(Ne)||de(Ne)?Ne:Array.isArray(Ne)?this.control(Ne[0],Ne.length>1?Ne[1]:null,Ne.length>2?Ne[2]:null):this.control(Ne)}}return Ke.\u0275fac=function(Ne){return new(Ne||Ke)},Ke.\u0275prov=e.Yz7({token:Ke,factory:Ke.\u0275fac,providedIn:mt}),Ke})()},1079:(He,j,p)=>{"use strict";p.d(j,{Bb:()=>te,XC:()=>n,ZL:()=>ye});var e=p(5664),i=p(3191),u=p(5e3),b=p(508),a=p(727),y=p(7579),d=p(9770),P=p(6451),D=p(9646),T=p(4968),M=p(925),A=p(9808),E=p(9776),k=p(5303),w=p(1159),z=p(7429),U=p(3075),W=p(7322),ne=p(8675),Q=p(3900),le=p(5698),q=p(9300),ie=p(4004),se=p(8505),J=p(4086),me=p(226);const x=["panel"];function t(ze,be){if(1&ze&&(u.TgZ(0,"div",0,1),u.Hsn(2),u.qZA()),2&ze){const Z=be.id,Y=u.oxw();u.Q6J("id",Y.id)("ngClass",Y._classList),u.uIk("aria-label",Y.ariaLabel||null)("aria-labelledby",Y._getPanelAriaLabelledby(Z))}}const r=["*"];let h=0;class c{constructor(be,Z){this.source=be,this.option=Z}}const C=(0,b.Kr)(class{}),S=new u.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function I(){return{autoActiveFirstOption:!1}}});let _=(()=>{class ze extends C{constructor(Z,Y,ot,Ie){super(),this._changeDetectorRef=Z,this._elementRef=Y,this._activeOptionChanges=a.w0.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new u.vpe,this.opened=new u.vpe,this.closed=new u.vpe,this.optionActivated=new u.vpe,this._classList={},this.id="mat-autocomplete-"+h++,this.inertGroups=(null==Ie?void 0:Ie.SAFARI)||!1,this._autoActiveFirstOption=!!ot.autoActiveFirstOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(Z){this._autoActiveFirstOption=(0,i.Ig)(Z)}set classList(Z){this._classList=Z&&Z.length?(0,i.du)(Z).reduce((Y,ot)=>(Y[ot]=!0,Y),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new e.s1(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(Z=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[Z]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(Z){this.panel&&(this.panel.nativeElement.scrollTop=Z)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(Z){const Y=new c(this,Z);this.optionSelected.emit(Y)}_getPanelAriaLabelledby(Z){return this.ariaLabel?null:this.ariaLabelledby?(Z?Z+" ":"")+this.ariaLabelledby:Z}_setVisibilityClasses(Z){Z[this._visibleClass]=this.showPanel,Z[this._hiddenClass]=!this.showPanel}}return ze.\u0275fac=function(Z){return new(Z||ze)(u.Y36(u.sBO),u.Y36(u.SBq),u.Y36(S),u.Y36(M.t4))},ze.\u0275dir=u.lG2({type:ze,viewQuery:function(Z,Y){if(1&Z&&(u.Gf(u.Rgc,7),u.Gf(x,5)),2&Z){let ot;u.iGM(ot=u.CRH())&&(Y.template=ot.first),u.iGM(ot=u.CRH())&&(Y.panel=ot.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[u.qOj]}),ze})(),n=(()=>{class ze extends _{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return ze.\u0275fac=function(){let be;return function(Y){return(be||(be=u.n5z(ze)))(Y||ze)}}(),ze.\u0275cmp=u.Xpm({type:ze,selectors:[["mat-autocomplete"]],contentQueries:function(Z,Y,ot){if(1&Z&&(u.Suo(ot,b.K7,5),u.Suo(ot,b.ey,5)),2&Z){let Ie;u.iGM(Ie=u.CRH())&&(Y.optionGroups=Ie),u.iGM(Ie=u.CRH())&&(Y.options=Ie)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[u._Bn([{provide:b.HF,useExisting:ze}]),u.qOj],ngContentSelectors:r,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(Z,Y){1&Z&&(u.F$t(),u.YNc(0,t,3,4,"ng-template"))},directives:[A.mk],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}\n"],encapsulation:2,changeDetection:0}),ze})();const g=new u.OlP("mat-autocomplete-scroll-strategy"),R={provide:g,deps:[E.aV],useFactory:function V(ze){return()=>ze.scrollStrategies.reposition()}},H={provide:U.JU,useExisting:(0,u.Gpc)(()=>ye),multi:!0};let fe=(()=>{class ze{constructor(Z,Y,ot,Ie,Ae,ce,Te,xe,G,ee,ue){this._element=Z,this._overlay=Y,this._viewContainerRef=ot,this._zone=Ie,this._changeDetectorRef=Ae,this._dir=Te,this._formField=xe,this._document=G,this._viewportRuler=ee,this._defaults=ue,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=a.w0.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new y.x,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=(0,d.P)(()=>{const ve=this.autocomplete?this.autocomplete.options:null;return ve?ve.changes.pipe((0,ne.O)(ve),(0,Q.w)(()=>(0,P.T)(...ve.map(Le=>Le.onSelectionChange)))):this._zone.onStable.pipe((0,le.q)(1),(0,Q.w)(()=>this.optionSelections))}),this._scrollStrategy=ce}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(Z){this._autocompleteDisabled=(0,i.Ig)(Z)}ngAfterViewInit(){const Z=this._getWindow();void 0!==Z&&this._zone.runOutsideAngular(()=>Z.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(Z){Z.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const Z=this._getWindow();void 0!==Z&&Z.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._isOpen=this._overlayAttached=!1,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return(0,P.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,q.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,q.h)(()=>this._overlayAttached)):(0,D.of)()).pipe((0,ie.U)(Z=>Z instanceof b.rN?Z:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,P.T)((0,T.R)(this._document,"click"),(0,T.R)(this._document,"auxclick"),(0,T.R)(this._document,"touchend")).pipe((0,q.h)(Z=>{const Y=(0,M.sA)(Z),ot=this._formField?this._formField._elementRef.nativeElement:null,Ie=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&Y!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!ot||!ot.contains(Y))&&(!Ie||!Ie.contains(Y))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(Y)}))}writeValue(Z){Promise.resolve().then(()=>this._setTriggerValue(Z))}registerOnChange(Z){this._onChange=Z}registerOnTouched(Z){this._onTouched=Z}setDisabledState(Z){this._element.nativeElement.disabled=Z}_handleKeydown(Z){const Y=Z.keyCode,ot=(0,w.Vb)(Z);if(Y===w.hY&&!ot&&Z.preventDefault(),this.activeOption&&Y===w.K5&&this.panelOpen&&!ot)this.activeOption._selectViaInteraction(),this._resetActiveItem(),Z.preventDefault();else if(this.autocomplete){const Ie=this.autocomplete._keyManager.activeItem,Ae=Y===w.LH||Y===w.JH;Y===w.Mf||Ae&&!ot&&this.panelOpen?this.autocomplete._keyManager.onKeydown(Z):Ae&&this._canOpen()&&this.openPanel(),(Ae||this.autocomplete._keyManager.activeItem!==Ie)&&this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0)}}_handleInput(Z){let Y=Z.target,ot=Y.value;"number"===Y.type&&(ot=""==ot?null:parseFloat(ot)),this._previousValue!==ot&&(this._previousValue=ot,this._onChange(ot),this._canOpen()&&this._document.activeElement===Z.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(Z=!1){this._formField&&"auto"===this._formField.floatLabel&&(Z?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const Z=this._zone.onStable.pipe((0,le.q)(1)),Y=this.autocomplete.options.changes.pipe((0,se.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,J.g)(0));return(0,P.T)(Z,Y).pipe((0,Q.w)(()=>(this._zone.run(()=>{const ot=this.panelOpen;this._resetActiveItem(),this.autocomplete._setVisibility(),this._changeDetectorRef.detectChanges(),this.panelOpen&&(this._overlayRef.updatePosition(),ot!==this.panelOpen&&this.autocomplete.opened.emit())}),this.panelClosingActions)),(0,le.q)(1)).subscribe(ot=>this._setValueAndClose(ot))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_setTriggerValue(Z){const Y=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(Z):Z,ot=null!=Y?Y:"";this._formField?this._formField._control.value=ot:this._element.nativeElement.value=ot,this._previousValue=ot}_setValueAndClose(Z){const Y=Z&&Z.source;Y&&(this._clearPreviousSelectedOption(Y),this._setTriggerValue(Y.value),this._onChange(Y.value),this.autocomplete._emitSelectEvent(Y),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption(Z){this.autocomplete.options.forEach(Y=>{Y!==Z&&Y.selected&&Y.deselect()})}_attachOverlay(){var Z;let Y=this._overlayRef;Y?(this._positionStrategy.setOrigin(this._getConnectedElement()),Y.updateSize({width:this._getPanelWidth()})):(this._portal=new z.UE(this.autocomplete.template,this._viewContainerRef,{id:null===(Z=this._formField)||void 0===Z?void 0:Z.getLabelId()}),Y=this._overlay.create(this._getOverlayConfig()),this._overlayRef=Y,Y.keydownEvents().subscribe(Ie=>{(Ie.keyCode===w.hY&&!(0,w.Vb)(Ie)||Ie.keyCode===w.LH&&(0,w.Vb)(Ie,"altKey"))&&(this._closeKeyEventStream.next(),this._resetActiveItem(),Ie.stopPropagation(),Ie.preventDefault())}),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&Y&&Y.updateSize({width:this._getPanelWidth()})})),Y&&!Y.hasAttached()&&(Y.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const ot=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&ot!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){var Z;return new E.X_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(Z=this._defaults)||void 0===Z?void 0:Z.overlayPanelClass})}_getOverlayPosition(){const Z=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(Z),this._positionStrategy=Z,Z}_setStrategyPositions(Z){const Y=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],ot=this._aboveClass,Ie=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:ot},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:ot}];let Ae;Ae="above"===this.position?Ie:"below"===this.position?Y:[...Y,...Ie],Z.withPositions(Ae)}_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 Z=this.autocomplete;Z.autoActiveFirstOption?Z._keyManager.setFirstItemActive():Z._keyManager.setActiveItem(-1)}_canOpen(){const Z=this._element.nativeElement;return!Z.readOnly&&!Z.disabled&&!this._autocompleteDisabled}_getWindow(){var Z;return(null===(Z=this._document)||void 0===Z?void 0:Z.defaultView)||window}_scrollToOption(Z){const Y=this.autocomplete,ot=(0,b.CB)(Z,Y.options,Y.optionGroups);if(0===Z&&1===ot)Y._setScrollTop(0);else if(Y.panel){const Ie=Y.options.toArray()[Z];if(Ie){const Ae=Ie._getHostElement(),ce=(0,b.jH)(Ae.offsetTop,Ae.offsetHeight,Y._getScrollTop(),Y.panel.nativeElement.offsetHeight);Y._setScrollTop(ce)}}}}return ze.\u0275fac=function(Z){return new(Z||ze)(u.Y36(u.SBq),u.Y36(E.aV),u.Y36(u.s_b),u.Y36(u.R0b),u.Y36(u.sBO),u.Y36(g),u.Y36(me.Is,8),u.Y36(W.G_,9),u.Y36(A.K0,8),u.Y36(k.rL),u.Y36(S,8))},ze.\u0275dir=u.lG2({type:ze,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[u.TTD]}),ze})(),ye=(()=>{class ze extends fe{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return ze.\u0275fac=function(){let be;return function(Y){return(be||(be=u.n5z(ze)))(Y||ze)}}(),ze.\u0275dir=u.lG2({type:ze,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(Z,Y){1&Z&&u.NdJ("focusin",function(){return Y._handleFocus()})("blur",function(){return Y._onTouched()})("input",function(Ie){return Y._handleInput(Ie)})("keydown",function(Ie){return Y._handleKeydown(Ie)})("click",function(){return Y._handleClick()}),2&Z&&u.uIk("autocomplete",Y.autocompleteAttribute)("role",Y.autocompleteDisabled?null:"combobox")("aria-autocomplete",Y.autocompleteDisabled?null:"list")("aria-activedescendant",Y.panelOpen&&Y.activeOption?Y.activeOption.id:null)("aria-expanded",Y.autocompleteDisabled?null:Y.panelOpen.toString())("aria-owns",Y.autocompleteDisabled||!Y.panelOpen||null==Y.autocomplete?null:Y.autocomplete.id)("aria-haspopup",Y.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[u._Bn([H]),u.qOj]}),ze})(),te=(()=>{class ze{}return ze.\u0275fac=function(Z){return new(Z||ze)},ze.\u0275mod=u.oAB({type:ze}),ze.\u0275inj=u.cJS({providers:[R],imports:[[E.U8,b.Ng,b.BQ,A.ez],k.ZD,b.Ng,b.BQ]}),ze})()},7544:(He,j,p)=>{"use strict";p.d(j,{g:()=>T,k:()=>D});var e=p(5e3),i=p(508),u=p(5664),b=p(3191),a=p(6360);let y=0;const d=(0,i.Id)(class{}),P="mat-badge-content";let D=(()=>{class M extends d{constructor(E,k,w,z,U){super(),this._ngZone=E,this._elementRef=k,this._ariaDescriber=w,this._renderer=z,this._animationMode=U,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=y++,this._isInitialized=!1}get color(){return this._color}set color(E){this._setColor(E),this._color=E}get overlap(){return this._overlap}set overlap(E){this._overlap=(0,b.Ig)(E)}get content(){return this._content}set content(E){this._updateRenderedContent(E)}get description(){return this._description}set description(E){this._updateHostAriaDescription(E)}get hidden(){return this._hidden}set hidden(E){this._hidden=(0,b.Ig)(E)}isAbove(){return-1===this.position.indexOf("below")}isAfter(){return-1===this.position.indexOf("before")}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&this._renderer.destroyNode(this._badgeElement),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_createBadgeElement(){const E=this._renderer.createElement("span"),k="mat-badge-active";return E.setAttribute("id",`mat-badge-content-${this._id}`),E.setAttribute("aria-hidden","true"),E.classList.add(P),"NoopAnimations"===this._animationMode&&E.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(E),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{E.classList.add(k)})}):E.classList.add(k),E}_updateRenderedContent(E){const k=`${null!=E?E:""}`.trim();this._isInitialized&&k&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=k),this._content=k}_updateHostAriaDescription(E){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),E&&this._ariaDescriber.describe(this._elementRef.nativeElement,E),this._description=E}_setColor(E){const k=this._elementRef.nativeElement.classList;k.remove(`mat-badge-${this._color}`),E&&k.add(`mat-badge-${E}`)}_clearExistingBadges(){const E=this._elementRef.nativeElement.querySelectorAll(`:scope > .${P}`);for(const k of Array.from(E))k!==this._badgeElement&&k.remove()}}return M.\u0275fac=function(E){return new(E||M)(e.Y36(e.R0b),e.Y36(e.SBq),e.Y36(u.$s),e.Y36(e.Qsj),e.Y36(a.Qb,8))},M.\u0275dir=e.lG2({type:M,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(E,k){2&E&&e.ekj("mat-badge-overlap",k.overlap)("mat-badge-above",k.isAbove())("mat-badge-below",!k.isAbove())("mat-badge-before",!k.isAfter())("mat-badge-after",k.isAfter())("mat-badge-small","small"===k.size)("mat-badge-medium","medium"===k.size)("mat-badge-large","large"===k.size)("mat-badge-hidden",k.hidden||!k.content)("mat-badge-disabled",k.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],position:["matBadgePosition","position"],content:["matBadge","content"],description:["matBadgeDescription","description"],size:["matBadgeSize","size"],hidden:["matBadgeHidden","hidden"]},features:[e.qOj]}),M})(),T=(()=>{class M{}return M.\u0275fac=function(E){return new(E||M)},M.\u0275mod=e.oAB({type:M}),M.\u0275inj=e.cJS({imports:[[u.rt,i.BQ],i.BQ]}),M})()},7423:(He,j,p)=>{"use strict";p.d(j,{lW:()=>M,ot:()=>E});var e=p(5e3),i=p(508),u=p(6360),b=p(5664);const a=["mat-button",""],y=["*"],D=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],T=(0,i.pj)((0,i.Id)((0,i.Kr)(class{constructor(k){this._elementRef=k}})));let M=(()=>{class k extends T{constructor(z,U,W){super(z),this._focusMonitor=U,this._animationMode=W,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const ne of D)this._hasHostAttributes(ne)&&this._getHostElement().classList.add(ne);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,U){z?this._focusMonitor.focusVia(this._getHostElement(),z,U):this._getHostElement().focus(U)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...z){return z.some(U=>this._getHostElement().hasAttribute(U))}}return k.\u0275fac=function(z){return new(z||k)(e.Y36(e.SBq),e.Y36(b.tE),e.Y36(u.Qb,8))},k.\u0275cmp=e.Xpm({type:k,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(z,U){if(1&z&&e.Gf(i.wG,5),2&z){let W;e.iGM(W=e.CRH())&&(U.ripple=W.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(z,U){2&z&&(e.uIk("disabled",U.disabled||null),e.ekj("_mat-animation-noopable","NoopAnimations"===U._animationMode)("mat-button-disabled",U.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[e.qOj],attrs:a,ngContentSelectors:y,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,U){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",U.isRoundButton||U.isIconButton),e.Q6J("matRippleDisabled",U._isRippleDisabled())("matRippleCentered",U.isIconButton)("matRippleTrigger",U._getHostElement()))},directives:[i.wG],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),k})(),E=(()=>{class k{}return k.\u0275fac=function(z){return new(z||k)},k.\u0275mod=e.oAB({type:k}),k.\u0275inj=e.cJS({imports:[[i.si,i.BQ],i.BQ]}),k})()},9224:(He,j,p)=>{"use strict";p.d(j,{$j:()=>A,QW:()=>se,a8:()=>le,dk:()=>q,dn:()=>T,n5:()=>M});var e=p(5e3),i=p(6360),u=p(508);const b=["*",[["mat-card-footer"]]],a=["*","mat-card-footer"],y=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],d=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"];let T=(()=>{class J{}return J.\u0275fac=function(x){return new(x||J)},J.\u0275dir=e.lG2({type:J,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),J})(),M=(()=>{class J{}return J.\u0275fac=function(x){return new(x||J)},J.\u0275dir=e.lG2({type:J,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),J})(),A=(()=>{class J{}return J.\u0275fac=function(x){return new(x||J)},J.\u0275dir=e.lG2({type:J,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),J})(),le=(()=>{class J{constructor(x){this._animationMode=x}}return J.\u0275fac=function(x){return new(x||J)(e.Y36(i.Qb,8))},J.\u0275cmp=e.Xpm({type:J,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(x,t){2&x&&e.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode)},exportAs:["matCard"],ngContentSelectors:a,decls:2,vars:0,template:function(x,t){1&x&&(e.F$t(b),e.Hsn(0),e.Hsn(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}._mat-animation-noopable.mat-card{transition:none;animation:none}.mat-card .mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider-horizontal{left:auto;right:0}.mat-card .mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card .mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px;display:block;overflow:hidden}.mat-card-image img{width:100%}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}\n"],encapsulation:2,changeDetection:0}),J})(),q=(()=>{class J{}return J.\u0275fac=function(x){return new(x||J)},J.\u0275cmp=e.Xpm({type:J,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:d,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(x,t){1&x&&(e.F$t(y),e.Hsn(0),e.TgZ(1,"div",0),e.Hsn(2,1),e.qZA(),e.Hsn(3,2))},encapsulation:2,changeDetection:0}),J})(),se=(()=>{class J{}return J.\u0275fac=function(x){return new(x||J)},J.\u0275mod=e.oAB({type:J}),J.\u0275inj=e.cJS({imports:[[u.BQ],u.BQ]}),J})()},7446:(He,j,p)=>{"use strict";p.d(j,{oG:()=>W,p9:()=>q});var e=p(3191),i=p(5e3),u=p(3075),b=p(508),a=p(6360),y=p(5664),d=p(7144);const P=["input"],D=function(ie){return{enterDuration:ie}},T=["*"],M=new i.OlP("mat-checkbox-default-options",{providedIn:"root",factory:A});function A(){return{color:"accent",clickAction:"check-indeterminate"}}let E=0;const k=A(),w={provide:u.JU,useExisting:(0,i.Gpc)(()=>W),multi:!0};class z{}const U=(0,b.sb)((0,b.pj)((0,b.Kr)((0,b.Id)(class{constructor(ie){this._elementRef=ie}}))));let W=(()=>{class ie extends U{constructor(J,me,x,t,r,h,c){super(J),this._changeDetectorRef=me,this._focusMonitor=x,this._ngZone=t,this._animationMode=h,this._options=c,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId="mat-checkbox-"+ ++E,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new i.vpe,this.indeterminateChange=new i.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||k,this.color=this.defaultColor=this._options.color||k.color,this.tabIndex=parseInt(r)||0}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(J){this._required=(0,e.Ig)(J)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(J=>{J||Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}ngAfterViewChecked(){}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}get checked(){return this._checked}set checked(J){const me=(0,e.Ig)(J);me!=this.checked&&(this._checked=me,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(J){const me=(0,e.Ig)(J);me!==this.disabled&&(this._disabled=me,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(J){const me=J!=this._indeterminate;this._indeterminate=(0,e.Ig)(J),me&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(J){this.checked=!!J}registerOnChange(J){this._controlValueAccessorChangeFn=J}registerOnTouched(J){this._onTouched=J}setDisabledState(J){this.disabled=J}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(J){let me=this._currentCheckState,x=this._elementRef.nativeElement;if(me!==J&&(this._currentAnimationClass.length>0&&x.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(me,J),this._currentCheckState=J,this._currentAnimationClass.length>0)){x.classList.add(this._currentAnimationClass);const t=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{x.classList.remove(t)},1e3)})}}_emitChangeEvent(){const J=new z;J.source=this,J.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(J),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_onInputClick(J){var me;const x=null===(me=this._options)||void 0===me?void 0:me.clickAction;J.stopPropagation(),this.disabled||"noop"===x?!this.disabled&&"noop"===x&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==x&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(J,me){J?this._focusMonitor.focusVia(this._inputElement,J,me):this._inputElement.nativeElement.focus(me)}_onInteractionEvent(J){J.stopPropagation()}_getAnimationClassForCheckStateTransition(J,me){if("NoopAnimations"===this._animationMode)return"";let x="";switch(J){case 0:if(1===me)x="unchecked-checked";else{if(3!=me)return"";x="unchecked-indeterminate"}break;case 2:x=1===me?"unchecked-checked":"unchecked-indeterminate";break;case 1:x=2===me?"checked-unchecked":"checked-indeterminate";break;case 3:x=1===me?"indeterminate-checked":"indeterminate-unchecked"}return`mat-checkbox-anim-${x}`}_syncIndeterminate(J){const me=this._inputElement;me&&(me.nativeElement.indeterminate=J)}}return ie.\u0275fac=function(J){return new(J||ie)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(y.tE),i.Y36(i.R0b),i.$8M("tabindex"),i.Y36(a.Qb,8),i.Y36(M,8))},ie.\u0275cmp=i.Xpm({type:ie,selectors:[["mat-checkbox"]],viewQuery:function(J,me){if(1&J&&(i.Gf(P,5),i.Gf(b.wG,5)),2&J){let x;i.iGM(x=i.CRH())&&(me._inputElement=x.first),i.iGM(x=i.CRH())&&(me.ripple=x.first)}},hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(J,me){2&J&&(i.Ikx("id",me.id),i.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),i.ekj("mat-checkbox-indeterminate",me.indeterminate)("mat-checkbox-checked",me.checked)("mat-checkbox-disabled",me.disabled)("mat-checkbox-label-before","before"==me.labelPosition)("_mat-animation-noopable","NoopAnimations"===me._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[i._Bn([w]),i.qOj],ngContentSelectors:T,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(J,me){if(1&J&&(i.F$t(),i.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),i.NdJ("change",function(t){return me._onInteractionEvent(t)})("click",function(t){return me._onInputClick(t)}),i.qZA(),i.TgZ(5,"span",5),i._UZ(6,"span",6),i.qZA(),i._UZ(7,"span",7),i.TgZ(8,"span",8),i.O4$(),i.TgZ(9,"svg",9),i._UZ(10,"path",10),i.qZA(),i.kcU(),i._UZ(11,"span",11),i.qZA()(),i.TgZ(12,"span",12,13),i.NdJ("cdkObserveContent",function(){return me._onLabelTextChange()}),i.TgZ(14,"span",14),i._uU(15,"\xa0"),i.qZA(),i.Hsn(16),i.qZA()()),2&J){const x=i.MAs(1),t=i.MAs(13);i.uIk("for",me.inputId),i.xp6(2),i.ekj("mat-checkbox-inner-container-no-side-margin",!t.textContent||!t.textContent.trim()),i.xp6(1),i.Q6J("id",me.inputId)("required",me.required)("checked",me.checked)("disabled",me.disabled)("tabIndex",me.tabIndex),i.uIk("value",me.value)("name",me.name)("aria-label",me.ariaLabel||null)("aria-labelledby",me.ariaLabelledby)("aria-checked",me._getAriaChecked())("aria-describedby",me.ariaDescribedby),i.xp6(2),i.Q6J("matRippleTrigger",x)("matRippleDisabled",me._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",i.VKq(19,D,"NoopAnimations"===me._animationMode?0:150))}},directives:[b.wG,d.wD],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.mat-checkbox-layout{-webkit-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}\n"],encapsulation:2,changeDetection:0}),ie})(),le=(()=>{class ie{}return ie.\u0275fac=function(J){return new(J||ie)},ie.\u0275mod=i.oAB({type:ie}),ie.\u0275inj=i.cJS({}),ie})(),q=(()=>{class ie{}return ie.\u0275fac=function(J){return new(J||ie)},ie.\u0275mod=i.oAB({type:ie}),ie.\u0275inj=i.cJS({imports:[[b.si,b.BQ,d.Q8,le],b.BQ,le]}),ie})()},6688:(He,j,p)=>{"use strict";p.d(j,{HS:()=>x,Hi:()=>g,qn:()=>_});var e=p(1159),i=p(5e3),u=p(508),b=p(3191),a=p(9808),y=p(6360),d=p(7579),P=p(6451),D=p(5698),T=p(2722),M=p(8675),A=p(925),E=p(5664),k=p(449),w=p(3075),z=p(7322),U=p(226);const W=["*"],Q=new i.OlP("MatChipRemove"),le=new i.OlP("MatChipAvatar"),q=new i.OlP("MatChipTrailingIcon");class ie{constructor(R){this._elementRef=R}}const se=(0,u.sb)((0,u.pj)((0,u.Kr)(ie),"primary"),-1);let x=(()=>{class V extends se{constructor(H,$,fe,ye,ke,Ee,te,ze){super(H),this._ngZone=$,this._changeDetectorRef=ke,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new d.x,this._onBlur=new d.x,this.selectionChange=new i.vpe,this.destroyed=new i.vpe,this.removed=new i.vpe,this._addHostClassName(),this._chipRippleTarget=Ee.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new u.IR(this,$,this._chipRippleTarget,fe),this._chipRipple.setupTriggerEvents(H),this.rippleConfig=ye||{},this._animationsDisabled="NoopAnimations"===te,this.tabIndex=null!=ze&&parseInt(ze)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(H){const $=(0,b.Ig)(H);$!==this._selected&&(this._selected=$,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(H){this._value=H}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(H){this._selectable=(0,b.Ig)(H)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(H){this._disabled=(0,b.Ig)(H)}get removable(){return this._removable}set removable(H){this._removable=(0,b.Ig)(H)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const H="mat-basic-chip",$=this._elementRef.nativeElement;$.hasAttribute(H)||$.tagName.toLowerCase()===H?$.classList.add(H):$.classList.add("mat-standard-chip")}ngOnDestroy(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}select(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}deselect(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}selectViaInteraction(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}toggleSelected(H=!1){return this._selected=!this.selected,this._dispatchSelectionChange(H),this._changeDetectorRef.markForCheck(),this.selected}focus(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}remove(){this.removable&&this.removed.emit({chip:this})}_handleClick(H){this.disabled&&H.preventDefault()}_handleKeydown(H){if(!this.disabled)switch(H.keyCode){case e.yY:case e.ZH:this.remove(),H.preventDefault();break;case e.L_:this.selectable&&this.toggleSelected(!0),H.preventDefault()}}_blur(){this._ngZone.onStable.pipe((0,D.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(H=!1){this.selectionChange.emit({source:this,isUserInput:H,selected:this._selected})}}return V.\u0275fac=function(H){return new(H||V)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(A.t4),i.Y36(u.Y2,8),i.Y36(i.sBO),i.Y36(a.K0),i.Y36(y.Qb,8),i.$8M("tabindex"))},V.\u0275dir=i.lG2({type:V,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(H,$,fe){if(1&H&&(i.Suo(fe,le,5),i.Suo(fe,q,5),i.Suo(fe,Q,5)),2&H){let ye;i.iGM(ye=i.CRH())&&($.avatar=ye.first),i.iGM(ye=i.CRH())&&($.trailingIcon=ye.first),i.iGM(ye=i.CRH())&&($.removeIcon=ye.first)}},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(H,$){1&H&&i.NdJ("click",function(ye){return $._handleClick(ye)})("keydown",function(ye){return $._handleKeydown(ye)})("focus",function(){return $.focus()})("blur",function(){return $._blur()}),2&H&&(i.uIk("tabindex",$.disabled?null:$.tabIndex)("disabled",$.disabled||null)("aria-disabled",$.disabled.toString())("aria-selected",$.ariaSelected),i.ekj("mat-chip-selected",$.selected)("mat-chip-with-avatar",$.avatar)("mat-chip-with-trailing-icon",$.trailingIcon||$.removeIcon)("mat-chip-disabled",$.disabled)("_mat-animation-noopable",$._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[i.qOj]}),V})();const r=new i.OlP("mat-chips-default-options"),C=(0,u.FD)(class{constructor(V,R,H,$){this._defaultErrorStateMatcher=V,this._parentForm=R,this._parentFormGroup=H,this.ngControl=$}});let S=0;class I{constructor(R,H){this.source=R,this.value=H}}let _=(()=>{class V extends C{constructor(H,$,fe,ye,ke,Ee,te){super(Ee,ye,ke,te),this._elementRef=H,this._changeDetectorRef=$,this._dir=fe,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new d.x,this._uid="mat-chip-list-"+S++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(ze,be)=>ze===be,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new i.vpe,this.valueChange=new i.vpe,this.ngControl&&(this.ngControl.valueAccessor=this)}get selected(){var H,$;return this.multiple?(null===(H=this._selectionModel)||void 0===H?void 0:H.selected)||[]:null===($=this._selectionModel)||void 0===$?void 0:$.selected[0]}get role(){return this.empty?null:"listbox"}get multiple(){return this._multiple}set multiple(H){this._multiple=(0,b.Ig)(H),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(H){this._compareWith=H,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(H){this.writeValue(H),this._value=H}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){var H,$,fe,ye;return null!==(ye=null!==(H=this._required)&&void 0!==H?H:null===(fe=null===($=this.ngControl)||void 0===$?void 0:$.control)||void 0===fe?void 0:fe.hasValidator(w.kI.required))&&void 0!==ye&&ye}set required(H){this._required=(0,b.Ig)(H),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(H){this._placeholder=H,this.stateChanges.next()}get focused(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}get shouldLabelFloat(){return!this.empty||this.focused}get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(H){this._disabled=(0,b.Ig)(H),this._syncChipsState()}get selectable(){return this._selectable}set selectable(H){this._selectable=(0,b.Ig)(H),this.chips&&this.chips.forEach($=>$.chipListSelectable=this._selectable)}set tabIndex(H){this._userTabIndex=H,this._tabIndex=H}get chipSelectionChanges(){return(0,P.T)(...this.chips.map(H=>H.selectionChange))}get chipFocusChanges(){return(0,P.T)(...this.chips.map(H=>H._onFocus))}get chipBlurChanges(){return(0,P.T)(...this.chips.map(H=>H._onBlur))}get chipRemoveChanges(){return(0,P.T)(...this.chips.map(H=>H.destroyed))}ngAfterContentInit(){this._keyManager=new E.Em(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe((0,T.R)(this._destroyed)).subscribe(H=>this._keyManager.withHorizontalOrientation(H)),this._keyManager.tabOut.pipe((0,T.R)(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe((0,M.O)(null),(0,T.R)(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>{this._syncChipsState()}),this._resetChips(),this._initializeSelection(),this._updateTabIndex(),this._updateFocusForDestroyedChips(),this.stateChanges.next()})}ngOnInit(){this._selectionModel=new k.Ov(this.multiple,void 0,!1),this.stateChanges.next()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}registerInput(H){this._chipInput=H,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",H.id)}setDescribedByIds(H){this._ariaDescribedby=H.join(" ")}writeValue(H){this.chips&&this._setSelectionByValue(H,!1)}registerOnChange(H){this._onChange=H}registerOnTouched(H){this._onTouched=H}setDisabledState(H){this.disabled=H,this.stateChanges.next()}onContainerClick(H){this._originatesFromChip(H)||this.focus()}focus(H){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(H),this.stateChanges.next()))}_focusInput(H){this._chipInput&&this._chipInput.focus(H)}_keydown(H){const $=H.target;$&&$.classList.contains("mat-chip")&&(this._keyManager.onKeydown(H),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const H=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(H)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(H){return H>=0&&H<this.chips.length}_setSelectionByValue(H,$=!0){if(this._clearSelection(),this.chips.forEach(fe=>fe.deselect()),Array.isArray(H))H.forEach(fe=>this._selectValue(fe,$)),this._sortValues();else{const fe=this._selectValue(H,$);fe&&$&&this._keyManager.setActiveItem(fe)}}_selectValue(H,$=!0){const fe=this.chips.find(ye=>null!=ye.value&&this._compareWith(ye.value,H));return fe&&($?fe.selectViaInteraction():fe.select(),this._selectionModel.select(fe)),fe}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(H){this._selectionModel.clear(),this.chips.forEach($=>{$!==H&&$.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(H=>{H.selected&&this._selectionModel.select(H)}),this.stateChanges.next())}_propagateChanges(H){let $=null;$=Array.isArray(this.selected)?this.selected.map(fe=>fe.value):this.selected?this.selected.value:H,this._value=$,this.change.emit(new I(this,$)),this.valueChange.emit($),this._onChange($),this._changeDetectorRef.markForCheck()}_blur(){this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(()=>{this.focused||this._markAsTouched()}):this._markAsTouched())}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}_allowFocusEscape(){-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(()=>{this._tabIndex=this._userTabIndex||0,this._changeDetectorRef.markForCheck()}))}_resetChips(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}_dropSubscriptions(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}_listenToChipsSelection(){this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(H=>{H.source.selected?this._selectionModel.select(H.source):this._selectionModel.deselect(H.source),this.multiple||this.chips.forEach($=>{!this._selectionModel.isSelected($)&&$.selected&&$.deselect()}),H.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(H=>{let $=this.chips.toArray().indexOf(H.chip);this._isValidIndex($)&&this._keyManager.updateActiveItem($),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(H=>{const $=H.chip,fe=this.chips.toArray().indexOf(H.chip);this._isValidIndex(fe)&&$._hasFocus&&(this._lastDestroyedChipIndex=fe)})}_originatesFromChip(H){let $=H.target;for(;$&&$!==this._elementRef.nativeElement;){if($.classList.contains("mat-chip"))return!0;$=$.parentElement}return!1}_hasFocusedChip(){return this.chips&&this.chips.some(H=>H._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(H=>{H._chipListDisabled=this._disabled,H._chipListMultiple=this.multiple})}}return V.\u0275fac=function(H){return new(H||V)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(U.Is,8),i.Y36(w.F,8),i.Y36(w.sg,8),i.Y36(u.rD),i.Y36(w.a5,10))},V.\u0275cmp=i.Xpm({type:V,selectors:[["mat-chip-list"]],contentQueries:function(H,$,fe){if(1&H&&i.Suo(fe,x,5),2&H){let ye;i.iGM(ye=i.CRH())&&($.chips=ye)}},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(H,$){1&H&&i.NdJ("focus",function(){return $.focus()})("blur",function(){return $._blur()})("keydown",function(ye){return $._keydown(ye)}),2&H&&(i.Ikx("id",$._uid),i.uIk("tabindex",$.disabled?null:$._tabIndex)("aria-describedby",$._ariaDescribedby||null)("aria-required",$.role?$.required:null)("aria-disabled",$.disabled.toString())("aria-invalid",$.errorState)("aria-multiselectable",$.multiple)("role",$.role)("aria-orientation",$.ariaOrientation),i.ekj("mat-chip-list-disabled",$.disabled)("mat-chip-list-invalid",$.errorState)("mat-chip-list-required",$.required))},inputs:{errorStateMatcher:"errorStateMatcher",multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",ariaOrientation:["aria-orientation","ariaOrientation"],selectable:"selectable",tabIndex:"tabIndex"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[i._Bn([{provide:z.Eo,useExisting:V}]),i.qOj],ngContentSelectors:W,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(H,$){1&H&&(i.F$t(),i.TgZ(0,"div",0),i.Hsn(1),i.qZA())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;border:none;-webkit-appearance:none;-moz-appearance:none}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}._mat-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove{border:none;-webkit-appearance:none;-moz-appearance:none;padding:0;background:none}.mat-standard-chip .mat-chip-remove.mat-icon,.mat-standard-chip .mat-chip-remove .mat-icon{width:18px;height:18px;font-size:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip:focus{outline:dotted 2px}.cdk-high-contrast-active .mat-standard-chip.mat-chip-selected{outline-width:3px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden;transform:translateZ(0)}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}\n'],encapsulation:2,changeDetection:0}),V})(),g=(()=>{class V{}return V.\u0275fac=function(H){return new(H||V)},V.\u0275mod=i.oAB({type:V}),V.\u0275inj=i.cJS({providers:[u.rD,{provide:r,useValue:{separatorKeyCodes:[e.K5]}}],imports:[[u.BQ]]}),V})()},508:(He,j,p)=>{"use strict";p.d(j,{yN:()=>ne,mZ:()=>Q,_A:()=>_,rD:()=>ke,sG:()=>n,K7:()=>Gt,HF:()=>ht,Y2:()=>ee,BQ:()=>ie,X2:()=>Ee,uc:()=>be,XK:()=>fe,ey:()=>Qe,Ng:()=>Zt,rN:()=>kt,nP:()=>Le,us:()=>lt,wG:()=>ue,si:()=>ve,LF:()=>R,IR:()=>Te,CB:()=>_t,jH:()=>ei,pj:()=>t,Kr:()=>r,Id:()=>x,FD:()=>c,dB:()=>C,sb:()=>h,E0:()=>te});var e=p(5e3),i=p(226),b=p(9808),a=p(925),y=p(5664),d=p(3191),P=p(7579),D=p(8306),T=p(8675),M=p(6360),A=p(1159);function w(Pe,De){if(1&Pe&&e._UZ(0,"mat-pseudo-checkbox",4),2&Pe){const oe=e.oxw();e.Q6J("state",oe.selected?"checked":"unchecked")("disabled",oe.disabled)}}function z(Pe,De){if(1&Pe&&(e.TgZ(0,"span",5),e._uU(1),e.qZA()),2&Pe){const oe=e.oxw();e.xp6(1),e.hij("(",oe.group.label,")")}}const U=["*"];let ne=(()=>{class Pe{}return Pe.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",Pe.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",Pe.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",Pe.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",Pe})(),Q=(()=>{class Pe{}return Pe.COMPLEX="375ms",Pe.ENTERING="225ms",Pe.EXITING="195ms",Pe})();const q=new e.OlP("mat-sanity-checks",{providedIn:"root",factory:function le(){return!0}});let ie=(()=>{class Pe{constructor(oe,Me,ut){this._sanityChecks=Me,this._document=ut,this._hasDoneGlobalChecks=!1,oe._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(oe){return!(0,a.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[oe])}}return Pe.\u0275fac=function(oe){return new(oe||Pe)(e.LFG(y.qm),e.LFG(q,8),e.LFG(b.K0))},Pe.\u0275mod=e.oAB({type:Pe}),Pe.\u0275inj=e.cJS({imports:[[i.vT],i.vT]}),Pe})();function x(Pe){return class extends Pe{constructor(...De){super(...De),this._disabled=!1}get disabled(){return this._disabled}set disabled(De){this._disabled=(0,d.Ig)(De)}}}function t(Pe,De){return class extends Pe{constructor(...oe){super(...oe),this.defaultColor=De,this.color=De}get color(){return this._color}set color(oe){const Me=oe||this.defaultColor;Me!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),Me&&this._elementRef.nativeElement.classList.add(`mat-${Me}`),this._color=Me)}}}function r(Pe){return class extends Pe{constructor(...De){super(...De),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(De){this._disableRipple=(0,d.Ig)(De)}}}function h(Pe,De=0){return class extends Pe{constructor(...oe){super(...oe),this._tabIndex=De,this.defaultTabIndex=De}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(oe){this._tabIndex=null!=oe?(0,d.su)(oe):this.defaultTabIndex}}}function c(Pe){return class extends Pe{constructor(...De){super(...De),this.stateChanges=new P.x,this.errorState=!1}updateErrorState(){const De=this.errorState,ft=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);ft!==De&&(this.errorState=ft,this.stateChanges.next())}}}function C(Pe){return class extends Pe{constructor(...De){super(...De),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new D.y(oe=>{this._isInitialized?this._notifySubscriber(oe):this._pendingSubscribers.push(oe)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(De){De.next(),De.complete()}}}const S=new e.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function I(){return(0,e.f3M)(e.soG)}});class _{constructor(){this._localeChanges=new P.x,this.localeChanges=this._localeChanges}getValidDateOrNull(De){return this.isDateInstance(De)&&this.isValid(De)?De:null}deserialize(De){return null==De||this.isDateInstance(De)&&this.isValid(De)?De:this.invalid()}setLocale(De){this.locale=De,this._localeChanges.next()}compareDate(De,oe){return this.getYear(De)-this.getYear(oe)||this.getMonth(De)-this.getMonth(oe)||this.getDate(De)-this.getDate(oe)}sameDate(De,oe){if(De&&oe){let Me=this.isValid(De),ut=this.isValid(oe);return Me&&ut?!this.compareDate(De,oe):Me==ut}return De==oe}clampDate(De,oe,Me){return oe&&this.compareDate(De,oe)<0?oe:Me&&this.compareDate(De,Me)>0?Me:De}}const n=new e.OlP("mat-date-formats"),g=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function V(Pe,De){const oe=Array(Pe);for(let Me=0;Me<Pe;Me++)oe[Me]=De(Me);return oe}let R=(()=>{class Pe extends _{constructor(oe,Me){super(),this.useUtcForDisplay=!1,super.setLocale(oe)}getYear(oe){return oe.getFullYear()}getMonth(oe){return oe.getMonth()}getDate(oe){return oe.getDate()}getDayOfWeek(oe){return oe.getDay()}getMonthNames(oe){const Me=new Intl.DateTimeFormat(this.locale,{month:oe,timeZone:"utc"});return V(12,ut=>this._format(Me,new Date(2017,ut,1)))}getDateNames(){const oe=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return V(31,Me=>this._format(oe,new Date(2017,0,Me+1)))}getDayOfWeekNames(oe){const Me=new Intl.DateTimeFormat(this.locale,{weekday:oe,timeZone:"utc"});return V(7,ut=>this._format(Me,new Date(2017,0,ut+1)))}getYearName(oe){const Me=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(Me,oe)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(oe){return this.getDate(this._createDateWithOverflow(this.getYear(oe),this.getMonth(oe)+1,0))}clone(oe){return new Date(oe.getTime())}createDate(oe,Me,ut){let ft=this._createDateWithOverflow(oe,Me,ut);return ft.getMonth(),ft}today(){return new Date}parse(oe){return"number"==typeof oe?new Date(oe):oe?new Date(Date.parse(oe)):null}format(oe,Me){if(!this.isValid(oe))throw Error("NativeDateAdapter: Cannot format invalid date.");const ut=new Intl.DateTimeFormat(this.locale,Object.assign(Object.assign({},Me),{timeZone:"utc"}));return this._format(ut,oe)}addCalendarYears(oe,Me){return this.addCalendarMonths(oe,12*Me)}addCalendarMonths(oe,Me){let ut=this._createDateWithOverflow(this.getYear(oe),this.getMonth(oe)+Me,this.getDate(oe));return this.getMonth(ut)!=((this.getMonth(oe)+Me)%12+12)%12&&(ut=this._createDateWithOverflow(this.getYear(ut),this.getMonth(ut),0)),ut}addCalendarDays(oe,Me){return this._createDateWithOverflow(this.getYear(oe),this.getMonth(oe),this.getDate(oe)+Me)}toIso8601(oe){return[oe.getUTCFullYear(),this._2digit(oe.getUTCMonth()+1),this._2digit(oe.getUTCDate())].join("-")}deserialize(oe){if("string"==typeof oe){if(!oe)return null;if(g.test(oe)){let Me=new Date(oe);if(this.isValid(Me))return Me}}return super.deserialize(oe)}isDateInstance(oe){return oe instanceof Date}isValid(oe){return!isNaN(oe.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(oe,Me,ut){const ft=new Date;return ft.setFullYear(oe,Me,ut),ft.setHours(0,0,0,0),ft}_2digit(oe){return("00"+oe).slice(-2)}_format(oe,Me){const ut=new Date;return ut.setUTCFullYear(Me.getFullYear(),Me.getMonth(),Me.getDate()),ut.setUTCHours(Me.getHours(),Me.getMinutes(),Me.getSeconds(),Me.getMilliseconds()),oe.format(ut)}}return Pe.\u0275fac=function(oe){return new(oe||Pe)(e.LFG(S,8),e.LFG(a.t4))},Pe.\u0275prov=e.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})();const H={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let $=(()=>{class Pe{}return Pe.\u0275fac=function(oe){return new(oe||Pe)},Pe.\u0275mod=e.oAB({type:Pe}),Pe.\u0275inj=e.cJS({providers:[{provide:_,useClass:R}]}),Pe})(),fe=(()=>{class Pe{}return Pe.\u0275fac=function(oe){return new(oe||Pe)},Pe.\u0275mod=e.oAB({type:Pe}),Pe.\u0275inj=e.cJS({providers:[{provide:n,useValue:H}],imports:[[$]]}),Pe})(),ke=(()=>{class Pe{isErrorState(oe,Me){return!!(oe&&oe.invalid&&(oe.touched||Me&&Me.submitted))}}return Pe.\u0275fac=function(oe){return new(oe||Pe)},Pe.\u0275prov=e.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})(),Ee=(()=>{class Pe{}return Pe.\u0275fac=function(oe){return new(oe||Pe)},Pe.\u0275dir=e.lG2({type:Pe,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),Pe})();function te(Pe,De,oe="mat"){Pe.changes.pipe((0,T.O)(Pe)).subscribe(({length:Me})=>{ze(De,`${oe}-2-line`,!1),ze(De,`${oe}-3-line`,!1),ze(De,`${oe}-multi-line`,!1),2===Me||3===Me?ze(De,`${oe}-${Me}-line`,!0):Me>3&&ze(De,`${oe}-multi-line`,!0)})}function ze(Pe,De,oe){Pe.nativeElement.classList.toggle(De,oe)}let be=(()=>{class Pe{}return Pe.\u0275fac=function(oe){return new(oe||Pe)},Pe.\u0275mod=e.oAB({type:Pe}),Pe.\u0275inj=e.cJS({imports:[[ie],ie]}),Pe})();class Z{constructor(De,oe,Me){this._renderer=De,this.element=oe,this.config=Me,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Y={enterDuration:225,exitDuration:150},Ie=(0,a.i$)({passive:!0}),Ae=["mousedown","touchstart"],ce=["mouseup","mouseleave","touchend","touchcancel"];class Te{constructor(De,oe,Me,ut){this._target=De,this._ngZone=oe,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,ut.isBrowser&&(this._containerElement=(0,d.fI)(Me))}fadeInRipple(De,oe,Me={}){const ut=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),ft=Object.assign(Object.assign({},Y),Me.animation);Me.centered&&(De=ut.left+ut.width/2,oe=ut.top+ut.height/2);const Rt=Me.radius||function G(Pe,De,oe){const Me=Math.max(Math.abs(Pe-oe.left),Math.abs(Pe-oe.right)),ut=Math.max(Math.abs(De-oe.top),Math.abs(De-oe.bottom));return Math.sqrt(Me*Me+ut*ut)}(De,oe,ut),et=De-ut.left,Re=oe-ut.top,qe=ft.enterDuration,Ze=document.createElement("div");Ze.classList.add("mat-ripple-element"),Ze.style.left=et-Rt+"px",Ze.style.top=Re-Rt+"px",Ze.style.height=2*Rt+"px",Ze.style.width=2*Rt+"px",null!=Me.color&&(Ze.style.backgroundColor=Me.color),Ze.style.transitionDuration=`${qe}ms`,this._containerElement.appendChild(Ze),function xe(Pe){window.getComputedStyle(Pe).getPropertyValue("opacity")}(Ze),Ze.style.transform="scale(1)";const we=new Z(this,Ze,Me);return we.state=0,this._activeRipples.add(we),Me.persistent||(this._mostRecentTransientRipple=we),this._runTimeoutOutsideZone(()=>{const Fe=we===this._mostRecentTransientRipple;we.state=1,!Me.persistent&&(!Fe||!this._isPointerDown)&&we.fadeOut()},qe),we}fadeOutRipple(De){const oe=this._activeRipples.delete(De);if(De===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!oe)return;const Me=De.element,ut=Object.assign(Object.assign({},Y),De.config.animation);Me.style.transitionDuration=`${ut.exitDuration}ms`,Me.style.opacity="0",De.state=2,this._runTimeoutOutsideZone(()=>{De.state=3,Me.remove()},ut.exitDuration)}fadeOutAll(){this._activeRipples.forEach(De=>De.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(De=>{De.config.persistent||De.fadeOut()})}setupTriggerEvents(De){const oe=(0,d.fI)(De);!oe||oe===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=oe,this._registerEvents(Ae))}handleEvent(De){"mousedown"===De.type?this._onMousedown(De):"touchstart"===De.type?this._onTouchStart(De):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(ce),this._pointerUpEventsRegistered=!0)}_onMousedown(De){const oe=(0,y.X6)(De),Me=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!oe&&!Me&&(this._isPointerDown=!0,this.fadeInRipple(De.clientX,De.clientY,this._target.rippleConfig))}_onTouchStart(De){if(!this._target.rippleDisabled&&!(0,y.yG)(De)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const oe=De.changedTouches;for(let Me=0;Me<oe.length;Me++)this.fadeInRipple(oe[Me].clientX,oe[Me].clientY,this._target.rippleConfig)}}_onPointerUp(){!this._isPointerDown||(this._isPointerDown=!1,this._activeRipples.forEach(De=>{!De.config.persistent&&(1===De.state||De.config.terminateOnPointerUp&&0===De.state)&&De.fadeOut()}))}_runTimeoutOutsideZone(De,oe=0){this._ngZone.runOutsideAngular(()=>setTimeout(De,oe))}_registerEvents(De){this._ngZone.runOutsideAngular(()=>{De.forEach(oe=>{this._triggerElement.addEventListener(oe,this,Ie)})})}_removeTriggerEvents(){this._triggerElement&&(Ae.forEach(De=>{this._triggerElement.removeEventListener(De,this,Ie)}),this._pointerUpEventsRegistered&&ce.forEach(De=>{this._triggerElement.removeEventListener(De,this,Ie)}))}}const ee=new e.OlP("mat-ripple-global-options");let ue=(()=>{class Pe{constructor(oe,Me,ut,ft,Rt){this._elementRef=oe,this._animationMode=Rt,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=ft||{},this._rippleRenderer=new Te(this,Me,oe,ut)}get disabled(){return this._disabled}set disabled(oe){oe&&this.fadeOutAllNonPersistent(),this._disabled=oe,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(oe){this._trigger=oe,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(oe,Me=0,ut){return"number"==typeof oe?this._rippleRenderer.fadeInRipple(oe,Me,Object.assign(Object.assign({},this.rippleConfig),ut)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),oe))}}return Pe.\u0275fac=function(oe){return new(oe||Pe)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(a.t4),e.Y36(ee,8),e.Y36(M.Qb,8))},Pe.\u0275dir=e.lG2({type:Pe,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(oe,Me){2&oe&&e.ekj("mat-ripple-unbounded",Me.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"]}),Pe})(),ve=(()=>{class Pe{}return Pe.\u0275fac=function(oe){return new(oe||Pe)},Pe.\u0275mod=e.oAB({type:Pe}),Pe.\u0275inj=e.cJS({imports:[[ie],ie]}),Pe})(),Le=(()=>{class Pe{constructor(oe){this._animationMode=oe,this.state="unchecked",this.disabled=!1}}return Pe.\u0275fac=function(oe){return new(oe||Pe)(e.Y36(M.Qb,8))},Pe.\u0275cmp=e.Xpm({type:Pe,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(oe,Me){2&oe&&e.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===Me.state)("mat-pseudo-checkbox-checked","checked"===Me.state)("mat-pseudo-checkbox-disabled",Me.disabled)("_mat-animation-noopable","NoopAnimations"===Me._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(oe,Me){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),Pe})(),lt=(()=>{class Pe{}return Pe.\u0275fac=function(oe){return new(oe||Pe)},Pe.\u0275mod=e.oAB({type:Pe}),Pe.\u0275inj=e.cJS({imports:[[ie]]}),Pe})();const ht=new e.OlP("MAT_OPTION_PARENT_COMPONENT"),Gt=new e.OlP("MatOptgroup");let vt=0;class kt{constructor(De,oe=!1){this.source=De,this.isUserInput=oe}}let gt=(()=>{class Pe{constructor(oe,Me,ut,ft){this._element=oe,this._changeDetectorRef=Me,this._parent=ut,this.group=ft,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+vt++,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(oe){this._disabled=(0,d.Ig)(oe)}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(oe,Me){const ut=this._getHostElement();"function"==typeof ut.focus&&ut.focus(Me)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(oe){(oe.keyCode===A.K5||oe.keyCode===A.L_)&&!(0,A.Vb)(oe)&&(this._selectViaInteraction(),oe.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 oe=this.viewValue;oe!==this._mostRecentViewValue&&(this._mostRecentViewValue=oe,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(oe=!1){this.onSelectionChange.emit(new kt(this,oe))}}return Pe.\u0275fac=function(oe){e.$Z()},Pe.\u0275dir=e.lG2({type:Pe,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),Pe})(),Qe=(()=>{class Pe extends gt{constructor(oe,Me,ut,ft){super(oe,Me,ut,ft)}}return Pe.\u0275fac=function(oe){return new(oe||Pe)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(ht,8),e.Y36(Gt,8))},Pe.\u0275cmp=e.Xpm({type:Pe,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(oe,Me){1&oe&&e.NdJ("click",function(){return Me._selectViaInteraction()})("keydown",function(ft){return Me._handleKeydown(ft)}),2&oe&&(e.Ikx("id",Me.id),e.uIk("tabindex",Me._getTabIndex())("aria-selected",Me._getAriaSelected())("aria-disabled",Me.disabled.toString()),e.ekj("mat-selected",Me.selected)("mat-option-multiple",Me.multiple)("mat-active",Me.active)("mat-option-disabled",Me.disabled))},exportAs:["matOption"],features:[e.qOj],ngContentSelectors:U,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(oe,Me){1&oe&&(e.F$t(),e.YNc(0,w,1,2,"mat-pseudo-checkbox",0),e.TgZ(1,"span",1),e.Hsn(2),e.qZA(),e.YNc(3,z,2,1,"span",2),e._UZ(4,"div",3)),2&oe&&(e.Q6J("ngIf",Me.multiple),e.xp6(3),e.Q6J("ngIf",Me.group&&Me.group._inert),e.xp6(1),e.Q6J("matRippleTrigger",Me._getHostElement())("matRippleDisabled",Me.disabled||Me.disableRipple))},directives:[Le,b.O5,ue],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),Pe})();function _t(Pe,De,oe){if(oe.length){let Me=De.toArray(),ut=oe.toArray(),ft=0;for(let Rt=0;Rt<Pe+1;Rt++)Me[Rt].group&&Me[Rt].group===ut[ft]&&ft++;return ft}return 0}function ei(Pe,De,oe,Me){return Pe<oe?Pe:Pe+De>oe+Me?Math.max(0,Pe-Me+De):oe}let Zt=(()=>{class Pe{}return Pe.\u0275fac=function(oe){return new(oe||Pe)},Pe.\u0275mod=e.oAB({type:Pe}),Pe.\u0275inj=e.cJS({imports:[[ve,b.ez,ie,lt]]}),Pe})()},6856:(He,j,p)=>{"use strict";p.d(j,{FA:()=>pt,Mq:()=>Re,hl:()=>at,nW:()=>mi});var e=p(5664),i=p(9776),u=p(7429),b=p(9808),a=p(5e3),y=p(7423),d=p(5303),P=p(508),D=p(7579),T=p(727),M=p(6451),A=p(9646),E=p(1159),k=p(5698),w=p(8675),z=p(9300),U=p(226),W=p(3191),ne=p(925),Q=p(1777),le=p(3075),q=p(7322),ie=p(7531);const se=["mat-calendar-body",""];function J(it,It){if(1&it&&(a.TgZ(0,"tr",2)(1,"td",3),a._uU(2),a.qZA()()),2&it){const de=a.oxw();a.xp6(1),a.Udp("padding-top",de._cellPadding)("padding-bottom",de._cellPadding),a.uIk("colspan",de.numCols),a.xp6(1),a.hij(" ",de.label," ")}}function me(it,It){if(1&it&&(a.TgZ(0,"td",3),a._uU(1),a.qZA()),2&it){const de=a.oxw(2);a.Udp("padding-top",de._cellPadding)("padding-bottom",de._cellPadding),a.uIk("colspan",de._firstRowOffset),a.xp6(1),a.hij(" ",de._firstRowOffset>=de.labelMinRequiredCells?de.label:""," ")}}function x(it,It){if(1&it){const de=a.EpF();a.TgZ(0,"td",7)(1,"button",8),a.NdJ("click",function(bt){const bi=a.CHM(de).$implicit;return a.oxw(2)._cellClicked(bi,bt)}),a.TgZ(2,"div",9),a._uU(3),a.qZA(),a._UZ(4,"div",10),a.qZA()()}if(2&it){const de=It.$implicit,$e=It.index,bt=a.oxw().index,Vt=a.oxw();a.Udp("width",Vt._cellWidth)("padding-top",Vt._cellPadding)("padding-bottom",Vt._cellPadding),a.uIk("data-mat-row",bt)("data-mat-col",$e),a.xp6(1),a.ekj("mat-calendar-body-disabled",!de.enabled)("mat-calendar-body-active",Vt._isActiveCell(bt,$e))("mat-calendar-body-range-start",Vt._isRangeStart(de.compareValue))("mat-calendar-body-range-end",Vt._isRangeEnd(de.compareValue))("mat-calendar-body-in-range",Vt._isInRange(de.compareValue))("mat-calendar-body-comparison-bridge-start",Vt._isComparisonBridgeStart(de.compareValue,bt,$e))("mat-calendar-body-comparison-bridge-end",Vt._isComparisonBridgeEnd(de.compareValue,bt,$e))("mat-calendar-body-comparison-start",Vt._isComparisonStart(de.compareValue))("mat-calendar-body-comparison-end",Vt._isComparisonEnd(de.compareValue))("mat-calendar-body-in-comparison-range",Vt._isInComparisonRange(de.compareValue))("mat-calendar-body-preview-start",Vt._isPreviewStart(de.compareValue))("mat-calendar-body-preview-end",Vt._isPreviewEnd(de.compareValue))("mat-calendar-body-in-preview",Vt._isInPreview(de.compareValue)),a.Q6J("ngClass",de.cssClasses)("tabindex",Vt._isActiveCell(bt,$e)?0:-1),a.uIk("aria-label",de.ariaLabel)("aria-disabled",!de.enabled||null)("aria-pressed",Vt._isSelected(de.compareValue))("aria-current",Vt.todayValue===de.compareValue?"date":null),a.xp6(1),a.ekj("mat-calendar-body-selected",Vt._isSelected(de.compareValue))("mat-calendar-body-comparison-identical",Vt._isComparisonIdentical(de.compareValue))("mat-calendar-body-today",Vt.todayValue===de.compareValue),a.xp6(1),a.hij(" ",de.displayValue," ")}}function t(it,It){if(1&it&&(a.TgZ(0,"tr",4),a.YNc(1,me,2,6,"td",5),a.YNc(2,x,5,47,"td",6),a.qZA()),2&it){const de=It.$implicit,$e=It.index,bt=a.oxw();a.xp6(1),a.Q6J("ngIf",0===$e&&bt._firstRowOffset),a.xp6(1),a.Q6J("ngForOf",de)}}function r(it,It){if(1&it&&(a.TgZ(0,"th",5)(1,"span",6),a._uU(2),a.qZA(),a.TgZ(3,"span",7),a._uU(4),a.qZA()()),2&it){const de=It.$implicit;a.xp6(2),a.Oqu(de.long),a.xp6(2),a.Oqu(de.narrow)}}const h=["*"];function c(it,It){}function C(it,It){if(1&it){const de=a.EpF();a.TgZ(0,"mat-month-view",5),a.NdJ("activeDateChange",function(bt){return a.CHM(de),a.oxw().activeDate=bt})("_userSelection",function(bt){return a.CHM(de),a.oxw()._dateSelected(bt)}),a.qZA()}if(2&it){const de=a.oxw();a.Q6J("activeDate",de.activeDate)("selected",de.selected)("dateFilter",de.dateFilter)("maxDate",de.maxDate)("minDate",de.minDate)("dateClass",de.dateClass)("comparisonStart",de.comparisonStart)("comparisonEnd",de.comparisonEnd)}}function S(it,It){if(1&it){const de=a.EpF();a.TgZ(0,"mat-year-view",6),a.NdJ("activeDateChange",function(bt){return a.CHM(de),a.oxw().activeDate=bt})("monthSelected",function(bt){return a.CHM(de),a.oxw()._monthSelectedInYearView(bt)})("selectedChange",function(bt){return a.CHM(de),a.oxw()._goToDateInView(bt,"month")}),a.qZA()}if(2&it){const de=a.oxw();a.Q6J("activeDate",de.activeDate)("selected",de.selected)("dateFilter",de.dateFilter)("maxDate",de.maxDate)("minDate",de.minDate)("dateClass",de.dateClass)}}function I(it,It){if(1&it){const de=a.EpF();a.TgZ(0,"mat-multi-year-view",7),a.NdJ("activeDateChange",function(bt){return a.CHM(de),a.oxw().activeDate=bt})("yearSelected",function(bt){return a.CHM(de),a.oxw()._yearSelectedInMultiYearView(bt)})("selectedChange",function(bt){return a.CHM(de),a.oxw()._goToDateInView(bt,"year")}),a.qZA()}if(2&it){const de=a.oxw();a.Q6J("activeDate",de.activeDate)("selected",de.selected)("dateFilter",de.dateFilter)("maxDate",de.maxDate)("minDate",de.minDate)("dateClass",de.dateClass)}}function _(it,It){}const n=["button"];function g(it,It){1&it&&(a.O4$(),a.TgZ(0,"svg",3),a._UZ(1,"path",4),a.qZA())}const V=[[["","matDatepickerToggleIcon",""]]],R=["[matDatepickerToggleIcon]"];class ke{constructor(It,de,$e,bt,Vt={},bi=It,Li){this.value=It,this.displayValue=de,this.ariaLabel=$e,this.enabled=bt,this.cssClasses=Vt,this.compareValue=bi,this.rawValue=Li}}let Ee=(()=>{class it{constructor(de,$e){this._elementRef=de,this._ngZone=$e,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new a.vpe,this.previewChange=new a.vpe,this._enterHandler=bt=>{if(this._skipNextFocus&&"focus"===bt.type)this._skipNextFocus=!1;else if(bt.target&&this.isRange){const Vt=this._getCellFromElement(bt.target);Vt&&this._ngZone.run(()=>this.previewChange.emit({value:Vt.enabled?Vt:null,event:bt}))}},this._leaveHandler=bt=>{null!==this.previewEnd&&this.isRange&&bt.target&&this._getCellFromElement(bt.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:bt}))},$e.runOutsideAngular(()=>{const bt=de.nativeElement;bt.addEventListener("mouseenter",this._enterHandler,!0),bt.addEventListener("focus",this._enterHandler,!0),bt.addEventListener("mouseleave",this._leaveHandler,!0),bt.addEventListener("blur",this._leaveHandler,!0)})}_cellClicked(de,$e){de.enabled&&this.selectedValueChange.emit({value:de.value,event:$e})}_isSelected(de){return this.startValue===de||this.endValue===de}ngOnChanges(de){const $e=de.numCols,{rows:bt,numCols:Vt}=this;(de.rows||$e)&&(this._firstRowOffset=bt&&bt.length&&bt[0].length?Vt-bt[0].length:0),(de.cellAspectRatio||$e||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/Vt+"%"),($e||!this._cellWidth)&&(this._cellWidth=100/Vt+"%")}ngOnDestroy(){const de=this._elementRef.nativeElement;de.removeEventListener("mouseenter",this._enterHandler,!0),de.removeEventListener("focus",this._enterHandler,!0),de.removeEventListener("mouseleave",this._leaveHandler,!0),de.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(de,$e){let bt=de*this.numCols+$e;return de&&(bt-=this._firstRowOffset),bt==this.activeCell}_focusActiveCell(de=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,k.q)(1)).subscribe(()=>{setTimeout(()=>{const $e=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");$e&&(de||(this._skipNextFocus=!0),$e.focus())})})})}_isRangeStart(de){return ze(de,this.startValue,this.endValue)}_isRangeEnd(de){return be(de,this.startValue,this.endValue)}_isInRange(de){return Z(de,this.startValue,this.endValue,this.isRange)}_isComparisonStart(de){return ze(de,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(de,$e,bt){if(!this._isComparisonStart(de)||this._isRangeStart(de)||!this._isInRange(de))return!1;let Vt=this.rows[$e][bt-1];if(!Vt){const bi=this.rows[$e-1];Vt=bi&&bi[bi.length-1]}return Vt&&!this._isRangeEnd(Vt.compareValue)}_isComparisonBridgeEnd(de,$e,bt){if(!this._isComparisonEnd(de)||this._isRangeEnd(de)||!this._isInRange(de))return!1;let Vt=this.rows[$e][bt+1];if(!Vt){const bi=this.rows[$e+1];Vt=bi&&bi[0]}return Vt&&!this._isRangeStart(Vt.compareValue)}_isComparisonEnd(de){return be(de,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(de){return Z(de,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(de){return this.comparisonStart===this.comparisonEnd&&de===this.comparisonStart}_isPreviewStart(de){return ze(de,this.previewStart,this.previewEnd)}_isPreviewEnd(de){return be(de,this.previewStart,this.previewEnd)}_isInPreview(de){return Z(de,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(de){let $e;if(te(de)?$e=de:te(de.parentNode)&&($e=de.parentNode),$e){const bt=$e.getAttribute("data-mat-row"),Vt=$e.getAttribute("data-mat-col");if(bt&&Vt)return this.rows[parseInt(bt)][parseInt(Vt)]}return null}}return it.\u0275fac=function(de){return new(de||it)(a.Y36(a.SBq),a.Y36(a.R0b))},it.\u0275cmp=a.Xpm({type:it,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange"},exportAs:["matCalendarBody"],features:[a.TTD],attrs:se,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom",4,"ngFor","ngForOf"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(de,$e){1&de&&(a.YNc(0,J,3,6,"tr",0),a.YNc(1,t,3,2,"tr",1)),2&de&&(a.Q6J("ngIf",$e._firstRowOffset<$e.labelMinRequiredCells),a.xp6(1),a.Q6J("ngForOf",$e.rows))},directives:[b.O5,b.sg,b.mk],styles:['.mat-calendar-body{min-width:224px}.mat-calendar-body-label{height:0;line-height:0;text-align:left;padding-left:4.7142857143%;padding-right:4.7142857143%}.mat-calendar-body-cell-container{position:relative;height:0;line-height:0}.mat-calendar-body-cell{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;position:absolute;top:0;left:0;width:100%;height:100%;background:none;text-align:center;outline:none;font-family:inherit;margin:0}.mat-calendar-body-cell::-moz-focus-inner{border:0}.mat-calendar-body-cell::before,.mat-calendar-body-cell::after,.mat-calendar-body-cell-preview{content:"";position:absolute;top:5%;left:0;z-index:0;box-sizing:border-box;height:90%;width:100%}.mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-start::after,.mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,.mat-calendar-body-comparison-start::after,.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:5%;width:95%;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,[dir=rtl] .mat-calendar-body-comparison-start::after,[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:0;border-radius:0;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,.mat-calendar-body-comparison-end::after,.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}[dir=rtl] .mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,[dir=rtl] .mat-calendar-body-comparison-end::after,[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{left:5%;border-radius:0;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-comparison-bridge-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-bridge-end.mat-calendar-body-range-start::after{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end.mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-end.mat-calendar-body-range-start::after{width:90%}.mat-calendar-body-in-preview .mat-calendar-body-cell-preview{border-top:dashed 1px;border-bottom:dashed 1px}.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:dashed 1px}[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:0;border-right:dashed 1px}.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:dashed 1px}[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:0;border-left:dashed 1px}.mat-calendar-body-disabled{cursor:default}.cdk-high-contrast-active .mat-calendar-body-disabled{opacity:.5}.mat-calendar-body-cell-content{top:5%;left:5%;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}.cdk-high-contrast-active .mat-calendar-body-cell-content{border:none}.cdk-high-contrast-active .mat-datepicker-popup:not(:empty),.cdk-high-contrast-active .mat-calendar-body-cell:not(.mat-calendar-body-in-range) .mat-calendar-body-selected{outline:solid 1px}.cdk-high-contrast-active .mat-calendar-body-today{outline:dotted 1px}.cdk-high-contrast-active .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content,.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content{outline:dotted 2px}.cdk-high-contrast-active .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content.mat-calendar-body-selected,.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content.mat-calendar-body-selected{outline:solid 3px}.cdk-high-contrast-active .mat-calendar-body-cell::before,.cdk-high-contrast-active .mat-calendar-body-cell::after,.cdk-high-contrast-active .mat-calendar-body-selected{background:none}.cdk-high-contrast-active .mat-calendar-body-in-range::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-start::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.cdk-high-contrast-active .mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}[dir=rtl] .mat-calendar-body-label{text-align:right}\n'],encapsulation:2,changeDetection:0}),it})();function te(it){return"TD"===it.nodeName}function ze(it,It,de){return null!==de&&It!==de&&it<de&&it===It}function be(it,It,de){return null!==It&&It!==de&&it>=It&&it===de}function Z(it,It,de,$e){return $e&&null!==It&&null!==de&&It!==de&&it>=It&&it<=de}class Y{constructor(It,de){this.start=It,this.end=de}}let ot=(()=>{class it{constructor(de,$e){this.selection=de,this._adapter=$e,this._selectionChanged=new D.x,this.selectionChanged=this._selectionChanged,this.selection=de}updateSelection(de,$e){const bt=this.selection;this.selection=de,this._selectionChanged.next({selection:de,source:$e,oldValue:bt})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(de){return this._adapter.isDateInstance(de)&&this._adapter.isValid(de)}}return it.\u0275fac=function(de){a.$Z()},it.\u0275prov=a.Yz7({token:it,factory:it.\u0275fac}),it})(),Ie=(()=>{class it extends ot{constructor(de){super(null,de)}add(de){super.updateSelection(de,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const de=new it(this._adapter);return de.updateSelection(this.selection,this),de}}return it.\u0275fac=function(de){return new(de||it)(a.LFG(P._A))},it.\u0275prov=a.Yz7({token:it,factory:it.\u0275fac}),it})();const Te={provide:ot,deps:[[new a.FiY,new a.tp0,ot],P._A],useFactory:function ce(it,It){return it||new Ie(It)}},ee=new a.OlP("MAT_DATE_RANGE_SELECTION_STRATEGY");let ht=(()=>{class it{constructor(de,$e,bt,Vt,bi){this._changeDetectorRef=de,this._dateFormats=$e,this._dateAdapter=bt,this._dir=Vt,this._rangeStrategy=bi,this._rerenderSubscription=T.w0.EMPTY,this.selectedChange=new a.vpe,this._userSelection=new a.vpe,this.activeDateChange=new a.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(de){const $e=this._activeDate,bt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(de))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(bt,this.minDate,this.maxDate),this._hasSameMonthAndYear($e,this._activeDate)||this._init()}get selected(){return this._selected}set selected(de){this._selected=de instanceof Y?de:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(de)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(de){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(de))}get maxDate(){return this._maxDate}set maxDate(de){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(de))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,w.O)(null)).subscribe(()=>this._init())}ngOnChanges(de){const $e=de.comparisonStart||de.comparisonEnd;$e&&!$e.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(de){const $e=de.value,bt=this._dateAdapter.getYear(this.activeDate),Vt=this._dateAdapter.getMonth(this.activeDate),bi=this._dateAdapter.createDate(bt,Vt,$e);let Li,Ji;this._selected instanceof Y?(Li=this._getDateInCurrentMonth(this._selected.start),Ji=this._getDateInCurrentMonth(this._selected.end)):Li=Ji=this._getDateInCurrentMonth(this._selected),(Li!==$e||Ji!==$e)&&this.selectedChange.emit(bi),this._userSelection.emit({value:bi,event:de.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}_handleCalendarBodyKeydown(de){const $e=this._activeDate,bt=this._isRtl();switch(de.keyCode){case E.oh:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,bt?1:-1);break;case E.SV:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,bt?-1:1);break;case E.LH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case E.JH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case E.Sd:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case E.uR:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case E.Ku:this.activeDate=de.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case E.VM:this.activeDate=de.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case E.K5:case E.L_:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&de.preventDefault());case E.hY:return void(null!=this._previewEnd&&!(0,E.Vb)(de)&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:de}),de.preventDefault(),de.stopPropagation()));default:return}this._dateAdapter.compareDate($e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),de.preventDefault()}_handleCalendarBodyKeyup(de){(de.keyCode===E.L_||de.keyCode===E.K5)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:de}),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 de=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(de)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(de){this._matCalendarBody._focusActiveCell(de)}_previewChanged({event:de,value:$e}){if(this._rangeStrategy){const Vt=this._rangeStrategy.createPreview($e?$e.rawValue:null,this.selected,de);this._previewStart=this._getCellCompareValue(Vt.start),this._previewEnd=this._getCellCompareValue(Vt.end),this._changeDetectorRef.detectChanges()}}_initWeekdays(){const de=this._dateAdapter.getFirstDayOfWeek(),$e=this._dateAdapter.getDayOfWeekNames("narrow");let Vt=this._dateAdapter.getDayOfWeekNames("long").map((bi,Li)=>({long:bi,narrow:$e[Li]}));this._weekdays=Vt.slice(de).concat(Vt.slice(0,de))}_createWeekCells(){const de=this._dateAdapter.getNumDaysInMonth(this.activeDate),$e=this._dateAdapter.getDateNames();this._weeks=[[]];for(let bt=0,Vt=this._firstWeekOffset;bt<de;bt++,Vt++){7==Vt&&(this._weeks.push([]),Vt=0);const bi=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),bt+1),Li=this._shouldEnableDate(bi),Ji=this._dateAdapter.format(bi,this._dateFormats.display.dateA11yLabel),Wi=this.dateClass?this.dateClass(bi,"month"):void 0;this._weeks[this._weeks.length-1].push(new ke(bt+1,$e[bt],Ji,Li,Wi,this._getCellCompareValue(bi),bi))}}_shouldEnableDate(de){return!!de&&(!this.minDate||this._dateAdapter.compareDate(de,this.minDate)>=0)&&(!this.maxDate||this._dateAdapter.compareDate(de,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(de))}_getDateInCurrentMonth(de){return de&&this._hasSameMonthAndYear(de,this.activeDate)?this._dateAdapter.getDate(de):null}_hasSameMonthAndYear(de,$e){return!(!de||!$e||this._dateAdapter.getMonth(de)!=this._dateAdapter.getMonth($e)||this._dateAdapter.getYear(de)!=this._dateAdapter.getYear($e))}_getCellCompareValue(de){if(de){const $e=this._dateAdapter.getYear(de),bt=this._dateAdapter.getMonth(de),Vt=this._dateAdapter.getDate(de);return new Date($e,bt,Vt).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(de){de instanceof Y?(this._rangeStart=this._getCellCompareValue(de.start),this._rangeEnd=this._getCellCompareValue(de.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(de),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(de){return!this.dateFilter||this.dateFilter(de)}}return it.\u0275fac=function(de){return new(de||it)(a.Y36(a.sBO),a.Y36(P.sG,8),a.Y36(P._A,8),a.Y36(U.Is,8),a.Y36(ee,8))},it.\u0275cmp=a.Xpm({type:it,selectors:[["mat-month-view"]],viewQuery:function(de,$e){if(1&de&&a.Gf(Ee,5),2&de){let bt;a.iGM(bt=a.CRH())&&($e._matCalendarBody=bt.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[a.TTD],decls:7,vars:13,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["aria-hidden","true","colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","previewChange","keyup","keydown"],["scope","col"],[1,"cdk-visually-hidden"],["aria-hidden","true"]],template:function(de,$e){1&de&&(a.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),a.YNc(3,r,5,2,"th",2),a.qZA(),a.TgZ(4,"tr"),a._UZ(5,"th",3),a.qZA()(),a.TgZ(6,"tbody",4),a.NdJ("selectedValueChange",function(Vt){return $e._dateSelected(Vt)})("previewChange",function(Vt){return $e._previewChanged(Vt)})("keyup",function(Vt){return $e._handleCalendarBodyKeyup(Vt)})("keydown",function(Vt){return $e._handleCalendarBodyKeydown(Vt)}),a.qZA()()),2&de&&(a.xp6(3),a.Q6J("ngForOf",$e._weekdays),a.xp6(3),a.Q6J("label",$e._monthLabel)("rows",$e._weeks)("todayValue",$e._todayDate)("startValue",$e._rangeStart)("endValue",$e._rangeEnd)("comparisonStart",$e._comparisonRangeStart)("comparisonEnd",$e._comparisonRangeEnd)("previewStart",$e._previewStart)("previewEnd",$e._previewEnd)("isRange",$e._isRange)("labelMinRequiredCells",3)("activeCell",$e._dateAdapter.getDate($e.activeDate)-1))},directives:[Ee,b.sg],encapsulation:2,changeDetection:0}),it})(),jt=(()=>{class it{constructor(de,$e,bt){this._changeDetectorRef=de,this._dateAdapter=$e,this._dir=bt,this._rerenderSubscription=T.w0.EMPTY,this.selectedChange=new a.vpe,this.yearSelected=new a.vpe,this.activeDateChange=new a.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(de){let $e=this._activeDate;const bt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(de))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(bt,this.minDate,this.maxDate),Gt(this._dateAdapter,$e,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(de){this._selected=de instanceof Y?de:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(de)),this._setSelectedYear(de)}get minDate(){return this._minDate}set minDate(de){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(de))}get maxDate(){return this._maxDate}set maxDate(de){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(de))}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 $e=this._dateAdapter.getYear(this._activeDate)-di(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let bt=0,Vt=[];bt<24;bt++)Vt.push($e+bt),4==Vt.length&&(this._years.push(Vt.map(bi=>this._createCellForYear(bi))),Vt=[]);this._changeDetectorRef.markForCheck()}_yearSelected(de){const $e=de.value;this.yearSelected.emit(this._dateAdapter.createDate($e,0,1));let bt=this._dateAdapter.getMonth(this.activeDate),Vt=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate($e,bt,1));this.selectedChange.emit(this._dateAdapter.createDate($e,bt,Math.min(this._dateAdapter.getDate(this.activeDate),Vt)))}_handleCalendarBodyKeydown(de){const $e=this._activeDate,bt=this._isRtl();switch(de.keyCode){case E.oh:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,bt?1:-1);break;case E.SV:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,bt?-1:1);break;case E.LH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case E.JH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case E.Sd:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-di(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case E.uR:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-di(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case E.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,de.altKey?-240:-24);break;case E.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,de.altKey?240:24);break;case E.K5:case E.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate($e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),de.preventDefault()}_handleCalendarBodyKeyup(de){(de.keyCode===E.L_||de.keyCode===E.K5)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:de}),this._selectionKeyPressed=!1)}_getActiveCell(){return di(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_createCellForYear(de){const $e=this._dateAdapter.createDate(de,0,1),bt=this._dateAdapter.getYearName($e),Vt=this.dateClass?this.dateClass($e,"multi-year"):void 0;return new ke(de,bt,bt,this._shouldEnableYear(de),Vt)}_shouldEnableYear(de){if(null==de||this.maxDate&&de>this._dateAdapter.getYear(this.maxDate)||this.minDate&&de<this._dateAdapter.getYear(this.minDate))return!1;if(!this.dateFilter)return!0;for(let bt=this._dateAdapter.createDate(de,0,1);this._dateAdapter.getYear(bt)==de;bt=this._dateAdapter.addCalendarDays(bt,1))if(this.dateFilter(bt))return!0;return!1}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setSelectedYear(de){if(this._selectedYear=null,de instanceof Y){const $e=de.start||de.end;$e&&(this._selectedYear=this._dateAdapter.getYear($e))}else de&&(this._selectedYear=this._dateAdapter.getYear(de))}}return it.\u0275fac=function(de){return new(de||it)(a.Y36(a.sBO),a.Y36(P._A,8),a.Y36(U.Is,8))},it.\u0275cmp=a.Xpm({type:it,selectors:[["mat-multi-year-view"]],viewQuery:function(de,$e){if(1&de&&a.Gf(Ee,5),2&de){let bt;a.iGM(bt=a.CRH())&&($e._matCalendarBody=bt.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",activeDateChange:"activeDateChange"},exportAs:["matMultiYearView"],decls:5,vars:7,consts:[["role","grid",1,"mat-calendar-table"],["aria-hidden","true",1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"rows","todayValue","startValue","endValue","numCols","cellAspectRatio","activeCell","selectedValueChange","keyup","keydown"]],template:function(de,$e){1&de&&(a.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),a._UZ(3,"th",2),a.qZA()(),a.TgZ(4,"tbody",3),a.NdJ("selectedValueChange",function(Vt){return $e._yearSelected(Vt)})("keyup",function(Vt){return $e._handleCalendarBodyKeyup(Vt)})("keydown",function(Vt){return $e._handleCalendarBodyKeydown(Vt)}),a.qZA()()),2&de&&(a.xp6(4),a.Q6J("rows",$e._years)("todayValue",$e._todayYear)("startValue",$e._selectedYear)("endValue",$e._selectedYear)("numCols",4)("cellAspectRatio",4/7)("activeCell",$e._getActiveCell()))},directives:[Ee],encapsulation:2,changeDetection:0}),it})();function Gt(it,It,de,$e,bt){const Vt=it.getYear(It),bi=it.getYear(de),Li=vt(it,$e,bt);return Math.floor((Vt-Li)/24)===Math.floor((bi-Li)/24)}function di(it,It,de,$e){return function kt(it,It){return(it%It+It)%It}(it.getYear(It)-vt(it,de,$e),24)}function vt(it,It,de){let $e=0;return de?$e=it.getYear(de)-24+1:It&&($e=it.getYear(It)),$e}let gt=(()=>{class it{constructor(de,$e,bt,Vt){this._changeDetectorRef=de,this._dateFormats=$e,this._dateAdapter=bt,this._dir=Vt,this._rerenderSubscription=T.w0.EMPTY,this.selectedChange=new a.vpe,this.monthSelected=new a.vpe,this.activeDateChange=new a.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(de){let $e=this._activeDate;const bt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(de))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(bt,this.minDate,this.maxDate),this._dateAdapter.getYear($e)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(de){this._selected=de instanceof Y?de:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(de)),this._setSelectedMonth(de)}get minDate(){return this._minDate}set minDate(de){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(de))}get maxDate(){return this._maxDate}set maxDate(de){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(de))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,w.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(de){const $e=de.value,bt=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),$e,1);this.monthSelected.emit(bt);const Vt=this._dateAdapter.getNumDaysInMonth(bt);this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),$e,Math.min(this._dateAdapter.getDate(this.activeDate),Vt)))}_handleCalendarBodyKeydown(de){const $e=this._activeDate,bt=this._isRtl();switch(de.keyCode){case E.oh:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,bt?1:-1);break;case E.SV:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,bt?-1:1);break;case E.LH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case E.JH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case E.Sd:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case E.uR:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case E.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,de.altKey?-10:-1);break;case E.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,de.altKey?10:1);break;case E.K5:case E.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate($e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),de.preventDefault()}_handleCalendarBodyKeyup(de){(de.keyCode===E.L_||de.keyCode===E.K5)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:de}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let de=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map($e=>$e.map(bt=>this._createCellForMonth(bt,de[bt]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_getMonthInCurrentYear(de){return de&&this._dateAdapter.getYear(de)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(de):null}_createCellForMonth(de,$e){const bt=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),de,1),Vt=this._dateAdapter.format(bt,this._dateFormats.display.monthYearA11yLabel),bi=this.dateClass?this.dateClass(bt,"year"):void 0;return new ke(de,$e.toLocaleUpperCase(),Vt,this._shouldEnableMonth(de),bi)}_shouldEnableMonth(de){const $e=this._dateAdapter.getYear(this.activeDate);if(null==de||this._isYearAndMonthAfterMaxDate($e,de)||this._isYearAndMonthBeforeMinDate($e,de))return!1;if(!this.dateFilter)return!0;for(let Vt=this._dateAdapter.createDate($e,de,1);this._dateAdapter.getMonth(Vt)==de;Vt=this._dateAdapter.addCalendarDays(Vt,1))if(this.dateFilter(Vt))return!0;return!1}_isYearAndMonthAfterMaxDate(de,$e){if(this.maxDate){const bt=this._dateAdapter.getYear(this.maxDate),Vt=this._dateAdapter.getMonth(this.maxDate);return de>bt||de===bt&&$e>Vt}return!1}_isYearAndMonthBeforeMinDate(de,$e){if(this.minDate){const bt=this._dateAdapter.getYear(this.minDate),Vt=this._dateAdapter.getMonth(this.minDate);return de<bt||de===bt&&$e<Vt}return!1}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setSelectedMonth(de){this._selectedMonth=de instanceof Y?this._getMonthInCurrentYear(de.start)||this._getMonthInCurrentYear(de.end):this._getMonthInCurrentYear(de)}}return it.\u0275fac=function(de){return new(de||it)(a.Y36(a.sBO),a.Y36(P.sG,8),a.Y36(P._A,8),a.Y36(U.Is,8))},it.\u0275cmp=a.Xpm({type:it,selectors:[["mat-year-view"]],viewQuery:function(de,$e){if(1&de&&a.Gf(Ee,5),2&de){let bt;a.iGM(bt=a.CRH())&&($e._matCalendarBody=bt.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",monthSelected:"monthSelected",activeDateChange:"activeDateChange"},exportAs:["matYearView"],decls:5,vars:9,consts:[["role","grid",1,"mat-calendar-table"],["aria-hidden","true",1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","labelMinRequiredCells","numCols","cellAspectRatio","activeCell","selectedValueChange","keyup","keydown"]],template:function(de,$e){1&de&&(a.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),a._UZ(3,"th",2),a.qZA()(),a.TgZ(4,"tbody",3),a.NdJ("selectedValueChange",function(Vt){return $e._monthSelected(Vt)})("keyup",function(Vt){return $e._handleCalendarBodyKeyup(Vt)})("keydown",function(Vt){return $e._handleCalendarBodyKeydown(Vt)}),a.qZA()()),2&de&&(a.xp6(4),a.Q6J("label",$e._yearLabel)("rows",$e._months)("todayValue",$e._todayMonth)("startValue",$e._selectedMonth)("endValue",$e._selectedMonth)("labelMinRequiredCells",2)("numCols",4)("cellAspectRatio",4/7)("activeCell",$e._dateAdapter.getMonth($e.activeDate)))},directives:[Ee],encapsulation:2,changeDetection:0}),it})(),Qe=(()=>{class it{constructor(){this.changes=new D.x,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}formatYearRange(de,$e){return`${de} \u2013 ${$e}`}}return it.\u0275fac=function(de){return new(de||it)},it.\u0275prov=a.Yz7({token:it,factory:it.\u0275fac,providedIn:"root"}),it})(),_t=0,ei=(()=>{class it{constructor(de,$e,bt,Vt,bi){this._intl=de,this.calendar=$e,this._dateAdapter=bt,this._dateFormats=Vt,this._buttonDescriptionId="mat-calendar-button-"+_t++,this.calendar.stateChanges.subscribe(()=>bi.markForCheck())}get periodButtonText(){if("month"==this.calendar.currentView)return this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase();if("year"==this.calendar.currentView)return this._dateAdapter.getYearName(this.calendar.activeDate);const $e=this._dateAdapter.getYear(this.calendar.activeDate)-di(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),bt=$e+24-1,Vt=this._dateAdapter.getYearName(this._dateAdapter.createDate($e,0,1)),bi=this._dateAdapter.getYearName(this._dateAdapter.createDate(bt,0,1));return this._intl.formatYearRange(Vt,bi)}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-24)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:24)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(de,$e){return"month"==this.calendar.currentView?this._dateAdapter.getYear(de)==this._dateAdapter.getYear($e)&&this._dateAdapter.getMonth(de)==this._dateAdapter.getMonth($e):"year"==this.calendar.currentView?this._dateAdapter.getYear(de)==this._dateAdapter.getYear($e):Gt(this._dateAdapter,de,$e,this.calendar.minDate,this.calendar.maxDate)}}return it.\u0275fac=function(de){return new(de||it)(a.Y36(Qe),a.Y36((0,a.Gpc)(()=>Zt)),a.Y36(P._A,8),a.Y36(P.sG,8),a.Y36(a.sBO))},it.\u0275cmp=a.Xpm({type:it,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(de,$e){1&de&&(a.F$t(),a.TgZ(0,"div",0)(1,"div",1)(2,"button",2),a.NdJ("click",function(){return $e.currentPeriodClicked()}),a.TgZ(3,"span"),a._uU(4),a.qZA(),a.O4$(),a.TgZ(5,"svg",3),a._UZ(6,"polygon",4),a.qZA()(),a.kcU(),a._UZ(7,"div",5),a.Hsn(8),a.TgZ(9,"button",6),a.NdJ("click",function(){return $e.previousClicked()}),a.qZA(),a.TgZ(10,"button",7),a.NdJ("click",function(){return $e.nextClicked()}),a.qZA()()()),2&de&&(a.xp6(2),a.uIk("aria-label",$e.periodButtonLabel)("aria-describedby",$e._buttonDescriptionId),a.xp6(1),a.uIk("id",$e._buttonDescriptionId),a.xp6(1),a.Oqu($e.periodButtonText),a.xp6(1),a.ekj("mat-calendar-invert","month"!==$e.calendar.currentView),a.xp6(4),a.Q6J("disabled",!$e.previousEnabled()),a.uIk("aria-label",$e.prevButtonLabel),a.xp6(1),a.Q6J("disabled",!$e.nextEnabled()),a.uIk("aria-label",$e.nextButtonLabel))},directives:[y.lW],encapsulation:2,changeDetection:0}),it})(),Zt=(()=>{class it{constructor(de,$e,bt,Vt){this._dateAdapter=$e,this._dateFormats=bt,this._changeDetectorRef=Vt,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new a.vpe,this.yearSelected=new a.vpe,this.monthSelected=new a.vpe,this.viewChanged=new a.vpe(!0),this._userSelection=new a.vpe,this.stateChanges=new D.x,this._intlChanges=de.changes.subscribe(()=>{Vt.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(de){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(de))}get selected(){return this._selected}set selected(de){this._selected=de instanceof Y?de:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(de))}get minDate(){return this._minDate}set minDate(de){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(de))}get maxDate(){return this._maxDate}set maxDate(de){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(de))}get activeDate(){return this._clampedActiveDate}set activeDate(de){this._clampedActiveDate=this._dateAdapter.clampDate(de,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(de){const $e=this._currentView!==de?de:null;this._currentView=de,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),$e&&this.viewChanged.emit($e)}ngAfterContentInit(){this._calendarHeaderPortal=new u.C5(this.headerComponent||ei),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(de){const $e=de.minDate&&!this._dateAdapter.sameDate(de.minDate.previousValue,de.minDate.currentValue)?de.minDate:void 0,bt=de.maxDate&&!this._dateAdapter.sameDate(de.maxDate.previousValue,de.maxDate.currentValue)?de.maxDate:void 0,Vt=$e||bt||de.dateFilter;if(Vt&&!Vt.firstChange){const bi=this._getCurrentViewComponent();bi&&(this._changeDetectorRef.detectChanges(),bi._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(de){const $e=de.value;(this.selected instanceof Y||$e&&!this._dateAdapter.sameDate($e,this.selected))&&this.selectedChange.emit($e),this._userSelection.emit(de)}_yearSelectedInMultiYearView(de){this.yearSelected.emit(de)}_monthSelectedInYearView(de){this.monthSelected.emit(de)}_goToDateInView(de,$e){this.activeDate=de,this.currentView=$e}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return it.\u0275fac=function(de){return new(de||it)(a.Y36(Qe),a.Y36(P._A,8),a.Y36(P.sG,8),a.Y36(a.sBO))},it.\u0275cmp=a.Xpm({type:it,selectors:[["mat-calendar"]],viewQuery:function(de,$e){if(1&de&&(a.Gf(ht,5),a.Gf(gt,5),a.Gf(jt,5)),2&de){let bt;a.iGM(bt=a.CRH())&&($e.monthView=bt.first),a.iGM(bt=a.CRH())&&($e.yearView=bt.first),a.iGM(bt=a.CRH())&&($e.multiYearView=bt.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection"},exportAs:["matCalendar"],features:[a._Bn([Te]),a.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(de,$e){1&de&&(a.YNc(0,c,0,0,"ng-template",0),a.TgZ(1,"div",1),a.YNc(2,C,1,8,"mat-month-view",2),a.YNc(3,S,1,6,"mat-year-view",3),a.YNc(4,I,1,6,"mat-multi-year-view",4),a.qZA()),2&de&&(a.Q6J("cdkPortalOutlet",$e._calendarHeaderPortal),a.xp6(1),a.Q6J("ngSwitch",$e.currentView),a.xp6(1),a.Q6J("ngSwitchCase","month"),a.xp6(1),a.Q6J("ngSwitchCase","year"),a.xp6(1),a.Q6J("ngSwitchCase","multi-year"))},directives:[ht,gt,jt,u.Pl,e.kH,b.RF,b.n9],styles:['.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:.04}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px}\n'],encapsulation:2,changeDetection:0}),it})();const Pe={transformPanel:(0,Q.X$)("transformPanel",[(0,Q.eR)("void => enter-dropdown",(0,Q.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,Q.F4)([(0,Q.oB)({opacity:0,transform:"scale(1, 0.8)"}),(0,Q.oB)({opacity:1,transform:"scale(1, 1)"})]))),(0,Q.eR)("void => enter-dialog",(0,Q.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,Q.F4)([(0,Q.oB)({opacity:0,transform:"scale(0.7)"}),(0,Q.oB)({transform:"none",opacity:1})]))),(0,Q.eR)("* => void",(0,Q.jt)("100ms linear",(0,Q.oB)({opacity:0})))]),fadeInCalendar:(0,Q.X$)("fadeInCalendar",[(0,Q.SB)("void",(0,Q.oB)({opacity:0})),(0,Q.SB)("enter",(0,Q.oB)({opacity:1})),(0,Q.eR)("void => *",(0,Q.jt)("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let De=0;const oe=new a.OlP("mat-datepicker-scroll-strategy"),ut={provide:oe,deps:[i.aV],useFactory:function Me(it){return()=>it.scrollStrategies.reposition()}},ft=(0,P.pj)(class{constructor(it){this._elementRef=it}});let Rt=(()=>{class it extends ft{constructor(de,$e,bt,Vt,bi,Li){super(de),this._changeDetectorRef=$e,this._globalModel=bt,this._dateAdapter=Vt,this._rangeSelectionStrategy=bi,this._subscriptions=new T.w0,this._animationDone=new D.x,this._actionsPortal=null,this._closeButtonText=Li.closeCalendarLabel}ngOnInit(){this._model=this._actionsPortal?this._globalModel.clone():this._globalModel,this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(de){const $e=this._model.selection,bt=de.value,Vt=$e instanceof Y;if(Vt&&this._rangeSelectionStrategy){const bi=this._rangeSelectionStrategy.selectionFinished(bt,$e,de.event);this._model.updateSelection(bi,this)}else bt&&(Vt||!this._dateAdapter.sameDate(bt,$e))&&this._model.add(bt);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}}return it.\u0275fac=function(de){return new(de||it)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(ot),a.Y36(P._A),a.Y36(ee,8),a.Y36(Qe))},it.\u0275cmp=a.Xpm({type:it,selectors:[["mat-datepicker-content"]],viewQuery:function(de,$e){if(1&de&&a.Gf(Zt,5),2&de){let bt;a.iGM(bt=a.CRH())&&($e._calendar=bt.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(de,$e){1&de&&a.WFA("@transformPanel.done",function(){return $e._animationDone.next()}),2&de&&(a.d8E("@transformPanel",$e._animationState),a.ekj("mat-datepicker-content-touch",$e.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[a.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(de,$e){if(1&de&&(a.TgZ(0,"div",0)(1,"mat-calendar",1),a.NdJ("yearSelected",function(Vt){return $e.datepicker._selectYear(Vt)})("monthSelected",function(Vt){return $e.datepicker._selectMonth(Vt)})("viewChanged",function(Vt){return $e.datepicker._viewChanged(Vt)})("_userSelection",function(Vt){return $e._handleUserSelection(Vt)}),a.qZA(),a.YNc(2,_,0,0,"ng-template",2),a.TgZ(3,"button",3),a.NdJ("focus",function(){return $e._closeButtonFocused=!0})("blur",function(){return $e._closeButtonFocused=!1})("click",function(){return $e.datepicker.close()}),a._uU(4),a.qZA()()),2&de){let bt;a.ekj("mat-datepicker-content-container-with-custom-header",$e.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",$e._actionsPortal),a.uIk("aria-modal",!0)("aria-labelledby",null!==(bt=$e._dialogLabelId)&&void 0!==bt?bt:void 0),a.xp6(1),a.Q6J("id",$e.datepicker.id)("ngClass",$e.datepicker.panelClass)("startAt",$e.datepicker.startAt)("startView",$e.datepicker.startView)("minDate",$e.datepicker._getMinDate())("maxDate",$e.datepicker._getMaxDate())("dateFilter",$e.datepicker._getDateFilter())("headerComponent",$e.datepicker.calendarHeaderComponent)("selected",$e._getSelected())("dateClass",$e.datepicker.dateClass)("comparisonStart",$e.comparisonStart)("comparisonEnd",$e.comparisonEnd)("@fadeInCalendar","enter"),a.xp6(1),a.Q6J("cdkPortalOutlet",$e._actionsPortal),a.xp6(1),a.ekj("cdk-visually-hidden",!$e._closeButtonFocused),a.Q6J("color",$e.color||"primary"),a.xp6(1),a.Oqu($e._closeButtonText)}},directives:[Zt,y.lW,e.mK,b.mk,u.Pl],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}\n"],encapsulation:2,data:{animation:[Pe.transformPanel,Pe.fadeInCalendar]},changeDetection:0}),it})(),et=(()=>{class it{constructor(de,$e,bt,Vt,bi,Li,Ji){this._overlay=de,this._ngZone=$e,this._viewContainerRef=bt,this._dateAdapter=bi,this._dir=Li,this._model=Ji,this._inputStateChanges=T.w0.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new a.vpe,this.monthSelected=new a.vpe,this.viewChanged=new a.vpe(!0),this.openedStream=new a.vpe,this.closedStream=new a.vpe,this._opened=!1,this.id="mat-datepicker-"+De++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new D.x,this._scrollStrategy=Vt}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(de){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(de))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(de){this._color=de}get touchUi(){return this._touchUi}set touchUi(de){this._touchUi=(0,W.Ig)(de)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(de){const $e=(0,W.Ig)(de);$e!==this._disabled&&(this._disabled=$e,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(de){this._restoreFocus=(0,W.Ig)(de)}get panelClass(){return this._panelClass}set panelClass(de){this._panelClass=(0,W.du)(de)}get opened(){return this._opened}set opened(de){(0,W.Ig)(de)?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(de){const $e=de.xPosition||de.yPosition;if($e&&!$e.firstChange&&this._overlayRef){const bt=this._overlayRef.getConfig().positionStrategy;bt instanceof i._G&&(this._setConnectedPositions(bt),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(de){this._model.add(de)}_selectYear(de){this.yearSelected.emit(de)}_selectMonth(de){this.monthSelected.emit(de)}_viewChanged(de){this.viewChanged.emit(de)}registerInput(de){return this._inputStateChanges.unsubscribe(),this.datepickerInput=de,this._inputStateChanges=de.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(de){this._actionsPortal=de}removeActions(de){de===this._actionsPortal&&(this._actionsPortal=null)}open(){this._opened||this.disabled||(this._focusedElementBeforeOpen=(0,ne.ht)(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened)return;if(this._componentRef){const $e=this._componentRef.instance;$e._startExitAnimation(),$e._animationDone.pipe((0,k.q)(1)).subscribe(()=>this._destroyOverlay())}const de=()=>{this._opened&&(this._opened=!1,this.closedStream.emit(),this._focusedElementBeforeOpen=null)};this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(de)):de()}_applyPendingSelection(){var de,$e;null===($e=null===(de=this._componentRef)||void 0===de?void 0:de.instance)||void 0===$e||$e._applyPendingSelection()}_forwardContentValues(de){de.datepicker=this,de.color=this.color,de._actionsPortal=this._actionsPortal,de._dialogLabelId=this.datepickerInput.getOverlayLabelId()}_openOverlay(){this._destroyOverlay();const de=this.touchUi,$e=new u.C5(Rt,this._viewContainerRef),bt=this._overlayRef=this._overlay.create(new i.X_({positionStrategy:de?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[de?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:de?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(de?"dialog":"popup")}));this._getCloseStream(bt).subscribe(Vt=>{Vt&&Vt.preventDefault(),this.close()}),bt.keydownEvents().subscribe(Vt=>{const bi=Vt.keyCode;(bi===E.LH||bi===E.JH||bi===E.oh||bi===E.SV||bi===E.Ku||bi===E.VM)&&Vt.preventDefault()}),this._componentRef=bt.attach($e),this._forwardContentValues(this._componentRef.instance),de||this._ngZone.onStable.pipe((0,k.q)(1)).subscribe(()=>bt.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const de=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(de)}_setConnectedPositions(de){const $e="end"===this.xPosition?"end":"start",bt="start"===$e?"end":"start",Vt="above"===this.yPosition?"bottom":"top",bi="top"===Vt?"bottom":"top";return de.withPositions([{originX:$e,originY:bi,overlayX:$e,overlayY:Vt},{originX:$e,originY:Vt,overlayX:$e,overlayY:bi},{originX:bt,originY:bi,overlayX:bt,overlayY:Vt},{originX:bt,originY:Vt,overlayX:bt,overlayY:bi}])}_getCloseStream(de){return(0,M.T)(de.backdropClick(),de.detachments(),de.keydownEvents().pipe((0,z.h)($e=>$e.keyCode===E.hY&&!(0,E.Vb)($e)||this.datepickerInput&&(0,E.Vb)($e,"altKey")&&$e.keyCode===E.LH)))}}return it.\u0275fac=function(de){return new(de||it)(a.Y36(i.aV),a.Y36(a.R0b),a.Y36(a.s_b),a.Y36(oe),a.Y36(P._A,8),a.Y36(U.Is,8),a.Y36(ot))},it.\u0275dir=a.lG2({type:it,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:[a.TTD]}),it})(),Re=(()=>{class it extends et{}return it.\u0275fac=function(){let It;return function($e){return(It||(It=a.n5z(it)))($e||it)}}(),it.\u0275cmp=a.Xpm({type:it,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[a._Bn([Te,{provide:et,useExisting:it}]),a.qOj],decls:0,vars:0,template:function(de,$e){},encapsulation:2,changeDetection:0}),it})();class qe{constructor(It,de){this.target=It,this.targetElement=de,this.value=this.target.value}}let Ze=(()=>{class it{constructor(de,$e,bt){this._elementRef=de,this._dateAdapter=$e,this._dateFormats=bt,this.dateChange=new a.vpe,this.dateInput=new a.vpe,this.stateChanges=new D.x,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=T.w0.EMPTY,this._localeSubscription=T.w0.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=Vt=>{const bi=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Vt.value));return!bi||this._matchesFilter(bi)?null:{matDatepickerFilter:!0}},this._minValidator=Vt=>{const bi=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Vt.value)),Li=this._getMinDate();return!Li||!bi||this._dateAdapter.compareDate(Li,bi)<=0?null:{matDatepickerMin:{min:Li,actual:bi}}},this._maxValidator=Vt=>{const bi=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Vt.value)),Li=this._getMaxDate();return!Li||!bi||this._dateAdapter.compareDate(Li,bi)>=0?null:{matDatepickerMax:{max:Li,actual:bi}}},this._lastValueValid=!1,this._localeSubscription=$e.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(de){this._assignValueProgrammatically(de)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(de){const $e=(0,W.Ig)(de),bt=this._elementRef.nativeElement;this._disabled!==$e&&(this._disabled=$e,this.stateChanges.next(void 0)),$e&&this._isInitialized&&bt.blur&&bt.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(de){this._model=de,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe($e=>{if(this._shouldHandleChangeEvent($e)){const bt=this._getValueFromModel($e.selection);this._lastValueValid=this._isValidValue(bt),this._cvaOnChange(bt),this._onTouched(),this._formatValue(bt),this.dateInput.emit(new qe(this,this._elementRef.nativeElement)),this.dateChange.emit(new qe(this,this._elementRef.nativeElement))}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(de){(function we(it,It){const de=Object.keys(it);for(let $e of de){const{previousValue:bt,currentValue:Vt}=it[$e];if(!It.isDateInstance(bt)||!It.isDateInstance(Vt))return!0;if(!It.sameDate(bt,Vt))return!0}return!1})(de,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(de){this._validatorOnChange=de}validate(de){return this._validator?this._validator(de):null}writeValue(de){this._assignValueProgrammatically(de)}registerOnChange(de){this._cvaOnChange=de}registerOnTouched(de){this._onTouched=de}setDisabledState(de){this.disabled=de}_onKeydown(de){de.altKey&&de.keyCode===E.JH&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),de.preventDefault())}_onInput(de){const $e=this._lastValueValid;let bt=this._dateAdapter.parse(de,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(bt),bt=this._dateAdapter.getValidDateOrNull(bt);const Vt=!this._dateAdapter.sameDate(bt,this.value);!bt||Vt?this._cvaOnChange(bt):(de&&!this.value&&this._cvaOnChange(bt),$e!==this._lastValueValid&&this._validatorOnChange()),Vt&&(this._assignValue(bt),this.dateInput.emit(new qe(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new qe(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(de){this._elementRef.nativeElement.value=null!=de?this._dateAdapter.format(de,this._dateFormats.display.dateInput):""}_assignValue(de){this._model?(this._assignValueToModel(de),this._pendingValue=null):this._pendingValue=de}_isValidValue(de){return!de||this._dateAdapter.isValid(de)}_parentDisabled(){return!1}_assignValueProgrammatically(de){de=this._dateAdapter.deserialize(de),this._lastValueValid=this._isValidValue(de),de=this._dateAdapter.getValidDateOrNull(de),this._assignValue(de),this._formatValue(de)}_matchesFilter(de){const $e=this._getDateFilter();return!$e||$e(de)}}return it.\u0275fac=function(de){return new(de||it)(a.Y36(a.SBq),a.Y36(P._A,8),a.Y36(P.sG,8))},it.\u0275dir=a.lG2({type:it,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[a.TTD]}),it})();const Fe={provide:le.JU,useExisting:(0,a.Gpc)(()=>at),multi:!0},rt={provide:le.Cf,useExisting:(0,a.Gpc)(()=>at),multi:!0};let at=(()=>{class it extends Ze{constructor(de,$e,bt,Vt){super(de,$e,bt),this._formField=Vt,this._closedSubscription=T.w0.EMPTY,this._validator=le.kI.compose(super._getValidators())}set matDatepicker(de){de&&(this._datepicker=de,this._closedSubscription=de.closedStream.subscribe(()=>this._onTouched()),this._registerModel(de.registerInput(this)))}get min(){return this._min}set min(de){const $e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(de));this._dateAdapter.sameDate($e,this._min)||(this._min=$e,this._validatorOnChange())}get max(){return this._max}set max(de){const $e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(de));this._dateAdapter.sameDate($e,this._max)||(this._max=$e,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(de){const $e=this._matchesFilter(this.value);this._dateFilter=de,this._matchesFilter(this.value)!==$e&&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(de){return de}_assignValueToModel(de){this._model&&this._model.updateSelection(de,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(de){return de.source!==this}}return it.\u0275fac=function(de){return new(de||it)(a.Y36(a.SBq),a.Y36(P._A,8),a.Y36(P.sG,8),a.Y36(q.G_,8))},it.\u0275dir=a.lG2({type:it,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(de,$e){1&de&&a.NdJ("input",function(Vt){return $e._onInput(Vt.target.value)})("change",function(){return $e._onChange()})("blur",function(){return $e._onBlur()})("keydown",function(Vt){return $e._onKeydown(Vt)}),2&de&&(a.Ikx("disabled",$e.disabled),a.uIk("aria-haspopup",$e._datepicker?"dialog":null)("aria-owns",(null==$e._datepicker?null:$e._datepicker.opened)&&$e._datepicker.id||null)("min",$e.min?$e._dateAdapter.toIso8601($e.min):null)("max",$e.max?$e._dateAdapter.toIso8601($e.max):null)("data-mat-calendar",$e._datepicker?$e._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[a._Bn([Fe,rt,{provide:ie.Jk,useExisting:it}]),a.qOj]}),it})(),yt=(()=>{class it{}return it.\u0275fac=function(de){return new(de||it)},it.\u0275dir=a.lG2({type:it,selectors:[["","matDatepickerToggleIcon",""]]}),it})(),mi=(()=>{class it{constructor(de,$e,bt){this._intl=de,this._changeDetectorRef=$e,this._stateChanges=T.w0.EMPTY;const Vt=Number(bt);this.tabIndex=Vt||0===Vt?Vt:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(de){this._disabled=(0,W.Ig)(de)}ngOnChanges(de){de.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(de){this.datepicker&&!this.disabled&&(this.datepicker.open(),de.stopPropagation())}_watchStateChanges(){const de=this.datepicker?this.datepicker.stateChanges:(0,A.of)(),$e=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,A.of)(),bt=this.datepicker?(0,M.T)(this.datepicker.openedStream,this.datepicker.closedStream):(0,A.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,M.T)(this._intl.changes,de,$e,bt).subscribe(()=>this._changeDetectorRef.markForCheck())}}return it.\u0275fac=function(de){return new(de||it)(a.Y36(Qe),a.Y36(a.sBO),a.$8M("tabindex"))},it.\u0275cmp=a.Xpm({type:it,selectors:[["mat-datepicker-toggle"]],contentQueries:function(de,$e,bt){if(1&de&&a.Suo(bt,yt,5),2&de){let Vt;a.iGM(Vt=a.CRH())&&($e._customIcon=Vt.first)}},viewQuery:function(de,$e){if(1&de&&a.Gf(n,5),2&de){let bt;a.iGM(bt=a.CRH())&&($e._button=bt.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(de,$e){1&de&&a.NdJ("click",function(Vt){return $e._open(Vt)}),2&de&&(a.uIk("tabindex",null)("data-mat-calendar",$e.datepicker?$e.datepicker.id:null),a.ekj("mat-datepicker-toggle-active",$e.datepicker&&$e.datepicker.opened)("mat-accent",$e.datepicker&&"accent"===$e.datepicker.color)("mat-warn",$e.datepicker&&"warn"===$e.datepicker.color))},inputs:{datepicker:["for","datepicker"],tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[a.TTD],ngContentSelectors:R,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(de,$e){1&de&&(a.F$t(V),a.TgZ(0,"button",0,1),a.YNc(2,g,2,0,"svg",2),a.Hsn(3),a.qZA()),2&de&&(a.Q6J("disabled",$e.disabled)("disableRipple",$e.disableRipple),a.uIk("aria-haspopup",$e.datepicker?"dialog":null)("aria-label",$e.ariaLabel||$e._intl.openCalendarLabel)("tabindex",$e.disabled?-1:$e.tabIndex),a.xp6(2),a.Q6J("ngIf",!$e._customIcon))},directives:[y.lW,b.O5],styles:[".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}\n"],encapsulation:2,changeDetection:0}),it})(),pt=(()=>{class it{}return it.\u0275fac=function(de){return new(de||it)},it.\u0275mod=a.oAB({type:it}),it.\u0275inj=a.cJS({providers:[Qe,ut],imports:[[b.ez,y.ot,i.U8,e.rt,u.eL,P.BQ],d.ZD]}),it})()},8966:(He,j,p)=>{"use strict";p.d(j,{Bq:()=>t,Is:()=>fe,WI:()=>x,ZT:()=>g,so:()=>J,uw:()=>I});var e=p(9776),i=p(7429),u=p(5e3),b=p(508),a=p(226),y=p(7579),d=p(9770),P=p(9646),D=p(9300),T=p(5698),M=p(8675),A=p(925),E=p(9808),k=p(1777),w=p(5664),z=p(1159),U=p(6360);function W(ye,ke){}class ne{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}}const Q={dialogContainer:(0,k.X$)("dialogContainer",[(0,k.SB)("void, exit",(0,k.oB)({opacity:0,transform:"scale(0.7)"})),(0,k.SB)("enter",(0,k.oB)({transform:"none"})),(0,k.eR)("* => enter",(0,k.ru)([(0,k.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,k.oB)({transform:"none",opacity:1})),(0,k.IO)("@*",(0,k.pV)(),{optional:!0})])),(0,k.eR)("* => void, * => exit",(0,k.ru)([(0,k.jt)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",(0,k.oB)({opacity:0})),(0,k.IO)("@*",(0,k.pV)(),{optional:!0})]))])};let q=(()=>{class ye extends i.en{constructor(Ee,te,ze,be,Z,Y,ot,Ie){super(),this._elementRef=Ee,this._focusTrapFactory=te,this._changeDetectorRef=ze,this._config=Z,this._interactivityChecker=Y,this._ngZone=ot,this._focusMonitor=Ie,this._animationStateChanged=new u.vpe,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=Ae=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(Ae)),this._ariaLabelledBy=Z.ariaLabelledBy||null,this._document=be}_initializeWithAttachedContent(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,A.ht)())}attachComponentPortal(Ee){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(Ee)}attachTemplatePortal(Ee){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(Ee)}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(Ee,te){this._interactivityChecker.isFocusable(Ee)||(Ee.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const ze=()=>{Ee.removeEventListener("blur",ze),Ee.removeEventListener("mousedown",ze),Ee.removeAttribute("tabindex")};Ee.addEventListener("blur",ze),Ee.addEventListener("mousedown",ze)})),Ee.focus(te)}_focusByCssSelector(Ee,te){let ze=this._elementRef.nativeElement.querySelector(Ee);ze&&this._forceFocus(ze,te)}_trapFocus(){const Ee=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||Ee.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(te=>{te||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 Ee=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&Ee&&"function"==typeof Ee.focus){const te=(0,A.ht)(),ze=this._elementRef.nativeElement;(!te||te===this._document.body||te===ze||ze.contains(te))&&(this._focusMonitor?(this._focusMonitor.focusVia(Ee,this._closeInteractionType),this._closeInteractionType=null):Ee.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const Ee=this._elementRef.nativeElement,te=(0,A.ht)();return Ee===te||Ee.contains(te)}}return ye.\u0275fac=function(Ee){return new(Ee||ye)(u.Y36(u.SBq),u.Y36(w.qV),u.Y36(u.sBO),u.Y36(E.K0,8),u.Y36(ne),u.Y36(w.ic),u.Y36(u.R0b),u.Y36(w.tE))},ye.\u0275dir=u.lG2({type:ye,viewQuery:function(Ee,te){if(1&Ee&&u.Gf(i.Pl,7),2&Ee){let ze;u.iGM(ze=u.CRH())&&(te._portalOutlet=ze.first)}},features:[u.qOj]}),ye})(),ie=(()=>{class ye extends q{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:Ee,totalTime:te}){"enter"===Ee?(this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:te})):"exit"===Ee&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:te}))}_onAnimationStart({toState:Ee,totalTime:te}){"enter"===Ee?this._animationStateChanged.next({state:"opening",totalTime:te}):("exit"===Ee||"void"===Ee)&&this._animationStateChanged.next({state:"closing",totalTime:te})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_initializeWithAttachedContent(){super._initializeWithAttachedContent(),this._config.delayFocusTrap||this._trapFocus()}}return ye.\u0275fac=function(){let ke;return function(te){return(ke||(ke=u.n5z(ye)))(te||ye)}}(),ye.\u0275cmp=u.Xpm({type:ye,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(Ee,te){1&Ee&&u.WFA("@dialogContainer.start",function(be){return te._onAnimationStart(be)})("@dialogContainer.done",function(be){return te._onAnimationDone(be)}),2&Ee&&(u.Ikx("id",te._id),u.uIk("role",te._config.role)("aria-labelledby",te._config.ariaLabel?null:te._ariaLabelledBy)("aria-label",te._config.ariaLabel)("aria-describedby",te._config.ariaDescribedBy||null),u.d8E("@dialogContainer",te._state))},features:[u.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(Ee,te){1&Ee&&u.YNc(0,W,0,0,"ng-template",0)},directives:[i.Pl],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[Q.dialogContainer]}}),ye})(),se=0;class J{constructor(ke,Ee,te="mat-dialog-"+se++){this._overlayRef=ke,this._containerInstance=Ee,this.id=te,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new y.x,this._afterClosed=new y.x,this._beforeClosed=new y.x,this._state=0,Ee._id=te,Ee._animationStateChanged.pipe((0,D.h)(ze=>"opened"===ze.state),(0,T.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),Ee._animationStateChanged.pipe((0,D.h)(ze=>"closed"===ze.state),(0,T.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),ke.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),ke.keydownEvents().pipe((0,D.h)(ze=>ze.keyCode===z.hY&&!this.disableClose&&!(0,z.Vb)(ze))).subscribe(ze=>{ze.preventDefault(),me(this,"keyboard")}),ke.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():me(this,"mouse")})}close(ke){this._result=ke,this._containerInstance._animationStateChanged.pipe((0,D.h)(Ee=>"closing"===Ee.state),(0,T.q)(1)).subscribe(Ee=>{this._beforeClosed.next(ke),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),Ee.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(ke){let Ee=this._getPositionStrategy();return ke&&(ke.left||ke.right)?ke.left?Ee.left(ke.left):Ee.right(ke.right):Ee.centerHorizontally(),ke&&(ke.top||ke.bottom)?ke.top?Ee.top(ke.top):Ee.bottom(ke.bottom):Ee.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(ke="",Ee=""){return this._overlayRef.updateSize({width:ke,height:Ee}),this._overlayRef.updatePosition(),this}addPanelClass(ke){return this._overlayRef.addPanelClass(ke),this}removePanelClass(ke){return this._overlayRef.removePanelClass(ke),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function me(ye,ke,Ee){return void 0!==ye._containerInstance&&(ye._containerInstance._closeInteractionType=ke),ye.close(Ee)}const x=new u.OlP("MatDialogData"),t=new u.OlP("mat-dialog-default-options"),r=new u.OlP("mat-dialog-scroll-strategy"),C={provide:r,deps:[e.aV],useFactory:function c(ye){return()=>ye.scrollStrategies.block()}};let S=(()=>{class ye{constructor(Ee,te,ze,be,Z,Y,ot,Ie,Ae,ce){this._overlay=Ee,this._injector=te,this._defaultOptions=ze,this._parentDialog=be,this._overlayContainer=Z,this._dialogRefConstructor=ot,this._dialogContainerType=Ie,this._dialogDataToken=Ae,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new y.x,this._afterOpenedAtThisLevel=new y.x,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,d.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,M.O)(void 0))),this._scrollStrategy=Y}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const Ee=this._parentDialog;return Ee?Ee._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(Ee,te){te=function _(ye,ke){return Object.assign(Object.assign({},ke),ye)}(te,this._defaultOptions||new ne),te.id&&this.getDialogById(te.id);const ze=this._createOverlay(te),be=this._attachDialogContainer(ze,te),Z=this._attachDialogContent(Ee,be,ze,te);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(Z),Z.afterClosed().subscribe(()=>this._removeOpenDialog(Z)),this.afterOpened.next(Z),be._initializeWithAttachedContent(),Z}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(Ee){return this.openDialogs.find(te=>te.id===Ee)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(Ee){const te=this._getOverlayConfig(Ee);return this._overlay.create(te)}_getOverlayConfig(Ee){const te=new e.X_({positionStrategy:this._overlay.position().global(),scrollStrategy:Ee.scrollStrategy||this._scrollStrategy(),panelClass:Ee.panelClass,hasBackdrop:Ee.hasBackdrop,direction:Ee.direction,minWidth:Ee.minWidth,minHeight:Ee.minHeight,maxWidth:Ee.maxWidth,maxHeight:Ee.maxHeight,disposeOnNavigation:Ee.closeOnNavigation});return Ee.backdropClass&&(te.backdropClass=Ee.backdropClass),te}_attachDialogContainer(Ee,te){const be=u.zs3.create({parent:te&&te.viewContainerRef&&te.viewContainerRef.injector||this._injector,providers:[{provide:ne,useValue:te}]}),Z=new i.C5(this._dialogContainerType,te.viewContainerRef,be,te.componentFactoryResolver);return Ee.attach(Z).instance}_attachDialogContent(Ee,te,ze,be){const Z=new this._dialogRefConstructor(ze,te,be.id);if(Ee instanceof u.Rgc)te.attachTemplatePortal(new i.UE(Ee,null,{$implicit:be.data,dialogRef:Z}));else{const Y=this._createInjector(be,Z,te),ot=te.attachComponentPortal(new i.C5(Ee,be.viewContainerRef,Y,be.componentFactoryResolver));Z.componentInstance=ot.instance}return Z.updateSize(be.width,be.height).updatePosition(be.position),Z}_createInjector(Ee,te,ze){const be=Ee&&Ee.viewContainerRef&&Ee.viewContainerRef.injector,Z=[{provide:this._dialogContainerType,useValue:ze},{provide:this._dialogDataToken,useValue:Ee.data},{provide:this._dialogRefConstructor,useValue:te}];return Ee.direction&&(!be||!be.get(a.Is,null,u.XFs.Optional))&&Z.push({provide:a.Is,useValue:{value:Ee.direction,change:(0,P.of)()}}),u.zs3.create({parent:be||this._injector,providers:Z})}_removeOpenDialog(Ee){const te=this.openDialogs.indexOf(Ee);te>-1&&(this.openDialogs.splice(te,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((ze,be)=>{ze?be.setAttribute("aria-hidden",ze):be.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const Ee=this._overlayContainer.getContainerElement();if(Ee.parentElement){const te=Ee.parentElement.children;for(let ze=te.length-1;ze>-1;ze--){let be=te[ze];be!==Ee&&"SCRIPT"!==be.nodeName&&"STYLE"!==be.nodeName&&!be.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(be,be.getAttribute("aria-hidden")),be.setAttribute("aria-hidden","true"))}}}_closeDialogs(Ee){let te=Ee.length;for(;te--;)Ee[te].close()}}return ye.\u0275fac=function(Ee){u.$Z()},ye.\u0275dir=u.lG2({type:ye}),ye})(),I=(()=>{class ye extends S{constructor(Ee,te,ze,be,Z,Y,ot,Ie){super(Ee,te,be,Y,ot,Z,J,ie,x,Ie)}}return ye.\u0275fac=function(Ee){return new(Ee||ye)(u.LFG(e.aV),u.LFG(u.zs3),u.LFG(E.Ye,8),u.LFG(t,8),u.LFG(r),u.LFG(ye,12),u.LFG(e.Xj),u.LFG(U.Qb,8))},ye.\u0275prov=u.Yz7({token:ye,factory:ye.\u0275fac}),ye})(),g=(()=>{class ye{constructor(Ee,te,ze){this.dialogRef=Ee,this._elementRef=te,this._dialog=ze,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=function $(ye,ke){let Ee=ye.nativeElement.parentElement;for(;Ee&&!Ee.classList.contains("mat-dialog-container");)Ee=Ee.parentElement;return Ee?ke.find(te=>te.id===Ee.id):null}(this._elementRef,this._dialog.openDialogs))}ngOnChanges(Ee){const te=Ee._matDialogClose||Ee._matDialogCloseResult;te&&(this.dialogResult=te.currentValue)}_onButtonClick(Ee){me(this.dialogRef,0===Ee.screenX&&0===Ee.screenY?"keyboard":"mouse",this.dialogResult)}}return ye.\u0275fac=function(Ee){return new(Ee||ye)(u.Y36(J,8),u.Y36(u.SBq),u.Y36(I))},ye.\u0275dir=u.lG2({type:ye,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(Ee,te){1&Ee&&u.NdJ("click",function(be){return te._onButtonClick(be)}),2&Ee&&u.uIk("aria-label",te.ariaLabel||null)("type",te.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[u.TTD]}),ye})(),fe=(()=>{class ye{}return ye.\u0275fac=function(Ee){return new(Ee||ye)},ye.\u0275mod=u.oAB({type:ye}),ye.\u0275inj=u.cJS({providers:[I,C],imports:[[e.U8,i.eL,b.BQ],b.BQ]}),ye})()},4834:(He,j,p)=>{"use strict";p.d(j,{d:()=>b,t:()=>a});var e=p(5e3),i=p(3191),u=p(508);let b=(()=>{class y{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(P){this._vertical=(0,i.Ig)(P)}get inset(){return this._inset}set inset(P){this._inset=(0,i.Ig)(P)}}return y.\u0275fac=function(P){return new(P||y)},y.\u0275cmp=e.Xpm({type:y,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(P,D){2&P&&(e.uIk("aria-orientation",D.vertical?"vertical":"horizontal"),e.ekj("mat-divider-vertical",D.vertical)("mat-divider-horizontal",!D.vertical)("mat-divider-inset",D.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(P,D){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}\n"],encapsulation:2,changeDetection:0}),y})(),a=(()=>{class y{}return y.\u0275fac=function(P){return new(P||y)},y.\u0275mod=e.oAB({type:y}),y.\u0275inj=e.cJS({imports:[[u.BQ],u.BQ]}),y})()},1125:(He,j,p)=>{"use strict";p.d(j,{pp:()=>Ee,To:()=>te,ib:()=>V,u4:()=>ye,yz:()=>fe,yK:()=>ke});var e=p(5e3),i=p(3191),u=p(7579),b=p(727),a=p(449);let y=0;const d=new e.OlP("CdkAccordion");let P=(()=>{class ze{constructor(){this._stateChanges=new u.x,this._openCloseAllActions=new u.x,this.id="cdk-accordion-"+y++,this._multi=!1}get multi(){return this._multi}set multi(Z){this._multi=(0,i.Ig)(Z)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(Z){this._stateChanges.next(Z)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return ze.\u0275fac=function(Z){return new(Z||ze)},ze.\u0275dir=e.lG2({type:ze,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[e._Bn([{provide:d,useExisting:ze}]),e.TTD]}),ze})(),D=0,T=(()=>{class ze{constructor(Z,Y,ot){this.accordion=Z,this._changeDetectorRef=Y,this._expansionDispatcher=ot,this._openCloseAllSubscription=b.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-"+D++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=ot.listen((Ie,Ae)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===Ae&&this.id!==Ie&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(Z){Z=(0,i.Ig)(Z),this._expanded!==Z&&(this._expanded=Z,this.expandedChange.emit(Z),Z?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(Z){this._disabled=(0,i.Ig)(Z)}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(Z=>{this.disabled||(this.expanded=Z)})}}return ze.\u0275fac=function(Z){return new(Z||ze)(e.Y36(d,12),e.Y36(e.sBO),e.Y36(a.A8))},ze.\u0275dir=e.lG2({type:ze,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:d,useValue:void 0}])]}),ze})(),M=(()=>{class ze{}return ze.\u0275fac=function(Z){return new(Z||ze)},ze.\u0275mod=e.oAB({type:ze}),ze.\u0275inj=e.cJS({}),ze})();var A=p(7429),E=p(9808),k=p(508),w=p(5664),z=p(1884),U=p(8675),W=p(9300),ne=p(5698),Q=p(1159),le=p(6360),q=p(515),ie=p(6451),se=p(1777);const J=["body"];function me(ze,be){}const x=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],t=["mat-expansion-panel-header","*","mat-action-row"];function r(ze,be){if(1&ze&&e._UZ(0,"span",2),2&ze){const Z=e.oxw();e.Q6J("@indicatorRotate",Z._getExpandedState())}}const h=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],c=["mat-panel-title","mat-panel-description","*"],C=new e.OlP("MAT_ACCORDION"),S="225ms cubic-bezier(0.4,0.0,0.2,1)",I={indicatorRotate:(0,se.X$)("indicatorRotate",[(0,se.SB)("collapsed, void",(0,se.oB)({transform:"rotate(0deg)"})),(0,se.SB)("expanded",(0,se.oB)({transform:"rotate(180deg)"})),(0,se.eR)("expanded <=> collapsed, void => collapsed",(0,se.jt)(S))]),bodyExpansion:(0,se.X$)("bodyExpansion",[(0,se.SB)("collapsed, void",(0,se.oB)({height:"0px",visibility:"hidden"})),(0,se.SB)("expanded",(0,se.oB)({height:"*",visibility:"visible"})),(0,se.eR)("expanded <=> collapsed, void => collapsed",(0,se.jt)(S))])};let _=(()=>{class ze{constructor(Z){this._template=Z}}return ze.\u0275fac=function(Z){return new(Z||ze)(e.Y36(e.Rgc))},ze.\u0275dir=e.lG2({type:ze,selectors:[["ng-template","matExpansionPanelContent",""]]}),ze})(),n=0;const g=new e.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let V=(()=>{class ze extends T{constructor(Z,Y,ot,Ie,Ae,ce,Te){super(Z,Y,ot),this._viewContainerRef=Ie,this._animationMode=ce,this._hideToggle=!1,this.afterExpand=new e.vpe,this.afterCollapse=new e.vpe,this._inputChanges=new u.x,this._headerId="mat-expansion-panel-header-"+n++,this._bodyAnimationDone=new u.x,this.accordion=Z,this._document=Ae,this._bodyAnimationDone.pipe((0,z.x)((xe,G)=>xe.fromState===G.fromState&&xe.toState===G.toState)).subscribe(xe=>{"void"!==xe.fromState&&("expanded"===xe.toState?this.afterExpand.emit():"collapsed"===xe.toState&&this.afterCollapse.emit())}),Te&&(this.hideToggle=Te.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(Z){this._hideToggle=(0,i.Ig)(Z)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(Z){this._togglePosition=Z}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this.opened.pipe((0,U.O)(null),(0,W.h)(()=>this.expanded&&!this._portal),(0,ne.q)(1)).subscribe(()=>{this._portal=new A.UE(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(Z){this._inputChanges.next(Z)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const Z=this._document.activeElement,Y=this._body.nativeElement;return Z===Y||Y.contains(Z)}return!1}}return ze.\u0275fac=function(Z){return new(Z||ze)(e.Y36(C,12),e.Y36(e.sBO),e.Y36(a.A8),e.Y36(e.s_b),e.Y36(E.K0),e.Y36(le.Qb,8),e.Y36(g,8))},ze.\u0275cmp=e.Xpm({type:ze,selectors:[["mat-expansion-panel"]],contentQueries:function(Z,Y,ot){if(1&Z&&e.Suo(ot,_,5),2&Z){let Ie;e.iGM(Ie=e.CRH())&&(Y._lazyContent=Ie.first)}},viewQuery:function(Z,Y){if(1&Z&&e.Gf(J,5),2&Z){let ot;e.iGM(ot=e.CRH())&&(Y._body=ot.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(Z,Y){2&Z&&e.ekj("mat-expanded",Y.expanded)("_mat-animation-noopable","NoopAnimations"===Y._animationMode)("mat-expansion-panel-spacing",Y._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:C,useValue:void 0}]),e.qOj,e.TTD],ngContentSelectors:t,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(Z,Y){1&Z&&(e.F$t(x),e.Hsn(0),e.TgZ(1,"div",0,1),e.NdJ("@bodyExpansion.done",function(Ie){return Y._bodyAnimationDone.next(Ie)}),e.TgZ(3,"div",2),e.Hsn(4,1),e.YNc(5,me,0,0,"ng-template",3),e.qZA(),e.Hsn(6,2),e.qZA()),2&Z&&(e.xp6(1),e.Q6J("@bodyExpansion",Y._getExpandedState())("id",Y.id),e.uIk("aria-labelledby",Y._headerId),e.xp6(4),e.Q6J("cdkPortalOutlet",Y._portal))},directives:[A.Pl],styles:['.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}\n'],encapsulation:2,data:{animation:[I.bodyExpansion]},changeDetection:0}),ze})();class H{}const $=(0,k.sb)(H);let fe=(()=>{class ze extends ${constructor(Z,Y,ot,Ie,Ae,ce,Te){super(),this.panel=Z,this._element=Y,this._focusMonitor=ot,this._changeDetectorRef=Ie,this._animationMode=ce,this._parentChangeSubscription=b.w0.EMPTY;const xe=Z.accordion?Z.accordion._stateChanges.pipe((0,W.h)(G=>!(!G.hideToggle&&!G.togglePosition))):q.E;this.tabIndex=parseInt(Te||"")||0,this._parentChangeSubscription=(0,ie.T)(Z.opened,Z.closed,xe,Z._inputChanges.pipe((0,W.h)(G=>!!(G.hideToggle||G.disabled||G.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),Z.closed.pipe((0,W.h)(()=>Z._containsFocus())).subscribe(()=>ot.focusVia(Y,"program")),Ae&&(this.expandedHeight=Ae.expandedHeight,this.collapsedHeight=Ae.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const Z=this._isExpanded();return Z&&this.expandedHeight?this.expandedHeight:!Z&&this.collapsedHeight?this.collapsedHeight:null}_keydown(Z){switch(Z.keyCode){case Q.L_:case Q.K5:(0,Q.Vb)(Z)||(Z.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(Z))}}focus(Z,Y){Z?this._focusMonitor.focusVia(this._element,Z,Y):this._element.nativeElement.focus(Y)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(Z=>{Z&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return ze.\u0275fac=function(Z){return new(Z||ze)(e.Y36(V,1),e.Y36(e.SBq),e.Y36(w.tE),e.Y36(e.sBO),e.Y36(g,8),e.Y36(le.Qb,8),e.$8M("tabindex"))},ze.\u0275cmp=e.Xpm({type:ze,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(Z,Y){1&Z&&e.NdJ("click",function(){return Y._toggle()})("keydown",function(Ie){return Y._keydown(Ie)}),2&Z&&(e.uIk("id",Y.panel._headerId)("tabindex",Y.tabIndex)("aria-controls",Y._getPanelId())("aria-expanded",Y._isExpanded())("aria-disabled",Y.panel.disabled),e.Udp("height",Y._getHeaderHeight()),e.ekj("mat-expanded",Y._isExpanded())("mat-expansion-toggle-indicator-after","after"===Y._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===Y._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===Y._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[e.qOj],ngContentSelectors:c,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(Z,Y){1&Z&&(e.F$t(h),e.TgZ(0,"span",0),e.Hsn(1),e.Hsn(2,1),e.Hsn(3,2),e.qZA(),e.YNc(4,r,1,1,"span",1)),2&Z&&(e.xp6(4),e.Q6J("ngIf",Y._showToggle()))},directives:[E.O5],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}\n'],encapsulation:2,data:{animation:[I.indicatorRotate]},changeDetection:0}),ze})(),ye=(()=>{class ze{}return ze.\u0275fac=function(Z){return new(Z||ze)},ze.\u0275dir=e.lG2({type:ze,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),ze})(),ke=(()=>{class ze{}return ze.\u0275fac=function(Z){return new(Z||ze)},ze.\u0275dir=e.lG2({type:ze,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),ze})(),Ee=(()=>{class ze extends P{constructor(){super(...arguments),this._ownHeaders=new e.n_E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(Z){this._hideToggle=(0,i.Ig)(Z)}ngAfterContentInit(){this._headers.changes.pipe((0,U.O)(this._headers)).subscribe(Z=>{this._ownHeaders.reset(Z.filter(Y=>Y.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new w.Em(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(Z){this._keyManager.onKeydown(Z)}_handleHeaderFocus(Z){this._keyManager.updateActiveItem(Z)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return ze.\u0275fac=function(){let be;return function(Y){return(be||(be=e.n5z(ze)))(Y||ze)}}(),ze.\u0275dir=e.lG2({type:ze,selectors:[["mat-accordion"]],contentQueries:function(Z,Y,ot){if(1&Z&&e.Suo(ot,fe,5),2&Z){let Ie;e.iGM(Ie=e.CRH())&&(Y._headers=Ie)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(Z,Y){2&Z&&e.ekj("mat-accordion-multi",Y.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[e._Bn([{provide:C,useExisting:ze}]),e.qOj]}),ze})(),te=(()=>{class ze{}return ze.\u0275fac=function(Z){return new(Z||ze)},ze.\u0275mod=e.oAB({type:ze}),ze.\u0275inj=e.cJS({imports:[[E.ez,k.BQ,M,A.eL]]}),ze})()},7322:(He,j,p)=>{"use strict";p.d(j,{Eo:()=>n,G_:()=>ce,KE:()=>Te,R9:()=>be,TO:()=>I,bx:()=>fe,lN:()=>xe});var e=p(7144),i=p(9808),u=p(5e3),b=p(508),a=p(3191),y=p(7579),d=p(6451),P=p(4968),D=p(8675),T=p(2722),M=p(5698),A=p(1777),E=p(6360),k=p(226),w=p(925);const z=["connectionContainer"],U=["inputContainer"],W=["label"];function ne(G,ee){1&G&&(u.ynx(0),u.TgZ(1,"div",14),u._UZ(2,"div",15)(3,"div",16)(4,"div",17),u.qZA(),u.TgZ(5,"div",18),u._UZ(6,"div",15)(7,"div",16)(8,"div",17),u.qZA(),u.BQk())}function Q(G,ee){if(1&G){const ue=u.EpF();u.TgZ(0,"div",19),u.NdJ("cdkObserveContent",function(){return u.CHM(ue),u.oxw().updateOutlineGap()}),u.Hsn(1,1),u.qZA()}if(2&G){const ue=u.oxw();u.Q6J("cdkObserveContentDisabled","outline"!=ue.appearance)}}function le(G,ee){if(1&G&&(u.ynx(0),u.Hsn(1,2),u.TgZ(2,"span"),u._uU(3),u.qZA(),u.BQk()),2&G){const ue=u.oxw(2);u.xp6(3),u.Oqu(ue._control.placeholder)}}function q(G,ee){1&G&&u.Hsn(0,3,["*ngSwitchCase","true"])}function ie(G,ee){1&G&&(u.TgZ(0,"span",23),u._uU(1," *"),u.qZA())}function se(G,ee){if(1&G){const ue=u.EpF();u.TgZ(0,"label",20,21),u.NdJ("cdkObserveContent",function(){return u.CHM(ue),u.oxw().updateOutlineGap()}),u.YNc(2,le,4,1,"ng-container",12),u.YNc(3,q,1,0,"ng-content",12),u.YNc(4,ie,2,0,"span",22),u.qZA()}if(2&G){const ue=u.oxw();u.ekj("mat-empty",ue._control.empty&&!ue._shouldAlwaysFloat())("mat-form-field-empty",ue._control.empty&&!ue._shouldAlwaysFloat())("mat-accent","accent"==ue.color)("mat-warn","warn"==ue.color),u.Q6J("cdkObserveContentDisabled","outline"!=ue.appearance)("id",ue._labelId)("ngSwitch",ue._hasLabel()),u.uIk("for",ue._control.id)("aria-owns",ue._control.id),u.xp6(2),u.Q6J("ngSwitchCase",!1),u.xp6(1),u.Q6J("ngSwitchCase",!0),u.xp6(1),u.Q6J("ngIf",!ue.hideRequiredMarker&&ue._control.required&&!ue._control.disabled)}}function J(G,ee){1&G&&(u.TgZ(0,"div",24),u.Hsn(1,4),u.qZA())}function me(G,ee){if(1&G&&(u.TgZ(0,"div",25),u._UZ(1,"span",26),u.qZA()),2&G){const ue=u.oxw();u.xp6(1),u.ekj("mat-accent","accent"==ue.color)("mat-warn","warn"==ue.color)}}function x(G,ee){if(1&G&&(u.TgZ(0,"div"),u.Hsn(1,5),u.qZA()),2&G){const ue=u.oxw();u.Q6J("@transitionMessages",ue._subscriptAnimationState)}}function t(G,ee){if(1&G&&(u.TgZ(0,"div",30),u._uU(1),u.qZA()),2&G){const ue=u.oxw(2);u.Q6J("id",ue._hintLabelId),u.xp6(1),u.Oqu(ue.hintLabel)}}function r(G,ee){if(1&G&&(u.TgZ(0,"div",27),u.YNc(1,t,2,2,"div",28),u.Hsn(2,6),u._UZ(3,"div",29),u.Hsn(4,7),u.qZA()),2&G){const ue=u.oxw();u.Q6J("@transitionMessages",ue._subscriptAnimationState),u.xp6(1),u.Q6J("ngIf",ue.hintLabel)}}const h=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],c=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let C=0;const S=new u.OlP("MatError");let I=(()=>{class G{constructor(ue,ve){this.id="mat-error-"+C++,ue||ve.nativeElement.setAttribute("aria-live","polite")}}return G.\u0275fac=function(ue){return new(ue||G)(u.$8M("aria-live"),u.Y36(u.SBq))},G.\u0275dir=u.lG2({type:G,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(ue,ve){2&ue&&u.uIk("id",ve.id)},inputs:{id:"id"},features:[u._Bn([{provide:S,useExisting:G}])]}),G})();const _={transitionMessages:(0,A.X$)("transitionMessages",[(0,A.SB)("enter",(0,A.oB)({opacity:1,transform:"translateY(0%)"})),(0,A.eR)("void => enter",[(0,A.oB)({opacity:0,transform:"translateY(-5px)"}),(0,A.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let n=(()=>{class G{}return G.\u0275fac=function(ue){return new(ue||G)},G.\u0275dir=u.lG2({type:G}),G})(),H=0;const $=new u.OlP("MatHint");let fe=(()=>{class G{constructor(){this.align="start",this.id="mat-hint-"+H++}}return G.\u0275fac=function(ue){return new(ue||G)},G.\u0275dir=u.lG2({type:G,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(ue,ve){2&ue&&(u.uIk("id",ve.id)("align",null),u.ekj("mat-form-field-hint-end","end"===ve.align))},inputs:{align:"align",id:"id"},features:[u._Bn([{provide:$,useExisting:G}])]}),G})(),ye=(()=>{class G{}return G.\u0275fac=function(ue){return new(ue||G)},G.\u0275dir=u.lG2({type:G,selectors:[["mat-label"]]}),G})(),ke=(()=>{class G{}return G.\u0275fac=function(ue){return new(ue||G)},G.\u0275dir=u.lG2({type:G,selectors:[["mat-placeholder"]]}),G})();const Ee=new u.OlP("MatPrefix"),ze=new u.OlP("MatSuffix");let be=(()=>{class G{}return G.\u0275fac=function(ue){return new(ue||G)},G.\u0275dir=u.lG2({type:G,selectors:[["","matSuffix",""]],features:[u._Bn([{provide:ze,useExisting:G}])]}),G})(),Z=0;const Ie=(0,b.pj)(class{constructor(G){this._elementRef=G}},"primary"),Ae=new u.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),ce=new u.OlP("MatFormField");let Te=(()=>{class G extends Ie{constructor(ue,ve,Le,lt,ht,Tt,hi){super(ue),this._changeDetectorRef=ve,this._dir=Le,this._defaults=lt,this._platform=ht,this._ngZone=Tt,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new y.x,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+Z++,this._labelId="mat-form-field-label-"+Z++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==hi,this.appearance=lt&&lt.appearance?lt.appearance:"legacy",this._hideRequiredMarker=!(!lt||null==lt.hideRequiredMarker)&&lt.hideRequiredMarker}get appearance(){return this._appearance}set appearance(ue){const ve=this._appearance;this._appearance=ue||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&ve!==ue&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(ue){this._hideRequiredMarker=(0,a.Ig)(ue)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(ue){this._hintLabel=ue,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(ue){ue!==this._floatLabel&&(this._floatLabel=ue||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(ue){this._explicitFormFieldControl=ue}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const ue=this._control;ue.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${ue.controlType}`),ue.stateChanges.pipe((0,D.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),ue.ngControl&&ue.ngControl.valueChanges&&ue.ngControl.valueChanges.pipe((0,T.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,T.R)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,d.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,D.O)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,D.O)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,T.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(ue){const ve=this._control?this._control.ngControl:null;return ve&&ve[ue]}_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,M.q)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let ue=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&ue.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const ve=this._hintChildren?this._hintChildren.find(lt=>"start"===lt.align):null,Le=this._hintChildren?this._hintChildren.find(lt=>"end"===lt.align):null;ve?ue.push(ve.id):this._hintLabel&&ue.push(this._hintLabelId),Le&&ue.push(Le.id)}else this._errorChildren&&ue.push(...this._errorChildren.map(ve=>ve.id));this._control.setDescribedByIds(ue)}}_validateControlChild(){}updateOutlineGap(){const ue=this._label?this._label.nativeElement:null,ve=this._connectionContainerRef.nativeElement,Le=".mat-form-field-outline-start",lt=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!ue||!ue.children.length||!ue.textContent.trim()){const Gt=ve.querySelectorAll(`${Le}, ${lt}`);for(let di=0;di<Gt.length;di++)Gt[di].style.width="0";return}if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let ht=0,Tt=0;const hi=ve.querySelectorAll(Le),jt=ve.querySelectorAll(lt);if(this._label&&this._label.nativeElement.children.length){const Gt=ve.getBoundingClientRect();if(0===Gt.width&&0===Gt.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const di=this._getStartEnd(Gt),vt=ue.children,kt=this._getStartEnd(vt[0].getBoundingClientRect());let gt=0;for(let Qe=0;Qe<vt.length;Qe++)gt+=vt[Qe].offsetWidth;ht=Math.abs(kt-di)-5,Tt=gt>0?.75*gt+10:0}for(let Gt=0;Gt<hi.length;Gt++)hi[Gt].style.width=`${ht}px`;for(let Gt=0;Gt<jt.length;Gt++)jt[Gt].style.width=`${Tt}px`;this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}_getStartEnd(ue){return this._dir&&"rtl"===this._dir.value?ue.right:ue.left}_isAttachedToDOM(){const ue=this._elementRef.nativeElement;if(ue.getRootNode){const ve=ue.getRootNode();return ve&&ve!==ue}return document.documentElement.contains(ue)}}return G.\u0275fac=function(ue){return new(ue||G)(u.Y36(u.SBq),u.Y36(u.sBO),u.Y36(k.Is,8),u.Y36(Ae,8),u.Y36(w.t4),u.Y36(u.R0b),u.Y36(E.Qb,8))},G.\u0275cmp=u.Xpm({type:G,selectors:[["mat-form-field"]],contentQueries:function(ue,ve,Le){if(1&ue&&(u.Suo(Le,n,5),u.Suo(Le,n,7),u.Suo(Le,ye,5),u.Suo(Le,ye,7),u.Suo(Le,ke,5),u.Suo(Le,S,5),u.Suo(Le,$,5),u.Suo(Le,Ee,5),u.Suo(Le,ze,5)),2&ue){let lt;u.iGM(lt=u.CRH())&&(ve._controlNonStatic=lt.first),u.iGM(lt=u.CRH())&&(ve._controlStatic=lt.first),u.iGM(lt=u.CRH())&&(ve._labelChildNonStatic=lt.first),u.iGM(lt=u.CRH())&&(ve._labelChildStatic=lt.first),u.iGM(lt=u.CRH())&&(ve._placeholderChild=lt.first),u.iGM(lt=u.CRH())&&(ve._errorChildren=lt),u.iGM(lt=u.CRH())&&(ve._hintChildren=lt),u.iGM(lt=u.CRH())&&(ve._prefixChildren=lt),u.iGM(lt=u.CRH())&&(ve._suffixChildren=lt)}},viewQuery:function(ue,ve){if(1&ue&&(u.Gf(z,7),u.Gf(U,5),u.Gf(W,5)),2&ue){let Le;u.iGM(Le=u.CRH())&&(ve._connectionContainerRef=Le.first),u.iGM(Le=u.CRH())&&(ve._inputContainerRef=Le.first),u.iGM(Le=u.CRH())&&(ve._label=Le.first)}},hostAttrs:[1,"mat-form-field"],hostVars:40,hostBindings:function(ue,ve){2&ue&&u.ekj("mat-form-field-appearance-standard","standard"==ve.appearance)("mat-form-field-appearance-fill","fill"==ve.appearance)("mat-form-field-appearance-outline","outline"==ve.appearance)("mat-form-field-appearance-legacy","legacy"==ve.appearance)("mat-form-field-invalid",ve._control.errorState)("mat-form-field-can-float",ve._canLabelFloat())("mat-form-field-should-float",ve._shouldLabelFloat())("mat-form-field-has-label",ve._hasFloatingLabel())("mat-form-field-hide-placeholder",ve._hideControlPlaceholder())("mat-form-field-disabled",ve._control.disabled)("mat-form-field-autofilled",ve._control.autofilled)("mat-focused",ve._control.focused)("ng-untouched",ve._shouldForward("untouched"))("ng-touched",ve._shouldForward("touched"))("ng-pristine",ve._shouldForward("pristine"))("ng-dirty",ve._shouldForward("dirty"))("ng-valid",ve._shouldForward("valid"))("ng-invalid",ve._shouldForward("invalid"))("ng-pending",ve._shouldForward("pending"))("_mat-animation-noopable",!ve._animationsEnabled)},inputs:{color:"color",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel",floatLabel:"floatLabel"},exportAs:["matFormField"],features:[u._Bn([{provide:ce,useExisting:G}]),u.qOj],ngContentSelectors:c,decls:15,vars:8,consts:[[1,"mat-form-field-wrapper"],[1,"mat-form-field-flex",3,"click"],["connectionContainer",""],[4,"ngIf"],["class","mat-form-field-prefix",3,"cdkObserveContentDisabled","cdkObserveContent",4,"ngIf"],[1,"mat-form-field-infix"],["inputContainer",""],[1,"mat-form-field-label-wrapper"],["class","mat-form-field-label",3,"cdkObserveContentDisabled","id","mat-empty","mat-form-field-empty","mat-accent","mat-warn","ngSwitch","cdkObserveContent",4,"ngIf"],["class","mat-form-field-suffix",4,"ngIf"],["class","mat-form-field-underline",4,"ngIf"],[1,"mat-form-field-subscript-wrapper",3,"ngSwitch"],[4,"ngSwitchCase"],["class","mat-form-field-hint-wrapper",4,"ngSwitchCase"],[1,"mat-form-field-outline"],[1,"mat-form-field-outline-start"],[1,"mat-form-field-outline-gap"],[1,"mat-form-field-outline-end"],[1,"mat-form-field-outline","mat-form-field-outline-thick"],[1,"mat-form-field-prefix",3,"cdkObserveContentDisabled","cdkObserveContent"],[1,"mat-form-field-label",3,"cdkObserveContentDisabled","id","ngSwitch","cdkObserveContent"],["label",""],["class","mat-placeholder-required mat-form-field-required-marker","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"mat-placeholder-required","mat-form-field-required-marker"],[1,"mat-form-field-suffix"],[1,"mat-form-field-underline"],[1,"mat-form-field-ripple"],[1,"mat-form-field-hint-wrapper"],["class","mat-hint",3,"id",4,"ngIf"],[1,"mat-form-field-hint-spacer"],[1,"mat-hint",3,"id"]],template:function(ue,ve){1&ue&&(u.F$t(h),u.TgZ(0,"div",0)(1,"div",1,2),u.NdJ("click",function(lt){return ve._control.onContainerClick&&ve._control.onContainerClick(lt)}),u.YNc(3,ne,9,0,"ng-container",3),u.YNc(4,Q,2,1,"div",4),u.TgZ(5,"div",5,6),u.Hsn(7),u.TgZ(8,"span",7),u.YNc(9,se,5,16,"label",8),u.qZA()(),u.YNc(10,J,2,0,"div",9),u.qZA(),u.YNc(11,me,2,4,"div",10),u.TgZ(12,"div",11),u.YNc(13,x,2,1,"div",12),u.YNc(14,r,5,2,"div",13),u.qZA()()),2&ue&&(u.xp6(3),u.Q6J("ngIf","outline"==ve.appearance),u.xp6(1),u.Q6J("ngIf",ve._prefixChildren.length),u.xp6(5),u.Q6J("ngIf",ve._hasFloatingLabel()),u.xp6(1),u.Q6J("ngIf",ve._suffixChildren.length),u.xp6(1),u.Q6J("ngIf","outline"!=ve.appearance),u.xp6(1),u.Q6J("ngSwitch",ve._getDisplayedMessages()),u.xp6(1),u.Q6J("ngSwitchCase","error"),u.xp6(1),u.Q6J("ngSwitchCase","hint"))},directives:[i.O5,e.wD,i.RF,i.n9],styles:[".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.cdk-high-contrast-active .mat-form-field-disabled .mat-form-field-label{color:GrayText}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:none;transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field-hint-end{order:1}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}\n",'.mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-flex{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-form-field-flex{outline:dashed 3px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:"";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}\n','.mat-input-element{font:inherit;background:transparent;color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit;box-sizing:content-box}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element:not([type=password])::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date],.mat-input-element[type=datetime],.mat-input-element[type=datetime-local],.mat-input-element[type=month],.mat-input-element[type=week],.mat-input-element[type=time]{line-height:1}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:" ";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{opacity:0}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:transparent;display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}\n',".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px)}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px;border-top-color:GrayText}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}\n",".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:transparent}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick{border:3px dashed}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-form-field-disabled .mat-form-field-outline{color:GrayText}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}\n",".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}\n"],encapsulation:2,data:{animation:[_.transitionMessages]},changeDetection:0}),G})(),xe=(()=>{class G{}return G.\u0275fac=function(ue){return new(ue||G)},G.\u0275mod=u.oAB({type:G}),G.\u0275inj=u.cJS({imports:[[i.ez,b.BQ,e.Q8],b.BQ]}),G})()},3954:(He,j,p)=>{"use strict";p.d(j,{DX:()=>A,Il:()=>J,N6:()=>me});var e=p(5e3),i=p(508),u=p(3191),b=p(226);const a=["*"];class D{constructor(){this.columnIndex=0,this.rowIndex=0}get rowCount(){return this.rowIndex+1}get rowspan(){const r=Math.max(...this.tracker);return r>1?this.rowCount+r-1:this.rowCount}update(r,h){this.columnIndex=0,this.rowIndex=0,this.tracker=new Array(r),this.tracker.fill(0,0,this.tracker.length),this.positions=h.map(c=>this._trackTile(c))}_trackTile(r){const h=this._findMatchingGap(r.colspan);return this._markTilePosition(h,r),this.columnIndex=h+r.colspan,new T(this.rowIndex,h)}_findMatchingGap(r){let h=-1,c=-1;do{this.columnIndex+r>this.tracker.length?(this._nextRow(),h=this.tracker.indexOf(0,this.columnIndex),c=this._findGapEndIndex(h)):(h=this.tracker.indexOf(0,this.columnIndex),-1!=h?(c=this._findGapEndIndex(h),this.columnIndex=h+1):(this._nextRow(),h=this.tracker.indexOf(0,this.columnIndex),c=this._findGapEndIndex(h)))}while(c-h<r||0==c);return Math.max(h,0)}_nextRow(){this.columnIndex=0,this.rowIndex++;for(let r=0;r<this.tracker.length;r++)this.tracker[r]=Math.max(0,this.tracker[r]-1)}_findGapEndIndex(r){for(let h=r+1;h<this.tracker.length;h++)if(0!=this.tracker[h])return h;return this.tracker.length}_markTilePosition(r,h){for(let c=0;c<h.colspan;c++)this.tracker[r+c]=h.rowspan}}class T{constructor(r,h){this.row=r,this.col=h}}const M=new e.OlP("MAT_GRID_LIST");let A=(()=>{class t{constructor(h,c){this._element=h,this._gridList=c,this._rowspan=1,this._colspan=1}get rowspan(){return this._rowspan}set rowspan(h){this._rowspan=Math.round((0,u.su)(h))}get colspan(){return this._colspan}set colspan(h){this._colspan=Math.round((0,u.su)(h))}_setStyle(h,c){this._element.nativeElement.style[h]=c}}return t.\u0275fac=function(h){return new(h||t)(e.Y36(e.SBq),e.Y36(M,8))},t.\u0275cmp=e.Xpm({type:t,selectors:[["mat-grid-tile"]],hostAttrs:[1,"mat-grid-tile"],hostVars:2,hostBindings:function(h,c){2&h&&e.uIk("rowspan",c.rowspan)("colspan",c.colspan)},inputs:{rowspan:"rowspan",colspan:"colspan"},exportAs:["matGridTile"],ngContentSelectors:a,decls:2,vars:0,consts:[[1,"mat-grid-tile-content"]],template:function(h,c){1&h&&(e.F$t(),e.TgZ(0,"div",0),e.Hsn(1),e.qZA())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}.mat-grid-tile-content{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}\n"],encapsulation:2,changeDetection:0}),t})();const U=/^-?\d+((\.\d+)?[A-Za-z%$]?)+$/;class W{constructor(){this._rows=0,this._rowspan=0}init(r,h,c,C){this._gutterSize=ie(r),this._rows=h.rowCount,this._rowspan=h.rowspan,this._cols=c,this._direction=C}getBaseTileSize(r,h){return`(${r}% - (${this._gutterSize} * ${h}))`}getTilePosition(r,h){return 0===h?"0":q(`(${r} + ${this._gutterSize}) * ${h}`)}getTileSize(r,h){return`(${r} * ${h}) + (${h-1} * ${this._gutterSize})`}setStyle(r,h,c){let C=100/this._cols,S=(this._cols-1)/this._cols;this.setColStyles(r,c,C,S),this.setRowStyles(r,h,C,S)}setColStyles(r,h,c,C){let S=this.getBaseTileSize(c,C);r._setStyle("rtl"===this._direction?"right":"left",this.getTilePosition(S,h)),r._setStyle("width",q(this.getTileSize(S,r.colspan)))}getGutterSpan(){return`${this._gutterSize} * (${this._rowspan} - 1)`}getTileSpan(r){return`${this._rowspan} * ${this.getTileSize(r,1)}`}getComputedHeight(){return null}}class ne extends W{constructor(r){super(),this.fixedRowHeight=r}init(r,h,c,C){super.init(r,h,c,C),this.fixedRowHeight=ie(this.fixedRowHeight),U.test(this.fixedRowHeight)}setRowStyles(r,h){r._setStyle("top",this.getTilePosition(this.fixedRowHeight,h)),r._setStyle("height",q(this.getTileSize(this.fixedRowHeight,r.rowspan)))}getComputedHeight(){return["height",q(`${this.getTileSpan(this.fixedRowHeight)} + ${this.getGutterSpan()}`)]}reset(r){r._setListStyle(["height",null]),r._tiles&&r._tiles.forEach(h=>{h._setStyle("top",null),h._setStyle("height",null)})}}class Q extends W{constructor(r){super(),this._parseRatio(r)}setRowStyles(r,h,c,C){this.baseTileHeight=this.getBaseTileSize(c/this.rowHeightRatio,C),r._setStyle("marginTop",this.getTilePosition(this.baseTileHeight,h)),r._setStyle("paddingTop",q(this.getTileSize(this.baseTileHeight,r.rowspan)))}getComputedHeight(){return["paddingBottom",q(`${this.getTileSpan(this.baseTileHeight)} + ${this.getGutterSpan()}`)]}reset(r){r._setListStyle(["paddingBottom",null]),r._tiles.forEach(h=>{h._setStyle("marginTop",null),h._setStyle("paddingTop",null)})}_parseRatio(r){const h=r.split(":");this.rowHeightRatio=parseFloat(h[0])/parseFloat(h[1])}}class le extends W{setRowStyles(r,h){let S=this.getBaseTileSize(100/this._rowspan,(this._rows-1)/this._rows);r._setStyle("top",this.getTilePosition(S,h)),r._setStyle("height",q(this.getTileSize(S,r.rowspan)))}reset(r){r._tiles&&r._tiles.forEach(h=>{h._setStyle("top",null),h._setStyle("height",null)})}}function q(t){return`calc(${t})`}function ie(t){return t.match(/([A-Za-z%]+)$/)?t:`${t}px`}let J=(()=>{class t{constructor(h,c){this._element=h,this._dir=c,this._gutter="1px"}get cols(){return this._cols}set cols(h){this._cols=Math.max(1,Math.round((0,u.su)(h)))}get gutterSize(){return this._gutter}set gutterSize(h){this._gutter=`${null==h?"":h}`}get rowHeight(){return this._rowHeight}set rowHeight(h){const c=`${null==h?"":h}`;c!==this._rowHeight&&(this._rowHeight=c,this._setTileStyler(this._rowHeight))}ngOnInit(){this._checkCols(),this._checkRowHeight()}ngAfterContentChecked(){this._layoutTiles()}_checkCols(){}_checkRowHeight(){this._rowHeight||this._setTileStyler("1:1")}_setTileStyler(h){this._tileStyler&&this._tileStyler.reset(this),this._tileStyler="fit"===h?new le:h&&h.indexOf(":")>-1?new Q(h):new ne(h)}_layoutTiles(){this._tileCoordinator||(this._tileCoordinator=new D);const h=this._tileCoordinator,c=this._tiles.filter(S=>!S._gridList||S._gridList===this),C=this._dir?this._dir.value:"ltr";this._tileCoordinator.update(this.cols,c),this._tileStyler.init(this.gutterSize,h,this.cols,C),c.forEach((S,I)=>{const _=h.positions[I];this._tileStyler.setStyle(S,_.row,_.col)}),this._setListStyle(this._tileStyler.getComputedHeight())}_setListStyle(h){h&&(this._element.nativeElement.style[h[0]]=h[1])}}return t.\u0275fac=function(h){return new(h||t)(e.Y36(e.SBq),e.Y36(b.Is,8))},t.\u0275cmp=e.Xpm({type:t,selectors:[["mat-grid-list"]],contentQueries:function(h,c,C){if(1&h&&e.Suo(C,A,5),2&h){let S;e.iGM(S=e.CRH())&&(c._tiles=S)}},hostAttrs:[1,"mat-grid-list"],hostVars:1,hostBindings:function(h,c){2&h&&e.uIk("cols",c.cols)},inputs:{cols:"cols",gutterSize:"gutterSize",rowHeight:"rowHeight"},exportAs:["matGridList"],features:[e._Bn([{provide:M,useExisting:t}])],ngContentSelectors:a,decls:2,vars:0,template:function(h,c){1&h&&(e.F$t(),e.TgZ(0,"div"),e.Hsn(1),e.qZA())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}.mat-grid-tile-content{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}\n"],encapsulation:2,changeDetection:0}),t})(),me=(()=>{class t{}return t.\u0275fac=function(h){return new(h||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[i.uc,i.BQ],i.uc,i.BQ]}),t})()},5245:(He,j,p)=>{"use strict";p.d(j,{Hw:()=>V,Ps:()=>R});var e=p(5e3),i=p(508),u=p(3191),b=p(9808),a=p(9646),y=p(2843),d=p(4128),P=p(727),D=p(8505),T=p(4004),M=p(262),A=p(8746),E=p(3099),k=p(5698),w=p(8138),z=p(2313);const U=["*"];let W;function Q(H){var $;return(null===($=function ne(){if(void 0===W&&(W=null,"undefined"!=typeof window)){const H=window;void 0!==H.trustedTypes&&(W=H.trustedTypes.createPolicy("angular#components",{createHTML:$=>$}))}return W}())||void 0===$?void 0:$.createHTML(H))||H}function le(H){return Error(`Unable to find icon with the name "${H}"`)}function ie(H){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${H}".`)}function se(H){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${H}".`)}class J{constructor($,fe,ye){this.url=$,this.svgText=fe,this.options=ye}}let me=(()=>{class H{constructor(fe,ye,ke,Ee){this._httpClient=fe,this._sanitizer=ye,this._errorHandler=Ee,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=ke}addSvgIcon(fe,ye,ke){return this.addSvgIconInNamespace("",fe,ye,ke)}addSvgIconLiteral(fe,ye,ke){return this.addSvgIconLiteralInNamespace("",fe,ye,ke)}addSvgIconInNamespace(fe,ye,ke,Ee){return this._addSvgIconConfig(fe,ye,new J(ke,null,Ee))}addSvgIconResolver(fe){return this._resolvers.push(fe),this}addSvgIconLiteralInNamespace(fe,ye,ke,Ee){const te=this._sanitizer.sanitize(e.q3G.HTML,ke);if(!te)throw se(ke);const ze=Q(te);return this._addSvgIconConfig(fe,ye,new J("",ze,Ee))}addSvgIconSet(fe,ye){return this.addSvgIconSetInNamespace("",fe,ye)}addSvgIconSetLiteral(fe,ye){return this.addSvgIconSetLiteralInNamespace("",fe,ye)}addSvgIconSetInNamespace(fe,ye,ke){return this._addSvgIconSetConfig(fe,new J(ye,null,ke))}addSvgIconSetLiteralInNamespace(fe,ye,ke){const Ee=this._sanitizer.sanitize(e.q3G.HTML,ye);if(!Ee)throw se(ye);const te=Q(Ee);return this._addSvgIconSetConfig(fe,new J("",te,ke))}registerFontClassAlias(fe,ye=fe){return this._fontCssClassesByAlias.set(fe,ye),this}classNameForFontAlias(fe){return this._fontCssClassesByAlias.get(fe)||fe}setDefaultFontSetClass(fe){return this._defaultFontSetClass=fe,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(fe){const ye=this._sanitizer.sanitize(e.q3G.RESOURCE_URL,fe);if(!ye)throw ie(fe);const ke=this._cachedIconsByUrl.get(ye);return ke?(0,a.of)(r(ke)):this._loadSvgIconFromConfig(new J(fe,null)).pipe((0,D.b)(Ee=>this._cachedIconsByUrl.set(ye,Ee)),(0,T.U)(Ee=>r(Ee)))}getNamedSvgIcon(fe,ye=""){const ke=h(ye,fe);let Ee=this._svgIconConfigs.get(ke);if(Ee)return this._getSvgFromConfig(Ee);if(Ee=this._getIconConfigFromResolvers(ye,fe),Ee)return this._svgIconConfigs.set(ke,Ee),this._getSvgFromConfig(Ee);const te=this._iconSetConfigs.get(ye);return te?this._getSvgFromIconSetConfigs(fe,te):(0,y._)(le(ke))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(fe){return fe.svgText?(0,a.of)(r(this._svgElementFromConfig(fe))):this._loadSvgIconFromConfig(fe).pipe((0,T.U)(ye=>r(ye)))}_getSvgFromIconSetConfigs(fe,ye){const ke=this._extractIconWithNameFromAnySet(fe,ye);if(ke)return(0,a.of)(ke);const Ee=ye.filter(te=>!te.svgText).map(te=>this._loadSvgIconSetFromConfig(te).pipe((0,M.K)(ze=>{const Z=`Loading icon set URL: ${this._sanitizer.sanitize(e.q3G.RESOURCE_URL,te.url)} failed: ${ze.message}`;return this._errorHandler.handleError(new Error(Z)),(0,a.of)(null)})));return(0,d.D)(Ee).pipe((0,T.U)(()=>{const te=this._extractIconWithNameFromAnySet(fe,ye);if(!te)throw le(fe);return te}))}_extractIconWithNameFromAnySet(fe,ye){for(let ke=ye.length-1;ke>=0;ke--){const Ee=ye[ke];if(Ee.svgText&&Ee.svgText.toString().indexOf(fe)>-1){const te=this._svgElementFromConfig(Ee),ze=this._extractSvgIconFromSet(te,fe,Ee.options);if(ze)return ze}}return null}_loadSvgIconFromConfig(fe){return this._fetchIcon(fe).pipe((0,D.b)(ye=>fe.svgText=ye),(0,T.U)(()=>this._svgElementFromConfig(fe)))}_loadSvgIconSetFromConfig(fe){return fe.svgText?(0,a.of)(null):this._fetchIcon(fe).pipe((0,D.b)(ye=>fe.svgText=ye))}_extractSvgIconFromSet(fe,ye,ke){const Ee=fe.querySelector(`[id="${ye}"]`);if(!Ee)return null;const te=Ee.cloneNode(!0);if(te.removeAttribute("id"),"svg"===te.nodeName.toLowerCase())return this._setSvgAttributes(te,ke);if("symbol"===te.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(te),ke);const ze=this._svgElementFromString(Q("<svg></svg>"));return ze.appendChild(te),this._setSvgAttributes(ze,ke)}_svgElementFromString(fe){const ye=this._document.createElement("DIV");ye.innerHTML=fe;const ke=ye.querySelector("svg");if(!ke)throw Error("<svg> tag not found");return ke}_toSvgElement(fe){const ye=this._svgElementFromString(Q("<svg></svg>")),ke=fe.attributes;for(let Ee=0;Ee<ke.length;Ee++){const{name:te,value:ze}=ke[Ee];"id"!==te&&ye.setAttribute(te,ze)}for(let Ee=0;Ee<fe.childNodes.length;Ee++)fe.childNodes[Ee].nodeType===this._document.ELEMENT_NODE&&ye.appendChild(fe.childNodes[Ee].cloneNode(!0));return ye}_setSvgAttributes(fe,ye){return fe.setAttribute("fit",""),fe.setAttribute("height","100%"),fe.setAttribute("width","100%"),fe.setAttribute("preserveAspectRatio","xMidYMid meet"),fe.setAttribute("focusable","false"),ye&&ye.viewBox&&fe.setAttribute("viewBox",ye.viewBox),fe}_fetchIcon(fe){var ye;const{url:ke,options:Ee}=fe,te=null!==(ye=null==Ee?void 0:Ee.withCredentials)&&void 0!==ye&&ye;if(!this._httpClient)throw function q(){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 ze=this._sanitizer.sanitize(e.q3G.RESOURCE_URL,ke);if(!ze)throw ie(ke);const be=this._inProgressUrlFetches.get(ze);if(be)return be;const Z=this._httpClient.get(ze,{responseType:"text",withCredentials:te}).pipe((0,T.U)(Y=>Q(Y)),(0,A.x)(()=>this._inProgressUrlFetches.delete(ze)),(0,E.B)());return this._inProgressUrlFetches.set(ze,Z),Z}_addSvgIconConfig(fe,ye,ke){return this._svgIconConfigs.set(h(fe,ye),ke),this}_addSvgIconSetConfig(fe,ye){const ke=this._iconSetConfigs.get(fe);return ke?ke.push(ye):this._iconSetConfigs.set(fe,[ye]),this}_svgElementFromConfig(fe){if(!fe.svgElement){const ye=this._svgElementFromString(fe.svgText);this._setSvgAttributes(ye,fe.options),fe.svgElement=ye}return fe.svgElement}_getIconConfigFromResolvers(fe,ye){for(let ke=0;ke<this._resolvers.length;ke++){const Ee=this._resolvers[ke](ye,fe);if(Ee)return c(Ee)?new J(Ee.url,null,Ee.options):new J(Ee,null)}}}return H.\u0275fac=function(fe){return new(fe||H)(e.LFG(w.eN,8),e.LFG(z.H7),e.LFG(b.K0,8),e.LFG(e.qLn))},H.\u0275prov=e.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"}),H})();function r(H){return H.cloneNode(!0)}function h(H,$){return H+":"+$}function c(H){return!(!H.url||!H.options)}const C=(0,i.pj)(class{constructor(H){this._elementRef=H}}),S=new e.OlP("mat-icon-location",{providedIn:"root",factory:function I(){const H=(0,e.f3M)(b.K0),$=H?H.location:null;return{getPathname:()=>$?$.pathname+$.search:""}}}),_=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],n=_.map(H=>`[${H}]`).join(", "),g=/^url\(['"]?#(.*?)['"]?\)$/;let V=(()=>{class H extends C{constructor(fe,ye,ke,Ee,te){super(fe),this._iconRegistry=ye,this._location=Ee,this._errorHandler=te,this._inline=!1,this._currentIconFetch=P.w0.EMPTY,ke||fe.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(fe){this._inline=(0,u.Ig)(fe)}get svgIcon(){return this._svgIcon}set svgIcon(fe){fe!==this._svgIcon&&(fe?this._updateSvgIcon(fe):this._svgIcon&&this._clearSvgElement(),this._svgIcon=fe)}get fontSet(){return this._fontSet}set fontSet(fe){const ye=this._cleanupFontValue(fe);ye!==this._fontSet&&(this._fontSet=ye,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(fe){const ye=this._cleanupFontValue(fe);ye!==this._fontIcon&&(this._fontIcon=ye,this._updateFontIconClasses())}_splitIconName(fe){if(!fe)return["",""];const ye=fe.split(":");switch(ye.length){case 1:return["",ye[0]];case 2:return ye;default:throw Error(`Invalid icon name: "${fe}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const fe=this._elementsWithExternalReferences;if(fe&&fe.size){const ye=this._location.getPathname();ye!==this._previousPath&&(this._previousPath=ye,this._prependPathToReferences(ye))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(fe){this._clearSvgElement();const ye=this._location.getPathname();this._previousPath=ye,this._cacheChildrenWithExternalReferences(fe),this._prependPathToReferences(ye),this._elementRef.nativeElement.appendChild(fe)}_clearSvgElement(){const fe=this._elementRef.nativeElement;let ye=fe.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();ye--;){const ke=fe.childNodes[ye];(1!==ke.nodeType||"svg"===ke.nodeName.toLowerCase())&&ke.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const fe=this._elementRef.nativeElement,ye=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();ye!=this._previousFontSetClass&&(this._previousFontSetClass&&fe.classList.remove(this._previousFontSetClass),ye&&fe.classList.add(ye),this._previousFontSetClass=ye),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&fe.classList.remove(this._previousFontIconClass),this.fontIcon&&fe.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(fe){return"string"==typeof fe?fe.trim().split(" ")[0]:fe}_prependPathToReferences(fe){const ye=this._elementsWithExternalReferences;ye&&ye.forEach((ke,Ee)=>{ke.forEach(te=>{Ee.setAttribute(te.name,`url('${fe}#${te.value}')`)})})}_cacheChildrenWithExternalReferences(fe){const ye=fe.querySelectorAll(n),ke=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let Ee=0;Ee<ye.length;Ee++)_.forEach(te=>{const ze=ye[Ee],be=ze.getAttribute(te),Z=be?be.match(g):null;if(Z){let Y=ke.get(ze);Y||(Y=[],ke.set(ze,Y)),Y.push({name:te,value:Z[1]})}})}_updateSvgIcon(fe){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),fe){const[ye,ke]=this._splitIconName(fe);ye&&(this._svgNamespace=ye),ke&&(this._svgName=ke),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(ke,ye).pipe((0,k.q)(1)).subscribe(Ee=>this._setSvgElement(Ee),Ee=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${ye}:${ke}! ${Ee.message}`))})}}}return H.\u0275fac=function(fe){return new(fe||H)(e.Y36(e.SBq),e.Y36(me),e.$8M("aria-hidden"),e.Y36(S),e.Y36(e.qLn))},H.\u0275cmp=e.Xpm({type:H,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(fe,ye){2&fe&&(e.uIk("data-mat-icon-type",ye._usingFontIcon()?"font":"svg")("data-mat-icon-name",ye._svgName||ye.fontIcon)("data-mat-icon-namespace",ye._svgNamespace||ye.fontSet),e.ekj("mat-icon-inline",ye.inline)("mat-icon-no-color","primary"!==ye.color&&"accent"!==ye.color&&"warn"!==ye.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[e.qOj],ngContentSelectors:U,decls:1,vars:0,template:function(fe,ye){1&fe&&(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}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),H})(),R=(()=>{class H{}return H.\u0275fac=function(fe){return new(fe||H)},H.\u0275mod=e.oAB({type:H}),H.\u0275inj=e.cJS({imports:[[i.BQ],i.BQ]}),H})()},7531:(He,j,p)=>{"use strict";p.d(j,{Jk:()=>w,Nt:()=>ne,c:()=>Q});var e=p(3191),i=p(925),u=p(5e3),b=p(3075),a=p(508),y=p(7322),d=p(7579),P=p(515);const D=(0,i.i$)({passive:!0});let T=(()=>{class le{constructor(ie,se){this._platform=ie,this._ngZone=se,this._monitoredElements=new Map}monitor(ie){if(!this._platform.isBrowser)return P.E;const se=(0,e.fI)(ie),J=this._monitoredElements.get(se);if(J)return J.subject;const me=new d.x,x="cdk-text-field-autofilled",t=r=>{"cdk-text-field-autofill-start"!==r.animationName||se.classList.contains(x)?"cdk-text-field-autofill-end"===r.animationName&&se.classList.contains(x)&&(se.classList.remove(x),this._ngZone.run(()=>me.next({target:r.target,isAutofilled:!1}))):(se.classList.add(x),this._ngZone.run(()=>me.next({target:r.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{se.addEventListener("animationstart",t,D),se.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(se,{subject:me,unlisten:()=>{se.removeEventListener("animationstart",t,D)}}),me}stopMonitoring(ie){const se=(0,e.fI)(ie),J=this._monitoredElements.get(se);J&&(J.unlisten(),J.subject.complete(),se.classList.remove("cdk-text-field-autofill-monitored"),se.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(se))}ngOnDestroy(){this._monitoredElements.forEach((ie,se)=>this.stopMonitoring(se))}}return le.\u0275fac=function(ie){return new(ie||le)(u.LFG(i.t4),u.LFG(u.R0b))},le.\u0275prov=u.Yz7({token:le,factory:le.\u0275fac,providedIn:"root"}),le})(),E=(()=>{class le{}return le.\u0275fac=function(ie){return new(ie||le)},le.\u0275mod=u.oAB({type:le}),le.\u0275inj=u.cJS({}),le})();const w=new u.OlP("MAT_INPUT_VALUE_ACCESSOR"),z=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let U=0;const W=(0,a.FD)(class{constructor(le,q,ie,se){this._defaultErrorStateMatcher=le,this._parentForm=q,this._parentFormGroup=ie,this.ngControl=se}});let ne=(()=>{class le extends W{constructor(ie,se,J,me,x,t,r,h,c,C){super(t,me,x,J),this._elementRef=ie,this._platform=se,this._autofillMonitor=h,this._formField=C,this._uid="mat-input-"+U++,this.focused=!1,this.stateChanges=new d.x,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(_=>(0,i.qK)().has(_)),this._iOSKeyupListener=_=>{const n=_.target;!n.value&&0===n.selectionStart&&0===n.selectionEnd&&(n.setSelectionRange(1,1),n.setSelectionRange(0,0))};const S=this._elementRef.nativeElement,I=S.nodeName.toLowerCase();this._inputValueAccessor=r||S,this._previousNativeValue=this.value,this.id=this.id,se.IOS&&c.runOutsideAngular(()=>{ie.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===I,this._isTextarea="textarea"===I,this._isInFormField=!!C,this._isNativeSelect&&(this.controlType=S.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(ie){this._disabled=(0,e.Ig)(ie),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(ie){this._id=ie||this._uid}get required(){var ie,se,J,me;return null!==(me=null!==(ie=this._required)&&void 0!==ie?ie:null===(J=null===(se=this.ngControl)||void 0===se?void 0:se.control)||void 0===J?void 0:J.hasValidator(b.kI.required))&&void 0!==me&&me}set required(ie){this._required=(0,e.Ig)(ie)}get type(){return this._type}set type(ie){this._type=ie||"text",this._validateType(),!this._isTextarea&&(0,i.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(ie){ie!==this.value&&(this._inputValueAccessor.value=ie,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(ie){this._readonly=(0,e.Ig)(ie)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(ie=>{this.autofilled=ie.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(ie){this._elementRef.nativeElement.focus(ie)}_focusChanged(ie){ie!==this.focused&&(this.focused=ie,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var ie,se;const J=(null===(se=null===(ie=this._formField)||void 0===ie?void 0:ie._hideControlPlaceholder)||void 0===se?void 0:se.call(ie))?null:this.placeholder;if(J!==this._previousPlaceholder){const me=this._elementRef.nativeElement;this._previousPlaceholder=J,J?me.setAttribute("placeholder",J):me.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const ie=this._elementRef.nativeElement.value;this._previousNativeValue!==ie&&(this._previousNativeValue=ie,this.stateChanges.next())}_validateType(){z.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let ie=this._elementRef.nativeElement.validity;return ie&&ie.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const ie=this._elementRef.nativeElement,se=ie.options[0];return this.focused||ie.multiple||!this.empty||!!(ie.selectedIndex>-1&&se&&se.label)}return this.focused||!this.empty}setDescribedByIds(ie){ie.length?this._elementRef.nativeElement.setAttribute("aria-describedby",ie.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const ie=this._elementRef.nativeElement;return this._isNativeSelect&&(ie.multiple||ie.size>1)}}return le.\u0275fac=function(ie){return new(ie||le)(u.Y36(u.SBq),u.Y36(i.t4),u.Y36(b.a5,10),u.Y36(b.F,8),u.Y36(b.sg,8),u.Y36(a.rD),u.Y36(w,10),u.Y36(T),u.Y36(u.R0b),u.Y36(y.G_,8))},le.\u0275dir=u.lG2({type:le,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(ie,se){1&ie&&u.NdJ("focus",function(){return se._focusChanged(!0)})("blur",function(){return se._focusChanged(!1)})("input",function(){return se._onInput()}),2&ie&&(u.Ikx("disabled",se.disabled)("required",se.required),u.uIk("id",se.id)("data-placeholder",se.placeholder)("name",se.name||null)("readonly",se.readonly&&!se._isNativeSelect||null)("aria-invalid",se.empty&&se.required?null:se.errorState)("aria-required",se.required),u.ekj("mat-input-server",se._isServer)("mat-native-select-inline",se._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[u._Bn([{provide:y.Eo,useExisting:le}]),u.qOj,u.TTD]}),le})(),Q=(()=>{class le{}return le.\u0275fac=function(ie){return new(ie||le)},le.\u0275mod=u.oAB({type:le}),le.\u0275inj=u.cJS({providers:[a.rD],imports:[[E,y.lN,a.BQ],E,y.lN]}),le})()},4623:(He,j,p)=>{"use strict";p.d(j,{Tg:()=>h,i$:()=>me,ie:()=>g});var e=p(9808),i=p(5e3),u=p(508),b=p(3191),a=p(7579),y=p(2722),A=(p(8675),p(5664),p(449),p(1159),p(3075),p(4834));const E=["*"],w=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],z=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],le=(0,u.Id)((0,u.Kr)(class{})),q=(0,u.Kr)(class{}),ie=new i.OlP("MatList"),se=new i.OlP("MatNavList");let me=(()=>{class V extends le{constructor(H){super(),this._elementRef=H,this._stateChanges=new a.x,"action-list"===this._getListType()&&H.nativeElement.classList.add("mat-action-list")}_getListType(){const H=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===H?"list":"mat-action-list"===H?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return V.\u0275fac=function(H){return new(H||V)(i.Y36(i.SBq))},V.\u0275cmp=i.Xpm({type:V,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[i._Bn([{provide:ie,useExisting:V}]),i.qOj,i.TTD],ngContentSelectors:E,decls:1,vars:0,template:function(H,$){1&H&&(i.F$t(),i.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n'],encapsulation:2,changeDetection:0}),V})(),x=(()=>{class V{}return V.\u0275fac=function(H){return new(H||V)},V.\u0275dir=i.lG2({type:V,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),V})(),t=(()=>{class V{}return V.\u0275fac=function(H){return new(H||V)},V.\u0275dir=i.lG2({type:V,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),V})(),h=(()=>{class V extends q{constructor(H,$,fe,ye){super(),this._element=H,this._isInteractiveList=!1,this._destroyed=new a.x,this._disabled=!1,this._isInteractiveList=!!(fe||ye&&"action-list"===ye._getListType()),this._list=fe||ye;const ke=this._getHostElement();"button"===ke.nodeName.toLowerCase()&&!ke.hasAttribute("type")&&ke.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe((0,y.R)(this._destroyed)).subscribe(()=>{$.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(H){this._disabled=(0,b.Ig)(H)}ngAfterContentInit(){(0,u.E0)(this._lines,this._element)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_isRippleDisabled(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}_getHostElement(){return this._element.nativeElement}}return V.\u0275fac=function(H){return new(H||V)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(se,8),i.Y36(ie,8))},V.\u0275cmp=i.Xpm({type:V,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(H,$,fe){if(1&H&&(i.Suo(fe,x,5),i.Suo(fe,t,5),i.Suo(fe,u.X2,5)),2&H){let ye;i.iGM(ye=i.CRH())&&($._avatar=ye.first),i.iGM(ye=i.CRH())&&($._icon=ye.first),i.iGM(ye=i.CRH())&&($._lines=ye)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(H,$){2&H&&i.ekj("mat-list-item-disabled",$.disabled)("mat-list-item-avatar",$._avatar||$._icon)("mat-list-item-with-avatar",$._avatar||$._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[i.qOj],ngContentSelectors:z,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(H,$){1&H&&(i.F$t(w),i.TgZ(0,"span",0),i._UZ(1,"span",1),i.Hsn(2),i.TgZ(3,"span",2),i.Hsn(4,1),i.qZA(),i.Hsn(5,2),i.qZA()),2&H&&(i.xp6(1),i.Q6J("matRippleTrigger",$._getHostElement())("matRippleDisabled",$._isRippleDisabled()))},directives:[u.wG],encapsulation:2,changeDetection:0}),V})(),g=(()=>{class V{}return V.\u0275fac=function(H){return new(H||V)},V.\u0275mod=i.oAB({type:V}),V.\u0275inj=i.cJS({imports:[[u.uc,u.si,u.BQ,u.us,e.ez],u.uc,u.BQ,u.us,A.t]}),V})()},2181:(He,j,p)=>{"use strict";p.d(j,{OP:()=>H,Tx:()=>Ae,VK:()=>Ee,p6:()=>Ie});var e=p(5664),i=p(3191),u=p(1159),b=p(5e3),a=p(7579),y=p(727),d=p(6451),P=p(9646),D=p(3101),T=p(8675),M=p(3900),A=p(5698),E=p(2722),k=p(9300),w=p(4086),z=p(1777),U=p(7429),W=p(9808),ne=p(508),Q=p(9776),le=p(925),q=p(226),ie=p(5303);const se=["mat-menu-item",""];function J(ce,Te){1&ce&&(b.O4$(),b.TgZ(0,"svg",2),b._UZ(1,"polygon",3),b.qZA())}const me=["*"];function x(ce,Te){if(1&ce){const xe=b.EpF();b.TgZ(0,"div",0),b.NdJ("keydown",function(ee){return b.CHM(xe),b.oxw()._handleKeydown(ee)})("click",function(){return b.CHM(xe),b.oxw().closed.emit("click")})("@transformMenu.start",function(ee){return b.CHM(xe),b.oxw()._onAnimationStart(ee)})("@transformMenu.done",function(ee){return b.CHM(xe),b.oxw()._onAnimationDone(ee)}),b.TgZ(1,"div",1),b.Hsn(2),b.qZA()()}if(2&ce){const xe=b.oxw();b.Q6J("id",xe.panelId)("ngClass",xe._classList)("@transformMenu",xe._panelAnimationState),b.uIk("aria-label",xe.ariaLabel||null)("aria-labelledby",xe.ariaLabelledby||null)("aria-describedby",xe.ariaDescribedby||null)}}const t={transformMenu:(0,z.X$)("transformMenu",[(0,z.SB)("void",(0,z.oB)({opacity:0,transform:"scale(0.8)"})),(0,z.eR)("void => enter",(0,z.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,z.oB)({opacity:1,transform:"scale(1)"}))),(0,z.eR)("* => void",(0,z.jt)("100ms 25ms linear",(0,z.oB)({opacity:0})))]),fadeInItems:(0,z.X$)("fadeInItems",[(0,z.SB)("showing",(0,z.oB)({opacity:1})),(0,z.eR)("void => *",[(0,z.oB)({opacity:0}),(0,z.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},c=new b.OlP("MatMenuContent"),V=new b.OlP("MAT_MENU_PANEL"),R=(0,ne.Kr)((0,ne.Id)(class{}));let H=(()=>{class ce extends R{constructor(xe,G,ee,ue,ve){var Le;super(),this._elementRef=xe,this._document=G,this._focusMonitor=ee,this._parentMenu=ue,this._changeDetectorRef=ve,this.role="menuitem",this._hovered=new a.x,this._focused=new a.x,this._highlighted=!1,this._triggersSubmenu=!1,null===(Le=null==ue?void 0:ue.addItem)||void 0===Le||Le.call(ue,this)}focus(xe,G){this._focusMonitor&&xe?this._focusMonitor.focusVia(this._getHostElement(),xe,G):this._getHostElement().focus(G),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(xe){this.disabled&&(xe.preventDefault(),xe.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var xe;const G=this._elementRef.nativeElement.cloneNode(!0),ee=G.querySelectorAll("mat-icon, .material-icons");for(let ue=0;ue<ee.length;ue++)ee[ue].remove();return(null===(xe=G.textContent)||void 0===xe?void 0:xe.trim())||""}_setHighlighted(xe){var G;this._highlighted=xe,null===(G=this._changeDetectorRef)||void 0===G||G.markForCheck()}_hasFocus(){return this._document&&this._document.activeElement===this._getHostElement()}}return ce.\u0275fac=function(xe){return new(xe||ce)(b.Y36(b.SBq),b.Y36(W.K0),b.Y36(e.tE),b.Y36(V,8),b.Y36(b.sBO))},ce.\u0275cmp=b.Xpm({type:ce,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:10,hostBindings:function(xe,G){1&xe&&b.NdJ("click",function(ue){return G._checkDisabled(ue)})("mouseenter",function(){return G._handleMouseEnter()}),2&xe&&(b.uIk("role",G.role)("tabindex",G._getTabIndex())("aria-disabled",G.disabled.toString())("disabled",G.disabled||null),b.ekj("mat-menu-item",!0)("mat-menu-item-highlighted",G._highlighted)("mat-menu-item-submenu-trigger",G._triggersSubmenu))},inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[b.qOj],attrs:se,ngContentSelectors:me,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(xe,G){1&xe&&(b.F$t(),b.Hsn(0),b._UZ(1,"div",0),b.YNc(2,J,2,0,"svg",1)),2&xe&&(b.xp6(1),b.Q6J("matRippleDisabled",G.disableRipple||G.disabled)("matRippleTrigger",G._getHostElement()),b.xp6(1),b.Q6J("ngIf",G._triggersSubmenu))},directives:[ne.wG,W.O5],encapsulation:2,changeDetection:0}),ce})();const $=new b.OlP("mat-menu-default-options",{providedIn:"root",factory:function fe(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let ye=0,ke=(()=>{class ce{constructor(xe,G,ee,ue){this._elementRef=xe,this._ngZone=G,this._defaultOptions=ee,this._changeDetectorRef=ue,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new b.n_E,this._tabSubscription=y.w0.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new a.x,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new b.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+ye++}get xPosition(){return this._xPosition}set xPosition(xe){this._xPosition=xe,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(xe){this._yPosition=xe,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(xe){this._overlapTrigger=(0,i.Ig)(xe)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(xe){this._hasBackdrop=(0,i.Ig)(xe)}set panelClass(xe){const G=this._previousPanelClass;G&&G.length&&G.split(" ").forEach(ee=>{this._classList[ee]=!1}),this._previousPanelClass=xe,xe&&xe.length&&(xe.split(" ").forEach(ee=>{this._classList[ee]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(xe){this.panelClass=xe}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,T.O)(this._directDescendantItems),(0,M.w)(xe=>(0,d.T)(...xe.map(G=>G._focused)))).subscribe(xe=>this._keyManager.updateActiveItem(xe)),this._directDescendantItems.changes.subscribe(xe=>{var G;const ee=this._keyManager;if("enter"===this._panelAnimationState&&(null===(G=ee.activeItem)||void 0===G?void 0:G._hasFocus())){const ue=xe.toArray(),ve=Math.max(0,Math.min(ue.length-1,ee.activeItemIndex||0));ue[ve]&&!ue[ve].disabled?ee.setActiveItem(ve):ee.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe((0,T.O)(this._directDescendantItems),(0,M.w)(G=>(0,d.T)(...G.map(ee=>ee._hovered))))}addItem(xe){}removeItem(xe){}_handleKeydown(xe){const G=xe.keyCode,ee=this._keyManager;switch(G){case u.hY:(0,u.Vb)(xe)||(xe.preventDefault(),this.closed.emit("keydown"));break;case u.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case u.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(G===u.LH||G===u.JH)&&ee.setFocusOrigin("keyboard"),void ee.onKeydown(xe)}xe.stopPropagation()}focusFirstItem(xe="program"){this._ngZone.onStable.pipe((0,A.q)(1)).subscribe(()=>{let G=null;if(this._directDescendantItems.length&&(G=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!G||!G.contains(document.activeElement)){const ee=this._keyManager;ee.setFocusOrigin(xe).setFirstItemActive(),!ee.activeItem&&G&&G.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(xe){const G=Math.min(this._baseElevation+xe,24),ee=`${this._elevationPrefix}${G}`,ue=Object.keys(this._classList).find(ve=>ve.startsWith(this._elevationPrefix));(!ue||ue===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[ee]=!0,this._previousElevation=ee)}setPositionClasses(xe=this.xPosition,G=this.yPosition){var ee;const ue=this._classList;ue["mat-menu-before"]="before"===xe,ue["mat-menu-after"]="after"===xe,ue["mat-menu-above"]="above"===G,ue["mat-menu-below"]="below"===G,null===(ee=this._changeDetectorRef)||void 0===ee||ee.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(xe){this._animationDone.next(xe),this._isAnimating=!1}_onAnimationStart(xe){this._isAnimating=!0,"enter"===xe.toState&&0===this._keyManager.activeItemIndex&&(xe.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,T.O)(this._allItems)).subscribe(xe=>{this._directDescendantItems.reset(xe.filter(G=>G._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return ce.\u0275fac=function(xe){return new(xe||ce)(b.Y36(b.SBq),b.Y36(b.R0b),b.Y36($),b.Y36(b.sBO))},ce.\u0275dir=b.lG2({type:ce,contentQueries:function(xe,G,ee){if(1&xe&&(b.Suo(ee,c,5),b.Suo(ee,H,5),b.Suo(ee,H,4)),2&xe){let ue;b.iGM(ue=b.CRH())&&(G.lazyContent=ue.first),b.iGM(ue=b.CRH())&&(G._allItems=ue),b.iGM(ue=b.CRH())&&(G.items=ue)}},viewQuery:function(xe,G){if(1&xe&&b.Gf(b.Rgc,5),2&xe){let ee;b.iGM(ee=b.CRH())&&(G.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"}}),ce})(),Ee=(()=>{class ce extends ke{constructor(xe,G,ee,ue){super(xe,G,ee,ue),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return ce.\u0275fac=function(xe){return new(xe||ce)(b.Y36(b.SBq),b.Y36(b.R0b),b.Y36($),b.Y36(b.sBO))},ce.\u0275cmp=b.Xpm({type:ce,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(xe,G){2&xe&&b.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[b._Bn([{provide:V,useExisting:ce}]),b.qOj],ngContentSelectors:me,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(xe,G){1&xe&&(b.F$t(),b.YNc(0,x,3,6,"ng-template"))},directives:[W.mk],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]::before{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],encapsulation:2,data:{animation:[t.transformMenu,t.fadeInItems]},changeDetection:0}),ce})();const te=new b.OlP("mat-menu-scroll-strategy"),be={provide:te,deps:[Q.aV],useFactory:function ze(ce){return()=>ce.scrollStrategies.reposition()}},Y=(0,le.i$)({passive:!0});let ot=(()=>{class ce{constructor(xe,G,ee,ue,ve,Le,lt,ht,Tt){this._overlay=xe,this._element=G,this._viewContainerRef=ee,this._menuItemInstance=Le,this._dir=lt,this._focusMonitor=ht,this._ngZone=Tt,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=y.w0.EMPTY,this._hoverSubscription=y.w0.EMPTY,this._menuCloseSubscription=y.w0.EMPTY,this._handleTouchStart=hi=>{(0,e.yG)(hi)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new b.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new b.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=ue,this._parentMaterialMenu=ve instanceof ke?ve:void 0,G.nativeElement.addEventListener("touchstart",this._handleTouchStart,Y),Le&&(Le._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(xe){this.menu=xe}get menu(){return this._menu}set menu(xe){xe!==this._menu&&(this._menu=xe,this._menuCloseSubscription.unsubscribe(),xe&&(this._menuCloseSubscription=xe.close.subscribe(G=>{this._destroyMenu(G),("click"===G||"tab"===G)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(G)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Y),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const xe=this._createOverlay(),G=xe.getConfig(),ee=G.positionStrategy;this._setPosition(ee),G.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,xe.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof ke&&(this.menu._startAnimation(),this.menu._directDescendantItems.changes.pipe((0,E.R)(this.menu.close)).subscribe(()=>{ee.withLockedPosition(!1).reapplyLastPosition(),ee.withLockedPosition(!0)}))}closeMenu(){this.menu.close.emit()}focus(xe,G){this._focusMonitor&&xe?this._focusMonitor.focusVia(this._element,xe,G):this._element.nativeElement.focus(G)}updatePosition(){var xe;null===(xe=this._overlayRef)||void 0===xe||xe.updatePosition()}_destroyMenu(xe){if(!this._overlayRef||!this.menuOpen)return;const G=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===xe||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,G instanceof ke?(G._resetAnimation(),G.lazyContent?G._animationDone.pipe((0,k.h)(ee=>"void"===ee.toState),(0,A.q)(1),(0,E.R)(G.lazyContent._attached)).subscribe({next:()=>G.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),G.lazyContent&&G.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let xe=0,G=this.menu.parentMenu;for(;G;)xe++,G=G.parentMenu;this.menu.setElevation(xe)}}_setIsMenuOpen(xe){this._menuOpen=xe,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(xe)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const xe=this._getOverlayConfig();this._subscribeToPositions(xe.positionStrategy),this._overlayRef=this._overlay.create(xe),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new Q.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(xe){this.menu.setPositionClasses&&xe.positionChanges.subscribe(G=>{const ee="start"===G.connectionPair.overlayX?"after":"before",ue="top"===G.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>this.menu.setPositionClasses(ee,ue)):this.menu.setPositionClasses(ee,ue)})}_setPosition(xe){let[G,ee]="before"===this.menu.xPosition?["end","start"]:["start","end"],[ue,ve]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[Le,lt]=[ue,ve],[ht,Tt]=[G,ee],hi=0;this.triggersSubmenu()?(Tt=G="before"===this.menu.xPosition?"start":"end",ee=ht="end"===G?"start":"end",hi="bottom"===ue?8:-8):this.menu.overlapTrigger||(Le="top"===ue?"bottom":"top",lt="top"===ve?"bottom":"top"),xe.withPositions([{originX:G,originY:Le,overlayX:ht,overlayY:ue,offsetY:hi},{originX:ee,originY:Le,overlayX:Tt,overlayY:ue,offsetY:hi},{originX:G,originY:lt,overlayX:ht,overlayY:ve,offsetY:-hi},{originX:ee,originY:lt,overlayX:Tt,overlayY:ve,offsetY:-hi}])}_menuClosingActions(){const xe=this._overlayRef.backdropClick(),G=this._overlayRef.detachments(),ee=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,P.of)(),ue=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,k.h)(ve=>ve!==this._menuItemInstance),(0,k.h)(()=>this._menuOpen)):(0,P.of)();return(0,d.T)(xe,ee,ue,G)}_handleMousedown(xe){(0,e.X6)(xe)||(this._openedBy=0===xe.button?"mouse":void 0,this.triggersSubmenu()&&xe.preventDefault())}_handleKeydown(xe){const G=xe.keyCode;(G===u.K5||G===u.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(G===u.SV&&"ltr"===this.dir||G===u.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(xe){this.triggersSubmenu()?(xe.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,k.h)(xe=>xe===this._menuItemInstance&&!xe.disabled),(0,w.g)(0,D.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof ke&&this.menu._isAnimating?this.menu._animationDone.pipe((0,A.q)(1),(0,w.g)(0,D.E),(0,E.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new U.UE(this.menu.templateRef,this._viewContainerRef)),this._portal}}return ce.\u0275fac=function(xe){return new(xe||ce)(b.Y36(Q.aV),b.Y36(b.SBq),b.Y36(b.s_b),b.Y36(te),b.Y36(V,8),b.Y36(H,10),b.Y36(q.Is,8),b.Y36(e.tE),b.Y36(b.R0b))},ce.\u0275dir=b.lG2({type:ce,hostAttrs:["aria-haspopup","true"],hostVars:2,hostBindings:function(xe,G){1&xe&&b.NdJ("click",function(ue){return G._handleClick(ue)})("mousedown",function(ue){return G._handleMousedown(ue)})("keydown",function(ue){return G._handleKeydown(ue)}),2&xe&&b.uIk("aria-expanded",G.menuOpen||null)("aria-controls",G.menuOpen?G.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),ce})(),Ie=(()=>{class ce extends ot{}return ce.\u0275fac=function(){let Te;return function(G){return(Te||(Te=b.n5z(ce)))(G||ce)}}(),ce.\u0275dir=b.lG2({type:ce,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[b.qOj]}),ce})(),Ae=(()=>{class ce{}return ce.\u0275fac=function(xe){return new(xe||ce)},ce.\u0275mod=b.oAB({type:ce}),ce.\u0275inj=b.cJS({providers:[be],imports:[[W.ez,ne.BQ,ne.si,Q.U8],ie.ZD,ne.BQ]}),ce})()},6087:(He,j,p)=>{"use strict";p.d(j,{NW:()=>se,TU:()=>J,ye:()=>z});var e=p(9808),i=p(5e3),u=p(508),b=p(7423),a=p(4107),y=p(7238),d=p(3191),P=p(7579),D=p(7322);function T(me,x){if(1&me&&(i.TgZ(0,"mat-option",19),i._uU(1),i.qZA()),2&me){const t=x.$implicit;i.Q6J("value",t),i.xp6(1),i.hij(" ",t," ")}}function M(me,x){if(1&me){const t=i.EpF();i.TgZ(0,"mat-form-field",16)(1,"mat-select",17),i.NdJ("selectionChange",function(h){return i.CHM(t),i.oxw(2)._changePageSize(h.value)}),i.YNc(2,T,2,2,"mat-option",18),i.qZA()()}if(2&me){const t=i.oxw(2);i.Q6J("appearance",t._formFieldAppearance)("color",t.color),i.xp6(1),i.Q6J("value",t.pageSize)("disabled",t.disabled)("aria-label",t._intl.itemsPerPageLabel),i.xp6(1),i.Q6J("ngForOf",t._displayedPageSizeOptions)}}function A(me,x){if(1&me&&(i.TgZ(0,"div",20),i._uU(1),i.qZA()),2&me){const t=i.oxw(2);i.xp6(1),i.Oqu(t.pageSize)}}function E(me,x){if(1&me&&(i.TgZ(0,"div",12)(1,"div",13),i._uU(2),i.qZA(),i.YNc(3,M,3,6,"mat-form-field",14),i.YNc(4,A,2,1,"div",15),i.qZA()),2&me){const t=i.oxw();i.xp6(2),i.hij(" ",t._intl.itemsPerPageLabel," "),i.xp6(1),i.Q6J("ngIf",t._displayedPageSizeOptions.length>1),i.xp6(1),i.Q6J("ngIf",t._displayedPageSizeOptions.length<=1)}}function k(me,x){if(1&me){const t=i.EpF();i.TgZ(0,"button",21),i.NdJ("click",function(){return i.CHM(t),i.oxw().firstPage()}),i.O4$(),i.TgZ(1,"svg",7),i._UZ(2,"path",22),i.qZA()()}if(2&me){const t=i.oxw();i.Q6J("matTooltip",t._intl.firstPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("matTooltipPosition","above")("disabled",t._previousButtonsDisabled()),i.uIk("aria-label",t._intl.firstPageLabel)}}function w(me,x){if(1&me){const t=i.EpF();i.O4$(),i.kcU(),i.TgZ(0,"button",23),i.NdJ("click",function(){return i.CHM(t),i.oxw().lastPage()}),i.O4$(),i.TgZ(1,"svg",7),i._UZ(2,"path",24),i.qZA()()}if(2&me){const t=i.oxw();i.Q6J("matTooltip",t._intl.lastPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("matTooltipPosition","above")("disabled",t._nextButtonsDisabled()),i.uIk("aria-label",t._intl.lastPageLabel)}}let z=(()=>{class me{constructor(){this.changes=new P.x,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(t,r,h)=>{if(0==h||0==r)return`0 of ${h}`;const c=t*r;return`${c+1} \u2013 ${c<(h=Math.max(h,0))?Math.min(c+r,h):c+r} of ${h}`}}}return me.\u0275fac=function(t){return new(t||me)},me.\u0275prov=i.Yz7({token:me,factory:me.\u0275fac,providedIn:"root"}),me})();const W={provide:z,deps:[[new i.FiY,new i.tp0,z]],useFactory:function U(me){return me||new z}},le=new i.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),q=(0,u.Id)((0,u.dB)(class{}));let ie=(()=>{class me extends q{constructor(t,r,h){if(super(),this._intl=t,this._changeDetectorRef=r,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.page=new i.vpe,this._intlChanges=t.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),h){const{pageSize:c,pageSizeOptions:C,hidePageSize:S,showFirstLastButtons:I}=h;null!=c&&(this._pageSize=c),null!=C&&(this._pageSizeOptions=C),null!=S&&(this._hidePageSize=S),null!=I&&(this._showFirstLastButtons=I)}}get pageIndex(){return this._pageIndex}set pageIndex(t){this._pageIndex=Math.max((0,d.su)(t),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(t){this._length=(0,d.su)(t),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(t){this._pageSize=Math.max((0,d.su)(t),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(t){this._pageSizeOptions=(t||[]).map(r=>(0,d.su)(r)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(t){this._hidePageSize=(0,d.Ig)(t)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(t){this._showFirstLastButtons=(0,d.Ig)(t)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const t=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(t)}previousPage(){if(!this.hasPreviousPage())return;const t=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(t)}firstPage(){if(!this.hasPreviousPage())return;const t=this.pageIndex;this.pageIndex=0,this._emitPageEvent(t)}lastPage(){if(!this.hasNextPage())return;const t=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(t)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const t=this.getNumberOfPages()-1;return this.pageIndex<t&&0!=this.pageSize}getNumberOfPages(){return this.pageSize?Math.ceil(this.length/this.pageSize):0}_changePageSize(t){const h=this.pageIndex;this.pageIndex=Math.floor(this.pageIndex*this.pageSize/t)||0,this.pageSize=t,this._emitPageEvent(h)}_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((t,r)=>t-r),this._changeDetectorRef.markForCheck())}_emitPageEvent(t){this.page.emit({previousPageIndex:t,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return me.\u0275fac=function(t){i.$Z()},me.\u0275dir=i.lG2({type:me,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons"},outputs:{page:"page"},features:[i.qOj]}),me})(),se=(()=>{class me extends ie{constructor(t,r,h){super(t,r,h),h&&null!=h.formFieldAppearance&&(this._formFieldAppearance=h.formFieldAppearance)}}return me.\u0275fac=function(t){return new(t||me)(i.Y36(z),i.Y36(i.sBO),i.Y36(le,8))},me.\u0275cmp=i.Xpm({type:me,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[i.qOj],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(t,r){1&t&&(i.TgZ(0,"div",0)(1,"div",1),i.YNc(2,E,5,3,"div",2),i.TgZ(3,"div",3)(4,"div",4),i._uU(5),i.qZA(),i.YNc(6,k,3,5,"button",5),i.TgZ(7,"button",6),i.NdJ("click",function(){return r.previousPage()}),i.O4$(),i.TgZ(8,"svg",7),i._UZ(9,"path",8),i.qZA()(),i.kcU(),i.TgZ(10,"button",9),i.NdJ("click",function(){return r.nextPage()}),i.O4$(),i.TgZ(11,"svg",7),i._UZ(12,"path",10),i.qZA()(),i.YNc(13,w,3,5,"button",11),i.qZA()()()),2&t&&(i.xp6(2),i.Q6J("ngIf",!r.hidePageSize),i.xp6(3),i.hij(" ",r._intl.getRangeLabel(r.pageIndex,r.pageSize,r.length)," "),i.xp6(1),i.Q6J("ngIf",r.showFirstLastButtons),i.xp6(1),i.Q6J("matTooltip",r._intl.previousPageLabel)("matTooltipDisabled",r._previousButtonsDisabled())("matTooltipPosition","above")("disabled",r._previousButtonsDisabled()),i.uIk("aria-label",r._intl.previousPageLabel),i.xp6(3),i.Q6J("matTooltip",r._intl.nextPageLabel)("matTooltipDisabled",r._nextButtonsDisabled())("matTooltipPosition","above")("disabled",r._nextButtonsDisabled()),i.uIk("aria-label",r._intl.nextPageLabel),i.xp6(3),i.Q6J("ngIf",r.showFirstLastButtons))},directives:[D.KE,a.gD,u.ey,b.lW,e.O5,e.sg,y.gM],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}\n"],encapsulation:2,changeDetection:0}),me})(),J=(()=>{class me{}return me.\u0275fac=function(t){return new(t||me)},me.\u0275mod=i.oAB({type:me}),me.\u0275inj=i.cJS({providers:[W],imports:[[e.ez,b.ot,a.LD,y.AV,u.BQ]]}),me})()},5899:(He,j,p)=>{"use strict";p.d(j,{Cv:()=>U,pW:()=>w});var e=p(5e3),i=p(9808),u=p(508),b=p(3191),a=p(6360),y=p(727),d=p(4968),P=p(9300);const D=["primaryValueBar"],T=(0,u.pj)(class{constructor(W){this._elementRef=W}},"primary"),M=new e.OlP("mat-progress-bar-location",{providedIn:"root",factory:function A(){const W=(0,e.f3M)(i.K0),ne=W?W.location:null;return{getPathname:()=>ne?ne.pathname+ne.search:""}}}),E=new e.OlP("MAT_PROGRESS_BAR_DEFAULT_OPTIONS");let k=0,w=(()=>{class W extends T{constructor(Q,le,q,ie,se,J){super(Q),this._ngZone=le,this._animationMode=q,this._changeDetectorRef=J,this._isNoopAnimation=!1,this._value=0,this._bufferValue=0,this.animationEnd=new e.vpe,this._animationEndSubscription=y.w0.EMPTY,this.mode="determinate",this.progressbarId="mat-progress-bar-"+k++;const me=ie?ie.getPathname().split("#")[0]:"";this._rectangleFillValue=`url('${me}#${this.progressbarId}')`,this._isNoopAnimation="NoopAnimations"===q,se&&(se.color&&(this.color=this.defaultColor=se.color),this.mode=se.mode||this.mode)}get value(){return this._value}set value(Q){var le;this._value=z((0,b.su)(Q)||0),null===(le=this._changeDetectorRef)||void 0===le||le.markForCheck()}get bufferValue(){return this._bufferValue}set bufferValue(Q){var le;this._bufferValue=z(Q||0),null===(le=this._changeDetectorRef)||void 0===le||le.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,P.h)(le=>le.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()}}return W.\u0275fac=function(Q){return new(Q||W)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(a.Qb,8),e.Y36(M,8),e.Y36(E,8),e.Y36(e.sBO))},W.\u0275cmp=e.Xpm({type:W,selectors:[["mat-progress-bar"]],viewQuery:function(Q,le){if(1&Q&&e.Gf(D,5),2&Q){let q;e.iGM(q=e.CRH())&&(le._primaryValueBar=q.first)}},hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-progress-bar"],hostVars:4,hostBindings:function(Q,le){2&Q&&(e.uIk("aria-valuenow","indeterminate"===le.mode||"query"===le.mode?null:le.value)("mode",le.mode),e.ekj("_mat-animation-noopable",le._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,le){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",le.progressbarId),e.xp6(2),e.uIk("fill",le._rectangleFillValue),e.xp6(1),e.Q6J("ngStyle",le._bufferTransform()),e.xp6(1),e.Q6J("ngStyle",le._primaryTransform()))},directives:[i.PC],styles:['.mat-progress-bar{display:block;height:4px;overflow:hidden;position:relative;transition:opacity 250ms linear;width:100%}._mat-animation-noopable.mat-progress-bar{transition:none;animation:none}.mat-progress-bar .mat-progress-bar-element,.mat-progress-bar .mat-progress-bar-fill::after{height:100%;position:absolute;width:100%}.mat-progress-bar .mat-progress-bar-background{width:calc(100% + 10px)}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-background{display:none}.mat-progress-bar .mat-progress-bar-buffer{transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-buffer{border-top:solid 5px;opacity:.5}.mat-progress-bar .mat-progress-bar-secondary{display:none}.mat-progress-bar .mat-progress-bar-fill{animation:none;transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-fill{border-top:solid 4px}.mat-progress-bar .mat-progress-bar-fill::after{animation:none;content:"";display:inline-block;left:0}.mat-progress-bar[dir=rtl],[dir=rtl] .mat-progress-bar{transform:rotateY(180deg)}.mat-progress-bar[mode=query]{transform:rotateZ(180deg)}.mat-progress-bar[mode=query][dir=rtl],[dir=rtl] .mat-progress-bar[mode=query]{transform:rotateZ(180deg) rotateY(180deg)}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-fill,.mat-progress-bar[mode=query] .mat-progress-bar-fill{transition:none}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary,.mat-progress-bar[mode=query] .mat-progress-bar-primary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-translate 2000ms infinite linear;left:-145.166611%}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-primary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary,.mat-progress-bar[mode=query] .mat-progress-bar-secondary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-translate 2000ms infinite linear;left:-54.888891%;display:block}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-secondary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=buffer] .mat-progress-bar-background{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-background-scroll 250ms infinite linear;display:block}.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-buffer,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-background{animation:none;transition-duration:1ms}@keyframes mat-progress-bar-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mat-progress-bar-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mat-progress-bar-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-background-scroll{to{transform:translateX(-8px)}}\n'],encapsulation:2,changeDetection:0}),W})();function z(W,ne=0,Q=100){return Math.max(ne,Math.min(Q,W))}let U=(()=>{class W{}return W.\u0275fac=function(Q){return new(Q||W)},W.\u0275mod=e.oAB({type:W}),W.\u0275inj=e.cJS({imports:[[i.ez,u.BQ],u.BQ]}),W})()},773:(He,j,p)=>{"use strict";p.d(j,{Cq:()=>W,Ou:()=>U});var e=p(3191),i=p(925),u=p(9808),b=p(5e3),a=p(508),y=p(6360),d=p(727),P=p(5303);function D(Q,le){if(1&Q&&(b.O4$(),b._UZ(0,"circle",4)),2&Q){const q=b.oxw(),ie=b.MAs(1);b.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+q._spinnerAnimationLabel)("stroke-dashoffset",q._getStrokeDashOffset(),"px")("stroke-dasharray",q._getStrokeCircumference(),"px")("stroke-width",q._getCircleStrokeWidth(),"%")("transform-origin",q._getCircleTransformOrigin(ie)),b.uIk("r",q._getCircleRadius())}}function T(Q,le){if(1&Q&&(b.O4$(),b._UZ(0,"circle",4)),2&Q){const q=b.oxw(),ie=b.MAs(1);b.Udp("stroke-dashoffset",q._getStrokeDashOffset(),"px")("stroke-dasharray",q._getStrokeCircumference(),"px")("stroke-width",q._getCircleStrokeWidth(),"%")("transform-origin",q._getCircleTransformOrigin(ie)),b.uIk("r",q._getCircleRadius())}}const E=(0,a.pj)(class{constructor(Q){this._elementRef=Q}},"primary"),k=new b.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function w(){return{diameter:100}}});class U extends E{constructor(le,q,ie,se,J,me,x,t){super(le),this._document=ie,this._diameter=100,this._value=0,this._resizeSubscription=d.w0.EMPTY,this.mode="determinate";const r=U._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),r.has(ie.head)||r.set(ie.head,new Set([100])),this._noopAnimations="NoopAnimations"===se&&!!J&&!J._forceAnimations,"mat-spinner"===le.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),J&&(J.diameter&&(this.diameter=J.diameter),J.strokeWidth&&(this.strokeWidth=J.strokeWidth)),q.isBrowser&&q.SAFARI&&x&&me&&t&&(this._resizeSubscription=x.change(150).subscribe(()=>{"indeterminate"===this.mode&&t.run(()=>me.markForCheck())}))}get diameter(){return this._diameter}set diameter(le){this._diameter=(0,e.su)(le),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(le){this._strokeWidth=(0,e.su)(le)}get value(){return"determinate"===this.mode?this._value:0}set value(le){this._value=Math.max(0,Math.min(100,(0,e.su)(le)))}ngOnInit(){const le=this._elementRef.nativeElement;this._styleRoot=(0,i.kV)(le)||this._document.head,this._attachStyleNode(),le.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const le=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${le} ${le}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_getCircleTransformOrigin(le){var q;const ie=50*(null!==(q=le.currentScale)&&void 0!==q?q:1);return`${ie}% ${ie}%`}_attachStyleNode(){const le=this._styleRoot,q=this._diameter,ie=U._diameters;let se=ie.get(le);if(!se||!se.has(q)){const J=this._document.createElement("style");J.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),J.textContent=this._getAnimationText(),le.appendChild(J),se||(se=new Set,ie.set(le,se)),se.add(q)}}_getAnimationText(){const le=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*le).replace(/END_VALUE/g,""+.2*le).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}U._diameters=new WeakMap,U.\u0275fac=function(le){return new(le||U)(b.Y36(b.SBq),b.Y36(i.t4),b.Y36(u.K0,8),b.Y36(y.Qb,8),b.Y36(k),b.Y36(b.sBO),b.Y36(P.rL),b.Y36(b.R0b))},U.\u0275cmp=b.Xpm({type:U,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(le,q){2&le&&(b.uIk("aria-valuemin","determinate"===q.mode?0:null)("aria-valuemax","determinate"===q.mode?100:null)("aria-valuenow","determinate"===q.mode?q.value:null)("mode",q.mode),b.Udp("width",q.diameter,"px")("height",q.diameter,"px"),b.ekj("_mat-animation-noopable",q._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[b.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(le,q){1&le&&(b.O4$(),b.TgZ(0,"svg",0,1),b.YNc(2,D,1,11,"circle",2),b.YNc(3,T,1,9,"circle",3),b.qZA()),2&le&&(b.Udp("width",q.diameter,"px")("height",q.diameter,"px"),b.Q6J("ngSwitch","indeterminate"===q.mode),b.uIk("viewBox",q._getViewBox()),b.xp6(2),b.Q6J("ngSwitchCase",!0),b.xp6(1),b.Q6J("ngSwitchCase",!1))},directives:[u.RF,u.n9],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}\n"],encapsulation:2,changeDetection:0});let W=(()=>{class Q{}return Q.\u0275fac=function(q){return new(q||Q)},Q.\u0275mod=b.oAB({type:Q}),Q.\u0275inj=b.cJS({imports:[[a.BQ,u.ez],a.BQ]}),Q})()},9814:(He,j,p)=>{"use strict";p.d(j,{Fk:()=>ie,U0:()=>q,VQ:()=>W});var e=p(5e3),i=p(508),u=p(3191),b=p(3075),a=p(6360),y=p(5664),d=p(449);const P=["input"],D=function(se){return{enterDuration:se}},T=["*"],M=new e.OlP("mat-radio-default-options",{providedIn:"root",factory:function A(){return{color:"accent"}}});let E=0;const k={provide:b.JU,useExisting:(0,e.Gpc)(()=>W),multi:!0};class w{constructor(J,me){this.source=J,this.value=me}}const z=new e.OlP("MatRadioGroup");let U=(()=>{class se{constructor(me){this._changeDetector=me,this._value=null,this._name="mat-radio-group-"+E++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new e.vpe}get name(){return this._name}set name(me){this._name=me,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(me){this._labelPosition="before"===me?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(me){this._value!==me&&(this._value=me,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(me){this._selected=me,this.value=me?me.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(me){this._disabled=(0,u.Ig)(me),this._markRadiosForCheck()}get required(){return this._required}set required(me){this._required=(0,u.Ig)(me),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(me=>{me.name=this.name,me._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(x=>{x.checked=this.value===x.value,x.checked&&(this._selected=x)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new w(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(me=>me._markForCheck())}writeValue(me){this.value=me,this._changeDetector.markForCheck()}registerOnChange(me){this._controlValueAccessorChangeFn=me}registerOnTouched(me){this.onTouched=me}setDisabledState(me){this.disabled=me,this._changeDetector.markForCheck()}}return se.\u0275fac=function(me){return new(me||se)(e.Y36(e.sBO))},se.\u0275dir=e.lG2({type:se,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),se})(),W=(()=>{class se extends U{}return se.\u0275fac=function(){let J;return function(x){return(J||(J=e.n5z(se)))(x||se)}}(),se.\u0275dir=e.lG2({type:se,selectors:[["mat-radio-group"]],contentQueries:function(me,x,t){if(1&me&&e.Suo(t,q,5),2&me){let r;e.iGM(r=e.CRH())&&(x._radios=r)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[e._Bn([k,{provide:z,useExisting:se}]),e.qOj]}),se})();class ne{constructor(J){this._elementRef=J}}const Q=(0,i.Kr)((0,i.sb)(ne));let le=(()=>{class se extends Q{constructor(me,x,t,r,h,c,C,S){super(x),this._changeDetector=t,this._focusMonitor=r,this._radioDispatcher=h,this._providerOverride=C,this._uniqueId="mat-radio-"+ ++E,this.id=this._uniqueId,this.change=new e.vpe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=me,this._noopAnimations="NoopAnimations"===c,S&&(this.tabIndex=(0,u.su)(S,0)),this._removeUniqueSelectionListener=h.listen((I,_)=>{I!==this.id&&_===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(me){const x=(0,u.Ig)(me);this._checked!==x&&(this._checked=x,x&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!x&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),x&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(me){this._value!==me&&(this._value=me,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===me),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(me){this._labelPosition=me}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(me){this._setDisabled((0,u.Ig)(me))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(me){this._required=(0,u.Ig)(me)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(me){this._color=me}get inputId(){return`${this.id||this._uniqueId}-input`}focus(me,x){x?this._focusMonitor.focusVia(this._inputElement,x,me):this._inputElement.nativeElement.focus(me)}_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(me=>{!me&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new w(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(me){me.stopPropagation()}_onInputInteraction(me){if(me.stopPropagation(),!this.checked&&!this.disabled){const x=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),x&&this.radioGroup._emitChangeEvent())}}_setDisabled(me){this._disabled!==me&&(this._disabled=me,this._changeDetector.markForCheck())}_updateTabIndex(){var me;const x=this.radioGroup;let t;if(t=x&&x.selected&&!this.disabled?x.selected===this?this.tabIndex:-1:this.tabIndex,t!==this._previousTabIndex){const r=null===(me=this._inputElement)||void 0===me?void 0:me.nativeElement;r&&(r.setAttribute("tabindex",t+""),this._previousTabIndex=t)}}}return se.\u0275fac=function(me){e.$Z()},se.\u0275dir=e.lG2({type:se,viewQuery:function(me,x){if(1&me&&e.Gf(P,5),2&me){let t;e.iGM(t=e.CRH())&&(x._inputElement=t.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]}),se})(),q=(()=>{class se extends le{constructor(me,x,t,r,h,c,C,S){super(me,x,t,r,h,c,C,S)}}return se.\u0275fac=function(me){return new(me||se)(e.Y36(z,8),e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(y.tE),e.Y36(d.A8),e.Y36(a.Qb,8),e.Y36(M,8),e.$8M("tabindex"))},se.\u0275cmp=e.Xpm({type:se,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(me,x){1&me&&e.NdJ("focus",function(){return x._inputElement.nativeElement.focus()}),2&me&&(e.uIk("tabindex",null)("id",x.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),e.ekj("mat-radio-checked",x.checked)("mat-radio-disabled",x.disabled)("_mat-animation-noopable",x._noopAnimations)("mat-primary","primary"===x.color)("mat-accent","accent"===x.color)("mat-warn","warn"===x.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[e.qOj],ngContentSelectors:T,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(me,x){if(1&me&&(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(r){return x._onInputInteraction(r)})("click",function(r){return x._onInputClick(r)}),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&me){const t=e.MAs(1);e.uIk("for",x.inputId),e.xp6(5),e.Q6J("id",x.inputId)("checked",x.checked)("disabled",x.disabled)("required",x.required),e.uIk("name",x.name)("value",x.value)("aria-label",x.ariaLabel)("aria-labelledby",x.ariaLabelledby)("aria-describedby",x.ariaDescribedby),e.xp6(2),e.Q6J("matRippleTrigger",t)("matRippleDisabled",x._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",e.VKq(17,D,x._noopAnimations?0:150)),e.xp6(2),e.ekj("mat-radio-label-before","before"==x.labelPosition)}},directives:[i.wG],styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;opacity:0;transition:transform ease 280ms,background-color ease 280ms,opacity linear 1ms 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5);opacity:1;transition:transform ease 280ms,background-color ease 280ms}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-label-content{-webkit-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none;top:0;left:0}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{opacity:0;position:absolute;top:0;left:0;margin:0;width:100%;height:100%;cursor:inherit;z-index:-1}.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-ripple,.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-ripple{outline:solid 3px}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\n"],encapsulation:2,changeDetection:0}),se})(),ie=(()=>{class se{}return se.\u0275fac=function(me){return new(me||se)},se.\u0275mod=e.oAB({type:se}),se.\u0275inj=e.cJS({imports:[[i.si,i.BQ],i.BQ]}),se})()},4107:(He,j,p)=>{"use strict";p.d(j,{$L:()=>ot,LD:()=>ce,gD:()=>Ae});var e=p(9776),i=p(9808),u=p(5e3),b=p(508),a=p(7322),y=p(5303),d=p(5664),P=p(3191),D=p(449),T=p(1159),M=p(3075),A=p(7579),E=p(9770),k=p(6451),w=p(8675),z=p(3900),U=p(5698),W=p(9300),ne=p(4004),Q=p(1884),le=p(2722),q=p(1777),ie=p(226);const se=["trigger"],J=["panel"];function me(Te,xe){if(1&Te&&(u.TgZ(0,"span",8),u._uU(1),u.qZA()),2&Te){const G=u.oxw();u.xp6(1),u.Oqu(G.placeholder)}}function x(Te,xe){if(1&Te&&(u.TgZ(0,"span",12),u._uU(1),u.qZA()),2&Te){const G=u.oxw(2);u.xp6(1),u.Oqu(G.triggerValue)}}function t(Te,xe){1&Te&&u.Hsn(0,0,["*ngSwitchCase","true"])}function r(Te,xe){if(1&Te&&(u.TgZ(0,"span",9),u.YNc(1,x,2,1,"span",10),u.YNc(2,t,1,0,"ng-content",11),u.qZA()),2&Te){const G=u.oxw();u.Q6J("ngSwitch",!!G.customTrigger),u.xp6(2),u.Q6J("ngSwitchCase",!0)}}function h(Te,xe){if(1&Te){const G=u.EpF();u.TgZ(0,"div",13)(1,"div",14,15),u.NdJ("@transformPanel.done",function(ue){return u.CHM(G),u.oxw()._panelDoneAnimatingStream.next(ue.toState)})("keydown",function(ue){return u.CHM(G),u.oxw()._handleKeydown(ue)}),u.Hsn(3,1),u.qZA()()}if(2&Te){const G=u.oxw();u.Q6J("@transformPanelWrap",void 0),u.xp6(1),u.Gre("mat-select-panel ",G._getPanelTheme(),""),u.Udp("transform-origin",G._transformOrigin)("font-size",G._triggerFontSize,"px"),u.Q6J("ngClass",G.panelClass)("@transformPanel",G.multiple?"showing-multiple":"showing"),u.uIk("id",G.id+"-panel")("aria-multiselectable",G.multiple)("aria-label",G.ariaLabel||null)("aria-labelledby",G._getPanelAriaLabelledby())}}const c=[[["mat-select-trigger"]],"*"],C=["mat-select-trigger","*"],S={transformPanelWrap:(0,q.X$)("transformPanelWrap",[(0,q.eR)("* => void",(0,q.IO)("@transformPanel",[(0,q.pV)()],{optional:!0}))]),transformPanel:(0,q.X$)("transformPanel",[(0,q.SB)("void",(0,q.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,q.SB)("showing",(0,q.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,q.SB)("showing-multiple",(0,q.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,q.eR)("void => *",(0,q.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,q.eR)("* => void",(0,q.jt)("100ms 25ms linear",(0,q.oB)({opacity:0})))])};let g=0;const V=256,ke=new u.OlP("mat-select-scroll-strategy"),te=new u.OlP("MAT_SELECT_CONFIG"),ze={provide:ke,deps:[e.aV],useFactory:function Ee(Te){return()=>Te.scrollStrategies.reposition()}};class be{constructor(xe,G){this.source=xe,this.value=G}}const Z=(0,b.Kr)((0,b.sb)((0,b.Id)((0,b.FD)(class{constructor(Te,xe,G,ee,ue){this._elementRef=Te,this._defaultErrorStateMatcher=xe,this._parentForm=G,this._parentFormGroup=ee,this.ngControl=ue}})))),Y=new u.OlP("MatSelectTrigger");let ot=(()=>{class Te{}return Te.\u0275fac=function(G){return new(G||Te)},Te.\u0275dir=u.lG2({type:Te,selectors:[["mat-select-trigger"]],features:[u._Bn([{provide:Y,useExisting:Te}])]}),Te})(),Ie=(()=>{class Te extends Z{constructor(G,ee,ue,ve,Le,lt,ht,Tt,hi,jt,Gt,di,vt,kt){var gt,Qe,_t;super(Le,ve,ht,Tt,jt),this._viewportRuler=G,this._changeDetectorRef=ee,this._ngZone=ue,this._dir=lt,this._parentFormField=hi,this._liveAnnouncer=vt,this._defaultOptions=kt,this._panelOpen=!1,this._compareWith=(ei,Zt)=>ei===Zt,this._uid="mat-select-"+g++,this._triggerAriaLabelledBy=null,this._destroy=new A.x,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+g++,this._panelDoneAnimatingStream=new A.x,this._overlayPanelClass=(null===(gt=this._defaultOptions)||void 0===gt?void 0:gt.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=null!==(_t=null===(Qe=this._defaultOptions)||void 0===Qe?void 0:Qe.disableOptionCentering)&&void 0!==_t&&_t,this.ariaLabel="",this.optionSelectionChanges=(0,E.P)(()=>{const ei=this.options;return ei?ei.changes.pipe((0,w.O)(ei),(0,z.w)(()=>(0,k.T)(...ei.map(Zt=>Zt.onSelectionChange)))):this._ngZone.onStable.pipe((0,U.q)(1),(0,z.w)(()=>this.optionSelectionChanges))}),this.openedChange=new u.vpe,this._openedStream=this.openedChange.pipe((0,W.h)(ei=>ei),(0,ne.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,W.h)(ei=>!ei),(0,ne.U)(()=>{})),this.selectionChange=new u.vpe,this.valueChange=new u.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==kt?void 0:kt.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=kt.typeaheadDebounceInterval),this._scrollStrategyFactory=di,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(Gt)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(G){this._placeholder=G,this.stateChanges.next()}get required(){var G,ee,ue,ve;return null!==(ve=null!==(G=this._required)&&void 0!==G?G:null===(ue=null===(ee=this.ngControl)||void 0===ee?void 0:ee.control)||void 0===ue?void 0:ue.hasValidator(M.kI.required))&&void 0!==ve&&ve}set required(G){this._required=(0,P.Ig)(G),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(G){this._multiple=(0,P.Ig)(G)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(G){this._disableOptionCentering=(0,P.Ig)(G)}get compareWith(){return this._compareWith}set compareWith(G){this._compareWith=G,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(G){this._assignValue(G)&&this._onChange(G)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(G){this._typeaheadDebounceInterval=(0,P.su)(G)}get id(){return this._id}set id(G){this._id=G||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new D.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,Q.x)(),(0,le.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,le.R)(this._destroy)).subscribe(G=>{G.added.forEach(ee=>ee.select()),G.removed.forEach(ee=>ee.deselect())}),this.options.changes.pipe((0,w.O)(null),(0,le.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const G=this._getTriggerAriaLabelledby(),ee=this.ngControl;if(G!==this._triggerAriaLabelledBy){const ue=this._elementRef.nativeElement;this._triggerAriaLabelledBy=G,G?ue.setAttribute("aria-labelledby",G):ue.removeAttribute("aria-labelledby")}ee&&(this._previousControl!==ee.control&&(void 0!==this._previousControl&&null!==ee.disabled&&ee.disabled!==this.disabled&&(this.disabled=ee.disabled),this._previousControl=ee.control),this.updateErrorState())}ngOnChanges(G){G.disabled&&this.stateChanges.next(),G.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(G){this._assignValue(G)}registerOnChange(G){this._onChange=G}registerOnTouched(G){this._onTouched=G}setDisabledState(G){this.disabled=G,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){var G,ee;return this.multiple?(null===(G=this._selectionModel)||void 0===G?void 0:G.selected)||[]:null===(ee=this._selectionModel)||void 0===ee?void 0:ee.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const G=this._selectionModel.selected.map(ee=>ee.viewValue);return this._isRtl()&&G.reverse(),G.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(G){this.disabled||(this.panelOpen?this._handleOpenKeydown(G):this._handleClosedKeydown(G))}_handleClosedKeydown(G){const ee=G.keyCode,ue=ee===T.JH||ee===T.LH||ee===T.oh||ee===T.SV,ve=ee===T.K5||ee===T.L_,Le=this._keyManager;if(!Le.isTyping()&&ve&&!(0,T.Vb)(G)||(this.multiple||G.altKey)&&ue)G.preventDefault(),this.open();else if(!this.multiple){const lt=this.selected;Le.onKeydown(G);const ht=this.selected;ht&&lt!==ht&&this._liveAnnouncer.announce(ht.viewValue,1e4)}}_handleOpenKeydown(G){const ee=this._keyManager,ue=G.keyCode,ve=ue===T.JH||ue===T.LH,Le=ee.isTyping();if(ve&&G.altKey)G.preventDefault(),this.close();else if(Le||ue!==T.K5&&ue!==T.L_||!ee.activeItem||(0,T.Vb)(G))if(!Le&&this._multiple&&ue===T.A&&G.ctrlKey){G.preventDefault();const lt=this.options.some(ht=>!ht.disabled&&!ht.selected);this.options.forEach(ht=>{ht.disabled||(lt?ht.select():ht.deselect())})}else{const lt=ee.activeItemIndex;ee.onKeydown(G),this._multiple&&ve&&G.shiftKey&&ee.activeItem&&ee.activeItemIndex!==lt&&ee.activeItem._selectViaInteraction()}else G.preventDefault(),ee.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,U.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(G){if(this._selectionModel.selected.forEach(ee=>ee.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&G)Array.isArray(G),G.forEach(ee=>this._selectOptionByValue(ee)),this._sortValues();else{const ee=this._selectOptionByValue(G);ee?this._keyManager.updateActiveItem(ee):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(G){const ee=this.options.find(ue=>{if(this._selectionModel.isSelected(ue))return!1;try{return null!=ue.value&&this._compareWith(ue.value,G)}catch(ve){return!1}});return ee&&this._selectionModel.select(ee),ee}_assignValue(G){return!!(G!==this._value||this._multiple&&Array.isArray(G))&&(this.options&&this._setSelectionByValue(G),this._value=G,!0)}_initKeyManager(){this._keyManager=new d.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,le.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe((0,le.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 G=(0,k.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,le.R)(G)).subscribe(ee=>{this._onSelect(ee.source,ee.isUserInput),ee.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,k.T)(...this.options.map(ee=>ee._stateChanges)).pipe((0,le.R)(G)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(G,ee){const ue=this._selectionModel.isSelected(G);null!=G.value||this._multiple?(ue!==G.selected&&(G.selected?this._selectionModel.select(G):this._selectionModel.deselect(G)),ee&&this._keyManager.setActiveItem(G),this.multiple&&(this._sortValues(),ee&&this.focus())):(G.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(G.value)),ue!==this._selectionModel.isSelected(G)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const G=this.options.toArray();this._selectionModel.sort((ee,ue)=>this.sortComparator?this.sortComparator(ee,ue,G):G.indexOf(ee)-G.indexOf(ue)),this.stateChanges.next()}}_propagateChanges(G){let ee=null;ee=this.multiple?this.selected.map(ue=>ue.value):this.selected?this.selected.value:G,this._value=ee,this.valueChange.emit(ee),this._onChange(ee),this.selectionChange.emit(this._getChangeEvent(ee)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var G;return!this._panelOpen&&!this.disabled&&(null===(G=this.options)||void 0===G?void 0:G.length)>0}focus(G){this._elementRef.nativeElement.focus(G)}_getPanelAriaLabelledby(){var G;if(this.ariaLabel)return null;const ee=null===(G=this._parentFormField)||void 0===G?void 0:G.getLabelId();return this.ariaLabelledby?(ee?ee+" ":"")+this.ariaLabelledby:ee}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var G;if(this.ariaLabel)return null;const ee=null===(G=this._parentFormField)||void 0===G?void 0:G.getLabelId();let ue=(ee?ee+" ":"")+this._valueId;return this.ariaLabelledby&&(ue+=" "+this.ariaLabelledby),ue}_panelDoneAnimating(G){this.openedChange.emit(G)}setDescribedByIds(G){this._ariaDescribedby=G.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return Te.\u0275fac=function(G){return new(G||Te)(u.Y36(y.rL),u.Y36(u.sBO),u.Y36(u.R0b),u.Y36(b.rD),u.Y36(u.SBq),u.Y36(ie.Is,8),u.Y36(M.F,8),u.Y36(M.sg,8),u.Y36(a.G_,8),u.Y36(M.a5,10),u.$8M("tabindex"),u.Y36(ke),u.Y36(d.Kd),u.Y36(te,8))},Te.\u0275dir=u.lG2({type:Te,viewQuery:function(G,ee){if(1&G&&(u.Gf(se,5),u.Gf(J,5),u.Gf(e.pI,5)),2&G){let ue;u.iGM(ue=u.CRH())&&(ee.trigger=ue.first),u.iGM(ue=u.CRH())&&(ee.panel=ue.first),u.iGM(ue=u.CRH())&&(ee._overlayDir=ue.first)}},inputs:{panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[u.qOj,u.TTD]}),Te})(),Ae=(()=>{class Te extends Ie{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(G,ee,ue){const ve=this._getItemHeight();return Math.min(Math.max(0,ve*G-ee+ve/2),ue)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,le.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,U.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(G){const ee=(0,b.CB)(G,this.options,this.optionGroups),ue=this._getItemHeight();this.panel.nativeElement.scrollTop=0===G&&1===ee?0:(0,b.jH)((G+ee)*ue,ue,this.panel.nativeElement.scrollTop,V)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(G){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(G)}_getChangeEvent(G){return new be(this,G)}_calculateOverlayOffsetX(){const G=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),ee=this._viewportRuler.getViewportSize(),ue=this._isRtl(),ve=this.multiple?56:32;let Le;if(this.multiple)Le=40;else if(this.disableOptionCentering)Le=16;else{let Tt=this._selectionModel.selected[0]||this.options.first;Le=Tt&&Tt.group?32:16}ue||(Le*=-1);const lt=0-(G.left+Le-(ue?ve:0)),ht=G.right+Le-ee.width+(ue?0:ve);lt>0?Le+=lt+8:ht>0&&(Le-=ht+8),this._overlayDir.offsetX=Math.round(Le),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(G,ee,ue){const ve=this._getItemHeight(),Le=(ve-this._triggerRect.height)/2,lt=Math.floor(V/ve);let ht;return this.disableOptionCentering?0:(ht=0===this._scrollTop?G*ve:this._scrollTop===ue?(G-(this._getItemCount()-lt))*ve+(ve-(this._getItemCount()*ve-V)%ve):ee-ve/2,Math.round(-1*ht-Le))}_checkOverlayWithinViewport(G){const ee=this._getItemHeight(),ue=this._viewportRuler.getViewportSize(),ve=this._triggerRect.top-8,Le=ue.height-this._triggerRect.bottom-8,lt=Math.abs(this._offsetY),Tt=Math.min(this._getItemCount()*ee,V)-lt-this._triggerRect.height;Tt>Le?this._adjustPanelUp(Tt,Le):lt>ve?this._adjustPanelDown(lt,ve,G):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(G,ee){const ue=Math.round(G-ee);this._scrollTop-=ue,this._offsetY-=ue,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(G,ee,ue){const ve=Math.round(G-ee);if(this._scrollTop+=ve,this._offsetY+=ve,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=ue)return this._scrollTop=ue,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const G=this._getItemHeight(),ee=this._getItemCount(),ue=Math.min(ee*G,V),Le=ee*G-ue;let lt;lt=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),lt+=(0,b.CB)(lt,this.options,this.optionGroups);const ht=ue/2;this._scrollTop=this._calculateOverlayScroll(lt,ht,Le),this._offsetY=this._calculateOverlayOffsetY(lt,ht,Le),this._checkOverlayWithinViewport(Le)}_getOriginBasedOnOption(){const G=this._getItemHeight(),ee=(G-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-ee+G/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return Te.\u0275fac=function(){let xe;return function(ee){return(xe||(xe=u.n5z(Te)))(ee||Te)}}(),Te.\u0275cmp=u.Xpm({type:Te,selectors:[["mat-select"]],contentQueries:function(G,ee,ue){if(1&G&&(u.Suo(ue,Y,5),u.Suo(ue,b.ey,5),u.Suo(ue,b.K7,5)),2&G){let ve;u.iGM(ve=u.CRH())&&(ee.customTrigger=ve.first),u.iGM(ve=u.CRH())&&(ee.options=ve),u.iGM(ve=u.CRH())&&(ee.optionGroups=ve)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(G,ee){1&G&&u.NdJ("keydown",function(ve){return ee._handleKeydown(ve)})("focus",function(){return ee._onFocus()})("blur",function(){return ee._onBlur()}),2&G&&(u.uIk("id",ee.id)("tabindex",ee.tabIndex)("aria-controls",ee.panelOpen?ee.id+"-panel":null)("aria-expanded",ee.panelOpen)("aria-label",ee.ariaLabel||null)("aria-required",ee.required.toString())("aria-disabled",ee.disabled.toString())("aria-invalid",ee.errorState)("aria-describedby",ee._ariaDescribedby||null)("aria-activedescendant",ee._getAriaActiveDescendant()),u.ekj("mat-select-disabled",ee.disabled)("mat-select-invalid",ee.errorState)("mat-select-required",ee.required)("mat-select-empty",ee.empty)("mat-select-multiple",ee.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[u._Bn([{provide:a.Eo,useExisting:Te},{provide:b.HF,useExisting:Te}]),u.qOj],ngContentSelectors:C,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(G,ee){if(1&G&&(u.F$t(c),u.TgZ(0,"div",0,1),u.NdJ("click",function(){return ee.toggle()}),u.TgZ(3,"div",2),u.YNc(4,me,2,1,"span",3),u.YNc(5,r,3,2,"span",4),u.qZA(),u.TgZ(6,"div",5),u._UZ(7,"div",6),u.qZA()(),u.YNc(8,h,4,14,"ng-template",7),u.NdJ("backdropClick",function(){return ee.close()})("attach",function(){return ee._onAttached()})("detach",function(){return ee.close()})),2&G){const ue=u.MAs(1);u.uIk("aria-owns",ee.panelOpen?ee.id+"-panel":null),u.xp6(3),u.Q6J("ngSwitch",ee.empty),u.uIk("id",ee._valueId),u.xp6(1),u.Q6J("ngSwitchCase",!0),u.xp6(1),u.Q6J("ngSwitchCase",!1),u.xp6(3),u.Q6J("cdkConnectedOverlayPanelClass",ee._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",ee._scrollStrategy)("cdkConnectedOverlayOrigin",ue)("cdkConnectedOverlayOpen",ee.panelOpen)("cdkConnectedOverlayPositions",ee._positions)("cdkConnectedOverlayMinWidth",null==ee._triggerRect?null:ee._triggerRect.width)("cdkConnectedOverlayOffsetY",ee._offsetY)}},directives:[e.xu,i.RF,i.n9,i.ED,e.pI,i.mk],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{height:16px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-form-field.mat-focused .mat-select-arrow{transform:translateX(0)}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}\n'],encapsulation:2,data:{animation:[S.transformPanelWrap,S.transformPanel]},changeDetection:0}),Te})(),ce=(()=>{class Te{}return Te.\u0275fac=function(G){return new(G||Te)},Te.\u0275mod=u.oAB({type:Te}),Te.\u0275inj=u.cJS({providers:[ze],imports:[[i.ez,e.U8,b.Ng,b.BQ],y.ZD,a.lN,b.Ng,b.BQ]}),Te})()},2638:(He,j,p)=>{"use strict";p.d(j,{JX:()=>ye,Rh:()=>fe,SJ:()=>Ee,TM:()=>ke});var e=p(5303),i=p(9808),u=p(5e3),b=p(508),a=p(3191),y=p(1159),d=p(7579),P=p(4968),D=p(6451),T=p(9300),M=p(4004),A=p(9718),E=p(2722),k=p(1884),w=p(5698),z=p(8675),U=p(8372),W=p(1777),ne=p(6360),Q=p(5664),le=p(925),q=p(226);const ie=["*"],se=["content"];function J(te,ze){if(1&te){const be=u.EpF();u.TgZ(0,"div",2),u.NdJ("click",function(){return u.CHM(be),u.oxw()._onBackdropClicked()}),u.qZA()}if(2&te){const be=u.oxw();u.ekj("mat-drawer-shown",be._isShowingBackdrop())}}function me(te,ze){1&te&&(u.TgZ(0,"mat-drawer-content"),u.Hsn(1,2),u.qZA())}const x=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],t=["mat-drawer","mat-drawer-content","*"];function r(te,ze){if(1&te){const be=u.EpF();u.TgZ(0,"div",2),u.NdJ("click",function(){return u.CHM(be),u.oxw()._onBackdropClicked()}),u.qZA()}if(2&te){const be=u.oxw();u.ekj("mat-drawer-shown",be._isShowingBackdrop())}}function h(te,ze){1&te&&(u.TgZ(0,"mat-sidenav-content"),u.Hsn(1,2),u.qZA())}const c=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],C=["mat-sidenav","mat-sidenav-content","*"],I={transformDrawer:(0,W.X$)("transform",[(0,W.SB)("open, open-instant",(0,W.oB)({transform:"none",visibility:"visible"})),(0,W.SB)("void",(0,W.oB)({"box-shadow":"none",visibility:"hidden"})),(0,W.eR)("void => open-instant",(0,W.jt)("0ms")),(0,W.eR)("void <=> open, open-instant => void",(0,W.jt)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},n=new u.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function V(){return!1}}),g=new u.OlP("MAT_DRAWER_CONTAINER");let R=(()=>{class te extends e.PQ{constructor(be,Z,Y,ot,Ie){super(Y,ot,Ie),this._changeDetectorRef=be,this._container=Z}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return te.\u0275fac=function(be){return new(be||te)(u.Y36(u.sBO),u.Y36((0,u.Gpc)(()=>$)),u.Y36(u.SBq),u.Y36(e.mF),u.Y36(u.R0b))},te.\u0275cmp=u.Xpm({type:te,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(be,Z){2&be&&u.Udp("margin-left",Z._container._contentMargins.left,"px")("margin-right",Z._container._contentMargins.right,"px")},features:[u._Bn([{provide:e.PQ,useExisting:te}]),u.qOj],ngContentSelectors:ie,decls:1,vars:0,template:function(be,Z){1&be&&(u.F$t(),u.Hsn(0))},encapsulation:2,changeDetection:0}),te})(),H=(()=>{class te{constructor(be,Z,Y,ot,Ie,Ae,ce,Te){this._elementRef=be,this._focusTrapFactory=Z,this._focusMonitor=Y,this._platform=ot,this._ngZone=Ie,this._interactivityChecker=Ae,this._doc=ce,this._container=Te,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new d.x,this._animationEnd=new d.x,this._animationState="void",this.openedChange=new u.vpe(!0),this._openedStream=this.openedChange.pipe((0,T.h)(xe=>xe),(0,M.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,T.h)(xe=>xe.fromState!==xe.toState&&0===xe.toState.indexOf("open")),(0,A.h)(void 0)),this._closedStream=this.openedChange.pipe((0,T.h)(xe=>!xe),(0,M.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,T.h)(xe=>xe.fromState!==xe.toState&&"void"===xe.toState),(0,A.h)(void 0)),this._destroyed=new d.x,this.onPositionChanged=new u.vpe,this._modeChanged=new d.x,this.openedChange.subscribe(xe=>{xe?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{(0,P.R)(this._elementRef.nativeElement,"keydown").pipe((0,T.h)(xe=>xe.keyCode===y.hY&&!this.disableClose&&!(0,y.Vb)(xe)),(0,E.R)(this._destroyed)).subscribe(xe=>this._ngZone.run(()=>{this.close(),xe.stopPropagation(),xe.preventDefault()}))}),this._animationEnd.pipe((0,k.x)((xe,G)=>xe.fromState===G.fromState&&xe.toState===G.toState)).subscribe(xe=>{const{fromState:G,toState:ee}=xe;(0===ee.indexOf("open")&&"void"===G||"void"===ee&&0===G.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(be){(be="end"===be?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(be),this._position=be,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(be){this._mode=be,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(be){this._disableClose=(0,a.Ig)(be)}get autoFocus(){const be=this._autoFocus;return null==be?"side"===this.mode?"dialog":"first-tabbable":be}set autoFocus(be){("true"===be||"false"===be||null==be)&&(be=(0,a.Ig)(be)),this._autoFocus=be}get opened(){return this._opened}set opened(be){this.toggle((0,a.Ig)(be))}_forceFocus(be,Z){this._interactivityChecker.isFocusable(be)||(be.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const Y=()=>{be.removeEventListener("blur",Y),be.removeEventListener("mousedown",Y),be.removeAttribute("tabindex")};be.addEventListener("blur",Y),be.addEventListener("mousedown",Y)})),be.focus(Z)}_focusByCssSelector(be,Z){let Y=this._elementRef.nativeElement.querySelector(be);Y&&this._forceFocus(Y,Z)}_takeFocus(){if(!this._focusTrap)return;const be=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(Z=>{!Z&&"function"==typeof this._elementRef.nativeElement.focus&&be.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(be){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,be):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const be=this._doc.activeElement;return!!be&&this._elementRef.nativeElement.contains(be)}ngAfterViewInit(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){var be;this._focusTrap&&this._focusTrap.destroy(),null===(be=this._anchor)||void 0===be||be.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(be){return this.toggle(!0,be)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(be=!this.opened,Z){be&&Z&&(this._openedVia=Z);const Y=this._setOpen(be,!be&&this._isFocusWithinDrawer(),this._openedVia||"program");return be||(this._openedVia=null),Y}_setOpen(be,Z,Y){return this._opened=be,be?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",Z&&this._restoreFocus(Y)),this._updateFocusTrapState(),new Promise(ot=>{this.openedChange.pipe((0,w.q)(1)).subscribe(Ie=>ot(Ie?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_updatePositionInParent(be){const Z=this._elementRef.nativeElement,Y=Z.parentNode;"end"===be?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),Y.insertBefore(this._anchor,Z)),Y.appendChild(Z)):this._anchor&&this._anchor.parentNode.insertBefore(Z,this._anchor)}}return te.\u0275fac=function(be){return new(be||te)(u.Y36(u.SBq),u.Y36(Q.qV),u.Y36(Q.tE),u.Y36(le.t4),u.Y36(u.R0b),u.Y36(Q.ic),u.Y36(i.K0,8),u.Y36(g,8))},te.\u0275cmp=u.Xpm({type:te,selectors:[["mat-drawer"]],viewQuery:function(be,Z){if(1&be&&u.Gf(se,5),2&be){let Y;u.iGM(Y=u.CRH())&&(Z._content=Y.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(be,Z){1&be&&u.WFA("@transform.start",function(ot){return Z._animationStarted.next(ot)})("@transform.done",function(ot){return Z._animationEnd.next(ot)}),2&be&&(u.uIk("align",null),u.d8E("@transform",Z._animationState),u.ekj("mat-drawer-end","end"===Z.position)("mat-drawer-over","over"===Z.mode)("mat-drawer-push","push"===Z.mode)("mat-drawer-side","side"===Z.mode)("mat-drawer-opened",Z.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:ie,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(be,Z){1&be&&(u.F$t(),u.TgZ(0,"div",0,1),u.Hsn(2),u.qZA())},directives:[e.PQ],encapsulation:2,data:{animation:[I.transformDrawer]},changeDetection:0}),te})(),$=(()=>{class te{constructor(be,Z,Y,ot,Ie,Ae=!1,ce){this._dir=be,this._element=Z,this._ngZone=Y,this._changeDetectorRef=ot,this._animationMode=ce,this._drawers=new u.n_E,this.backdropClick=new u.vpe,this._destroyed=new d.x,this._doCheckSubject=new d.x,this._contentMargins={left:null,right:null},this._contentMarginChanges=new d.x,be&&be.change.pipe((0,E.R)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),Ie.change().pipe((0,E.R)(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=Ae}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(be){this._autosize=(0,a.Ig)(be)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(be){this._backdropOverride=null==be?null:(0,a.Ig)(be)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe((0,z.O)(this._allDrawers),(0,E.R)(this._destroyed)).subscribe(be=>{this._drawers.reset(be.filter(Z=>!Z._container||Z._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe((0,z.O)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(be=>{this._watchDrawerToggle(be),this._watchDrawerPosition(be),this._watchDrawerMode(be)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,U.b)(10),(0,E.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(be=>be.open())}close(){this._drawers.forEach(be=>be.close())}updateContentMargins(){let be=0,Z=0;if(this._left&&this._left.opened)if("side"==this._left.mode)be+=this._left._getWidth();else if("push"==this._left.mode){const Y=this._left._getWidth();be+=Y,Z-=Y}if(this._right&&this._right.opened)if("side"==this._right.mode)Z+=this._right._getWidth();else if("push"==this._right.mode){const Y=this._right._getWidth();Z+=Y,be-=Y}be=be||null,Z=Z||null,(be!==this._contentMargins.left||Z!==this._contentMargins.right)&&(this._contentMargins={left:be,right:Z},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(be){be._animationStarted.pipe((0,T.h)(Z=>Z.fromState!==Z.toState),(0,E.R)(this._drawers.changes)).subscribe(Z=>{"open-instant"!==Z.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==be.mode&&be.openedChange.pipe((0,E.R)(this._drawers.changes)).subscribe(()=>this._setContainerClass(be.opened))}_watchDrawerPosition(be){!be||be.onPositionChanged.pipe((0,E.R)(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,w.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(be){be&&be._modeChanged.pipe((0,E.R)((0,D.T)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(be){const Z=this._element.nativeElement.classList,Y="mat-drawer-container-has-open";be?Z.add(Y):Z.remove(Y)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(be=>{"end"==be.position?this._end=be:this._start=be}),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(be=>be&&!be.disableClose&&this._canHaveBackdrop(be)).forEach(be=>be._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(be){return"side"!==be.mode||!!this._backdropOverride}_isDrawerOpen(be){return null!=be&&be.opened}}return te.\u0275fac=function(be){return new(be||te)(u.Y36(q.Is,8),u.Y36(u.SBq),u.Y36(u.R0b),u.Y36(u.sBO),u.Y36(e.rL),u.Y36(n),u.Y36(ne.Qb,8))},te.\u0275cmp=u.Xpm({type:te,selectors:[["mat-drawer-container"]],contentQueries:function(be,Z,Y){if(1&be&&(u.Suo(Y,R,5),u.Suo(Y,H,5)),2&be){let ot;u.iGM(ot=u.CRH())&&(Z._content=ot.first),u.iGM(ot=u.CRH())&&(Z._allDrawers=ot)}},viewQuery:function(be,Z){if(1&be&&u.Gf(R,5),2&be){let Y;u.iGM(Y=u.CRH())&&(Z._userContent=Y.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(be,Z){2&be&&u.ekj("mat-drawer-container-explicit-backdrop",Z._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[u._Bn([{provide:g,useExisting:te}])],ngContentSelectors:t,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(be,Z){1&be&&(u.F$t(x),u.YNc(0,J,1,2,"div",0),u.Hsn(1),u.Hsn(2,1),u.YNc(3,me,2,0,"mat-drawer-content",1)),2&be&&(u.Q6J("ngIf",Z.hasBackdrop),u.xp6(3),u.Q6J("ngIf",!Z._content))},directives:[R,i.O5],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n'],encapsulation:2,changeDetection:0}),te})(),fe=(()=>{class te extends R{constructor(be,Z,Y,ot,Ie){super(be,Z,Y,ot,Ie)}}return te.\u0275fac=function(be){return new(be||te)(u.Y36(u.sBO),u.Y36((0,u.Gpc)(()=>ke)),u.Y36(u.SBq),u.Y36(e.mF),u.Y36(u.R0b))},te.\u0275cmp=u.Xpm({type:te,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(be,Z){2&be&&u.Udp("margin-left",Z._container._contentMargins.left,"px")("margin-right",Z._container._contentMargins.right,"px")},features:[u._Bn([{provide:e.PQ,useExisting:te}]),u.qOj],ngContentSelectors:ie,decls:1,vars:0,template:function(be,Z){1&be&&(u.F$t(),u.Hsn(0))},encapsulation:2,changeDetection:0}),te})(),ye=(()=>{class te extends H{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(be){this._fixedInViewport=(0,a.Ig)(be)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(be){this._fixedTopGap=(0,a.su)(be)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(be){this._fixedBottomGap=(0,a.su)(be)}}return te.\u0275fac=function(){let ze;return function(Z){return(ze||(ze=u.n5z(te)))(Z||te)}}(),te.\u0275cmp=u.Xpm({type:te,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(be,Z){2&be&&(u.uIk("align",null),u.Udp("top",Z.fixedInViewport?Z.fixedTopGap:null,"px")("bottom",Z.fixedInViewport?Z.fixedBottomGap:null,"px"),u.ekj("mat-drawer-end","end"===Z.position)("mat-drawer-over","over"===Z.mode)("mat-drawer-push","push"===Z.mode)("mat-drawer-side","side"===Z.mode)("mat-drawer-opened",Z.opened)("mat-sidenav-fixed",Z.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[u.qOj],ngContentSelectors:ie,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(be,Z){1&be&&(u.F$t(),u.TgZ(0,"div",0,1),u.Hsn(2),u.qZA())},directives:[e.PQ],encapsulation:2,data:{animation:[I.transformDrawer]},changeDetection:0}),te})(),ke=(()=>{class te extends ${}return te.\u0275fac=function(){let ze;return function(Z){return(ze||(ze=u.n5z(te)))(Z||te)}}(),te.\u0275cmp=u.Xpm({type:te,selectors:[["mat-sidenav-container"]],contentQueries:function(be,Z,Y){if(1&be&&(u.Suo(Y,fe,5),u.Suo(Y,ye,5)),2&be){let ot;u.iGM(ot=u.CRH())&&(Z._content=ot.first),u.iGM(ot=u.CRH())&&(Z._allDrawers=ot)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(be,Z){2&be&&u.ekj("mat-drawer-container-explicit-backdrop",Z._backdropOverride)},exportAs:["matSidenavContainer"],features:[u._Bn([{provide:g,useExisting:te}]),u.qOj],ngContentSelectors:C,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(be,Z){1&be&&(u.F$t(c),u.YNc(0,r,1,2,"div",0),u.Hsn(1),u.Hsn(2,1),u.YNc(3,h,2,0,"mat-sidenav-content",1)),2&be&&(u.Q6J("ngIf",Z.hasBackdrop),u.xp6(3),u.Q6J("ngIf",!Z._content))},directives:[fe,i.O5],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n'],encapsulation:2,changeDetection:0}),te})(),Ee=(()=>{class te{}return te.\u0275fac=function(be){return new(be||te)},te.\u0275mod=u.oAB({type:te}),te.\u0275inj=u.cJS({imports:[[i.ez,b.BQ,e.ZD],e.ZD,b.BQ]}),te})()},2368:(He,j,p)=>{"use strict";p.d(j,{Rr:()=>W,rP:()=>q});var e=p(7144),i=p(5e3),u=p(508),b=p(3191),a=p(3075),y=p(6360),d=p(5664);const P=["thumbContainer"],D=["toggleBar"],T=["input"],M=function(ie){return{enterDuration:ie}},A=["*"],E=new i.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let k=0;const w={provide:a.JU,useExisting:(0,i.Gpc)(()=>W),multi:!0};class z{constructor(se,J){this.source=se,this.checked=J}}const U=(0,u.sb)((0,u.pj)((0,u.Kr)((0,u.Id)(class{constructor(ie){this._elementRef=ie}}))));let W=(()=>{class ie extends U{constructor(J,me,x,t,r,h){super(J),this._focusMonitor=me,this._changeDetectorRef=x,this.defaults=r,this._onChange=c=>{},this._onTouched=()=>{},this._uniqueId="mat-slide-toggle-"+ ++k,this._required=!1,this._checked=!1,this.name=null,this.id=this._uniqueId,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new i.vpe,this.toggleChange=new i.vpe,this.tabIndex=parseInt(t)||0,this.color=this.defaultColor=r.color||"accent",this._noopAnimations="NoopAnimations"===h}get required(){return this._required}set required(J){this._required=(0,b.Ig)(J)}get checked(){return this._checked}set checked(J){this._checked=(0,b.Ig)(J),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(J=>{J||Promise.resolve().then(()=>this._onTouched())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onChangeEvent(J){J.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(J){J.stopPropagation()}writeValue(J){this.checked=!!J}registerOnChange(J){this._onChange=J}registerOnTouched(J){this._onTouched=J}setDisabledState(J){this.disabled=J,this._changeDetectorRef.markForCheck()}focus(J,me){me?this._focusMonitor.focusVia(this._inputElement,me,J):this._inputElement.nativeElement.focus(J)}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(new z(this,this.checked))}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return ie.\u0275fac=function(J){return new(J||ie)(i.Y36(i.SBq),i.Y36(d.tE),i.Y36(i.sBO),i.$8M("tabindex"),i.Y36(E),i.Y36(y.Qb,8))},ie.\u0275cmp=i.Xpm({type:ie,selectors:[["mat-slide-toggle"]],viewQuery:function(J,me){if(1&J&&(i.Gf(P,5),i.Gf(D,5),i.Gf(T,5)),2&J){let x;i.iGM(x=i.CRH())&&(me._thumbEl=x.first),i.iGM(x=i.CRH())&&(me._thumbBarEl=x.first),i.iGM(x=i.CRH())&&(me._inputElement=x.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:13,hostBindings:function(J,me){2&J&&(i.Ikx("id",me.id),i.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null)("name",null),i.ekj("mat-checked",me.checked)("mat-disabled",me.disabled)("mat-slide-toggle-label-before","before"==me.labelPosition)("_mat-animation-noopable",me._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[i._Bn([w]),i.qOj],ngContentSelectors:A,decls:16,vars:20,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["toggleBar",""],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],["thumbContainer",""],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(J,me){if(1&J&&(i.F$t(),i.TgZ(0,"label",0,1)(2,"span",2,3)(4,"input",4,5),i.NdJ("change",function(t){return me._onChangeEvent(t)})("click",function(t){return me._onInputClick(t)}),i.qZA(),i.TgZ(6,"span",6,7),i._UZ(8,"span",8),i.TgZ(9,"span",9),i._UZ(10,"span",10),i.qZA()()(),i.TgZ(11,"span",11,12),i.NdJ("cdkObserveContent",function(){return me._onLabelTextChange()}),i.TgZ(13,"span",13),i._uU(14,"\xa0"),i.qZA(),i.Hsn(15),i.qZA()()),2&J){const x=i.MAs(1),t=i.MAs(12);i.uIk("for",me.inputId),i.xp6(2),i.ekj("mat-slide-toggle-bar-no-side-margin",!t.textContent||!t.textContent.trim()),i.xp6(2),i.Q6J("id",me.inputId)("required",me.required)("tabIndex",me.tabIndex)("checked",me.checked)("disabled",me.disabled),i.uIk("name",me.name)("aria-checked",me.checked)("aria-label",me.ariaLabel)("aria-labelledby",me.ariaLabelledby)("aria-describedby",me.ariaDescribedby),i.xp6(5),i.Q6J("matRippleTrigger",x)("matRippleDisabled",me.disableRipple||me.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",i.VKq(18,M,me._noopAnimations?0:150))}},directives:[u.wG,e.wD],styles:[".mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:transparent}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{-webkit-user-select:none;user-select:none;display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%;display:block}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}.cdk-high-contrast-active .mat-slide-toggle.cdk-keyboard-focused .mat-slide-toggle-bar{outline:2px dotted;outline-offset:5px}\n"],encapsulation:2,changeDetection:0}),ie})(),le=(()=>{class ie{}return ie.\u0275fac=function(J){return new(J||ie)},ie.\u0275mod=i.oAB({type:ie}),ie.\u0275inj=i.cJS({}),ie})(),q=(()=>{class ie{}return ie.\u0275fac=function(J){return new(J||ie)},ie.\u0275mod=i.oAB({type:ie}),ie.\u0275inj=i.cJS({imports:[[le,u.si,u.BQ,e.Q8],le,u.BQ]}),ie})()},7261:(He,j,p)=>{"use strict";p.d(j,{Ve:()=>se,ZX:()=>ie,ux:()=>x});var e=p(9776),i=p(7429),u=p(9808),b=p(5e3),a=p(508),y=p(7423),d=p(7579),P=p(5698),D=p(2722),T=p(1777),M=p(925),A=p(5113),E=p(5664);function k(t,r){if(1&t){const h=b.EpF();b.TgZ(0,"div",2)(1,"button",3),b.NdJ("click",function(){return b.CHM(h),b.oxw().action()}),b._uU(2),b.qZA()()}if(2&t){const h=b.oxw();b.xp6(2),b.Oqu(h.data.action)}}function w(t,r){}const z=new b.OlP("MatSnackBarData");class U{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}const W=Math.pow(2,31)-1;class ne{constructor(r,h){this._overlayRef=h,this._afterDismissed=new d.x,this._afterOpened=new d.x,this._onAction=new d.x,this._dismissedByAction=!1,this.containerInstance=r,r._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(r){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(r,W))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}}let Q=(()=>{class t{constructor(h,c){this.snackBarRef=h,this.data=c}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return t.\u0275fac=function(h){return new(h||t)(b.Y36(ne),b.Y36(z))},t.\u0275cmp=b.Xpm({type:t,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,c){1&h&&(b.TgZ(0,"span",0),b._uU(1),b.qZA(),b.YNc(2,k,3,1,"div",1)),2&h&&(b.xp6(1),b.Oqu(c.data.message),b.xp6(1),b.Q6J("ngIf",c.hasAction))},directives:[y.lW,u.O5],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}.mat-simple-snack-bar-content{overflow:hidden;text-overflow:ellipsis}\n"],encapsulation:2,changeDetection:0}),t})();const le={snackBarState:(0,T.X$)("state",[(0,T.SB)("void, hidden",(0,T.oB)({transform:"scale(0.8)",opacity:0})),(0,T.SB)("visible",(0,T.oB)({transform:"scale(1)",opacity:1})),(0,T.eR)("* => visible",(0,T.jt)("150ms cubic-bezier(0, 0, 0.2, 1)")),(0,T.eR)("* => void, * => hidden",(0,T.jt)("75ms cubic-bezier(0.4, 0.0, 1, 1)",(0,T.oB)({opacity:0})))])};let q=(()=>{class t extends i.en{constructor(h,c,C,S,I){super(),this._ngZone=h,this._elementRef=c,this._changeDetectorRef=C,this._platform=S,this.snackBarConfig=I,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new d.x,this._onExit=new d.x,this._onEnter=new d.x,this._animationState="void",this.attachDomPortal=_=>(this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachDomPortal(_)),this._live="assertive"!==I.politeness||I.announcementMessage?"off"===I.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(h){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(h)}attachTemplatePortal(h){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(h)}onAnimationEnd(h){const{fromState:c,toState:C}=h;if(("void"===C&&"void"!==c||"hidden"===C)&&this._completeExit(),"visible"===C){const S=this._onEnter;this._ngZone.run(()=>{S.next(),S.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()})})}_applySnackBarClasses(){const h=this._elementRef.nativeElement,c=this.snackBarConfig.panelClass;c&&(Array.isArray(c)?c.forEach(C=>h.classList.add(C)):h.classList.add(c)),"center"===this.snackBarConfig.horizontalPosition&&h.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&h.classList.add("mat-snack-bar-top")}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const h=this._elementRef.nativeElement.querySelector("[aria-hidden]"),c=this._elementRef.nativeElement.querySelector("[aria-live]");if(h&&c){let C=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&h.contains(document.activeElement)&&(C=document.activeElement),h.removeAttribute("aria-hidden"),c.appendChild(h),null==C||C.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return t.\u0275fac=function(h){return new(h||t)(b.Y36(b.R0b),b.Y36(b.SBq),b.Y36(b.sBO),b.Y36(M.t4),b.Y36(U))},t.\u0275cmp=b.Xpm({type:t,selectors:[["snack-bar-container"]],viewQuery:function(h,c){if(1&h&&b.Gf(i.Pl,7),2&h){let C;b.iGM(C=b.CRH())&&(c._portalOutlet=C.first)}},hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(h,c){1&h&&b.WFA("@state.done",function(S){return c.onAnimationEnd(S)}),2&h&&b.d8E("@state",c._animationState)},features:[b.qOj],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(h,c){1&h&&(b.TgZ(0,"div",0),b.YNc(1,w,0,0,"ng-template",1),b.qZA(),b._UZ(2,"div")),2&h&&(b.xp6(2),b.uIk("aria-live",c._live)("role",c._role))},directives:[i.Pl],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}\n"],encapsulation:2,data:{animation:[le.snackBarState]}}),t})(),ie=(()=>{class t{}return t.\u0275fac=function(h){return new(h||t)},t.\u0275mod=b.oAB({type:t}),t.\u0275inj=b.cJS({imports:[[e.U8,i.eL,u.ez,y.ot,a.BQ],a.BQ]}),t})();const se=new b.OlP("mat-snack-bar-default-options",{providedIn:"root",factory:function J(){return new U}});let me=(()=>{class t{constructor(h,c,C,S,I,_){this._overlay=h,this._live=c,this._injector=C,this._breakpointObserver=S,this._parentSnackBar=I,this._defaultConfig=_,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,c){return this._attach(h,c)}openFromTemplate(h,c){return this._attach(h,c)}open(h,c="",C){const S=Object.assign(Object.assign({},this._defaultConfig),C);return S.data={message:h,action:c},S.announcementMessage===h&&(S.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,S)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(h,c){const S=b.zs3.create({parent:c&&c.viewContainerRef&&c.viewContainerRef.injector||this._injector,providers:[{provide:U,useValue:c}]}),I=new i.C5(this.snackBarContainerComponent,c.viewContainerRef,S),_=h.attach(I);return _.instance.snackBarConfig=c,_.instance}_attach(h,c){const C=Object.assign(Object.assign(Object.assign({},new U),this._defaultConfig),c),S=this._createOverlay(C),I=this._attachSnackBarContainer(S,C),_=new ne(I,S);if(h instanceof b.Rgc){const n=new i.UE(h,null,{$implicit:C.data,snackBarRef:_});_.instance=I.attachTemplatePortal(n)}else{const n=this._createInjector(C,_),g=new i.C5(h,void 0,n),V=I.attachComponentPortal(g);_.instance=V.instance}return this._breakpointObserver.observe(A.u3.HandsetPortrait).pipe((0,D.R)(S.detachments())).subscribe(n=>{S.overlayElement.classList.toggle(this.handsetCssClass,n.matches)}),C.announcementMessage&&I._onAnnounce.subscribe(()=>{this._live.announce(C.announcementMessage,C.politeness)}),this._animateSnackBar(_,C),this._openedSnackBarRef=_,this._openedSnackBarRef}_animateSnackBar(h,c){h.afterDismissed().subscribe(()=>{this._openedSnackBarRef==h&&(this._openedSnackBarRef=null),c.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{h.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):h.containerInstance.enter(),c.duration&&c.duration>0&&h.afterOpened().subscribe(()=>h._dismissAfter(c.duration))}_createOverlay(h){const c=new e.X_;c.direction=h.direction;let C=this._overlay.position().global();const S="rtl"===h.direction,I="left"===h.horizontalPosition||"start"===h.horizontalPosition&&!S||"end"===h.horizontalPosition&&S,_=!I&&"center"!==h.horizontalPosition;return I?C.left("0"):_?C.right("0"):C.centerHorizontally(),"top"===h.verticalPosition?C.top("0"):C.bottom("0"),c.positionStrategy=C,this._overlay.create(c)}_createInjector(h,c){return b.zs3.create({parent:h&&h.viewContainerRef&&h.viewContainerRef.injector||this._injector,providers:[{provide:ne,useValue:c},{provide:z,useValue:h.data}]})}}return t.\u0275fac=function(h){return new(h||t)(b.LFG(e.aV),b.LFG(E.Kd),b.LFG(b.zs3),b.LFG(A.Yg),b.LFG(t,12),b.LFG(se))},t.\u0275prov=b.Yz7({token:t,factory:t.\u0275fac}),t})(),x=(()=>{class t extends me{constructor(h,c,C,S,I,_){super(h,c,C,S,I,_),this.simpleSnackBarComponent=Q,this.snackBarContainerComponent=q,this.handsetCssClass="mat-snack-bar-handset"}}return t.\u0275fac=function(h){return new(h||t)(b.LFG(e.aV),b.LFG(E.Kd),b.LFG(b.zs3),b.LFG(A.Yg),b.LFG(t,12),b.LFG(se))},t.\u0275prov=b.Yz7({token:t,factory:t.\u0275fac,providedIn:ie}),t})()},4847:(He,j,p)=>{"use strict";p.d(j,{JX:()=>t,YE:()=>se,nU:()=>x});var e=p(5e3),i=p(3191),u=p(1159),b=p(508),a=p(7579),y=p(6451),d=p(1777),P=p(5664),D=p(9808);const T=["mat-sort-header",""];function M(r,h){if(1&r){const c=e.EpF();e.TgZ(0,"div",3),e.NdJ("@arrowPosition.start",function(){return e.CHM(c),e.oxw()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return e.CHM(c),e.oxw()._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&r){const c=e.oxw();e.Q6J("@arrowOpacity",c._getArrowViewState())("@arrowPosition",c._getArrowViewState())("@allowChildren",c._getArrowDirectionState()),e.xp6(2),e.Q6J("@indicator",c._getArrowDirectionState()),e.xp6(1),e.Q6J("@leftPointer",c._getArrowDirectionState()),e.xp6(1),e.Q6J("@rightPointer",c._getArrowDirectionState())}}const A=["*"],E=b.mZ.ENTERING+" "+b.yN.STANDARD_CURVE,k={indicator:(0,d.X$)("indicator",[(0,d.SB)("active-asc, asc",(0,d.oB)({transform:"translateY(0px)"})),(0,d.SB)("active-desc, desc",(0,d.oB)({transform:"translateY(10px)"})),(0,d.eR)("active-asc <=> active-desc",(0,d.jt)(E))]),leftPointer:(0,d.X$)("leftPointer",[(0,d.SB)("active-asc, asc",(0,d.oB)({transform:"rotate(-45deg)"})),(0,d.SB)("active-desc, desc",(0,d.oB)({transform:"rotate(45deg)"})),(0,d.eR)("active-asc <=> active-desc",(0,d.jt)(E))]),rightPointer:(0,d.X$)("rightPointer",[(0,d.SB)("active-asc, asc",(0,d.oB)({transform:"rotate(45deg)"})),(0,d.SB)("active-desc, desc",(0,d.oB)({transform:"rotate(-45deg)"})),(0,d.eR)("active-asc <=> active-desc",(0,d.jt)(E))]),arrowOpacity:(0,d.X$)("arrowOpacity",[(0,d.SB)("desc-to-active, asc-to-active, active",(0,d.oB)({opacity:1})),(0,d.SB)("desc-to-hint, asc-to-hint, hint",(0,d.oB)({opacity:.54})),(0,d.SB)("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",(0,d.oB)({opacity:0})),(0,d.eR)("* => asc, * => desc, * => active, * => hint, * => void",(0,d.jt)("0ms")),(0,d.eR)("* <=> *",(0,d.jt)(E))]),arrowPosition:(0,d.X$)("arrowPosition",[(0,d.eR)("* => desc-to-hint, * => desc-to-active",(0,d.jt)(E,(0,d.F4)([(0,d.oB)({transform:"translateY(-25%)"}),(0,d.oB)({transform:"translateY(0)"})]))),(0,d.eR)("* => hint-to-desc, * => active-to-desc",(0,d.jt)(E,(0,d.F4)([(0,d.oB)({transform:"translateY(0)"}),(0,d.oB)({transform:"translateY(25%)"})]))),(0,d.eR)("* => asc-to-hint, * => asc-to-active",(0,d.jt)(E,(0,d.F4)([(0,d.oB)({transform:"translateY(25%)"}),(0,d.oB)({transform:"translateY(0)"})]))),(0,d.eR)("* => hint-to-asc, * => active-to-asc",(0,d.jt)(E,(0,d.F4)([(0,d.oB)({transform:"translateY(0)"}),(0,d.oB)({transform:"translateY(-25%)"})]))),(0,d.SB)("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",(0,d.oB)({transform:"translateY(0)"})),(0,d.SB)("hint-to-desc, active-to-desc, desc",(0,d.oB)({transform:"translateY(-25%)"})),(0,d.SB)("hint-to-asc, active-to-asc, asc",(0,d.oB)({transform:"translateY(25%)"}))]),allowChildren:(0,d.X$)("allowChildren",[(0,d.eR)("* <=> *",[(0,d.IO)("@*",(0,d.pV)(),{optional:!0})])])};let ne=(()=>{class r{constructor(){this.changes=new a.x}}return r.\u0275fac=function(c){return new(c||r)},r.\u0275prov=e.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const le={provide:ne,deps:[[new e.FiY,new e.tp0,ne]],useFactory:function Q(r){return r||new ne}},q=new e.OlP("MAT_SORT_DEFAULT_OPTIONS"),ie=(0,b.dB)((0,b.Id)(class{}));let se=(()=>{class r extends ie{constructor(c){super(),this._defaultOptions=c,this.sortables=new Map,this._stateChanges=new a.x,this.start="asc",this._direction="",this.sortChange=new e.vpe}get direction(){return this._direction}set direction(c){this._direction=c}get disableClear(){return this._disableClear}set disableClear(c){this._disableClear=(0,i.Ig)(c)}register(c){this.sortables.set(c.id,c)}deregister(c){this.sortables.delete(c.id)}sort(c){this.active!=c.id?(this.active=c.id,this.direction=c.start?c.start:this.start):this.direction=this.getNextSortDirection(c),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(c){var C,S,I;if(!c)return"";const _=null!==(S=null!==(C=null==c?void 0:c.disableClear)&&void 0!==C?C:this.disableClear)&&void 0!==S?S:!!(null===(I=this._defaultOptions)||void 0===I?void 0:I.disableClear);let n=function J(r,h){let c=["asc","desc"];return"desc"==r&&c.reverse(),h||c.push(""),c}(c.start||this.start,_),g=n.indexOf(this.direction)+1;return g>=n.length&&(g=0),n[g]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return r.\u0275fac=function(c){return new(c||r)(e.Y36(q,8))},r.\u0275dir=e.lG2({type:r,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[e.qOj,e.TTD]}),r})();const me=(0,b.Id)(class{});let x=(()=>{class r extends me{constructor(c,C,S,I,_,n,g){super(),this._intl=c,this._changeDetectorRef=C,this._sort=S,this._columnDef=I,this._focusMonitor=_,this._elementRef=n,this._ariaDescriber=g,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",this._handleStateChanges()}get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(c){this._updateSortActionDescription(c)}get disableClear(){return this._disableClear}set disableClear(c){this._disableClear=(0,i.Ig)(c)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(c=>{const C=!!c;C!==this._showIndicatorHint&&(this._setIndicatorHintVisible(C),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(c){this._isDisabled()&&c||(this._showIndicatorHint=c,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(c){this._viewState=c||{},this._disableViewStateAnimation&&(this._viewState={toState:c.toState})}_toggleOnInteraction(){this._sort.sort(this),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(c){!this._isDisabled()&&(c.keyCode===u.L_||c.keyCode===u.K5)&&(c.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const c=this._viewState.fromState;return(c?`${c}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(c){var C,S;this._sortButton&&(null===(C=this._ariaDescriber)||void 0===C||C.removeDescription(this._sortButton,this._sortActionDescription),null===(S=this._ariaDescriber)||void 0===S||S.describe(this._sortButton,c)),this._sortActionDescription=c}_handleStateChanges(){this._rerenderSubscription=(0,y.T)(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}}return r.\u0275fac=function(c){return new(c||r)(e.Y36(ne),e.Y36(e.sBO),e.Y36(se,8),e.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),e.Y36(P.tE),e.Y36(e.SBq),e.Y36(P.$s,8))},r.\u0275cmp=e.Xpm({type:r,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(c,C){1&c&&e.NdJ("click",function(){return C._handleClick()})("keydown",function(I){return C._handleKeydown(I)})("mouseenter",function(){return C._setIndicatorHintVisible(!0)})("mouseleave",function(){return C._setIndicatorHintVisible(!1)}),2&c&&(e.uIk("aria-sort",C._getAriaSortAttribute()),e.ekj("mat-sort-header-disabled",C._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[e.qOj],attrs:T,ngContentSelectors:A,decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(c,C){1&c&&(e.F$t(),e.TgZ(0,"div",0)(1,"div",1),e.Hsn(2),e.qZA(),e.YNc(3,M,6,6,"div",2),e.qZA()),2&c&&(e.ekj("mat-sort-header-sorted",C._isSorted())("mat-sort-header-position-before","before"==C.arrowPosition),e.uIk("tabindex",C._isDisabled()?null:0)("role",C._isDisabled()?null:"button"),e.xp6(3),e.Q6J("ngIf",C._renderArrow()))},directives:[D.O5],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[k.indicator,k.leftPointer,k.rightPointer,k.arrowOpacity,k.arrowPosition,k.allowChildren]},changeDetection:0}),r})(),t=(()=>{class r{}return r.\u0275fac=function(c){return new(c||r)},r.\u0275mod=e.oAB({type:r}),r.\u0275inj=e.cJS({providers:[le],imports:[[D.ez,b.BQ]]}),r})()},5615:(He,j,p)=>{"use strict";p.d(j,{C0:()=>be,Ic:()=>Ae,T5:()=>Te,VY:()=>R,Vq:()=>Ie,fd:()=>ce,z9:()=>te});var e=p(7429),i=p(1555),u=p(9808),b=p(5e3),a=p(7423),y=p(508),d=p(5245),P=p(7579),D=p(727),T=p(5664),M=p(3900),A=p(4004),E=p(8675),k=p(2722),w=p(1884),z=p(1777),U=p(226);function W(xe,G){if(1&xe&&b.GkF(0,8),2&xe){const ee=b.oxw();b.Q6J("ngTemplateOutlet",ee.iconOverrides[ee.state])("ngTemplateOutletContext",ee._getIconContext())}}function ne(xe,G){if(1&xe&&(b.TgZ(0,"span",13),b._uU(1),b.qZA()),2&xe){const ee=b.oxw(2);b.xp6(1),b.Oqu(ee._getDefaultTextForState(ee.state))}}function Q(xe,G){if(1&xe&&(b.TgZ(0,"span",14),b._uU(1),b.qZA()),2&xe){const ee=b.oxw(2);b.xp6(1),b.Oqu(ee._intl.completedLabel)}}function le(xe,G){if(1&xe&&(b.TgZ(0,"span",14),b._uU(1),b.qZA()),2&xe){const ee=b.oxw(2);b.xp6(1),b.Oqu(ee._intl.editableLabel)}}function q(xe,G){if(1&xe&&(b.TgZ(0,"mat-icon",13),b._uU(1),b.qZA()),2&xe){const ee=b.oxw(2);b.xp6(1),b.Oqu(ee._getDefaultTextForState(ee.state))}}function ie(xe,G){if(1&xe&&(b.ynx(0,9),b.YNc(1,ne,2,1,"span",10),b.YNc(2,Q,2,1,"span",11),b.YNc(3,le,2,1,"span",11),b.YNc(4,q,2,1,"mat-icon",12),b.BQk()),2&xe){const ee=b.oxw();b.Q6J("ngSwitch",ee.state),b.xp6(1),b.Q6J("ngSwitchCase","number"),b.xp6(1),b.Q6J("ngIf","done"===ee.state),b.xp6(1),b.Q6J("ngIf","edit"===ee.state)}}function se(xe,G){if(1&xe&&(b.TgZ(0,"div",15),b.GkF(1,16),b.qZA()),2&xe){const ee=b.oxw();b.xp6(1),b.Q6J("ngTemplateOutlet",ee._templateLabel().template)}}function J(xe,G){if(1&xe&&(b.TgZ(0,"div",15),b._uU(1),b.qZA()),2&xe){const ee=b.oxw();b.xp6(1),b.Oqu(ee.label)}}function me(xe,G){if(1&xe&&(b.TgZ(0,"div",17),b._uU(1),b.qZA()),2&xe){const ee=b.oxw();b.xp6(1),b.Oqu(ee._intl.optionalLabel)}}function x(xe,G){if(1&xe&&(b.TgZ(0,"div",18),b._uU(1),b.qZA()),2&xe){const ee=b.oxw();b.xp6(1),b.Oqu(ee.errorMessage)}}function t(xe,G){}function r(xe,G){if(1&xe&&(b.Hsn(0),b.YNc(1,t,0,0,"ng-template",0)),2&xe){const ee=b.oxw();b.xp6(1),b.Q6J("cdkPortalOutlet",ee._portal)}}const h=["*"];function c(xe,G){1&xe&&b._UZ(0,"div",9)}const C=function(xe,G){return{step:xe,i:G}};function S(xe,G){if(1&xe&&(b.ynx(0),b.GkF(1,7),b.YNc(2,c,1,0,"div",8),b.BQk()),2&xe){const ee=G.$implicit,ue=G.index,ve=G.last;b.oxw(2);const Le=b.MAs(4);b.xp6(1),b.Q6J("ngTemplateOutlet",Le)("ngTemplateOutletContext",b.WLB(3,C,ee,ue)),b.xp6(1),b.Q6J("ngIf",!ve)}}function I(xe,G){if(1&xe){const ee=b.EpF();b.TgZ(0,"div",10),b.NdJ("@horizontalStepTransition.done",function(ve){return b.CHM(ee),b.oxw(2)._animationDone.next(ve)}),b.GkF(1,11),b.qZA()}if(2&xe){const ee=G.$implicit,ue=G.index,ve=b.oxw(2);b.Q6J("@horizontalStepTransition",ve._getAnimationDirection(ue))("id",ve._getStepContentId(ue)),b.uIk("aria-labelledby",ve._getStepLabelId(ue))("aria-expanded",ve.selectedIndex===ue),b.xp6(1),b.Q6J("ngTemplateOutlet",ee.content)}}function _(xe,G){if(1&xe&&(b.ynx(0),b.TgZ(1,"div",3),b.YNc(2,S,3,6,"ng-container",4),b.qZA(),b.TgZ(3,"div",5),b.YNc(4,I,2,5,"div",6),b.qZA(),b.BQk()),2&xe){const ee=b.oxw();b.xp6(2),b.Q6J("ngForOf",ee.steps),b.xp6(2),b.Q6J("ngForOf",ee.steps)}}function n(xe,G){if(1&xe){const ee=b.EpF();b.TgZ(0,"div",13),b.GkF(1,7),b.TgZ(2,"div",14)(3,"div",15),b.NdJ("@verticalStepTransition.done",function(ve){return b.CHM(ee),b.oxw(2)._animationDone.next(ve)}),b.TgZ(4,"div",16),b.GkF(5,11),b.qZA()()()()}if(2&xe){const ee=G.$implicit,ue=G.index,ve=G.last,Le=b.oxw(2),lt=b.MAs(4);b.xp6(1),b.Q6J("ngTemplateOutlet",lt)("ngTemplateOutletContext",b.WLB(9,C,ee,ue)),b.xp6(1),b.ekj("mat-stepper-vertical-line",!ve),b.xp6(1),b.Q6J("@verticalStepTransition",Le._getAnimationDirection(ue))("id",Le._getStepContentId(ue)),b.uIk("aria-labelledby",Le._getStepLabelId(ue))("aria-expanded",Le.selectedIndex===ue),b.xp6(2),b.Q6J("ngTemplateOutlet",ee.content)}}function g(xe,G){if(1&xe&&(b.ynx(0),b.YNc(1,n,6,12,"div",12),b.BQk()),2&xe){const ee=b.oxw();b.xp6(1),b.Q6J("ngForOf",ee.steps)}}function V(xe,G){if(1&xe){const ee=b.EpF();b.TgZ(0,"mat-step-header",17),b.NdJ("click",function(){return b.CHM(ee).step.select()})("keydown",function(ve){return b.CHM(ee),b.oxw()._onKeydown(ve)}),b.qZA()}if(2&xe){const ee=G.step,ue=G.i,ve=b.oxw();b.ekj("mat-horizontal-stepper-header","horizontal"===ve.orientation)("mat-vertical-stepper-header","vertical"===ve.orientation),b.Q6J("tabIndex",ve._getFocusIndex()===ue?0:-1)("id",ve._getStepLabelId(ue))("index",ue)("state",ve._getIndicatorType(ue,ee.state))("label",ee.stepLabel||ee.label)("selected",ve.selectedIndex===ue)("active",ve._stepIsNavigable(ue,ee))("optional",ee.optional)("errorMessage",ee.errorMessage)("iconOverrides",ve._iconOverrides)("disableRipple",ve.disableRipple||!ve._stepIsNavigable(ue,ee))("color",ee.color||ve.color),b.uIk("aria-posinset",ue+1)("aria-setsize",ve.steps.length)("aria-controls",ve._getStepContentId(ue))("aria-selected",ve.selectedIndex==ue)("aria-label",ee.ariaLabel||null)("aria-labelledby",!ee.ariaLabel&&ee.ariaLabelledby?ee.ariaLabelledby:null)("aria-disabled",!ve._stepIsNavigable(ue,ee)||null)}}let R=(()=>{class xe extends i.u6{}return xe.\u0275fac=function(){let G;return function(ue){return(G||(G=b.n5z(xe)))(ue||xe)}}(),xe.\u0275dir=b.lG2({type:xe,selectors:[["","matStepLabel",""]],features:[b.qOj]}),xe})(),H=(()=>{class xe{constructor(){this.changes=new P.x,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return xe.\u0275fac=function(ee){return new(ee||xe)},xe.\u0275prov=b.Yz7({token:xe,factory:xe.\u0275fac,providedIn:"root"}),xe})();const fe={provide:H,deps:[[new b.FiY,new b.tp0,H]],useFactory:function $(xe){return xe||new H}},ye=(0,y.pj)(class extends i.KL{constructor(G){super(G)}},"primary");let ke=(()=>{class xe extends ye{constructor(ee,ue,ve,Le){super(ve),this._intl=ee,this._focusMonitor=ue,this._intlSubscription=ee.changes.subscribe(()=>Le.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(ee,ue){ee?this._focusMonitor.focusVia(this._elementRef,ee,ue):this._elementRef.nativeElement.focus(ue)}_stringLabel(){return this.label instanceof R?null:this.label}_templateLabel(){return this.label instanceof R?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(ee){return"number"==ee?`${this.index+1}`:"edit"==ee?"create":"error"==ee?"warning":ee}}return xe.\u0275fac=function(ee){return new(ee||xe)(b.Y36(H),b.Y36(T.tE),b.Y36(b.SBq),b.Y36(b.sBO))},xe.\u0275cmp=b.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:[b.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(ee,ue){1&ee&&(b._UZ(0,"div",0),b.TgZ(1,"div")(2,"div",1),b.YNc(3,W,1,2,"ng-container",2),b.YNc(4,ie,5,4,"ng-container",3),b.qZA()(),b.TgZ(5,"div",4),b.YNc(6,se,2,1,"div",5),b.YNc(7,J,2,1,"div",5),b.YNc(8,me,2,1,"div",6),b.YNc(9,x,2,1,"div",7),b.qZA()),2&ee&&(b.Q6J("matRippleTrigger",ue._getHostElement())("matRippleDisabled",ue.disableRipple),b.xp6(1),b.Gre("mat-step-icon-state-",ue.state," mat-step-icon"),b.ekj("mat-step-icon-selected",ue.selected),b.xp6(1),b.Q6J("ngSwitch",!(!ue.iconOverrides||!ue.iconOverrides[ue.state])),b.xp6(1),b.Q6J("ngSwitchCase",!0),b.xp6(2),b.ekj("mat-step-label-active",ue.active)("mat-step-label-selected",ue.selected)("mat-step-label-error","error"==ue.state),b.xp6(1),b.Q6J("ngIf",ue._templateLabel()),b.xp6(1),b.Q6J("ngIf",ue._stringLabel()),b.xp6(1),b.Q6J("ngIf",ue.optional&&"error"!=ue.state),b.xp6(1),b.Q6J("ngIf","error"==ue.state))},directives:[d.Hw,y.wG,u.RF,u.n9,u.tP,u.ED,u.O5],styles:[".mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:transparent}.cdk-high-contrast-active .mat-step-header{outline:solid 1px}.cdk-high-contrast-active .mat-step-header.cdk-keyboard-focused,.cdk-high-contrast-active .mat-step-header.cdk-program-focused{outline:solid 3px}.cdk-high-contrast-active .mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.mat-step-optional,.mat-step-sub-label-error{font-size:12px}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,changeDetection:0}),xe})();const Ee={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)("500ms cubic-bezier(0.35, 0, 0.25, 1)"))]),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)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])};let te=(()=>{class xe{constructor(ee){this.templateRef=ee}}return xe.\u0275fac=function(ee){return new(ee||xe)(b.Y36(b.Rgc))},xe.\u0275dir=b.lG2({type:xe,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),xe})(),ze=(()=>{class xe{constructor(ee){this._template=ee}}return xe.\u0275fac=function(ee){return new(ee||xe)(b.Y36(b.Rgc))},xe.\u0275dir=b.lG2({type:xe,selectors:[["ng-template","matStepContent",""]]}),xe})(),be=(()=>{class xe extends i.be{constructor(ee,ue,ve,Le){super(ee,Le),this._errorStateMatcher=ue,this._viewContainerRef=ve,this._isSelected=D.w0.EMPTY}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe((0,M.w)(()=>this._stepper.selectionChange.pipe((0,A.U)(ee=>ee.selectedStep===this),(0,E.O)(this._stepper.selected===this)))).subscribe(ee=>{ee&&this._lazyContent&&!this._portal&&(this._portal=new e.UE(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(ee,ue){return this._errorStateMatcher.isErrorState(ee,ue)||!!(ee&&ee.invalid&&this.interacted)}}return xe.\u0275fac=function(ee){return new(ee||xe)(b.Y36((0,b.Gpc)(()=>Ie)),b.Y36(y.rD,4),b.Y36(b.s_b),b.Y36(i.gx,8))},xe.\u0275cmp=b.Xpm({type:xe,selectors:[["mat-step"]],contentQueries:function(ee,ue,ve){if(1&ee&&(b.Suo(ve,R,5),b.Suo(ve,ze,5)),2&ee){let Le;b.iGM(Le=b.CRH())&&(ue.stepLabel=Le.first),b.iGM(Le=b.CRH())&&(ue._lazyContent=Le.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[b._Bn([{provide:y.rD,useExisting:xe},{provide:i.be,useExisting:xe}]),b.qOj],ngContentSelectors:h,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(ee,ue){1&ee&&(b.F$t(),b.YNc(0,r,2,1,"ng-template"))},directives:[e.Pl],encapsulation:2,changeDetection:0}),xe})(),Z=(()=>{class xe extends i.B8{}return xe.\u0275fac=function(){let G;return function(ue){return(G||(G=b.n5z(xe)))(ue||xe)}}(),xe.\u0275dir=b.lG2({type:xe,features:[b.qOj]}),xe})(),Y=(()=>{class xe extends Z{}return xe.\u0275fac=function(){let G;return function(ue){return(G||(G=b.n5z(xe)))(ue||xe)}}(),xe.\u0275dir=b.lG2({type:xe,selectors:[["mat-horizontal-stepper"]],features:[b.qOj]}),xe})(),ot=(()=>{class xe extends Z{}return xe.\u0275fac=function(){let G;return function(ue){return(G||(G=b.n5z(xe)))(ue||xe)}}(),xe.\u0275dir=b.lG2({type:xe,selectors:[["mat-vertical-stepper"]],features:[b.qOj]}),xe})(),Ie=(()=>{class xe extends i.B8{constructor(ee,ue,ve,Le){super(ee,ue,ve,Le),this.steps=new b.n_E,this.animationDone=new b.vpe,this.labelPosition="end",this._iconOverrides={},this._animationDone=new P.x;const lt=ve.nativeElement.nodeName.toLowerCase();this.orientation="mat-vertical-stepper"===lt?"vertical":"horizontal"}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:ee,templateRef:ue})=>this._iconOverrides[ee]=ue),this.steps.changes.pipe((0,k.R)(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe((0,w.x)((ee,ue)=>ee.fromState===ue.fromState&&ee.toState===ue.toState),(0,k.R)(this._destroyed)).subscribe(ee=>{"current"===ee.toState&&this.animationDone.emit()})}_stepIsNavigable(ee,ue){return ue.completed||this.selectedIndex===ee||!this.linear}}return xe.\u0275fac=function(ee){return new(ee||xe)(b.Y36(U.Is,8),b.Y36(b.sBO),b.Y36(b.SBq),b.Y36(u.K0))},xe.\u0275cmp=b.Xpm({type:xe,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(ee,ue,ve){if(1&ee&&(b.Suo(ve,be,5),b.Suo(ve,te,5)),2&ee){let Le;b.iGM(Le=b.CRH())&&(ue._steps=Le),b.iGM(Le=b.CRH())&&(ue._icons=Le)}},viewQuery:function(ee,ue){if(1&ee&&b.Gf(ke,5),2&ee){let ve;b.iGM(ve=b.CRH())&&(ue._stepHeader=ve)}},hostAttrs:["role","tablist"],hostVars:9,hostBindings:function(ee,ue){2&ee&&(b.uIk("aria-orientation",ue.orientation),b.ekj("mat-stepper-horizontal","horizontal"===ue.orientation)("mat-stepper-vertical","vertical"===ue.orientation)("mat-stepper-label-position-end","horizontal"===ue.orientation&&"end"==ue.labelPosition)("mat-stepper-label-position-bottom","horizontal"===ue.orientation&&"bottom"==ue.labelPosition))},inputs:{selectedIndex:"selectedIndex",disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[b._Bn([{provide:i.B8,useExisting:xe},{provide:Y,useExisting:xe},{provide:ot,useExisting:xe}]),b.qOj],decls:5,vars:3,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],["stepTemplate",""],[1,"mat-horizontal-stepper-header-container"],[4,"ngFor","ngForOf"],[1,"mat-horizontal-content-container"],["class","mat-horizontal-stepper-content","role","tabpanel",3,"id",4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","mat-stepper-horizontal-line",4,"ngIf"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],["class","mat-step",4,"ngFor","ngForOf"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color","click","keydown"]],template:function(ee,ue){1&ee&&(b.ynx(0,0),b.YNc(1,_,5,2,"ng-container",1),b.YNc(2,g,2,1,"ng-container",1),b.BQk(),b.YNc(3,V,1,23,"ng-template",null,2,b.W1O)),2&ee&&(b.Q6J("ngSwitch",ue.orientation),b.xp6(1),b.Q6J("ngSwitchCase","horizontal"),b.xp6(1),b.Q6J("ngSwitchCase","vertical"))},directives:[ke,u.RF,u.n9,u.sg,u.tP,u.O5],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content[aria-expanded=false]{height:0;overflow:hidden}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.cdk-high-contrast-active .mat-horizontal-content-container{outline:solid 1px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}.cdk-high-contrast-active .mat-vertical-content-container{outline:solid 1px}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}\n'],encapsulation:2,data:{animation:[Ee.horizontalStepTransition,Ee.verticalStepTransition]},changeDetection:0}),xe})(),Ae=(()=>{class xe extends i.st{}return xe.\u0275fac=function(){let G;return function(ue){return(G||(G=b.n5z(xe)))(ue||xe)}}(),xe.\u0275dir=b.lG2({type:xe,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(ee,ue){2&ee&&b.Ikx("type",ue.type)},inputs:{type:"type"},features:[b.qOj]}),xe})(),ce=(()=>{class xe extends i.po{}return xe.\u0275fac=function(){let G;return function(ue){return(G||(G=b.n5z(xe)))(ue||xe)}}(),xe.\u0275dir=b.lG2({type:xe,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(ee,ue){2&ee&&b.Ikx("type",ue.type)},inputs:{type:"type"},features:[b.qOj]}),xe})(),Te=(()=>{class xe{}return xe.\u0275fac=function(ee){return new(ee||xe)},xe.\u0275mod=b.oAB({type:xe}),xe.\u0275inj=b.cJS({providers:[fe,y.rD],imports:[[y.BQ,u.ez,e.eL,a.ot,i.U5,d.Ps,y.si],y.BQ]}),xe})()},2075:(He,j,p)=>{"use strict";p.d(j,{ev:()=>Fe,Dz:()=>Rt,w1:()=>qe,yh:()=>we,mD:()=>Re,Q2:()=>Xt,Ke:()=>at,ge:()=>Ze,fO:()=>et,XQ:()=>mi,as:()=>rt,Gk:()=>Jt,nj:()=>yt,BZ:()=>ft,by:()=>Gi,p0:()=>en});var e=p(5e3),i=p(3191),u=p(449),b=p(9808),a=p(7579),y=p(457),d=p(1135),P=p(5191),D=p(9646),T=p(2722),M=p(5698),A=p(226),E=p(925),k=p(5303);const w=[[["caption"]],[["colgroup"],["col"]]],z=["caption","colgroup, col"];function ne(ct){return class extends ct{constructor(...Ft){super(...Ft),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(Ft){const pt=this._sticky;this._sticky=(0,i.Ig)(Ft),this._hasStickyChanged=pt!==this._sticky}hasStickyChanged(){const Ft=this._hasStickyChanged;return this._hasStickyChanged=!1,Ft}resetStickyChanged(){this._hasStickyChanged=!1}}}const Q=new e.OlP("CDK_TABLE");let q=(()=>{class ct{constructor(pt){this.template=pt}}return ct.\u0275fac=function(pt){return new(pt||ct)(e.Y36(e.Rgc))},ct.\u0275dir=e.lG2({type:ct,selectors:[["","cdkCellDef",""]]}),ct})(),ie=(()=>{class ct{constructor(pt){this.template=pt}}return ct.\u0275fac=function(pt){return new(pt||ct)(e.Y36(e.Rgc))},ct.\u0275dir=e.lG2({type:ct,selectors:[["","cdkHeaderCellDef",""]]}),ct})(),se=(()=>{class ct{constructor(pt){this.template=pt}}return ct.\u0275fac=function(pt){return new(pt||ct)(e.Y36(e.Rgc))},ct.\u0275dir=e.lG2({type:ct,selectors:[["","cdkFooterCellDef",""]]}),ct})();class J{}const me=ne(J);let x=(()=>{class ct extends me{constructor(pt){super(),this._table=pt,this._stickyEnd=!1}get name(){return this._name}set name(pt){this._setNameInput(pt)}get stickyEnd(){return this._stickyEnd}set stickyEnd(pt){const it=this._stickyEnd;this._stickyEnd=(0,i.Ig)(pt),this._hasStickyChanged=it!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(pt){pt&&(this._name=pt,this.cssClassFriendlyName=pt.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return ct.\u0275fac=function(pt){return new(pt||ct)(e.Y36(Q,8))},ct.\u0275dir=e.lG2({type:ct,selectors:[["","cdkColumnDef",""]],contentQueries:function(pt,it,It){if(1&pt&&(e.Suo(It,q,5),e.Suo(It,ie,5),e.Suo(It,se,5)),2&pt){let de;e.iGM(de=e.CRH())&&(it.cell=de.first),e.iGM(de=e.CRH())&&(it.headerCell=de.first),e.iGM(de=e.CRH())&&(it.footerCell=de.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[e._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:ct}]),e.qOj]}),ct})();class t{constructor(Ft,pt){pt.nativeElement.classList.add(...Ft._columnCssClassName)}}let r=(()=>{class ct extends t{constructor(pt,it){super(pt,it)}}return ct.\u0275fac=function(pt){return new(pt||ct)(e.Y36(x),e.Y36(e.SBq))},ct.\u0275dir=e.lG2({type:ct,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[e.qOj]}),ct})(),h=(()=>{class ct extends t{constructor(pt,it){var It;if(super(pt,it),1===(null===(It=pt._table)||void 0===It?void 0:It._elementRef.nativeElement.nodeType)){const de=pt._table._elementRef.nativeElement.getAttribute("role");it.nativeElement.setAttribute("role","grid"===de||"treegrid"===de?"gridcell":"cell")}}}return ct.\u0275fac=function(pt){return new(pt||ct)(e.Y36(x),e.Y36(e.SBq))},ct.\u0275dir=e.lG2({type:ct,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:[1,"cdk-footer-cell"],features:[e.qOj]}),ct})(),c=(()=>{class ct extends t{constructor(pt,it){var It;if(super(pt,it),1===(null===(It=pt._table)||void 0===It?void 0:It._elementRef.nativeElement.nodeType)){const de=pt._table._elementRef.nativeElement.getAttribute("role");it.nativeElement.setAttribute("role","grid"===de||"treegrid"===de?"gridcell":"cell")}}}return ct.\u0275fac=function(pt){return new(pt||ct)(e.Y36(x),e.Y36(e.SBq))},ct.\u0275dir=e.lG2({type:ct,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[e.qOj]}),ct})();class C{constructor(){this.tasks=[],this.endTasks=[]}}const S=new e.OlP("_COALESCED_STYLE_SCHEDULER");let I=(()=>{class ct{constructor(pt){this._ngZone=pt,this._currentSchedule=null,this._destroyed=new a.x}schedule(pt){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(pt)}scheduleEnd(pt){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(pt)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new C,this._getScheduleObservable().pipe((0,T.R)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const pt=this._currentSchedule;this._currentSchedule=new C;for(const it of pt.tasks)it();for(const it of pt.endTasks)it()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,y.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,M.q)(1))}}return ct.\u0275fac=function(pt){return new(pt||ct)(e.LFG(e.R0b))},ct.\u0275prov=e.Yz7({token:ct,factory:ct.\u0275fac}),ct})(),n=(()=>{class ct{constructor(pt,it){this.template=pt,this._differs=it}ngOnChanges(pt){if(!this._columnsDiffer){const it=pt.columns&&pt.columns.currentValue||[];this._columnsDiffer=this._differs.find(it).create(),this._columnsDiffer.diff(it)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(pt){return this instanceof R?pt.headerCell.template:this instanceof fe?pt.footerCell.template:pt.cell.template}}return ct.\u0275fac=function(pt){return new(pt||ct)(e.Y36(e.Rgc),e.Y36(e.ZZ4))},ct.\u0275dir=e.lG2({type:ct,features:[e.TTD]}),ct})();class g extends n{}const V=ne(g);let R=(()=>{class ct extends V{constructor(pt,it,It){super(pt,it),this._table=It}ngOnChanges(pt){super.ngOnChanges(pt)}}return ct.\u0275fac=function(pt){return new(pt||ct)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(Q,8))},ct.\u0275dir=e.lG2({type:ct,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[e.qOj,e.TTD]}),ct})();class H extends n{}const $=ne(H);let fe=(()=>{class ct extends ${constructor(pt,it,It){super(pt,it),this._table=It}ngOnChanges(pt){super.ngOnChanges(pt)}}return ct.\u0275fac=function(pt){return new(pt||ct)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(Q,8))},ct.\u0275dir=e.lG2({type:ct,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[e.qOj,e.TTD]}),ct})(),ye=(()=>{class ct extends n{constructor(pt,it,It){super(pt,it),this._table=It}}return ct.\u0275fac=function(pt){return new(pt||ct)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(Q,8))},ct.\u0275dir=e.lG2({type:ct,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[e.qOj]}),ct})(),ke=(()=>{class ct{constructor(pt){this._viewContainer=pt,ct.mostRecentCellOutlet=this}ngOnDestroy(){ct.mostRecentCellOutlet===this&&(ct.mostRecentCellOutlet=null)}}return ct.mostRecentCellOutlet=null,ct.\u0275fac=function(pt){return new(pt||ct)(e.Y36(e.s_b))},ct.\u0275dir=e.lG2({type:ct,selectors:[["","cdkCellOutlet",""]]}),ct})(),Ee=(()=>{class ct{}return ct.\u0275fac=function(pt){return new(pt||ct)},ct.\u0275cmp=e.Xpm({type:ct,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(pt,it){1&pt&&e.GkF(0,0)},directives:[ke],encapsulation:2}),ct})(),te=(()=>{class ct{}return ct.\u0275fac=function(pt){return new(pt||ct)},ct.\u0275cmp=e.Xpm({type:ct,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(pt,it){1&pt&&e.GkF(0,0)},directives:[ke],encapsulation:2}),ct})(),ze=(()=>{class ct{}return ct.\u0275fac=function(pt){return new(pt||ct)},ct.\u0275cmp=e.Xpm({type:ct,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(pt,it){1&pt&&e.GkF(0,0)},directives:[ke],encapsulation:2}),ct})(),be=(()=>{class ct{constructor(pt){this.templateRef=pt,this._contentClassName="cdk-no-data-row"}}return ct.\u0275fac=function(pt){return new(pt||ct)(e.Y36(e.Rgc))},ct.\u0275dir=e.lG2({type:ct,selectors:[["ng-template","cdkNoDataRow",""]]}),ct})();const Z=["top","bottom","left","right"];class Y{constructor(Ft,pt,it,It,de=!0,$e=!0,bt){this._isNativeHtmlTable=Ft,this._stickCellCss=pt,this.direction=it,this._coalescedStyleScheduler=It,this._isBrowser=de,this._needsPositionStickyOnElement=$e,this._positionListener=bt,this._cachedCellWidths=[],this._borderCellCss={top:`${pt}-border-elem-top`,bottom:`${pt}-border-elem-bottom`,left:`${pt}-border-elem-left`,right:`${pt}-border-elem-right`}}clearStickyPositioning(Ft,pt){const it=[];for(const It of Ft)if(It.nodeType===It.ELEMENT_NODE){it.push(It);for(let de=0;de<It.children.length;de++)it.push(It.children[de])}this._coalescedStyleScheduler.schedule(()=>{for(const It of it)this._removeStickyStyle(It,pt)})}updateStickyColumns(Ft,pt,it,It=!0){if(!Ft.length||!this._isBrowser||!pt.some(Wi=>Wi)&&!it.some(Wi=>Wi))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const de=Ft[0],$e=de.children.length,bt=this._getCellWidths(de,It),Vt=this._getStickyStartColumnPositions(bt,pt),bi=this._getStickyEndColumnPositions(bt,it),Li=pt.lastIndexOf(!0),Ji=it.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const Wi="rtl"===this.direction,sn=Wi?"right":"left",mn=Wi?"left":"right";for(const Yt of Ft)for(let Mi=0;Mi<$e;Mi++){const Je=Yt.children[Mi];pt[Mi]&&this._addStickyStyle(Je,sn,Vt[Mi],Mi===Li),it[Mi]&&this._addStickyStyle(Je,mn,bi[Mi],Mi===Ji)}this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:-1===Li?[]:bt.slice(0,Li+1).map((Yt,Mi)=>pt[Mi]?Yt:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===Ji?[]:bt.slice(Ji).map((Yt,Mi)=>it[Mi+Ji]?Yt:null).reverse()}))})}stickRows(Ft,pt,it){if(!this._isBrowser)return;const It="bottom"===it?Ft.slice().reverse():Ft,de="bottom"===it?pt.slice().reverse():pt,$e=[],bt=[],Vt=[];for(let Li=0,Ji=0;Li<It.length;Li++){if(!de[Li])continue;$e[Li]=Ji;const Wi=It[Li];Vt[Li]=this._isNativeHtmlTable?Array.from(Wi.children):[Wi];const sn=Wi.getBoundingClientRect().height;Ji+=sn,bt[Li]=sn}const bi=de.lastIndexOf(!0);this._coalescedStyleScheduler.schedule(()=>{var Li,Ji;for(let Wi=0;Wi<It.length;Wi++){if(!de[Wi])continue;const sn=$e[Wi],mn=Wi===bi;for(const Yt of Vt[Wi])this._addStickyStyle(Yt,it,sn,mn)}"top"===it?null===(Li=this._positionListener)||void 0===Li||Li.stickyHeaderRowsUpdated({sizes:bt,offsets:$e,elements:Vt}):null===(Ji=this._positionListener)||void 0===Ji||Ji.stickyFooterRowsUpdated({sizes:bt,offsets:$e,elements:Vt})})}updateStickyFooterContainer(Ft,pt){if(!this._isNativeHtmlTable)return;const it=Ft.querySelector("tfoot");this._coalescedStyleScheduler.schedule(()=>{pt.some(It=>!It)?this._removeStickyStyle(it,["bottom"]):this._addStickyStyle(it,"bottom",0,!1)})}_removeStickyStyle(Ft,pt){for(const It of pt)Ft.style[It]="",Ft.classList.remove(this._borderCellCss[It]);Z.some(It=>-1===pt.indexOf(It)&&Ft.style[It])?Ft.style.zIndex=this._getCalculatedZIndex(Ft):(Ft.style.zIndex="",this._needsPositionStickyOnElement&&(Ft.style.position=""),Ft.classList.remove(this._stickCellCss))}_addStickyStyle(Ft,pt,it,It){Ft.classList.add(this._stickCellCss),It&&Ft.classList.add(this._borderCellCss[pt]),Ft.style[pt]=`${it}px`,Ft.style.zIndex=this._getCalculatedZIndex(Ft),this._needsPositionStickyOnElement&&(Ft.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(Ft){const pt={top:100,bottom:10,left:1,right:1};let it=0;for(const It of Z)Ft.style[It]&&(it+=pt[It]);return it?`${it}`:""}_getCellWidths(Ft,pt=!0){if(!pt&&this._cachedCellWidths.length)return this._cachedCellWidths;const it=[],It=Ft.children;for(let de=0;de<It.length;de++)it.push(It[de].getBoundingClientRect().width);return this._cachedCellWidths=it,it}_getStickyStartColumnPositions(Ft,pt){const it=[];let It=0;for(let de=0;de<Ft.length;de++)pt[de]&&(it[de]=It,It+=Ft[de]);return it}_getStickyEndColumnPositions(Ft,pt){const it=[];let It=0;for(let de=Ft.length;de>0;de--)pt[de]&&(it[de]=It,It+=Ft[de]);return it}}const ue=new e.OlP("CDK_SPL");let Le=(()=>{class ct{constructor(pt,it){this.viewContainer=pt,this.elementRef=it}}return ct.\u0275fac=function(pt){return new(pt||ct)(e.Y36(e.s_b),e.Y36(e.SBq))},ct.\u0275dir=e.lG2({type:ct,selectors:[["","rowOutlet",""]]}),ct})(),lt=(()=>{class ct{constructor(pt,it){this.viewContainer=pt,this.elementRef=it}}return ct.\u0275fac=function(pt){return new(pt||ct)(e.Y36(e.s_b),e.Y36(e.SBq))},ct.\u0275dir=e.lG2({type:ct,selectors:[["","headerRowOutlet",""]]}),ct})(),ht=(()=>{class ct{constructor(pt,it){this.viewContainer=pt,this.elementRef=it}}return ct.\u0275fac=function(pt){return new(pt||ct)(e.Y36(e.s_b),e.Y36(e.SBq))},ct.\u0275dir=e.lG2({type:ct,selectors:[["","footerRowOutlet",""]]}),ct})(),Tt=(()=>{class ct{constructor(pt,it){this.viewContainer=pt,this.elementRef=it}}return ct.\u0275fac=function(pt){return new(pt||ct)(e.Y36(e.s_b),e.Y36(e.SBq))},ct.\u0275dir=e.lG2({type:ct,selectors:[["","noDataRowOutlet",""]]}),ct})(),Gt=(()=>{class ct{constructor(pt,it,It,de,$e,bt,Vt,bi,Li,Ji,Wi,sn){this._differs=pt,this._changeDetectorRef=it,this._elementRef=It,this._dir=$e,this._platform=Vt,this._viewRepeater=bi,this._coalescedStyleScheduler=Li,this._viewportRuler=Ji,this._stickyPositioningListener=Wi,this._ngZone=sn,this._onDestroy=new a.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 d.X({start:0,end:Number.MAX_VALUE}),de||this._elementRef.nativeElement.setAttribute("role","table"),this._document=bt,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(pt){this._trackByFn=pt}get dataSource(){return this._dataSource}set dataSource(pt){this._dataSource!==pt&&this._switchDataSource(pt)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(pt){this._multiTemplateDataRows=(0,i.Ig)(pt),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(pt){this._fixedLayout=(0,i.Ig)(pt),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((pt,it)=>this.trackBy?this.trackBy(it.dataIndex,it.data):it),this._viewportRuler.change().pipe((0,T.R)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const it=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||it,this._forceRecalculateCellWidths=it,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(pt=>{pt.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),(0,u.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const pt=this._dataDiffer.diff(this._renderRows);if(!pt)return this._updateNoDataRow(),void this.contentChanged.next();const it=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(pt,it,(It,de,$e)=>this._getEmbeddedViewArgs(It.item,$e),It=>It.item.data,It=>{1===It.operation&&It.context&&this._renderCellTemplateForItem(It.record.item.rowDef,It.context)}),this._updateRowIndexContext(),pt.forEachIdentityChange(It=>{it.get(It.currentIndex).context.$implicit=It.item.data}),this._updateNoDataRow(),this._ngZone&&e.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,M.q)(1),(0,T.R)(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(pt){this._customColumnDefs.add(pt)}removeColumnDef(pt){this._customColumnDefs.delete(pt)}addRowDef(pt){this._customRowDefs.add(pt)}removeRowDef(pt){this._customRowDefs.delete(pt)}addHeaderRowDef(pt){this._customHeaderRowDefs.add(pt),this._headerRowDefChanged=!0}removeHeaderRowDef(pt){this._customHeaderRowDefs.delete(pt),this._headerRowDefChanged=!0}addFooterRowDef(pt){this._customFooterRowDefs.add(pt),this._footerRowDefChanged=!0}removeFooterRowDef(pt){this._customFooterRowDefs.delete(pt),this._footerRowDefChanged=!0}setNoDataRow(pt){this._customNoDataRow=pt}updateStickyHeaderRowStyles(){const pt=this._getRenderedRows(this._headerRowOutlet),It=this._elementRef.nativeElement.querySelector("thead");It&&(It.style.display=pt.length?"":"none");const de=this._headerRowDefs.map($e=>$e.sticky);this._stickyStyler.clearStickyPositioning(pt,["top"]),this._stickyStyler.stickRows(pt,de,"top"),this._headerRowDefs.forEach($e=>$e.resetStickyChanged())}updateStickyFooterRowStyles(){const pt=this._getRenderedRows(this._footerRowOutlet),It=this._elementRef.nativeElement.querySelector("tfoot");It&&(It.style.display=pt.length?"":"none");const de=this._footerRowDefs.map($e=>$e.sticky);this._stickyStyler.clearStickyPositioning(pt,["bottom"]),this._stickyStyler.stickRows(pt,de,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,de),this._footerRowDefs.forEach($e=>$e.resetStickyChanged())}updateStickyColumnStyles(){const pt=this._getRenderedRows(this._headerRowOutlet),it=this._getRenderedRows(this._rowOutlet),It=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...pt,...it,...It],["left","right"]),this._stickyColumnStylesNeedReset=!1),pt.forEach((de,$e)=>{this._addStickyColumnStyles([de],this._headerRowDefs[$e])}),this._rowDefs.forEach(de=>{const $e=[];for(let bt=0;bt<it.length;bt++)this._renderRows[bt].rowDef===de&&$e.push(it[bt]);this._addStickyColumnStyles($e,de)}),It.forEach((de,$e)=>{this._addStickyColumnStyles([de],this._footerRowDefs[$e])}),Array.from(this._columnDefsByName.values()).forEach(de=>de.resetStickyChanged())}_getAllRenderRows(){const pt=[],it=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let It=0;It<this._data.length;It++){let de=this._data[It];const $e=this._getRenderRowsForData(de,It,it.get(de));this._cachedRenderRowsMap.has(de)||this._cachedRenderRowsMap.set(de,new WeakMap);for(let bt=0;bt<$e.length;bt++){let Vt=$e[bt];const bi=this._cachedRenderRowsMap.get(Vt.data);bi.has(Vt.rowDef)?bi.get(Vt.rowDef).push(Vt):bi.set(Vt.rowDef,[Vt]),pt.push(Vt)}}return pt}_getRenderRowsForData(pt,it,It){return this._getRowDefs(pt,it).map($e=>{const bt=It&&It.has($e)?It.get($e):[];if(bt.length){const Vt=bt.shift();return Vt.dataIndex=it,Vt}return{data:pt,rowDef:$e,dataIndex:it}})}_cacheColumnDefs(){this._columnDefsByName.clear(),di(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(it=>{this._columnDefsByName.has(it.name),this._columnDefsByName.set(it.name,it)})}_cacheRowDefs(){this._headerRowDefs=di(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=di(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=di(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const pt=this._rowDefs.filter(it=>!it.when);this._defaultRowDef=pt[0]}_renderUpdatedColumns(){const pt=($e,bt)=>$e||!!bt.getColumnsDiff(),it=this._rowDefs.reduce(pt,!1);it&&this._forceRenderDataRows();const It=this._headerRowDefs.reduce(pt,!1);It&&this._forceRenderHeaderRows();const de=this._footerRowDefs.reduce(pt,!1);return de&&this._forceRenderFooterRows(),it||It||de}_switchDataSource(pt){this._data=[],(0,u.Z9)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),pt||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=pt}_observeRenderChanges(){if(!this.dataSource)return;let pt;(0,u.Z9)(this.dataSource)?pt=this.dataSource.connect(this):(0,P.b)(this.dataSource)?pt=this.dataSource:Array.isArray(this.dataSource)&&(pt=(0,D.of)(this.dataSource)),this._renderChangeSubscription=pt.pipe((0,T.R)(this._onDestroy)).subscribe(it=>{this._data=it||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((pt,it)=>this._renderRow(this._headerRowOutlet,pt,it)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((pt,it)=>this._renderRow(this._footerRowOutlet,pt,it)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(pt,it){const It=Array.from(it.columns||[]).map(bt=>this._columnDefsByName.get(bt)),de=It.map(bt=>bt.sticky),$e=It.map(bt=>bt.stickyEnd);this._stickyStyler.updateStickyColumns(pt,de,$e,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(pt){const it=[];for(let It=0;It<pt.viewContainer.length;It++){const de=pt.viewContainer.get(It);it.push(de.rootNodes[0])}return it}_getRowDefs(pt,it){if(1==this._rowDefs.length)return[this._rowDefs[0]];let It=[];if(this.multiTemplateDataRows)It=this._rowDefs.filter(de=>!de.when||de.when(it,pt));else{let de=this._rowDefs.find($e=>$e.when&&$e.when(it,pt))||this._defaultRowDef;de&&It.push(de)}return It}_getEmbeddedViewArgs(pt,it){return{templateRef:pt.rowDef.template,context:{$implicit:pt.data},index:it}}_renderRow(pt,it,It,de={}){const $e=pt.viewContainer.createEmbeddedView(it.template,de,It);return this._renderCellTemplateForItem(it,de),$e}_renderCellTemplateForItem(pt,it){for(let It of this._getCellTemplates(pt))ke.mostRecentCellOutlet&&ke.mostRecentCellOutlet._viewContainer.createEmbeddedView(It,it);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const pt=this._rowOutlet.viewContainer;for(let it=0,It=pt.length;it<It;it++){const $e=pt.get(it).context;$e.count=It,$e.first=0===it,$e.last=it===It-1,$e.even=it%2==0,$e.odd=!$e.even,this.multiTemplateDataRows?($e.dataIndex=this._renderRows[it].dataIndex,$e.renderIndex=it):$e.index=this._renderRows[it].dataIndex}}_getCellTemplates(pt){return pt&&pt.columns?Array.from(pt.columns,it=>{const It=this._columnDefsByName.get(it);return pt.extractCellTemplate(It)}):[]}_applyNativeTableSections(){const pt=this._document.createDocumentFragment(),it=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const It of it){const de=this._document.createElement(It.tag);de.setAttribute("role","rowgroup");for(const $e of It.outlets)de.appendChild($e.elementRef.nativeElement);pt.appendChild(de)}this._elementRef.nativeElement.appendChild(pt)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const pt=(it,It)=>it||It.hasStickyChanged();this._headerRowDefs.reduce(pt,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(pt,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(pt,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new Y(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:(0,D.of)()).pipe((0,T.R)(this._onDestroy)).subscribe(it=>{this._stickyStyler.direction=it,this.updateStickyColumnStyles()})}_getOwnDefs(pt){return pt.filter(it=>!it._table||it._table===this)}_updateNoDataRow(){const pt=this._customNoDataRow||this._noDataRow;if(!pt)return;const it=0===this._rowOutlet.viewContainer.length;if(it===this._isShowingNoDataRow)return;const It=this._noDataRowOutlet.viewContainer;if(it){const de=It.createEmbeddedView(pt.templateRef),$e=de.rootNodes[0];1===de.rootNodes.length&&(null==$e?void 0:$e.nodeType)===this._document.ELEMENT_NODE&&($e.setAttribute("role","row"),$e.classList.add(pt._contentClassName))}else It.clear();this._isShowingNoDataRow=it}}return ct.\u0275fac=function(pt){return new(pt||ct)(e.Y36(e.ZZ4),e.Y36(e.sBO),e.Y36(e.SBq),e.$8M("role"),e.Y36(A.Is,8),e.Y36(b.K0),e.Y36(E.t4),e.Y36(u.k),e.Y36(S),e.Y36(k.rL),e.Y36(ue,12),e.Y36(e.R0b,8))},ct.\u0275cmp=e.Xpm({type:ct,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(pt,it,It){if(1&pt&&(e.Suo(It,be,5),e.Suo(It,x,5),e.Suo(It,ye,5),e.Suo(It,R,5),e.Suo(It,fe,5)),2&pt){let de;e.iGM(de=e.CRH())&&(it._noDataRow=de.first),e.iGM(de=e.CRH())&&(it._contentColumnDefs=de),e.iGM(de=e.CRH())&&(it._contentRowDefs=de),e.iGM(de=e.CRH())&&(it._contentHeaderRowDefs=de),e.iGM(de=e.CRH())&&(it._contentFooterRowDefs=de)}},viewQuery:function(pt,it){if(1&pt&&(e.Gf(Le,7),e.Gf(lt,7),e.Gf(ht,7),e.Gf(Tt,7)),2&pt){let It;e.iGM(It=e.CRH())&&(it._rowOutlet=It.first),e.iGM(It=e.CRH())&&(it._headerRowOutlet=It.first),e.iGM(It=e.CRH())&&(it._footerRowOutlet=It.first),e.iGM(It=e.CRH())&&(it._noDataRowOutlet=It.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(pt,it){2&pt&&e.ekj("cdk-table-fixed-layout",it.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[e._Bn([{provide:Q,useExisting:ct},{provide:u.k,useClass:u.yy},{provide:S,useClass:I},{provide:ue,useValue:null}])],ngContentSelectors:z,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(pt,it){1&pt&&(e.F$t(w),e.Hsn(0),e.Hsn(1,1),e.GkF(2,0)(3,1)(4,2)(5,3))},directives:[lt,Le,Tt,ht],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),ct})();function di(ct,Ft){return ct.concat(Array.from(Ft))}let gt=(()=>{class ct{}return ct.\u0275fac=function(pt){return new(pt||ct)},ct.\u0275mod=e.oAB({type:ct}),ct.\u0275inj=e.cJS({imports:[[k.Cl]]}),ct})();var Qe=p(508),_t=p(6451),ei=p(9841),Zt=p(4004);const Pe=[[["caption"]],[["colgroup"],["col"]]],De=["caption","colgroup, col"];let ft=(()=>{class ct extends Gt{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return ct.\u0275fac=function(){let Ft;return function(it){return(Ft||(Ft=e.n5z(ct)))(it||ct)}}(),ct.\u0275cmp=e.Xpm({type:ct,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(pt,it){2&pt&&e.ekj("mat-table-fixed-layout",it.fixedLayout)},exportAs:["matTable"],features:[e._Bn([{provide:u.k,useClass:u.yy},{provide:Gt,useExisting:ct},{provide:Q,useExisting:ct},{provide:S,useClass:I},{provide:ue,useValue:null}]),e.qOj],ngContentSelectors:De,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(pt,it){1&pt&&(e.F$t(Pe),e.Hsn(0),e.Hsn(1,1),e.GkF(2,0)(3,1)(4,2)(5,3))},directives:[lt,Le,Tt,ht],styles:["mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),ct})(),Rt=(()=>{class ct extends q{}return ct.\u0275fac=function(){let Ft;return function(it){return(Ft||(Ft=e.n5z(ct)))(it||ct)}}(),ct.\u0275dir=e.lG2({type:ct,selectors:[["","matCellDef",""]],features:[e._Bn([{provide:q,useExisting:ct}]),e.qOj]}),ct})(),et=(()=>{class ct extends ie{}return ct.\u0275fac=function(){let Ft;return function(it){return(Ft||(Ft=e.n5z(ct)))(it||ct)}}(),ct.\u0275dir=e.lG2({type:ct,selectors:[["","matHeaderCellDef",""]],features:[e._Bn([{provide:ie,useExisting:ct}]),e.qOj]}),ct})(),Re=(()=>{class ct extends se{}return ct.\u0275fac=function(){let Ft;return function(it){return(Ft||(Ft=e.n5z(ct)))(it||ct)}}(),ct.\u0275dir=e.lG2({type:ct,selectors:[["","matFooterCellDef",""]],features:[e._Bn([{provide:se,useExisting:ct}]),e.qOj]}),ct})(),qe=(()=>{class ct extends x{get name(){return this._name}set name(pt){this._setNameInput(pt)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return ct.\u0275fac=function(){let Ft;return function(it){return(Ft||(Ft=e.n5z(ct)))(it||ct)}}(),ct.\u0275dir=e.lG2({type:ct,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[e._Bn([{provide:x,useExisting:ct},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:ct}]),e.qOj]}),ct})(),Ze=(()=>{class ct extends r{}return ct.\u0275fac=function(){let Ft;return function(it){return(Ft||(Ft=e.n5z(ct)))(it||ct)}}(),ct.\u0275dir=e.lG2({type:ct,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[e.qOj]}),ct})(),we=(()=>{class ct extends h{}return ct.\u0275fac=function(){let Ft;return function(it){return(Ft||(Ft=e.n5z(ct)))(it||ct)}}(),ct.\u0275dir=e.lG2({type:ct,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:["role","gridcell",1,"mat-footer-cell"],features:[e.qOj]}),ct})(),Fe=(()=>{class ct extends c{}return ct.\u0275fac=function(){let Ft;return function(it){return(Ft||(Ft=e.n5z(ct)))(it||ct)}}(),ct.\u0275dir=e.lG2({type:ct,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[e.qOj]}),ct})(),rt=(()=>{class ct extends R{}return ct.\u0275fac=function(){let Ft;return function(it){return(Ft||(Ft=e.n5z(ct)))(it||ct)}}(),ct.\u0275dir=e.lG2({type:ct,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[e._Bn([{provide:R,useExisting:ct}]),e.qOj]}),ct})(),at=(()=>{class ct extends fe{}return ct.\u0275fac=function(){let Ft;return function(it){return(Ft||(Ft=e.n5z(ct)))(it||ct)}}(),ct.\u0275dir=e.lG2({type:ct,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[e._Bn([{provide:fe,useExisting:ct}]),e.qOj]}),ct})(),yt=(()=>{class ct extends ye{}return ct.\u0275fac=function(){let Ft;return function(it){return(Ft||(Ft=e.n5z(ct)))(it||ct)}}(),ct.\u0275dir=e.lG2({type:ct,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[e._Bn([{provide:ye,useExisting:ct}]),e.qOj]}),ct})(),mi=(()=>{class ct extends Ee{}return ct.\u0275fac=function(){let Ft;return function(it){return(Ft||(Ft=e.n5z(ct)))(it||ct)}}(),ct.\u0275cmp=e.Xpm({type:ct,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[e._Bn([{provide:Ee,useExisting:ct}]),e.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(pt,it){1&pt&&e.GkF(0,0)},directives:[ke],encapsulation:2}),ct})(),Xt=(()=>{class ct extends te{}return ct.\u0275fac=function(){let Ft;return function(it){return(Ft||(Ft=e.n5z(ct)))(it||ct)}}(),ct.\u0275cmp=e.Xpm({type:ct,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-footer-row"],exportAs:["matFooterRow"],features:[e._Bn([{provide:te,useExisting:ct}]),e.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(pt,it){1&pt&&e.GkF(0,0)},directives:[ke],encapsulation:2}),ct})(),Jt=(()=>{class ct extends ze{}return ct.\u0275fac=function(){let Ft;return function(it){return(Ft||(Ft=e.n5z(ct)))(it||ct)}}(),ct.\u0275cmp=e.Xpm({type:ct,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[e._Bn([{provide:ze,useExisting:ct}]),e.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(pt,it){1&pt&&e.GkF(0,0)},directives:[ke],encapsulation:2}),ct})(),en=(()=>{class ct{}return ct.\u0275fac=function(pt){return new(pt||ct)},ct.\u0275mod=e.oAB({type:ct}),ct.\u0275inj=e.cJS({imports:[[gt,Qe.BQ],Qe.BQ]}),ct})();class Bi extends u.o2{constructor(Ft=[]){super(),this._renderData=new d.X([]),this._filter=new d.X(""),this._internalPageChanges=new a.x,this._renderChangesSubscription=null,this.sortingDataAccessor=(pt,it)=>{const It=pt[it];if((0,i.t6)(It)){const de=Number(It);return de<9007199254740991?de:It}return It},this.sortData=(pt,it)=>{const It=it.active,de=it.direction;return It&&""!=de?pt.sort(($e,bt)=>{let Vt=this.sortingDataAccessor($e,It),bi=this.sortingDataAccessor(bt,It);const Li=typeof Vt,Ji=typeof bi;Li!==Ji&&("number"===Li&&(Vt+=""),"number"===Ji&&(bi+=""));let Wi=0;return null!=Vt&&null!=bi?Vt>bi?Wi=1:Vt<bi&&(Wi=-1):null!=Vt?Wi=1:null!=bi&&(Wi=-1),Wi*("asc"==de?1:-1)}):pt},this.filterPredicate=(pt,it)=>{const It=Object.keys(pt).reduce(($e,bt)=>$e+pt[bt]+"\u25ec","").toLowerCase(),de=it.trim().toLowerCase();return-1!=It.indexOf(de)},this._data=new d.X(Ft),this._updateChangeSubscription()}get data(){return this._data.value}set data(Ft){Ft=Array.isArray(Ft)?Ft:[],this._data.next(Ft),this._renderChangesSubscription||this._filterData(Ft)}get filter(){return this._filter.value}set filter(Ft){this._filter.next(Ft),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(Ft){this._sort=Ft,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(Ft){this._paginator=Ft,this._updateChangeSubscription()}_updateChangeSubscription(){var Ft;const pt=this._sort?(0,_t.T)(this._sort.sortChange,this._sort.initialized):(0,D.of)(null),it=this._paginator?(0,_t.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,D.of)(null),de=(0,ei.a)([this._data,this._filter]).pipe((0,Zt.U)(([Vt])=>this._filterData(Vt))),$e=(0,ei.a)([de,pt]).pipe((0,Zt.U)(([Vt])=>this._orderData(Vt))),bt=(0,ei.a)([$e,it]).pipe((0,Zt.U)(([Vt])=>this._pageData(Vt)));null===(Ft=this._renderChangesSubscription)||void 0===Ft||Ft.unsubscribe(),this._renderChangesSubscription=bt.subscribe(Vt=>this._renderData.next(Vt))}_filterData(Ft){return this.filteredData=null==this.filter||""===this.filter?Ft:Ft.filter(pt=>this.filterPredicate(pt,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(Ft){return this.sort?this.sortData(Ft.slice(),this.sort):Ft}_pageData(Ft){if(!this.paginator)return Ft;const pt=this.paginator.pageIndex*this.paginator.pageSize;return Ft.slice(pt,pt+this.paginator.pageSize)}_updatePaginator(Ft){Promise.resolve().then(()=>{const pt=this.paginator;if(pt&&(pt.length=Ft,pt.pageIndex>0)){const it=Math.ceil(pt.length/pt.pageSize)-1||0,It=Math.min(pt.pageIndex,it);It!==pt.pageIndex&&(pt.pageIndex=It,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var Ft;null===(Ft=this._renderChangesSubscription)||void 0===Ft||Ft.unsubscribe(),this._renderChangesSubscription=null}}class Gi extends Bi{}},3251:(He,j,p)=>{"use strict";p.d(j,{BU:()=>oe,Nh:()=>et,Nj:()=>ft,SP:()=>Zt,uD:()=>Ae,uX:()=>xe});var e=p(5664),i=p(7144),u=p(7429),b=p(9808),a=p(5e3),y=p(508),d=p(6360),P=p(5698),D=p(8675),T=p(1884),M=p(2722),A=p(3900),E=p(5684),k=p(7579),w=p(727),z=p(4968),U=p(9646),W=p(6451),ne=p(515),Q=p(8306),le=p(2805),q=p(1777),ie=p(226),se=p(3191),J=p(1159),me=p(925),x=p(5303);function t(Re,qe){1&Re&&a.Hsn(0)}const r=["*"];function h(Re,qe){}const c=function(Re){return{animationDuration:Re}},C=function(Re,qe){return{value:Re,params:qe}},S=["tabListContainer"],I=["tabList"],_=["tabListInner"],n=["nextPaginator"],g=["previousPaginator"],V=["tabBodyWrapper"],R=["tabHeader"];function H(Re,qe){}function $(Re,qe){if(1&Re&&a.YNc(0,H,0,0,"ng-template",10),2&Re){const Ze=a.oxw().$implicit;a.Q6J("cdkPortalOutlet",Ze.templateLabel)}}function fe(Re,qe){if(1&Re&&a._uU(0),2&Re){const Ze=a.oxw().$implicit;a.Oqu(Ze.textLabel)}}function ye(Re,qe){if(1&Re){const Ze=a.EpF();a.TgZ(0,"div",6),a.NdJ("click",function(){const Fe=a.CHM(Ze),rt=Fe.$implicit,at=Fe.index,yt=a.oxw(),mi=a.MAs(1);return yt._handleClick(rt,mi,at)})("cdkFocusChange",function(Fe){const at=a.CHM(Ze).index;return a.oxw()._tabFocusChanged(Fe,at)}),a.TgZ(1,"div",7),a.YNc(2,$,1,1,"ng-template",8),a.YNc(3,fe,1,1,"ng-template",null,9,a.W1O),a.qZA()()}if(2&Re){const Ze=qe.$implicit,we=qe.index,Fe=a.MAs(4),rt=a.oxw();a.ekj("mat-tab-label-active",rt.selectedIndex===we),a.Q6J("id",rt._getTabLabelId(we))("ngClass",Ze.labelClass)("disabled",Ze.disabled)("matRippleDisabled",Ze.disabled||rt.disableRipple),a.uIk("tabIndex",rt._getTabIndex(Ze,we))("aria-posinset",we+1)("aria-setsize",rt._tabs.length)("aria-controls",rt._getTabContentId(we))("aria-selected",rt.selectedIndex===we)("aria-label",Ze.ariaLabel||null)("aria-labelledby",!Ze.ariaLabel&&Ze.ariaLabelledby?Ze.ariaLabelledby:null),a.xp6(2),a.Q6J("ngIf",Ze.templateLabel)("ngIfElse",Fe)}}function ke(Re,qe){if(1&Re){const Ze=a.EpF();a.TgZ(0,"mat-tab-body",11),a.NdJ("_onCentered",function(){return a.CHM(Ze),a.oxw()._removeTabBodyWrapperHeight()})("_onCentering",function(Fe){return a.CHM(Ze),a.oxw()._setTabBodyWrapperHeight(Fe)}),a.qZA()}if(2&Re){const Ze=qe.$implicit,we=qe.index,Fe=a.oxw();a.ekj("mat-tab-body-active",Fe.selectedIndex===we),a.Q6J("id",Fe._getTabContentId(we))("ngClass",Ze.bodyClass)("content",Ze.content)("position",Ze.position)("origin",Ze.origin)("animationDuration",Fe.animationDuration),a.uIk("tabindex",null!=Fe.contentTabIndex&&Fe.selectedIndex===we?Fe.contentTabIndex:null)("aria-labelledby",Fe._getTabLabelId(we))}}const Ee=["mat-tab-nav-bar",""],te=new a.OlP("MatInkBarPositioner",{providedIn:"root",factory:function ze(){return qe=>({left:qe?(qe.offsetLeft||0)+"px":"0",width:qe?(qe.offsetWidth||0)+"px":"0"})}});let be=(()=>{class Re{constructor(Ze,we,Fe,rt){this._elementRef=Ze,this._ngZone=we,this._inkBarPositioner=Fe,this._animationMode=rt}alignToElement(Ze){this.show(),this._ngZone.onStable.pipe((0,P.q)(1)).subscribe(()=>{const we=this._inkBarPositioner(Ze),Fe=this._elementRef.nativeElement;Fe.style.left=we.left,Fe.style.width=we.width})}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}}return Re.\u0275fac=function(Ze){return new(Ze||Re)(a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(te),a.Y36(d.Qb,8))},Re.\u0275dir=a.lG2({type:Re,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(Ze,we){2&Ze&&a.ekj("_mat-animation-noopable","NoopAnimations"===we._animationMode)}}),Re})();const Z=new a.OlP("MatTabContent"),ot=new a.OlP("MatTabLabel"),Ie=new a.OlP("MAT_TAB");let Ae=(()=>{class Re extends u.ig{constructor(Ze,we,Fe){super(Ze,we),this._closestTab=Fe}}return Re.\u0275fac=function(Ze){return new(Ze||Re)(a.Y36(a.Rgc),a.Y36(a.s_b),a.Y36(Ie,8))},Re.\u0275dir=a.lG2({type:Re,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[a._Bn([{provide:ot,useExisting:Re}]),a.qOj]}),Re})();const ce=(0,y.Id)(class{}),Te=new a.OlP("MAT_TAB_GROUP");let xe=(()=>{class Re extends ce{constructor(Ze,we){super(),this._viewContainerRef=Ze,this._closestTabGroup=we,this.textLabel="",this._contentPortal=null,this._stateChanges=new k.x,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(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 u.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(Ze){Ze&&Ze._closestTab===this&&(this._templateLabel=Ze)}}return Re.\u0275fac=function(Ze){return new(Ze||Re)(a.Y36(a.s_b),a.Y36(Te,8))},Re.\u0275cmp=a.Xpm({type:Re,selectors:[["mat-tab"]],contentQueries:function(Ze,we,Fe){if(1&Ze&&(a.Suo(Fe,ot,5),a.Suo(Fe,Z,7,a.Rgc)),2&Ze){let rt;a.iGM(rt=a.CRH())&&(we.templateLabel=rt.first),a.iGM(rt=a.CRH())&&(we._explicitContent=rt.first)}},viewQuery:function(Ze,we){if(1&Ze&&a.Gf(a.Rgc,7),2&Ze){let Fe;a.iGM(Fe=a.CRH())&&(we._implicitContent=Fe.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],features:[a._Bn([{provide:Ie,useExisting:Re}]),a.qOj,a.TTD],ngContentSelectors:r,decls:1,vars:0,template:function(Ze,we){1&Ze&&(a.F$t(),a.YNc(0,t,1,0,"ng-template"))},encapsulation:2}),Re})();const G={translateTab:(0,q.X$)("translateTab",[(0,q.SB)("center, void, left-origin-center, right-origin-center",(0,q.oB)({transform:"none"})),(0,q.SB)("left",(0,q.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),(0,q.SB)("right",(0,q.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),(0,q.eR)("* => left, * => right, left => center, right => center",(0,q.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,q.eR)("void => left-origin-center",[(0,q.oB)({transform:"translate3d(-100%, 0, 0)"}),(0,q.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,q.eR)("void => right-origin-center",[(0,q.oB)({transform:"translate3d(100%, 0, 0)"}),(0,q.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let ee=(()=>{class Re extends u.Pl{constructor(Ze,we,Fe,rt){super(Ze,we,rt),this._host=Fe,this._centeringSub=w.w0.EMPTY,this._leavingSub=w.w0.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,D.O)(this._host._isCenterPosition(this._host._position))).subscribe(Ze=>{Ze&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return Re.\u0275fac=function(Ze){return new(Ze||Re)(a.Y36(a._Vd),a.Y36(a.s_b),a.Y36((0,a.Gpc)(()=>ve)),a.Y36(b.K0))},Re.\u0275dir=a.lG2({type:Re,selectors:[["","matTabBodyHost",""]],features:[a.qOj]}),Re})(),ue=(()=>{class Re{constructor(Ze,we,Fe){this._elementRef=Ze,this._dir=we,this._dirChangeSubscription=w.w0.EMPTY,this._translateTabComplete=new k.x,this._onCentering=new a.vpe,this._beforeCentering=new a.vpe,this._afterLeavingCenter=new a.vpe,this._onCentered=new a.vpe(!0),this.animationDuration="500ms",we&&(this._dirChangeSubscription=we.change.subscribe(rt=>{this._computePositionAnimationState(rt),Fe.markForCheck()})),this._translateTabComplete.pipe((0,T.x)((rt,at)=>rt.fromState===at.fromState&&rt.toState===at.toState)).subscribe(rt=>{this._isCenterPosition(rt.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(rt.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 we=this._isCenterPosition(Ze.toState);this._beforeCentering.emit(we),we&&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._position=this._positionIndex<0?"ltr"==Ze?"left":"right":this._positionIndex>0?"ltr"==Ze?"right":"left":"center"}_computePositionFromOrigin(Ze){const we=this._getLayoutDirection();return"ltr"==we&&Ze<=0||"rtl"==we&&Ze>0?"left-origin-center":"right-origin-center"}}return Re.\u0275fac=function(Ze){return new(Ze||Re)(a.Y36(a.SBq),a.Y36(ie.Is,8),a.Y36(a.sBO))},Re.\u0275dir=a.lG2({type:Re,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),Re})(),ve=(()=>{class Re extends ue{constructor(Ze,we,Fe){super(Ze,we,Fe)}}return Re.\u0275fac=function(Ze){return new(Ze||Re)(a.Y36(a.SBq),a.Y36(ie.Is,8),a.Y36(a.sBO))},Re.\u0275cmp=a.Xpm({type:Re,selectors:[["mat-tab-body"]],viewQuery:function(Ze,we){if(1&Ze&&a.Gf(u.Pl,5),2&Ze){let Fe;a.iGM(Fe=a.CRH())&&(we._portalHost=Fe.first)}},hostAttrs:[1,"mat-tab-body"],features:[a.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(Ze,we){1&Ze&&(a.TgZ(0,"div",0,1),a.NdJ("@translateTab.start",function(rt){return we._onTranslateTabStarted(rt)})("@translateTab.done",function(rt){return we._translateTabComplete.next(rt)}),a.YNc(2,h,0,0,"ng-template",2),a.qZA()),2&Ze&&a.Q6J("@translateTab",a.WLB(3,C,we._position,a.VKq(1,c,we.animationDuration)))},directives:[ee],styles:['.mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}.mat-tab-body-content[style*="visibility: hidden"]{display:none}\n'],encapsulation:2,data:{animation:[G.translateTab]}}),Re})();const Le=new a.OlP("MAT_TABS_CONFIG"),lt=(0,y.Id)(class{});let ht=(()=>{class Re extends lt{constructor(Ze){super(),this.elementRef=Ze}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return Re.\u0275fac=function(Ze){return new(Ze||Re)(a.Y36(a.SBq))},Re.\u0275dir=a.lG2({type:Re,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(Ze,we){2&Ze&&(a.uIk("aria-disabled",!!we.disabled),a.ekj("mat-tab-disabled",we.disabled))},inputs:{disabled:"disabled"},features:[a.qOj]}),Re})();const Tt=(0,me.i$)({passive:!0});let di=(()=>{class Re{constructor(Ze,we,Fe,rt,at,yt,mi){this._elementRef=Ze,this._changeDetectorRef=we,this._viewportRuler=Fe,this._dir=rt,this._ngZone=at,this._platform=yt,this._animationMode=mi,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new k.x,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new k.x,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new a.vpe,this.indexFocused=new a.vpe,at.runOutsideAngular(()=>{(0,z.R)(Ze.nativeElement,"mouseleave").pipe((0,M.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get selectedIndex(){return this._selectedIndex}set selectedIndex(Ze){Ze=(0,se.su)(Ze),this._selectedIndex!=Ze&&(this._selectedIndexChanged=!0,this._selectedIndex=Ze,this._keyManager&&this._keyManager.updateActiveItem(Ze))}ngAfterViewInit(){(0,z.R)(this._previousPaginator.nativeElement,"touchstart",Tt).pipe((0,M.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,z.R)(this._nextPaginator.nativeElement,"touchstart",Tt).pipe((0,M.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const Ze=this._dir?this._dir.change:(0,U.of)("ltr"),we=this._viewportRuler.change(150),Fe=()=>{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,P.q)(1)).subscribe(Fe),(0,W.T)(Ze,we,this._items.changes,this._itemsResized()).pipe((0,M.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),Fe()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe((0,M.R)(this._destroyed)).subscribe(rt=>{this.indexFocused.emit(rt),this._setTabFocus(rt)})}_itemsResized(){return"function"!=typeof ResizeObserver?ne.E:this._items.changes.pipe((0,D.O)(this._items),(0,A.w)(Ze=>new Q.y(we=>this._ngZone.runOutsideAngular(()=>{const Fe=new ResizeObserver(()=>{we.next()});return Ze.forEach(rt=>{Fe.observe(rt.elementRef.nativeElement)}),()=>{Fe.disconnect()}}))),(0,E.T)(1))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(Ze){if(!(0,J.Vb)(Ze))switch(Ze.keyCode){case J.K5:case J.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 we=this._items?this._items.toArray()[Ze]:null;return!!we&&!we.disabled}_setTabFocus(Ze){if(this._showPaginationControls&&this._scrollToLabel(Ze),this._items&&this._items.length){this._items.toArray()[Ze].focus();const we=this._tabListContainer.nativeElement;we.scrollLeft="ltr"==this._getLayoutDirection()?0:we.scrollWidth-we.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const Ze=this.scrollDistance,we="ltr"===this._getLayoutDirection()?-Ze:Ze;this._tabList.nativeElement.style.transform=`translateX(${Math.round(we)}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){return this._scrollTo(this._scrollDistance+("before"==Ze?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(Ze){this._stopInterval(),this._scrollHeader(Ze)}_scrollToLabel(Ze){if(this.disablePagination)return;const we=this._items?this._items.toArray()[Ze]:null;if(!we)return;const Fe=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:rt,offsetWidth:at}=we.elementRef.nativeElement;let yt,mi;"ltr"==this._getLayoutDirection()?(yt=rt,mi=yt+at):(mi=this._tabListInner.nativeElement.offsetWidth-rt,yt=mi-at);const Xt=this.scrollDistance,Jt=this.scrollDistance+Fe;yt<Xt?this.scrollDistance-=Xt-yt+60:mi>Jt&&(this.scrollDistance+=mi-Jt+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,we=Ze?Ze.elementRef.nativeElement:null;we?this._inkBar.alignToElement(we):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(Ze,we){we&&null!=we.button&&0!==we.button||(this._stopInterval(),(0,le.H)(650,100).pipe((0,M.R)((0,W.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:Fe,distance:rt}=this._scrollHeader(Ze);(0===rt||rt>=Fe)&&this._stopInterval()}))}_scrollTo(Ze){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const we=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(we,Ze)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:we,distance:this._scrollDistance}}}return Re.\u0275fac=function(Ze){return new(Ze||Re)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(x.rL),a.Y36(ie.Is,8),a.Y36(a.R0b),a.Y36(me.t4),a.Y36(d.Qb,8))},Re.\u0275dir=a.lG2({type:Re,inputs:{disablePagination:"disablePagination"}}),Re})(),vt=(()=>{class Re extends di{constructor(Ze,we,Fe,rt,at,yt,mi){super(Ze,we,Fe,rt,at,yt,mi),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(Ze){this._disableRipple=(0,se.Ig)(Ze)}_itemSelected(Ze){Ze.preventDefault()}}return Re.\u0275fac=function(Ze){return new(Ze||Re)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(x.rL),a.Y36(ie.Is,8),a.Y36(a.R0b),a.Y36(me.t4),a.Y36(d.Qb,8))},Re.\u0275dir=a.lG2({type:Re,inputs:{disableRipple:"disableRipple"},features:[a.qOj]}),Re})(),kt=(()=>{class Re extends vt{constructor(Ze,we,Fe,rt,at,yt,mi){super(Ze,we,Fe,rt,at,yt,mi)}}return Re.\u0275fac=function(Ze){return new(Ze||Re)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(x.rL),a.Y36(ie.Is,8),a.Y36(a.R0b),a.Y36(me.t4),a.Y36(d.Qb,8))},Re.\u0275cmp=a.Xpm({type:Re,selectors:[["mat-tab-header"]],contentQueries:function(Ze,we,Fe){if(1&Ze&&a.Suo(Fe,ht,4),2&Ze){let rt;a.iGM(rt=a.CRH())&&(we._items=rt)}},viewQuery:function(Ze,we){if(1&Ze&&(a.Gf(be,7),a.Gf(S,7),a.Gf(I,7),a.Gf(_,7),a.Gf(n,5),a.Gf(g,5)),2&Ze){let Fe;a.iGM(Fe=a.CRH())&&(we._inkBar=Fe.first),a.iGM(Fe=a.CRH())&&(we._tabListContainer=Fe.first),a.iGM(Fe=a.CRH())&&(we._tabList=Fe.first),a.iGM(Fe=a.CRH())&&(we._tabListInner=Fe.first),a.iGM(Fe=a.CRH())&&(we._nextPaginator=Fe.first),a.iGM(Fe=a.CRH())&&(we._previousPaginator=Fe.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(Ze,we){2&Ze&&a.ekj("mat-tab-header-pagination-controls-enabled",we._showPaginationControls)("mat-tab-header-rtl","rtl"==we._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[a.qOj],ngContentSelectors:r,decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(Ze,we){1&Ze&&(a.F$t(),a.TgZ(0,"button",0,1),a.NdJ("click",function(){return we._handlePaginatorClick("before")})("mousedown",function(rt){return we._handlePaginatorPress("before",rt)})("touchend",function(){return we._stopInterval()}),a._UZ(2,"div",2),a.qZA(),a.TgZ(3,"div",3,4),a.NdJ("keydown",function(rt){return we._handleKeydown(rt)}),a.TgZ(5,"div",5,6),a.NdJ("cdkObserveContent",function(){return we._onContentChanges()}),a.TgZ(7,"div",7,8),a.Hsn(9),a.qZA(),a._UZ(10,"mat-ink-bar"),a.qZA()(),a.TgZ(11,"button",9,10),a.NdJ("mousedown",function(rt){return we._handlePaginatorPress("after",rt)})("click",function(){return we._handlePaginatorClick("after")})("touchend",function(){return we._stopInterval()}),a._UZ(13,"div",2),a.qZA()),2&Ze&&(a.ekj("mat-tab-header-pagination-disabled",we._disableScrollBefore),a.Q6J("matRippleDisabled",we._disableScrollBefore||we.disableRipple)("disabled",we._disableScrollBefore||null),a.xp6(5),a.ekj("_mat-animation-noopable","NoopAnimations"===we._animationMode),a.xp6(6),a.ekj("mat-tab-header-pagination-disabled",we._disableScrollAfter),a.Q6J("matRippleDisabled",we._disableScrollAfter||we.disableRipple)("disabled",we._disableScrollAfter||null))},directives:[y.wG,i.wD,be],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n"],encapsulation:2}),Re})(),gt=0;class Qe{}const _t=(0,y.pj)((0,y.Kr)(class{constructor(Re){this._elementRef=Re}}),"primary");let ei=(()=>{class Re extends _t{constructor(Ze,we,Fe,rt){var at;super(Ze),this._changeDetectorRef=we,this._animationMode=rt,this._tabs=new a.n_E,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=w.w0.EMPTY,this._tabLabelSubscription=w.w0.EMPTY,this._selectedIndex=null,this.headerPosition="above",this.selectedIndexChange=new a.vpe,this.focusChange=new a.vpe,this.animationDone=new a.vpe,this.selectedTabChange=new a.vpe(!0),this._groupId=gt++,this.animationDuration=Fe&&Fe.animationDuration?Fe.animationDuration:"500ms",this.disablePagination=!(!Fe||null==Fe.disablePagination)&&Fe.disablePagination,this.dynamicHeight=!(!Fe||null==Fe.dynamicHeight)&&Fe.dynamicHeight,this.contentTabIndex=null!==(at=null==Fe?void 0:Fe.contentTabIndex)&&void 0!==at?at:null}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(Ze){this._dynamicHeight=(0,se.Ig)(Ze)}get selectedIndex(){return this._selectedIndex}set selectedIndex(Ze){this._indexToSelect=(0,se.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,se.su)(Ze,null)}get backgroundColor(){return this._backgroundColor}set backgroundColor(Ze){const we=this._elementRef.nativeElement;we.classList.remove(`mat-background-${this.backgroundColor}`),Ze&&we.classList.add(`mat-background-${Ze}`),this._backgroundColor=Ze}ngAfterContentChecked(){const Ze=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=Ze){const we=null==this._selectedIndex;if(!we){this.selectedTabChange.emit(this._createChangeEvent(Ze));const Fe=this._tabBodyWrapper.nativeElement;Fe.style.minHeight=Fe.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((Fe,rt)=>Fe.isActive=rt===Ze),we||(this.selectedIndexChange.emit(Ze),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((we,Fe)=>{we.position=Fe-Ze,null!=this._selectedIndex&&0==we.position&&!we.origin&&(we.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 we=this._tabs.toArray();let Fe;for(let rt=0;rt<we.length;rt++)if(we[rt].isActive){this._indexToSelect=this._selectedIndex=rt,this._lastFocusedTabIndex=null,Fe=we[rt];break}!Fe&&we[Ze]&&Promise.resolve().then(()=>{we[Ze].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(Ze))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe((0,D.O)(this._allTabs)).subscribe(Ze=>{this._tabs.reset(Ze.filter(we=>we._closestTabGroup===this||!we._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 we=this._tabHeader;we&&(we.focusIndex=Ze)}_focusChanged(Ze){this._lastFocusedTabIndex=Ze,this.focusChange.emit(this._createChangeEvent(Ze))}_createChangeEvent(Ze){const we=new Qe;return we.index=Ze,this._tabs&&this._tabs.length&&(we.tab=this._tabs.toArray()[Ze]),we}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,W.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 we=this._tabBodyWrapper.nativeElement;we.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(we.style.height=Ze+"px")}_removeTabBodyWrapperHeight(){const Ze=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=Ze.clientHeight,Ze.style.height="",this.animationDone.emit()}_handleClick(Ze,we,Fe){Ze.disabled||(this.selectedIndex=we.focusIndex=Fe)}_getTabIndex(Ze,we){var Fe;return Ze.disabled?null:we===(null!==(Fe=this._lastFocusedTabIndex)&&void 0!==Fe?Fe:this.selectedIndex)?0:-1}_tabFocusChanged(Ze,we){Ze&&"mouse"!==Ze&&"touch"!==Ze&&(this._tabHeader.focusIndex=we)}}return Re.\u0275fac=function(Ze){return new(Ze||Re)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(Le,8),a.Y36(d.Qb,8))},Re.\u0275dir=a.lG2({type:Re,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[a.qOj]}),Re})(),Zt=(()=>{class Re extends ei{constructor(Ze,we,Fe,rt){super(Ze,we,Fe,rt)}}return Re.\u0275fac=function(Ze){return new(Ze||Re)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(Le,8),a.Y36(d.Qb,8))},Re.\u0275cmp=a.Xpm({type:Re,selectors:[["mat-tab-group"]],contentQueries:function(Ze,we,Fe){if(1&Ze&&a.Suo(Fe,xe,5),2&Ze){let rt;a.iGM(rt=a.CRH())&&(we._allTabs=rt)}},viewQuery:function(Ze,we){if(1&Ze&&(a.Gf(V,5),a.Gf(R,5)),2&Ze){let Fe;a.iGM(Fe=a.CRH())&&(we._tabBodyWrapper=Fe.first),a.iGM(Fe=a.CRH())&&(we._tabHeader=Fe.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(Ze,we){2&Ze&&a.ekj("mat-tab-group-dynamic-height",we.dynamicHeight)("mat-tab-group-inverted-header","below"===we.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[a._Bn([{provide:Te,useExisting:Re}]),a.qOj],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","ngClass","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","ngClass","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","ngClass","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(Ze,we){1&Ze&&(a.TgZ(0,"mat-tab-header",0,1),a.NdJ("indexFocused",function(rt){return we._focusChanged(rt)})("selectFocusedIndex",function(rt){return we.selectedIndex=rt}),a.YNc(2,ye,5,15,"div",2),a.qZA(),a.TgZ(3,"div",3,4),a.YNc(5,ke,1,10,"mat-tab-body",5),a.qZA()),2&Ze&&(a.Q6J("selectedIndex",we.selectedIndex||0)("disableRipple",we.disableRipple)("disablePagination",we.disablePagination),a.xp6(2),a.Q6J("ngForOf",we._tabs),a.xp6(1),a.ekj("_mat-animation-noopable","NoopAnimations"===we._animationMode),a.xp6(2),a.Q6J("ngForOf",we._tabs))},directives:[kt,ve,b.sg,ht,y.wG,e.kH,b.mk,b.O5,u.Pl],styles:[".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),Re})(),Pe=0,De=(()=>{class Re extends di{constructor(Ze,we,Fe,rt,at,yt,mi){super(Ze,rt,at,we,Fe,yt,mi),this._disableRipple=!1,this.color="primary"}get backgroundColor(){return this._backgroundColor}set backgroundColor(Ze){const we=this._elementRef.nativeElement.classList;we.remove(`mat-background-${this.backgroundColor}`),Ze&&we.add(`mat-background-${Ze}`),this._backgroundColor=Ze}get disableRipple(){return this._disableRipple}set disableRipple(Ze){this._disableRipple=(0,se.Ig)(Ze)}_itemSelected(){}ngAfterContentInit(){this._items.changes.pipe((0,D.O)(null),(0,M.R)(this._destroyed)).subscribe(()=>{this.updateActiveLink()}),super.ngAfterContentInit()}updateActiveLink(){if(!this._items)return;const Ze=this._items.toArray();for(let we=0;we<Ze.length;we++)if(Ze[we].active)return this.selectedIndex=we,this._changeDetectorRef.markForCheck(),void(this.tabPanel&&(this.tabPanel._activeTabId=Ze[we].id));this.selectedIndex=-1,this._inkBar.hide()}_getRole(){return this.tabPanel?"tablist":this._elementRef.nativeElement.getAttribute("role")}}return Re.\u0275fac=function(Ze){return new(Ze||Re)(a.Y36(a.SBq),a.Y36(ie.Is,8),a.Y36(a.R0b),a.Y36(a.sBO),a.Y36(x.rL),a.Y36(me.t4),a.Y36(d.Qb,8))},Re.\u0275dir=a.lG2({type:Re,inputs:{backgroundColor:"backgroundColor",disableRipple:"disableRipple",color:"color",tabPanel:"tabPanel"},features:[a.qOj]}),Re})(),oe=(()=>{class Re extends De{constructor(Ze,we,Fe,rt,at,yt,mi){super(Ze,we,Fe,rt,at,yt,mi)}}return Re.\u0275fac=function(Ze){return new(Ze||Re)(a.Y36(a.SBq),a.Y36(ie.Is,8),a.Y36(a.R0b),a.Y36(a.sBO),a.Y36(x.rL),a.Y36(me.t4),a.Y36(d.Qb,8))},Re.\u0275cmp=a.Xpm({type:Re,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(Ze,we,Fe){if(1&Ze&&a.Suo(Fe,ft,5),2&Ze){let rt;a.iGM(rt=a.CRH())&&(we._items=rt)}},viewQuery:function(Ze,we){if(1&Ze&&(a.Gf(be,7),a.Gf(S,7),a.Gf(I,7),a.Gf(_,7),a.Gf(n,5),a.Gf(g,5)),2&Ze){let Fe;a.iGM(Fe=a.CRH())&&(we._inkBar=Fe.first),a.iGM(Fe=a.CRH())&&(we._tabListContainer=Fe.first),a.iGM(Fe=a.CRH())&&(we._tabList=Fe.first),a.iGM(Fe=a.CRH())&&(we._tabListInner=Fe.first),a.iGM(Fe=a.CRH())&&(we._nextPaginator=Fe.first),a.iGM(Fe=a.CRH())&&(we._previousPaginator=Fe.first)}},hostAttrs:[1,"mat-tab-nav-bar","mat-tab-header"],hostVars:11,hostBindings:function(Ze,we){2&Ze&&(a.uIk("role",we._getRole()),a.ekj("mat-tab-header-pagination-controls-enabled",we._showPaginationControls)("mat-tab-header-rtl","rtl"==we._getLayoutDirection())("mat-primary","warn"!==we.color&&"accent"!==we.color)("mat-accent","accent"===we.color)("mat-warn","warn"===we.color))},inputs:{color:"color"},exportAs:["matTabNavBar","matTabNav"],features:[a.qOj],attrs:Ee,ngContentSelectors:r,decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-link-container",3,"keydown"],["tabListContainer",""],[1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-links"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(Ze,we){1&Ze&&(a.F$t(),a.TgZ(0,"button",0,1),a.NdJ("click",function(){return we._handlePaginatorClick("before")})("mousedown",function(rt){return we._handlePaginatorPress("before",rt)})("touchend",function(){return we._stopInterval()}),a._UZ(2,"div",2),a.qZA(),a.TgZ(3,"div",3,4),a.NdJ("keydown",function(rt){return we._handleKeydown(rt)}),a.TgZ(5,"div",5,6),a.NdJ("cdkObserveContent",function(){return we._onContentChanges()}),a.TgZ(7,"div",7,8),a.Hsn(9),a.qZA(),a._UZ(10,"mat-ink-bar"),a.qZA()(),a.TgZ(11,"button",9,10),a.NdJ("mousedown",function(rt){return we._handlePaginatorPress("after",rt)})("click",function(){return we._handlePaginatorClick("after")})("touchend",function(){return we._stopInterval()}),a._UZ(13,"div",2),a.qZA()),2&Ze&&(a.ekj("mat-tab-header-pagination-disabled",we._disableScrollBefore),a.Q6J("matRippleDisabled",we._disableScrollBefore||we.disableRipple)("disabled",we._disableScrollBefore||null),a.xp6(5),a.ekj("_mat-animation-noopable","NoopAnimations"===we._animationMode),a.xp6(6),a.ekj("mat-tab-header-pagination-disabled",we._disableScrollAfter),a.Q6J("matRippleDisabled",we._disableScrollAfter||we.disableRipple)("disabled",we._disableScrollAfter||null))},directives:[y.wG,i.wD,be],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-links{display:flex}[mat-align-tabs=center]>.mat-tab-link-container .mat-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-tab-link-container .mat-tab-links{justify-content:flex-end}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-link{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;vertical-align:top;text-decoration:none;position:relative;overflow:hidden;-webkit-tap-highlight-color:transparent}.mat-tab-link:focus{outline:none}.mat-tab-link:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-link:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-link.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-link.mat-tab-disabled{opacity:.5}.mat-tab-link .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-link{opacity:1}[mat-stretch-tabs] .mat-tab-link{flex-basis:0;flex-grow:1}.mat-tab-link.mat-tab-disabled{pointer-events:none}@media(max-width: 599px){.mat-tab-link{min-width:72px}}\n"],encapsulation:2}),Re})();const Me=(0,y.sb)((0,y.Kr)((0,y.Id)(class{})));let ut=(()=>{class Re extends Me{constructor(Ze,we,Fe,rt,at,yt){super(),this._tabNavBar=Ze,this.elementRef=we,this._focusMonitor=at,this._isActive=!1,this.id="mat-tab-link-"+Pe++,this.rippleConfig=Fe||{},this.tabIndex=parseInt(rt)||0,"NoopAnimations"===yt&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0})}get active(){return this._isActive}set active(Ze){const we=(0,se.Ig)(Ze);we!==this._isActive&&(this._isActive=we,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===J.L_&&this.elementRef.nativeElement.click()}_getAriaControls(){var Ze;return this._tabNavBar.tabPanel?null===(Ze=this._tabNavBar.tabPanel)||void 0===Ze?void 0:Ze.id:this.elementRef.nativeElement.getAttribute("aria-controls")}_getAriaSelected(){return this._tabNavBar.tabPanel?this.active?"true":"false":this.elementRef.nativeElement.getAttribute("aria-selected")}_getAriaCurrent(){return this.active&&!this._tabNavBar.tabPanel?"page":null}_getRole(){return this._tabNavBar.tabPanel?"tab":this.elementRef.nativeElement.getAttribute("role")}_getTabIndex(){return this._tabNavBar.tabPanel?this._isActive?0:-1:this.tabIndex}}return Re.\u0275fac=function(Ze){return new(Ze||Re)(a.Y36(De),a.Y36(a.SBq),a.Y36(y.Y2,8),a.$8M("tabindex"),a.Y36(e.tE),a.Y36(d.Qb,8))},Re.\u0275dir=a.lG2({type:Re,inputs:{active:"active",id:"id"},features:[a.qOj]}),Re})(),ft=(()=>{class Re extends ut{constructor(Ze,we,Fe,rt,at,yt,mi,Xt){super(Ze,we,at,yt,mi,Xt),this._tabLinkRipple=new y.IR(this,Fe,we,rt),this._tabLinkRipple.setupTriggerEvents(we.nativeElement)}ngOnDestroy(){super.ngOnDestroy(),this._tabLinkRipple._removeTriggerEvents()}}return Re.\u0275fac=function(Ze){return new(Ze||Re)(a.Y36(oe),a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(me.t4),a.Y36(y.Y2,8),a.$8M("tabindex"),a.Y36(e.tE),a.Y36(d.Qb,8))},Re.\u0275dir=a.lG2({type:Re,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:11,hostBindings:function(Ze,we){1&Ze&&a.NdJ("focus",function(){return we._handleFocus()})("keydown",function(rt){return we._handleKeydown(rt)}),2&Ze&&(a.uIk("aria-controls",we._getAriaControls())("aria-current",we._getAriaCurrent())("aria-disabled",we.disabled)("aria-selected",we._getAriaSelected())("id",we.id)("tabIndex",we._getTabIndex())("role",we._getRole()),a.ekj("mat-tab-disabled",we.disabled)("mat-tab-label-active",we.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[a.qOj]}),Re})(),et=(()=>{class Re{}return Re.\u0275fac=function(Ze){return new(Ze||Re)},Re.\u0275mod=a.oAB({type:Re}),Re.\u0275inj=a.cJS({imports:[[b.ez,y.BQ,u.eL,y.si,i.Q8,e.rt],y.BQ]}),Re})()},4594:(He,j,p)=>{"use strict";p.d(j,{Ye:()=>D,g0:()=>M});var e=p(5e3),i=p(508),u=p(9808),b=p(925);const a=["*",[["mat-toolbar-row"]]],y=["*","mat-toolbar-row"],d=(0,i.pj)(class{constructor(A){this._elementRef=A}});let P=(()=>{class A{}return A.\u0275fac=function(k){return new(k||A)},A.\u0275dir=e.lG2({type:A,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),A})(),D=(()=>{class A extends d{constructor(k,w,z){super(k),this._platform=w,this._document=z}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return A.\u0275fac=function(k){return new(k||A)(e.Y36(e.SBq),e.Y36(b.t4),e.Y36(u.K0))},A.\u0275cmp=e.Xpm({type:A,selectors:[["mat-toolbar"]],contentQueries:function(k,w,z){if(1&k&&e.Suo(z,P,5),2&k){let U;e.iGM(U=e.CRH())&&(w._toolbarRows=U)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(k,w){2&k&&e.ekj("mat-toolbar-multiple-rows",w._toolbarRows.length>0)("mat-toolbar-single-row",0===w._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[e.qOj],ngContentSelectors:y,decls:2,vars:0,template:function(k,w){1&k&&(e.F$t(a),e.Hsn(0),e.Hsn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),A})(),M=(()=>{class A{}return A.\u0275fac=function(k){return new(k||A)},A.\u0275mod=e.oAB({type:A}),A.\u0275inj=e.cJS({imports:[[i.BQ],i.BQ]}),A})()},7238:(He,j,p)=>{"use strict";p.d(j,{AV:()=>I,gM:()=>c});var e=p(9776),i=p(5664),u=p(9808),b=p(5e3),a=p(508),y=p(5303),d=p(3191),P=p(1159),D=p(5113),T=p(925),M=p(7429),A=p(6360),E=p(7579),k=p(2722),w=p(5698),z=p(226);p(1777);const W=["tooltip"],le="tooltip-panel",q=(0,T.i$)({passive:!0}),J=new b.OlP("mat-tooltip-scroll-strategy"),x={provide:J,deps:[e.aV],useFactory:function me(n){return()=>n.scrollStrategies.reposition({scrollThrottle:20})}},t=new b.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function r(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let h=(()=>{class n{constructor(V,R,H,$,fe,ye,ke,Ee,te,ze,be,Z){this._overlay=V,this._elementRef=R,this._scrollDispatcher=H,this._viewContainerRef=$,this._ngZone=fe,this._platform=ye,this._ariaDescriber=ke,this._focusMonitor=Ee,this._dir=ze,this._defaultOptions=be,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 E.x,this._scrollStrategy=te,this._document=Z,be&&(be.position&&(this.position=be.position),be.touchGestures&&(this.touchGestures=be.touchGestures)),ze.change.pipe((0,k.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(V){var R;V!==this._position&&(this._position=V,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(R=this._tooltipInstance)||void 0===R||R.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(V){this._disabled=(0,d.Ig)(V),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(V){this._showDelay=(0,d.su)(V)}get hideDelay(){return this._hideDelay}set hideDelay(V){this._hideDelay=(0,d.su)(V),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(V){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=V?String(V).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(V){this._tooltipClass=V,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,k.R)(this._destroyed)).subscribe(V=>{V?"keyboard"===V&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const V=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([R,H])=>{V.removeEventListener(R,H,q)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(V,this.message,"tooltip"),this._focusMonitor.stopMonitoring(V)}show(V=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const R=this._createOverlay();this._detach(),this._portal=this._portal||new M.C5(this._tooltipComponent,this._viewContainerRef);const H=this._tooltipInstance=R.attach(this._portal).instance;H._triggerElement=this._elementRef.nativeElement,H._mouseLeaveHideDelay=this._hideDelay,H.afterHidden().pipe((0,k.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),H.show(V)}hide(V=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(V)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){var V;if(this._overlayRef)return this._overlayRef;const R=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),H=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(R);return H.positionChanges.pipe((0,k.R)(this._destroyed)).subscribe($=>{this._updateCurrentPositionClass($.connectionPair),this._tooltipInstance&&$.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:H,panelClass:`${this._cssClassPrefix}-${le}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,k.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,k.R)(this._destroyed)).subscribe(()=>{var $;return null===($=this._tooltipInstance)||void 0===$?void 0:$._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe((0,k.R)(this._destroyed)).subscribe($=>{this._isTooltipVisible()&&$.keyCode===P.hY&&!(0,P.Vb)($)&&($.preventDefault(),$.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),(null===(V=this._defaultOptions)||void 0===V?void 0:V.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(V){const R=V.getConfig().positionStrategy,H=this._getOrigin(),$=this._getOverlayPosition();R.withPositions([this._addOffset(Object.assign(Object.assign({},H.main),$.main)),this._addOffset(Object.assign(Object.assign({},H.fallback),$.fallback))])}_addOffset(V){return V}_getOrigin(){const V=!this._dir||"ltr"==this._dir.value,R=this.position;let H;"above"==R||"below"==R?H={originX:"center",originY:"above"==R?"top":"bottom"}:"before"==R||"left"==R&&V||"right"==R&&!V?H={originX:"start",originY:"center"}:("after"==R||"right"==R&&V||"left"==R&&!V)&&(H={originX:"end",originY:"center"});const{x:$,y:fe}=this._invertPosition(H.originX,H.originY);return{main:H,fallback:{originX:$,originY:fe}}}_getOverlayPosition(){const V=!this._dir||"ltr"==this._dir.value,R=this.position;let H;"above"==R?H={overlayX:"center",overlayY:"bottom"}:"below"==R?H={overlayX:"center",overlayY:"top"}:"before"==R||"left"==R&&V||"right"==R&&!V?H={overlayX:"end",overlayY:"center"}:("after"==R||"right"==R&&V||"left"==R&&!V)&&(H={overlayX:"start",overlayY:"center"});const{x:$,y:fe}=this._invertPosition(H.overlayX,H.overlayY);return{main:H,fallback:{overlayX:$,overlayY:fe}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,w.q)(1),(0,k.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(V){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=V,this._tooltipInstance._markForCheck())}_invertPosition(V,R){return"above"===this.position||"below"===this.position?"top"===R?R="bottom":"bottom"===R&&(R="top"):"end"===V?V="start":"start"===V&&(V="end"),{x:V,y:R}}_updateCurrentPositionClass(V){const{overlayY:R,originX:H,originY:$}=V;let fe;if(fe="center"===R?this._dir&&"rtl"===this._dir.value?"end"===H?"left":"right":"start"===H?"left":"right":"bottom"===R&&"top"===$?"above":"below",fe!==this._currentPosition){const ye=this._overlayRef;if(ye){const ke=`${this._cssClassPrefix}-${le}-`;ye.removePanelClass(ke+this._currentPosition),ye.addPanelClass(ke+fe)}this._currentPosition=fe}}_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 V=[];if(this._platformSupportsMouseEvents())V.push(["mouseleave",R=>{var H;const $=R.relatedTarget;(!$||!(null===(H=this._overlayRef)||void 0===H?void 0:H.overlayElement.contains($)))&&this.hide()}],["wheel",R=>this._wheelListener(R)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const R=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};V.push(["touchend",R],["touchcancel",R])}this._addListeners(V),this._passiveListeners.push(...V)}_addListeners(V){V.forEach(([R,H])=>{this._elementRef.nativeElement.addEventListener(R,H,q)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(V){if(this._isTooltipVisible()){const R=this._document.elementFromPoint(V.clientX,V.clientY),H=this._elementRef.nativeElement;R!==H&&!H.contains(R)&&this.hide()}}_disableNativeGesturesIfNecessary(){const V=this.touchGestures;if("off"!==V){const R=this._elementRef.nativeElement,H=R.style;("on"===V||"INPUT"!==R.nodeName&&"TEXTAREA"!==R.nodeName)&&(H.userSelect=H.msUserSelect=H.webkitUserSelect=H.MozUserSelect="none"),("on"===V||!R.draggable)&&(H.webkitUserDrag="none"),H.touchAction="none",H.webkitTapHighlightColor="transparent"}}}return n.\u0275fac=function(V){b.$Z()},n.\u0275dir=b.lG2({type:n,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),n})(),c=(()=>{class n extends h{constructor(V,R,H,$,fe,ye,ke,Ee,te,ze,be,Z){super(V,R,H,$,fe,ye,ke,Ee,te,ze,be,Z),this._tooltipComponent=S}}return n.\u0275fac=function(V){return new(V||n)(b.Y36(e.aV),b.Y36(b.SBq),b.Y36(y.mF),b.Y36(b.s_b),b.Y36(b.R0b),b.Y36(T.t4),b.Y36(i.$s),b.Y36(i.tE),b.Y36(J),b.Y36(z.Is,8),b.Y36(t,8),b.Y36(u.K0))},n.\u0275dir=b.lG2({type:n,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[b.qOj]}),n})(),C=(()=>{class n{constructor(V,R){this._changeDetectorRef=V,this._visibility="initial",this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new E.x,this._animationsDisabled="NoopAnimations"===R}show(V){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},V)}hide(V){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},V)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:V}){(!V||!this._triggerElement.contains(V))&&this.hide(this._mouseLeaveHideDelay)}_onShow(){}_handleAnimationEnd({animationName:V}){(V===this._showAnimation||V===this._hideAnimation)&&this._finalizeAnimation(V===this._showAnimation)}_finalizeAnimation(V){V?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(V){const R=this._tooltip.nativeElement,H=this._showAnimation,$=this._hideAnimation;if(R.classList.remove(V?$:H),R.classList.add(V?H:$),this._isVisible=V,V&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const fe=getComputedStyle(R);("0s"===fe.getPropertyValue("animation-duration")||"none"===fe.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}V&&this._onShow(),this._animationsDisabled&&(R.classList.add("_mat-animation-noopable"),this._finalizeAnimation(V))}}return n.\u0275fac=function(V){return new(V||n)(b.Y36(b.sBO),b.Y36(A.Qb,8))},n.\u0275dir=b.lG2({type:n}),n})(),S=(()=>{class n extends C{constructor(V,R,H){super(V,H),this._breakpointObserver=R,this._isHandset=this._breakpointObserver.observe(D.u3.Handset),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return n.\u0275fac=function(V){return new(V||n)(b.Y36(b.sBO),b.Y36(D.Yg),b.Y36(A.Qb,8))},n.\u0275cmp=b.Xpm({type:n,selectors:[["mat-tooltip-component"]],viewQuery:function(V,R){if(1&V&&b.Gf(W,7),2&V){let H;b.iGM(H=b.CRH())&&(R._tooltip=H.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(V,R){1&V&&b.NdJ("mouseleave",function($){return R._handleMouseLeave($)}),2&V&&b.Udp("zoom",R.isVisible()?1:null)},features:[b.qOj],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(V,R){if(1&V&&(b.TgZ(0,"div",0,1),b.NdJ("animationend",function($){return R._handleAnimationEnd($)}),b.ALo(2,"async"),b._uU(3),b.qZA()),2&V){let H;b.ekj("mat-tooltip-handset",null==(H=b.lcZ(2,4,R._isHandset))?null:H.matches),b.Q6J("ngClass",R.tooltipClass),b.xp6(3),b.Oqu(R.message)}},directives:[u.mk],pipes:[u.Ov],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}\n"],encapsulation:2,changeDetection:0}),n})(),I=(()=>{class n{}return n.\u0275fac=function(V){return new(V||n)},n.\u0275mod=b.oAB({type:n}),n.\u0275inj=b.cJS({providers:[x],imports:[[i.rt,u.ez,e.U8,a.BQ],a.BQ,y.ZD]}),n})()},149:(He,j,p)=>{"use strict";p.d(j,{Ar:()=>k,GZ:()=>A,WX:()=>le,dp:()=>W,eu:()=>z,fQ:()=>M,gi:()=>w,uo:()=>T});var e=p(8258),i=p(5e3),u=p(508),b=p(3191),a=p(449),y=p(1135),d=p(6451),P=p(4004);const D=(0,u.sb)((0,u.Id)(e.Hs));let T=(()=>{class q extends D{constructor(se,J,me){super(se,J),this.tabIndex=Number(me)||0}ngOnInit(){super.ngOnInit()}ngOnDestroy(){super.ngOnDestroy()}}return q.\u0275fac=function(se){return new(se||q)(i.Y36(i.SBq),i.Y36(e._0),i.$8M("tabindex"))},q.\u0275dir=i.lG2({type:q,selectors:[["mat-tree-node"]],hostAttrs:[1,"mat-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["matTreeNode"],features:[i._Bn([{provide:e.Hs,useExisting:q}]),i.qOj]}),q})(),M=(()=>{class q extends e.rO{}return q.\u0275fac=function(){let ie;return function(J){return(ie||(ie=i.n5z(q)))(J||q)}}(),q.\u0275dir=i.lG2({type:q,selectors:[["","matTreeNodeDef",""]],inputs:{when:["matTreeNodeDefWhen","when"],data:["matTreeNode","data"]},features:[i._Bn([{provide:e.rO,useExisting:q}]),i.qOj]}),q})(),A=(()=>{class q extends e.Xx{constructor(se,J,me,x){super(se,J,me),this._disabled=!1,this.tabIndex=Number(x)||0}get disabled(){return this._disabled}set disabled(se){this._disabled=(0,b.Ig)(se)}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(se){this._tabIndex=null!=se?se:0}ngOnInit(){super.ngOnInit()}ngAfterContentInit(){super.ngAfterContentInit()}ngOnDestroy(){super.ngOnDestroy()}}return q.\u0275fac=function(se){return new(se||q)(i.Y36(i.SBq),i.Y36(e._0),i.Y36(i.ZZ4),i.$8M("tabindex"))},q.\u0275dir=i.lG2({type:q,selectors:[["mat-nested-tree-node"]],hostAttrs:[1,"mat-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex",node:["matNestedTreeNode","node"]},exportAs:["matNestedTreeNode"],features:[i._Bn([{provide:e.Xx,useExisting:q},{provide:e.Hs,useExisting:q},{provide:e.HI,useExisting:q}]),i.qOj]}),q})(),k=(()=>{class q{constructor(se,J){this.viewContainer=se,this._node=J}}return q.\u0275fac=function(se){return new(se||q)(i.Y36(i.s_b),i.Y36(e.HI,8))},q.\u0275dir=i.lG2({type:q,selectors:[["","matTreeNodeOutlet",""]],features:[i._Bn([{provide:e.cu,useExisting:q}])]}),q})(),w=(()=>{class q extends e._0{}return q.\u0275fac=function(){let ie;return function(J){return(ie||(ie=i.n5z(q)))(J||q)}}(),q.\u0275cmp=i.Xpm({type:q,selectors:[["mat-tree"]],viewQuery:function(se,J){if(1&se&&i.Gf(k,7),2&se){let me;i.iGM(me=i.CRH())&&(J._nodeOutlet=me.first)}},hostAttrs:["role","tree",1,"mat-tree"],exportAs:["matTree"],features:[i._Bn([{provide:e._0,useExisting:q}]),i.qOj],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(se,J){1&se&&i.GkF(0,0)},directives:[k],styles:[".mat-tree{display:block}.mat-tree-node{display:flex;align-items:center;flex:1;word-wrap:break-word}.mat-nested-tree-node{border-bottom-width:0}\n"],encapsulation:2}),q})(),z=(()=>{class q extends e.Ud{}return q.\u0275fac=function(){let ie;return function(J){return(ie||(ie=i.n5z(q)))(J||q)}}(),q.\u0275dir=i.lG2({type:q,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:["matTreeNodeToggleRecursive","recursive"]},features:[i._Bn([{provide:e.Ud,useExisting:q}]),i.qOj]}),q})(),W=(()=>{class q{}return q.\u0275fac=function(se){return new(se||q)},q.\u0275mod=i.oAB({type:q}),q.\u0275inj=i.cJS({imports:[[e.nZ,u.BQ],u.BQ]}),q})();class le extends a.o2{constructor(){super(...arguments),this._data=new y.X([])}get data(){return this._data.value}set data(ie){this._data.next(ie)}connect(ie){return(0,d.T)(ie.viewChange,this._data).pipe((0,P.U)(()=>this.data))}disconnect(){}}},6360:(He,j,p)=>{"use strict";p.d(j,{Qb:()=>Ia,PW:()=>Vr});var e=p(5e3),i=p(2313),u=p(1777);const b=!1;function y(Ct){return new e.vHH(3e3,b)}function fe(){return"undefined"!=typeof window&&void 0!==window.document}function ye(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function ke(Ct){switch(Ct.length){case 0:return new u.ZN;case 1:return Ct[0];default:return new u.ZE(Ct)}}function Ee(Ct,re,pe,Ge,xt={},Ht={}){const ii=[],ni=[];let Ci=-1,Pi=null;if(Ge.forEach(tn=>{const cn=tn.offset,wn=cn==Ci,Pn=wn&&Pi||{};Object.keys(tn).forEach(yn=>{let Ln=yn,Qn=tn[yn];if("offset"!==yn)switch(Ln=re.normalizePropertyName(Ln,ii),Qn){case u.k1:Qn=xt[yn];break;case u.l3:Qn=Ht[yn];break;default:Qn=re.normalizeStyleValue(yn,Ln,Qn,ii)}Pn[Ln]=Qn}),wn||ni.push(Pn),Pi=Pn,Ci=cn}),ii.length)throw function h(Ct){return new e.vHH(3502,b)}();return ni}function te(Ct,re,pe,Ge){switch(re){case"start":Ct.onStart(()=>Ge(pe&&ze(pe,"start",Ct)));break;case"done":Ct.onDone(()=>Ge(pe&&ze(pe,"done",Ct)));break;case"destroy":Ct.onDestroy(()=>Ge(pe&&ze(pe,"destroy",Ct)))}}function ze(Ct,re,pe){const Ge=pe.totalTime,Ht=be(Ct.element,Ct.triggerName,Ct.fromState,Ct.toState,re||Ct.phaseName,null==Ge?Ct.totalTime:Ge,!!pe.disabled),ii=Ct._data;return null!=ii&&(Ht._data=ii),Ht}function be(Ct,re,pe,Ge,xt="",Ht=0,ii){return{element:Ct,triggerName:re,fromState:pe,toState:Ge,phaseName:xt,totalTime:Ht,disabled:!!ii}}function Z(Ct,re,pe){let Ge;return Ct instanceof Map?(Ge=Ct.get(re),Ge||Ct.set(re,Ge=pe)):(Ge=Ct[re],Ge||(Ge=Ct[re]=pe)),Ge}function Y(Ct){const re=Ct.indexOf(":");return[Ct.substring(1,re),Ct.substr(re+1)]}let ot=(Ct,re)=>!1,Ie=(Ct,re,pe)=>[],Ae=null;function ce(Ct){const re=Ct.parentNode||Ct.host;return re===Ae?null:re}(ye()||"undefined"!=typeof Element)&&(fe()?(Ae=(()=>document.documentElement)(),ot=(Ct,re)=>{for(;re;){if(re===Ct)return!0;re=ce(re)}return!1}):ot=(Ct,re)=>Ct.contains(re),Ie=(Ct,re,pe)=>{if(pe)return Array.from(Ct.querySelectorAll(re));const Ge=Ct.querySelector(re);return Ge?[Ge]:[]});let G=null,ee=!1;function ue(Ct){G||(G=function ve(){return"undefined"!=typeof document?document.body:null}()||{},ee=!!G.style&&"WebkitAppearance"in G.style);let re=!0;return G.style&&!function xe(Ct){return"ebkit"==Ct.substring(1,6)}(Ct)&&(re=Ct in G.style,!re&&ee&&(re="Webkit"+Ct.charAt(0).toUpperCase()+Ct.substr(1)in G.style)),re}const Le=ot,lt=Ie;let Tt=(()=>{class Ct{validateStyleProperty(pe){return ue(pe)}matchesElement(pe,Ge){return!1}containsElement(pe,Ge){return Le(pe,Ge)}getParentElement(pe){return ce(pe)}query(pe,Ge,xt){return lt(pe,Ge,xt)}computeStyle(pe,Ge,xt){return xt||""}animate(pe,Ge,xt,Ht,ii,ni=[],Ci){return new u.ZN(xt,Ht)}}return Ct.\u0275fac=function(pe){return new(pe||Ct)},Ct.\u0275prov=e.Yz7({token:Ct,factory:Ct.\u0275fac}),Ct})(),hi=(()=>{class Ct{}return Ct.NOOP=new Tt,Ct})();const vt="ng-enter",kt="ng-leave",gt="ng-trigger",Qe=".ng-trigger",_t="ng-animating",ei=".ng-animating";function Zt(Ct){if("number"==typeof Ct)return Ct;const re=Ct.match(/^(-?[\.\d]+)(m?s)/);return!re||re.length<2?0:Pe(parseFloat(re[1]),re[2])}function Pe(Ct,re){return"s"===re?1e3*Ct:Ct}function De(Ct,re,pe){return Ct.hasOwnProperty("duration")?Ct:function oe(Ct,re,pe){let xt,Ht=0,ii="";if("string"==typeof Ct){const ni=Ct.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===ni)return re.push(y()),{duration:0,delay:0,easing:""};xt=Pe(parseFloat(ni[1]),ni[2]);const Ci=ni[3];null!=Ci&&(Ht=Pe(parseFloat(Ci),ni[4]));const Pi=ni[5];Pi&&(ii=Pi)}else xt=Ct;if(!pe){let ni=!1,Ci=re.length;xt<0&&(re.push(function d(){return new e.vHH(3100,b)}()),ni=!0),Ht<0&&(re.push(function P(){return new e.vHH(3101,b)}()),ni=!0),ni&&re.splice(Ci,0,y())}return{duration:xt,delay:Ht,easing:ii}}(Ct,re,pe)}function Me(Ct,re={}){return Object.keys(Ct).forEach(pe=>{re[pe]=Ct[pe]}),re}function ft(Ct,re,pe={}){if(re)for(let Ge in Ct)pe[Ge]=Ct[Ge];else Me(Ct,pe);return pe}function Rt(Ct,re,pe){return pe?re+":"+pe+";":""}function et(Ct){let re="";for(let pe=0;pe<Ct.style.length;pe++){const Ge=Ct.style.item(pe);re+=Rt(0,Ge,Ct.style.getPropertyValue(Ge))}for(const pe in Ct.style)Ct.style.hasOwnProperty(pe)&&!pe.startsWith("_")&&(re+=Rt(0,Jt(pe),Ct.style[pe]));Ct.setAttribute("style",re)}function Re(Ct,re,pe){Ct.style&&(Object.keys(re).forEach(Ge=>{const xt=Xt(Ge);pe&&!pe.hasOwnProperty(Ge)&&(pe[Ge]=Ct.style[xt]),Ct.style[xt]=re[Ge]}),ye()&&et(Ct))}function qe(Ct,re){Ct.style&&(Object.keys(re).forEach(pe=>{const Ge=Xt(pe);Ct.style[Ge]=""}),ye()&&et(Ct))}function Ze(Ct){return Array.isArray(Ct)?1==Ct.length?Ct[0]:(0,u.vP)(Ct):Ct}const Fe=new RegExp("{{\\s*(.+?)\\s*}}","g");function rt(Ct){let re=[];if("string"==typeof Ct){let pe;for(;pe=Fe.exec(Ct);)re.push(pe[1]);Fe.lastIndex=0}return re}function at(Ct,re,pe){const Ge=Ct.toString(),xt=Ge.replace(Fe,(Ht,ii)=>{let ni=re[ii];return re.hasOwnProperty(ii)||(pe.push(function T(Ct){return new e.vHH(3003,b)}()),ni=""),ni.toString()});return xt==Ge?Ct:xt}function yt(Ct){const re=[];let pe=Ct.next();for(;!pe.done;)re.push(pe.value),pe=Ct.next();return re}const mi=/-+([a-z0-9])/g;function Xt(Ct){return Ct.replace(mi,(...re)=>re[1].toUpperCase())}function Jt(Ct){return Ct.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function si(Ct,re,pe){switch(re.type){case 7:return Ct.visitTrigger(re,pe);case 0:return Ct.visitState(re,pe);case 1:return Ct.visitTransition(re,pe);case 2:return Ct.visitSequence(re,pe);case 3:return Ct.visitGroup(re,pe);case 4:return Ct.visitAnimate(re,pe);case 5:return Ct.visitKeyframes(re,pe);case 6:return Ct.visitStyle(re,pe);case 8:return Ct.visitReference(re,pe);case 9:return Ct.visitAnimateChild(re,pe);case 10:return Ct.visitAnimateRef(re,pe);case 11:return Ct.visitQuery(re,pe);case 12:return Ct.visitStagger(re,pe);default:throw function M(Ct){return new e.vHH(3004,b)}()}}function en(Ct,re){return window.getComputedStyle(Ct)[re]}function de(Ct,re){const pe=[];return"string"==typeof Ct?Ct.split(/\s*,\s*/).forEach(Ge=>function $e(Ct,re,pe){if(":"==Ct[0]){const Ci=function bt(Ct,re){switch(Ct){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(pe,Ge)=>parseFloat(Ge)>parseFloat(pe);case":decrement":return(pe,Ge)=>parseFloat(Ge)<parseFloat(pe);default:return re.push(function me(Ct){return new e.vHH(3016,b)}()),"* => *"}}(Ct,pe);if("function"==typeof Ci)return void re.push(Ci);Ct=Ci}const Ge=Ct.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==Ge||Ge.length<4)return pe.push(function J(Ct){return new e.vHH(3015,b)}()),re;const xt=Ge[1],Ht=Ge[2],ii=Ge[3];re.push(Li(xt,ii));"<"==Ht[0]&&!("*"==xt&&"*"==ii)&&re.push(Li(ii,xt))}(Ge,pe,re)):pe.push(Ct),pe}const Vt=new Set(["true","1"]),bi=new Set(["false","0"]);function Li(Ct,re){const pe=Vt.has(Ct)||bi.has(Ct),Ge=Vt.has(re)||bi.has(re);return(xt,Ht)=>{let ii="*"==Ct||Ct==xt,ni="*"==re||re==Ht;return!ii&&pe&&"boolean"==typeof xt&&(ii=xt?Vt.has(Ct):bi.has(Ct)),!ni&&Ge&&"boolean"==typeof Ht&&(ni=Ht?Vt.has(re):bi.has(re)),ii&&ni}}const Wi=new RegExp("s*:selfs*,?","g");function sn(Ct,re,pe,Ge){return new Yt(Ct).build(re,pe,Ge)}class Yt{constructor(re){this._driver=re}build(re,pe,Ge){const xt=new Nt(pe);this._resetContextStyleTimingState(xt);const Ht=si(this,Ze(re),xt);return xt.unsupportedCSSPropertiesFound.size&&xt.unsupportedCSSPropertiesFound.keys(),Ht}_resetContextStyleTimingState(re){re.currentQuerySelector="",re.collectedStyles={},re.collectedStyles[""]={},re.currentTime=0}visitTrigger(re,pe){let Ge=pe.queryCount=0,xt=pe.depCount=0;const Ht=[],ii=[];return"@"==re.name.charAt(0)&&pe.errors.push(function E(){return new e.vHH(3006,b)}()),re.definitions.forEach(ni=>{if(this._resetContextStyleTimingState(pe),0==ni.type){const Ci=ni,Pi=Ci.name;Pi.toString().split(/\s*,\s*/).forEach(tn=>{Ci.name=tn,Ht.push(this.visitState(Ci,pe))}),Ci.name=Pi}else if(1==ni.type){const Ci=this.visitTransition(ni,pe);Ge+=Ci.queryCount,xt+=Ci.depCount,ii.push(Ci)}else pe.errors.push(function k(){return new e.vHH(3007,b)}())}),{type:7,name:re.name,states:Ht,transitions:ii,queryCount:Ge,depCount:xt,options:null}}visitState(re,pe){const Ge=this.visitStyle(re.styles,pe),xt=re.options&&re.options.params||null;if(Ge.containsDynamicStyles){const Ht=new Set,ii=xt||{};Ge.styles.forEach(ni=>{if(pi(ni)){const Ci=ni;Object.keys(Ci).forEach(Pi=>{rt(Ci[Pi]).forEach(tn=>{ii.hasOwnProperty(tn)||Ht.add(tn)})})}}),Ht.size&&(yt(Ht.values()),pe.errors.push(function w(Ct,re){return new e.vHH(3008,b)}()))}return{type:0,name:re.name,style:Ge,options:xt?{params:xt}:null}}visitTransition(re,pe){pe.queryCount=0,pe.depCount=0;const Ge=si(this,Ze(re.animation),pe);return{type:1,matchers:de(re.expr,pe.errors),animation:Ge,queryCount:pe.queryCount,depCount:pe.depCount,options:ki(re.options)}}visitSequence(re,pe){return{type:2,steps:re.steps.map(Ge=>si(this,Ge,pe)),options:ki(re.options)}}visitGroup(re,pe){const Ge=pe.currentTime;let xt=0;const Ht=re.steps.map(ii=>{pe.currentTime=Ge;const ni=si(this,ii,pe);return xt=Math.max(xt,pe.currentTime),ni});return pe.currentTime=xt,{type:3,steps:Ht,options:ki(re.options)}}visitAnimate(re,pe){const Ge=function Ri(Ct,re){if(Ct.hasOwnProperty("duration"))return Ct;if("number"==typeof Ct)return hn(De(Ct,re).duration,0,"");const pe=Ct;if(pe.split(/\s+/).some(Ht=>"{"==Ht.charAt(0)&&"{"==Ht.charAt(1))){const Ht=hn(0,0,"");return Ht.dynamic=!0,Ht.strValue=pe,Ht}const xt=De(pe,re);return hn(xt.duration,xt.delay,xt.easing)}(re.timings,pe.errors);pe.currentAnimateTimings=Ge;let xt,Ht=re.styles?re.styles:(0,u.oB)({});if(5==Ht.type)xt=this.visitKeyframes(Ht,pe);else{let ii=re.styles,ni=!1;if(!ii){ni=!0;const Pi={};Ge.easing&&(Pi.easing=Ge.easing),ii=(0,u.oB)(Pi)}pe.currentTime+=Ge.duration+Ge.delay;const Ci=this.visitStyle(ii,pe);Ci.isEmptyStep=ni,xt=Ci}return pe.currentAnimateTimings=null,{type:4,timings:Ge,style:xt,options:null}}visitStyle(re,pe){const Ge=this._makeStyleAst(re,pe);return this._validateStyleAst(Ge,pe),Ge}_makeStyleAst(re,pe){const Ge=[];Array.isArray(re.styles)?re.styles.forEach(ii=>{"string"==typeof ii?ii==u.l3?Ge.push(ii):pe.errors.push(function z(Ct){return new e.vHH(3002,b)}()):Ge.push(ii)}):Ge.push(re.styles);let xt=!1,Ht=null;return Ge.forEach(ii=>{if(pi(ii)){const ni=ii,Ci=ni.easing;if(Ci&&(Ht=Ci,delete ni.easing),!xt)for(let Pi in ni)if(ni[Pi].toString().indexOf("{{")>=0){xt=!0;break}}}),{type:6,styles:Ge,easing:Ht,offset:re.offset,containsDynamicStyles:xt,options:null}}_validateStyleAst(re,pe){const Ge=pe.currentAnimateTimings;let xt=pe.currentTime,Ht=pe.currentTime;Ge&&Ht>0&&(Ht-=Ge.duration+Ge.delay),re.styles.forEach(ii=>{"string"!=typeof ii&&Object.keys(ii).forEach(ni=>{if(!this._driver.validateStyleProperty(ni))return delete ii[ni],void pe.unsupportedCSSPropertiesFound.add(ni);const Ci=pe.collectedStyles[pe.currentQuerySelector],Pi=Ci[ni];let tn=!0;Pi&&(Ht!=xt&&Ht>=Pi.startTime&&xt<=Pi.endTime&&(pe.errors.push(function W(Ct,re,pe,Ge,xt){return new e.vHH(3010,b)}()),tn=!1),Ht=Pi.startTime),tn&&(Ci[ni]={startTime:Ht,endTime:xt}),pe.options&&function we(Ct,re,pe){const Ge=re.params||{},xt=rt(Ct);xt.length&&xt.forEach(Ht=>{Ge.hasOwnProperty(Ht)||pe.push(function D(Ct){return new e.vHH(3001,b)}())})}(ii[ni],pe.options,pe.errors)})})}visitKeyframes(re,pe){const Ge={type:5,styles:[],options:null};if(!pe.currentAnimateTimings)return pe.errors.push(function ne(){return new e.vHH(3011,b)}()),Ge;let Ht=0;const ii=[];let ni=!1,Ci=!1,Pi=0;const tn=re.steps.map(xr=>{const dr=this._makeStyleAst(xr,pe);let Zr=null!=dr.offset?dr.offset:function Kt(Ct){if("string"==typeof Ct)return null;let re=null;if(Array.isArray(Ct))Ct.forEach(pe=>{if(pi(pe)&&pe.hasOwnProperty("offset")){const Ge=pe;re=parseFloat(Ge.offset),delete Ge.offset}});else if(pi(Ct)&&Ct.hasOwnProperty("offset")){const pe=Ct;re=parseFloat(pe.offset),delete pe.offset}return re}(dr.styles),Gr=0;return null!=Zr&&(Ht++,Gr=dr.offset=Zr),Ci=Ci||Gr<0||Gr>1,ni=ni||Gr<Pi,Pi=Gr,ii.push(Gr),dr});Ci&&pe.errors.push(function Q(){return new e.vHH(3012,b)}()),ni&&pe.errors.push(function le(){return new e.vHH(3200,b)}());const cn=re.steps.length;let wn=0;Ht>0&&Ht<cn?pe.errors.push(function q(){return new e.vHH(3202,b)}()):0==Ht&&(wn=1/(cn-1));const Pn=cn-1,yn=pe.currentTime,Ln=pe.currentAnimateTimings,Qn=Ln.duration;return tn.forEach((xr,dr)=>{const Zr=wn>0?dr==Pn?1:wn*dr:ii[dr],Gr=Zr*Qn;pe.currentTime=yn+Ln.delay+Gr,Ln.duration=Gr,this._validateStyleAst(xr,pe),xr.offset=Zr,Ge.styles.push(xr)}),Ge}visitReference(re,pe){return{type:8,animation:si(this,Ze(re.animation),pe),options:ki(re.options)}}visitAnimateChild(re,pe){return pe.depCount++,{type:9,options:ki(re.options)}}visitAnimateRef(re,pe){return{type:10,animation:this.visitReference(re.animation,pe),options:ki(re.options)}}visitQuery(re,pe){const Ge=pe.currentQuerySelector,xt=re.options||{};pe.queryCount++,pe.currentQuery=re;const[Ht,ii]=function Mi(Ct){const re=!!Ct.split(/\s*,\s*/).find(pe=>":self"==pe);return re&&(Ct=Ct.replace(Wi,"")),Ct=Ct.replace(/@\*/g,Qe).replace(/@\w+/g,pe=>Qe+"-"+pe.substr(1)).replace(/:animating/g,ei),[Ct,re]}(re.selector);pe.currentQuerySelector=Ge.length?Ge+" "+Ht:Ht,Z(pe.collectedStyles,pe.currentQuerySelector,{});const ni=si(this,Ze(re.animation),pe);return pe.currentQuery=null,pe.currentQuerySelector=Ge,{type:11,selector:Ht,limit:xt.limit||0,optional:!!xt.optional,includeSelf:ii,animation:ni,originalSelector:re.selector,options:ki(re.options)}}visitStagger(re,pe){pe.currentQuery||pe.errors.push(function ie(){return new e.vHH(3013,b)}());const Ge="full"===re.timings?{duration:0,delay:0,easing:"full"}:De(re.timings,pe.errors,!0);return{type:12,animation:si(this,Ze(re.animation),pe),timings:Ge,options:null}}}class Nt{constructor(re){this.errors=re,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function pi(Ct){return!Array.isArray(Ct)&&"object"==typeof Ct}function ki(Ct){return Ct?(Ct=Me(Ct)).params&&(Ct.params=function Je(Ct){return Ct?Me(Ct):null}(Ct.params)):Ct={},Ct}function hn(Ct,re,pe){return{duration:Ct,delay:re,easing:pe}}function Hn(Ct,re,pe,Ge,xt,Ht,ii=null,ni=!1){return{type:1,element:Ct,keyframes:re,preStyleProps:pe,postStyleProps:Ge,duration:xt,delay:Ht,totalTime:xt+Ht,easing:ii,subTimeline:ni}}class An{constructor(){this._map=new Map}get(re){return this._map.get(re)||[]}append(re,pe){let Ge=this._map.get(re);Ge||this._map.set(re,Ge=[]),Ge.push(...pe)}has(re){return this._map.has(re)}clear(){this._map.clear()}}const wi=new RegExp(":enter","g"),bn=new RegExp(":leave","g");function Gn(Ct,re,pe,Ge,xt,Ht={},ii={},ni,Ci,Pi=[]){return(new ar).buildKeyframes(Ct,re,pe,Ge,xt,Ht,ii,ni,Ci,Pi)}class ar{buildKeyframes(re,pe,Ge,xt,Ht,ii,ni,Ci,Pi,tn=[]){Pi=Pi||new An;const cn=new Pr(re,pe,Pi,xt,Ht,tn,[]);cn.options=Ci,cn.currentTimeline.setStyles([ii],null,cn.errors,Ci),si(this,Ge,cn);const wn=cn.timelines.filter(Pn=>Pn.containsAnimation());if(Object.keys(ni).length){let Pn;for(let yn=wn.length-1;yn>=0;yn--){const Ln=wn[yn];if(Ln.element===pe){Pn=Ln;break}}Pn&&!Pn.allowOnlyTimelineStyles()&&Pn.setStyles([ni],null,cn.errors,Ci)}return wn.length?wn.map(Pn=>Pn.buildKeyframes()):[Hn(pe,[],[],[],0,0,"",!1)]}visitTrigger(re,pe){}visitState(re,pe){}visitTransition(re,pe){}visitAnimateChild(re,pe){const Ge=pe.subInstructions.get(pe.element);if(Ge){const xt=pe.createSubContext(re.options),Ht=pe.currentTimeline.currentTime,ii=this._visitSubInstructions(Ge,xt,xt.options);Ht!=ii&&pe.transformIntoNewTimeline(ii)}pe.previousNode=re}visitAnimateRef(re,pe){const Ge=pe.createSubContext(re.options);Ge.transformIntoNewTimeline(),this.visitReference(re.animation,Ge),pe.transformIntoNewTimeline(Ge.currentTimeline.currentTime),pe.previousNode=re}_visitSubInstructions(re,pe,Ge){let Ht=pe.currentTimeline.currentTime;const ii=null!=Ge.duration?Zt(Ge.duration):null,ni=null!=Ge.delay?Zt(Ge.delay):null;return 0!==ii&&re.forEach(Ci=>{const Pi=pe.appendInstructionToTimeline(Ci,ii,ni);Ht=Math.max(Ht,Pi.duration+Pi.delay)}),Ht}visitReference(re,pe){pe.updateOptions(re.options,!0),si(this,re.animation,pe),pe.previousNode=re}visitSequence(re,pe){const Ge=pe.subContextCount;let xt=pe;const Ht=re.options;if(Ht&&(Ht.params||Ht.delay)&&(xt=pe.createSubContext(Ht),xt.transformIntoNewTimeline(),null!=Ht.delay)){6==xt.previousNode.type&&(xt.currentTimeline.snapshotCurrentStyles(),xt.previousNode=kr);const ii=Zt(Ht.delay);xt.delayNextStep(ii)}re.steps.length&&(re.steps.forEach(ii=>si(this,ii,xt)),xt.currentTimeline.applyStylesToKeyframe(),xt.subContextCount>Ge&&xt.transformIntoNewTimeline()),pe.previousNode=re}visitGroup(re,pe){const Ge=[];let xt=pe.currentTimeline.currentTime;const Ht=re.options&&re.options.delay?Zt(re.options.delay):0;re.steps.forEach(ii=>{const ni=pe.createSubContext(re.options);Ht&&ni.delayNextStep(Ht),si(this,ii,ni),xt=Math.max(xt,ni.currentTimeline.currentTime),Ge.push(ni.currentTimeline)}),Ge.forEach(ii=>pe.currentTimeline.mergeTimelineCollectedStyles(ii)),pe.transformIntoNewTimeline(xt),pe.previousNode=re}_visitTiming(re,pe){if(re.dynamic){const Ge=re.strValue;return De(pe.params?at(Ge,pe.params,pe.errors):Ge,pe.errors)}return{duration:re.duration,delay:re.delay,easing:re.easing}}visitAnimate(re,pe){const Ge=pe.currentAnimateTimings=this._visitTiming(re.timings,pe),xt=pe.currentTimeline;Ge.delay&&(pe.incrementTime(Ge.delay),xt.snapshotCurrentStyles());const Ht=re.style;5==Ht.type?this.visitKeyframes(Ht,pe):(pe.incrementTime(Ge.duration),this.visitStyle(Ht,pe),xt.applyStylesToKeyframe()),pe.currentAnimateTimings=null,pe.previousNode=re}visitStyle(re,pe){const Ge=pe.currentTimeline,xt=pe.currentAnimateTimings;!xt&&Ge.getCurrentStyleProperties().length&&Ge.forwardFrame();const Ht=xt&&xt.easing||re.easing;re.isEmptyStep?Ge.applyEmptyStep(Ht):Ge.setStyles(re.styles,Ht,pe.errors,pe.options),pe.previousNode=re}visitKeyframes(re,pe){const Ge=pe.currentAnimateTimings,xt=pe.currentTimeline.duration,Ht=Ge.duration,ni=pe.createSubContext().currentTimeline;ni.easing=Ge.easing,re.styles.forEach(Ci=>{ni.forwardTime((Ci.offset||0)*Ht),ni.setStyles(Ci.styles,Ci.easing,pe.errors,pe.options),ni.applyStylesToKeyframe()}),pe.currentTimeline.mergeTimelineCollectedStyles(ni),pe.transformIntoNewTimeline(xt+Ht),pe.previousNode=re}visitQuery(re,pe){const Ge=pe.currentTimeline.currentTime,xt=re.options||{},Ht=xt.delay?Zt(xt.delay):0;Ht&&(6===pe.previousNode.type||0==Ge&&pe.currentTimeline.getCurrentStyleProperties().length)&&(pe.currentTimeline.snapshotCurrentStyles(),pe.previousNode=kr);let ii=Ge;const ni=pe.invokeQuery(re.selector,re.originalSelector,re.limit,re.includeSelf,!!xt.optional,pe.errors);pe.currentQueryTotal=ni.length;let Ci=null;ni.forEach((Pi,tn)=>{pe.currentQueryIndex=tn;const cn=pe.createSubContext(re.options,Pi);Ht&&cn.delayNextStep(Ht),Pi===pe.element&&(Ci=cn.currentTimeline),si(this,re.animation,cn),cn.currentTimeline.applyStylesToKeyframe(),ii=Math.max(ii,cn.currentTimeline.currentTime)}),pe.currentQueryIndex=0,pe.currentQueryTotal=0,pe.transformIntoNewTimeline(ii),Ci&&(pe.currentTimeline.mergeTimelineCollectedStyles(Ci),pe.currentTimeline.snapshotCurrentStyles()),pe.previousNode=re}visitStagger(re,pe){const Ge=pe.parentContext,xt=pe.currentTimeline,Ht=re.timings,ii=Math.abs(Ht.duration),ni=ii*(pe.currentQueryTotal-1);let Ci=ii*pe.currentQueryIndex;switch(Ht.duration<0?"reverse":Ht.easing){case"reverse":Ci=ni-Ci;break;case"full":Ci=Ge.currentStaggerTime}const tn=pe.currentTimeline;Ci&&tn.delayNextStep(Ci);const cn=tn.currentTime;si(this,re.animation,pe),pe.previousNode=re,Ge.currentStaggerTime=xt.currentTime-cn+(xt.startTime-Ge.currentTimeline.startTime)}}const kr={};class Pr{constructor(re,pe,Ge,xt,Ht,ii,ni,Ci){this._driver=re,this.element=pe,this.subInstructions=Ge,this._enterClassName=xt,this._leaveClassName=Ht,this.errors=ii,this.timelines=ni,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=kr,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=Ci||new ia(this._driver,pe,0),ni.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(re,pe){if(!re)return;const Ge=re;let xt=this.options;null!=Ge.duration&&(xt.duration=Zt(Ge.duration)),null!=Ge.delay&&(xt.delay=Zt(Ge.delay));const Ht=Ge.params;if(Ht){let ii=xt.params;ii||(ii=this.options.params={}),Object.keys(Ht).forEach(ni=>{(!pe||!ii.hasOwnProperty(ni))&&(ii[ni]=at(Ht[ni],ii,this.errors))})}}_copyOptions(){const re={};if(this.options){const pe=this.options.params;if(pe){const Ge=re.params={};Object.keys(pe).forEach(xt=>{Ge[xt]=pe[xt]})}}return re}createSubContext(re=null,pe,Ge){const xt=pe||this.element,Ht=new Pr(this._driver,xt,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(xt,Ge||0));return Ht.previousNode=this.previousNode,Ht.currentAnimateTimings=this.currentAnimateTimings,Ht.options=this._copyOptions(),Ht.updateOptions(re),Ht.currentQueryIndex=this.currentQueryIndex,Ht.currentQueryTotal=this.currentQueryTotal,Ht.parentContext=this,this.subContextCount++,Ht}transformIntoNewTimeline(re){return this.previousNode=kr,this.currentTimeline=this.currentTimeline.fork(this.element,re),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(re,pe,Ge){const xt={duration:null!=pe?pe:re.duration,delay:this.currentTimeline.currentTime+(null!=Ge?Ge:0)+re.delay,easing:""},Ht=new sa(this._driver,re.element,re.keyframes,re.preStyleProps,re.postStyleProps,xt,re.stretchStartingKeyframe);return this.timelines.push(Ht),xt}incrementTime(re){this.currentTimeline.forwardTime(this.currentTimeline.duration+re)}delayNextStep(re){re>0&&this.currentTimeline.delayNextStep(re)}invokeQuery(re,pe,Ge,xt,Ht,ii){let ni=[];if(xt&&ni.push(this.element),re.length>0){re=(re=re.replace(wi,"."+this._enterClassName)).replace(bn,"."+this._leaveClassName);let Pi=this._driver.query(this.element,re,1!=Ge);0!==Ge&&(Pi=Ge<0?Pi.slice(Pi.length+Ge,Pi.length):Pi.slice(0,Ge)),ni.push(...Pi)}return!Ht&&0==ni.length&&ii.push(function se(Ct){return new e.vHH(3014,b)}()),ni}}class ia{constructor(re,pe,Ge,xt){this._driver=re,this.element=pe,this.startTime=Ge,this._elementTimelineStylesLookup=xt,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(pe),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(pe,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(re){const pe=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||pe?(this.forwardTime(this.currentTime+re),pe&&this.snapshotCurrentStyles()):this.startTime+=re}fork(re,pe){return this.applyStylesToKeyframe(),new ia(this._driver,re,pe||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(re){this.applyStylesToKeyframe(),this.duration=re,this._loadKeyframe()}_updateStyle(re,pe){this._localTimelineStyles[re]=pe,this._globalTimelineStyles[re]=pe,this._styleSummary[re]={time:this.currentTime,value:pe}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(re){re&&(this._previousKeyframe.easing=re),Object.keys(this._globalTimelineStyles).forEach(pe=>{this._backFill[pe]=this._globalTimelineStyles[pe]||u.l3,this._currentKeyframe[pe]=u.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(re,pe,Ge,xt){pe&&(this._previousKeyframe.easing=pe);const Ht=xt&&xt.params||{},ii=function La(Ct,re){const pe={};let Ge;return Ct.forEach(xt=>{"*"===xt?(Ge=Ge||Object.keys(re),Ge.forEach(Ht=>{pe[Ht]=u.l3})):ft(xt,!1,pe)}),pe}(re,this._globalTimelineStyles);Object.keys(ii).forEach(ni=>{const Ci=at(ii[ni],Ht,Ge);this._pendingStyles[ni]=Ci,this._localTimelineStyles.hasOwnProperty(ni)||(this._backFill[ni]=this._globalTimelineStyles.hasOwnProperty(ni)?this._globalTimelineStyles[ni]:u.l3),this._updateStyle(ni,Ci)})}applyStylesToKeyframe(){const re=this._pendingStyles,pe=Object.keys(re);0!=pe.length&&(this._pendingStyles={},pe.forEach(Ge=>{this._currentKeyframe[Ge]=re[Ge]}),Object.keys(this._localTimelineStyles).forEach(Ge=>{this._currentKeyframe.hasOwnProperty(Ge)||(this._currentKeyframe[Ge]=this._localTimelineStyles[Ge])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(re=>{const pe=this._localTimelineStyles[re];this._pendingStyles[re]=pe,this._updateStyle(re,pe)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const re=[];for(let pe in this._currentKeyframe)re.push(pe);return re}mergeTimelineCollectedStyles(re){Object.keys(re._styleSummary).forEach(pe=>{const Ge=this._styleSummary[pe],xt=re._styleSummary[pe];(!Ge||xt.time>Ge.time)&&this._updateStyle(pe,xt.value)})}buildKeyframes(){this.applyStylesToKeyframe();const re=new Set,pe=new Set,Ge=1===this._keyframes.size&&0===this.duration;let xt=[];this._keyframes.forEach((ni,Ci)=>{const Pi=ft(ni,!0);Object.keys(Pi).forEach(tn=>{const cn=Pi[tn];cn==u.k1?re.add(tn):cn==u.l3&&pe.add(tn)}),Ge||(Pi.offset=Ci/this.duration),xt.push(Pi)});const Ht=re.size?yt(re.values()):[],ii=pe.size?yt(pe.values()):[];if(Ge){const ni=xt[0],Ci=Me(ni);ni.offset=0,Ci.offset=1,xt=[ni,Ci]}return Hn(this.element,xt,Ht,ii,this.duration,this.startTime,this.easing,!1)}}class sa extends ia{constructor(re,pe,Ge,xt,Ht,ii,ni=!1){super(re,pe,ii.delay),this.keyframes=Ge,this.preStyleProps=xt,this.postStyleProps=Ht,this._stretchStartingKeyframe=ni,this.timings={duration:ii.duration,delay:ii.delay,easing:ii.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let re=this.keyframes,{delay:pe,duration:Ge,easing:xt}=this.timings;if(this._stretchStartingKeyframe&&pe){const Ht=[],ii=Ge+pe,ni=pe/ii,Ci=ft(re[0],!1);Ci.offset=0,Ht.push(Ci);const Pi=ft(re[0],!1);Pi.offset=oa(ni),Ht.push(Pi);const tn=re.length-1;for(let cn=1;cn<=tn;cn++){let wn=ft(re[cn],!1);wn.offset=oa((pe+wn.offset*Ge)/ii),Ht.push(wn)}Ge=ii,pe=0,xt="",re=Ht}return Hn(this.element,re,this.preStyleProps,this.postStyleProps,Ge,pe,xt,!0)}}function oa(Ct,re=3){const pe=Math.pow(10,re-1);return Math.round(Ct*pe)/pe}class rr{}class na extends rr{normalizePropertyName(re,pe){return Xt(re)}normalizeStyleValue(re,pe,Ge,xt){let Ht="";const ii=Ge.toString().trim();if(Ra[pe]&&0!==Ge&&"0"!==Ge)if("number"==typeof Ge)Ht="px";else{const ni=Ge.match(/^[+-]?[\d\.]+([a-z]*)$/);ni&&0==ni[1].length&&xt.push(function A(Ct,re){return new e.vHH(3005,b)}())}return ii+Ht}}const Ra=(()=>function qr(Ct){const re={};return Ct.forEach(pe=>re[pe]=!0),re}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function xa(Ct,re,pe,Ge,xt,Ht,ii,ni,Ci,Pi,tn,cn,wn){return{type:0,element:Ct,triggerName:re,isRemovalTransition:xt,fromState:pe,fromStyles:Ht,toState:Ge,toStyles:ii,timelines:ni,queriedElements:Ci,preStyleProps:Pi,postStyleProps:tn,totalTime:cn,errors:wn}}const Rr={};class Xn{constructor(re,pe,Ge){this._triggerName=re,this.ast=pe,this._stateStyles=Ge}match(re,pe,Ge,xt){return function la(Ct,re,pe,Ge,xt){return Ct.some(Ht=>Ht(re,pe,Ge,xt))}(this.ast.matchers,re,pe,Ge,xt)}buildStyles(re,pe,Ge){const xt=this._stateStyles["*"],Ht=this._stateStyles[re],ii=xt?xt.buildStyles(pe,Ge):{};return Ht?Ht.buildStyles(pe,Ge):ii}build(re,pe,Ge,xt,Ht,ii,ni,Ci,Pi,tn){const cn=[],wn=this.ast.options&&this.ast.options.params||Rr,yn=this.buildStyles(Ge,ni&&ni.params||Rr,cn),Ln=Ci&&Ci.params||Rr,Qn=this.buildStyles(xt,Ln,cn),xr=new Set,dr=new Map,Zr=new Map,Gr="void"===xt,hr={params:Object.assign(Object.assign({},wn),Ln)},zr=tn?[]:Gn(re,pe,this.ast.animation,Ht,ii,yn,Qn,hr,Pi,cn);let zn=0;if(zr.forEach(ka=>{zn=Math.max(ka.duration+ka.delay,zn)}),cn.length)return xa(pe,this._triggerName,Ge,xt,Gr,yn,Qn,[],[],dr,Zr,zn,cn);zr.forEach(ka=>{const tt=ka.element,Et=Z(dr,tt,{});ka.preStyleProps.forEach(Pt=>Et[Pt]=!0);const St=Z(Zr,tt,{});ka.postStyleProps.forEach(Pt=>St[Pt]=!0),tt!==pe&&xr.add(tt)});const ur=yt(xr.values());return xa(pe,this._triggerName,Ge,xt,Gr,yn,Qn,zr,ur,dr,Zr,zn)}}class tr{constructor(re,pe,Ge){this.styles=re,this.defaultParams=pe,this.normalizer=Ge}buildStyles(re,pe){const Ge={},xt=Me(this.defaultParams);return Object.keys(re).forEach(Ht=>{const ii=re[Ht];null!=ii&&(xt[Ht]=ii)}),this.styles.styles.forEach(Ht=>{if("string"!=typeof Ht){const ii=Ht;Object.keys(ii).forEach(ni=>{let Ci=ii[ni];Ci.length>1&&(Ci=at(Ci,xt,pe));const Pi=this.normalizer.normalizePropertyName(ni,pe);Ci=this.normalizer.normalizeStyleValue(ni,Pi,Ci,pe),Ge[Pi]=Ci})}}),Ge}}class lr{constructor(re,pe,Ge){this.name=re,this.ast=pe,this._normalizer=Ge,this.transitionFactories=[],this.states={},pe.states.forEach(xt=>{this.states[xt.name]=new tr(xt.style,xt.options&&xt.options.params||{},Ge)}),jr(this.states,"true","1"),jr(this.states,"false","0"),pe.transitions.forEach(xt=>{this.transitionFactories.push(new Xn(re,xt,this.states))}),this.fallbackTransition=function ma(Ct,re,pe){return new Xn(Ct,{type:1,animation:{type:2,steps:[],options:null},matchers:[(ii,ni)=>!0],options:null,queryCount:0,depCount:0},re)}(re,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(re,pe,Ge,xt){return this.transitionFactories.find(ii=>ii.match(re,pe,Ge,xt))||null}matchStyles(re,pe,Ge){return this.fallbackTransition.buildStyles(re,pe,Ge)}}function jr(Ct,re,pe){Ct.hasOwnProperty(re)?Ct.hasOwnProperty(pe)||(Ct[pe]=Ct[re]):Ct.hasOwnProperty(pe)&&(Ct[re]=Ct[pe])}const Dr=new An;class Nr{constructor(re,pe,Ge){this.bodyNode=re,this._driver=pe,this._normalizer=Ge,this._animations={},this._playersById={},this.players=[]}register(re,pe){const Ge=[],Ht=sn(this._driver,pe,Ge,[]);if(Ge.length)throw function c(Ct){return new e.vHH(3503,b)}();this._animations[re]=Ht}_buildPlayer(re,pe,Ge){const xt=re.element,Ht=Ee(0,this._normalizer,0,re.keyframes,pe,Ge);return this._driver.animate(xt,Ht,re.duration,re.delay,re.easing,[],!0)}create(re,pe,Ge={}){const xt=[],Ht=this._animations[re];let ii;const ni=new Map;if(Ht?(ii=Gn(this._driver,pe,Ht,vt,kt,{},{},Ge,Dr,xt),ii.forEach(tn=>{const cn=Z(ni,tn.element,{});tn.postStyleProps.forEach(wn=>cn[wn]=null)})):(xt.push(function C(){return new e.vHH(3300,b)}()),ii=[]),xt.length)throw function S(Ct){return new e.vHH(3504,b)}();ni.forEach((tn,cn)=>{Object.keys(tn).forEach(wn=>{tn[wn]=this._driver.computeStyle(cn,wn,u.l3)})});const Pi=ke(ii.map(tn=>{const cn=ni.get(tn.element);return this._buildPlayer(tn,{},cn)}));return this._playersById[re]=Pi,Pi.onDestroy(()=>this.destroy(re)),this.players.push(Pi),Pi}destroy(re){const pe=this._getPlayer(re);pe.destroy(),delete this._playersById[re];const Ge=this.players.indexOf(pe);Ge>=0&&this.players.splice(Ge,1)}_getPlayer(re){const pe=this._playersById[re];if(!pe)throw function I(Ct){return new e.vHH(3301,b)}();return pe}listen(re,pe,Ge,xt){const Ht=be(pe,"","","");return te(this._getPlayer(re),Ge,Ht,xt),()=>{}}command(re,pe,Ge,xt){if("register"==Ge)return void this.register(re,xt[0]);if("create"==Ge)return void this.create(re,pe,xt[0]||{});const Ht=this._getPlayer(re);switch(Ge){case"play":Ht.play();break;case"pause":Ht.pause();break;case"reset":Ht.reset();break;case"restart":Ht.restart();break;case"finish":Ht.finish();break;case"init":Ht.init();break;case"setPosition":Ht.setPosition(parseFloat(xt[0]));break;case"destroy":this.destroy(re)}}}const Ur="ng-animate-queued",gr="ng-animate-disabled",Jn=[],ga={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Ma={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},$n="__ng_removed";class qn{constructor(re,pe=""){this.namespaceId=pe;const Ge=re&&re.hasOwnProperty("value");if(this.value=function je(Ct){return null!=Ct?Ct:null}(Ge?re.value:re),Ge){const Ht=Me(re);delete Ht.value,this.options=Ht}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(re){const pe=re.params;if(pe){const Ge=this.options.params;Object.keys(pe).forEach(xt=>{null==Ge[xt]&&(Ge[xt]=pe[xt])})}}}const Hr="void",br=new qn(Hr);class Fr{constructor(re,pe,Ge){this.id=re,this.hostElement=pe,this._engine=Ge,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+re,Oi(pe,this._hostClassName)}listen(re,pe,Ge,xt){if(!this._triggers.hasOwnProperty(pe))throw function _(Ct,re){return new e.vHH(3302,b)}();if(null==Ge||0==Ge.length)throw function n(Ct){return new e.vHH(3303,b)}();if(!function Ye(Ct){return"start"==Ct||"done"==Ct}(Ge))throw function g(Ct,re){return new e.vHH(3400,b)}();const Ht=Z(this._elementListeners,re,[]),ii={name:pe,phase:Ge,callback:xt};Ht.push(ii);const ni=Z(this._engine.statesByElement,re,{});return ni.hasOwnProperty(pe)||(Oi(re,gt),Oi(re,gt+"-"+pe),ni[pe]=br),()=>{this._engine.afterFlush(()=>{const Ci=Ht.indexOf(ii);Ci>=0&&Ht.splice(Ci,1),this._triggers[pe]||delete ni[pe]})}}register(re,pe){return!this._triggers[re]&&(this._triggers[re]=pe,!0)}_getTrigger(re){const pe=this._triggers[re];if(!pe)throw function V(Ct){return new e.vHH(3401,b)}();return pe}trigger(re,pe,Ge,xt=!0){const Ht=this._getTrigger(pe),ii=new Aa(this.id,pe,re);let ni=this._engine.statesByElement.get(re);ni||(Oi(re,gt),Oi(re,gt+"-"+pe),this._engine.statesByElement.set(re,ni={}));let Ci=ni[pe];const Pi=new qn(Ge,this.id);if(!(Ge&&Ge.hasOwnProperty("value"))&&Ci&&Pi.absorbOptions(Ci.options),ni[pe]=Pi,Ci||(Ci=br),Pi.value!==Hr&&Ci.value===Pi.value){if(!function mt(Ct,re){const pe=Object.keys(Ct),Ge=Object.keys(re);if(pe.length!=Ge.length)return!1;for(let xt=0;xt<pe.length;xt++){const Ht=pe[xt];if(!re.hasOwnProperty(Ht)||Ct[Ht]!==re[Ht])return!1}return!0}(Ci.params,Pi.params)){const Ln=[],Qn=Ht.matchStyles(Ci.value,Ci.params,Ln),xr=Ht.matchStyles(Pi.value,Pi.params,Ln);Ln.length?this._engine.reportError(Ln):this._engine.afterFlush(()=>{qe(re,Qn),Re(re,xr)})}return}const wn=Z(this._engine.playersByElement,re,[]);wn.forEach(Ln=>{Ln.namespaceId==this.id&&Ln.triggerName==pe&&Ln.queued&&Ln.destroy()});let Pn=Ht.matchTransition(Ci.value,Pi.value,re,Pi.params),yn=!1;if(!Pn){if(!xt)return;Pn=Ht.fallbackTransition,yn=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:re,triggerName:pe,transition:Pn,fromState:Ci,toState:Pi,player:ii,isFallbackTransition:yn}),yn||(Oi(re,Ur),ii.onStart(()=>{rn(re,Ur)})),ii.onDone(()=>{let Ln=this.players.indexOf(ii);Ln>=0&&this.players.splice(Ln,1);const Qn=this._engine.playersByElement.get(re);if(Qn){let xr=Qn.indexOf(ii);xr>=0&&Qn.splice(xr,1)}}),this.players.push(ii),wn.push(ii),ii}deregister(re){delete this._triggers[re],this._engine.statesByElement.forEach((pe,Ge)=>{delete pe[re]}),this._elementListeners.forEach((pe,Ge)=>{this._elementListeners.set(Ge,pe.filter(xt=>xt.name!=re))})}clearElementCache(re){this._engine.statesByElement.delete(re),this._elementListeners.delete(re);const pe=this._engine.playersByElement.get(re);pe&&(pe.forEach(Ge=>Ge.destroy()),this._engine.playersByElement.delete(re))}_signalRemovalForInnerTriggers(re,pe){const Ge=this._engine.driver.query(re,Qe,!0);Ge.forEach(xt=>{if(xt[$n])return;const Ht=this._engine.fetchNamespacesByElement(xt);Ht.size?Ht.forEach(ii=>ii.triggerLeaveAnimation(xt,pe,!1,!0)):this.clearElementCache(xt)}),this._engine.afterFlushAnimationsDone(()=>Ge.forEach(xt=>this.clearElementCache(xt)))}triggerLeaveAnimation(re,pe,Ge,xt){const Ht=this._engine.statesByElement.get(re),ii=new Map;if(Ht){const ni=[];if(Object.keys(Ht).forEach(Ci=>{if(ii.set(Ci,Ht[Ci].value),this._triggers[Ci]){const Pi=this.trigger(re,Ci,Hr,xt);Pi&&ni.push(Pi)}}),ni.length)return this._engine.markElementAsRemoved(this.id,re,!0,pe,ii),Ge&&ke(ni).onDone(()=>this._engine.processLeaveNode(re)),!0}return!1}prepareLeaveAnimationListeners(re){const pe=this._elementListeners.get(re),Ge=this._engine.statesByElement.get(re);if(pe&&Ge){const xt=new Set;pe.forEach(Ht=>{const ii=Ht.name;if(xt.has(ii))return;xt.add(ii);const Ci=this._triggers[ii].fallbackTransition,Pi=Ge[ii]||br,tn=new qn(Hr),cn=new Aa(this.id,ii,re);this._engine.totalQueuedPlayers++,this._queue.push({element:re,triggerName:ii,transition:Ci,fromState:Pi,toState:tn,player:cn,isFallbackTransition:!0})})}}removeNode(re,pe){const Ge=this._engine;if(re.childElementCount&&this._signalRemovalForInnerTriggers(re,pe),this.triggerLeaveAnimation(re,pe,!0))return;let xt=!1;if(Ge.totalAnimations){const Ht=Ge.players.length?Ge.playersByQueriedElement.get(re):[];if(Ht&&Ht.length)xt=!0;else{let ii=re;for(;ii=ii.parentNode;)if(Ge.statesByElement.get(ii)){xt=!0;break}}}if(this.prepareLeaveAnimationListeners(re),xt)Ge.markElementAsRemoved(this.id,re,!1,pe);else{const Ht=re[$n];(!Ht||Ht===ga)&&(Ge.afterFlush(()=>this.clearElementCache(re)),Ge.destroyInnerAnimations(re),Ge._onRemovalComplete(re,pe))}}insertNode(re,pe){Oi(re,this._hostClassName)}drainQueuedTransitions(re){const pe=[];return this._queue.forEach(Ge=>{const xt=Ge.player;if(xt.destroyed)return;const Ht=Ge.element,ii=this._elementListeners.get(Ht);ii&&ii.forEach(ni=>{if(ni.name==Ge.triggerName){const Ci=be(Ht,Ge.triggerName,Ge.fromState.value,Ge.toState.value);Ci._data=re,te(Ge.player,ni.phase,Ci,ni.callback)}}),xt.markedForDestroy?this._engine.afterFlush(()=>{xt.destroy()}):pe.push(Ge)}),this._queue=[],pe.sort((Ge,xt)=>{const Ht=Ge.transition.ast.depCount,ii=xt.transition.ast.depCount;return 0==Ht||0==ii?Ht-ii:this._engine.driver.containsElement(Ge.element,xt.element)?1:-1})}destroy(re){this.players.forEach(pe=>pe.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,re)}elementContainsData(re){let pe=!1;return this._elementListeners.has(re)&&(pe=!0),pe=!!this._queue.find(Ge=>Ge.element===re)||pe,pe}}class ha{constructor(re,pe,Ge){this.bodyNode=re,this.driver=pe,this._normalizer=Ge,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=(xt,Ht)=>{}}_onRemovalComplete(re,pe){this.onRemovalComplete(re,pe)}get queuedPlayers(){const re=[];return this._namespaceList.forEach(pe=>{pe.players.forEach(Ge=>{Ge.queued&&re.push(Ge)})}),re}createNamespace(re,pe){const Ge=new Fr(re,pe,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,pe)?this._balanceNamespaceList(Ge,pe):(this.newHostElements.set(pe,Ge),this.collectEnterElement(pe)),this._namespaceLookup[re]=Ge}_balanceNamespaceList(re,pe){const Ge=this._namespaceList,xt=this.namespacesByHostElement,Ht=Ge.length-1;if(Ht>=0){let ii=!1;if(void 0!==this.driver.getParentElement){let ni=this.driver.getParentElement(pe);for(;ni;){const Ci=xt.get(ni);if(Ci){const Pi=Ge.indexOf(Ci);Ge.splice(Pi+1,0,re),ii=!0;break}ni=this.driver.getParentElement(ni)}}else for(let ni=Ht;ni>=0;ni--)if(this.driver.containsElement(Ge[ni].hostElement,pe)){Ge.splice(ni+1,0,re),ii=!0;break}ii||Ge.unshift(re)}else Ge.push(re);return xt.set(pe,re),re}register(re,pe){let Ge=this._namespaceLookup[re];return Ge||(Ge=this.createNamespace(re,pe)),Ge}registerTrigger(re,pe,Ge){let xt=this._namespaceLookup[re];xt&&xt.register(pe,Ge)&&this.totalAnimations++}destroy(re,pe){if(!re)return;const Ge=this._fetchNamespace(re);this.afterFlush(()=>{this.namespacesByHostElement.delete(Ge.hostElement),delete this._namespaceLookup[re];const xt=this._namespaceList.indexOf(Ge);xt>=0&&this._namespaceList.splice(xt,1)}),this.afterFlushAnimationsDone(()=>Ge.destroy(pe))}_fetchNamespace(re){return this._namespaceLookup[re]}fetchNamespacesByElement(re){const pe=new Set,Ge=this.statesByElement.get(re);if(Ge){const xt=Object.keys(Ge);for(let Ht=0;Ht<xt.length;Ht++){const ii=Ge[xt[Ht]].namespaceId;if(ii){const ni=this._fetchNamespace(ii);ni&&pe.add(ni)}}}return pe}trigger(re,pe,Ge,xt){if(Mt(pe)){const Ht=this._fetchNamespace(re);if(Ht)return Ht.trigger(pe,Ge,xt),!0}return!1}insertNode(re,pe,Ge,xt){if(!Mt(pe))return;const Ht=pe[$n];if(Ht&&Ht.setForRemoval){Ht.setForRemoval=!1,Ht.setForMove=!0;const ii=this.collectedLeaveElements.indexOf(pe);ii>=0&&this.collectedLeaveElements.splice(ii,1)}if(re){const ii=this._fetchNamespace(re);ii&&ii.insertNode(pe,Ge)}xt&&this.collectEnterElement(pe)}collectEnterElement(re){this.collectedEnterElements.push(re)}markElementAsDisabled(re,pe){pe?this.disabledNodes.has(re)||(this.disabledNodes.add(re),Oi(re,gr)):this.disabledNodes.has(re)&&(this.disabledNodes.delete(re),rn(re,gr))}removeNode(re,pe,Ge,xt){if(Mt(pe)){const Ht=re?this._fetchNamespace(re):null;if(Ht?Ht.removeNode(pe,xt):this.markElementAsRemoved(re,pe,!1,xt),Ge){const ii=this.namespacesByHostElement.get(pe);ii&&ii.id!==re&&ii.removeNode(pe,xt)}}else this._onRemovalComplete(pe,xt)}markElementAsRemoved(re,pe,Ge,xt,Ht){this.collectedLeaveElements.push(pe),pe[$n]={namespaceId:re,setForRemoval:xt,hasAnimation:Ge,removedBeforeQueried:!1,previousTriggersValues:Ht}}listen(re,pe,Ge,xt,Ht){return Mt(pe)?this._fetchNamespace(re).listen(pe,Ge,xt,Ht):()=>{}}_buildInstruction(re,pe,Ge,xt,Ht){return re.transition.build(this.driver,re.element,re.fromState.value,re.toState.value,Ge,xt,re.fromState.options,re.toState.options,pe,Ht)}destroyInnerAnimations(re){let pe=this.driver.query(re,Qe,!0);pe.forEach(Ge=>this.destroyActiveAnimationsForElement(Ge)),0!=this.playersByQueriedElement.size&&(pe=this.driver.query(re,ei,!0),pe.forEach(Ge=>this.finishActiveQueriedAnimationOnElement(Ge)))}destroyActiveAnimationsForElement(re){const pe=this.playersByElement.get(re);pe&&pe.forEach(Ge=>{Ge.queued?Ge.markedForDestroy=!0:Ge.destroy()})}finishActiveQueriedAnimationOnElement(re){const pe=this.playersByQueriedElement.get(re);pe&&pe.forEach(Ge=>Ge.finish())}whenRenderingDone(){return new Promise(re=>{if(this.players.length)return ke(this.players).onDone(()=>re());re()})}processLeaveNode(re){var pe;const Ge=re[$n];if(Ge&&Ge.setForRemoval){if(re[$n]=ga,Ge.namespaceId){this.destroyInnerAnimations(re);const xt=this._fetchNamespace(Ge.namespaceId);xt&&xt.clearElementCache(re)}this._onRemovalComplete(re,Ge.setForRemoval)}(null===(pe=re.classList)||void 0===pe?void 0:pe.contains(gr))&&this.markElementAsDisabled(re,!1),this.driver.query(re,".ng-animate-disabled",!0).forEach(xt=>{this.markElementAsDisabled(xt,!1)})}flush(re=-1){let pe=[];if(this.newHostElements.size&&(this.newHostElements.forEach((Ge,xt)=>this._balanceNamespaceList(Ge,xt)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let Ge=0;Ge<this.collectedEnterElements.length;Ge++)Oi(this.collectedEnterElements[Ge],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const Ge=[];try{pe=this._flushAnimations(Ge,re)}finally{for(let xt=0;xt<Ge.length;xt++)Ge[xt]()}}else for(let Ge=0;Ge<this.collectedLeaveElements.length;Ge++)this.processLeaveNode(this.collectedLeaveElements[Ge]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(Ge=>Ge()),this._flushFns=[],this._whenQuietFns.length){const Ge=this._whenQuietFns;this._whenQuietFns=[],pe.length?ke(pe).onDone(()=>{Ge.forEach(xt=>xt())}):Ge.forEach(xt=>xt())}}reportError(re){throw function R(Ct){return new e.vHH(3402,b)}()}_flushAnimations(re,pe){const Ge=new An,xt=[],Ht=new Map,ii=[],ni=new Map,Ci=new Map,Pi=new Map,tn=new Set;this.disabledNodes.forEach(ti=>{tn.add(ti);const fi=this.driver.query(ti,".ng-animate-queued",!0);for(let Ei=0;Ei<fi.length;Ei++)tn.add(fi[Ei])});const cn=this.bodyNode,wn=Array.from(this.statesByElement.keys()),Pn=Si(wn,this.collectedEnterElements),yn=new Map;let Ln=0;Pn.forEach((ti,fi)=>{const Ei=vt+Ln++;yn.set(fi,Ei),ti.forEach(Ki=>Oi(Ki,Ei))});const Qn=[],xr=new Set,dr=new Set;for(let ti=0;ti<this.collectedLeaveElements.length;ti++){const fi=this.collectedLeaveElements[ti],Ei=fi[$n];Ei&&Ei.setForRemoval&&(Qn.push(fi),xr.add(fi),Ei.hasAnimation?this.driver.query(fi,".ng-star-inserted",!0).forEach(Ki=>xr.add(Ki)):dr.add(fi))}const Zr=new Map,Gr=Si(wn,Array.from(xr));Gr.forEach((ti,fi)=>{const Ei=kt+Ln++;Zr.set(fi,Ei),ti.forEach(Ki=>Oi(Ki,Ei))}),re.push(()=>{Pn.forEach((ti,fi)=>{const Ei=yn.get(fi);ti.forEach(Ki=>rn(Ki,Ei))}),Gr.forEach((ti,fi)=>{const Ei=Zr.get(fi);ti.forEach(Ki=>rn(Ki,Ei))}),Qn.forEach(ti=>{this.processLeaveNode(ti)})});const hr=[],zr=[];for(let ti=this._namespaceList.length-1;ti>=0;ti--)this._namespaceList[ti].drainQueuedTransitions(pe).forEach(Ei=>{const Ki=Ei.player,Qi=Ei.element;if(hr.push(Ki),this.collectedEnterElements.length){const ir=Qi[$n];if(ir&&ir.setForMove){if(ir.previousTriggersValues&&ir.previousTriggersValues.has(Ei.triggerName)){const _r=ir.previousTriggersValues.get(Ei.triggerName),fr=this.statesByElement.get(Ei.element);fr&&fr[Ei.triggerName]&&(fr[Ei.triggerName].value=_r)}return void Ki.destroy()}}const on=!cn||!this.driver.containsElement(cn,Qi),xn=Zr.get(Qi),jn=yn.get(Qi),On=this._buildInstruction(Ei,Ge,jn,xn,on);if(On.errors&&On.errors.length)return void zr.push(On);if(on)return Ki.onStart(()=>qe(Qi,On.fromStyles)),Ki.onDestroy(()=>Re(Qi,On.toStyles)),void xt.push(Ki);if(Ei.isFallbackTransition)return Ki.onStart(()=>qe(Qi,On.fromStyles)),Ki.onDestroy(()=>Re(Qi,On.toStyles)),void xt.push(Ki);const Kr=[];On.timelines.forEach(ir=>{ir.stretchStartingKeyframe=!0,this.disabledNodes.has(ir.element)||Kr.push(ir)}),On.timelines=Kr,Ge.append(Qi,On.timelines),ii.push({instruction:On,player:Ki,element:Qi}),On.queriedElements.forEach(ir=>Z(ni,ir,[]).push(Ki)),On.preStyleProps.forEach((ir,_r)=>{const fr=Object.keys(ir);if(fr.length){let Ir=Ci.get(_r);Ir||Ci.set(_r,Ir=new Set),fr.forEach(Br=>Ir.add(Br))}}),On.postStyleProps.forEach((ir,_r)=>{const fr=Object.keys(ir);let Ir=Pi.get(_r);Ir||Pi.set(_r,Ir=new Set),fr.forEach(Br=>Ir.add(Br))})});if(zr.length){const ti=[];zr.forEach(fi=>{ti.push(function $(Ct,re){return new e.vHH(3505,b)}())}),hr.forEach(fi=>fi.destroy()),this.reportError(ti)}const zn=new Map,ur=new Map;ii.forEach(ti=>{const fi=ti.element;Ge.has(fi)&&(ur.set(fi,fi),this._beforeAnimationBuild(ti.player.namespaceId,ti.instruction,zn))}),xt.forEach(ti=>{const fi=ti.element;this._getPreviousPlayers(fi,!1,ti.namespaceId,ti.triggerName,null).forEach(Ki=>{Z(zn,fi,[]).push(Ki),Ki.destroy()})});const ka=Qn.filter(ti=>$t(ti,Ci,Pi)),tt=new Map;ri(tt,this.driver,dr,Pi,u.l3).forEach(ti=>{$t(ti,Ci,Pi)&&ka.push(ti)});const St=new Map;Pn.forEach((ti,fi)=>{ri(St,this.driver,new Set(ti),Ci,u.k1)}),ka.forEach(ti=>{const fi=tt.get(ti),Ei=St.get(ti);tt.set(ti,Object.assign(Object.assign({},fi),Ei))});const Pt=[],qt=[],gi={};ii.forEach(ti=>{const{element:fi,player:Ei,instruction:Ki}=ti;if(Ge.has(fi)){if(tn.has(fi))return Ei.onDestroy(()=>Re(fi,Ki.toStyles)),Ei.disabled=!0,Ei.overrideTotalTime(Ki.totalTime),void xt.push(Ei);let Qi=gi;if(ur.size>1){let xn=fi;const jn=[];for(;xn=xn.parentNode;){const On=ur.get(xn);if(On){Qi=On;break}jn.push(xn)}jn.forEach(On=>ur.set(On,Qi))}const on=this._buildAnimation(Ei.namespaceId,Ki,zn,Ht,St,tt);if(Ei.setRealPlayer(on),Qi===gi)Pt.push(Ei);else{const xn=this.playersByElement.get(Qi);xn&&xn.length&&(Ei.parentPlayer=ke(xn)),xt.push(Ei)}}else qe(fi,Ki.fromStyles),Ei.onDestroy(()=>Re(fi,Ki.toStyles)),qt.push(Ei),tn.has(fi)&&xt.push(Ei)}),qt.forEach(ti=>{const fi=Ht.get(ti.element);if(fi&&fi.length){const Ei=ke(fi);ti.setRealPlayer(Ei)}}),xt.forEach(ti=>{ti.parentPlayer?ti.syncPlayerEvents(ti.parentPlayer):ti.destroy()});for(let ti=0;ti<Qn.length;ti++){const fi=Qn[ti],Ei=fi[$n];if(rn(fi,kt),Ei&&Ei.hasAnimation)continue;let Ki=[];if(ni.size){let on=ni.get(fi);on&&on.length&&Ki.push(...on);let xn=this.driver.query(fi,ei,!0);for(let jn=0;jn<xn.length;jn++){let On=ni.get(xn[jn]);On&&On.length&&Ki.push(...On)}}const Qi=Ki.filter(on=>!on.destroyed);Qi.length?Yn(this,fi,Qi):this.processLeaveNode(fi)}return Qn.length=0,Pt.forEach(ti=>{this.players.push(ti),ti.onDone(()=>{ti.destroy();const fi=this.players.indexOf(ti);this.players.splice(fi,1)}),ti.play()}),Pt}elementContainsData(re,pe){let Ge=!1;const xt=pe[$n];return xt&&xt.setForRemoval&&(Ge=!0),this.playersByElement.has(pe)&&(Ge=!0),this.playersByQueriedElement.has(pe)&&(Ge=!0),this.statesByElement.has(pe)&&(Ge=!0),this._fetchNamespace(re).elementContainsData(pe)||Ge}afterFlush(re){this._flushFns.push(re)}afterFlushAnimationsDone(re){this._whenQuietFns.push(re)}_getPreviousPlayers(re,pe,Ge,xt,Ht){let ii=[];if(pe){const ni=this.playersByQueriedElement.get(re);ni&&(ii=ni)}else{const ni=this.playersByElement.get(re);if(ni){const Ci=!Ht||Ht==Hr;ni.forEach(Pi=>{Pi.queued||!Ci&&Pi.triggerName!=xt||ii.push(Pi)})}}return(Ge||xt)&&(ii=ii.filter(ni=>!(Ge&&Ge!=ni.namespaceId||xt&&xt!=ni.triggerName))),ii}_beforeAnimationBuild(re,pe,Ge){const Ht=pe.element,ii=pe.isRemovalTransition?void 0:re,ni=pe.isRemovalTransition?void 0:pe.triggerName;for(const Ci of pe.timelines){const Pi=Ci.element,tn=Pi!==Ht,cn=Z(Ge,Pi,[]);this._getPreviousPlayers(Pi,tn,ii,ni,pe.toState).forEach(Pn=>{const yn=Pn.getRealPlayer();yn.beforeDestroy&&yn.beforeDestroy(),Pn.destroy(),cn.push(Pn)})}qe(Ht,pe.fromStyles)}_buildAnimation(re,pe,Ge,xt,Ht,ii){const ni=pe.triggerName,Ci=pe.element,Pi=[],tn=new Set,cn=new Set,wn=pe.timelines.map(yn=>{const Ln=yn.element;tn.add(Ln);const Qn=Ln[$n];if(Qn&&Qn.removedBeforeQueried)return new u.ZN(yn.duration,yn.delay);const xr=Ln!==Ci,dr=function At(Ct){const re=[];return oi(Ct,re),re}((Ge.get(Ln)||Jn).map(zn=>zn.getRealPlayer())).filter(zn=>!!zn.element&&zn.element===Ln),Zr=Ht.get(Ln),Gr=ii.get(Ln),hr=Ee(0,this._normalizer,0,yn.keyframes,Zr,Gr),zr=this._buildPlayer(yn,hr,dr);if(yn.subTimeline&&xt&&cn.add(Ln),xr){const zn=new Aa(re,ni,Ln);zn.setRealPlayer(zr),Pi.push(zn)}return zr});Pi.forEach(yn=>{Z(this.playersByQueriedElement,yn.element,[]).push(yn),yn.onDone(()=>function Wn(Ct,re,pe){let Ge;if(Ct instanceof Map){if(Ge=Ct.get(re),Ge){if(Ge.length){const xt=Ge.indexOf(pe);Ge.splice(xt,1)}0==Ge.length&&Ct.delete(re)}}else if(Ge=Ct[re],Ge){if(Ge.length){const xt=Ge.indexOf(pe);Ge.splice(xt,1)}0==Ge.length&&delete Ct[re]}return Ge}(this.playersByQueriedElement,yn.element,yn))}),tn.forEach(yn=>Oi(yn,_t));const Pn=ke(wn);return Pn.onDestroy(()=>{tn.forEach(yn=>rn(yn,_t)),Re(Ci,pe.toStyles)}),cn.forEach(yn=>{Z(xt,yn,[]).push(Pn)}),Pn}_buildPlayer(re,pe,Ge){return pe.length>0?this.driver.animate(re.element,pe,re.duration,re.delay,re.easing,Ge):new u.ZN(re.duration,re.delay)}}class Aa{constructor(re,pe,Ge){this.namespaceId=re,this.triggerName=pe,this.element=Ge,this._player=new u.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(re){this._containsRealPlayer||(this._player=re,Object.keys(this._queuedCallbacks).forEach(pe=>{this._queuedCallbacks[pe].forEach(Ge=>te(re,pe,void 0,Ge))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(re.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(re){this.totalTime=re}syncPlayerEvents(re){const pe=this._player;pe.triggerCallback&&re.onStart(()=>pe.triggerCallback("start")),re.onDone(()=>this.finish()),re.onDestroy(()=>this.destroy())}_queueEvent(re,pe){Z(this._queuedCallbacks,re,[]).push(pe)}onDone(re){this.queued&&this._queueEvent("done",re),this._player.onDone(re)}onStart(re){this.queued&&this._queueEvent("start",re),this._player.onStart(re)}onDestroy(re){this.queued&&this._queueEvent("destroy",re),this._player.onDestroy(re)}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(re){this.queued||this._player.setPosition(re)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(re){const pe=this._player;pe.triggerCallback&&pe.triggerCallback(re)}}function Mt(Ct){return Ct&&1===Ct.nodeType}function Ot(Ct,re){const pe=Ct.style.display;return Ct.style.display=null!=re?re:"none",pe}function ri(Ct,re,pe,Ge,xt){const Ht=[];pe.forEach(Ci=>Ht.push(Ot(Ci)));const ii=[];Ge.forEach((Ci,Pi)=>{const tn={};Ci.forEach(cn=>{const wn=tn[cn]=re.computeStyle(Pi,cn,xt);(!wn||0==wn.length)&&(Pi[$n]=Ma,ii.push(Pi))}),Ct.set(Pi,tn)});let ni=0;return pe.forEach(Ci=>Ot(Ci,Ht[ni++])),ii}function Si(Ct,re){const pe=new Map;if(Ct.forEach(ni=>pe.set(ni,[])),0==re.length)return pe;const xt=new Set(re),Ht=new Map;function ii(ni){if(!ni)return 1;let Ci=Ht.get(ni);if(Ci)return Ci;const Pi=ni.parentNode;return Ci=pe.has(Pi)?Pi:xt.has(Pi)?1:ii(Pi),Ht.set(ni,Ci),Ci}return re.forEach(ni=>{const Ci=ii(ni);1!==Ci&&pe.get(Ci).push(ni)}),pe}function Oi(Ct,re){var pe;null===(pe=Ct.classList)||void 0===pe||pe.add(re)}function rn(Ct,re){var pe;null===(pe=Ct.classList)||void 0===pe||pe.remove(re)}function Yn(Ct,re,pe){ke(pe).onDone(()=>Ct.processLeaveNode(re))}function oi(Ct,re){for(let pe=0;pe<Ct.length;pe++){const Ge=Ct[pe];Ge instanceof u.ZE?oi(Ge.players,re):re.push(Ge)}}function $t(Ct,re,pe){const Ge=pe.get(Ct);if(!Ge)return!1;let xt=re.get(Ct);return xt?Ge.forEach(Ht=>xt.add(Ht)):re.set(Ct,Ge),pe.delete(Ct),!0}class Ai{constructor(re,pe,Ge){this.bodyNode=re,this._driver=pe,this._normalizer=Ge,this._triggerCache={},this.onRemovalComplete=(xt,Ht)=>{},this._transitionEngine=new ha(re,pe,Ge),this._timelineEngine=new Nr(re,pe,Ge),this._transitionEngine.onRemovalComplete=(xt,Ht)=>this.onRemovalComplete(xt,Ht)}registerTrigger(re,pe,Ge,xt,Ht){const ii=re+"-"+xt;let ni=this._triggerCache[ii];if(!ni){const Ci=[],tn=sn(this._driver,Ht,Ci,[]);if(Ci.length)throw function r(Ct,re){return new e.vHH(3404,b)}();ni=function wr(Ct,re,pe){return new lr(Ct,re,pe)}(xt,tn,this._normalizer),this._triggerCache[ii]=ni}this._transitionEngine.registerTrigger(pe,xt,ni)}register(re,pe){this._transitionEngine.register(re,pe)}destroy(re,pe){this._transitionEngine.destroy(re,pe)}onInsert(re,pe,Ge,xt){this._transitionEngine.insertNode(re,pe,Ge,xt)}onRemove(re,pe,Ge,xt){this._transitionEngine.removeNode(re,pe,xt||!1,Ge)}disableAnimations(re,pe){this._transitionEngine.markElementAsDisabled(re,pe)}process(re,pe,Ge,xt){if("@"==Ge.charAt(0)){const[Ht,ii]=Y(Ge);this._timelineEngine.command(Ht,pe,ii,xt)}else this._transitionEngine.trigger(re,pe,Ge,xt)}listen(re,pe,Ge,xt,Ht){if("@"==Ge.charAt(0)){const[ii,ni]=Y(Ge);return this._timelineEngine.listen(ii,pe,ni,Ht)}return this._transitionEngine.listen(re,pe,Ge,xt,Ht)}flush(re=-1){this._transitionEngine.flush(re)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let Ke=(()=>{class Ct{constructor(pe,Ge,xt){this._element=pe,this._startStyles=Ge,this._endStyles=xt,this._state=0;let Ht=Ct.initialStylesByElement.get(pe);Ht||Ct.initialStylesByElement.set(pe,Ht={}),this._initialStyles=Ht}start(){this._state<1&&(this._startStyles&&Re(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Re(this._element,this._initialStyles),this._endStyles&&(Re(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Ct.initialStylesByElement.delete(this._element),this._startStyles&&(qe(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(qe(this._element,this._endStyles),this._endStyles=null),Re(this._element,this._initialStyles),this._state=3)}}return Ct.initialStylesByElement=new WeakMap,Ct})();function Be(Ct){let re=null;const pe=Object.keys(Ct);for(let Ge=0;Ge<pe.length;Ge++){const xt=pe[Ge];Ne(xt)&&(re=re||{},re[xt]=Ct[xt])}return re}function Ne(Ct){return"display"===Ct||"position"===Ct}class Lt{constructor(re,pe,Ge,xt){this.element=re,this.keyframes=pe,this.options=Ge,this._specialStyles=xt,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=Ge.duration,this._delay=Ge.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(re=>re()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const re=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,re,this.options),this._finalKeyframe=re.length?re[re.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(re,pe,Ge){return re.animate(pe,Ge)}onStart(re){this._onStartFns.push(re)}onDone(re){this._onDoneFns.push(re)}onDestroy(re){this._onDestroyFns.push(re)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(re=>re()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(re=>re()),this._onDestroyFns=[])}setPosition(re){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=re*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const re={};if(this.hasStarted()){const pe=this._finalKeyframe;Object.keys(pe).forEach(Ge=>{"offset"!=Ge&&(re[Ge]=this._finished?pe[Ge]:en(this.element,Ge))})}this.currentSnapshot=re}triggerCallback(re){const pe="start"==re?this._onStartFns:this._onDoneFns;pe.forEach(Ge=>Ge()),pe.length=0}}class vi{validateStyleProperty(re){return ue(re)}matchesElement(re,pe){return!1}containsElement(re,pe){return Le(re,pe)}getParentElement(re){return ce(re)}query(re,pe,Ge){return lt(re,pe,Ge)}computeStyle(re,pe,Ge){return window.getComputedStyle(re)[pe]}animate(re,pe,Ge,xt,Ht,ii=[]){const Ci={duration:Ge,delay:xt,fill:0==xt?"both":"forwards"};Ht&&(Ci.easing=Ht);const Pi={},tn=ii.filter(wn=>wn instanceof Lt);(function qi(Ct,re){return 0===Ct||0===re})(Ge,xt)&&tn.forEach(wn=>{let Pn=wn.currentSnapshot;Object.keys(Pn).forEach(yn=>Pi[yn]=Pn[yn])}),pe=function ui(Ct,re,pe){const Ge=Object.keys(pe);if(Ge.length&&re.length){let Ht=re[0],ii=[];if(Ge.forEach(ni=>{Ht.hasOwnProperty(ni)||ii.push(ni),Ht[ni]=pe[ni]}),ii.length)for(var xt=1;xt<re.length;xt++){let ni=re[xt];ii.forEach(function(Ci){ni[Ci]=en(Ct,Ci)})}}return re}(re,pe=pe.map(wn=>ft(wn,!1)),Pi);const cn=function ji(Ct,re){let pe=null,Ge=null;return Array.isArray(re)&&re.length?(pe=Be(re[0]),re.length>1&&(Ge=Be(re[re.length-1]))):re&&(pe=Be(re)),pe||Ge?new Ke(Ct,pe,Ge):null}(re,pe);return new Lt(re,pe,Ci,cn)}}var $i=p(9808);let Nn=(()=>{class Ct extends u._j{constructor(pe,Ge){super(),this._nextAnimationId=0,this._renderer=pe.createRenderer(Ge.body,{id:"0",encapsulation:e.ifc.None,styles:[],data:{animation:[]}})}build(pe){const Ge=this._nextAnimationId.toString();this._nextAnimationId++;const xt=Array.isArray(pe)?(0,u.vP)(pe):pe;return Jr(this._renderer,null,Ge,"register",[xt]),new Sr(Ge,this._renderer)}}return Ct.\u0275fac=function(pe){return new(pe||Ct)(e.LFG(e.FYo),e.LFG($i.K0))},Ct.\u0275prov=e.Yz7({token:Ct,factory:Ct.\u0275fac}),Ct})();class Sr extends u.LC{constructor(re,pe){super(),this._id=re,this._renderer=pe}create(re,pe){return new Ca(this._id,re,pe||{},this._renderer)}}class Ca{constructor(re,pe,Ge,xt){this.id=re,this.element=pe,this._renderer=xt,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",Ge)}_listen(re,pe){return this._renderer.listen(this.element,`@@${this.id}:${re}`,pe)}_command(re,...pe){return Jr(this._renderer,this.element,this.id,re,pe)}onDone(re){this._listen("done",re)}onStart(re){this._listen("start",re)}onDestroy(re){this._listen("destroy",re)}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(re){this._command("setPosition",re)}getPosition(){var re,pe;return null!==(pe=null===(re=this._renderer.engine.players[+this.id])||void 0===re?void 0:re.getPosition())&&void 0!==pe?pe:0}}function Jr(Ct,re,pe,Ge,xt){return Ct.setProperty(re,`@@${pe}:${Ge}`,xt)}const Hi="@.disabled";let Vn=(()=>{class Ct{constructor(pe,Ge,xt){this.delegate=pe,this.engine=Ge,this._zone=xt,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),Ge.onRemovalComplete=(Ht,ii)=>{const ni=null==ii?void 0:ii.parentNode(Ht);ni&&ii.removeChild(ni,Ht)}}createRenderer(pe,Ge){const Ht=this.delegate.createRenderer(pe,Ge);if(!(pe&&Ge&&Ge.data&&Ge.data.animation)){let tn=this._rendererCache.get(Ht);return tn||(tn=new ms("",Ht,this.engine),this._rendererCache.set(Ht,tn)),tn}const ii=Ge.id,ni=Ge.id+"-"+this._currentId;this._currentId++,this.engine.register(ni,pe);const Ci=tn=>{Array.isArray(tn)?tn.forEach(Ci):this.engine.registerTrigger(ii,ni,pe,tn.name,tn)};return Ge.data.animation.forEach(Ci),new Cr(this,ni,Ht,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(pe,Ge,xt){pe>=0&&pe<this._microtaskId?this._zone.run(()=>Ge(xt)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(Ht=>{const[ii,ni]=Ht;ii(ni)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([Ge,xt]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return Ct.\u0275fac=function(pe){return new(pe||Ct)(e.LFG(e.FYo),e.LFG(Ai),e.LFG(e.R0b))},Ct.\u0275prov=e.Yz7({token:Ct,factory:Ct.\u0275fac}),Ct})();class ms{constructor(re,pe,Ge){this.namespaceId=re,this.delegate=pe,this.engine=Ge,this.destroyNode=this.delegate.destroyNode?xt=>pe.destroyNode(xt):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(re,pe){return this.delegate.createElement(re,pe)}createComment(re){return this.delegate.createComment(re)}createText(re){return this.delegate.createText(re)}appendChild(re,pe){this.delegate.appendChild(re,pe),this.engine.onInsert(this.namespaceId,pe,re,!1)}insertBefore(re,pe,Ge,xt=!0){this.delegate.insertBefore(re,pe,Ge),this.engine.onInsert(this.namespaceId,pe,re,xt)}removeChild(re,pe,Ge){this.engine.onRemove(this.namespaceId,pe,this.delegate,Ge)}selectRootElement(re,pe){return this.delegate.selectRootElement(re,pe)}parentNode(re){return this.delegate.parentNode(re)}nextSibling(re){return this.delegate.nextSibling(re)}setAttribute(re,pe,Ge,xt){this.delegate.setAttribute(re,pe,Ge,xt)}removeAttribute(re,pe,Ge){this.delegate.removeAttribute(re,pe,Ge)}addClass(re,pe){this.delegate.addClass(re,pe)}removeClass(re,pe){this.delegate.removeClass(re,pe)}setStyle(re,pe,Ge,xt){this.delegate.setStyle(re,pe,Ge,xt)}removeStyle(re,pe,Ge){this.delegate.removeStyle(re,pe,Ge)}setProperty(re,pe,Ge){"@"==pe.charAt(0)&&pe==Hi?this.disableAnimations(re,!!Ge):this.delegate.setProperty(re,pe,Ge)}setValue(re,pe){this.delegate.setValue(re,pe)}listen(re,pe,Ge){return this.delegate.listen(re,pe,Ge)}disableAnimations(re,pe){this.engine.disableAnimations(re,pe)}}class Cr extends ms{constructor(re,pe,Ge,xt){super(pe,Ge,xt),this.factory=re,this.namespaceId=pe}setProperty(re,pe,Ge){"@"==pe.charAt(0)?"."==pe.charAt(1)&&pe==Hi?this.disableAnimations(re,Ge=void 0===Ge||!!Ge):this.engine.process(this.namespaceId,re,pe.substr(1),Ge):this.delegate.setProperty(re,pe,Ge)}listen(re,pe,Ge){if("@"==pe.charAt(0)){const xt=function ss(Ct){switch(Ct){case"body":return document.body;case"document":return document;case"window":return window;default:return Ct}}(re);let Ht=pe.substr(1),ii="";return"@"!=Ht.charAt(0)&&([Ht,ii]=function Da(Ct){const re=Ct.indexOf(".");return[Ct.substring(0,re),Ct.substr(re+1)]}(Ht)),this.engine.listen(this.namespaceId,xt,Ht,ii,ni=>{this.factory.scheduleListenerCallback(ni._data||-1,Ge,ni)})}return this.delegate.listen(re,pe,Ge)}}let cr=(()=>{class Ct extends Ai{constructor(pe,Ge,xt){super(pe.body,Ge,xt)}ngOnDestroy(){this.flush()}}return Ct.\u0275fac=function(pe){return new(pe||Ct)(e.LFG($i.K0),e.LFG(hi),e.LFG(rr))},Ct.\u0275prov=e.Yz7({token:Ct,factory:Ct.\u0275fac}),Ct})();const Ia=new e.OlP("AnimationModuleType"),_s=[{provide:u._j,useClass:Nn},{provide:rr,useFactory:function gs(){return new na}},{provide:Ai,useClass:cr},{provide:e.FYo,useFactory:function Cs(Ct,re,pe){return new Vn(Ct,re,pe)},deps:[i.se,Ai,e.R0b]}],os=[{provide:hi,useFactory:()=>new vi},{provide:Ia,useValue:"BrowserAnimations"},..._s],is=[{provide:hi,useClass:Tt},{provide:Ia,useValue:"NoopAnimations"},..._s];let Vr=(()=>{class Ct{static withConfig(pe){return{ngModule:Ct,providers:pe.disableAnimations?is:os}}}return Ct.\u0275fac=function(pe){return new(pe||Ct)},Ct.\u0275mod=e.oAB({type:Ct}),Ct.\u0275inj=e.cJS({providers:os,imports:[i.b2]}),Ct})()},2313:(He,j,p)=>{"use strict";p.d(j,{H7:()=>et,b2:()=>ot,q6:()=>Z,se:()=>c,t6:()=>Rt});var e=p(9808),i=p(5e3);class u extends e.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class b extends u{static makeCurrent(){(0,e.HT)(new b)}onAndCancel(Fe,rt,at){return Fe.addEventListener(rt,at,!1),()=>{Fe.removeEventListener(rt,at,!1)}}dispatchEvent(Fe,rt){Fe.dispatchEvent(rt)}remove(Fe){Fe.parentNode&&Fe.parentNode.removeChild(Fe)}createElement(Fe,rt){return(rt=rt||this.getDefaultDocument()).createElement(Fe)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(Fe){return Fe.nodeType===Node.ELEMENT_NODE}isShadowRoot(Fe){return Fe instanceof DocumentFragment}getGlobalEventTarget(Fe,rt){return"window"===rt?window:"document"===rt?Fe:"body"===rt?Fe.body:null}getBaseHref(Fe){const rt=function y(){return a=a||document.querySelector("base"),a?a.getAttribute("href"):null}();return null==rt?null:function P(we){d=d||document.createElement("a"),d.setAttribute("href",we);const Fe=d.pathname;return"/"===Fe.charAt(0)?Fe:`/${Fe}`}(rt)}resetBaseElement(){a=null}getUserAgent(){return window.navigator.userAgent}getCookie(Fe){return(0,e.Mx)(document.cookie,Fe)}}let d,a=null;const D=new i.OlP("TRANSITION_ID"),M=[{provide:i.ip1,useFactory:function T(we,Fe,rt){return()=>{rt.get(i.CZH).donePromise.then(()=>{const at=(0,e.q)(),yt=Fe.querySelectorAll(`style[ng-transition="${we}"]`);for(let mi=0;mi<yt.length;mi++)at.remove(yt[mi])})}},deps:[D,e.K0,i.zs3],multi:!0}];class A{static init(){(0,i.VLi)(new A)}addToWindow(Fe){i.dqk.getAngularTestability=(at,yt=!0)=>{const mi=Fe.findTestabilityInTree(at,yt);if(null==mi)throw new Error("Could not find testability for element.");return mi},i.dqk.getAllAngularTestabilities=()=>Fe.getAllTestabilities(),i.dqk.getAllAngularRootElements=()=>Fe.getAllRootElements(),i.dqk.frameworkStabilizers||(i.dqk.frameworkStabilizers=[]),i.dqk.frameworkStabilizers.push(at=>{const yt=i.dqk.getAllAngularTestabilities();let mi=yt.length,Xt=!1;const Jt=function(qi){Xt=Xt||qi,mi--,0==mi&&at(Xt)};yt.forEach(function(qi){qi.whenStable(Jt)})})}findTestabilityInTree(Fe,rt,at){if(null==rt)return null;const yt=Fe.getTestability(rt);return null!=yt?yt:at?(0,e.q)().isShadowRoot(rt)?this.findTestabilityInTree(Fe,rt.host,!0):this.findTestabilityInTree(Fe,rt.parentElement,!0):null}}let E=(()=>{class we{build(){return new XMLHttpRequest}}return we.\u0275fac=function(rt){return new(rt||we)},we.\u0275prov=i.Yz7({token:we,factory:we.\u0275fac}),we})();const k=new i.OlP("EventManagerPlugins");let w=(()=>{class we{constructor(rt,at){this._zone=at,this._eventNameToPlugin=new Map,rt.forEach(yt=>yt.manager=this),this._plugins=rt.slice().reverse()}addEventListener(rt,at,yt){return this._findPluginFor(at).addEventListener(rt,at,yt)}addGlobalEventListener(rt,at,yt){return this._findPluginFor(at).addGlobalEventListener(rt,at,yt)}getZone(){return this._zone}_findPluginFor(rt){const at=this._eventNameToPlugin.get(rt);if(at)return at;const yt=this._plugins;for(let mi=0;mi<yt.length;mi++){const Xt=yt[mi];if(Xt.supports(rt))return this._eventNameToPlugin.set(rt,Xt),Xt}throw new Error(`No event manager plugin found for event ${rt}`)}}return we.\u0275fac=function(rt){return new(rt||we)(i.LFG(k),i.LFG(i.R0b))},we.\u0275prov=i.Yz7({token:we,factory:we.\u0275fac}),we})();class z{constructor(Fe){this._doc=Fe}addGlobalEventListener(Fe,rt,at){const yt=(0,e.q)().getGlobalEventTarget(this._doc,Fe);if(!yt)throw new Error(`Unsupported event target ${yt} for event ${rt}`);return this.addEventListener(yt,rt,at)}}let U=(()=>{class we{constructor(){this._stylesSet=new Set}addStyles(rt){const at=new Set;rt.forEach(yt=>{this._stylesSet.has(yt)||(this._stylesSet.add(yt),at.add(yt))}),this.onStylesAdded(at)}onStylesAdded(rt){}getAllStyles(){return Array.from(this._stylesSet)}}return we.\u0275fac=function(rt){return new(rt||we)},we.\u0275prov=i.Yz7({token:we,factory:we.\u0275fac}),we})(),W=(()=>{class we extends U{constructor(rt){super(),this._doc=rt,this._hostNodes=new Map,this._hostNodes.set(rt.head,[])}_addStylesToHost(rt,at,yt){rt.forEach(mi=>{const Xt=this._doc.createElement("style");Xt.textContent=mi,yt.push(at.appendChild(Xt))})}addHost(rt){const at=[];this._addStylesToHost(this._stylesSet,rt,at),this._hostNodes.set(rt,at)}removeHost(rt){const at=this._hostNodes.get(rt);at&&at.forEach(ne),this._hostNodes.delete(rt)}onStylesAdded(rt){this._hostNodes.forEach((at,yt)=>{this._addStylesToHost(rt,yt,at)})}ngOnDestroy(){this._hostNodes.forEach(rt=>rt.forEach(ne))}}return we.\u0275fac=function(rt){return new(rt||we)(i.LFG(e.K0))},we.\u0275prov=i.Yz7({token:we,factory:we.\u0275fac}),we})();function ne(we){(0,e.q)().remove(we)}const Q={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/"},le=/%COMP%/g;function t(we,Fe,rt){for(let at=0;at<Fe.length;at++){let yt=Fe[at];Array.isArray(yt)?t(we,yt,rt):(yt=yt.replace(le,we),rt.push(yt))}return rt}function r(we){return Fe=>{if("__ngUnwrap__"===Fe)return we;!1===we(Fe)&&(Fe.preventDefault(),Fe.returnValue=!1)}}let c=(()=>{class we{constructor(rt,at,yt){this.eventManager=rt,this.sharedStylesHost=at,this.appId=yt,this.rendererByCompId=new Map,this.defaultRenderer=new C(rt)}createRenderer(rt,at){if(!rt||!at)return this.defaultRenderer;switch(at.encapsulation){case i.ifc.Emulated:{let yt=this.rendererByCompId.get(at.id);return yt||(yt=new _(this.eventManager,this.sharedStylesHost,at,this.appId),this.rendererByCompId.set(at.id,yt)),yt.applyToHost(rt),yt}case 1:case i.ifc.ShadowDom:return new n(this.eventManager,this.sharedStylesHost,rt,at);default:if(!this.rendererByCompId.has(at.id)){const yt=t(at.id,at.styles,[]);this.sharedStylesHost.addStyles(yt),this.rendererByCompId.set(at.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return we.\u0275fac=function(rt){return new(rt||we)(i.LFG(w),i.LFG(W),i.LFG(i.AFp))},we.\u0275prov=i.Yz7({token:we,factory:we.\u0275fac}),we})();class C{constructor(Fe){this.eventManager=Fe,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(Fe,rt){return rt?document.createElementNS(Q[rt]||rt,Fe):document.createElement(Fe)}createComment(Fe){return document.createComment(Fe)}createText(Fe){return document.createTextNode(Fe)}appendChild(Fe,rt){Fe.appendChild(rt)}insertBefore(Fe,rt,at){Fe&&Fe.insertBefore(rt,at)}removeChild(Fe,rt){Fe&&Fe.removeChild(rt)}selectRootElement(Fe,rt){let at="string"==typeof Fe?document.querySelector(Fe):Fe;if(!at)throw new Error(`The selector "${Fe}" did not match any elements`);return rt||(at.textContent=""),at}parentNode(Fe){return Fe.parentNode}nextSibling(Fe){return Fe.nextSibling}setAttribute(Fe,rt,at,yt){if(yt){rt=yt+":"+rt;const mi=Q[yt];mi?Fe.setAttributeNS(mi,rt,at):Fe.setAttribute(rt,at)}else Fe.setAttribute(rt,at)}removeAttribute(Fe,rt,at){if(at){const yt=Q[at];yt?Fe.removeAttributeNS(yt,rt):Fe.removeAttribute(`${at}:${rt}`)}else Fe.removeAttribute(rt)}addClass(Fe,rt){Fe.classList.add(rt)}removeClass(Fe,rt){Fe.classList.remove(rt)}setStyle(Fe,rt,at,yt){yt&(i.JOm.DashCase|i.JOm.Important)?Fe.style.setProperty(rt,at,yt&i.JOm.Important?"important":""):Fe.style[rt]=at}removeStyle(Fe,rt,at){at&i.JOm.DashCase?Fe.style.removeProperty(rt):Fe.style[rt]=""}setProperty(Fe,rt,at){Fe[rt]=at}setValue(Fe,rt){Fe.nodeValue=rt}listen(Fe,rt,at){return"string"==typeof Fe?this.eventManager.addGlobalEventListener(Fe,rt,r(at)):this.eventManager.addEventListener(Fe,rt,r(at))}}class _ extends C{constructor(Fe,rt,at,yt){super(Fe),this.component=at;const mi=t(yt+"-"+at.id,at.styles,[]);rt.addStyles(mi),this.contentAttr=function me(we){return"_ngcontent-%COMP%".replace(le,we)}(yt+"-"+at.id),this.hostAttr=function x(we){return"_nghost-%COMP%".replace(le,we)}(yt+"-"+at.id)}applyToHost(Fe){super.setAttribute(Fe,this.hostAttr,"")}createElement(Fe,rt){const at=super.createElement(Fe,rt);return super.setAttribute(at,this.contentAttr,""),at}}class n extends C{constructor(Fe,rt,at,yt){super(Fe),this.sharedStylesHost=rt,this.hostEl=at,this.shadowRoot=at.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const mi=t(yt.id,yt.styles,[]);for(let Xt=0;Xt<mi.length;Xt++){const Jt=document.createElement("style");Jt.textContent=mi[Xt],this.shadowRoot.appendChild(Jt)}}nodeOrShadowRoot(Fe){return Fe===this.hostEl?this.shadowRoot:Fe}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(Fe,rt){return super.appendChild(this.nodeOrShadowRoot(Fe),rt)}insertBefore(Fe,rt,at){return super.insertBefore(this.nodeOrShadowRoot(Fe),rt,at)}removeChild(Fe,rt){return super.removeChild(this.nodeOrShadowRoot(Fe),rt)}parentNode(Fe){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(Fe)))}}let g=(()=>{class we extends z{constructor(rt){super(rt)}supports(rt){return!0}addEventListener(rt,at,yt){return rt.addEventListener(at,yt,!1),()=>this.removeEventListener(rt,at,yt)}removeEventListener(rt,at,yt){return rt.removeEventListener(at,yt)}}return we.\u0275fac=function(rt){return new(rt||we)(i.LFG(e.K0))},we.\u0275prov=i.Yz7({token:we,factory:we.\u0275fac}),we})();const V=["alt","control","meta","shift"],H={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},$={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},fe={alt:we=>we.altKey,control:we=>we.ctrlKey,meta:we=>we.metaKey,shift:we=>we.shiftKey};let ye=(()=>{class we extends z{constructor(rt){super(rt)}supports(rt){return null!=we.parseEventName(rt)}addEventListener(rt,at,yt){const mi=we.parseEventName(at),Xt=we.eventCallback(mi.fullKey,yt,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,e.q)().onAndCancel(rt,mi.domEventName,Xt))}static parseEventName(rt){const at=rt.toLowerCase().split("."),yt=at.shift();if(0===at.length||"keydown"!==yt&&"keyup"!==yt)return null;const mi=we._normalizeKey(at.pop());let Xt="";if(V.forEach(qi=>{const ui=at.indexOf(qi);ui>-1&&(at.splice(ui,1),Xt+=qi+".")}),Xt+=mi,0!=at.length||0===mi.length)return null;const Jt={};return Jt.domEventName=yt,Jt.fullKey=Xt,Jt}static getEventFullKey(rt){let at="",yt=function ke(we){let Fe=we.key;if(null==Fe){if(Fe=we.keyIdentifier,null==Fe)return"Unidentified";Fe.startsWith("U+")&&(Fe=String.fromCharCode(parseInt(Fe.substring(2),16)),3===we.location&&$.hasOwnProperty(Fe)&&(Fe=$[Fe]))}return H[Fe]||Fe}(rt);return yt=yt.toLowerCase()," "===yt?yt="space":"."===yt&&(yt="dot"),V.forEach(mi=>{mi!=yt&&fe[mi](rt)&&(at+=mi+".")}),at+=yt,at}static eventCallback(rt,at,yt){return mi=>{we.getEventFullKey(mi)===rt&&yt.runGuarded(()=>at(mi))}}static _normalizeKey(rt){return"esc"===rt?"escape":rt}}return we.\u0275fac=function(rt){return new(rt||we)(i.LFG(e.K0))},we.\u0275prov=i.Yz7({token:we,factory:we.\u0275fac}),we})();const Z=(0,i.eFA)(i._c5,"browser",[{provide:i.Lbi,useValue:e.bD},{provide:i.g9A,useValue:function Ee(){b.makeCurrent(),A.init()},multi:!0},{provide:e.K0,useFactory:function ze(){return(0,i.RDi)(document),document},deps:[]}]),Y=[{provide:i.zSh,useValue:"root"},{provide:i.qLn,useFactory:function te(){return new i.qLn},deps:[]},{provide:k,useClass:g,multi:!0,deps:[e.K0,i.R0b,i.Lbi]},{provide:k,useClass:ye,multi:!0,deps:[e.K0]},{provide:c,useClass:c,deps:[w,W,i.AFp]},{provide:i.FYo,useExisting:c},{provide:U,useExisting:W},{provide:W,useClass:W,deps:[e.K0]},{provide:i.dDg,useClass:i.dDg,deps:[i.R0b]},{provide:w,useClass:w,deps:[k,i.R0b]},{provide:e.JF,useClass:E,deps:[]}];let ot=(()=>{class we{constructor(rt){if(rt)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(rt){return{ngModule:we,providers:[{provide:i.AFp,useValue:rt.appId},{provide:D,useExisting:i.AFp},M]}}}return we.\u0275fac=function(rt){return new(rt||we)(i.LFG(we,12))},we.\u0275mod=i.oAB({type:we}),we.\u0275inj=i.cJS({providers:Y,imports:[e.ez,i.hGG]}),we})();"undefined"!=typeof window&&window;const De={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},oe=new i.OlP("HammerGestureConfig"),Me=new i.OlP("HammerLoader");let ut=(()=>{class we{constructor(){this.events=[],this.overrides={}}buildHammer(rt){const at=new Hammer(rt,this.options);at.get("pinch").set({enable:!0}),at.get("rotate").set({enable:!0});for(const yt in this.overrides)at.get(yt).set(this.overrides[yt]);return at}}return we.\u0275fac=function(rt){return new(rt||we)},we.\u0275prov=i.Yz7({token:we,factory:we.\u0275fac}),we})(),ft=(()=>{class we extends z{constructor(rt,at,yt,mi){super(rt),this._config=at,this.console=yt,this.loader=mi,this._loaderPromise=null}supports(rt){return!(!De.hasOwnProperty(rt.toLowerCase())&&!this.isCustomEvent(rt)||!window.Hammer&&!this.loader)}addEventListener(rt,at,yt){const mi=this.manager.getZone();if(at=at.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||this.loader();let Xt=!1,Jt=()=>{Xt=!0};return this._loaderPromise.then(()=>{window.Hammer?Xt||(Jt=this.addEventListener(rt,at,yt)):Jt=()=>{}}).catch(()=>{Jt=()=>{}}),()=>{Jt()}}return mi.runOutsideAngular(()=>{const Xt=this._config.buildHammer(rt),Jt=function(qi){mi.runGuarded(function(){yt(qi)})};return Xt.on(at,Jt),()=>{Xt.off(at,Jt),"function"==typeof Xt.destroy&&Xt.destroy()}})}isCustomEvent(rt){return this._config.events.indexOf(rt)>-1}}return we.\u0275fac=function(rt){return new(rt||we)(i.LFG(e.K0),i.LFG(oe),i.LFG(i.c2e),i.LFG(Me,8))},we.\u0275prov=i.Yz7({token:we,factory:we.\u0275fac}),we})(),Rt=(()=>{class we{}return we.\u0275fac=function(rt){return new(rt||we)},we.\u0275mod=i.oAB({type:we}),we.\u0275inj=i.cJS({providers:[{provide:k,useClass:ft,multi:!0,deps:[e.K0,oe,i.c2e,[new i.FiY,Me]]},{provide:oe,useClass:ut,deps:[]}]}),we})(),et=(()=>{class we{}return we.\u0275fac=function(rt){return new(rt||we)},we.\u0275prov=i.Yz7({token:we,factory:function(rt){let at=null;return at=rt?new(rt||we):i.LFG(qe),at},providedIn:"root"}),we})(),qe=(()=>{class we extends et{constructor(rt){super(),this._doc=rt}sanitize(rt,at){if(null==at)return null;switch(rt){case i.q3G.NONE:return at;case i.q3G.HTML:return(0,i.qzn)(at,"HTML")?(0,i.z3N)(at):(0,i.EiD)(this._doc,String(at)).toString();case i.q3G.STYLE:return(0,i.qzn)(at,"Style")?(0,i.z3N)(at):at;case i.q3G.SCRIPT:if((0,i.qzn)(at,"Script"))return(0,i.z3N)(at);throw new Error("unsafe value used in a script context");case i.q3G.URL:return(0,i.yhl)(at),(0,i.qzn)(at,"URL")?(0,i.z3N)(at):(0,i.mCW)(String(at));case i.q3G.RESOURCE_URL:if((0,i.qzn)(at,"ResourceURL"))return(0,i.z3N)(at);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${rt} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(rt){return(0,i.JVY)(rt)}bypassSecurityTrustStyle(rt){return(0,i.L6k)(rt)}bypassSecurityTrustScript(rt){return(0,i.eBb)(rt)}bypassSecurityTrustUrl(rt){return(0,i.LAX)(rt)}bypassSecurityTrustResourceUrl(rt){return(0,i.pB0)(rt)}}return we.\u0275fac=function(rt){return new(rt||we)(i.LFG(e.K0))},we.\u0275prov=i.Yz7({token:we,factory:function(rt){let at=null;return at=rt?new rt:function Re(we){return new qe(we.get(e.K0))}(i.LFG(i.zs3)),at},providedIn:"root"}),we})()},1402:(He,j,p)=>{"use strict";p.d(j,{gz:()=>Wi,gk:()=>H,m2:()=>R,Q3:()=>$,OD:()=>V,Av:()=>te,F0:()=>ur,rH:()=>Et,Od:()=>qt,yS:()=>St,Bz:()=>_a,lC:()=>gr});var e=p(5e3),i=p(8306),u=p(727),b=p(4482),a=p(5403);function y(){return(0,b.e)((Ce,ge)=>{let he=null;Ce._refCount++;const Ue=(0,a.x)(ge,void 0,void 0,void 0,()=>{if(!Ce||Ce._refCount<=0||0<--Ce._refCount)return void(he=null);const nt=Ce._connection,Dt=he;he=null,nt&&(!Dt||nt===Dt)&&nt.unsubscribe(),ge.unsubscribe()});Ce.subscribe(Ue),Ue.closed||(he=Ce.connect())})}class d extends i.y{constructor(ge,he){super(),this.source=ge,this.subjectFactory=he,this._subject=null,this._refCount=0,this._connection=null,(0,b.A)(ge)&&(this.lift=ge.lift)}_subscribe(ge){return this.getSubject().subscribe(ge)}getSubject(){const ge=this._subject;return(!ge||ge.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:ge}=this;this._subject=this._connection=null,null==ge||ge.unsubscribe()}connect(){let ge=this._connection;if(!ge){ge=this._connection=new u.w0;const he=this.getSubject();ge.add(this.source.subscribe((0,a.x)(he,void 0,()=>{this._teardown(),he.complete()},Ue=>{this._teardown(),he.error(Ue)},()=>this._teardown()))),ge.closed&&(this._connection=null,ge=u.w0.EMPTY)}return ge}refCount(){return y()(this)}}var P=p(457),D=p(9646),T=p(1135),M=p(9841),A=p(2843),E=p(6805),k=p(7272),w=p(9770),z=p(515),U=p(7579),W=p(9300);function ne(Ce){return Ce<=0?()=>z.E:(0,b.e)((ge,he)=>{let Ue=[];ge.subscribe((0,a.x)(he,nt=>{Ue.push(nt),Ce<Ue.length&&Ue.shift()},()=>{for(const nt of Ue)he.next(nt);he.complete()},void 0,()=>{Ue=null}))})}var Q=p(8068),le=p(6590),q=p(4671),se=p(4004),J=p(3900),me=p(5698),x=p(8675),t=p(5026),r=p(262),h=p(4351),c=p(590),C=p(5577),S=p(8505),I=p(8746),_=p(8189),n=p(9808);class g{constructor(ge,he){this.id=ge,this.url=he}}class V extends g{constructor(ge,he,Ue="imperative",nt=null){super(ge,he),this.navigationTrigger=Ue,this.restoredState=nt}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class R extends g{constructor(ge,he,Ue){super(ge,he),this.urlAfterRedirects=Ue}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class H extends g{constructor(ge,he,Ue){super(ge,he),this.reason=Ue}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class $ extends g{constructor(ge,he,Ue){super(ge,he),this.error=Ue}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class fe extends g{constructor(ge,he,Ue,nt){super(ge,he),this.urlAfterRedirects=Ue,this.state=nt}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ye extends g{constructor(ge,he,Ue,nt){super(ge,he),this.urlAfterRedirects=Ue,this.state=nt}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ke extends g{constructor(ge,he,Ue,nt,Dt){super(ge,he),this.urlAfterRedirects=Ue,this.state=nt,this.shouldActivate=Dt}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Ee extends g{constructor(ge,he,Ue,nt){super(ge,he),this.urlAfterRedirects=Ue,this.state=nt}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class te extends g{constructor(ge,he,Ue,nt){super(ge,he),this.urlAfterRedirects=Ue,this.state=nt}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ze{constructor(ge){this.route=ge}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class be{constructor(ge){this.route=ge}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Z{constructor(ge){this.snapshot=ge}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Y{constructor(ge){this.snapshot=ge}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ot{constructor(ge){this.snapshot=ge}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ie{constructor(ge){this.snapshot=ge}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ae{constructor(ge,he,Ue){this.routerEvent=ge,this.position=he,this.anchor=Ue}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const ce="primary";class Te{constructor(ge){this.params=ge||{}}has(ge){return Object.prototype.hasOwnProperty.call(this.params,ge)}get(ge){if(this.has(ge)){const he=this.params[ge];return Array.isArray(he)?he[0]:he}return null}getAll(ge){if(this.has(ge)){const he=this.params[ge];return Array.isArray(he)?he:[he]}return[]}get keys(){return Object.keys(this.params)}}function xe(Ce){return new Te(Ce)}const G="ngNavigationCancelingError";function ee(Ce){const ge=Error("NavigationCancelingError: "+Ce);return ge[G]=!0,ge}function ve(Ce,ge,he){const Ue=he.path.split("/");if(Ue.length>Ce.length||"full"===he.pathMatch&&(ge.hasChildren()||Ue.length<Ce.length))return null;const nt={};for(let Dt=0;Dt<Ue.length;Dt++){const Qt=Ue[Dt],ai=Ce[Dt];if(Qt.startsWith(":"))nt[Qt.substring(1)]=ai;else if(Qt!==ai.path)return null}return{consumed:Ce.slice(0,Ue.length),posParams:nt}}function lt(Ce,ge){const he=Ce?Object.keys(Ce):void 0,Ue=ge?Object.keys(ge):void 0;if(!he||!Ue||he.length!=Ue.length)return!1;let nt;for(let Dt=0;Dt<he.length;Dt++)if(nt=he[Dt],!ht(Ce[nt],ge[nt]))return!1;return!0}function ht(Ce,ge){if(Array.isArray(Ce)&&Array.isArray(ge)){if(Ce.length!==ge.length)return!1;const he=[...Ce].sort(),Ue=[...ge].sort();return he.every((nt,Dt)=>Ue[Dt]===nt)}return Ce===ge}function Tt(Ce){return Array.prototype.concat.apply([],Ce)}function hi(Ce){return Ce.length>0?Ce[Ce.length-1]:null}function Gt(Ce,ge){for(const he in Ce)Ce.hasOwnProperty(he)&&ge(Ce[he],he)}function di(Ce){return(0,e.CqO)(Ce)?Ce:(0,e.QGY)(Ce)?(0,P.D)(Promise.resolve(Ce)):(0,D.of)(Ce)}const kt={exact:function ei(Ce,ge,he){if(!et(Ce.segments,ge.segments)||!oe(Ce.segments,ge.segments,he)||Ce.numberOfChildren!==ge.numberOfChildren)return!1;for(const Ue in ge.children)if(!Ce.children[Ue]||!ei(Ce.children[Ue],ge.children[Ue],he))return!1;return!0},subset:Pe},gt={exact:function _t(Ce,ge){return lt(Ce,ge)},subset:function Zt(Ce,ge){return Object.keys(ge).length<=Object.keys(Ce).length&&Object.keys(ge).every(he=>ht(Ce[he],ge[he]))},ignored:()=>!0};function Qe(Ce,ge,he){return kt[he.paths](Ce.root,ge.root,he.matrixParams)&&gt[he.queryParams](Ce.queryParams,ge.queryParams)&&!("exact"===he.fragment&&Ce.fragment!==ge.fragment)}function Pe(Ce,ge,he){return De(Ce,ge,ge.segments,he)}function De(Ce,ge,he,Ue){if(Ce.segments.length>he.length){const nt=Ce.segments.slice(0,he.length);return!(!et(nt,he)||ge.hasChildren()||!oe(nt,he,Ue))}if(Ce.segments.length===he.length){if(!et(Ce.segments,he)||!oe(Ce.segments,he,Ue))return!1;for(const nt in ge.children)if(!Ce.children[nt]||!Pe(Ce.children[nt],ge.children[nt],Ue))return!1;return!0}{const nt=he.slice(0,Ce.segments.length),Dt=he.slice(Ce.segments.length);return!!(et(Ce.segments,nt)&&oe(Ce.segments,nt,Ue)&&Ce.children[ce])&&De(Ce.children[ce],ge,Dt,Ue)}}function oe(Ce,ge,he){return ge.every((Ue,nt)=>gt[he](Ce[nt].parameters,Ue.parameters))}class Me{constructor(ge,he,Ue){this.root=ge,this.queryParams=he,this.fragment=Ue}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=xe(this.queryParams)),this._queryParamMap}toString(){return we.serialize(this)}}class ut{constructor(ge,he){this.segments=ge,this.children=he,this.parent=null,Gt(he,(Ue,nt)=>Ue.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Fe(this)}}class ft{constructor(ge,he){this.path=ge,this.parameters=he}get parameterMap(){return this._parameterMap||(this._parameterMap=xe(this.parameters)),this._parameterMap}toString(){return ui(this)}}function et(Ce,ge){return Ce.length===ge.length&&Ce.every((he,Ue)=>he.path===ge[Ue].path)}class qe{}class Ze{parse(ge){const he=new it(ge);return new Me(he.parseRootSegment(),he.parseQueryParams(),he.parseFragment())}serialize(ge){const he=`/${rt(ge.root,!0)}`,Ue=function en(Ce){const ge=Object.keys(Ce).map(he=>{const Ue=Ce[he];return Array.isArray(Ue)?Ue.map(nt=>`${yt(he)}=${yt(nt)}`).join("&"):`${yt(he)}=${yt(Ue)}`}).filter(he=>!!he);return ge.length?`?${ge.join("&")}`:""}(ge.queryParams);return`${he}${Ue}${"string"==typeof ge.fragment?`#${function mi(Ce){return encodeURI(Ce)}(ge.fragment)}`:""}`}}const we=new Ze;function Fe(Ce){return Ce.segments.map(ge=>ui(ge)).join("/")}function rt(Ce,ge){if(!Ce.hasChildren())return Fe(Ce);if(ge){const he=Ce.children[ce]?rt(Ce.children[ce],!1):"",Ue=[];return Gt(Ce.children,(nt,Dt)=>{Dt!==ce&&Ue.push(`${Dt}:${rt(nt,!1)}`)}),Ue.length>0?`${he}(${Ue.join("//")})`:he}{const he=function Re(Ce,ge){let he=[];return Gt(Ce.children,(Ue,nt)=>{nt===ce&&(he=he.concat(ge(Ue,nt)))}),Gt(Ce.children,(Ue,nt)=>{nt!==ce&&(he=he.concat(ge(Ue,nt)))}),he}(Ce,(Ue,nt)=>nt===ce?[rt(Ce.children[ce],!1)]:[`${nt}:${rt(Ue,!1)}`]);return 1===Object.keys(Ce.children).length&&null!=Ce.children[ce]?`${Fe(Ce)}/${he[0]}`:`${Fe(Ce)}/(${he.join("//")})`}}function at(Ce){return encodeURIComponent(Ce).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function yt(Ce){return at(Ce).replace(/%3B/gi,";")}function Xt(Ce){return at(Ce).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Jt(Ce){return decodeURIComponent(Ce)}function qi(Ce){return Jt(Ce.replace(/\+/g,"%20"))}function ui(Ce){return`${Xt(Ce.path)}${function si(Ce){return Object.keys(Ce).map(ge=>`;${Xt(ge)}=${Xt(Ce[ge])}`).join("")}(Ce.parameters)}`}const Ui=/^[^\/()?;=#]+/;function Bi(Ce){const ge=Ce.match(Ui);return ge?ge[0]:""}const Gi=/^[^=?&#]+/,Ft=/^[^&#]+/;class it{constructor(ge){this.url=ge,this.remaining=ge}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ut([],{}):new ut([],this.parseChildren())}parseQueryParams(){const ge={};if(this.consumeOptional("?"))do{this.parseQueryParam(ge)}while(this.consumeOptional("&"));return ge}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const ge=[];for(this.peekStartsWith("(")||ge.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),ge.push(this.parseSegment());let he={};this.peekStartsWith("/(")&&(this.capture("/"),he=this.parseParens(!0));let Ue={};return this.peekStartsWith("(")&&(Ue=this.parseParens(!1)),(ge.length>0||Object.keys(he).length>0)&&(Ue[ce]=new ut(ge,he)),Ue}parseSegment(){const ge=Bi(this.remaining);if(""===ge&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(ge),new ft(Jt(ge),this.parseMatrixParams())}parseMatrixParams(){const ge={};for(;this.consumeOptional(";");)this.parseParam(ge);return ge}parseParam(ge){const he=Bi(this.remaining);if(!he)return;this.capture(he);let Ue="";if(this.consumeOptional("=")){const nt=Bi(this.remaining);nt&&(Ue=nt,this.capture(Ue))}ge[Jt(he)]=Jt(Ue)}parseQueryParam(ge){const he=function ct(Ce){const ge=Ce.match(Gi);return ge?ge[0]:""}(this.remaining);if(!he)return;this.capture(he);let Ue="";if(this.consumeOptional("=")){const Qt=function pt(Ce){const ge=Ce.match(Ft);return ge?ge[0]:""}(this.remaining);Qt&&(Ue=Qt,this.capture(Ue))}const nt=qi(he),Dt=qi(Ue);if(ge.hasOwnProperty(nt)){let Qt=ge[nt];Array.isArray(Qt)||(Qt=[Qt],ge[nt]=Qt),Qt.push(Dt)}else ge[nt]=Dt}parseParens(ge){const he={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const Ue=Bi(this.remaining),nt=this.remaining[Ue.length];if("/"!==nt&&")"!==nt&&";"!==nt)throw new Error(`Cannot parse url '${this.url}'`);let Dt;Ue.indexOf(":")>-1?(Dt=Ue.substr(0,Ue.indexOf(":")),this.capture(Dt),this.capture(":")):ge&&(Dt=ce);const Qt=this.parseChildren();he[Dt]=1===Object.keys(Qt).length?Qt[ce]:new ut([],Qt),this.consumeOptional("//")}return he}peekStartsWith(ge){return this.remaining.startsWith(ge)}consumeOptional(ge){return!!this.peekStartsWith(ge)&&(this.remaining=this.remaining.substring(ge.length),!0)}capture(ge){if(!this.consumeOptional(ge))throw new Error(`Expected "${ge}".`)}}class It{constructor(ge){this._root=ge}get root(){return this._root.value}parent(ge){const he=this.pathFromRoot(ge);return he.length>1?he[he.length-2]:null}children(ge){const he=de(ge,this._root);return he?he.children.map(Ue=>Ue.value):[]}firstChild(ge){const he=de(ge,this._root);return he&&he.children.length>0?he.children[0].value:null}siblings(ge){const he=$e(ge,this._root);return he.length<2?[]:he[he.length-2].children.map(nt=>nt.value).filter(nt=>nt!==ge)}pathFromRoot(ge){return $e(ge,this._root).map(he=>he.value)}}function de(Ce,ge){if(Ce===ge.value)return ge;for(const he of ge.children){const Ue=de(Ce,he);if(Ue)return Ue}return null}function $e(Ce,ge){if(Ce===ge.value)return[ge];for(const he of ge.children){const Ue=$e(Ce,he);if(Ue.length)return Ue.unshift(ge),Ue}return[]}class bt{constructor(ge,he){this.value=ge,this.children=he}toString(){return`TreeNode(${this.value})`}}function Vt(Ce){const ge={};return Ce&&Ce.children.forEach(he=>ge[he.value.outlet]=he),ge}class bi extends It{constructor(ge,he){super(ge),this.snapshot=he,Je(this,ge)}toString(){return this.snapshot.toString()}}function Li(Ce,ge){const he=function Ji(Ce,ge){const Qt=new Yt([],{},{},"",{},ce,ge,null,Ce.root,-1,{});return new Mi("",new bt(Qt,[]))}(Ce,ge),Ue=new T.X([new ft("",{})]),nt=new T.X({}),Dt=new T.X({}),Qt=new T.X({}),ai=new T.X(""),Di=new Wi(Ue,nt,Qt,ai,Dt,ce,ge,he.root);return Di.snapshot=he.root,new bi(new bt(Di,[]),he)}class Wi{constructor(ge,he,Ue,nt,Dt,Qt,ai,Di){this.url=ge,this.params=he,this.queryParams=Ue,this.fragment=nt,this.data=Dt,this.outlet=Qt,this.component=ai,this._futureSnapshot=Di}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,se.U)(ge=>xe(ge)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,se.U)(ge=>xe(ge)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function sn(Ce,ge="emptyOnly"){const he=Ce.pathFromRoot;let Ue=0;if("always"!==ge)for(Ue=he.length-1;Ue>=1;){const nt=he[Ue],Dt=he[Ue-1];if(nt.routeConfig&&""===nt.routeConfig.path)Ue--;else{if(Dt.component)break;Ue--}}return function mn(Ce){return Ce.reduce((ge,he)=>({params:Object.assign(Object.assign({},ge.params),he.params),data:Object.assign(Object.assign({},ge.data),he.data),resolve:Object.assign(Object.assign({},ge.resolve),he._resolvedData)}),{params:{},data:{},resolve:{}})}(he.slice(Ue))}class Yt{constructor(ge,he,Ue,nt,Dt,Qt,ai,Di,Vi,Mn,zi){this.url=ge,this.params=he,this.queryParams=Ue,this.fragment=nt,this.data=Dt,this.outlet=Qt,this.component=ai,this.routeConfig=Di,this._urlSegment=Vi,this._lastPathIndex=Mn,this._resolve=zi}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=xe(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=xe(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(Ue=>Ue.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Mi extends It{constructor(ge,he){super(he),this.url=ge,Je(this,he)}toString(){return Nt(this._root)}}function Je(Ce,ge){ge.value._routerState=Ce,ge.children.forEach(he=>Je(Ce,he))}function Nt(Ce){const ge=Ce.children.length>0?` { ${Ce.children.map(Nt).join(", ")} } `:"";return`${Ce.value}${ge}`}function Kt(Ce){if(Ce.snapshot){const ge=Ce.snapshot,he=Ce._futureSnapshot;Ce.snapshot=he,lt(ge.queryParams,he.queryParams)||Ce.queryParams.next(he.queryParams),ge.fragment!==he.fragment&&Ce.fragment.next(he.fragment),lt(ge.params,he.params)||Ce.params.next(he.params),function Le(Ce,ge){if(Ce.length!==ge.length)return!1;for(let he=0;he<Ce.length;++he)if(!lt(Ce[he],ge[he]))return!1;return!0}(ge.url,he.url)||Ce.url.next(he.url),lt(ge.data,he.data)||Ce.data.next(he.data)}else Ce.snapshot=Ce._futureSnapshot,Ce.data.next(Ce._futureSnapshot.data)}function pi(Ce,ge){const he=lt(Ce.params,ge.params)&&function Rt(Ce,ge){return et(Ce,ge)&&Ce.every((he,Ue)=>lt(he.parameters,ge[Ue].parameters))}(Ce.url,ge.url);return he&&!(!Ce.parent!=!ge.parent)&&(!Ce.parent||pi(Ce.parent,ge.parent))}function ki(Ce,ge,he){if(he&&Ce.shouldReuseRoute(ge.value,he.value.snapshot)){const Ue=he.value;Ue._futureSnapshot=ge.value;const nt=function hn(Ce,ge,he){return ge.children.map(Ue=>{for(const nt of he.children)if(Ce.shouldReuseRoute(Ue.value,nt.value.snapshot))return ki(Ce,Ue,nt);return ki(Ce,Ue)})}(Ce,ge,he);return new bt(Ue,nt)}{if(Ce.shouldAttach(ge.value)){const Dt=Ce.retrieve(ge.value);if(null!==Dt){const Qt=Dt.route;return Qt.value._futureSnapshot=ge.value,Qt.children=ge.children.map(ai=>ki(Ce,ai)),Qt}}const Ue=function Hn(Ce){return new Wi(new T.X(Ce.url),new T.X(Ce.params),new T.X(Ce.queryParams),new T.X(Ce.fragment),new T.X(Ce.data),Ce.outlet,Ce.component,Ce)}(ge.value),nt=ge.children.map(Dt=>ki(Ce,Dt));return new bt(Ue,nt)}}function Kn(Ce){return"object"==typeof Ce&&null!=Ce&&!Ce.outlets&&!Ce.segmentPath}function Cn(Ce){return"object"==typeof Ce&&null!=Ce&&Ce.outlets}function wi(Ce,ge,he,Ue,nt){let Dt={};if(Ue&&Gt(Ue,(ai,Di)=>{Dt[Di]=Array.isArray(ai)?ai.map(Vi=>`${Vi}`):`${ai}`}),Ce===ge)return new Me(he,Dt,nt);const Qt=Yi(Ce,ge,he);return new Me(Qt,Dt,nt)}function Yi(Ce,ge,he){const Ue={};return Gt(Ce.children,(nt,Dt)=>{Ue[Dt]=nt===ge?he:Yi(nt,ge,he)}),new ut(Ce.segments,Ue)}class bn{constructor(ge,he,Ue){if(this.isAbsolute=ge,this.numberOfDoubleDots=he,this.commands=Ue,ge&&Ue.length>0&&Kn(Ue[0]))throw new Error("Root segment cannot have matrix parameters");const nt=Ue.find(Cn);if(nt&&nt!==hi(Ue))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ar{constructor(ge,he,Ue){this.segmentGroup=ge,this.processChildren=he,this.index=Ue}}function sa(Ce,ge,he){if(Ce||(Ce=new ut([],{})),0===Ce.segments.length&&Ce.hasChildren())return oa(Ce,ge,he);const Ue=function La(Ce,ge,he){let Ue=0,nt=ge;const Dt={match:!1,pathIndex:0,commandIndex:0};for(;nt<Ce.segments.length;){if(Ue>=he.length)return Dt;const Qt=Ce.segments[nt],ai=he[Ue];if(Cn(ai))break;const Di=`${ai}`,Vi=Ue<he.length-1?he[Ue+1]:null;if(nt>0&&void 0===Di)break;if(Di&&Vi&&"object"==typeof Vi&&void 0===Vi.outlets){if(!na(Di,Vi,Qt))return Dt;Ue+=2}else{if(!na(Di,{},Qt))return Dt;Ue++}nt++}return{match:!0,pathIndex:nt,commandIndex:Ue}}(Ce,ge,he),nt=he.slice(Ue.commandIndex);if(Ue.match&&Ue.pathIndex<Ce.segments.length){const Dt=new ut(Ce.segments.slice(0,Ue.pathIndex),{});return Dt.children[ce]=new ut(Ce.segments.slice(Ue.pathIndex),Ce.children),oa(Dt,0,nt)}return Ue.match&&0===nt.length?new ut(Ce.segments,{}):Ue.match&&!Ce.hasChildren()?Ta(Ce,ge,he):Ue.match?oa(Ce,0,nt):Ta(Ce,ge,he)}function oa(Ce,ge,he){if(0===he.length)return new ut(Ce.segments,{});{const Ue=function ia(Ce){return Cn(Ce[0])?Ce[0].outlets:{[ce]:Ce}}(he),nt={};return Gt(Ue,(Dt,Qt)=>{"string"==typeof Dt&&(Dt=[Dt]),null!==Dt&&(nt[Qt]=sa(Ce.children[Qt],ge,Dt))}),Gt(Ce.children,(Dt,Qt)=>{void 0===Ue[Qt]&&(nt[Qt]=Dt)}),new ut(Ce.segments,nt)}}function Ta(Ce,ge,he){const Ue=Ce.segments.slice(0,ge);let nt=0;for(;nt<he.length;){const Dt=he[nt];if(Cn(Dt)){const Di=rr(Dt.outlets);return new ut(Ue,Di)}if(0===nt&&Kn(he[0])){Ue.push(new ft(Ce.segments[ge].path,Yr(he[0]))),nt++;continue}const Qt=Cn(Dt)?Dt.outlets[ce]:`${Dt}`,ai=nt<he.length-1?he[nt+1]:null;Qt&&ai&&Kn(ai)?(Ue.push(new ft(Qt,Yr(ai))),nt+=2):(Ue.push(new ft(Qt,{})),nt++)}return new ut(Ue,{})}function rr(Ce){const ge={};return Gt(Ce,(he,Ue)=>{"string"==typeof he&&(he=[he]),null!==he&&(ge[Ue]=Ta(new ut([],{}),0,he))}),ge}function Yr(Ce){const ge={};return Gt(Ce,(he,Ue)=>ge[Ue]=`${he}`),ge}function na(Ce,ge,he){return Ce==he.path&&lt(ge,he.parameters)}class qr{constructor(ge,he,Ue,nt){this.routeReuseStrategy=ge,this.futureState=he,this.currState=Ue,this.forwardEvent=nt}activate(ge){const he=this.futureState._root,Ue=this.currState?this.currState._root:null;this.deactivateChildRoutes(he,Ue,ge),Kt(this.futureState.root),this.activateChildRoutes(he,Ue,ge)}deactivateChildRoutes(ge,he,Ue){const nt=Vt(he);ge.children.forEach(Dt=>{const Qt=Dt.value.outlet;this.deactivateRoutes(Dt,nt[Qt],Ue),delete nt[Qt]}),Gt(nt,(Dt,Qt)=>{this.deactivateRouteAndItsChildren(Dt,Ue)})}deactivateRoutes(ge,he,Ue){const nt=ge.value,Dt=he?he.value:null;if(nt===Dt)if(nt.component){const Qt=Ue.getContext(nt.outlet);Qt&&this.deactivateChildRoutes(ge,he,Qt.children)}else this.deactivateChildRoutes(ge,he,Ue);else Dt&&this.deactivateRouteAndItsChildren(he,Ue)}deactivateRouteAndItsChildren(ge,he){ge.value.component&&this.routeReuseStrategy.shouldDetach(ge.value.snapshot)?this.detachAndStoreRouteSubtree(ge,he):this.deactivateRouteAndOutlet(ge,he)}detachAndStoreRouteSubtree(ge,he){const Ue=he.getContext(ge.value.outlet),nt=Ue&&ge.value.component?Ue.children:he,Dt=Vt(ge);for(const Qt of Object.keys(Dt))this.deactivateRouteAndItsChildren(Dt[Qt],nt);if(Ue&&Ue.outlet){const Qt=Ue.outlet.detach(),ai=Ue.children.onOutletDeactivated();this.routeReuseStrategy.store(ge.value.snapshot,{componentRef:Qt,route:ge,contexts:ai})}}deactivateRouteAndOutlet(ge,he){const Ue=he.getContext(ge.value.outlet),nt=Ue&&ge.value.component?Ue.children:he,Dt=Vt(ge);for(const Qt of Object.keys(Dt))this.deactivateRouteAndItsChildren(Dt[Qt],nt);Ue&&Ue.outlet&&(Ue.outlet.deactivate(),Ue.children.onOutletDeactivated(),Ue.attachRef=null,Ue.resolver=null,Ue.route=null)}activateChildRoutes(ge,he,Ue){const nt=Vt(he);ge.children.forEach(Dt=>{this.activateRoutes(Dt,nt[Dt.value.outlet],Ue),this.forwardEvent(new Ie(Dt.value.snapshot))}),ge.children.length&&this.forwardEvent(new Y(ge.value.snapshot))}activateRoutes(ge,he,Ue){const nt=ge.value,Dt=he?he.value:null;if(Kt(nt),nt===Dt)if(nt.component){const Qt=Ue.getOrCreateContext(nt.outlet);this.activateChildRoutes(ge,he,Qt.children)}else this.activateChildRoutes(ge,he,Ue);else if(nt.component){const Qt=Ue.getOrCreateContext(nt.outlet);if(this.routeReuseStrategy.shouldAttach(nt.snapshot)){const ai=this.routeReuseStrategy.retrieve(nt.snapshot);this.routeReuseStrategy.store(nt.snapshot,null),Qt.children.onOutletReAttached(ai.contexts),Qt.attachRef=ai.componentRef,Qt.route=ai.route.value,Qt.outlet&&Qt.outlet.attach(ai.componentRef,ai.route.value),Kt(ai.route.value),this.activateChildRoutes(ge,null,Qt.children)}else{const ai=function xa(Ce){for(let ge=Ce.parent;ge;ge=ge.parent){const he=ge.routeConfig;if(he&&he._loadedConfig)return he._loadedConfig;if(he&&he.component)return null}return null}(nt.snapshot),Di=ai?ai.module.componentFactoryResolver:null;Qt.attachRef=null,Qt.route=nt,Qt.resolver=Di,Qt.outlet&&Qt.outlet.activateWith(nt,Di),this.activateChildRoutes(ge,null,Qt.children)}}else this.activateChildRoutes(ge,null,Ue)}}class Rr{constructor(ge,he){this.routes=ge,this.module=he}}function Xn(Ce){return"function"==typeof Ce}function tr(Ce){return Ce instanceof Me}const Dr=Symbol("INITIAL_VALUE");function Nr(){return(0,J.w)(Ce=>(0,M.a)(Ce.map(ge=>ge.pipe((0,me.q)(1),(0,x.O)(Dr)))).pipe((0,t.R)((ge,he)=>{let Ue=!1;return he.reduce((nt,Dt,Qt)=>nt!==Dr?nt:(Dt===Dr&&(Ue=!0),Ue||!1!==Dt&&Qt!==he.length-1&&!tr(Dt)?nt:Dt),ge)},Dr),(0,W.h)(ge=>ge!==Dr),(0,se.U)(ge=>tr(ge)?ge:!0===ge),(0,me.q)(1)))}class Ur{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new mr,this.attachRef=null}}class mr{constructor(){this.contexts=new Map}onChildOutletCreated(ge,he){const Ue=this.getOrCreateContext(ge);Ue.outlet=he,this.contexts.set(ge,Ue)}onChildOutletDestroyed(ge){const he=this.getContext(ge);he&&(he.outlet=null,he.attachRef=null)}onOutletDeactivated(){const ge=this.contexts;return this.contexts=new Map,ge}onOutletReAttached(ge){this.contexts=ge}getOrCreateContext(ge){let he=this.getContext(ge);return he||(he=new Ur,this.contexts.set(ge,he)),he}getContext(ge){return this.contexts.get(ge)||null}}let gr=(()=>{class Ce{constructor(he,Ue,nt,Dt,Qt){this.parentContexts=he,this.location=Ue,this.resolver=nt,this.changeDetector=Qt,this.activated=null,this._activatedRoute=null,this.activateEvents=new e.vpe,this.deactivateEvents=new e.vpe,this.attachEvents=new e.vpe,this.detachEvents=new e.vpe,this.name=Dt||ce,he.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const he=this.parentContexts.getContext(this.name);he&&he.route&&(he.attachRef?this.attach(he.attachRef,he.route):this.activateWith(he.route,he.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const he=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(he.instance),he}attach(he,Ue){this.activated=he,this._activatedRoute=Ue,this.location.insert(he.hostView),this.attachEvents.emit(he.instance)}deactivate(){if(this.activated){const he=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(he)}}activateWith(he,Ue){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=he;const Qt=(Ue=Ue||this.resolver).resolveComponentFactory(he._futureSnapshot.routeConfig.component),ai=this.parentContexts.getOrCreateContext(this.name).children,Di=new ra(he,ai,this.location.injector);this.activated=this.location.createComponent(Qt,this.location.length,Di),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return Ce.\u0275fac=function(he){return new(he||Ce)(e.Y36(mr),e.Y36(e.s_b),e.Y36(e._Vd),e.$8M("name"),e.Y36(e.sBO))},Ce.\u0275dir=e.lG2({type:Ce,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),Ce})();class ra{constructor(ge,he,Ue){this.route=ge,this.childContexts=he,this.parent=Ue}get(ge,he){return ge===Wi?this.route:ge===mr?this.childContexts:this.parent.get(ge,he)}}let ca=(()=>{class Ce{}return Ce.\u0275fac=function(he){return new(he||Ce)},Ce.\u0275cmp=e.Xpm({type:Ce,selectors:[["ng-component"]],decls:1,vars:0,template:function(he,Ue){1&he&&e._UZ(0,"router-outlet")},directives:[gr],encapsulation:2}),Ce})();function da(Ce,ge=""){for(let he=0;he<Ce.length;he++){const Ue=Ce[he];Jn(Ue,ga(ge,Ue))}}function Jn(Ce,ge){Ce.children&&da(Ce.children,ge)}function ga(Ce,ge){return ge?Ce||ge.path?Ce&&!ge.path?`${Ce}/`:!Ce&&ge.path?ge.path:`${Ce}/${ge.path}`:"":Ce}function Ma(Ce){const ge=Ce.children&&Ce.children.map(Ma),he=ge?Object.assign(Object.assign({},Ce),{children:ge}):Object.assign({},Ce);return!he.component&&(ge||he.loadChildren)&&he.outlet&&he.outlet!==ce&&(he.component=ca),he}function $n(Ce){return Ce.outlet||ce}function qn(Ce,ge){const he=Ce.filter(Ue=>$n(Ue)===ge);return he.push(...Ce.filter(Ue=>$n(Ue)!==ge)),he}const Hr={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function br(Ce,ge,he){var Ue;if(""===ge.path)return"full"===ge.pathMatch&&(Ce.hasChildren()||he.length>0)?Object.assign({},Hr):{matched:!0,consumedSegments:[],remainingSegments:he,parameters:{},positionalParamSegments:{}};const Dt=(ge.matcher||ve)(he,Ce,ge);if(!Dt)return Object.assign({},Hr);const Qt={};Gt(Dt.posParams,(Di,Vi)=>{Qt[Vi]=Di.path});const ai=Dt.consumed.length>0?Object.assign(Object.assign({},Qt),Dt.consumed[Dt.consumed.length-1].parameters):Qt;return{matched:!0,consumedSegments:Dt.consumed,remainingSegments:he.slice(Dt.consumed.length),parameters:ai,positionalParamSegments:null!==(Ue=Dt.posParams)&&void 0!==Ue?Ue:{}}}function Fr(Ce,ge,he,Ue,nt="corrected"){if(he.length>0&&function Wn(Ce,ge,he){return he.some(Ue=>Mt(Ce,ge,Ue)&&$n(Ue)!==ce)}(Ce,he,Ue)){const Qt=new ut(ge,function Aa(Ce,ge,he,Ue){const nt={};nt[ce]=Ue,Ue._sourceSegment=Ce,Ue._segmentIndexShift=ge.length;for(const Dt of he)if(""===Dt.path&&$n(Dt)!==ce){const Qt=new ut([],{});Qt._sourceSegment=Ce,Qt._segmentIndexShift=ge.length,nt[$n(Dt)]=Qt}return nt}(Ce,ge,Ue,new ut(he,Ce.children)));return Qt._sourceSegment=Ce,Qt._segmentIndexShift=ge.length,{segmentGroup:Qt,slicedSegments:[]}}if(0===he.length&&function je(Ce,ge,he){return he.some(Ue=>Mt(Ce,ge,Ue))}(Ce,he,Ue)){const Qt=new ut(Ce.segments,function ha(Ce,ge,he,Ue,nt,Dt){const Qt={};for(const ai of Ue)if(Mt(Ce,he,ai)&&!nt[$n(ai)]){const Di=new ut([],{});Di._sourceSegment=Ce,Di._segmentIndexShift="legacy"===Dt?Ce.segments.length:ge.length,Qt[$n(ai)]=Di}return Object.assign(Object.assign({},nt),Qt)}(Ce,ge,he,Ue,Ce.children,nt));return Qt._sourceSegment=Ce,Qt._segmentIndexShift=ge.length,{segmentGroup:Qt,slicedSegments:he}}const Dt=new ut(Ce.segments,Ce.children);return Dt._sourceSegment=Ce,Dt._segmentIndexShift=ge.length,{segmentGroup:Dt,slicedSegments:he}}function Mt(Ce,ge,he){return(!(Ce.hasChildren()||ge.length>0)||"full"!==he.pathMatch)&&""===he.path}function Ye(Ce,ge,he,Ue){return!!($n(Ce)===Ue||Ue!==ce&&Mt(ge,he,Ce))&&("**"===Ce.path||br(ge,Ce,he).matched)}function Ot(Ce,ge,he){return 0===ge.length&&!Ce.children[he]}class ri{constructor(ge){this.segmentGroup=ge||null}}class Si{constructor(ge){this.urlTree=ge}}function Oi(Ce){return(0,A._)(new ri(Ce))}function rn(Ce){return(0,A._)(new Si(Ce))}class mt{constructor(ge,he,Ue,nt,Dt){this.configLoader=he,this.urlSerializer=Ue,this.urlTree=nt,this.config=Dt,this.allowRedirects=!0,this.ngModule=ge.get(e.h0i)}apply(){const ge=Fr(this.urlTree.root,[],[],this.config).segmentGroup,he=new ut(ge.segments,ge.children);return this.expandSegmentGroup(this.ngModule,this.config,he,ce).pipe((0,se.U)(Dt=>this.createUrlTree(Ai(Dt),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,r.K)(Dt=>{if(Dt instanceof Si)return this.allowRedirects=!1,this.match(Dt.urlTree);throw Dt instanceof ri?this.noMatchError(Dt):Dt}))}match(ge){return this.expandSegmentGroup(this.ngModule,this.config,ge.root,ce).pipe((0,se.U)(nt=>this.createUrlTree(Ai(nt),ge.queryParams,ge.fragment))).pipe((0,r.K)(nt=>{throw nt instanceof ri?this.noMatchError(nt):nt}))}noMatchError(ge){return new Error(`Cannot match any routes. URL Segment: '${ge.segmentGroup}'`)}createUrlTree(ge,he,Ue){const nt=ge.segments.length>0?new ut([],{[ce]:ge}):ge;return new Me(nt,he,Ue)}expandSegmentGroup(ge,he,Ue,nt){return 0===Ue.segments.length&&Ue.hasChildren()?this.expandChildren(ge,he,Ue).pipe((0,se.U)(Dt=>new ut([],Dt))):this.expandSegment(ge,Ue,he,Ue.segments,nt,!0)}expandChildren(ge,he,Ue){const nt=[];for(const Dt of Object.keys(Ue.children))"primary"===Dt?nt.unshift(Dt):nt.push(Dt);return(0,P.D)(nt).pipe((0,h.b)(Dt=>{const Qt=Ue.children[Dt],ai=qn(he,Dt);return this.expandSegmentGroup(ge,ai,Qt,Dt).pipe((0,se.U)(Di=>({segment:Di,outlet:Dt})))}),(0,t.R)((Dt,Qt)=>(Dt[Qt.outlet]=Qt.segment,Dt),{}),function ie(Ce,ge){const he=arguments.length>=2;return Ue=>Ue.pipe(Ce?(0,W.h)((nt,Dt)=>Ce(nt,Dt,Ue)):q.y,ne(1),he?(0,le.d)(ge):(0,Q.T)(()=>new E.K))}())}expandSegment(ge,he,Ue,nt,Dt,Qt){return(0,P.D)(Ue).pipe((0,h.b)(ai=>this.expandSegmentAgainstRoute(ge,he,Ue,ai,nt,Dt,Qt).pipe((0,r.K)(Vi=>{if(Vi instanceof ri)return(0,D.of)(null);throw Vi}))),(0,c.P)(ai=>!!ai),(0,r.K)((ai,Di)=>{if(ai instanceof E.K||"EmptyError"===ai.name)return Ot(he,nt,Dt)?(0,D.of)(new ut([],{})):Oi(he);throw ai}))}expandSegmentAgainstRoute(ge,he,Ue,nt,Dt,Qt,ai){return Ye(nt,he,Dt,Qt)?void 0===nt.redirectTo?this.matchSegmentAgainstRoute(ge,he,nt,Dt,Qt):ai&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(ge,he,Ue,nt,Dt,Qt):Oi(he):Oi(he)}expandSegmentAgainstRouteUsingRedirect(ge,he,Ue,nt,Dt,Qt){return"**"===nt.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(ge,Ue,nt,Qt):this.expandRegularSegmentAgainstRouteUsingRedirect(ge,he,Ue,nt,Dt,Qt)}expandWildCardWithParamsAgainstRouteUsingRedirect(ge,he,Ue,nt){const Dt=this.applyRedirectCommands([],Ue.redirectTo,{});return Ue.redirectTo.startsWith("/")?rn(Dt):this.lineralizeSegments(Ue,Dt).pipe((0,C.z)(Qt=>{const ai=new ut(Qt,{});return this.expandSegment(ge,ai,he,Qt,nt,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(ge,he,Ue,nt,Dt,Qt){const{matched:ai,consumedSegments:Di,remainingSegments:Vi,positionalParamSegments:Mn}=br(he,nt,Dt);if(!ai)return Oi(he);const zi=this.applyRedirectCommands(Di,nt.redirectTo,Mn);return nt.redirectTo.startsWith("/")?rn(zi):this.lineralizeSegments(nt,zi).pipe((0,C.z)(un=>this.expandSegment(ge,he,Ue,un.concat(Vi),Qt,!1)))}matchSegmentAgainstRoute(ge,he,Ue,nt,Dt){if("**"===Ue.path)return Ue.loadChildren?(Ue._loadedConfig?(0,D.of)(Ue._loadedConfig):this.configLoader.load(ge.injector,Ue)).pipe((0,se.U)(zi=>(Ue._loadedConfig=zi,new ut(nt,{})))):(0,D.of)(new ut(nt,{}));const{matched:Qt,consumedSegments:ai,remainingSegments:Di}=br(he,Ue,nt);return Qt?this.getChildConfig(ge,Ue,nt).pipe((0,C.z)(Mn=>{const zi=Mn.module,un=Mn.routes,{segmentGroup:kn,slicedSegments:ns}=Fr(he,ai,Di,un),Ss=new ut(kn.segments,kn.children);if(0===ns.length&&Ss.hasChildren())return this.expandChildren(zi,un,Ss).pipe((0,se.U)(lo=>new ut(ai,lo)));if(0===un.length&&0===ns.length)return(0,D.of)(new ut(ai,{}));const Zo=$n(Ue)===Dt;return this.expandSegment(zi,Ss,un,ns,Zo?ce:Dt,!0).pipe((0,se.U)(Ea=>new ut(ai.concat(Ea.segments),Ea.children)))})):Oi(he)}getChildConfig(ge,he,Ue){return he.children?(0,D.of)(new Rr(he.children,ge)):he.loadChildren?void 0!==he._loadedConfig?(0,D.of)(he._loadedConfig):this.runCanLoadGuards(ge.injector,he,Ue).pipe((0,C.z)(nt=>nt?this.configLoader.load(ge.injector,he).pipe((0,se.U)(Dt=>(he._loadedConfig=Dt,Dt))):function At(Ce){return(0,A._)(ee(`Cannot load children because the guard of the route "path: '${Ce.path}'" returned false`))}(he))):(0,D.of)(new Rr([],ge))}runCanLoadGuards(ge,he,Ue){const nt=he.canLoad;if(!nt||0===nt.length)return(0,D.of)(!0);const Dt=nt.map(Qt=>{const ai=ge.get(Qt);let Di;if(function wr(Ce){return Ce&&Xn(Ce.canLoad)}(ai))Di=ai.canLoad(he,Ue);else{if(!Xn(ai))throw new Error("Invalid CanLoad guard");Di=ai(he,Ue)}return di(Di)});return(0,D.of)(Dt).pipe(Nr(),(0,S.b)(Qt=>{if(!tr(Qt))return;const ai=ee(`Redirecting to "${this.urlSerializer.serialize(Qt)}"`);throw ai.url=Qt,ai}),(0,se.U)(Qt=>!0===Qt))}lineralizeSegments(ge,he){let Ue=[],nt=he.root;for(;;){if(Ue=Ue.concat(nt.segments),0===nt.numberOfChildren)return(0,D.of)(Ue);if(nt.numberOfChildren>1||!nt.children[ce])return(0,A._)(new Error(`Only absolute redirects can have named outlets. redirectTo: '${ge.redirectTo}'`));nt=nt.children[ce]}}applyRedirectCommands(ge,he,Ue){return this.applyRedirectCreatreUrlTree(he,this.urlSerializer.parse(he),ge,Ue)}applyRedirectCreatreUrlTree(ge,he,Ue,nt){const Dt=this.createSegmentGroup(ge,he.root,Ue,nt);return new Me(Dt,this.createQueryParams(he.queryParams,this.urlTree.queryParams),he.fragment)}createQueryParams(ge,he){const Ue={};return Gt(ge,(nt,Dt)=>{if("string"==typeof nt&&nt.startsWith(":")){const ai=nt.substring(1);Ue[Dt]=he[ai]}else Ue[Dt]=nt}),Ue}createSegmentGroup(ge,he,Ue,nt){const Dt=this.createSegments(ge,he.segments,Ue,nt);let Qt={};return Gt(he.children,(ai,Di)=>{Qt[Di]=this.createSegmentGroup(ge,ai,Ue,nt)}),new ut(Dt,Qt)}createSegments(ge,he,Ue,nt){return he.map(Dt=>Dt.path.startsWith(":")?this.findPosParam(ge,Dt,nt):this.findOrReturn(Dt,Ue))}findPosParam(ge,he,Ue){const nt=Ue[he.path.substring(1)];if(!nt)throw new Error(`Cannot redirect to '${ge}'. Cannot find '${he.path}'.`);return nt}findOrReturn(ge,he){let Ue=0;for(const nt of he){if(nt.path===ge.path)return he.splice(Ue),nt;Ue++}return ge}}function Ai(Ce){const ge={};for(const Ue of Object.keys(Ce.children)){const Dt=Ai(Ce.children[Ue]);(Dt.segments.length>0||Dt.hasChildren())&&(ge[Ue]=Dt)}return function $t(Ce){if(1===Ce.numberOfChildren&&Ce.children[ce]){const ge=Ce.children[ce];return new ut(Ce.segments.concat(ge.segments),ge.children)}return Ce}(new ut(Ce.segments,ge))}class Ke{constructor(ge){this.path=ge,this.route=this.path[this.path.length-1]}}class Be{constructor(ge,he){this.component=ge,this.route=he}}function Ne(Ce,ge,he){const Ue=Ce._root;return Nn(Ue,ge?ge._root:null,he,[Ue.value])}function vi(Ce,ge,he){const Ue=function $i(Ce){if(!Ce)return null;for(let ge=Ce.parent;ge;ge=ge.parent){const he=ge.routeConfig;if(he&&he._loadedConfig)return he._loadedConfig}return null}(ge);return(Ue?Ue.module.injector:he).get(Ce)}function Nn(Ce,ge,he,Ue,nt={canDeactivateChecks:[],canActivateChecks:[]}){const Dt=Vt(ge);return Ce.children.forEach(Qt=>{(function Sr(Ce,ge,he,Ue,nt={canDeactivateChecks:[],canActivateChecks:[]}){const Dt=Ce.value,Qt=ge?ge.value:null,ai=he?he.getContext(Ce.value.outlet):null;if(Qt&&Dt.routeConfig===Qt.routeConfig){const Di=function Ca(Ce,ge,he){if("function"==typeof he)return he(Ce,ge);switch(he){case"pathParamsChange":return!et(Ce.url,ge.url);case"pathParamsOrQueryParamsChange":return!et(Ce.url,ge.url)||!lt(Ce.queryParams,ge.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!pi(Ce,ge)||!lt(Ce.queryParams,ge.queryParams);default:return!pi(Ce,ge)}}(Qt,Dt,Dt.routeConfig.runGuardsAndResolvers);Di?nt.canActivateChecks.push(new Ke(Ue)):(Dt.data=Qt.data,Dt._resolvedData=Qt._resolvedData),Nn(Ce,ge,Dt.component?ai?ai.children:null:he,Ue,nt),Di&&ai&&ai.outlet&&ai.outlet.isActivated&&nt.canDeactivateChecks.push(new Be(ai.outlet.component,Qt))}else Qt&&Jr(ge,ai,nt),nt.canActivateChecks.push(new Ke(Ue)),Nn(Ce,null,Dt.component?ai?ai.children:null:he,Ue,nt)})(Qt,Dt[Qt.value.outlet],he,Ue.concat([Qt.value]),nt),delete Dt[Qt.value.outlet]}),Gt(Dt,(Qt,ai)=>Jr(Qt,he.getContext(ai),nt)),nt}function Jr(Ce,ge,he){const Ue=Vt(Ce),nt=Ce.value;Gt(Ue,(Dt,Qt)=>{Jr(Dt,nt.component?ge?ge.children.getContext(Qt):null:ge,he)}),he.canDeactivateChecks.push(new Be(nt.component&&ge&&ge.outlet&&ge.outlet.isActivated?ge.outlet.component:null,nt))}class gs{}function Cs(Ce){return new i.y(ge=>ge.error(Ce))}class _s{constructor(ge,he,Ue,nt,Dt,Qt){this.rootComponentType=ge,this.config=he,this.urlTree=Ue,this.url=nt,this.paramsInheritanceStrategy=Dt,this.relativeLinkResolution=Qt}recognize(){const ge=Fr(this.urlTree.root,[],[],this.config.filter(Qt=>void 0===Qt.redirectTo),this.relativeLinkResolution).segmentGroup,he=this.processSegmentGroup(this.config,ge,ce);if(null===he)return null;const Ue=new Yt([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},ce,this.rootComponentType,null,this.urlTree.root,-1,{}),nt=new bt(Ue,he),Dt=new Mi(this.url,nt);return this.inheritParamsAndData(Dt._root),Dt}inheritParamsAndData(ge){const he=ge.value,Ue=sn(he,this.paramsInheritanceStrategy);he.params=Object.freeze(Ue.params),he.data=Object.freeze(Ue.data),ge.children.forEach(nt=>this.inheritParamsAndData(nt))}processSegmentGroup(ge,he,Ue){return 0===he.segments.length&&he.hasChildren()?this.processChildren(ge,he):this.processSegment(ge,he,he.segments,Ue)}processChildren(ge,he){const Ue=[];for(const Dt of Object.keys(he.children)){const Qt=he.children[Dt],ai=qn(ge,Dt),Di=this.processSegmentGroup(ai,Qt,Dt);if(null===Di)return null;Ue.push(...Di)}const nt=Oa(Ue);return function os(Ce){Ce.sort((ge,he)=>ge.value.outlet===ce?-1:he.value.outlet===ce?1:ge.value.outlet.localeCompare(he.value.outlet))}(nt),nt}processSegment(ge,he,Ue,nt){for(const Dt of ge){const Qt=this.processSegmentAgainstRoute(Dt,he,Ue,nt);if(null!==Qt)return Qt}return Ot(he,Ue,nt)?[]:null}processSegmentAgainstRoute(ge,he,Ue,nt){if(ge.redirectTo||!Ye(ge,he,Ue,nt))return null;let Dt,Qt=[],ai=[];if("**"===ge.path){const kn=Ue.length>0?hi(Ue).parameters:{};Dt=new Yt(Ue,kn,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ge(ge),$n(ge),ge.component,ge,re(he),pe(he)+Ue.length,xt(ge))}else{const kn=br(he,ge,Ue);if(!kn.matched)return null;Qt=kn.consumedSegments,ai=kn.remainingSegments,Dt=new Yt(Qt,kn.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ge(ge),$n(ge),ge.component,ge,re(he),pe(he)+Qt.length,xt(ge))}const Di=function is(Ce){return Ce.children?Ce.children:Ce.loadChildren?Ce._loadedConfig.routes:[]}(ge),{segmentGroup:Vi,slicedSegments:Mn}=Fr(he,Qt,ai,Di.filter(kn=>void 0===kn.redirectTo),this.relativeLinkResolution);if(0===Mn.length&&Vi.hasChildren()){const kn=this.processChildren(Di,Vi);return null===kn?null:[new bt(Dt,kn)]}if(0===Di.length&&0===Mn.length)return[new bt(Dt,[])];const zi=$n(ge)===nt,un=this.processSegment(Di,Vi,Mn,zi?ce:nt);return null===un?null:[new bt(Dt,un)]}}function Vr(Ce){const ge=Ce.value.routeConfig;return ge&&""===ge.path&&void 0===ge.redirectTo}function Oa(Ce){const ge=[],he=new Set;for(const Ue of Ce){if(!Vr(Ue)){ge.push(Ue);continue}const nt=ge.find(Dt=>Ue.value.routeConfig===Dt.value.routeConfig);void 0!==nt?(nt.children.push(...Ue.children),he.add(nt)):ge.push(Ue)}for(const Ue of he){const nt=Oa(Ue.children);ge.push(new bt(Ue.value,nt))}return ge.filter(Ue=>!he.has(Ue))}function re(Ce){let ge=Ce;for(;ge._sourceSegment;)ge=ge._sourceSegment;return ge}function pe(Ce){let ge=Ce,he=ge._segmentIndexShift?ge._segmentIndexShift:0;for(;ge._sourceSegment;)ge=ge._sourceSegment,he+=ge._segmentIndexShift?ge._segmentIndexShift:0;return he-1}function Ge(Ce){return Ce.data||{}}function xt(Ce){return Ce.resolve||{}}function Pi(Ce){return[...Object.keys(Ce),...Object.getOwnPropertySymbols(Ce)]}function cn(Ce){return(0,J.w)(ge=>{const he=Ce(ge);return he?(0,P.D)(he).pipe((0,se.U)(()=>ge)):(0,D.of)(ge)})}class yn extends class Pn{shouldDetach(ge){return!1}store(ge,he){}shouldAttach(ge){return!1}retrieve(ge){return null}shouldReuseRoute(ge,he){return ge.routeConfig===he.routeConfig}}{}const Ln=new e.OlP("ROUTES");class Qn{constructor(ge,he,Ue,nt){this.injector=ge,this.compiler=he,this.onLoadStartListener=Ue,this.onLoadEndListener=nt}load(ge,he){if(he._loader$)return he._loader$;this.onLoadStartListener&&this.onLoadStartListener(he);const nt=this.loadModuleFactory(he.loadChildren).pipe((0,se.U)(Dt=>{this.onLoadEndListener&&this.onLoadEndListener(he);const Qt=Dt.create(ge);return new Rr(Tt(Qt.injector.get(Ln,void 0,e.XFs.Self|e.XFs.Optional)).map(Ma),Qt)}),(0,r.K)(Dt=>{throw he._loader$=void 0,Dt}));return he._loader$=new d(nt,()=>new U.x).pipe(y()),he._loader$}loadModuleFactory(ge){return di(ge()).pipe((0,C.z)(he=>he instanceof e.YKP?(0,D.of)(he):(0,P.D)(this.compiler.compileModuleAsync(he))))}}class dr{shouldProcessUrl(ge){return!0}extract(ge){return ge}merge(ge,he){return ge}}function Zr(Ce){throw Ce}function Gr(Ce,ge,he){return ge.parse("/")}function hr(Ce,ge){return(0,D.of)(null)}const zr={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},zn={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let ur=(()=>{class Ce{constructor(he,Ue,nt,Dt,Qt,ai,Di){this.rootComponentType=he,this.urlSerializer=Ue,this.rootContexts=nt,this.location=Dt,this.config=Di,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new U.x,this.errorHandler=Zr,this.malformedUriErrorHandler=Gr,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:hr,afterPreactivation:hr},this.urlHandlingStrategy=new dr,this.routeReuseStrategy=new yn,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=Qt.get(e.h0i),this.console=Qt.get(e.c2e);const zi=Qt.get(e.R0b);this.isNgZoneEnabled=zi instanceof e.R0b&&e.R0b.isInAngularZone(),this.resetConfig(Di),this.currentUrlTree=function vt(){return new Me(new ut([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Qn(Qt,ai,un=>this.triggerEvent(new ze(un)),un=>this.triggerEvent(new be(un))),this.routerState=Li(this.currentUrlTree,this.rootComponentType),this.transitions=new T.X({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var he;return null===(he=this.location.getState())||void 0===he?void 0:he.\u0275routerPageId}setupNavigations(he){const Ue=this.events;return he.pipe((0,W.h)(nt=>0!==nt.id),(0,se.U)(nt=>Object.assign(Object.assign({},nt),{extractedUrl:this.urlHandlingStrategy.extract(nt.rawUrl)})),(0,J.w)(nt=>{let Dt=!1,Qt=!1;return(0,D.of)(nt).pipe((0,S.b)(ai=>{this.currentNavigation={id:ai.id,initialUrl:ai.currentRawUrl,extractedUrl:ai.extractedUrl,trigger:ai.source,extras:ai.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,J.w)(ai=>{const Di=this.browserUrlTree.toString(),Vi=!this.navigated||ai.extractedUrl.toString()!==Di||Di!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||Vi)&&this.urlHandlingStrategy.shouldProcessUrl(ai.rawUrl))return tt(ai.source)&&(this.browserUrlTree=ai.extractedUrl),(0,D.of)(ai).pipe((0,J.w)(zi=>{const un=this.transitions.getValue();return Ue.next(new V(zi.id,this.serializeUrl(zi.extractedUrl),zi.source,zi.restoredState)),un!==this.transitions.getValue()?z.E:Promise.resolve(zi)}),function ji(Ce,ge,he,Ue){return(0,J.w)(nt=>function oi(Ce,ge,he,Ue,nt){return new mt(Ce,ge,he,Ue,nt).apply()}(Ce,ge,he,nt.extractedUrl,Ue).pipe((0,se.U)(Dt=>Object.assign(Object.assign({},nt),{urlAfterRedirects:Dt}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,S.b)(zi=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:zi.urlAfterRedirects})}),function Ht(Ce,ge,he,Ue,nt){return(0,C.z)(Dt=>function Ia(Ce,ge,he,Ue,nt="emptyOnly",Dt="legacy"){try{const Qt=new _s(Ce,ge,he,Ue,nt,Dt).recognize();return null===Qt?Cs(new gs):(0,D.of)(Qt)}catch(Qt){return Cs(Qt)}}(Ce,ge,Dt.urlAfterRedirects,he(Dt.urlAfterRedirects),Ue,nt).pipe((0,se.U)(Qt=>Object.assign(Object.assign({},Dt),{targetSnapshot:Qt}))))}(this.rootComponentType,this.config,zi=>this.serializeUrl(zi),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,S.b)(zi=>{if("eager"===this.urlUpdateStrategy){if(!zi.extras.skipLocationChange){const kn=this.urlHandlingStrategy.merge(zi.urlAfterRedirects,zi.rawUrl);this.setBrowserUrl(kn,zi)}this.browserUrlTree=zi.urlAfterRedirects}const un=new fe(zi.id,this.serializeUrl(zi.extractedUrl),this.serializeUrl(zi.urlAfterRedirects),zi.targetSnapshot);Ue.next(un)}));if(Vi&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:un,extractedUrl:kn,source:ns,restoredState:Ss,extras:Zo}=ai,B1=new V(un,this.serializeUrl(kn),ns,Ss);Ue.next(B1);const Ea=Li(kn,this.rootComponentType).snapshot;return(0,D.of)(Object.assign(Object.assign({},ai),{targetSnapshot:Ea,urlAfterRedirects:kn,extras:Object.assign(Object.assign({},Zo),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=ai.rawUrl,ai.resolve(null),z.E}),cn(ai=>{const{targetSnapshot:Di,id:Vi,extractedUrl:Mn,rawUrl:zi,extras:{skipLocationChange:un,replaceUrl:kn}}=ai;return this.hooks.beforePreactivation(Di,{navigationId:Vi,appliedUrlTree:Mn,rawUrlTree:zi,skipLocationChange:!!un,replaceUrl:!!kn})}),(0,S.b)(ai=>{const Di=new ye(ai.id,this.serializeUrl(ai.extractedUrl),this.serializeUrl(ai.urlAfterRedirects),ai.targetSnapshot);this.triggerEvent(Di)}),(0,se.U)(ai=>Object.assign(Object.assign({},ai),{guards:Ne(ai.targetSnapshot,ai.currentSnapshot,this.rootContexts)})),function $a(Ce,ge){return(0,C.z)(he=>{const{targetSnapshot:Ue,currentSnapshot:nt,guards:{canActivateChecks:Dt,canDeactivateChecks:Qt}}=he;return 0===Qt.length&&0===Dt.length?(0,D.of)(Object.assign(Object.assign({},he),{guardsResult:!0})):function Hi(Ce,ge,he,Ue){return(0,P.D)(Ce).pipe((0,C.z)(nt=>function cr(Ce,ge,he,Ue,nt){const Dt=ge&&ge.routeConfig?ge.routeConfig.canDeactivate:null;if(!Dt||0===Dt.length)return(0,D.of)(!0);const Qt=Dt.map(ai=>{const Di=vi(ai,ge,nt);let Vi;if(function jr(Ce){return Ce&&Xn(Ce.canDeactivate)}(Di))Vi=di(Di.canDeactivate(Ce,ge,he,Ue));else{if(!Xn(Di))throw new Error("Invalid CanDeactivate guard");Vi=di(Di(Ce,ge,he,Ue))}return Vi.pipe((0,c.P)())});return(0,D.of)(Qt).pipe(Nr())}(nt.component,nt.route,he,ge,Ue)),(0,c.P)(nt=>!0!==nt,!0))}(Qt,Ue,nt,Ce).pipe((0,C.z)(ai=>ai&&function la(Ce){return"boolean"==typeof Ce}(ai)?function Vn(Ce,ge,he,Ue){return(0,P.D)(ge).pipe((0,h.b)(nt=>(0,k.z)(function Cr(Ce,ge){return null!==Ce&&ge&&ge(new Z(Ce)),(0,D.of)(!0)}(nt.route.parent,Ue),function ms(Ce,ge){return null!==Ce&&ge&&ge(new ot(Ce)),(0,D.of)(!0)}(nt.route,Ue),function Da(Ce,ge,he){const Ue=ge[ge.length-1],Dt=ge.slice(0,ge.length-1).reverse().map(Qt=>function Lt(Ce){const ge=Ce.routeConfig?Ce.routeConfig.canActivateChild:null;return ge&&0!==ge.length?{node:Ce,guards:ge}:null}(Qt)).filter(Qt=>null!==Qt).map(Qt=>(0,w.P)(()=>{const ai=Qt.guards.map(Di=>{const Vi=vi(Di,Qt.node,he);let Mn;if(function ma(Ce){return Ce&&Xn(Ce.canActivateChild)}(Vi))Mn=di(Vi.canActivateChild(Ue,Ce));else{if(!Xn(Vi))throw new Error("Invalid CanActivateChild guard");Mn=di(Vi(Ue,Ce))}return Mn.pipe((0,c.P)())});return(0,D.of)(ai).pipe(Nr())}));return(0,D.of)(Dt).pipe(Nr())}(Ce,nt.path,he),function ss(Ce,ge,he){const Ue=ge.routeConfig?ge.routeConfig.canActivate:null;if(!Ue||0===Ue.length)return(0,D.of)(!0);const nt=Ue.map(Dt=>(0,w.P)(()=>{const Qt=vi(Dt,ge,he);let ai;if(function lr(Ce){return Ce&&Xn(Ce.canActivate)}(Qt))ai=di(Qt.canActivate(ge,Ce));else{if(!Xn(Qt))throw new Error("Invalid CanActivate guard");ai=di(Qt(ge,Ce))}return ai.pipe((0,c.P)())}));return(0,D.of)(nt).pipe(Nr())}(Ce,nt.route,he))),(0,c.P)(nt=>!0!==nt,!0))}(Ue,Dt,Ce,ge):(0,D.of)(ai)),(0,se.U)(ai=>Object.assign(Object.assign({},he),{guardsResult:ai})))})}(this.ngModule.injector,ai=>this.triggerEvent(ai)),(0,S.b)(ai=>{if(tr(ai.guardsResult)){const Vi=ee(`Redirecting to "${this.serializeUrl(ai.guardsResult)}"`);throw Vi.url=ai.guardsResult,Vi}const Di=new ke(ai.id,this.serializeUrl(ai.extractedUrl),this.serializeUrl(ai.urlAfterRedirects),ai.targetSnapshot,!!ai.guardsResult);this.triggerEvent(Di)}),(0,W.h)(ai=>!!ai.guardsResult||(this.restoreHistory(ai),this.cancelNavigationTransition(ai,""),!1)),cn(ai=>{if(ai.guards.canActivateChecks.length)return(0,D.of)(ai).pipe((0,S.b)(Di=>{const Vi=new Ee(Di.id,this.serializeUrl(Di.extractedUrl),this.serializeUrl(Di.urlAfterRedirects),Di.targetSnapshot);this.triggerEvent(Vi)}),(0,J.w)(Di=>{let Vi=!1;return(0,D.of)(Di).pipe(function ii(Ce,ge){return(0,C.z)(he=>{const{targetSnapshot:Ue,guards:{canActivateChecks:nt}}=he;if(!nt.length)return(0,D.of)(he);let Dt=0;return(0,P.D)(nt).pipe((0,h.b)(Qt=>function ni(Ce,ge,he,Ue){return function Ci(Ce,ge,he,Ue){const nt=Pi(Ce);if(0===nt.length)return(0,D.of)({});const Dt={};return(0,P.D)(nt).pipe((0,C.z)(Qt=>function tn(Ce,ge,he,Ue){const nt=vi(Ce,ge,Ue);return di(nt.resolve?nt.resolve(ge,he):nt(ge,he))}(Ce[Qt],ge,he,Ue).pipe((0,S.b)(ai=>{Dt[Qt]=ai}))),ne(1),(0,C.z)(()=>Pi(Dt).length===nt.length?(0,D.of)(Dt):z.E))}(Ce._resolve,Ce,ge,Ue).pipe((0,se.U)(Dt=>(Ce._resolvedData=Dt,Ce.data=Object.assign(Object.assign({},Ce.data),sn(Ce,he).resolve),null)))}(Qt.route,Ue,Ce,ge)),(0,S.b)(()=>Dt++),ne(1),(0,C.z)(Qt=>Dt===nt.length?(0,D.of)(he):z.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,S.b)({next:()=>Vi=!0,complete:()=>{Vi||(this.restoreHistory(Di),this.cancelNavigationTransition(Di,"At least one route resolver didn't emit any value."))}}))}),(0,S.b)(Di=>{const Vi=new te(Di.id,this.serializeUrl(Di.extractedUrl),this.serializeUrl(Di.urlAfterRedirects),Di.targetSnapshot);this.triggerEvent(Vi)}))}),cn(ai=>{const{targetSnapshot:Di,id:Vi,extractedUrl:Mn,rawUrl:zi,extras:{skipLocationChange:un,replaceUrl:kn}}=ai;return this.hooks.afterPreactivation(Di,{navigationId:Vi,appliedUrlTree:Mn,rawUrlTree:zi,skipLocationChange:!!un,replaceUrl:!!kn})}),(0,se.U)(ai=>{const Di=function Ri(Ce,ge,he){const Ue=ki(Ce,ge._root,he?he._root:void 0);return new bi(Ue,ge)}(this.routeReuseStrategy,ai.targetSnapshot,ai.currentRouterState);return Object.assign(Object.assign({},ai),{targetRouterState:Di})}),(0,S.b)(ai=>{this.currentUrlTree=ai.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(ai.urlAfterRedirects,ai.rawUrl),this.routerState=ai.targetRouterState,"deferred"===this.urlUpdateStrategy&&(ai.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,ai),this.browserUrlTree=ai.urlAfterRedirects)}),((Ce,ge,he)=>(0,se.U)(Ue=>(new qr(ge,Ue.targetRouterState,Ue.currentRouterState,he).activate(Ce),Ue)))(this.rootContexts,this.routeReuseStrategy,ai=>this.triggerEvent(ai)),(0,S.b)({next(){Dt=!0},complete(){Dt=!0}}),(0,I.x)(()=>{var ai;Dt||Qt||this.cancelNavigationTransition(nt,`Navigation ID ${nt.id} is not equal to the current navigation id ${this.navigationId}`),(null===(ai=this.currentNavigation)||void 0===ai?void 0:ai.id)===nt.id&&(this.currentNavigation=null)}),(0,r.K)(ai=>{if(Qt=!0,function ue(Ce){return Ce&&Ce[G]}(ai)){const Di=tr(ai.url);Di||(this.navigated=!0,this.restoreHistory(nt,!0));const Vi=new H(nt.id,this.serializeUrl(nt.extractedUrl),ai.message);Ue.next(Vi),Di?setTimeout(()=>{const Mn=this.urlHandlingStrategy.merge(ai.url,this.rawUrlTree),zi={skipLocationChange:nt.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||tt(nt.source)};this.scheduleNavigation(Mn,"imperative",null,zi,{resolve:nt.resolve,reject:nt.reject,promise:nt.promise})},0):nt.resolve(!1)}else{this.restoreHistory(nt,!0);const Di=new $(nt.id,this.serializeUrl(nt.extractedUrl),ai);Ue.next(Di);try{nt.resolve(this.errorHandler(ai))}catch(Vi){nt.reject(Vi)}}return z.E}))}))}resetRootComponentType(he){this.rootComponentType=he,this.routerState.root.component=this.rootComponentType}setTransition(he){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),he))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(he=>{const Ue="popstate"===he.type?"popstate":"hashchange";"popstate"===Ue&&setTimeout(()=>{var nt;const Dt={replaceUrl:!0},Qt=(null===(nt=he.state)||void 0===nt?void 0:nt.navigationId)?he.state:null;if(Qt){const Di=Object.assign({},Qt);delete Di.navigationId,delete Di.\u0275routerPageId,0!==Object.keys(Di).length&&(Dt.state=Di)}const ai=this.parseUrl(he.url);this.scheduleNavigation(ai,Ue,Qt,Dt)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(he){this.events.next(he)}resetConfig(he){da(he),this.config=he.map(Ma),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(he,Ue={}){const{relativeTo:nt,queryParams:Dt,fragment:Qt,queryParamsHandling:ai,preserveFragment:Di}=Ue,Vi=nt||this.routerState.root,Mn=Di?this.currentUrlTree.fragment:Qt;let zi=null;switch(ai){case"merge":zi=Object.assign(Object.assign({},this.currentUrlTree.queryParams),Dt);break;case"preserve":zi=this.currentUrlTree.queryParams;break;default:zi=Dt||null}return null!==zi&&(zi=this.removeEmptyProps(zi)),function An(Ce,ge,he,Ue,nt){if(0===he.length)return wi(ge.root,ge.root,ge.root,Ue,nt);const Dt=function Gn(Ce){if("string"==typeof Ce[0]&&1===Ce.length&&"/"===Ce[0])return new bn(!0,0,Ce);let ge=0,he=!1;const Ue=Ce.reduce((nt,Dt,Qt)=>{if("object"==typeof Dt&&null!=Dt){if(Dt.outlets){const ai={};return Gt(Dt.outlets,(Di,Vi)=>{ai[Vi]="string"==typeof Di?Di.split("/"):Di}),[...nt,{outlets:ai}]}if(Dt.segmentPath)return[...nt,Dt.segmentPath]}return"string"!=typeof Dt?[...nt,Dt]:0===Qt?(Dt.split("/").forEach((ai,Di)=>{0==Di&&"."===ai||(0==Di&&""===ai?he=!0:".."===ai?ge++:""!=ai&&nt.push(ai))}),nt):[...nt,Dt]},[]);return new bn(he,ge,Ue)}(he);if(Dt.toRoot())return wi(ge.root,ge.root,new ut([],{}),Ue,nt);const Qt=function kr(Ce,ge,he){if(Ce.isAbsolute)return new ar(ge.root,!0,0);if(-1===he.snapshot._lastPathIndex){const Dt=he.snapshot._urlSegment;return new ar(Dt,Dt===ge.root,0)}const Ue=Kn(Ce.commands[0])?0:1;return function Pr(Ce,ge,he){let Ue=Ce,nt=ge,Dt=he;for(;Dt>nt;){if(Dt-=nt,Ue=Ue.parent,!Ue)throw new Error("Invalid number of '../'");nt=Ue.segments.length}return new ar(Ue,!1,nt-Dt)}(he.snapshot._urlSegment,he.snapshot._lastPathIndex+Ue,Ce.numberOfDoubleDots)}(Dt,ge,Ce),ai=Qt.processChildren?oa(Qt.segmentGroup,Qt.index,Dt.commands):sa(Qt.segmentGroup,Qt.index,Dt.commands);return wi(ge.root,Qt.segmentGroup,ai,Ue,nt)}(Vi,this.currentUrlTree,he,zi,null!=Mn?Mn:null)}navigateByUrl(he,Ue={skipLocationChange:!1}){const nt=tr(he)?he:this.parseUrl(he),Dt=this.urlHandlingStrategy.merge(nt,this.rawUrlTree);return this.scheduleNavigation(Dt,"imperative",null,Ue)}navigate(he,Ue={skipLocationChange:!1}){return function ka(Ce){for(let ge=0;ge<Ce.length;ge++){const he=Ce[ge];if(null==he)throw new Error(`The requested path contains ${he} segment at index ${ge}`)}}(he),this.navigateByUrl(this.createUrlTree(he,Ue),Ue)}serializeUrl(he){return this.urlSerializer.serialize(he)}parseUrl(he){let Ue;try{Ue=this.urlSerializer.parse(he)}catch(nt){Ue=this.malformedUriErrorHandler(nt,this.urlSerializer,he)}return Ue}isActive(he,Ue){let nt;if(nt=!0===Ue?Object.assign({},zr):!1===Ue?Object.assign({},zn):Ue,tr(he))return Qe(this.currentUrlTree,he,nt);const Dt=this.parseUrl(he);return Qe(this.currentUrlTree,Dt,nt)}removeEmptyProps(he){return Object.keys(he).reduce((Ue,nt)=>{const Dt=he[nt];return null!=Dt&&(Ue[nt]=Dt),Ue},{})}processNavigations(){this.navigations.subscribe(he=>{this.navigated=!0,this.lastSuccessfulId=he.id,this.currentPageId=he.targetPageId,this.events.next(new R(he.id,this.serializeUrl(he.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,he.resolve(!0)},he=>{this.console.warn(`Unhandled Navigation Error: ${he}`)})}scheduleNavigation(he,Ue,nt,Dt,Qt){var ai,Di;if(this.disposed)return Promise.resolve(!1);let Vi,Mn,zi;Qt?(Vi=Qt.resolve,Mn=Qt.reject,zi=Qt.promise):zi=new Promise((ns,Ss)=>{Vi=ns,Mn=Ss});const un=++this.navigationId;let kn;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(nt=this.location.getState()),kn=nt&&nt.\u0275routerPageId?nt.\u0275routerPageId:Dt.replaceUrl||Dt.skipLocationChange?null!==(ai=this.browserPageId)&&void 0!==ai?ai:0:(null!==(Di=this.browserPageId)&&void 0!==Di?Di:0)+1):kn=0,this.setTransition({id:un,targetPageId:kn,source:Ue,restoredState:nt,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:he,extras:Dt,resolve:Vi,reject:Mn,promise:zi,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),zi.catch(ns=>Promise.reject(ns))}setBrowserUrl(he,Ue){const nt=this.urlSerializer.serialize(he),Dt=Object.assign(Object.assign({},Ue.extras.state),this.generateNgRouterState(Ue.id,Ue.targetPageId));this.location.isCurrentPathEqualTo(nt)||Ue.extras.replaceUrl?this.location.replaceState(nt,"",Dt):this.location.go(nt,"",Dt)}restoreHistory(he,Ue=!1){var nt,Dt;if("computed"===this.canceledNavigationResolution){const Qt=this.currentPageId-he.targetPageId;"popstate"!==he.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(nt=this.currentNavigation)||void 0===nt?void 0:nt.finalUrl)||0===Qt?this.currentUrlTree===(null===(Dt=this.currentNavigation)||void 0===Dt?void 0:Dt.finalUrl)&&0===Qt&&(this.resetState(he),this.browserUrlTree=he.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(Qt)}else"replace"===this.canceledNavigationResolution&&(Ue&&this.resetState(he),this.resetUrlToCurrentUrlTree())}resetState(he){this.routerState=he.currentRouterState,this.currentUrlTree=he.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,he.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(he,Ue){const nt=new H(he.id,this.serializeUrl(he.extractedUrl),Ue);this.triggerEvent(nt),he.resolve(!1)}generateNgRouterState(he,Ue){return"computed"===this.canceledNavigationResolution?{navigationId:he,\u0275routerPageId:Ue}:{navigationId:he}}}return Ce.\u0275fac=function(he){e.$Z()},Ce.\u0275prov=e.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})();function tt(Ce){return"imperative"!==Ce}let Et=(()=>{class Ce{constructor(he,Ue,nt,Dt,Qt){this.router=he,this.route=Ue,this.tabIndexAttribute=nt,this.renderer=Dt,this.el=Qt,this.commands=null,this.onChanges=new U.x,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(he){if(null!=this.tabIndexAttribute)return;const Ue=this.renderer,nt=this.el.nativeElement;null!==he?Ue.setAttribute(nt,"tabindex",he):Ue.removeAttribute(nt,"tabindex")}ngOnChanges(he){this.onChanges.next(this)}set routerLink(he){null!=he?(this.commands=Array.isArray(he)?he:[he],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const he={skipLocationChange:Pt(this.skipLocationChange),replaceUrl:Pt(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,he),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:Pt(this.preserveFragment)})}}return Ce.\u0275fac=function(he){return new(he||Ce)(e.Y36(ur),e.Y36(Wi),e.$8M("tabindex"),e.Y36(e.Qsj),e.Y36(e.SBq))},Ce.\u0275dir=e.lG2({type:Ce,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(he,Ue){1&he&&e.NdJ("click",function(){return Ue.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[e.TTD]}),Ce})(),St=(()=>{class Ce{constructor(he,Ue,nt){this.router=he,this.route=Ue,this.locationStrategy=nt,this.commands=null,this.href=null,this.onChanges=new U.x,this.subscription=he.events.subscribe(Dt=>{Dt instanceof R&&this.updateTargetUrlAndHref()})}set routerLink(he){this.commands=null!=he?Array.isArray(he)?he:[he]:null}ngOnChanges(he){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(he,Ue,nt,Dt,Qt){if(0!==he||Ue||nt||Dt||Qt||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const ai={skipLocationChange:Pt(this.skipLocationChange),replaceUrl:Pt(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,ai),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:Pt(this.preserveFragment)})}}return Ce.\u0275fac=function(he){return new(he||Ce)(e.Y36(ur),e.Y36(Wi),e.Y36(n.S$))},Ce.\u0275dir=e.lG2({type:Ce,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(he,Ue){1&he&&e.NdJ("click",function(Dt){return Ue.onClick(Dt.button,Dt.ctrlKey,Dt.shiftKey,Dt.altKey,Dt.metaKey)}),2&he&&e.uIk("target",Ue.target)("href",Ue.href,e.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[e.TTD]}),Ce})();function Pt(Ce){return""===Ce||!!Ce}let qt=(()=>{class Ce{constructor(he,Ue,nt,Dt,Qt,ai){this.router=he,this.element=Ue,this.renderer=nt,this.cdr=Dt,this.link=Qt,this.linkWithHref=ai,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new e.vpe,this.routerEventsSubscription=he.events.subscribe(Di=>{Di instanceof R&&this.update()})}ngAfterContentInit(){(0,D.of)(this.links.changes,this.linksWithHrefs.changes,(0,D.of)(null)).pipe((0,_.J)()).subscribe(he=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var he;null===(he=this.linkInputChangesSubscription)||void 0===he||he.unsubscribe();const Ue=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(nt=>!!nt).map(nt=>nt.onChanges);this.linkInputChangesSubscription=(0,P.D)(Ue).pipe((0,_.J)()).subscribe(nt=>{this.isActive!==this.isLinkActive(this.router)(nt)&&this.update()})}set routerLinkActive(he){const Ue=Array.isArray(he)?he:he.split(" ");this.classes=Ue.filter(nt=>!!nt)}ngOnChanges(he){this.update()}ngOnDestroy(){var he;this.routerEventsSubscription.unsubscribe(),null===(he=this.linkInputChangesSubscription)||void 0===he||he.unsubscribe()}update(){!this.links||!this.linksWithHrefs||!this.router.navigated||Promise.resolve().then(()=>{const he=this.hasActiveLinks();this.isActive!==he&&(this.isActive=he,this.cdr.markForCheck(),this.classes.forEach(Ue=>{he?this.renderer.addClass(this.element.nativeElement,Ue):this.renderer.removeClass(this.element.nativeElement,Ue)}),this.isActiveChange.emit(he))})}isLinkActive(he){const Ue=function gi(Ce){return!!Ce.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return nt=>!!nt.urlTree&&he.isActive(nt.urlTree,Ue)}hasActiveLinks(){const he=this.isLinkActive(this.router);return this.link&&he(this.link)||this.linkWithHref&&he(this.linkWithHref)||this.links.some(he)||this.linksWithHrefs.some(he)}}return Ce.\u0275fac=function(he){return new(he||Ce)(e.Y36(ur),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.sBO),e.Y36(Et,8),e.Y36(St,8))},Ce.\u0275dir=e.lG2({type:Ce,selectors:[["","routerLinkActive",""]],contentQueries:function(he,Ue,nt){if(1&he&&(e.Suo(nt,Et,5),e.Suo(nt,St,5)),2&he){let Dt;e.iGM(Dt=e.CRH())&&(Ue.links=Dt),e.iGM(Dt=e.CRH())&&(Ue.linksWithHrefs=Dt)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[e.TTD]}),Ce})();class ti{}class Ei{preload(ge,he){return(0,D.of)(null)}}let Ki=(()=>{class Ce{constructor(he,Ue,nt,Dt){this.router=he,this.injector=nt,this.preloadingStrategy=Dt,this.loader=new Qn(nt,Ue,Di=>he.triggerEvent(new ze(Di)),Di=>he.triggerEvent(new be(Di)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,W.h)(he=>he instanceof R),(0,h.b)(()=>this.preload())).subscribe(()=>{})}preload(){const he=this.injector.get(e.h0i);return this.processRoutes(he,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(he,Ue){const nt=[];for(const Dt of Ue)if(Dt.loadChildren&&!Dt.canLoad&&Dt._loadedConfig){const Qt=Dt._loadedConfig;nt.push(this.processRoutes(Qt.module,Qt.routes))}else Dt.loadChildren&&!Dt.canLoad?nt.push(this.preloadConfig(he,Dt)):Dt.children&&nt.push(this.processRoutes(he,Dt.children));return(0,P.D)(nt).pipe((0,_.J)(),(0,se.U)(Dt=>{}))}preloadConfig(he,Ue){return this.preloadingStrategy.preload(Ue,()=>(Ue._loadedConfig?(0,D.of)(Ue._loadedConfig):this.loader.load(he.injector,Ue)).pipe((0,C.z)(Dt=>(Ue._loadedConfig=Dt,this.processRoutes(Dt.module,Dt.routes)))))}}return Ce.\u0275fac=function(he){return new(he||Ce)(e.LFG(ur),e.LFG(e.Sil),e.LFG(e.zs3),e.LFG(ti))},Ce.\u0275prov=e.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})(),Qi=(()=>{class Ce{constructor(he,Ue,nt={}){this.router=he,this.viewportScroller=Ue,this.options=nt,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},nt.scrollPositionRestoration=nt.scrollPositionRestoration||"disabled",nt.anchorScrolling=nt.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(he=>{he instanceof V?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=he.navigationTrigger,this.restoredId=he.restoredState?he.restoredState.navigationId:0):he instanceof R&&(this.lastId=he.id,this.scheduleScrollEvent(he,this.router.parseUrl(he.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(he=>{he instanceof Ae&&(he.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(he.position):he.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(he.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(he,Ue){this.router.triggerEvent(new Ae(he,"popstate"===this.lastSource?this.store[this.restoredId]:null,Ue))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return Ce.\u0275fac=function(he){e.$Z()},Ce.\u0275prov=e.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})();const xn=new e.OlP("ROUTER_CONFIGURATION"),jn=new e.OlP("ROUTER_FORROOT_GUARD"),On=[n.Ye,{provide:qe,useClass:Ze},{provide:ur,useFactory:function Br(Ce,ge,he,Ue,nt,Dt,Qt={},ai,Di){const Vi=new ur(null,Ce,ge,he,Ue,nt,Tt(Dt));return ai&&(Vi.urlHandlingStrategy=ai),Di&&(Vi.routeReuseStrategy=Di),function Na(Ce,ge){Ce.errorHandler&&(ge.errorHandler=Ce.errorHandler),Ce.malformedUriErrorHandler&&(ge.malformedUriErrorHandler=Ce.malformedUriErrorHandler),Ce.onSameUrlNavigation&&(ge.onSameUrlNavigation=Ce.onSameUrlNavigation),Ce.paramsInheritanceStrategy&&(ge.paramsInheritanceStrategy=Ce.paramsInheritanceStrategy),Ce.relativeLinkResolution&&(ge.relativeLinkResolution=Ce.relativeLinkResolution),Ce.urlUpdateStrategy&&(ge.urlUpdateStrategy=Ce.urlUpdateStrategy),Ce.canceledNavigationResolution&&(ge.canceledNavigationResolution=Ce.canceledNavigationResolution)}(Qt,Vi),Qt.enableTracing&&Vi.events.subscribe(Mn=>{var zi,un;null===(zi=console.group)||void 0===zi||zi.call(console,`Router Event: ${Mn.constructor.name}`),console.log(Mn.toString()),console.log(Mn),null===(un=console.groupEnd)||void 0===un||un.call(console)}),Vi},deps:[qe,mr,n.Ye,e.zs3,e.Sil,Ln,xn,[class xr{},new e.FiY],[class wn{},new e.FiY]]},mr,{provide:Wi,useFactory:function za(Ce){return Ce.routerState.root},deps:[ur]},Ki,Ei,class fi{preload(ge,he){return he().pipe((0,r.K)(()=>(0,D.of)(null)))}},{provide:xn,useValue:{enableTracing:!1}}];function Kr(){return new e.PXZ("Router",ur)}let _a=(()=>{class Ce{constructor(he,Ue){}static forRoot(he,Ue){return{ngModule:Ce,providers:[On,Ir(he),{provide:jn,useFactory:fr,deps:[[ur,new e.FiY,new e.tp0]]},{provide:xn,useValue:Ue||{}},{provide:n.S$,useFactory:_r,deps:[n.lw,[new e.tBr(n.mr),new e.FiY],xn]},{provide:Qi,useFactory:ir,deps:[ur,n.EM,xn]},{provide:ti,useExisting:Ue&&Ue.preloadingStrategy?Ue.preloadingStrategy:Ei},{provide:e.PXZ,multi:!0,useFactory:Kr},[Qa,{provide:e.ip1,multi:!0,useFactory:_e,deps:[Qa]},{provide:K,useFactory:Xe,deps:[Qa]},{provide:e.tb,multi:!0,useExisting:K}]]}}static forChild(he){return{ngModule:Ce,providers:[Ir(he)]}}}return Ce.\u0275fac=function(he){return new(he||Ce)(e.LFG(jn,8),e.LFG(ur,8))},Ce.\u0275mod=e.oAB({type:Ce}),Ce.\u0275inj=e.cJS({}),Ce})();function ir(Ce,ge,he){return he.scrollOffset&&ge.setOffset(he.scrollOffset),new Qi(Ce,ge,he)}function _r(Ce,ge,he={}){return he.useHash?new n.Do(Ce,ge):new n.b0(Ce,ge)}function fr(Ce){return"guarded"}function Ir(Ce){return[{provide:e.deG,multi:!0,useValue:Ce},{provide:Ln,multi:!0,useValue:Ce}]}let Qa=(()=>{class Ce{constructor(he){this.injector=he,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new U.x}appInitializer(){return this.injector.get(n.V_,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let Ue=null;const nt=new Promise(ai=>Ue=ai),Dt=this.injector.get(ur),Qt=this.injector.get(xn);return"disabled"===Qt.initialNavigation?(Dt.setUpLocationChangeListener(),Ue(!0)):"enabled"===Qt.initialNavigation||"enabledBlocking"===Qt.initialNavigation?(Dt.hooks.afterPreactivation=()=>this.initNavigation?(0,D.of)(null):(this.initNavigation=!0,Ue(!0),this.resultOfPreactivationDone),Dt.initialNavigation()):Ue(!0),nt})}bootstrapListener(he){const Ue=this.injector.get(xn),nt=this.injector.get(Ki),Dt=this.injector.get(Qi),Qt=this.injector.get(ur),ai=this.injector.get(e.z2F);he===ai.components[0]&&(("enabledNonBlocking"===Ue.initialNavigation||void 0===Ue.initialNavigation)&&Qt.initialNavigation(),nt.setUpPreloading(),Dt.init(),Qt.resetRootComponentType(ai.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return Ce.\u0275fac=function(he){return new(he||Ce)(e.LFG(e.zs3))},Ce.\u0275prov=e.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})();function _e(Ce){return Ce.appInitializer.bind(Ce)}function Xe(Ce){return Ce.bootstrapListener.bind(Ce)}const K=new e.OlP("Router Initializer")},9444:(He,j,p)=>{"use strict";p.d(j,{BN:()=>Zr,uH:()=>ka});var e=p(5e3);function i(tt,Et){var St=Object.keys(tt);if(Object.getOwnPropertySymbols){var Pt=Object.getOwnPropertySymbols(tt);Et&&(Pt=Pt.filter(function(qt){return Object.getOwnPropertyDescriptor(tt,qt).enumerable})),St.push.apply(St,Pt)}return St}function u(tt){for(var Et=1;Et<arguments.length;Et++){var St=null!=arguments[Et]?arguments[Et]:{};Et%2?i(Object(St),!0).forEach(function(Pt){D(tt,Pt,St[Pt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(tt,Object.getOwnPropertyDescriptors(St)):i(Object(St)).forEach(function(Pt){Object.defineProperty(tt,Pt,Object.getOwnPropertyDescriptor(St,Pt))})}return tt}function b(tt){return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(Et){return typeof Et}:function(Et){return Et&&"function"==typeof Symbol&&Et.constructor===Symbol&&Et!==Symbol.prototype?"symbol":typeof Et})(tt)}function d(tt,Et){for(var St=0;St<Et.length;St++){var Pt=Et[St];Pt.enumerable=Pt.enumerable||!1,Pt.configurable=!0,"value"in Pt&&(Pt.writable=!0),Object.defineProperty(tt,Pt.key,Pt)}}function D(tt,Et,St){return Et in tt?Object.defineProperty(tt,Et,{value:St,enumerable:!0,configurable:!0,writable:!0}):tt[Et]=St,tt}function A(tt,Et){return function w(tt){if(Array.isArray(tt))return tt}(tt)||function U(tt,Et){var St=null==tt?null:"undefined"!=typeof Symbol&&tt[Symbol.iterator]||tt["@@iterator"];if(null!=St){var ti,fi,Pt=[],qt=!0,gi=!1;try{for(St=St.call(tt);!(qt=(ti=St.next()).done)&&(Pt.push(ti.value),!Et||Pt.length!==Et);qt=!0);}catch(Ei){gi=!0,fi=Ei}finally{try{!qt&&null!=St.return&&St.return()}finally{if(gi)throw fi}}return Pt}}(tt,Et)||W(tt,Et)||function le(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(tt){return function k(tt){if(Array.isArray(tt))return ne(tt)}(tt)||function z(tt){if("undefined"!=typeof Symbol&&null!=tt[Symbol.iterator]||null!=tt["@@iterator"])return Array.from(tt)}(tt)||W(tt)||function Q(){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 W(tt,Et){if(tt){if("string"==typeof tt)return ne(tt,Et);var St=Object.prototype.toString.call(tt).slice(8,-1);if("Object"===St&&tt.constructor&&(St=tt.constructor.name),"Map"===St||"Set"===St)return Array.from(tt);if("Arguments"===St||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(St))return ne(tt,Et)}}function ne(tt,Et){(null==Et||Et>tt.length)&&(Et=tt.length);for(var St=0,Pt=new Array(Et);St<Et;St++)Pt[St]=tt[St];return Pt}var q=function(){},ie={},se={},J=null,me={mark:q,measure:q};try{"undefined"!=typeof window&&(ie=window),"undefined"!=typeof document&&(se=document),"undefined"!=typeof MutationObserver&&(J=MutationObserver),"undefined"!=typeof performance&&(me=performance)}catch(tt){}var t=(ie.navigator||{}).userAgent,r=void 0===t?"":t,h=ie,c=se,C=J,S=me,_=!!c.documentElement&&!!c.head&&"function"==typeof c.addEventListener&&"function"==typeof c.createElement,n=~r.indexOf("MSIE")||~r.indexOf("Trident/"),g="___FONT_AWESOME___",H="svg-inline--fa",$="data-fa-i2svg",fe="data-fa-pseudo-element",ke="data-prefix",Ee="data-icon",te="fontawesome-i2svg",be=["HTML","HEAD","STYLE","SCRIPT"],Z=function(){try{return!0}catch(tt){return!1}}(),Y={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",fa:"solid"},ot={solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"},Ie={fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},Ae={"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},ce=/fa[srltdbk]?[\-\ ]/,Te="fa-layers-text",xe=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Kit)?.*/i,G={900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},ee=[1,2,3,4,5,6,7,8,9,10],ue=ee.concat([11,12,13,14,15,16,17,18,19,20]),ve=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],lt=[].concat(E(Object.keys(ot)),["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul","duotone-group","swap-opacity","primary","secondary"]).concat(ee.map(function(tt){return"".concat(tt,"x")})).concat(ue.map(function(tt){return"w-".concat(tt)})),ht=h.FontAwesomeConfig||{};c&&"function"==typeof c.querySelector&&[["data-family-prefix","familyPrefix"],["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(tt){var Et=A(tt,2),Pt=Et[1],qt=function hi(tt){return""===tt||"false"!==tt&&("true"===tt||tt)}(function Tt(tt){var Et=c.querySelector("script["+tt+"]");if(Et)return Et.getAttribute(tt)}(Et[0]));null!=qt&&(ht[Pt]=qt)});var di=u(u({},{familyPrefix:"fa",styleDefault:"solid",replacementClass:H,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0}),ht);di.autoReplaceSvg||(di.observeMutations=!1);var vt={};Object.keys(di).forEach(function(tt){Object.defineProperty(vt,tt,{enumerable:!0,set:function(St){di[tt]=St,kt.forEach(function(Pt){return Pt(vt)})},get:function(){return di[tt]}})}),h.FontAwesomeConfig=vt;var kt=[],_t={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function Pe(){for(var tt=12,Et="";tt-- >0;)Et+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return Et}function De(tt){for(var Et=[],St=(tt||[]).length>>>0;St--;)Et[St]=tt[St];return Et}function oe(tt){return tt.classList?De(tt.classList):(tt.getAttribute("class")||"").split(" ").filter(function(Et){return Et})}function Me(tt){return"".concat(tt).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function ft(tt){return Object.keys(tt||{}).reduce(function(Et,St){return Et+"".concat(St,": ").concat(tt[St].trim(),";")},"")}function Rt(tt){return tt.size!==_t.size||tt.x!==_t.x||tt.y!==_t.y||tt.rotate!==_t.rotate||tt.flipX||tt.flipY}function Ze(){var Et=H,St=vt.familyPrefix,Pt=vt.replacementClass,qt=':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-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, 0);\n animation-delay: var(--fa-animation-delay, 0);\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, 0);\n animation-delay: var(--fa-animation-delay, 0);\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, 0);\n animation-delay: var(--fa-animation-delay, 0);\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, 0);\n animation-delay: var(--fa-animation-delay, 0);\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, 0);\n animation-delay: var(--fa-animation-delay, 0);\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, 0);\n animation-delay: var(--fa-animation-delay, 0);\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, 0);\n animation-delay: var(--fa-animation-delay, 0);\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"!==St||Pt!==Et){var gi=new RegExp("\\.".concat("fa","\\-"),"g"),ti=new RegExp("\\--".concat("fa","\\-"),"g"),fi=new RegExp("\\.".concat(Et),"g");qt=qt.replace(gi,".".concat(St,"-")).replace(ti,"--".concat(St,"-")).replace(fi,".".concat(Pt))}return qt}var we=!1;function Fe(){vt.autoAddCss&&!we&&(function ei(tt){if(tt&&_){var Et=c.createElement("style");Et.setAttribute("type","text/css"),Et.innerHTML=tt;for(var St=c.head.childNodes,Pt=null,qt=St.length-1;qt>-1;qt--){var gi=St[qt],ti=(gi.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(ti)>-1&&(Pt=gi)}c.head.insertBefore(Et,Pt)}}(Ze()),we=!0)}var rt={mixout:function(){return{dom:{css:Ze,insertCss:Fe}}},hooks:function(){return{beforeDOMElementCreation:function(){Fe()},beforeI2svg:function(){Fe()}}}},at=h||{};at[g]||(at[g]={}),at[g].styles||(at[g].styles={}),at[g].hooks||(at[g].hooks={}),at[g].shims||(at[g].shims=[]);var yt=at[g],mi=[],Jt=!1;function qi(tt){!_||(Jt?setTimeout(tt,0):mi.push(tt))}function ui(tt){var Et=tt.tag,St=tt.attributes,Pt=void 0===St?{}:St,qt=tt.children,gi=void 0===qt?[]:qt;return"string"==typeof tt?Me(tt):"<".concat(Et," ").concat(function ut(tt){return Object.keys(tt||{}).reduce(function(Et,St){return Et+"".concat(St,'="').concat(Me(tt[St]),'" ')},"").trim()}(Pt),">").concat(gi.map(ui).join(""),"</").concat(Et,">")}function si(tt,Et,St){if(tt&&tt[Et]&&tt[Et][St])return{prefix:Et,iconName:St,icon:tt[Et][St]}}_&&((Jt=(c.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(c.readyState))||c.addEventListener("DOMContentLoaded",function tt(){c.removeEventListener("DOMContentLoaded",tt),Jt=1,mi.map(function(Et){return Et()})}));var Ui=function(Et,St,Pt,qt){var Ei,Ki,Qi,gi=Object.keys(Et),ti=gi.length,fi=void 0!==qt?function(Et,St){return function(Pt,qt,gi,ti){return Et.call(St,Pt,qt,gi,ti)}}(St,qt):St;for(void 0===Pt?(Ei=1,Qi=Et[gi[0]]):(Ei=0,Qi=Pt);Ei<ti;Ei++)Qi=fi(Qi,Et[Ki=gi[Ei]],Ki,Et);return Qi};function Gi(tt){var Et=function Bi(tt){for(var Et=[],St=0,Pt=tt.length;St<Pt;){var qt=tt.charCodeAt(St++);if(qt>=55296&&qt<=56319&&St<Pt){var gi=tt.charCodeAt(St++);56320==(64512&gi)?Et.push(((1023&qt)<<10)+(1023&gi)+65536):(Et.push(qt),St--)}else Et.push(qt)}return Et}(tt);return 1===Et.length?Et[0].toString(16):null}function Ft(tt){return Object.keys(tt).reduce(function(Et,St){var Pt=tt[St];return Pt.icon?Et[Pt.iconName]=Pt.icon:Et[St]=Pt,Et},{})}function pt(tt,Et){var St=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},Pt=St.skipHooks,qt=void 0!==Pt&&Pt,gi=Ft(Et);"function"!=typeof yt.hooks.addPack||qt?yt.styles[tt]=u(u({},yt.styles[tt]||{}),gi):yt.hooks.addPack(tt,Ft(Et)),"fas"===tt&&pt("fa",Et)}var It=yt.styles,de=yt.shims,$e=Object.values(Ie),bt=null,Vt={},bi={},Li={},Ji={},Wi={},sn=Object.keys(Y);function Yt(tt,Et){var St=Et.split("-"),Pt=St[0],qt=St.slice(1).join("-");return Pt!==tt||""===qt||function mn(tt){return~lt.indexOf(tt)}(qt)?null:qt}var Mi=function(){var Et=function(gi){return Ui(It,function(ti,fi,Ei){return ti[Ei]=Ui(fi,gi,{}),ti},{})};Vt=Et(function(qt,gi,ti){return gi[3]&&(qt[gi[3]]=ti),gi[2]&&gi[2].filter(function(Ei){return"number"==typeof Ei}).forEach(function(Ei){qt[Ei.toString(16)]=ti}),qt}),bi=Et(function(qt,gi,ti){return qt[ti]=ti,gi[2]&&gi[2].filter(function(Ei){return"string"==typeof Ei}).forEach(function(Ei){qt[Ei]=ti}),qt}),Wi=Et(function(qt,gi,ti){var fi=gi[2];return qt[ti]=ti,fi.forEach(function(Ei){qt[Ei]=ti}),qt});var St="far"in It||vt.autoFetchSvg,Pt=Ui(de,function(qt,gi){var ti=gi[0],fi=gi[1],Ei=gi[2];return"far"===fi&&!St&&(fi="fas"),"string"==typeof ti&&(qt.names[ti]={prefix:fi,iconName:Ei}),"number"==typeof ti&&(qt.unicodes[ti.toString(16)]={prefix:fi,iconName:Ei}),qt},{names:{},unicodes:{}});Li=Pt.names,Ji=Pt.unicodes,bt=Hn(vt.styleDefault)};function Je(tt,Et){return(Vt[tt]||{})[Et]}function Kt(tt,Et){return(Wi[tt]||{})[Et]}function pi(tt){return Li[tt]||{prefix:null,iconName:null}}function ki(){return bt}function Hn(tt){return ot[tt]||ot[Y[tt]]||(tt in yt.styles?tt:null)||null}function An(tt){var Et=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},St=Et.skipLookups,Pt=void 0!==St&&St,qt=null,gi=tt.reduce(function(ti,fi){var Ei=Yt(vt.familyPrefix,fi);if(It[fi]?(fi=$e.includes(fi)?Ae[fi]:fi,qt=fi,ti.prefix=fi):sn.indexOf(fi)>-1?(qt=fi,ti.prefix=Hn(fi)):Ei?ti.iconName=Ei:fi!==vt.replacementClass&&ti.rest.push(fi),!Pt&&ti.prefix&&ti.iconName){var Ki="fa"===qt?pi(ti.iconName):{},Qi=Kt(ti.prefix,ti.iconName);Ki.prefix&&(qt=null),ti.iconName=Ki.iconName||Qi||ti.iconName,ti.prefix=Ki.prefix||ti.prefix,"far"===ti.prefix&&!It.far&&It.fas&&!vt.autoFetchSvg&&(ti.prefix="fas")}return ti},{prefix:null,iconName:null,rest:[]});return("fa"===gi.prefix||"fa"===qt)&&(gi.prefix=ki()||"fas"),gi}(function gt(tt){kt.push(tt)})(function(tt){bt=Hn(tt.styleDefault)}),Mi();var Kn=function(){function tt(){(function y(tt,Et){if(!(tt instanceof Et))throw new TypeError("Cannot call a class as a function")})(this,tt),this.definitions={}}return function P(tt,Et,St){Et&&d(tt.prototype,Et),St&&d(tt,St),Object.defineProperty(tt,"prototype",{writable:!1})}(tt,[{key:"add",value:function(){for(var St=this,Pt=arguments.length,qt=new Array(Pt),gi=0;gi<Pt;gi++)qt[gi]=arguments[gi];var ti=qt.reduce(this._pullDefinitions,{});Object.keys(ti).forEach(function(fi){St.definitions[fi]=u(u({},St.definitions[fi]||{}),ti[fi]),pt(fi,ti[fi]);var Ei=Ie[fi];Ei&&pt(Ei,ti[fi]),Mi()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(St,Pt){var qt=Pt.prefix&&Pt.iconName&&Pt.icon?{0:Pt}:Pt;return Object.keys(qt).map(function(gi){var ti=qt[gi],fi=ti.prefix,Ei=ti.iconName,Ki=ti.icon,Qi=Ki[2];St[fi]||(St[fi]={}),Qi.length>0&&Qi.forEach(function(on){"string"==typeof on&&(St[fi][on]=Ki)}),St[fi][Ei]=Ki}),St}}]),tt}(),Cn=[],wi={},Yi={},bn=Object.keys(Yi);function ar(tt,Et){for(var St=arguments.length,Pt=new Array(St>2?St-2:0),qt=2;qt<St;qt++)Pt[qt-2]=arguments[qt];var gi=wi[tt]||[];return gi.forEach(function(ti){Et=ti.apply(null,[Et].concat(Pt))}),Et}function kr(tt){for(var Et=arguments.length,St=new Array(Et>1?Et-1:0),Pt=1;Pt<Et;Pt++)St[Pt-1]=arguments[Pt];var qt=wi[tt]||[];qt.forEach(function(gi){gi.apply(null,St)})}function Pr(){var tt=arguments[0],Et=Array.prototype.slice.call(arguments,1);return Yi[tt]?Yi[tt].apply(null,Et):void 0}function ia(tt){"fa"===tt.prefix&&(tt.prefix="fas");var Et=tt.iconName,St=tt.prefix||ki();if(Et)return Et=Kt(St,Et)||Et,si(sa.definitions,St,Et)||si(yt.styles,St,Et)}var sa=new Kn,La={i2svg:function(){var Et=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _?(kr("beforeI2svg",Et),Pr("pseudoElements2svg",Et),Pr("i2svg",Et)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var Et=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},St=Et.autoReplaceSvgRoot;!1===vt.autoReplaceSvg&&(vt.autoReplaceSvg=!0),vt.observeMutations=!0,qi(function(){Yr({autoReplaceSvgRoot:St}),kr("watch",Et)})}},rr={noAuto:function(){vt.autoReplaceSvg=!1,vt.observeMutations=!1,kr("noAuto")},config:vt,dom:La,parse:{icon:function(Et){if(null===Et)return null;if("object"===b(Et)&&Et.prefix&&Et.iconName)return{prefix:Et.prefix,iconName:Kt(Et.prefix,Et.iconName)||Et.iconName};if(Array.isArray(Et)&&2===Et.length){var St=0===Et[1].indexOf("fa-")?Et[1].slice(3):Et[1],Pt=Hn(Et[0]);return{prefix:Pt,iconName:Kt(Pt,St)||St}}if("string"==typeof Et&&(Et.indexOf("".concat(vt.familyPrefix,"-"))>-1||Et.match(ce))){var qt=An(Et.split(" "),{skipLookups:!0});return{prefix:qt.prefix||ki(),iconName:Kt(qt.prefix,qt.iconName)||qt.iconName}}if("string"==typeof Et){var gi=ki();return{prefix:gi,iconName:Kt(gi,Et)||Et}}}},library:sa,findIconDefinition:ia,toHtml:ui},Yr=function(){var Et=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},St=Et.autoReplaceSvgRoot,Pt=void 0===St?c:St;(Object.keys(yt.styles).length>0||vt.autoFetchSvg)&&_&&vt.autoReplaceSvg&&rr.dom.i2svg({node:Pt})};function na(tt,Et){return Object.defineProperty(tt,"abstract",{get:Et}),Object.defineProperty(tt,"html",{get:function(){return tt.abstract.map(function(Pt){return ui(Pt)})}}),Object.defineProperty(tt,"node",{get:function(){if(_){var Pt=c.createElement("div");return Pt.innerHTML=tt.html,Pt.children}}}),tt}function xa(tt){var Et=tt.icons,St=Et.main,Pt=Et.mask,qt=tt.prefix,gi=tt.iconName,ti=tt.transform,fi=tt.symbol,Ei=tt.title,Ki=tt.maskId,Qi=tt.titleId,on=tt.extra,xn=tt.watchable,jn=void 0!==xn&&xn,On=Pt.found?Pt:St,Kr=On.width,_a=On.height,ir="fak"===qt,_r=[vt.replacementClass,gi?"".concat(vt.familyPrefix,"-").concat(gi):""].filter(function(_e){return-1===on.classes.indexOf(_e)}).filter(function(_e){return""!==_e||!!_e}).concat(on.classes).join(" "),fr={children:[],attributes:u(u({},on.attributes),{},{"data-prefix":qt,"data-icon":gi,class:_r,role:on.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(Kr," ").concat(_a)})},Ir=ir&&!~on.classes.indexOf("fa-fw")?{width:"".concat(Kr/_a*16*.0625,"em")}:{};jn&&(fr.attributes[$]=""),Ei&&(fr.children.push({tag:"title",attributes:{id:fr.attributes["aria-labelledby"]||"title-".concat(Qi||Pe())},children:[Ei]}),delete fr.attributes.title);var Br=u(u({},fr),{},{prefix:qt,iconName:gi,main:St,mask:Pt,maskId:Ki,transform:ti,symbol:fi,styles:u(u({},Ir),on.styles)}),Na=Pt.found&&St.found?Pr("generateAbstractMask",Br)||{children:[],attributes:{}}:Pr("generateAbstractIcon",Br)||{children:[],attributes:{}},Qa=Na.attributes;return Br.children=Na.children,Br.attributes=Qa,fi?function qr(tt){var St=tt.iconName,Pt=tt.children,qt=tt.attributes,gi=tt.symbol,ti=!0===gi?"".concat(tt.prefix,"-").concat(vt.familyPrefix,"-").concat(St):gi;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:u(u({},qt),{},{id:ti}),children:Pt}]}]}(Br):function Ra(tt){var Et=tt.children,St=tt.main,Pt=tt.mask,qt=tt.attributes,gi=tt.styles,ti=tt.transform;if(Rt(ti)&&St.found&&!Pt.found){var Ki={x:St.width/St.height/2,y:.5};qt.style=ft(u(u({},gi),{},{"transform-origin":"".concat(Ki.x+ti.x/16,"em ").concat(Ki.y+ti.y/16,"em")}))}return[{tag:"svg",attributes:qt,children:Et}]}(Br)}function Rr(tt){var Et=tt.content,St=tt.width,Pt=tt.height,qt=tt.transform,gi=tt.title,ti=tt.extra,fi=tt.watchable,Ei=void 0!==fi&&fi,Ki=u(u(u({},ti.attributes),gi?{title:gi}:{}),{},{class:ti.classes.join(" ")});Ei&&(Ki[$]="");var Qi=u({},ti.styles);Rt(qt)&&(Qi.transform=function Re(tt){var Et=tt.transform,St=tt.width,qt=tt.height,gi=void 0===qt?16:qt,ti=tt.startCentered,fi=void 0!==ti&&ti,Ei="";return Ei+=fi&&n?"translate(".concat(Et.x/16-(void 0===St?16:St)/2,"em, ").concat(Et.y/16-gi/2,"em) "):fi?"translate(calc(-50% + ".concat(Et.x/16,"em), calc(-50% + ").concat(Et.y/16,"em)) "):"translate(".concat(Et.x/16,"em, ").concat(Et.y/16,"em) "),(Ei+="scale(".concat(Et.size/16*(Et.flipX?-1:1),", ").concat(Et.size/16*(Et.flipY?-1:1),") "))+"rotate(".concat(Et.rotate,"deg) ")}({transform:qt,startCentered:!0,width:St,height:Pt}),Qi["-webkit-transform"]=Qi.transform);var on=ft(Qi);on.length>0&&(Ki.style=on);var xn=[];return xn.push({tag:"span",attributes:Ki,children:[Et]}),gi&&xn.push({tag:"span",attributes:{class:"sr-only"},children:[gi]}),xn}function Xn(tt){var Et=tt.content,St=tt.title,Pt=tt.extra,qt=u(u(u({},Pt.attributes),St?{title:St}:{}),{},{class:Pt.classes.join(" ")}),gi=ft(Pt.styles);gi.length>0&&(qt.style=gi);var ti=[];return ti.push({tag:"span",attributes:qt,children:[Et]}),St&&ti.push({tag:"span",attributes:{class:"sr-only"},children:[St]}),ti}var la=yt.styles;function tr(tt){var Et=tt[0],St=tt[1],gi=A(tt.slice(4),1)[0];return{found:!0,width:Et,height:St,icon:Array.isArray(gi)?{tag:"g",attributes:{class:"".concat(vt.familyPrefix,"-").concat("duotone-group")},children:[{tag:"path",attributes:{class:"".concat(vt.familyPrefix,"-").concat("secondary"),fill:"currentColor",d:gi[0]}},{tag:"path",attributes:{class:"".concat(vt.familyPrefix,"-").concat("primary"),fill:"currentColor",d:gi[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:gi}}}}var wr={found:!1,width:512,height:512};function ma(tt,Et){var St=Et;return"fa"===Et&&null!==vt.styleDefault&&(Et=ki()),new Promise(function(Pt,qt){if(Pr("missingIconAbstract"),"fa"===St){var ti=pi(tt)||{};tt=ti.iconName||tt,Et=ti.prefix||Et}if(tt&&Et&&la[Et]&&la[Et][tt])return Pt(tr(la[Et][tt]));(function lr(tt,Et){!Z&&!vt.showMissingIcons&&tt&&console.error('Icon with name "'.concat(tt,'" and prefix "').concat(Et,'" is missing.'))})(tt,Et),Pt(u(u({},wr),{},{icon:vt.showMissingIcons&&tt&&Pr("missingIconAbstract")||{}}))})}var jr=function(){},Dr=vt.measurePerformance&&S&&S.mark&&S.measure?S:{mark:jr,measure:jr},Nr='FA "6.1.2"',gr_begin=function(Et){return Dr.mark("".concat(Nr," ").concat(Et," begins")),function(){return function(Et){Dr.mark("".concat(Nr," ").concat(Et," ends")),Dr.measure("".concat(Nr," ").concat(Et),"".concat(Nr," ").concat(Et," begins"),"".concat(Nr," ").concat(Et," ends"))}(Et)}},ra=function(){};function ca(tt){return"string"==typeof(tt.getAttribute?tt.getAttribute($):null)}function Ma(tt){return c.createElementNS("http://www.w3.org/2000/svg",tt)}function $n(tt){return c.createElement(tt)}function qn(tt){var Et=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},St=Et.ceFn,Pt=void 0===St?"svg"===tt.tag?Ma:$n:St;if("string"==typeof tt)return c.createTextNode(tt);var qt=Pt(tt.tag);Object.keys(tt.attributes||[]).forEach(function(ti){qt.setAttribute(ti,tt.attributes[ti])});var gi=tt.children||[];return gi.forEach(function(ti){qt.appendChild(qn(ti,{ceFn:Pt}))}),qt}var br={replace:function(Et){var St=Et[0];if(St.parentNode)if(Et[1].forEach(function(qt){St.parentNode.insertBefore(qn(qt),St)}),null===St.getAttribute($)&&vt.keepOriginalSource){var Pt=c.createComment(function Hr(tt){var Et=" ".concat(tt.outerHTML," ");return"".concat(Et,"Font Awesome fontawesome.com ")}(St));St.parentNode.replaceChild(Pt,St)}else St.remove()},nest:function(Et){var St=Et[0],Pt=Et[1];if(~oe(St).indexOf(vt.replacementClass))return br.replace(Et);var qt=new RegExp("".concat(vt.familyPrefix,"-.*"));if(delete Pt[0].attributes.id,Pt[0].attributes.class){var gi=Pt[0].attributes.class.split(" ").reduce(function(fi,Ei){return Ei===vt.replacementClass||Ei.match(qt)?fi.toSvg.push(Ei):fi.toNode.push(Ei),fi},{toNode:[],toSvg:[]});Pt[0].attributes.class=gi.toSvg.join(" "),0===gi.toNode.length?St.removeAttribute("class"):St.setAttribute("class",gi.toNode.join(" "))}var ti=Pt.map(function(fi){return ui(fi)}).join("\n");St.setAttribute($,""),St.innerHTML=ti}};function Fr(tt){tt()}function ha(tt,Et){var St="function"==typeof Et?Et:ra;if(0===tt.length)St();else{var Pt=Fr;"async"===vt.mutateApproach&&(Pt=h.requestAnimationFrame||Fr),Pt(function(){var qt=function ga(){return!0===vt.autoReplaceSvg?br.replace:br[vt.autoReplaceSvg]||br.replace}(),gi=gr_begin("mutate");tt.map(qt),gi(),St()})}}var Aa=!1;function Wn(){Aa=!0}function je(){Aa=!1}var Mt=null;function Ye(tt){if(C&&vt.observeMutations){var Et=tt.treeCallback,St=void 0===Et?ra:Et,Pt=tt.nodeCallback,qt=void 0===Pt?ra:Pt,gi=tt.pseudoElementsCallback,ti=void 0===gi?ra:gi,fi=tt.observeMutationsRoot,Ei=void 0===fi?c:fi;Mt=new C(function(Ki){if(!Aa){var Qi=ki();De(Ki).forEach(function(on){if("childList"===on.type&&on.addedNodes.length>0&&!ca(on.addedNodes[0])&&(vt.searchPseudoElements&&ti(on.target),St(on.target)),"attributes"===on.type&&on.target.parentNode&&vt.searchPseudoElements&&ti(on.target.parentNode),"attributes"===on.type&&ca(on.target)&&~ve.indexOf(on.attributeName))if("class"===on.attributeName&&function da(tt){var Et=tt.getAttribute?tt.getAttribute(ke):null,St=tt.getAttribute?tt.getAttribute(Ee):null;return Et&&St}(on.target)){var xn=An(oe(on.target)),On=xn.iconName;on.target.setAttribute(ke,xn.prefix||Qi),On&&on.target.setAttribute(Ee,On)}else(function Jn(tt){return tt&&tt.classList&&tt.classList.contains&&tt.classList.contains(vt.replacementClass)})(on.target)&&qt(on.target)})}}),_&&Mt.observe(Ei,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function ri(tt){var Et=tt.getAttribute("style"),St=[];return Et&&(St=Et.split(";").reduce(function(Pt,qt){var gi=qt.split(":"),ti=gi[0],fi=gi.slice(1);return ti&&fi.length>0&&(Pt[ti]=fi.join(":").trim()),Pt},{})),St}function Si(tt){var Et=tt.getAttribute("data-prefix"),St=tt.getAttribute("data-icon"),Pt=void 0!==tt.innerText?tt.innerText.trim():"",qt=An(oe(tt));return qt.prefix||(qt.prefix=ki()),Et&&St&&(qt.prefix=Et,qt.iconName=St),qt.iconName&&qt.prefix||(qt.prefix&&Pt.length>0&&(qt.iconName=function Nt(tt,Et){return(bi[tt]||{})[Et]}(qt.prefix,tt.innerText)||Je(qt.prefix,Gi(tt.innerText))),!qt.iconName&&vt.autoFetchSvg&&tt.firstChild&&tt.firstChild.nodeType===Node.TEXT_NODE&&(qt.iconName=tt.firstChild.data)),qt}function Oi(tt){var Et=De(tt.attributes).reduce(function(qt,gi){return"class"!==qt.name&&"style"!==qt.name&&(qt[gi.name]=gi.value),qt},{}),St=tt.getAttribute("title"),Pt=tt.getAttribute("data-fa-title-id");return vt.autoA11y&&(St?Et["aria-labelledby"]="".concat(vt.replacementClass,"-title-").concat(Pt||Pe()):(Et["aria-hidden"]="true",Et.focusable="false")),Et}function Yn(tt){var Et=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},St=Si(tt),Pt=St.iconName,qt=St.prefix,gi=St.rest,ti=Oi(tt),fi=ar("parseNodeAttributes",{},tt),Ei=Et.styleParser?ri(tt):[];return u({iconName:Pt,title:tt.getAttribute("title"),titleId:tt.getAttribute("data-fa-title-id"),prefix:qt,transform:_t,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:gi,styles:Ei,attributes:ti}},fi)}var At=yt.styles;function oi(tt){var Et="nest"===vt.autoReplaceSvg?Yn(tt,{styleParser:!1}):Yn(tt);return~Et.extra.classes.indexOf(Te)?Pr("generateLayersText",tt,Et):Pr("generateSvgReplacementMutation",tt,Et)}function mt(tt){var Et=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!_)return Promise.resolve();var St=c.documentElement.classList,Pt=function(on){return St.add("".concat(te,"-").concat(on))},qt=function(on){return St.remove("".concat(te,"-").concat(on))},gi=Object.keys(vt.autoFetchSvg?Y:At);gi.includes("fa")||gi.push("fa");var ti=[".".concat(Te,":not([").concat($,"])")].concat(gi.map(function(Qi){return".".concat(Qi,":not([").concat($,"])")})).join(", ");if(0===ti.length)return Promise.resolve();var fi=[];try{fi=De(tt.querySelectorAll(ti))}catch(Qi){}if(!(fi.length>0))return Promise.resolve();Pt("pending"),qt("complete");var Ei=gr_begin("onTree"),Ki=fi.reduce(function(Qi,on){try{var xn=oi(on);xn&&Qi.push(xn)}catch(jn){Z||"MissingIcon"===jn.name&&console.error(jn)}return Qi},[]);return new Promise(function(Qi,on){Promise.all(Ki).then(function(xn){ha(xn,function(){Pt("active"),Pt("complete"),qt("pending"),"function"==typeof Et&&Et(),Ei(),Qi()})}).catch(function(xn){Ei(),on(xn)})})}function $t(tt){var Et=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;oi(tt).then(function(St){St&&ha([St],Et)})}var ji=function(Et){var St=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Pt=St.transform,qt=void 0===Pt?_t:Pt,gi=St.symbol,ti=void 0!==gi&&gi,fi=St.mask,Ei=void 0===fi?null:fi,Ki=St.maskId,Qi=void 0===Ki?null:Ki,on=St.title,xn=void 0===on?null:on,jn=St.titleId,On=void 0===jn?null:jn,Kr=St.classes,_a=void 0===Kr?[]:Kr,ir=St.attributes,_r=void 0===ir?{}:ir,fr=St.styles,Ir=void 0===fr?{}:fr;if(Et){var Br=Et.prefix,Na=Et.iconName,za=Et.icon;return na(u({type:"icon"},Et),function(){return kr("beforeDOMElementCreation",{iconDefinition:Et,params:St}),vt.autoA11y&&(xn?_r["aria-labelledby"]="".concat(vt.replacementClass,"-title-").concat(On||Pe()):(_r["aria-hidden"]="true",_r.focusable="false")),xa({icons:{main:tr(za),mask:Ei?tr(Ei.icon):{found:!1,width:null,height:null,icon:{}}},prefix:Br,iconName:Na,transform:u(u({},_t),qt),symbol:ti,title:xn,maskId:Qi,titleId:On,extra:{attributes:_r,styles:Ir,classes:_a}})})}},Ke={mixout:function(){return{icon:(tt=ji,function(Et){var St=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Pt=(Et||{}).icon?Et:ia(Et||{}),qt=St.mask;return qt&&(qt=(qt||{}).icon?qt:ia(qt||{})),tt(Pt,u(u({},St),{},{mask:qt}))})};var tt},hooks:function(){return{mutationObserverCallbacks:function(St){return St.treeCallback=mt,St.nodeCallback=$t,St}}},provides:function(Et){Et.i2svg=function(St){var Pt=St.node,gi=St.callback;return mt(void 0===Pt?c:Pt,void 0===gi?function(){}:gi)},Et.generateSvgReplacementMutation=function(St,Pt){var qt=Pt.iconName,gi=Pt.title,ti=Pt.titleId,fi=Pt.prefix,Ei=Pt.transform,Ki=Pt.symbol,Qi=Pt.mask,on=Pt.maskId,xn=Pt.extra;return new Promise(function(jn,On){Promise.all([ma(qt,fi),Qi.iconName?ma(Qi.iconName,Qi.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(Kr){var _a=A(Kr,2);jn([St,xa({icons:{main:_a[0],mask:_a[1]},prefix:fi,iconName:qt,transform:Ei,symbol:Ki,maskId:on,title:gi,titleId:ti,extra:xn,watchable:!0})])}).catch(On)})},Et.generateAbstractIcon=function(St){var Ki,Pt=St.children,qt=St.attributes,gi=St.main,ti=St.transform,Ei=ft(St.styles);return Ei.length>0&&(qt.style=Ei),Rt(ti)&&(Ki=Pr("generateAbstractTransformGrouping",{main:gi,transform:ti,containerWidth:gi.width,iconWidth:gi.width})),Pt.push(Ki||gi.icon),{children:Pt,attributes:qt}}}},Be={mixout:function(){return{layer:function(St){var Pt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},qt=Pt.classes,gi=void 0===qt?[]:qt;return na({type:"layer"},function(){kr("beforeDOMElementCreation",{assembler:St,params:Pt});var ti=[];return St(function(fi){Array.isArray(fi)?fi.map(function(Ei){ti=ti.concat(Ei.abstract)}):ti=ti.concat(fi.abstract)}),[{tag:"span",attributes:{class:["".concat(vt.familyPrefix,"-layers")].concat(E(gi)).join(" ")},children:ti}]})}}}},Ne={mixout:function(){return{counter:function(St){var Pt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},qt=Pt.title,gi=void 0===qt?null:qt,ti=Pt.classes,fi=void 0===ti?[]:ti,Ei=Pt.attributes,Ki=void 0===Ei?{}:Ei,Qi=Pt.styles,on=void 0===Qi?{}:Qi;return na({type:"counter",content:St},function(){return kr("beforeDOMElementCreation",{content:St,params:Pt}),Xn({content:St.toString(),title:gi,extra:{attributes:Ki,styles:on,classes:["".concat(vt.familyPrefix,"-layers-counter")].concat(E(fi))}})})}}}},Lt={mixout:function(){return{text:function(St){var Pt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},qt=Pt.transform,gi=void 0===qt?_t:qt,ti=Pt.title,fi=void 0===ti?null:ti,Ei=Pt.classes,Ki=void 0===Ei?[]:Ei,Qi=Pt.attributes,on=void 0===Qi?{}:Qi,xn=Pt.styles,jn=void 0===xn?{}:xn;return na({type:"text",content:St},function(){return kr("beforeDOMElementCreation",{content:St,params:Pt}),Rr({content:St,transform:u(u({},_t),gi),title:fi,extra:{attributes:on,styles:jn,classes:["".concat(vt.familyPrefix,"-layers-text")].concat(E(Ki))}})})}}},provides:function(Et){Et.generateLayersText=function(St,Pt){var qt=Pt.title,gi=Pt.transform,ti=Pt.extra,fi=null,Ei=null;if(n){var Ki=parseInt(getComputedStyle(St).fontSize,10),Qi=St.getBoundingClientRect();fi=Qi.width/Ki,Ei=Qi.height/Ki}return vt.autoA11y&&!qt&&(ti.attributes["aria-hidden"]="true"),Promise.resolve([St,Rr({content:St.innerHTML,width:fi,height:Ei,transform:gi,title:qt,extra:ti,watchable:!0})])}}},vi=new RegExp('"',"ug"),$i=[1105920,1112319];function Sr(tt,Et){var St="".concat("data-fa-pseudo-element-pending").concat(Et.replace(":","-"));return new Promise(function(Pt,qt){if(null!==tt.getAttribute(St))return Pt();var ti=De(tt.children).filter(function(Na){return Na.getAttribute(fe)===Et})[0],fi=h.getComputedStyle(tt,Et),Ei=fi.getPropertyValue("font-family").match(xe),Ki=fi.getPropertyValue("font-weight"),Qi=fi.getPropertyValue("content");if(ti&&!Ei)return tt.removeChild(ti),Pt();if(Ei&&"none"!==Qi&&""!==Qi){var on=fi.getPropertyValue("content"),xn=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(Ei[2])?ot[Ei[2].toLowerCase()]:G[Ki],jn=function Nn(tt){var Et=tt.replace(vi,""),St=function ct(tt,Et){var qt,St=tt.length,Pt=tt.charCodeAt(Et);return Pt>=55296&&Pt<=56319&&St>Et+1&&(qt=tt.charCodeAt(Et+1))>=56320&&qt<=57343?1024*(Pt-55296)+qt-56320+65536:Pt}(Et,0),Pt=St>=$i[0]&&St<=$i[1],qt=2===Et.length&&Et[0]===Et[1];return{value:Gi(qt?Et[0]:Et),isSecondary:Pt||qt}}(on),On=jn.value,Kr=jn.isSecondary,_a=Ei[0].startsWith("FontAwesome"),ir=Je(xn,On),_r=ir;if(_a){var fr=function Ri(tt){var Et=Ji[tt],St=Je("fas",tt);return Et||(St?{prefix:"fas",iconName:St}:null)||{prefix:null,iconName:null}}(On);fr.iconName&&fr.prefix&&(ir=fr.iconName,xn=fr.prefix)}if(!ir||Kr||ti&&ti.getAttribute(ke)===xn&&ti.getAttribute(Ee)===_r)Pt();else{tt.setAttribute(St,_r),ti&&tt.removeChild(ti);var Ir=function rn(){return{iconName:null,title:null,titleId:null,prefix:null,transform:_t,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}(),Br=Ir.extra;Br.attributes[fe]=Et,ma(ir,xn).then(function(Na){var za=xa(u(u({},Ir),{},{icons:{main:Na,mask:{prefix:null,iconName:null,rest:[]}},prefix:xn,iconName:_r,extra:Br,watchable:!0})),Qa=c.createElement("svg");"::before"===Et?tt.insertBefore(Qa,tt.firstChild):tt.appendChild(Qa),Qa.outerHTML=za.map(function(_e){return ui(_e)}).join("\n"),tt.removeAttribute(St),Pt()}).catch(qt)}}else Pt()})}function Ca(tt){return Promise.all([Sr(tt,"::before"),Sr(tt,"::after")])}function Jr(tt){return!(tt.parentNode===document.head||~be.indexOf(tt.tagName.toUpperCase())||tt.getAttribute(fe)||tt.parentNode&&"svg"===tt.parentNode.tagName)}function $a(tt){if(_)return new Promise(function(Et,St){var Pt=De(tt.querySelectorAll("*")).filter(Jr).map(Ca),qt=gr_begin("searchPseudoElements");Wn(),Promise.all(Pt).then(function(){qt(),je(),Et()}).catch(function(){qt(),je(),St()})})}var Vn=!1,Cr=function(Et){return Et.toLowerCase().split(" ").reduce(function(Pt,qt){var gi=qt.toLowerCase().split("-"),ti=gi[0],fi=gi.slice(1).join("-");if(ti&&"h"===fi)return Pt.flipX=!0,Pt;if(ti&&"v"===fi)return Pt.flipY=!0,Pt;if(fi=parseFloat(fi),isNaN(fi))return Pt;switch(ti){case"grow":Pt.size=Pt.size+fi;break;case"shrink":Pt.size=Pt.size-fi;break;case"left":Pt.x=Pt.x-fi;break;case"right":Pt.x=Pt.x+fi;break;case"up":Pt.y=Pt.y-fi;break;case"down":Pt.y=Pt.y+fi;break;case"rotate":Pt.rotate=Pt.rotate+fi}return Pt},{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},Da={x:0,y:0,width:"100%",height:"100%"};function cr(tt){var Et=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return tt.attributes&&(tt.attributes.fill||Et)&&(tt.attributes.fill="black"),tt}!function Gn(tt,Et){var St=Et.mixoutsTo;Cn=tt,wi={},Object.keys(Yi).forEach(function(Pt){-1===bn.indexOf(Pt)&&delete Yi[Pt]}),Cn.forEach(function(Pt){var qt=Pt.mixout?Pt.mixout():{};if(Object.keys(qt).forEach(function(ti){"function"==typeof qt[ti]&&(St[ti]=qt[ti]),"object"===b(qt[ti])&&Object.keys(qt[ti]).forEach(function(fi){St[ti]||(St[ti]={}),St[ti][fi]=qt[ti][fi]})}),Pt.hooks){var gi=Pt.hooks();Object.keys(gi).forEach(function(ti){wi[ti]||(wi[ti]=[]),wi[ti].push(gi[ti])})}Pt.provides&&Pt.provides(Yi)})}([rt,Ke,Be,Ne,Lt,{hooks:function(){return{mutationObserverCallbacks:function(St){return St.pseudoElementsCallback=$a,St}}},provides:function(Et){Et.pseudoElements2svg=function(St){var Pt=St.node;vt.searchPseudoElements&&$a(void 0===Pt?c:Pt)}}},{mixout:function(){return{dom:{unwatch:function(){Wn(),Vn=!0}}}},hooks:function(){return{bootstrap:function(){Ye(ar("mutationObserverCallbacks",{}))},noAuto:function(){!function Ot(){!Mt||Mt.disconnect()}()},watch:function(St){var Pt=St.observeMutationsRoot;Vn?je():Ye(ar("mutationObserverCallbacks",{observeMutationsRoot:Pt}))}}}},{mixout:function(){return{parse:{transform:function(St){return Cr(St)}}}},hooks:function(){return{parseNodeAttributes:function(St,Pt){var qt=Pt.getAttribute("data-fa-transform");return qt&&(St.transform=Cr(qt)),St}}},provides:function(Et){Et.generateAbstractTransformGrouping=function(St){var Pt=St.main,qt=St.transform,ti=St.iconWidth,fi={transform:"translate(".concat(St.containerWidth/2," 256)")},Ei="translate(".concat(32*qt.x,", ").concat(32*qt.y,") "),Ki="scale(".concat(qt.size/16*(qt.flipX?-1:1),", ").concat(qt.size/16*(qt.flipY?-1:1),") "),Qi="rotate(".concat(qt.rotate," 0 0)"),jn={outer:fi,inner:{transform:"".concat(Ei," ").concat(Ki," ").concat(Qi)},path:{transform:"translate(".concat(ti/2*-1," -256)")}};return{tag:"g",attributes:u({},jn.outer),children:[{tag:"g",attributes:u({},jn.inner),children:[{tag:Pt.icon.tag,children:Pt.icon.children,attributes:u(u({},Pt.icon.attributes),jn.path)}]}]}}}},{hooks:function(){return{parseNodeAttributes:function(St,Pt){var qt=Pt.getAttribute("data-fa-mask"),gi=qt?An(qt.split(" ").map(function(ti){return ti.trim()})):{prefix:null,iconName:null,rest:[]};return gi.prefix||(gi.prefix=ki()),St.mask=gi,St.maskId=Pt.getAttribute("data-fa-mask-id"),St}}},provides:function(Et){Et.generateAbstractMask=function(St){var tt,Pt=St.children,qt=St.attributes,gi=St.main,ti=St.mask,fi=St.maskId,Qi=gi.icon,xn=ti.icon,jn=function et(tt){var Et=tt.transform,Pt=tt.iconWidth,qt={transform:"translate(".concat(tt.containerWidth/2," 256)")},gi="translate(".concat(32*Et.x,", ").concat(32*Et.y,") "),ti="scale(".concat(Et.size/16*(Et.flipX?-1:1),", ").concat(Et.size/16*(Et.flipY?-1:1),") "),fi="rotate(".concat(Et.rotate," 0 0)");return{outer:qt,inner:{transform:"".concat(gi," ").concat(ti," ").concat(fi)},path:{transform:"translate(".concat(Pt/2*-1," -256)")}}}({transform:St.transform,containerWidth:ti.width,iconWidth:gi.width}),On={tag:"rect",attributes:u(u({},Da),{},{fill:"white"})},Kr=Qi.children?{children:Qi.children.map(cr)}:{},_a={tag:"g",attributes:u({},jn.inner),children:[cr(u({tag:Qi.tag,attributes:u(u({},Qi.attributes),jn.path)},Kr))]},ir={tag:"g",attributes:u({},jn.outer),children:[_a]},_r="mask-".concat(fi||Pe()),fr="clip-".concat(fi||Pe()),Ir={tag:"mask",attributes:u(u({},Da),{},{id:_r,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[On,ir]},Br={tag:"defs",children:[{tag:"clipPath",attributes:{id:fr},children:(tt=xn,"g"===tt.tag?tt.children:[tt])},Ir]};return Pt.push(Br,{tag:"rect",attributes:u({fill:"currentColor","clip-path":"url(#".concat(fr,")"),mask:"url(#".concat(_r,")")},Da)}),{children:Pt,attributes:qt}}}},{provides:function(Et){var St=!1;h.matchMedia&&(St=h.matchMedia("(prefers-reduced-motion: reduce)").matches),Et.missingIconAbstract=function(){var Pt=[],qt={fill:"currentColor"},gi={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};Pt.push({tag:"path",attributes:u(u({},qt),{},{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 ti=u(u({},gi),{},{attributeName:"opacity"}),fi={tag:"circle",attributes:u(u({},qt),{},{cx:"256",cy:"364",r:"28"}),children:[]};return St||fi.children.push({tag:"animate",attributes:u(u({},gi),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:u(u({},ti),{},{values:"1;0;1;1;0;1;"})}),Pt.push(fi),Pt.push({tag:"path",attributes:u(u({},qt),{},{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:St?[]:[{tag:"animate",attributes:u(u({},ti),{},{values:"1;0;0;0;0;1;"})}]}),St||Pt.push({tag:"path",attributes:u(u({},qt),{},{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:u(u({},ti),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:Pt}}}},{hooks:function(){return{parseNodeAttributes:function(St,Pt){var qt=Pt.getAttribute("data-fa-symbol");return St.symbol=null!==qt&&(""===qt||qt),St}}}}],{mixoutsTo:rr});var re=rr.parse,xt=rr.icon,Ci=p(2313);const Pi=["*"],wn=tt=>{const Et={"fa-spin":tt.spin,"fa-pulse":tt.pulse,"fa-fw":tt.fixedWidth,"fa-border":tt.border,"fa-inverse":tt.inverse,"fa-layers-counter":tt.counter,"fa-flip-horizontal":"horizontal"===tt.flip||"both"===tt.flip,"fa-flip-vertical":"vertical"===tt.flip||"both"===tt.flip,[`fa-${tt.size}`]:null!==tt.size,[`fa-rotate-${tt.rotate}`]:null!==tt.rotate,[`fa-pull-${tt.pull}`]:null!==tt.pull,[`fa-stack-${tt.stackItemSize}`]:null!=tt.stackItemSize};return Object.keys(Et).map(St=>Et[St]?St:null).filter(St=>St)};let Ln=(()=>{class tt{constructor(){this.defaultPrefix="fas",this.fallbackIcon=null}}return tt.\u0275fac=function(St){return new(St||tt)},tt.\u0275prov=e.Yz7({token:tt,factory:tt.\u0275fac,providedIn:"root"}),tt})(),Qn=(()=>{class tt{constructor(){this.definitions={}}addIcons(...St){for(const Pt of St){Pt.prefix in this.definitions||(this.definitions[Pt.prefix]={}),this.definitions[Pt.prefix][Pt.iconName]=Pt;for(const qt of Pt.icon[2])"string"==typeof qt&&(this.definitions[Pt.prefix][qt]=Pt)}}addIconPacks(...St){for(const Pt of St){const qt=Object.keys(Pt).map(gi=>Pt[gi]);this.addIcons(...qt)}}getIconDefinition(St,Pt){return St in this.definitions&&Pt in this.definitions[St]?this.definitions[St][Pt]:null}}return tt.\u0275fac=function(St){return new(St||tt)},tt.\u0275prov=e.Yz7({token:tt,factory:tt.\u0275fac,providedIn:"root"}),tt})(),xr=(()=>{class tt{constructor(){this.stackItemSize="1x"}ngOnChanges(St){if("size"in St)throw new Error('fa-icon is not allowed to customize size when used inside fa-stack. Set size on the enclosing fa-stack instead: <fa-stack size="4x">...</fa-stack>.')}}return tt.\u0275fac=function(St){return new(St||tt)},tt.\u0275dir=e.lG2({type:tt,selectors:[["fa-icon","stackItemSize",""],["fa-duotone-icon","stackItemSize",""]],inputs:{stackItemSize:"stackItemSize",size:"size"},features:[e.TTD]}),tt})(),dr=(()=>{class tt{constructor(St,Pt){this.renderer=St,this.elementRef=Pt}ngOnInit(){this.renderer.addClass(this.elementRef.nativeElement,"fa-stack")}ngOnChanges(St){"size"in St&&(null!=St.size.currentValue&&this.renderer.addClass(this.elementRef.nativeElement,`fa-${St.size.currentValue}`),null!=St.size.previousValue&&this.renderer.removeClass(this.elementRef.nativeElement,`fa-${St.size.previousValue}`))}}return tt.\u0275fac=function(St){return new(St||tt)(e.Y36(e.Qsj),e.Y36(e.SBq))},tt.\u0275cmp=e.Xpm({type:tt,selectors:[["fa-stack"]],inputs:{size:"size"},features:[e.TTD],ngContentSelectors:Pi,decls:1,vars:0,template:function(St,Pt){1&St&&(e.F$t(),e.Hsn(0))},encapsulation:2}),tt})(),Zr=(()=>{class tt{constructor(St,Pt,qt,gi,ti){this.sanitizer=St,this.config=Pt,this.iconLibrary=qt,this.stackItem=gi,this.classes=[],null!=ti&&null==gi&&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(St){if(null==this.icon&&null==this.config.fallbackIcon)return(()=>{throw new Error("Property `icon` is required for `fa-icon`/`fa-duotone-icon` components.")})();let Pt=null;if(Pt=null==this.icon?this.config.fallbackIcon:this.icon,St){const qt=this.findIconDefinition(Pt);if(null!=qt){const gi=this.buildParams();this.renderIcon(qt,gi)}}}render(){this.ngOnChanges({})}findIconDefinition(St){const Pt=((tt,Et)=>(tt=>void 0!==tt.prefix&&void 0!==tt.iconName)(tt)?tt:Array.isArray(tt)&&2===tt.length?{prefix:tt[0],iconName:tt[1]}:"string"==typeof tt?{prefix:Et,iconName:tt}:void 0)(St,this.config.defaultPrefix);if("icon"in Pt)return Pt;const qt=this.iconLibrary.getIconDefinition(Pt.prefix,Pt.iconName);return null!=qt?qt:((tt=>{throw new Error(`Could not find icon with iconName=${tt.iconName} and prefix=${tt.prefix} in the icon library.`)})(Pt),null)}buildParams(){const St={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},Pt="string"==typeof this.transform?re.transform(this.transform):this.transform;return{title:this.title,transform:Pt,classes:[...wn(St),...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(St,Pt){const qt=xt(St,Pt);this.renderedIconHTML=this.sanitizer.bypassSecurityTrustHtml(qt.html.join("\n"))}}return tt.\u0275fac=function(St){return new(St||tt)(e.Y36(Ci.H7),e.Y36(Ln),e.Y36(Qn),e.Y36(xr,8),e.Y36(dr,8))},tt.\u0275cmp=e.Xpm({type:tt,selectors:[["fa-icon"]],hostAttrs:[1,"ng-fa-icon"],hostVars:2,hostBindings:function(St,Pt){2&St&&(e.Ikx("innerHTML",Pt.renderedIconHTML,e.oJD),e.uIk("title",Pt.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(St,Pt){},encapsulation:2}),tt})(),ka=(()=>{class tt{}return tt.\u0275fac=function(St){return new(St||tt)},tt.\u0275mod=e.oAB({type:tt}),tt.\u0275inj=e.cJS({}),tt})()},6642:(He,j,p)=>{"use strict";p.d(j,{eX:()=>fe,sQ:()=>kt,GW:()=>t,l4:()=>ye});var e=p(5620),i=p(6451),u=p(8306),b=p(7579),a=p(515),y=p(9646),d=p(2843),P=p(576);class T{constructor(De,oe,Me){this.kind=De,this.value=oe,this.error=Me,this.hasValue="N"===De}observe(De){return M(this,De)}do(De,oe,Me){const{kind:ut,value:ft,error:Rt}=this;return"N"===ut?null==De?void 0:De(ft):"E"===ut?null==oe?void 0:oe(Rt):null==Me?void 0:Me()}accept(De,oe,Me){var ut;return(0,P.m)(null===(ut=De)||void 0===ut?void 0:ut.next)?this.observe(De):this.do(De,oe,Me)}toObservable(){const{kind:De,value:oe,error:Me}=this,ut="N"===De?(0,y.of)(oe):"E"===De?(0,d._)(()=>Me):"C"===De?a.E:0;if(!ut)throw new TypeError(`Unexpected notification kind ${De}`);return ut}static createNext(De){return new T("N",De)}static createError(De){return new T("E",void 0,De)}static createComplete(){return T.completeNotification}}function M(Pe,De){var oe,Me,ut;const{kind:ft,value:Rt,error:et}=Pe;if("string"!=typeof ft)throw new TypeError('Invalid notification, missing "kind"');"N"===ft?null===(oe=De.next)||void 0===oe||oe.call(De,Rt):"E"===ft?null===(Me=De.error)||void 0===Me||Me.call(De,et):null===(ut=De.complete)||void 0===ut||ut.call(De)}T.completeNotification=new T("C");var A=p(4482),E=p(5403),w=p(8421);function z(Pe,De,oe,Me){return(0,A.e)((ut,ft)=>{let Rt;De&&"function"!=typeof De?({duration:oe,element:Rt,connector:Me}=De):Rt=De;const et=new Map,Re=at=>{et.forEach(at),at(ft)},qe=at=>Re(yt=>yt.error(at));let Ze=0,we=!1;const Fe=new E.Q(ft,at=>{try{const yt=Pe(at);let mi=et.get(yt);if(!mi){et.set(yt,mi=Me?Me():new b.x);const Xt=function rt(at,yt){const mi=new u.y(Xt=>{Ze++;const Jt=yt.subscribe(Xt);return()=>{Jt.unsubscribe(),0==--Ze&&we&&Fe.unsubscribe()}});return mi.key=at,mi}(yt,mi);if(ft.next(Xt),oe){const Jt=(0,E.x)(mi,()=>{mi.complete(),null==Jt||Jt.unsubscribe()},void 0,void 0,()=>et.delete(yt));Fe.add((0,w.Xf)(oe(Xt)).subscribe(Jt))}}mi.next(Rt?Rt(at):at)}catch(yt){qe(yt)}},()=>Re(at=>at.complete()),qe,()=>et.clear(),()=>(we=!0,0===Ze));ut.subscribe(Fe)})}var U=p(4004);function W(Pe,De){return De?oe=>oe.pipe(W((Me,ut)=>(0,w.Xf)(Pe(Me,ut)).pipe((0,U.U)((ft,Rt)=>De(Me,ft,ut,Rt))))):(0,A.e)((oe,Me)=>{let ut=0,ft=null,Rt=!1;oe.subscribe((0,E.x)(Me,et=>{ft||(ft=(0,E.x)(Me,void 0,()=>{ft=null,Rt&&Me.complete()}),(0,w.Xf)(Pe(et,ut++)).subscribe(ft))},()=>{Rt=!0,!ft&&Me.complete()}))})}var Q=p(8502),le=p(262),q=p(9300),ie=p(5577),se=p(5698),J=p(5e3);const me={dispatch:!0,useEffectsErrorHandler:!0},x="__@ngrx/effects_create__";function t(Pe,De){const oe=Pe(),Me=Object.assign(Object.assign({},me),De);return Object.defineProperty(oe,x,{value:Me}),oe}function r(Pe){return Object.getOwnPropertyNames(Pe).filter(Me=>!(!Pe[Me]||!Pe[Me].hasOwnProperty(x))&&Pe[Me][x].hasOwnProperty("dispatch")).map(Me=>Object.assign({propertyName:Me},Pe[Me][x]))}function h(Pe){return Object.getPrototypeOf(Pe)}const c="__@ngrx/effects__";function S(Pe){return(0,e.qC)(n,h)(Pe)}function n(Pe){return function I(Pe){return Pe.constructor.hasOwnProperty(c)}(Pe)?Pe.constructor[c]:[]}function R(Pe,De,oe){const Me=h(Pe).constructor.name,ut=function V(Pe){return[S,r].reduce((oe,Me)=>oe.concat(Me(Pe)),[])}(Pe).map(({propertyName:ft,dispatch:Rt,useEffectsErrorHandler:et})=>{const Re="function"==typeof Pe[ft]?Pe[ft]():Pe[ft],qe=et?oe(Re,De):Re;return!1===Rt?qe.pipe((0,Q.l)()):qe.pipe(function k(){return(0,A.e)((Pe,De)=>{Pe.subscribe((0,E.x)(De,oe=>{De.next(T.createNext(oe))},()=>{De.next(T.createComplete()),De.complete()},oe=>{De.next(T.createError(oe)),De.complete()}))})}()).pipe((0,U.U)(we=>({effect:Pe[ft],notification:we,propertyName:ft,sourceName:Me,sourceInstance:Pe})))});return(0,i.T)(...ut)}function $(Pe,De,oe=10){return Pe.pipe((0,le.K)(Me=>(De&&De.handleError(Me),oe<=1?Pe:$(Pe,De,oe-1))))}let fe=(()=>{class Pe extends u.y{constructor(oe){super(),oe&&(this.source=oe)}lift(oe){const Me=new Pe;return Me.source=this,Me.operator=oe,Me}}return Pe.\u0275fac=function(oe){return new(oe||Pe)(J.LFG(e.Y$))},Pe.\u0275prov=J.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})();function ye(...Pe){return(0,q.h)(De=>Pe.some(oe=>"string"==typeof oe?oe===De.type:oe.type===De.type))}function Ae(Pe){return ce(Pe,"ngrxOnInitEffects")}function ce(Pe,De){return Pe&&De in Pe&&"function"==typeof Pe[De]}const Te=new J.OlP("@ngrx/effects Internal Root Guard"),xe=new J.OlP("@ngrx/effects User Provided Effects"),G=new J.OlP("@ngrx/effects Internal Root Effects"),ee=new J.OlP("@ngrx/effects Root Effects"),ue=new J.OlP("@ngrx/effects Internal Feature Effects"),ve=new J.OlP("@ngrx/effects Feature Effects"),Le=new J.OlP("@ngrx/effects Effects Error Handler");let lt=(()=>{class Pe extends b.x{constructor(oe,Me){super(),this.errorHandler=oe,this.effectsErrorHandler=Me}addEffects(oe){this.next(oe)}toActions(){return this.pipe(z(h),(0,ie.z)(oe=>oe.pipe(z(ht))),(0,ie.z)(oe=>{const Me=oe.pipe(W(ft=>function Tt(Pe,De){return oe=>{const Me=R(oe,Pe,De);return function ot(Pe){return ce(Pe,"ngrxOnRunEffects")}(oe)?oe.ngrxOnRunEffects(Me):Me}}(this.errorHandler,this.effectsErrorHandler)(ft)),(0,U.U)(ft=>(function ke(Pe,De){if("N"===Pe.notification.kind){const oe=Pe.notification.value;!function Ee(Pe){return"function"!=typeof Pe&&Pe&&Pe.type&&"string"==typeof Pe.type}(oe)&&De.handleError(new Error(`Effect ${function te({propertyName:Pe,sourceInstance:De,sourceName:oe}){const Me="function"==typeof De[Pe];return`"${oe}.${String(Pe)}${Me?"()":""}"`}(Pe)} dispatched an invalid action: ${function ze(Pe){try{return JSON.stringify(Pe)}catch(De){return Pe}}(oe)}`))}}(ft,this.errorHandler),ft.notification)),(0,q.h)(ft=>"N"===ft.kind&&null!=ft.value),function ne(){return(0,A.e)((Pe,De)=>{Pe.subscribe((0,E.x)(De,oe=>M(oe,De)))})}()),ut=oe.pipe((0,se.q)(1),(0,q.h)(Ae),(0,U.U)(ft=>ft.ngrxOnInitEffects()));return(0,i.T)(Me,ut)}))}}return Pe.\u0275fac=function(oe){return new(oe||Pe)(J.LFG(J.qLn),J.LFG(Le))},Pe.\u0275prov=J.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})();function ht(Pe){return function Z(Pe){return ce(Pe,"ngrxOnIdentifyEffects")}(Pe)?Pe.ngrxOnIdentifyEffects():""}let hi=(()=>{class Pe{constructor(oe,Me){this.effectSources=oe,this.store=Me,this.effectsSubscription=null}start(){this.effectsSubscription||(this.effectsSubscription=this.effectSources.toActions().subscribe(this.store))}ngOnDestroy(){this.effectsSubscription&&(this.effectsSubscription.unsubscribe(),this.effectsSubscription=null)}}return Pe.\u0275fac=function(oe){return new(oe||Pe)(J.LFG(lt),J.LFG(e.yh))},Pe.\u0275prov=J.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})();const jt="@ngrx/effects/init";(0,e.PH)(jt);let di=(()=>{class Pe{constructor(oe,Me,ut,ft,Rt,et,Re){this.sources=oe,Me.start(),ft.forEach(qe=>oe.addEffects(qe)),ut.dispatch({type:jt})}addEffects(oe){this.sources.addEffects(oe)}}return Pe.\u0275fac=function(oe){return new(oe||Pe)(J.LFG(lt),J.LFG(hi),J.LFG(e.yh),J.LFG(ee),J.LFG(e.cr,8),J.LFG(e.CK,8),J.LFG(Te,8))},Pe.\u0275mod=J.oAB({type:Pe}),Pe.\u0275inj=J.cJS({}),Pe})(),vt=(()=>{class Pe{constructor(oe,Me,ut,ft){Me.forEach(Rt=>Rt.forEach(et=>oe.addEffects(et)))}}return Pe.\u0275fac=function(oe){return new(oe||Pe)(J.LFG(di),J.LFG(ve),J.LFG(e.cr,8),J.LFG(e.CK,8))},Pe.\u0275mod=J.oAB({type:Pe}),Pe.\u0275inj=J.cJS({}),Pe})(),kt=(()=>{class Pe{static forFeature(oe=[]){return{ngModule:vt,providers:[oe,{provide:ue,multi:!0,useValue:oe},{provide:xe,multi:!0,useValue:[]},{provide:ve,multi:!0,useFactory:gt,deps:[J.zs3,ue,xe]}]}}static forRoot(oe=[]){return{ngModule:di,providers:[{provide:Le,useValue:$},hi,lt,fe,oe,{provide:G,useValue:[oe]},{provide:Te,useFactory:_t,deps:[[hi,new J.FiY,new J.tp0],[G,new J.PiD]]},{provide:xe,multi:!0,useValue:[]},{provide:ee,useFactory:gt,deps:[J.zs3,G,xe]}]}}}return Pe.\u0275fac=function(oe){return new(oe||Pe)},Pe.\u0275mod=J.oAB({type:Pe}),Pe.\u0275inj=J.cJS({}),Pe})();function gt(Pe,De,oe){const Me=[];for(const ut of De)Me.push(...ut);for(const ut of oe)Me.push(...ut);return function Qe(Pe,De){return De.map(oe=>Pe.get(oe))}(Pe,Me)}function _t(Pe,De){if((1!==De.length||0!==De[0].length)&&Pe)throw new TypeError("EffectsModule.forRoot() called twice. Feature modules should use EffectsModule.forFeature() instead.");return"guarded"}},9565:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{FT:()=>StoreDevtoolsModule});var _angular_core__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(5e3),_ngrx_store__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(5620),rxjs__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(515),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(8306),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(9646),rxjs__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(6451),rxjs__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(233),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(4707),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(3099),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(9300),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(4004),rxjs_operators__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(4351),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(7414),rxjs_operators__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(8372),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(262),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(5698),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(2722),rxjs_operators__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(3900),rxjs_operators__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(5684),rxjs_operators__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(5363),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(1365),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(5026);class StoreDevtoolsConfig{constructor(){this.maxAge=!1}}const STORE_DEVTOOLS_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_0__.OlP("@ngrx/store-devtools Options"),INITIAL_OPTIONS=new _angular_core__WEBPACK_IMPORTED_MODULE_0__.OlP("@ngrx/store-devtools Initial Config");function noMonitor(){return null}const DEFAULT_NAME="NgRx Store DevTools";function createConfig(He){const j={maxAge:!1,monitor:noMonitor,actionSanitizer:void 0,stateSanitizer:void 0,name:DEFAULT_NAME,serialize:!1,logOnly:!1,autoPause:!1,features:{pause:!0,lock:!0,persist:!0,export:!0,import:"custom",jump:!0,skip:!0,reorder:!0,dispatch:!0,test:!0}},p="function"==typeof He?He():He,u=Object.assign({},j,{features:p.features||!!p.logOnly&&{pause:!0,export:!0,test:!0}||j.features},p);if(u.maxAge&&u.maxAge<2)throw new Error(`Devtools 'maxAge' cannot be less than 2, got ${u.maxAge}`);return u}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(j,p){if(this.action=j,this.timestamp=p,this.type=PERFORM_ACTION,void 0===j.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?')}}class Refresh{constructor(){this.type=REFRESH}}class Reset{constructor(j){this.timestamp=j,this.type=RESET}}class Rollback{constructor(j){this.timestamp=j,this.type=ROLLBACK}}class Commit{constructor(j){this.timestamp=j,this.type=COMMIT}}class Sweep{constructor(){this.type=SWEEP}}class ToggleAction{constructor(j){this.id=j,this.type=TOGGLE_ACTION}}class SetActionsActive{constructor(j,p,e=!0){this.start=j,this.end=p,this.active=e,this.type=SET_ACTIONS_ACTIVE}}class JumpToState{constructor(j){this.index=j,this.type=JUMP_TO_STATE}}class JumpToAction{constructor(j){this.actionId=j,this.type=JUMP_TO_ACTION}}class ImportState{constructor(j){this.nextLiftedState=j,this.type=IMPORT_STATE}}class LockChanges{constructor(j){this.status=j,this.type=LOCK_CHANGES}}class PauseRecording{constructor(j){this.status=j,this.type=PAUSE_RECORDING}}function difference(He,j){return He.filter(p=>j.indexOf(p)<0)}function unliftState(He){const{computedStates:j,currentStateIndex:p}=He;if(p>=j.length){const{state:i}=j[j.length-1];return i}const{state:e}=j[p];return e}function unliftAction(He){return He.actionsById[He.nextActionId-1]}function liftAction(He){return new PerformAction(He,+Date.now())}function sanitizeActions(He,j){return Object.keys(j).reduce((p,e)=>{const i=Number(e);return p[i]=sanitizeAction(He,j[i],i),p},{})}function sanitizeAction(He,j,p){return Object.assign(Object.assign({},j),{action:He(j.action,p)})}function sanitizeStates(He,j){return j.map((p,e)=>({state:sanitizeState(He,p.state,e),error:p.error}))}function sanitizeState(He,j,p){return He(j,p)}function shouldFilterActions(He){return He.predicate||He.actionsSafelist||He.actionsBlocklist}function filterLiftedState(He,j,p,e){const i=[],u={},b=[];return He.stagedActionIds.forEach((a,y)=>{const d=He.actionsById[a];!d||y&&isActionFiltered(He.computedStates[y],d,j,p,e)||(u[a]=d,i.push(a),b.push(He.computedStates[y]))}),Object.assign(Object.assign({},He),{stagedActionIds:i,actionsById:u,computedStates:b})}function isActionFiltered(He,j,p,e,i){const u=p&&!p(He,j.action),b=e&&!j.action.type.match(e.map(y=>escapeRegExp(y)).join("|")),a=i&&j.action.type.match(i.map(y=>escapeRegExp(y)).join("|"));return u||b||a}function escapeRegExp(He){return He.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const INIT_ACTION={type:_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.qg},RECOMPUTE="@ngrx/store-devtools/recompute",RECOMPUTE_ACTION={type:RECOMPUTE};function computeNextEntry(He,j,p,e,i){if(e)return{state:p,error:"Interrupted by an error up the chain"};let b,u=p;try{u=He(p,j)}catch(a){b=a.toString(),i.handleError(a)}return{state:u,error:b}}function recomputeStates(He,j,p,e,i,u,b,a,y){if(j>=He.length&&He.length===u.length)return He;const d=He.slice(0,j),P=u.length-(y?1:0);for(let D=j;D<P;D++){const T=u[D],M=i[T].action,A=d[D-1],E=A?A.state:e,k=A?A.error:void 0,z=b.indexOf(T)>-1?A:computeNextEntry(p,M,E,k,a);d.push(z)}return y&&d.push(He[He.length-1]),d}function liftInitialState(He,j){return{monitorState:j(void 0,{}),nextActionId:1,actionsById:{0:liftAction(INIT_ACTION)},stagedActionIds:[0],skippedActionIds:[],committedState:He,currentStateIndex:0,computedStates:[],isLocked:!1,isPaused:!1}}function liftReducerWith(He,j,p,e,i={}){return u=>(b,a)=>{let{monitorState:y,actionsById:d,nextActionId:P,stagedActionIds:D,skippedActionIds:T,committedState:M,currentStateIndex:A,computedStates:E,isLocked:k,isPaused:w}=b||j;function z(ne){let Q=ne,le=D.slice(1,Q+1);for(let q=0;q<le.length;q++){if(E[q+1].error){Q=q,le=D.slice(1,Q+1);break}delete d[le[q]]}T=T.filter(q=>-1===le.indexOf(q)),D=[0,...D.slice(Q+1)],M=E[Q].state,E=E.slice(Q),A=A>Q?A-Q:0}function U(){d={0:liftAction(INIT_ACTION)},P=1,D=[0],T=[],M=E[A].state,A=0,E=[]}b||(d=Object.create(d));let W=0;switch(a.type){case LOCK_CHANGES:k=a.status,W=1/0;break;case PAUSE_RECORDING:w=a.status,w?(D=[...D,P],d[P]=new PerformAction({type:"@ngrx/devtools/pause"},+Date.now()),P++,W=D.length-1,E=E.concat(E[E.length-1]),A===D.length-2&&A++,W=1/0):U();break;case RESET:d={0:liftAction(INIT_ACTION)},P=1,D=[0],T=[],M=He,A=0,E=[];break;case COMMIT:U();break;case ROLLBACK:d={0:liftAction(INIT_ACTION)},P=1,D=[0],T=[],A=0,E=[];break;case TOGGLE_ACTION:{const{id:ne}=a;T=-1===T.indexOf(ne)?[ne,...T]:T.filter(le=>le!==ne),W=D.indexOf(ne);break}case SET_ACTIONS_ACTIVE:{const{start:ne,end:Q,active:le}=a,q=[];for(let ie=ne;ie<Q;ie++)q.push(ie);T=le?difference(T,q):[...T,...q],W=D.indexOf(ne);break}case JUMP_TO_STATE:A=a.index,W=1/0;break;case JUMP_TO_ACTION:{const ne=D.indexOf(a.actionId);-1!==ne&&(A=ne),W=1/0;break}case SWEEP:D=difference(D,T),T=[],A=Math.min(A,D.length-1);break;case PERFORM_ACTION:{if(k)return b||j;if(w||b&&isActionFiltered(b.computedStates[A],a,i.predicate,i.actionsSafelist,i.actionsBlocklist)){const Q=E[E.length-1];E=[...E.slice(0,-1),computeNextEntry(u,a.action,Q.state,Q.error,p)],W=1/0;break}i.maxAge&&D.length===i.maxAge&&z(1),A===D.length-1&&A++;const ne=P++;d[ne]=a,D=[...D,ne],W=D.length-1;break}case IMPORT_STATE:({monitorState:y,actionsById:d,nextActionId:P,stagedActionIds:D,skippedActionIds:T,committedState:M,currentStateIndex:A,computedStates:E,isLocked:k,isPaused:w}=a.nextLiftedState);break;case _ngrx_store__WEBPACK_IMPORTED_MODULE_1__.qg:W=0,i.maxAge&&D.length>i.maxAge&&(E=recomputeStates(E,W,u,M,d,D,T,p,w),z(D.length-i.maxAge),W=1/0);break;case _ngrx_store__WEBPACK_IMPORTED_MODULE_1__.wb:if(E.filter(Q=>Q.error).length>0)W=0,i.maxAge&&D.length>i.maxAge&&(E=recomputeStates(E,W,u,M,d,D,T,p,w),z(D.length-i.maxAge),W=1/0);else{if(!w&&!k){A===D.length-1&&A++;const Q=P++;d[Q]=new PerformAction(a,+Date.now()),D=[...D,Q],W=D.length-1,E=recomputeStates(E,W,u,M,d,D,T,p,w)}E=E.map(Q=>Object.assign(Object.assign({},Q),{state:u(Q.state,RECOMPUTE_ACTION)})),A=D.length-1,i.maxAge&&D.length>i.maxAge&&z(D.length-i.maxAge),W=1/0}break;default:W=1/0}return E=recomputeStates(E,W,u,M,d,D,T,p,w),y=e(y,a),{monitorState:y,actionsById:d,nextActionId:P,stagedActionIds:D,skippedActionIds:T,committedState:M,currentStateIndex:A,computedStates:E,isLocked:k,isPaused:w}}}let DevtoolsDispatcher=(()=>{class He extends _ngrx_store__WEBPACK_IMPORTED_MODULE_1__.UO{}return He.\u0275fac=function(){let j;return function(e){return(j||(j=_angular_core__WEBPACK_IMPORTED_MODULE_0__.n5z(He)))(e||He)}}(),He.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:He,factory:He.\u0275fac}),He})();const ExtensionActionTypes={START:"START",DISPATCH:"DISPATCH",STOP:"STOP",ACTION:"ACTION"},REDUX_DEVTOOLS_EXTENSION=new _angular_core__WEBPACK_IMPORTED_MODULE_0__.OlP("@ngrx/store-devtools Redux Devtools Extension");let DevtoolsExtension=(()=>{class DevtoolsExtension{constructor(He,j,p){this.config=j,this.dispatcher=p,this.devtoolsExtension=He,this.createActionStreams()}notify(He,j){if(this.devtoolsExtension)if(He.type===PERFORM_ACTION){if(j.isLocked||j.isPaused)return;const p=unliftState(j);if(shouldFilterActions(this.config)&&isActionFiltered(p,He,this.config.predicate,this.config.actionsSafelist,this.config.actionsBlocklist))return;const e=this.config.stateSanitizer?sanitizeState(this.config.stateSanitizer,p,j.currentStateIndex):p,i=this.config.actionSanitizer?sanitizeAction(this.config.actionSanitizer,He,j.nextActionId):He;this.sendToReduxDevtools(()=>this.extensionConnection.send(i,e))}else{const p=Object.assign(Object.assign({},j),{stagedActionIds:j.stagedActionIds,actionsById:this.config.actionSanitizer?sanitizeActions(this.config.actionSanitizer,j.actionsById):j.actionsById,computedStates:this.config.stateSanitizer?sanitizeStates(this.config.stateSanitizer,j.computedStates):j.computedStates});this.sendToReduxDevtools(()=>this.devtoolsExtension.send(null,p,this.getExtensionConfig(this.config)))}}createChangesObservable(){return this.devtoolsExtension?new rxjs__WEBPACK_IMPORTED_MODULE_3__.y(He=>{const j=this.devtoolsExtension.connect(this.getExtensionConfig(this.config));return this.extensionConnection=j,j.init(),j.subscribe(p=>He.next(p)),j.unsubscribe}):rxjs__WEBPACK_IMPORTED_MODULE_2__.E}createActionStreams(){const He=this.createChangesObservable().pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.B)()),j=He.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(a=>a.type===ExtensionActionTypes.START)),p=He.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(a=>a.type===ExtensionActionTypes.STOP)),e=He.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(a=>a.type===ExtensionActionTypes.DISPATCH),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(a=>this.unwrapAction(a.payload)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.b)(a=>a.type===IMPORT_STATE?this.dispatcher.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(y=>y.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)(()=>a),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.K)(()=>(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.of)(a)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.q)(1)):(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.of)(a))),u=He.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(a=>a.type===ExtensionActionTypes.ACTION),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(a=>this.unwrapAction(a.payload))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.R)(p)),b=e.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.R)(p));this.start$=j.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.R)(p)),this.actions$=this.start$.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.w)(()=>u)),this.liftedActions$=this.start$.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.w)(()=>b))}unwrapAction(action){return"string"==typeof action?eval(`(${action})`):action}getExtensionConfig(He){var j;const p={name:He.name,features:He.features,serialize:He.serialize,autoPause:null!==(j=He.autoPause)&&void 0!==j&&j};return!1!==He.maxAge&&(p.maxAge=He.maxAge),p}sendToReduxDevtools(He){try{He()}catch(j){console.warn("@ngrx/store-devtools: something went wrong inside the redux devtools",j)}}}return DevtoolsExtension.\u0275fac=function He(j){return new(j||DevtoolsExtension)(_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(REDUX_DEVTOOLS_EXTENSION),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(STORE_DEVTOOLS_CONFIG),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(DevtoolsDispatcher))},DevtoolsExtension.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:DevtoolsExtension,factory:DevtoolsExtension.\u0275fac}),DevtoolsExtension})(),StoreDevtools=(()=>{class He{constructor(p,e,i,u,b,a,y,d){const P=liftInitialState(y,d.monitor),D=liftReducerWith(y,P,a,d.monitor,d),T=(0,rxjs__WEBPACK_IMPORTED_MODULE_15__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_15__.T)(e.asObservable().pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_16__.T)(1)),u.actions$).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(liftAction)),p,u.liftedActions$).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_17__.Q)(rxjs__WEBPACK_IMPORTED_MODULE_18__.N)),M=i.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(D)),A=new rxjs__WEBPACK_IMPORTED_MODULE_19__.t(1),E=T.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.M)(M),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.R)(({state:U},[W,ne])=>{let Q=ne(U,W);return W.type!==PERFORM_ACTION&&shouldFilterActions(d)&&(Q=filterLiftedState(Q,d.predicate,d.actionsSafelist,d.actionsBlocklist)),u.notify(W,Q),{state:Q,action:W}},{state:P,action:null})).subscribe(({state:U,action:W})=>{A.next(U),W.type===PERFORM_ACTION&&b.next(W.action)}),k=u.start$.subscribe(()=>{this.refresh()}),w=A.asObservable(),z=w.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(unliftState));this.extensionStartSubscription=k,this.stateSubscription=E,this.dispatcher=p,this.liftedState=w,this.state=z}dispatch(p){this.dispatcher.next(p)}next(p){this.dispatcher.next(p)}error(p){}complete(){}performAction(p){this.dispatch(new PerformAction(p,+Date.now()))}refresh(){this.dispatch(new Refresh)}reset(){this.dispatch(new Reset(+Date.now()))}rollback(){this.dispatch(new Rollback(+Date.now()))}commit(){this.dispatch(new Commit(+Date.now()))}sweep(){this.dispatch(new Sweep)}toggleAction(p){this.dispatch(new ToggleAction(p))}jumpToAction(p){this.dispatch(new JumpToAction(p))}jumpToState(p){this.dispatch(new JumpToState(p))}importState(p){this.dispatch(new ImportState(p))}lockChanges(p){this.dispatch(new LockChanges(p))}pauseRecording(p){this.dispatch(new PauseRecording(p))}}return He.\u0275fac=function(p){return new(p||He)(_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))},He.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:He,factory:He.\u0275fac}),He})();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(He,j){return Boolean(He)||j.monitor!==noMonitor}function createReduxDevtoolsExtension(){const He="__REDUX_DEVTOOLS_EXTENSION__";return"object"==typeof window&&void 0!==window[He]?window[He]:null}function createStateObservable(He){return He.state}let StoreDevtoolsModule=(()=>{class He{static instrument(p={}){return{ngModule:He,providers:[DevtoolsExtension,DevtoolsDispatcher,StoreDevtools,{provide:INITIAL_OPTIONS,useValue:p},{provide:IS_EXTENSION_OR_MONITOR_PRESENT,deps:[REDUX_DEVTOOLS_EXTENSION,STORE_DEVTOOLS_CONFIG],useFactory:createIsExtensionOrMonitorPresent},{provide:REDUX_DEVTOOLS_EXTENSION,useFactory:createReduxDevtoolsExtension},{provide:STORE_DEVTOOLS_CONFIG,deps:[INITIAL_OPTIONS],useFactory:createConfig},{provide:_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.FR,deps:[StoreDevtools],useFactory:createStateObservable},{provide:_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.mK,useExisting:DevtoolsDispatcher}]}}}return He.\u0275fac=function(p){return new(p||He)},He.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_0__.oAB({type:He}),He.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_0__.cJS({}),He})()},5620:(He,j,p)=>{"use strict";p.d(j,{UO:()=>se,qg:()=>ie,Y6:()=>t,mK:()=>Ae,n$:()=>Ie,Y$:()=>G,FR:()=>ue,yh:()=>ht,CK:()=>bt,Aw:()=>Vt,cr:()=>$e,wb:()=>ce,qC:()=>Z,PH:()=>k,ZF:()=>rt,Lq:()=>Mi,P1:()=>Ze,on:()=>Yt,Ky:()=>w});var e=p(5e3),i=p(1135),u=p(8306),b=p(7579),a=p(233),y=p(4004),P=p(5363),D=p(1365),T=p(5026),M=p(1884);const A={};function k(Je,Nt){if(A[Je]=(A[Je]||0)+1,"function"==typeof Nt)return U(Je,(...pi)=>Object.assign(Object.assign({},Nt(...pi)),{type:Je}));switch(Nt?Nt._as:"empty"){case"empty":return U(Je,()=>({type:Je}));case"props":return U(Je,pi=>Object.assign(Object.assign({},pi),{type:Je}));default:throw new Error("Unexpected config.")}}function w(){return{_as:"props",_p:void 0}}function U(Je,Nt){return Object.defineProperty(Nt,"type",{value:Je,writable:!1})}const ie="@ngrx/store/init";let se=(()=>{class Je extends i.X{constructor(){super({type:ie})}next(Kt){if("function"==typeof Kt)throw new TypeError("\n Dispatch expected an object, instead it received a function.\n If you're using the createAction function, make sure to invoke the function\n before dispatching the action. For example, someAction should be someAction().");if(void 0===Kt)throw new TypeError("Actions must be objects");if(void 0===Kt.type)throw new TypeError("Actions must have a type property");super.next(Kt)}complete(){}ngOnDestroy(){super.complete()}}return Je.\u0275fac=function(Kt){return new(Kt||Je)},Je.\u0275prov=e.Yz7({token:Je,factory:Je.\u0275fac}),Je})();const J=[se],me=new e.OlP("@ngrx/store Internal Root Guard"),x=new e.OlP("@ngrx/store Internal Initial State"),t=new e.OlP("@ngrx/store Initial State"),r=new e.OlP("@ngrx/store Reducer Factory"),h=new e.OlP("@ngrx/store Internal Reducer Factory Provider"),c=new e.OlP("@ngrx/store Initial Reducers"),C=new e.OlP("@ngrx/store Internal Initial Reducers"),S=new e.OlP("@ngrx/store Store Features"),I=new e.OlP("@ngrx/store Internal Store Reducers"),_=new e.OlP("@ngrx/store Internal Feature Reducers"),n=new e.OlP("@ngrx/store Internal Feature Configs"),g=new e.OlP("@ngrx/store Internal Store Features"),V=new e.OlP("@ngrx/store Internal Feature Reducers Token"),R=new e.OlP("@ngrx/store Feature Reducers"),H=new e.OlP("@ngrx/store User Provided Meta Reducers"),$=new e.OlP("@ngrx/store Meta Reducers"),fe=new e.OlP("@ngrx/store Internal Resolved Meta Reducers"),ye=new e.OlP("@ngrx/store User Runtime Checks Config"),ke=new e.OlP("@ngrx/store Internal User Runtime Checks Config"),Ee=new e.OlP("@ngrx/store Internal Runtime Checks"),te=new e.OlP("@ngrx/store Check if Action types are unique");function ze(Je,Nt={}){const Kt=Object.keys(Je),pi={};for(let ki=0;ki<Kt.length;ki++){const hn=Kt[ki];"function"==typeof Je[hn]&&(pi[hn]=Je[hn])}const Ri=Object.keys(pi);return function(hn,Hn){hn=void 0===hn?Nt:hn;let An=!1;const Kn={};for(let Cn=0;Cn<Ri.length;Cn++){const wi=Ri[Cn],bn=hn[wi],Gn=(0,pi[wi])(bn,Hn);Kn[wi]=Gn,An=An||Gn!==bn}return An?Kn:hn}}function Z(...Je){return function(Nt){if(0===Je.length)return Nt;const Kt=Je[Je.length-1];return Je.slice(0,-1).reduceRight((Ri,ki)=>ki(Ri),Kt(Nt))}}function Y(Je,Nt){return Array.isArray(Nt)&&Nt.length>0&&(Je=Z.apply(null,[...Nt,Je])),(Kt,pi)=>{const Ri=Je(Kt);return(ki,hn)=>Ri(ki=void 0===ki?pi:ki,hn)}}class Ie extends u.y{}class Ae extends se{}const ce="@ngrx/store/update-reducers";let Te=(()=>{class Je extends i.X{constructor(Kt,pi,Ri,ki){super(ki(Ri,pi)),this.dispatcher=Kt,this.initialState=pi,this.reducers=Ri,this.reducerFactory=ki}get currentReducers(){return this.reducers}addFeature(Kt){this.addFeatures([Kt])}addFeatures(Kt){const pi=Kt.reduce((Ri,{reducers:ki,reducerFactory:hn,metaReducers:Hn,initialState:An,key:Kn})=>{const Cn="function"==typeof ki?function ot(Je){const Nt=Array.isArray(Je)&&Je.length>0?Z(...Je):Kt=>Kt;return(Kt,pi)=>(Kt=Nt(Kt),(Ri,ki)=>Kt(Ri=void 0===Ri?pi:Ri,ki))}(Hn)(ki,An):Y(hn,Hn)(ki,An);return Ri[Kn]=Cn,Ri},{});this.addReducers(pi)}removeFeature(Kt){this.removeFeatures([Kt])}removeFeatures(Kt){this.removeReducers(Kt.map(pi=>pi.key))}addReducer(Kt,pi){this.addReducers({[Kt]:pi})}addReducers(Kt){this.reducers=Object.assign(Object.assign({},this.reducers),Kt),this.updateReducers(Object.keys(Kt))}removeReducer(Kt){this.removeReducers([Kt])}removeReducers(Kt){Kt.forEach(pi=>{this.reducers=function be(Je,Nt){return Object.keys(Je).filter(Kt=>Kt!==Nt).reduce((Kt,pi)=>Object.assign(Kt,{[pi]:Je[pi]}),{})}(this.reducers,pi)}),this.updateReducers(Kt)}updateReducers(Kt){this.next(this.reducerFactory(this.reducers,this.initialState)),this.dispatcher.next({type:ce,features:Kt})}ngOnDestroy(){this.complete()}}return Je.\u0275fac=function(Kt){return new(Kt||Je)(e.LFG(Ae),e.LFG(t),e.LFG(c),e.LFG(r))},Je.\u0275prov=e.Yz7({token:Je,factory:Je.\u0275fac}),Je})();const xe=[Te,{provide:Ie,useExisting:Te},{provide:Ae,useExisting:se}];let G=(()=>{class Je extends b.x{ngOnDestroy(){this.complete()}}return Je.\u0275fac=function(){let Nt;return function(pi){return(Nt||(Nt=e.n5z(Je)))(pi||Je)}}(),Je.\u0275prov=e.Yz7({token:Je,factory:Je.\u0275fac}),Je})();const ee=[G];class ue extends u.y{}let ve=(()=>{class Je extends i.X{constructor(Kt,pi,Ri,ki){super(ki);const Kn=Kt.pipe((0,P.Q)(a.N)).pipe((0,D.M)(pi)).pipe((0,T.R)(Le,{state:ki}));this.stateSubscription=Kn.subscribe(({state:Cn,action:wi})=>{this.next(Cn),Ri.next(wi)})}ngOnDestroy(){this.stateSubscription.unsubscribe(),this.complete()}}return Je.INIT=ie,Je.\u0275fac=function(Kt){return new(Kt||Je)(e.LFG(se),e.LFG(Ie),e.LFG(G),e.LFG(t))},Je.\u0275prov=e.Yz7({token:Je,factory:Je.\u0275fac}),Je})();function Le(Je={state:void 0},[Nt,Kt]){const{state:pi}=Je;return{state:Kt(pi,Nt),action:Nt}}const lt=[ve,{provide:ue,useExisting:ve}];let ht=(()=>{class Je extends u.y{constructor(Kt,pi,Ri){super(),this.actionsObserver=pi,this.reducerManager=Ri,this.source=Kt}select(Kt,...pi){return hi.call(null,Kt,...pi)(this)}lift(Kt){const pi=new Je(this,this.actionsObserver,this.reducerManager);return pi.operator=Kt,pi}dispatch(Kt){this.actionsObserver.next(Kt)}next(Kt){this.actionsObserver.next(Kt)}error(Kt){this.actionsObserver.error(Kt)}complete(){this.actionsObserver.complete()}addReducer(Kt,pi){this.reducerManager.addReducer(Kt,pi)}removeReducer(Kt){this.reducerManager.removeReducer(Kt)}}return Je.\u0275fac=function(Kt){return new(Kt||Je)(e.LFG(ue),e.LFG(se),e.LFG(Te))},Je.\u0275prov=e.Yz7({token:Je,factory:Je.\u0275fac}),Je})();const Tt=[ht];function hi(Je,Nt,...Kt){return function(Ri){let ki;if("string"==typeof Je){const hn=[Nt,...Kt].filter(Boolean);ki=Ri.pipe(function d(...Je){const Nt=Je.length;if(0===Nt)throw new Error("list of properties cannot be empty.");return(0,y.U)(Kt=>{let pi=Kt;for(let Ri=0;Ri<Nt;Ri++){const ki=null==pi?void 0:pi[Je[Ri]];if(void 0===ki)return;pi=ki}return pi})}(Je,...hn))}else{if("function"!=typeof Je)throw new TypeError(`Unexpected type '${typeof Je}' in select operator, expected 'string' or 'function'`);ki=Ri.pipe((0,y.U)(hn=>Je(hn,Nt)))}return ki.pipe((0,M.x)())}}const jt="https://ngrx.io/guide/store/configuration/runtime-checks";function Gt(Je){return void 0===Je}function di(Je){return null===Je}function vt(Je){return Array.isArray(Je)}function _t(Je){return"object"==typeof Je&&null!==Je}function Pe(Je){return"function"==typeof Je}function Rt(Je,Nt){return Je===Nt}function et(Je,Nt,Kt){for(let pi=0;pi<Je.length;pi++)if(!Kt(Je[pi],Nt[pi]))return!0;return!1}function qe(Je,Nt=Rt,Kt=Rt){let ki,pi=null,Ri=null;return{memoized:function Kn(){if(void 0!==ki)return ki.result;if(!pi)return Ri=Je.apply(null,arguments),pi=arguments,Ri;if(!et(arguments,pi,Nt))return Ri;const Cn=Je.apply(null,arguments);return pi=arguments,Kt(Ri,Cn)?Ri:(Ri=Cn,Cn)},reset:function hn(){pi=null,Ri=null},setResult:function Hn(Cn){ki={result:Cn}},clearResult:function An(){ki=void 0}}}function Ze(...Je){return function Fe(Je,Nt={stateFn:we}){return function(...Kt){let pi=Kt;if(Array.isArray(pi[0])){const[Cn,...wi]=pi;pi=[...Cn,...wi]}const Ri=pi.slice(0,pi.length-1),ki=pi[pi.length-1],hn=Ri.filter(Cn=>Cn.release&&"function"==typeof Cn.release),Hn=Je(function(...Cn){return ki.apply(null,Cn)}),An=qe(function(Cn,wi){return Nt.stateFn.apply(null,[Cn,Ri,wi,Hn])});return Object.assign(An.memoized,{release:function Kn(){An.reset(),Hn.reset(),hn.forEach(Cn=>Cn.release())},projector:Hn.memoized,setResult:An.setResult,clearResult:An.clearResult})}}(qe)(...Je)}function we(Je,Nt,Kt,pi){if(void 0===Kt){const ki=Nt.map(hn=>hn(Je));return pi.memoized.apply(null,ki)}const Ri=Nt.map(ki=>ki(Je,Kt));return pi.memoized.apply(null,[...Ri,Kt])}function rt(Je){return Ze(Nt=>{const Kt=Nt[Je];return(0,e.X6Q)()&&!(Je in Nt)&&console.warn(`@ngrx/store: The feature name "${Je}" does not exist in the state, therefore createFeatureSelector cannot access it. Be sure it is imported in a loaded module using StoreModule.forRoot('${Je}', ...) or StoreModule.forFeature('${Je}', ...). If the default state is intended to be undefined, as is the case with router state, this development-only warning message can be ignored.`),Kt},Nt=>Nt)}function Jt(Je){Object.freeze(Je);const Nt=Pe(Je);return Object.getOwnPropertyNames(Je).forEach(Kt=>{if(!Kt.startsWith("\u0275")&&function oe(Je,Nt){return Object.prototype.hasOwnProperty.call(Je,Nt)}(Je,Kt)&&(!Nt||"caller"!==Kt&&"callee"!==Kt&&"arguments"!==Kt)){const pi=Je[Kt];(_t(pi)||Pe(pi))&&!Object.isFrozen(pi)&&Jt(pi)}}),Je}function ui(Je,Nt=[]){return(Gt(Je)||di(Je))&&0===Nt.length?{path:["root"],value:Je}:Object.keys(Je).reduce((pi,Ri)=>{if(pi)return pi;const ki=Je[Ri];return function De(Je){return Pe(Je)&&Je.hasOwnProperty("\u0275cmp")}(ki)?pi:!(Gt(ki)||di(ki)||function Qe(Je){return"number"==typeof Je}(ki)||function gt(Je){return"boolean"==typeof Je}(ki)||function kt(Je){return"string"==typeof Je}(ki)||vt(ki))&&(function Zt(Je){if(!function ei(Je){return _t(Je)&&!vt(Je)}(Je))return!1;const Nt=Object.getPrototypeOf(Je);return Nt===Object.prototype||null===Nt}(ki)?ui(ki,[...Nt,Ri]):{path:[...Nt,Ri],value:ki})},!1)}function si(Je,Nt){if(!1===Je)return;const Kt=Je.path.join("."),pi=new Error(`Detected unserializable ${Nt} at "${Kt}". ${jt}#strict${Nt}serializability`);throw pi.value=Je.value,pi.unserializablePath=Kt,pi}function Ui(Je){return(0,e.X6Q)()?Object.assign({strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!0,strictActionImmutability:!0,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1},Je):{strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!1,strictActionImmutability:!1,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1}}function Bi({strictActionSerializability:Je,strictStateSerializability:Nt}){return Kt=>Je||Nt?function qi(Je,Nt){return function(Kt,pi){Nt.action(pi)&&si(ui(pi),"action");const Ri=Je(Kt,pi);return Nt.state()&&si(ui(Ri),"state"),Ri}}(Kt,{action:pi=>Je&&!ct(pi),state:()=>Nt}):Kt}function Gi({strictActionImmutability:Je,strictStateImmutability:Nt}){return Kt=>Je||Nt?function Xt(Je,Nt){return function(Kt,pi){const Ri=Nt.action(pi)?Jt(pi):pi,ki=Je(Kt,Ri);return Nt.state()?Jt(ki):ki}}(Kt,{action:pi=>Je&&!ct(pi),state:()=>Nt}):Kt}function ct(Je){return Je.type.startsWith("@ngrx")}function Ft({strictActionWithinNgZone:Je}){return Nt=>Je?function en(Je,Nt){return function(Kt,pi){if(Nt.action(pi)&&!e.R0b.isInAngularZone())throw new Error(`Action '${pi.type}' running outside NgZone. ${jt}#strictactionwithinngzone`);return Je(Kt,pi)}}(Nt,{action:Kt=>Je&&!ct(Kt)}):Nt}function pt(Je){return[{provide:ke,useValue:Je},{provide:ye,useFactory:It,deps:[ke]},{provide:Ee,deps:[ye],useFactory:Ui},{provide:$,multi:!0,deps:[Ee],useFactory:Gi},{provide:$,multi:!0,deps:[Ee],useFactory:Bi},{provide:$,multi:!0,deps:[Ee],useFactory:Ft}]}function it(){return[{provide:te,multi:!0,deps:[Ee],useFactory:de}]}function It(Je){return Je}function de(Je){if(!Je.strictActionTypeUniqueness)return;const Nt=Object.entries(A).filter(([,Kt])=>Kt>1).map(([Kt])=>Kt);if(Nt.length)throw new Error(`Action types are registered more than once, ${Nt.map(Kt=>`"${Kt}"`).join(", ")}. ${jt}#strictactiontypeuniqueness`)}let $e=(()=>{class Je{constructor(Kt,pi,Ri,ki,hn,Hn){}}return Je.\u0275fac=function(Kt){return new(Kt||Je)(e.LFG(se),e.LFG(Ie),e.LFG(G),e.LFG(ht),e.LFG(me,8),e.LFG(te,8))},Je.\u0275mod=e.oAB({type:Je}),Je.\u0275inj=e.cJS({}),Je})(),bt=(()=>{class Je{constructor(Kt,pi,Ri,ki,hn){this.features=Kt,this.featureReducers=pi,this.reducerManager=Ri;const Hn=Kt.map((An,Kn)=>{const wi=pi.shift()[Kn];return Object.assign(Object.assign({},An),{reducers:wi,initialState:Wi(An.initialState)})});Ri.addFeatures(Hn)}ngOnDestroy(){this.reducerManager.removeFeatures(this.features)}}return Je.\u0275fac=function(Kt){return new(Kt||Je)(e.LFG(g),e.LFG(R),e.LFG(Te),e.LFG($e),e.LFG(te,8))},Je.\u0275mod=e.oAB({type:Je}),Je.\u0275inj=e.cJS({}),Je})(),Vt=(()=>{class Je{static forRoot(Kt,pi={}){return{ngModule:$e,providers:[{provide:me,useFactory:mn,deps:[[ht,new e.FiY,new e.tp0]]},{provide:x,useValue:pi.initialState},{provide:t,useFactory:Wi,deps:[x]},{provide:C,useValue:Kt},{provide:I,useExisting:Kt instanceof e.OlP?Kt:C},{provide:c,deps:[e.zs3,C,[new e.tBr(I)]],useFactory:bi},{provide:H,useValue:pi.metaReducers?pi.metaReducers:[]},{provide:fe,deps:[$,H],useFactory:sn},{provide:h,useValue:pi.reducerFactory?pi.reducerFactory:ze},{provide:r,deps:[h,fe],useFactory:Y},J,xe,ee,lt,Tt,pt(pi.runtimeChecks),it()]}}static forFeature(Kt,pi,Ri={}){return{ngModule:bt,providers:[{provide:n,multi:!0,useValue:Kt instanceof Object?{}:Ri},{provide:S,multi:!0,useValue:{key:Kt instanceof Object?Kt.name:Kt,reducerFactory:Ri instanceof e.OlP||!Ri.reducerFactory?ze:Ri.reducerFactory,metaReducers:Ri instanceof e.OlP||!Ri.metaReducers?[]:Ri.metaReducers,initialState:Ri instanceof e.OlP||!Ri.initialState?void 0:Ri.initialState}},{provide:g,deps:[e.zs3,n,S],useFactory:Li},{provide:_,multi:!0,useValue:Kt instanceof Object?Kt.reducer:pi},{provide:V,multi:!0,useExisting:pi instanceof e.OlP?pi:_},{provide:R,multi:!0,deps:[e.zs3,_,[new e.tBr(V)]],useFactory:Ji},it()]}}}return Je.\u0275fac=function(Kt){return new(Kt||Je)},Je.\u0275mod=e.oAB({type:Je}),Je.\u0275inj=e.cJS({}),Je})();function bi(Je,Nt){return Nt instanceof e.OlP?Je.get(Nt):Nt}function Li(Je,Nt,Kt){return Kt.map((pi,Ri)=>{if(Nt[Ri]instanceof e.OlP){const ki=Je.get(Nt[Ri]);return{key:pi.key,reducerFactory:ki.reducerFactory?ki.reducerFactory:ze,metaReducers:ki.metaReducers?ki.metaReducers:[],initialState:ki.initialState}}return pi})}function Ji(Je,Nt){return Nt.map(pi=>pi instanceof e.OlP?Je.get(pi):pi)}function Wi(Je){return"function"==typeof Je?Je():Je}function sn(Je,Nt){return Je.concat(Nt)}function mn(Je){if(Je)throw new TypeError("StoreModule.forRoot() called twice. Feature modules should use StoreModule.forFeature() instead.");return"guarded"}function Yt(...Je){return{reducer:Je.pop(),types:Je.map(pi=>pi.type)}}function Mi(Je,...Nt){const Kt=new Map;for(const pi of Nt)for(const Ri of pi.types){const ki=Kt.get(Ri);Kt.set(Ri,ki?(Hn,An)=>pi.reducer(ki(Hn,An),An):pi.reducer)}return function(pi=Je,Ri){const ki=Kt.get(Ri.type);return ki?ki(pi,Ri):pi}}},1210:(He,j,p)=>{"use strict";p.d(j,{H5:()=>p0,K$:()=>yh,a4:()=>Hh});var e=p(5e3),i=p(9808),u=p(655),b=p(7429),a=p(4968),y=p(8372),d=p(1777);function P(){}function D(f){return null==f?P:function(){return this.querySelector(f)}}function M(f){return"object"==typeof f&&"length"in f?f:Array.from(f)}function A(){return[]}function E(f){return null==f?A:function(){return this.querySelectorAll(f)}}function z(f){return function(){return this.matches(f)}}function U(f){return function(O){return O.matches(f)}}var W=Array.prototype.find;function Q(){return this.firstElementChild}var q=Array.prototype.filter;function ie(){return this.children}function x(f){return new Array(f.length)}function r(f,O){this.ownerDocument=f.ownerDocument,this.namespaceURI=f.namespaceURI,this._next=null,this._parent=f,this.__data__=O}function h(f){return function(){return f}}function c(f,O,o,v,F,X){for(var st,Oe=0,Ut=O.length,zt=X.length;Oe<zt;++Oe)(st=O[Oe])?(st.__data__=X[Oe],v[Oe]=st):o[Oe]=new r(f,X[Oe]);for(;Oe<Ut;++Oe)(st=O[Oe])&&(F[Oe]=st)}function C(f,O,o,v,F,X,Oe){var st,Ut,Ti,zt=new Map,li=O.length,yi=X.length,xi=new Array(li);for(st=0;st<li;++st)(Ut=O[st])&&(xi[st]=Ti=Oe.call(Ut,Ut.__data__,st,O)+"",zt.has(Ti)?F[st]=Ut:zt.set(Ti,Ut));for(st=0;st<yi;++st)Ti=Oe.call(f,X[st],st,X)+"",(Ut=zt.get(Ti))?(v[st]=Ut,Ut.__data__=X[st],zt.delete(Ti)):o[st]=new r(f,X[st]);for(st=0;st<li;++st)(Ut=O[st])&&zt.get(xi[st])===Ut&&(F[st]=Ut)}function S(f){return f.__data__}function H(f,O){return f<O?-1:f>O?1:f>=O?0:NaN}r.prototype={constructor:r,appendChild:function(f){return this._parent.insertBefore(f,this._next)},insertBefore:function(f,O){return this._parent.insertBefore(f,O)},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 be={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 Z(f){var O=f+="",o=O.indexOf(":");return o>=0&&"xmlns"!==(O=f.slice(0,o))&&(f=f.slice(o+1)),be.hasOwnProperty(O)?{space:be[O],local:f}:f}function Y(f){return function(){this.removeAttribute(f)}}function ot(f){return function(){this.removeAttributeNS(f.space,f.local)}}function Ie(f,O){return function(){this.setAttribute(f,O)}}function Ae(f,O){return function(){this.setAttributeNS(f.space,f.local,O)}}function ce(f,O){return function(){var o=O.apply(this,arguments);null==o?this.removeAttribute(f):this.setAttribute(f,o)}}function Te(f,O){return function(){var o=O.apply(this,arguments);null==o?this.removeAttributeNS(f.space,f.local):this.setAttributeNS(f.space,f.local,o)}}function G(f){return f.ownerDocument&&f.ownerDocument.defaultView||f.document&&f||f.defaultView}function ee(f){return function(){this.style.removeProperty(f)}}function ue(f,O,o){return function(){this.style.setProperty(f,O,o)}}function ve(f,O,o){return function(){var v=O.apply(this,arguments);null==v?this.style.removeProperty(f):this.style.setProperty(f,v,o)}}function lt(f,O){return f.style.getPropertyValue(O)||G(f).getComputedStyle(f,null).getPropertyValue(O)}function ht(f){return function(){delete this[f]}}function Tt(f,O){return function(){this[f]=O}}function hi(f,O){return function(){var o=O.apply(this,arguments);null==o?delete this[f]:this[f]=o}}function Gt(f){return f.trim().split(/^|\s+/)}function di(f){return f.classList||new vt(f)}function vt(f){this._node=f,this._names=Gt(f.getAttribute("class")||"")}function kt(f,O){for(var o=di(f),v=-1,F=O.length;++v<F;)o.add(O[v])}function gt(f,O){for(var o=di(f),v=-1,F=O.length;++v<F;)o.remove(O[v])}function Qe(f){return function(){kt(this,f)}}function _t(f){return function(){gt(this,f)}}function ei(f,O){return function(){(O.apply(this,arguments)?kt:gt)(this,f)}}function Pe(){this.textContent=""}function De(f){return function(){this.textContent=f}}function oe(f){return function(){var O=f.apply(this,arguments);this.textContent=null==O?"":O}}function ut(){this.innerHTML=""}function ft(f){return function(){this.innerHTML=f}}function Rt(f){return function(){var O=f.apply(this,arguments);this.innerHTML=null==O?"":O}}function Re(){this.nextSibling&&this.parentNode.appendChild(this)}function Ze(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Fe(f){return function(){var O=this.ownerDocument,o=this.namespaceURI;return o===ze&&O.documentElement.namespaceURI===ze?O.createElement(f):O.createElementNS(o,f)}}function rt(f){return function(){return this.ownerDocument.createElementNS(f.space,f.local)}}function at(f){var O=Z(f);return(O.local?rt:Fe)(O)}function mi(){return null}function Jt(){var f=this.parentNode;f&&f.removeChild(this)}function ui(){var f=this.cloneNode(!1),O=this.parentNode;return O?O.insertBefore(f,this.nextSibling):f}function si(){var f=this.cloneNode(!0),O=this.parentNode;return O?O.insertBefore(f,this.nextSibling):f}function Gi(f){return f.trim().split(/^|\s+/).map(function(O){var o="",v=O.indexOf(".");return v>=0&&(o=O.slice(v+1),O=O.slice(0,v)),{type:O,name:o}})}function ct(f){return function(){var O=this.__on;if(O){for(var X,o=0,v=-1,F=O.length;o<F;++o)X=O[o],f.type&&X.type!==f.type||X.name!==f.name?O[++v]=X:this.removeEventListener(X.type,X.listener,X.options);++v?O.length=v:delete this.__on}}}function Ft(f,O,o){return function(){var F,v=this.__on,X=function Bi(f){return function(O){f.call(this,O,this.__data__)}}(O);if(v)for(var Oe=0,st=v.length;Oe<st;++Oe)if((F=v[Oe]).type===f.type&&F.name===f.name)return this.removeEventListener(F.type,F.listener,F.options),this.addEventListener(F.type,F.listener=X,F.options=o),void(F.value=O);this.addEventListener(f.type,X,o),F={type:f.type,name:f.name,value:O,listener:X,options:o},v?v.push(F):this.__on=[F]}}function it(f,O,o){var v=G(f),F=v.CustomEvent;"function"==typeof F?F=new F(O,o):(F=v.document.createEvent("Event"),o?(F.initEvent(O,o.bubbles,o.cancelable),F.detail=o.detail):F.initEvent(O,!1,!1)),f.dispatchEvent(F)}function It(f,O){return function(){return it(this,f,O)}}function de(f,O){return function(){return it(this,f,O.apply(this,arguments))}}vt.prototype={add:function(f){this._names.indexOf(f)<0&&(this._names.push(f),this._node.setAttribute("class",this._names.join(" ")))},remove:function(f){var O=this._names.indexOf(f);O>=0&&(this._names.splice(O,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(f){return this._names.indexOf(f)>=0}};var Vt=[null];function bi(f,O){this._groups=f,this._parents=O}function Li(){return new bi([[document.documentElement]],Vt)}bi.prototype=Li.prototype={constructor:bi,select:function T(f){"function"!=typeof f&&(f=D(f));for(var O=this._groups,o=O.length,v=new Array(o),F=0;F<o;++F)for(var Ut,zt,X=O[F],Oe=X.length,st=v[F]=new Array(Oe),li=0;li<Oe;++li)(Ut=X[li])&&(zt=f.call(Ut,Ut.__data__,li,X))&&("__data__"in Ut&&(zt.__data__=Ut.__data__),st[li]=zt);return new bi(v,this._parents)},selectAll:function w(f){f="function"==typeof f?function k(f){return function(){var O=f.apply(this,arguments);return null==O?[]:M(O)}}(f):E(f);for(var O=this._groups,o=O.length,v=[],F=[],X=0;X<o;++X)for(var Ut,Oe=O[X],st=Oe.length,zt=0;zt<st;++zt)(Ut=Oe[zt])&&(v.push(f.call(Ut,Ut.__data__,zt,Oe)),F.push(Ut));return new bi(v,F)},selectChild:function le(f){return this.select(null==f?Q:function ne(f){return function(){return W.call(this.children,f)}}("function"==typeof f?f:U(f)))},selectChildren:function J(f){return this.selectAll(null==f?ie:function se(f){return function(){return q.call(this.children,f)}}("function"==typeof f?f:U(f)))},filter:function me(f){"function"!=typeof f&&(f=z(f));for(var O=this._groups,o=O.length,v=new Array(o),F=0;F<o;++F)for(var Ut,X=O[F],Oe=X.length,st=v[F]=[],zt=0;zt<Oe;++zt)(Ut=X[zt])&&f.call(Ut,Ut.__data__,zt,X)&&st.push(Ut);return new bi(v,this._parents)},data:function I(f,O){if(!arguments.length)return Array.from(this,S);var o=O?C:c,v=this._parents,F=this._groups;"function"!=typeof f&&(f=h(f));for(var X=F.length,Oe=new Array(X),st=new Array(X),Ut=new Array(X),zt=0;zt<X;++zt){var li=v[zt],yi=F[zt],xi=yi.length,Ti=M(f.call(li,li&&li.__data__,zt,v)),nn=Ti.length,vn=st[zt]=new Array(nn),Ii=Oe[zt]=new Array(nn),fn=Ut[zt]=new Array(xi);o(li,yi,vn,Ii,fn,Ti,O);for(var Fn,Dn,_n=0,pn=0;_n<nn;++_n)if(Fn=vn[_n]){for(_n>=pn&&(pn=_n+1);!(Dn=Ii[pn])&&++pn<nn;);Fn._next=Dn||null}}return(Oe=new bi(Oe,v))._enter=st,Oe._exit=Ut,Oe},enter:function t(){return new bi(this._enter||this._groups.map(x),this._parents)},exit:function _(){return new bi(this._exit||this._groups.map(x),this._parents)},join:function n(f,O,o){var v=this.enter(),F=this,X=this.exit();return v="function"==typeof f?f(v):v.append(f+""),null!=O&&(F=O(F)),null==o?X.remove():o(X),v&&F?v.merge(F).order():F},merge:function g(f){if(!(f instanceof bi))throw new Error("invalid merge");for(var O=this._groups,o=f._groups,v=O.length,X=Math.min(v,o.length),Oe=new Array(v),st=0;st<X;++st)for(var xi,Ut=O[st],zt=o[st],li=Ut.length,yi=Oe[st]=new Array(li),Ti=0;Ti<li;++Ti)(xi=Ut[Ti]||zt[Ti])&&(yi[Ti]=xi);for(;st<v;++st)Oe[st]=O[st];return new bi(Oe,this._parents)},selection:function Ji(){return this},order:function V(){for(var f=this._groups,O=-1,o=f.length;++O<o;)for(var Oe,v=f[O],F=v.length-1,X=v[F];--F>=0;)(Oe=v[F])&&(X&&4^Oe.compareDocumentPosition(X)&&X.parentNode.insertBefore(Oe,X),X=Oe);return this},sort:function R(f){function O(yi,xi){return yi&&xi?f(yi.__data__,xi.__data__):!yi-!xi}f||(f=H);for(var o=this._groups,v=o.length,F=new Array(v),X=0;X<v;++X){for(var zt,Oe=o[X],st=Oe.length,Ut=F[X]=new Array(st),li=0;li<st;++li)(zt=Oe[li])&&(Ut[li]=zt);Ut.sort(O)}return new bi(F,this._parents).order()},call:function $(){var f=arguments[0];return arguments[0]=this,f.apply(null,arguments),this},nodes:function fe(){return Array.from(this)},node:function ye(){for(var f=this._groups,O=0,o=f.length;O<o;++O)for(var v=f[O],F=0,X=v.length;F<X;++F){var Oe=v[F];if(Oe)return Oe}return null},size:function ke(){let f=0;for(const O of this)++f;return f},empty:function Ee(){return!this.node()},each:function te(f){for(var O=this._groups,o=0,v=O.length;o<v;++o)for(var st,F=O[o],X=0,Oe=F.length;X<Oe;++X)(st=F[X])&&f.call(st,st.__data__,X,F);return this},attr:function xe(f,O){var o=Z(f);if(arguments.length<2){var v=this.node();return o.local?v.getAttributeNS(o.space,o.local):v.getAttribute(o)}return this.each((null==O?o.local?ot:Y:"function"==typeof O?o.local?Te:ce:o.local?Ae:Ie)(o,O))},style:function Le(f,O,o){return arguments.length>1?this.each((null==O?ee:"function"==typeof O?ve:ue)(f,O,null==o?"":o)):lt(this.node(),f)},property:function jt(f,O){return arguments.length>1?this.each((null==O?ht:"function"==typeof O?hi:Tt)(f,O)):this.node()[f]},classed:function Zt(f,O){var o=Gt(f+"");if(arguments.length<2){for(var v=di(this.node()),F=-1,X=o.length;++F<X;)if(!v.contains(o[F]))return!1;return!0}return this.each(("function"==typeof O?ei:O?Qe:_t)(o,O))},text:function Me(f){return arguments.length?this.each(null==f?Pe:("function"==typeof f?oe:De)(f)):this.node().textContent},html:function et(f){return arguments.length?this.each(null==f?ut:("function"==typeof f?Rt:ft)(f)):this.node().innerHTML},raise:function qe(){return this.each(Re)},lower:function we(){return this.each(Ze)},append:function yt(f){var O="function"==typeof f?f:at(f);return this.select(function(){return this.appendChild(O.apply(this,arguments))})},insert:function Xt(f,O){var o="function"==typeof f?f:at(f),v=null==O?mi:"function"==typeof O?O:D(O);return this.select(function(){return this.insertBefore(o.apply(this,arguments),v.apply(this,arguments)||null)})},remove:function qi(){return this.each(Jt)},clone:function en(f){return this.select(f?si:ui)},datum:function Ui(f){return arguments.length?this.property("__data__",f):this.node().__data__},on:function pt(f,O,o){var F,Oe,v=Gi(f+""),X=v.length;if(!(arguments.length<2)){for(st=O?Ft:ct,F=0;F<X;++F)this.each(st(v[F],O,o));return this}var st=this.node().__on;if(st)for(var li,Ut=0,zt=st.length;Ut<zt;++Ut)for(F=0,li=st[Ut];F<X;++F)if((Oe=v[F]).type===li.type&&Oe.name===li.name)return li.value},dispatch:function $e(f,O){return this.each(("function"==typeof O?de:It)(f,O))},[Symbol.iterator]:function*bt(){for(var f=this._groups,O=0,o=f.length;O<o;++O)for(var Oe,v=f[O],F=0,X=v.length;F<X;++F)(Oe=v[F])&&(yield Oe)}};const Wi=Li;var mn={value:()=>{}};function Yt(){for(var v,f=0,O=arguments.length,o={};f<O;++f){if(!(v=arguments[f]+"")||v in o||/[\s.]/.test(v))throw new Error("illegal type: "+v);o[v]=[]}return new Mi(o)}function Mi(f){this._=f}function Je(f,O){return f.trim().split(/^|\s+/).map(function(o){var v="",F=o.indexOf(".");if(F>=0&&(v=o.slice(F+1),o=o.slice(0,F)),o&&!O.hasOwnProperty(o))throw new Error("unknown type: "+o);return{type:o,name:v}})}function Nt(f,O){for(var F,o=0,v=f.length;o<v;++o)if((F=f[o]).name===O)return F.value}function Kt(f,O,o){for(var v=0,F=f.length;v<F;++v)if(f[v].name===O){f[v]=mn,f=f.slice(0,v).concat(f.slice(v+1));break}return null!=o&&f.push({name:O,value:o}),f}Mi.prototype=Yt.prototype={constructor:Mi,on:function(f,O){var F,o=this._,v=Je(f+"",o),X=-1,Oe=v.length;if(!(arguments.length<2)){if(null!=O&&"function"!=typeof O)throw new Error("invalid callback: "+O);for(;++X<Oe;)if(F=(f=v[X]).type)o[F]=Kt(o[F],f.name,O);else if(null==O)for(F in o)o[F]=Kt(o[F],f.name,null);return this}for(;++X<Oe;)if((F=(f=v[X]).type)&&(F=Nt(o[F],f.name)))return F},copy:function(){var f={},O=this._;for(var o in O)f[o]=O[o].slice();return new Mi(f)},call:function(f,O){if((F=arguments.length-2)>0)for(var F,X,o=new Array(F),v=0;v<F;++v)o[v]=arguments[v+2];if(!this._.hasOwnProperty(f))throw new Error("unknown type: "+f);for(v=0,F=(X=this._[f]).length;v<F;++v)X[v].value.apply(O,o)},apply:function(f,O,o){if(!this._.hasOwnProperty(f))throw new Error("unknown type: "+f);for(var v=this._[f],F=0,X=v.length;F<X;++F)v[F].value.apply(O,o)}};const pi=Yt;function An(f,O,o){f.prototype=O.prototype=o,o.constructor=f}function Kn(f,O){var o=Object.create(f.prototype);for(var v in O)o[v]=O[v];return o}function Cn(){}var Yi=1/.7,bn="\\s*([+-]?\\d+)\\s*",Gn="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",ar="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",kr=/^#([0-9a-f]{3,8})$/,Pr=new RegExp("^rgb\\("+[bn,bn,bn]+"\\)$"),ia=new RegExp("^rgb\\("+[ar,ar,ar]+"\\)$"),sa=new RegExp("^rgba\\("+[bn,bn,bn,Gn]+"\\)$"),oa=new RegExp("^rgba\\("+[ar,ar,ar,Gn]+"\\)$"),La=new RegExp("^hsl\\("+[Gn,ar,ar]+"\\)$"),Ta=new RegExp("^hsla\\("+[Gn,ar,ar,Gn]+"\\)$"),rr={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 Yr(){return this.rgb().formatHex()}function Ra(){return this.rgb().formatRgb()}function qr(f){var O,o;return f=(f+"").trim().toLowerCase(),(O=kr.exec(f))?(o=O[1].length,O=parseInt(O[1],16),6===o?xa(O):3===o?new tr(O>>8&15|O>>4&240,O>>4&15|240&O,(15&O)<<4|15&O,1):8===o?Rr(O>>24&255,O>>16&255,O>>8&255,(255&O)/255):4===o?Rr(O>>12&15|O>>8&240,O>>8&15|O>>4&240,O>>4&15|240&O,((15&O)<<4|15&O)/255):null):(O=Pr.exec(f))?new tr(O[1],O[2],O[3],1):(O=ia.exec(f))?new tr(255*O[1]/100,255*O[2]/100,255*O[3]/100,1):(O=sa.exec(f))?Rr(O[1],O[2],O[3],O[4]):(O=oa.exec(f))?Rr(255*O[1]/100,255*O[2]/100,255*O[3]/100,O[4]):(O=La.exec(f))?jr(O[1],O[2]/100,O[3]/100,1):(O=Ta.exec(f))?jr(O[1],O[2]/100,O[3]/100,O[4]):rr.hasOwnProperty(f)?xa(rr[f]):"transparent"===f?new tr(NaN,NaN,NaN,0):null}function xa(f){return new tr(f>>16&255,f>>8&255,255&f,1)}function Rr(f,O,o,v){return v<=0&&(f=O=o=NaN),new tr(f,O,o,v)}function Xn(f){return f instanceof Cn||(f=qr(f)),f?new tr((f=f.rgb()).r,f.g,f.b,f.opacity):new tr}function la(f,O,o,v){return 1===arguments.length?Xn(f):new tr(f,O,o,null==v?1:v)}function tr(f,O,o,v){this.r=+f,this.g=+O,this.b=+o,this.opacity=+v}function wr(){return"#"+ma(this.r)+ma(this.g)+ma(this.b)}function lr(){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 ma(f){return((f=Math.max(0,Math.min(255,Math.round(f)||0)))<16?"0":"")+f.toString(16)}function jr(f,O,o,v){return v<=0?f=O=o=NaN:o<=0||o>=1?f=O=NaN:O<=0&&(f=NaN),new Ur(f,O,o,v)}function Dr(f){if(f instanceof Ur)return new Ur(f.h,f.s,f.l,f.opacity);if(f instanceof Cn||(f=qr(f)),!f)return new Ur;if(f instanceof Ur)return f;var O=(f=f.rgb()).r/255,o=f.g/255,v=f.b/255,F=Math.min(O,o,v),X=Math.max(O,o,v),Oe=NaN,st=X-F,Ut=(X+F)/2;return st?(Oe=O===X?(o-v)/st+6*(o<v):o===X?(v-O)/st+2:(O-o)/st+4,st/=Ut<.5?X+F:2-X-F,Oe*=60):st=Ut>0&&Ut<1?0:Oe,new Ur(Oe,st,Ut,f.opacity)}function Ur(f,O,o,v){this.h=+f,this.s=+O,this.l=+o,this.opacity=+v}function mr(f,O,o){return 255*(f<60?O+(o-O)*f/60:f<180?o:f<240?O+(o-O)*(240-f)/60:O)}function gr(f,O,o,v,F){var X=f*f,Oe=X*f;return((1-3*f+3*X-Oe)*O+(4-6*X+3*Oe)*o+(1+3*f+3*X-3*Oe)*v+Oe*F)/6}An(Cn,qr,{copy:function(f){return Object.assign(new this.constructor,this,f)},displayable:function(){return this.rgb().displayable()},hex:Yr,formatHex:Yr,formatHsl:function na(){return Dr(this).formatHsl()},formatRgb:Ra,toString:Ra}),An(tr,la,Kn(Cn,{brighter:function(f){return f=null==f?Yi:Math.pow(Yi,f),new tr(this.r*f,this.g*f,this.b*f,this.opacity)},darker:function(f){return f=null==f?.7:Math.pow(.7,f),new tr(this.r*f,this.g*f,this.b*f,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:wr,formatHex:wr,formatRgb:lr,toString:lr})),An(Ur,function Nr(f,O,o,v){return 1===arguments.length?Dr(f):new Ur(f,O,o,null==v?1:v)},Kn(Cn,{brighter:function(f){return f=null==f?Yi:Math.pow(Yi,f),new Ur(this.h,this.s,this.l*f,this.opacity)},darker:function(f){return f=null==f?.7:Math.pow(.7,f),new Ur(this.h,this.s,this.l*f,this.opacity)},rgb:function(){var f=this.h%360+360*(this.h<0),O=isNaN(f)||isNaN(this.s)?0:this.s,o=this.l,v=o+(o<.5?o:1-o)*O,F=2*o-v;return new tr(mr(f>=240?f-240:f+120,F,v),mr(f,F,v),mr(f<120?f+240:f-120,F,v),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 da=f=>()=>f;function qn(f,O){var o=O-f;return o?function Jn(f,O){return function(o){return f+o*O}}(f,o):da(isNaN(f)?O:f)}const Hr=function f(O){var o=function $n(f){return 1==(f=+f)?qn:function(O,o){return o-O?function ga(f,O,o){return f=Math.pow(f,o),O=Math.pow(O,o)-f,o=1/o,function(v){return Math.pow(f+v*O,o)}}(O,o,f):da(isNaN(O)?o:O)}}(O);function v(F,X){var Oe=o((F=la(F)).r,(X=la(X)).r),st=o(F.g,X.g),Ut=o(F.b,X.b),zt=qn(F.opacity,X.opacity);return function(li){return F.r=Oe(li),F.g=st(li),F.b=Ut(li),F.opacity=zt(li),F+""}}return v.gamma=f,v}(1);function br(f){return function(O){var Oe,st,o=O.length,v=new Array(o),F=new Array(o),X=new Array(o);for(Oe=0;Oe<o;++Oe)st=la(O[Oe]),v[Oe]=st.r||0,F[Oe]=st.g||0,X[Oe]=st.b||0;return v=f(v),F=f(F),X=f(X),st.opacity=1,function(Ut){return st.r=v(Ut),st.g=F(Ut),st.b=X(Ut),st+""}}}function Wn(f,O){var Oe,o=O?O.length:0,v=f?Math.min(o,f.length):0,F=new Array(v),X=new Array(o);for(Oe=0;Oe<v;++Oe)F[Oe]=oi(f[Oe],O[Oe]);for(;Oe<o;++Oe)X[Oe]=O[Oe];return function(st){for(Oe=0;Oe<v;++Oe)X[Oe]=F[Oe](st);return X}}function je(f,O){var o=new Date;return f=+f,O=+O,function(v){return o.setTime(f*(1-v)+O*v),o}}function Mt(f,O){return f=+f,O=+O,function(o){return f*(1-o)+O*o}}function Ye(f,O){var F,o={},v={};for(F in(null===f||"object"!=typeof f)&&(f={}),(null===O||"object"!=typeof O)&&(O={}),O)F in f?o[F]=oi(f[F],O[F]):v[F]=O[F];return function(X){for(F in o)v[F]=o[F](X);return v}}br(function ra(f){var O=f.length-1;return function(o){var v=o<=0?o=0:o>=1?(o=1,O-1):Math.floor(o*O),F=f[v],X=f[v+1];return gr((o-v/O)*O,v>0?f[v-1]:2*F-X,F,X,v<O-1?f[v+2]:2*X-F)}}),br(function ca(f){var O=f.length;return function(o){var v=Math.floor(((o%=1)<0?++o:o)*O);return gr((o-v/O)*O,f[(v+O-1)%O],f[v%O],f[(v+1)%O],f[(v+2)%O])}});var Ot=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ri=new RegExp(Ot.source,"g");function rn(f,O){var v,F,X,o=Ot.lastIndex=ri.lastIndex=0,Oe=-1,st=[],Ut=[];for(f+="",O+="";(v=Ot.exec(f))&&(F=ri.exec(O));)(X=F.index)>o&&(X=O.slice(o,X),st[Oe]?st[Oe]+=X:st[++Oe]=X),(v=v[0])===(F=F[0])?st[Oe]?st[Oe]+=F:st[++Oe]=F:(st[++Oe]=null,Ut.push({i:Oe,x:Mt(v,F)})),o=ri.lastIndex;return o<O.length&&(X=O.slice(o),st[Oe]?st[Oe]+=X:st[++Oe]=X),st.length<2?Ut[0]?function Oi(f){return function(O){return f(O)+""}}(Ut[0].x):function Si(f){return function(){return f}}(O):(O=Ut.length,function(zt){for(var yi,li=0;li<O;++li)st[(yi=Ut[li]).i]=yi.x(zt);return st.join("")})}function Yn(f,O){O||(O=[]);var F,o=f?Math.min(O.length,f.length):0,v=O.slice();return function(X){for(F=0;F<o;++F)v[F]=f[F]*(1-X)+O[F]*X;return v}}function oi(f,O){var v,o=typeof O;return null==O||"boolean"===o?da(O):("number"===o?Mt:"string"===o?(v=qr(O))?(O=v,Hr):rn:O instanceof qr?Hr:O instanceof Date?je:function At(f){return ArrayBuffer.isView(f)&&!(f instanceof DataView)}(O)?Yn:Array.isArray(O)?Wn:"function"!=typeof O.valueOf&&"function"!=typeof O.toString||isNaN(O)?Ye:Mt)(f,O)}var Ne,Lt,Ai=0,ji=0,Ke=0,vi=0,$i=0,Nn=0,Sr="object"==typeof performance&&performance.now?performance:Date,Ca="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(f){setTimeout(f,17)};function Jr(){return $i||(Ca($a),$i=Sr.now()+Nn)}function $a(){$i=0}function Hi(){this._call=this._time=this._next=null}function Vn(f,O,o){var v=new Hi;return v.restart(f,O,o),v}function Cr(){$i=(vi=Sr.now())+Nn,Ai=ji=0;try{!function ms(){Jr(),++Ai;for(var O,f=Ne;f;)(O=$i-f._time)>=0&&f._call.call(null,O),f=f._next;--Ai}()}finally{Ai=0,function Da(){for(var f,o,O=Ne,v=1/0;O;)O._call?(v>O._time&&(v=O._time),f=O,O=O._next):(o=O._next,O._next=null,O=f?f._next=o:Ne=o);Lt=f,cr(v)}(),$i=0}}function ss(){var f=Sr.now(),O=f-vi;O>1e3&&(Nn-=O,vi=f)}function cr(f){Ai||(ji&&(ji=clearTimeout(ji)),f-$i>24?(f<1/0&&(ji=setTimeout(Cr,f-Sr.now()-Nn)),Ke&&(Ke=clearInterval(Ke))):(Ke||(vi=Sr.now(),Ke=setInterval(ss,1e3)),Ai=1,Ca(Cr)))}function gs(f,O,o){var v=new Hi;return v.restart(F=>{v.stop(),f(F+O)},O=null==O?0:+O,o),v}Hi.prototype=Vn.prototype={constructor:Hi,restart:function(f,O,o){if("function"!=typeof f)throw new TypeError("callback is not a function");o=(null==o?Jr():+o)+(null==O?0:+O),!this._next&&Lt!==this&&(Lt?Lt._next=this:Ne=this,Lt=this),this._call=f,this._time=o,cr()},stop:function(){this._call&&(this._call=null,this._time=1/0,cr())}};var Cs=pi("start","end","cancel","interrupt"),Ia=[];function pe(f,O,o,v,F,X){var Oe=f.__transition;if(Oe){if(o in Oe)return}else f.__transition={};!function ii(f,O,o){var F,v=f.__transition;function Oe(zt){var li,yi,xi,Ti;if(1!==o.state)return Ut();for(li in v)if((Ti=v[li]).name===o.name){if(3===Ti.state)return gs(Oe);4===Ti.state?(Ti.state=6,Ti.timer.stop(),Ti.on.call("interrupt",f,f.__data__,Ti.index,Ti.group),delete v[li]):+li<O&&(Ti.state=6,Ti.timer.stop(),Ti.on.call("cancel",f,f.__data__,Ti.index,Ti.group),delete v[li])}if(gs(function(){3===o.state&&(o.state=4,o.timer.restart(st,o.delay,o.time),st(zt))}),o.state=2,o.on.call("start",f,f.__data__,o.index,o.group),2===o.state){for(o.state=3,F=new Array(xi=o.tween.length),li=0,yi=-1;li<xi;++li)(Ti=o.tween[li].value.call(f,f.__data__,o.index,o.group))&&(F[++yi]=Ti);F.length=yi+1}}function st(zt){for(var li=zt<o.duration?o.ease.call(null,zt/o.duration):(o.timer.restart(Ut),o.state=5,1),yi=-1,xi=F.length;++yi<xi;)F[yi].call(f,li);5===o.state&&(o.on.call("end",f,f.__data__,o.index,o.group),Ut())}function Ut(){for(var zt in o.state=6,o.timer.stop(),delete v[O],v)return;delete f.__transition}v[O]=o,o.timer=Vn(function X(zt){o.state=1,o.timer.restart(Oe,o.delay,o.time),o.delay<=zt&&Oe(zt-o.delay)},0,o.time)}(f,o,{name:O,index:v,group:F,on:Cs,tween:Ia,time:X.time,delay:X.delay,duration:X.duration,ease:X.ease,timer:null,state:0})}function Ge(f,O){var o=Ht(f,O);if(o.state>0)throw new Error("too late; already scheduled");return o}function xt(f,O){var o=Ht(f,O);if(o.state>3)throw new Error("too late; already running");return o}function Ht(f,O){var o=f.__transition;if(!o||!(o=o[O]))throw new Error("transition not found");return o}var wn,Pi=180/Math.PI,tn={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function cn(f,O,o,v,F,X){var Oe,st,Ut;return(Oe=Math.sqrt(f*f+O*O))&&(f/=Oe,O/=Oe),(Ut=f*o+O*v)&&(o-=f*Ut,v-=O*Ut),(st=Math.sqrt(o*o+v*v))&&(o/=st,v/=st,Ut/=st),f*v<O*o&&(f=-f,O=-O,Ut=-Ut,Oe=-Oe),{translateX:F,translateY:X,rotate:Math.atan2(O,f)*Pi,skewX:Math.atan(Ut)*Pi,scaleX:Oe,scaleY:st}}function Ln(f,O,o,v){function F(zt){return zt.length?zt.pop()+" ":""}return function(zt,li){var yi=[],xi=[];return zt=f(zt),li=f(li),function X(zt,li,yi,xi,Ti,nn){if(zt!==yi||li!==xi){var vn=Ti.push("translate(",null,O,null,o);nn.push({i:vn-4,x:Mt(zt,yi)},{i:vn-2,x:Mt(li,xi)})}else(yi||xi)&&Ti.push("translate("+yi+O+xi+o)}(zt.translateX,zt.translateY,li.translateX,li.translateY,yi,xi),function Oe(zt,li,yi,xi){zt!==li?(zt-li>180?li+=360:li-zt>180&&(zt+=360),xi.push({i:yi.push(F(yi)+"rotate(",null,v)-2,x:Mt(zt,li)})):li&&yi.push(F(yi)+"rotate("+li+v)}(zt.rotate,li.rotate,yi,xi),function st(zt,li,yi,xi){zt!==li?xi.push({i:yi.push(F(yi)+"skewX(",null,v)-2,x:Mt(zt,li)}):li&&yi.push(F(yi)+"skewX("+li+v)}(zt.skewX,li.skewX,yi,xi),function Ut(zt,li,yi,xi,Ti,nn){if(zt!==yi||li!==xi){var vn=Ti.push(F(Ti)+"scale(",null,",",null,")");nn.push({i:vn-4,x:Mt(zt,yi)},{i:vn-2,x:Mt(li,xi)})}else(1!==yi||1!==xi)&&Ti.push(F(Ti)+"scale("+yi+","+xi+")")}(zt.scaleX,zt.scaleY,li.scaleX,li.scaleY,yi,xi),zt=li=null,function(Ti){for(var Ii,nn=-1,vn=xi.length;++nn<vn;)yi[(Ii=xi[nn]).i]=Ii.x(Ti);return yi.join("")}}}var Qn=Ln(function Pn(f){const O=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(f+"");return O.isIdentity?tn:cn(O.a,O.b,O.c,O.d,O.e,O.f)},"px, ","px)","deg)"),xr=Ln(function yn(f){return null!=f&&(wn||(wn=document.createElementNS("http://www.w3.org/2000/svg","g")),wn.setAttribute("transform",f),f=wn.transform.baseVal.consolidate())?cn((f=f.matrix).a,f.b,f.c,f.d,f.e,f.f):tn},", ",")",")");function dr(f,O){var o,v;return function(){var F=xt(this,f),X=F.tween;if(X!==o)for(var Oe=0,st=(v=o=X).length;Oe<st;++Oe)if(v[Oe].name===O){(v=v.slice()).splice(Oe,1);break}F.tween=v}}function Zr(f,O,o){var v,F;if("function"!=typeof o)throw new Error;return function(){var X=xt(this,f),Oe=X.tween;if(Oe!==v){F=(v=Oe).slice();for(var st={name:O,value:o},Ut=0,zt=F.length;Ut<zt;++Ut)if(F[Ut].name===O){F[Ut]=st;break}Ut===zt&&F.push(st)}X.tween=F}}function hr(f,O,o){var v=f._id;return f.each(function(){var F=xt(this,v);(F.value||(F.value={}))[O]=o.apply(this,arguments)}),function(F){return Ht(F,v).value[O]}}function zr(f,O){var o;return("number"==typeof O?Mt:O instanceof qr?Hr:(o=qr(O))?(O=o,Hr):rn)(f,O)}function zn(f){return function(){this.removeAttribute(f)}}function ur(f){return function(){this.removeAttributeNS(f.space,f.local)}}function ka(f,O,o){var v,X,F=o+"";return function(){var Oe=this.getAttribute(f);return Oe===F?null:Oe===v?X:X=O(v=Oe,o)}}function tt(f,O,o){var v,X,F=o+"";return function(){var Oe=this.getAttributeNS(f.space,f.local);return Oe===F?null:Oe===v?X:X=O(v=Oe,o)}}function Et(f,O,o){var v,F,X;return function(){var Oe,Ut,st=o(this);return null==st?void this.removeAttribute(f):(Oe=this.getAttribute(f))===(Ut=st+"")?null:Oe===v&&Ut===F?X:(F=Ut,X=O(v=Oe,st))}}function St(f,O,o){var v,F,X;return function(){var Oe,Ut,st=o(this);return null==st?void this.removeAttributeNS(f.space,f.local):(Oe=this.getAttributeNS(f.space,f.local))===(Ut=st+"")?null:Oe===v&&Ut===F?X:(F=Ut,X=O(v=Oe,st))}}function qt(f,O){return function(o){this.setAttribute(f,O.call(this,o))}}function gi(f,O){return function(o){this.setAttributeNS(f.space,f.local,O.call(this,o))}}function ti(f,O){var o,v;function F(){var X=O.apply(this,arguments);return X!==v&&(o=(v=X)&&gi(f,X)),o}return F._value=O,F}function fi(f,O){var o,v;function F(){var X=O.apply(this,arguments);return X!==v&&(o=(v=X)&&qt(f,X)),o}return F._value=O,F}function Ki(f,O){return function(){Ge(this,f).delay=+O.apply(this,arguments)}}function Qi(f,O){return O=+O,function(){Ge(this,f).delay=O}}function xn(f,O){return function(){xt(this,f).duration=+O.apply(this,arguments)}}function jn(f,O){return O=+O,function(){xt(this,f).duration=O}}function Kr(f,O){if("function"!=typeof O)throw new Error;return function(){xt(this,f).ease=O}}function Na(f,O,o){var v,F,X=function Br(f){return(f+"").trim().split(/^|\s+/).every(function(O){var o=O.indexOf(".");return o>=0&&(O=O.slice(0,o)),!O||"start"===O})}(O)?Ge:xt;return function(){var Oe=X(this,f),st=Oe.on;st!==v&&(F=(v=st).copy()).on(O,o),Oe.on=F}}var We=Wi.prototype.constructor;function ge(f){return function(){this.style.removeProperty(f)}}function Qt(f,O,o){return function(v){this.style.setProperty(f,O.call(this,v),o)}}function ai(f,O,o){var v,F;function X(){var Oe=O.apply(this,arguments);return Oe!==F&&(v=(F=Oe)&&Qt(f,Oe,o)),v}return X._value=O,X}function un(f){return function(O){this.textContent=f.call(this,O)}}function kn(f){var O,o;function v(){var F=f.apply(this,arguments);return F!==o&&(O=(o=F)&&un(F)),O}return v._value=f,v}var B1=0;function Ea(f,O,o,v){this._groups=f,this._parents=O,this._name=o,this._id=v}function c3(){return++B1}var $s=Wi.prototype;Ea.prototype=function lo(f){return Wi().transition(f)}.prototype={constructor:Ea,select:function Xe(f){var O=this._name,o=this._id;"function"!=typeof f&&(f=D(f));for(var v=this._groups,F=v.length,X=new Array(F),Oe=0;Oe<F;++Oe)for(var li,yi,st=v[Oe],Ut=st.length,zt=X[Oe]=new Array(Ut),xi=0;xi<Ut;++xi)(li=st[xi])&&(yi=f.call(li,li.__data__,xi,st))&&("__data__"in li&&(yi.__data__=li.__data__),zt[xi]=yi,pe(zt[xi],O,o,xi,zt,Ht(li,o)));return new Ea(X,this._parents,O,o)},selectAll:function K(f){var O=this._name,o=this._id;"function"!=typeof f&&(f=E(f));for(var v=this._groups,F=v.length,X=[],Oe=[],st=0;st<F;++st)for(var li,Ut=v[st],zt=Ut.length,yi=0;yi<zt;++yi)if(li=Ut[yi]){for(var Ti,xi=f.call(li,li.__data__,yi,Ut),nn=Ht(li,o),vn=0,Ii=xi.length;vn<Ii;++vn)(Ti=xi[vn])&&pe(Ti,O,o,vn,xi,nn);X.push(xi),Oe.push(li)}return new Ea(X,Oe,O,o)},filter:function fr(f){"function"!=typeof f&&(f=z(f));for(var O=this._groups,o=O.length,v=new Array(o),F=0;F<o;++F)for(var Ut,X=O[F],Oe=X.length,st=v[F]=[],zt=0;zt<Oe;++zt)(Ut=X[zt])&&f.call(Ut,Ut.__data__,zt,X)&&st.push(Ut);return new Ea(v,this._parents,this._name,this._id)},merge:function Ir(f){if(f._id!==this._id)throw new Error;for(var O=this._groups,o=f._groups,v=O.length,X=Math.min(v,o.length),Oe=new Array(v),st=0;st<X;++st)for(var xi,Ut=O[st],zt=o[st],li=Ut.length,yi=Oe[st]=new Array(li),Ti=0;Ti<li;++Ti)(xi=Ut[Ti]||zt[Ti])&&(yi[Ti]=xi);for(;st<v;++st)Oe[st]=O[st];return new Ea(Oe,this._parents,this._name,this._id)},selection:function Bt(){return new We(this._groups,this._parents)},transition:function Ss(){for(var f=this._name,O=this._id,o=c3(),v=this._groups,F=v.length,X=0;X<F;++X)for(var Ut,Oe=v[X],st=Oe.length,zt=0;zt<st;++zt)if(Ut=Oe[zt]){var li=Ht(Ut,O);pe(Ut,f,o,zt,Oe,{time:li.time+li.delay+li.duration,delay:0,duration:li.duration,ease:li.ease})}return new Ea(v,this._parents,f,o)},call:$s.call,nodes:$s.nodes,node:$s.node,size:$s.size,empty:$s.empty,each:$s.each,on:function za(f,O){var o=this._id;return arguments.length<2?Ht(this.node(),o).on.on(f):this.each(Na(o,f,O))},attr:function Pt(f,O){var o=Z(f),v="transform"===o?xr:zr;return this.attrTween(f,"function"==typeof O?(o.local?St:Et)(o,v,hr(this,"attr."+f,O)):null==O?(o.local?ur:zn)(o):(o.local?tt:ka)(o,v,O))},attrTween:function Ei(f,O){var o="attr."+f;if(arguments.length<2)return(o=this.tween(o))&&o._value;if(null==O)return this.tween(o,null);if("function"!=typeof O)throw new Error;var v=Z(f);return this.tween(o,(v.local?ti:fi)(v,O))},style:function Dt(f,O,o){var v="transform"==(f+="")?Qn:zr;return null==O?this.styleTween(f,function Ce(f,O){var o,v,F;return function(){var X=lt(this,f),Oe=(this.style.removeProperty(f),lt(this,f));return X===Oe?null:X===o&&Oe===v?F:F=O(o=X,v=Oe)}}(f,v)).on("end.style."+f,ge(f)):"function"==typeof O?this.styleTween(f,function Ue(f,O,o){var v,F,X;return function(){var Oe=lt(this,f),st=o(this),Ut=st+"";return null==st&&(this.style.removeProperty(f),Ut=st=lt(this,f)),Oe===Ut?null:Oe===v&&Ut===F?X:(F=Ut,X=O(v=Oe,st))}}(f,v,hr(this,"style."+f,O))).each(function nt(f,O){var o,v,F,st,X="style."+O,Oe="end."+X;return function(){var Ut=xt(this,f),zt=Ut.on,li=null==Ut.value[X]?st||(st=ge(O)):void 0;(zt!==o||F!==li)&&(v=(o=zt).copy()).on(Oe,F=li),Ut.on=v}}(this._id,f)):this.styleTween(f,function he(f,O,o){var v,X,F=o+"";return function(){var Oe=lt(this,f);return Oe===F?null:Oe===v?X:X=O(v=Oe,o)}}(f,v,O),o).on("end.style."+f,null)},styleTween:function Di(f,O,o){var v="style."+(f+="");if(arguments.length<2)return(v=this.tween(v))&&v._value;if(null==O)return this.tween(v,null);if("function"!=typeof O)throw new Error;return this.tween(v,ai(f,O,null==o?"":o))},text:function zi(f){return this.tween("text","function"==typeof f?function Mn(f){return function(){var O=f(this);this.textContent=null==O?"":O}}(hr(this,"text",f)):function Vi(f){return function(){this.textContent=f}}(null==f?"":f+""))},textTween:function ns(f){var O="text";if(arguments.length<1)return(O=this.tween(O))&&O._value;if(null==f)return this.tween(O,null);if("function"!=typeof f)throw new Error;return this.tween(O,kn(f))},remove:function _e(){return this.on("end.remove",function Qa(f){return function(){var O=this.parentNode;for(var o in this.__transition)if(+o!==f)return;O&&O.removeChild(this)}}(this._id))},tween:function Gr(f,O){var o=this._id;if(f+="",arguments.length<2){for(var Oe,v=Ht(this.node(),o).tween,F=0,X=v.length;F<X;++F)if((Oe=v[F]).name===f)return Oe.value;return null}return this.each((null==O?dr:Zr)(o,f,O))},delay:function on(f){var O=this._id;return arguments.length?this.each(("function"==typeof f?Ki:Qi)(O,f)):Ht(this.node(),O).delay},duration:function On(f){var O=this._id;return arguments.length?this.each(("function"==typeof f?xn:jn)(O,f)):Ht(this.node(),O).duration},ease:function _a(f){var O=this._id;return arguments.length?this.each(Kr(O,f)):Ht(this.node(),O).ease},easeVarying:function _r(f){if("function"!=typeof f)throw new Error;return this.each(function ir(f,O){return function(){var o=O.apply(this,arguments);if("function"!=typeof o)throw new Error;xt(this,f).ease=o}}(this._id,f))},end:function Zo(){var f,O,o=this,v=o._id,F=o.size();return new Promise(function(X,Oe){var st={value:Oe},Ut={value:function(){0==--F&&X()}};o.each(function(){var zt=xt(this,v),li=zt.on;li!==f&&((O=(f=li).copy())._.cancel.push(st),O._.interrupt.push(st),O._.end.push(Ut)),zt.on=O}),0===F&&X()})},[Symbol.iterator]:$s[Symbol.iterator]};var al={time:null,delay:0,duration:250,ease:function rl(f){return((f*=2)<=1?f*f*f:(f-=2)*f*f+2)/2}};function sl(f,O){for(var o;!(o=f.__transition)||!(o=o[O]);)if(!(f=f.parentNode))throw new Error(`transition ${O} not found`);return o}Wi.prototype.interrupt=function Ci(f){return this.each(function(){!function ni(f,O){var v,F,Oe,o=f.__transition,X=!0;if(o){for(Oe in O=null==O?null:O+"",o)(v=o[Oe]).name===O?(F=v.state>2&&v.state<5,v.state=6,v.timer.stop(),v.on.call(F?"interrupt":"cancel",f,f.__data__,v.index,v.group),delete o[Oe]):X=!1;X&&delete f.__transition}}(this,f)})},Wi.prototype.transition=function Eo(f){var O,o;f instanceof Ea?(O=f._id,f=f._name):(O=c3(),(o=al).time=Jr(),f=null==f?null:f+"");for(var v=this._groups,F=v.length,X=0;X<F;++X)for(var Ut,Oe=v[X],st=Oe.length,zt=0;zt<st;++zt)(Ut=Oe[zt])&&pe(Ut,f,O,zt,Oe,o||sl(Ut,O));return new Ea(v,this._parents,f,O)};Math;function Xa(f){return{type:f}}function Jo(f,O){return f<O?-1:f>O?1:f>=O?0:NaN}function Xs(f){let O=f,o=f;function v(Oe,st,Ut,zt){for(null==Ut&&(Ut=0),null==zt&&(zt=Oe.length);Ut<zt;){const li=Ut+zt>>>1;o(Oe[li],st)<0?Ut=li+1:zt=li}return Ut}return 1===f.length&&(O=(Oe,st)=>f(Oe)-st,o=function ed(f){return(O,o)=>Jo(f(O),o)}(f)),{left:v,center:function X(Oe,st,Ut,zt){null==Ut&&(Ut=0),null==zt&&(zt=Oe.length);const li=v(Oe,st,Ut,zt-1);return li>Ut&&O(Oe[li-1],st)>-O(Oe[li],st)?li-1:li},right:function F(Oe,st,Ut,zt){for(null==Ut&&(Ut=0),null==zt&&(zt=Oe.length);Ut<zt;){const li=Ut+zt>>>1;o(Oe[li],st)>0?zt=li:Ut=li+1}return Ut}}}["w","e"].map(Xa),["n","s"].map(Xa),["n","w","e","s","nw","ne","sw","se"].map(Xa);var W1=Math.sqrt(50),hl=Math.sqrt(10),ul=Math.sqrt(2);function p3(f,O,o){var v=(O-f)/Math.max(0,o),F=Math.floor(Math.log(v)/Math.LN10),X=v/Math.pow(10,F);return F>=0?(X>=W1?10:X>=hl?5:X>=ul?2:1)*Math.pow(10,F):-Math.pow(10,-F)/(X>=W1?10:X>=hl?5:X>=ul?2:1)}function fl(f,O,o){var v=Math.abs(O-f)/Math.max(0,o),F=Math.pow(10,Math.floor(Math.log(v)/Math.LN10)),X=v/F;return X>=W1?F*=10:X>=hl?F*=5:X>=ul&&(F*=2),O<f?-F:F}const Ls=1e3,qa=6e4,cs=60*qa,Lo=24*cs,qs=7*Lo,Y1=30*Lo,uo=365*Lo;var pl=new Date,ml=new Date;function ya(f,O,o,v){function F(X){return f(X=0===arguments.length?new Date:new Date(+X)),X}return F.floor=function(X){return f(X=new Date(+X)),X},F.ceil=function(X){return f(X=new Date(X-1)),O(X,1),f(X),X},F.round=function(X){var Oe=F(X),st=F.ceil(X);return X-Oe<st-X?Oe:st},F.offset=function(X,Oe){return O(X=new Date(+X),null==Oe?1:Math.floor(Oe)),X},F.range=function(X,Oe,st){var zt,Ut=[];if(X=F.ceil(X),st=null==st?1:Math.floor(st),!(X<Oe&&st>0))return Ut;do{Ut.push(zt=new Date(+X)),O(X,st),f(X)}while(zt<X&&X<Oe);return Ut},F.filter=function(X){return ya(function(Oe){if(Oe>=Oe)for(;f(Oe),!X(Oe);)Oe.setTime(Oe-1)},function(Oe,st){if(Oe>=Oe)if(st<0)for(;++st<=0;)for(;O(Oe,-1),!X(Oe););else for(;--st>=0;)for(;O(Oe,1),!X(Oe););})},o&&(F.count=function(X,Oe){return pl.setTime(+X),ml.setTime(+Oe),f(pl),f(ml),Math.floor(o(pl,ml))},F.every=function(X){return X=Math.floor(X),isFinite(X)&&X>0?X>1?F.filter(v?function(Oe){return v(Oe)%X==0}:function(Oe){return F.count(0,Oe)%X==0}):F:null}),F}var e1=ya(function(){},function(f,O){f.setTime(+f+O)},function(f,O){return O-f});e1.every=function(f){return f=Math.floor(f),isFinite(f)&&f>0?f>1?ya(function(O){O.setTime(Math.floor(O/f)*f)},function(O,o){O.setTime(+O+o*f)},function(O,o){return(o-O)/f}):e1:null};const id=e1;const t1=ya(function(f){f.setTime(f-f.getMilliseconds())},function(f,O){f.setTime(+f+O*Ls)},function(f,O){return(O-f)/Ls},function(f){return f.getUTCSeconds()});const Z1=ya(function(f){f.setTime(f-f.getMilliseconds()-f.getSeconds()*Ls)},function(f,O){f.setTime(+f+O*qa)},function(f,O){return(O-f)/qa},function(f){return f.getMinutes()});const g3=ya(function(f){f.setTime(f-f.getMilliseconds()-f.getSeconds()*Ls-f.getMinutes()*qa)},function(f,O){f.setTime(+f+O*cs)},function(f,O){return(O-f)/cs},function(f){return f.getHours()});const po=ya(f=>f.setHours(0,0,0,0),(f,O)=>f.setDate(f.getDate()+O),(f,O)=>(O-f-(O.getTimezoneOffset()-f.getTimezoneOffset())*qa)/Lo,f=>f.getDate()-1);function Fs(f){return ya(function(O){O.setDate(O.getDate()-(O.getDay()+7-f)%7),O.setHours(0,0,0,0)},function(O,o){O.setDate(O.getDate()+7*o)},function(O,o){return(o-O-(o.getTimezoneOffset()-O.getTimezoneOffset())*qa)/qs})}var Ts=Fs(0),K1=Fs(1),As=(Fs(2),Fs(3),Fs(4));const y3=(Fs(5),Fs(6),ya(function(f){f.setDate(1),f.setHours(0,0,0,0)},function(f,O){f.setMonth(f.getMonth()+O)},function(f,O){return O.getMonth()-f.getMonth()+12*(O.getFullYear()-f.getFullYear())},function(f){return f.getMonth()}));var yl=ya(function(f){f.setMonth(0,1),f.setHours(0,0,0,0)},function(f,O){f.setFullYear(f.getFullYear()+O)},function(f,O){return O.getFullYear()-f.getFullYear()},function(f){return f.getFullYear()});yl.every=function(f){return isFinite(f=Math.floor(f))&&f>0?ya(function(O){O.setFullYear(Math.floor(O.getFullYear()/f)*f),O.setMonth(0,1),O.setHours(0,0,0,0)},function(O,o){O.setFullYear(O.getFullYear()+o*f)}):null};const Ds=yl;const sd=ya(function(f){f.setUTCSeconds(0,0)},function(f,O){f.setTime(+f+O*qa)},function(f,O){return(O-f)/qa},function(f){return f.getUTCMinutes()});const Q1=ya(function(f){f.setUTCMinutes(0,0,0)},function(f,O){f.setTime(+f+O*cs)},function(f,O){return(O-f)/cs},function(f){return f.getUTCHours()});const X1=ya(function(f){f.setUTCHours(0,0,0,0)},function(f,O){f.setUTCDate(f.getUTCDate()+O)},function(f,O){return(O-f)/Lo},function(f){return f.getUTCDate()-1});function rs(f){return ya(function(O){O.setUTCDate(O.getUTCDate()-(O.getUTCDay()+7-f)%7),O.setUTCHours(0,0,0,0)},function(O,o){O.setUTCDate(O.getUTCDate()+7*o)},function(O,o){return(o-O)/qs})}var xl=rs(0),q1=rs(1),To=(rs(2),rs(3),rs(4));const L3=(rs(5),rs(6),ya(function(f){f.setUTCDate(1),f.setUTCHours(0,0,0,0)},function(f,O){f.setUTCMonth(f.getUTCMonth()+O)},function(f,O){return O.getUTCMonth()-f.getUTCMonth()+12*(O.getUTCFullYear()-f.getUTCFullYear())},function(f){return f.getUTCMonth()}));var J1=ya(function(f){f.setUTCMonth(0,1),f.setUTCHours(0,0,0,0)},function(f,O){f.setUTCFullYear(f.getUTCFullYear()+O)},function(f,O){return O.getUTCFullYear()-f.getUTCFullYear()},function(f){return f.getUTCFullYear()});J1.every=function(f){return isFinite(f=Math.floor(f))&&f>0?ya(function(O){O.setUTCFullYear(Math.floor(O.getUTCFullYear()/f)*f),O.setUTCMonth(0,1),O.setUTCHours(0,0,0,0)},function(O,o){O.setUTCFullYear(O.getUTCFullYear()+o*f)}):null};const a1=J1;function Do(f,O,o,v,F,X){const Oe=[[t1,1,Ls],[t1,5,5e3],[t1,15,15e3],[t1,30,3e4],[X,1,qa],[X,5,5*qa],[X,15,15*qa],[X,30,30*qa],[F,1,cs],[F,3,3*cs],[F,6,6*cs],[F,12,12*cs],[v,1,Lo],[v,2,2*Lo],[o,1,qs],[O,1,Y1],[O,3,3*Y1],[f,1,uo]];function Ut(zt,li,yi){const xi=Math.abs(li-zt)/yi,Ti=Xs(([,,Ii])=>Ii).right(Oe,xi);if(Ti===Oe.length)return f.every(fl(zt/uo,li/uo,yi));if(0===Ti)return id.every(Math.max(fl(zt,li,yi),1));const[nn,vn]=Oe[xi/Oe[Ti-1][2]<Oe[Ti][2]/xi?Ti-1:Ti];return nn.every(vn)}return[function st(zt,li,yi){const xi=li<zt;xi&&([zt,li]=[li,zt]);const Ti=yi&&"function"==typeof yi.range?yi:Ut(zt,li,yi),nn=Ti?Ti.range(zt,+li+1):[];return xi?nn.reverse():nn},Ut]}const[T3,Vs]=Do(a1,L3,xl,X1,Q1,sd),[Io,A3]=Do(Ds,y3,Ts,po,g3,Z1);function s1(f){if(0<=f.y&&f.y<100){var O=new Date(-1,f.m,f.d,f.H,f.M,f.S,f.L);return O.setFullYear(f.y),O}return new Date(f.y,f.m,f.d,f.H,f.M,f.S,f.L)}function e2(f){if(0<=f.y&&f.y<100){var O=new Date(Date.UTC(-1,f.m,f.d,f.H,f.M,f.S,f.L));return O.setUTCFullYear(f.y),O}return new Date(Date.UTC(f.y,f.m,f.d,f.H,f.M,f.S,f.L))}function o1(f,O,o){return{y:f,m:O,d:o,H:0,M:0,S:0,L:0}}var D3={"-":"",_:" ",0:"0"},ua=/^\s*\d+/,t2=/^%/,Ml=/[\\^$*+?|[\]().{}]/g;function sr(f,O,o){var v=f<0?"-":"",F=(v?-f:f)+"",X=F.length;return v+(X<o?new Array(o-X+1).join(O)+F:F)}function fd(f){return f.replace(Ml,"\\$&")}function go(f){return new RegExp("^(?:"+f.map(fd).join("|")+")","i")}function l1(f){return new Map(f.map((O,o)=>[O.toLowerCase(),o]))}function I3(f,O,o){var v=ua.exec(O.slice(o,o+1));return v?(f.w=+v[0],o+v[0].length):-1}function pd(f,O,o){var v=ua.exec(O.slice(o,o+1));return v?(f.u=+v[0],o+v[0].length):-1}function md(f,O,o){var v=ua.exec(O.slice(o,o+2));return v?(f.U=+v[0],o+v[0].length):-1}function O3(f,O,o){var v=ua.exec(O.slice(o,o+2));return v?(f.V=+v[0],o+v[0].length):-1}function c1(f,O,o){var v=ua.exec(O.slice(o,o+2));return v?(f.W=+v[0],o+v[0].length):-1}function El(f,O,o){var v=ua.exec(O.slice(o,o+4));return v?(f.y=+v[0],o+v[0].length):-1}function d1(f,O,o){var v=ua.exec(O.slice(o,o+2));return v?(f.y=+v[0]+(+v[0]>68?1900:2e3),o+v[0].length):-1}function gd(f,O,o){var v=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(O.slice(o,o+6));return v?(f.Z=v[1]?0:-(v[2]+(v[3]||"00")),o+v[0].length):-1}function ea(f,O,o){var v=ua.exec(O.slice(o,o+1));return v?(f.q=3*v[0]-3,o+v[0].length):-1}function k3(f,O,o){var v=ua.exec(O.slice(o,o+2));return v?(f.m=v[0]-1,o+v[0].length):-1}function wl(f,O,o){var v=ua.exec(O.slice(o,o+2));return v?(f.d=+v[0],o+v[0].length):-1}function Sl(f,O,o){var v=ua.exec(O.slice(o,o+3));return v?(f.m=0,f.d=+v[0],o+v[0].length):-1}function n2(f,O,o){var v=ua.exec(O.slice(o,o+2));return v?(f.H=+v[0],o+v[0].length):-1}function Cd(f,O,o){var v=ua.exec(O.slice(o,o+2));return v?(f.M=+v[0],o+v[0].length):-1}function P3(f,O,o){var v=ua.exec(O.slice(o,o+2));return v?(f.S=+v[0],o+v[0].length):-1}function _d(f,O,o){var v=ua.exec(O.slice(o,o+3));return v?(f.L=+v[0],o+v[0].length):-1}function R3(f,O,o){var v=ua.exec(O.slice(o,o+6));return v?(f.L=Math.floor(v[0]/1e3),o+v[0].length):-1}function vd(f,O,o){var v=t2.exec(O.slice(o,o+1));return v?o+v[0].length:-1}function yd(f,O,o){var v=ua.exec(O.slice(o));return v?(f.Q=+v[0],o+v[0].length):-1}function s5(f,O,o){var v=ua.exec(O.slice(o));return v?(f.s=+v[0],o+v[0].length):-1}function Co(f,O){return sr(f.getDate(),O,2)}function Ga(f,O){return sr(f.getHours(),O,2)}function h1(f,O){return sr(f.getHours()%12||12,O,2)}function N3(f,O){return sr(1+po.count(Ds(f),f),O,3)}function Ll(f,O){return sr(f.getMilliseconds(),O,3)}function Va(f,O){return Ll(f,O)+"000"}function u1(f,O){return sr(f.getMonth()+1,O,2)}function Tl(f,O){return sr(f.getMinutes(),O,2)}function bd(f,O){return sr(f.getSeconds(),O,2)}function xd(f){var O=f.getDay();return 0===O?7:O}function H3(f,O){return sr(Ts.count(Ds(f)-1,f),O,2)}function F3(f){var O=f.getDay();return O>=4||0===O?As(f):As.ceil(f)}function Al(f,O){return f=F3(f),sr(As.count(Ds(f),f)+(4===Ds(f).getDay()),O,2)}function Md(f){return f.getDay()}function Dl(f,O){return sr(K1.count(Ds(f)-1,f),O,2)}function V3(f,O){return sr(f.getFullYear()%100,O,2)}function Ed(f,O){return sr((f=F3(f)).getFullYear()%100,O,2)}function Il(f,O){return sr(f.getFullYear()%1e4,O,4)}function wd(f,O){var o=f.getDay();return sr((f=o>=4||0===o?As(f):As.ceil(f)).getFullYear()%1e4,O,4)}function Ol(f){var O=f.getTimezoneOffset();return(O>0?"-":(O*=-1,"+"))+sr(O/60|0,"0",2)+sr(O%60,"0",2)}function r2(f,O){return sr(f.getUTCDate(),O,2)}function Sd(f,O){return sr(f.getUTCHours(),O,2)}function kl(f,O){return sr(f.getUTCHours()%12||12,O,2)}function a2(f,O){return sr(1+X1.count(a1(f),f),O,3)}function z3(f,O){return sr(f.getUTCMilliseconds(),O,3)}function B3(f,O){return z3(f,O)+"000"}function Ld(f,O){return sr(f.getUTCMonth()+1,O,2)}function Td(f,O){return sr(f.getUTCMinutes(),O,2)}function Ad(f,O){return sr(f.getUTCSeconds(),O,2)}function U3(f){var O=f.getUTCDay();return 0===O?7:O}function Dd(f,O){return sr(xl.count(a1(f)-1,f),O,2)}function G3(f){var O=f.getUTCDay();return O>=4||0===O?To(f):To.ceil(f)}function Id(f,O){return f=G3(f),sr(To.count(a1(f),f)+(4===a1(f).getUTCDay()),O,2)}function Od(f){return f.getUTCDay()}function kd(f,O){return sr(q1.count(a1(f)-1,f),O,2)}function W3(f,O){return sr(f.getUTCFullYear()%100,O,2)}function Y3(f,O){return sr((f=G3(f)).getUTCFullYear()%100,O,2)}function j3(f,O){return sr(f.getUTCFullYear()%1e4,O,4)}function Oo(f,O){var o=f.getUTCDay();return sr((f=o>=4||0===o?To(f):To.ceil(f)).getUTCFullYear()%1e4,O,4)}function Os(){return"+0000"}function Pd(){return"%"}function Rd(f){return+f}function Pl(f){return Math.floor(+f/1e3)}function ko(f){return null===f?NaN:+f}!function K3(f){(function a5(f){var O=f.dateTime,o=f.date,v=f.time,F=f.periods,X=f.days,Oe=f.shortDays,st=f.months,Ut=f.shortMonths,zt=go(F),li=l1(F),yi=go(X),xi=l1(X),Ti=go(Oe),nn=l1(Oe),vn=go(st),Ii=l1(st),fn=go(Ut),_n=l1(Ut),pn={a:function ln(dn){return Oe[dn.getDay()]},A:function ja(dn){return X[dn.getDay()]},b:function vr(dn){return Ut[dn.getMonth()]},B:function ba(dn){return st[dn.getMonth()]},c:null,d:Co,e:Co,f:Va,g:Ed,G:wd,H:Ga,I:h1,j:N3,L:Ll,m:u1,M:Tl,p:function Wr(dn){return F[+(dn.getHours()>=12)]},q:function aa(dn){return 1+~~(dn.getMonth()/3)},Q:Rd,s:Pl,S:bd,u:xd,U:H3,V:Al,w:Md,W:Dl,x:null,X:null,y:V3,Y:Il,Z:Ol,"%":Pd},Fn={a:function ao(dn){return Oe[dn.getUTCDay()]},A:function Zs(dn){return X[dn.getUTCDay()]},b:function Ar(dn){return Ut[dn.getUTCMonth()]},B:function H1(dn){return st[dn.getUTCMonth()]},c:null,d:r2,e:r2,f:B3,g:Y3,G:Oo,H:Sd,I:kl,j:a2,L:z3,m:Ld,M:Td,p:function Pa(dn){return F[+(dn.getUTCHours()>=12)]},q:function Q2(dn){return 1+~~(dn.getUTCMonth()/3)},Q:Rd,s:Pl,S:Ad,u:U3,U:Dd,V:Id,w:Od,W:kd,x:null,X:null,y:W3,Y:j3,Z:Os,"%":Pd},Dn={a:function Lr(dn,Un,er){var Zi=Ti.exec(Un.slice(er));return Zi?(dn.w=nn.get(Zi[0].toLowerCase()),er+Zi[0].length):-1},A:function In(dn,Un,er){var Zi=yi.exec(Un.slice(er));return Zi?(dn.w=xi.get(Zi[0].toLowerCase()),er+Zi[0].length):-1},b:function pa(dn,Un,er){var Zi=fn.exec(Un.slice(er));return Zi?(dn.m=_n.get(Zi[0].toLowerCase()),er+Zi[0].length):-1},B:function or(dn,Un,er){var Zi=vn.exec(Un.slice(er));return Zi?(dn.m=Ii.get(Zi[0].toLowerCase()),er+Zi[0].length):-1},c:function Tr(dn,Un,er){return Mr(dn,O,Un,er)},d:wl,e:wl,f:R3,g:d1,G:El,H:n2,I:n2,j:Sl,L:_d,m:k3,M:Cd,p:function Sa(dn,Un,er){var Zi=zt.exec(Un.slice(er));return Zi?(dn.p=li.get(Zi[0].toLowerCase()),er+Zi[0].length):-1},q:ea,Q:yd,s:s5,S:P3,u:pd,U:md,V:O3,w:I3,W:c1,x:function Ya(dn,Un,er){return Mr(dn,o,Un,er)},X:function Qr(dn,Un,er){return Mr(dn,v,Un,er)},y:d1,Y:El,Z:gd,"%":vd};function En(dn,Un){return function(er){var Ka,Rn,ta,Zi=[],Xr=-1,yr=0,Za=dn.length;for(er instanceof Date||(er=new Date(+er));++Xr<Za;)37===dn.charCodeAt(Xr)&&(Zi.push(dn.slice(yr,Xr)),null!=(Rn=D3[Ka=dn.charAt(++Xr)])?Ka=dn.charAt(++Xr):Rn="e"===Ka?" ":"0",(ta=Un[Ka])&&(Ka=ta(er,Rn)),Zi.push(Ka),yr=Xr+1);return Zi.push(dn.slice(yr,Xr)),Zi.join("")}}function pr(dn,Un){return function(er){var yr,Za,Zi=o1(1900,void 0,1);if(Mr(Zi,dn,er+="",0)!=er.length)return null;if("Q"in Zi)return new Date(Zi.Q);if("s"in Zi)return new Date(1e3*Zi.s+("L"in Zi?Zi.L:0));if(Un&&!("Z"in Zi)&&(Zi.Z=0),"p"in Zi&&(Zi.H=Zi.H%12+12*Zi.p),void 0===Zi.m&&(Zi.m="q"in Zi?Zi.q:0),"V"in Zi){if(Zi.V<1||Zi.V>53)return null;"w"in Zi||(Zi.w=1),"Z"in Zi?(Za=(yr=e2(o1(Zi.y,0,1))).getUTCDay(),yr=Za>4||0===Za?q1.ceil(yr):q1(yr),yr=X1.offset(yr,7*(Zi.V-1)),Zi.y=yr.getUTCFullYear(),Zi.m=yr.getUTCMonth(),Zi.d=yr.getUTCDate()+(Zi.w+6)%7):(Za=(yr=s1(o1(Zi.y,0,1))).getDay(),yr=Za>4||0===Za?K1.ceil(yr):K1(yr),yr=po.offset(yr,7*(Zi.V-1)),Zi.y=yr.getFullYear(),Zi.m=yr.getMonth(),Zi.d=yr.getDate()+(Zi.w+6)%7)}else("W"in Zi||"U"in Zi)&&("w"in Zi||(Zi.w="u"in Zi?Zi.u%7:"W"in Zi?1:0),Za="Z"in Zi?e2(o1(Zi.y,0,1)).getUTCDay():s1(o1(Zi.y,0,1)).getDay(),Zi.m=0,Zi.d="W"in Zi?(Zi.w+6)%7+7*Zi.W-(Za+5)%7:Zi.w+7*Zi.U-(Za+6)%7);return"Z"in Zi?(Zi.H+=Zi.Z/100|0,Zi.M+=Zi.Z%100,e2(Zi)):s1(Zi)}}function Mr(dn,Un,er,Zi){for(var Ka,Rn,Xr=0,yr=Un.length,Za=er.length;Xr<yr;){if(Zi>=Za)return-1;if(37===(Ka=Un.charCodeAt(Xr++))){if(Ka=Un.charAt(Xr++),!(Rn=Dn[Ka in D3?Un.charAt(Xr++):Ka])||(Zi=Rn(dn,er,Zi))<0)return-1}else if(Ka!=er.charCodeAt(Zi++))return-1}return Zi}return pn.x=En(o,pn),pn.X=En(v,pn),pn.c=En(O,pn),Fn.x=En(o,Fn),Fn.X=En(v,Fn),Fn.c=En(O,Fn),{format:function(dn){var Un=En(dn+="",pn);return Un.toString=function(){return dn},Un},parse:function(dn){var Un=pr(dn+="",!1);return Un.toString=function(){return dn},Un},utcFormat:function(dn){var Un=En(dn+="",Fn);return Un.toString=function(){return dn},Un},utcParse:function(dn){var Un=pr(dn+="",!0);return Un.toString=function(){return dn},Un}}})(f)}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});const Hl=Xs(Jo).right,Fd=(Xs(ko),Hl);function Po(f,O){return f=+f,O=+O,function(o){return Math.round(f*(1-o)+O*o)}}function Q3(f){return+f}var X3=[0,1];function Js(f){return f}function l2(f,O){return(O-=f=+f)?function(o){return(o-f)/O}:function o2(f){return function(){return f}}(isNaN(O)?NaN:.5)}function zd(f,O,o){var v=f[0],F=f[1],X=O[0],Oe=O[1];return F<v?(v=l2(F,v),X=o(Oe,X)):(v=l2(v,F),X=o(X,Oe)),function(st){return X(v(st))}}function Bd(f,O,o){var v=Math.min(f.length,O.length)-1,F=new Array(v),X=new Array(v),Oe=-1;for(f[v]<f[0]&&(f=f.slice().reverse(),O=O.slice().reverse());++Oe<v;)F[Oe]=l2(f[Oe],f[Oe+1]),X[Oe]=o(O[Oe],O[Oe+1]);return function(st){var Ut=Fd(f,st,1,v)-1;return X[Ut](F[Ut](st))}}function Fl(f,O){return O.domain(f.domain()).range(f.range()).interpolate(f.interpolate()).clamp(f.clamp()).unknown(f.unknown())}function Vl(){return function Ud(){var v,F,X,st,Ut,zt,f=X3,O=X3,o=oi,Oe=Js;function li(){var xi=Math.min(f.length,O.length);return Oe!==Js&&(Oe=function Vd(f,O){var o;return f>O&&(o=f,f=O,O=o),function(v){return Math.max(f,Math.min(O,v))}}(f[0],f[xi-1])),st=xi>2?Bd:zd,Ut=zt=null,yi}function yi(xi){return null==xi||isNaN(xi=+xi)?X:(Ut||(Ut=st(f.map(v),O,o)))(v(Oe(xi)))}return yi.invert=function(xi){return Oe(F((zt||(zt=st(O,f.map(v),Mt)))(xi)))},yi.domain=function(xi){return arguments.length?(f=Array.from(xi,Q3),li()):f.slice()},yi.range=function(xi){return arguments.length?(O=Array.from(xi),li()):O.slice()},yi.rangeRound=function(xi){return O=Array.from(xi),o=Po,li()},yi.clamp=function(xi){return arguments.length?(Oe=!!xi||Js,li()):Oe!==Js},yi.interpolate=function(xi){return arguments.length?(o=xi,li()):o},yi.unknown=function(xi){return arguments.length?(X=xi,yi):X},function(xi,Ti){return v=xi,F=Ti,li()}}()(Js,Js)}function _o(f,O){switch(arguments.length){case 0:break;case 1:this.range(f);break;default:this.range(O).domain(f)}return this}var d2,vo=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function p1(f){if(!(O=vo.exec(f)))throw new Error("invalid format: "+f);var O;return new c2({fill:O[1],align:O[2],sign:O[3],symbol:O[4],zero:O[5],width:O[6],comma:O[7],precision:O[8]&&O[8].slice(1),trim:O[9],type:O[10]})}function c2(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 yo(f,O){if((o=(f=O?f.toExponential(O-1):f.toExponential()).indexOf("e"))<0)return null;var o,v=f.slice(0,o);return[v.length>1?v[0]+v.slice(2):v,+f.slice(o+1)]}function Ro(f){return(f=yo(Math.abs(f)))?f[1]:NaN}function m1(f,O){var o=yo(f,O);if(!o)return f+"";var v=o[0],F=o[1];return F<0?"0."+new Array(-F).join("0")+v:v.length>F+1?v.slice(0,F+1)+"."+v.slice(F+1):v+new Array(F-v.length+2).join("0")}p1.prototype=c2.prototype,c2.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 u2={"%":(f,O)=>(100*f).toFixed(O),b:f=>Math.round(f).toString(2),c:f=>f+"",d:function Wd(f){return Math.abs(f=Math.round(f))>=1e21?f.toLocaleString("en").replace(/,/g,""):f.toString(10)},e:(f,O)=>f.toExponential(O),f:(f,O)=>f.toFixed(O),g:(f,O)=>f.toPrecision(O),o:f=>Math.round(f).toString(8),p:(f,O)=>m1(100*f,O),r:m1,s:function h2(f,O){var o=yo(f,O);if(!o)return f+"";var v=o[0],F=o[1],X=F-(d2=3*Math.max(-8,Math.min(8,Math.floor(F/3))))+1,Oe=v.length;return X===Oe?v:X>Oe?v+new Array(X-Oe+1).join("0"):X>0?v.slice(0,X)+"."+v.slice(X):"0."+new Array(1-X).join("0")+yo(f,Math.max(0,O+X-1))[0]},X:f=>Math.round(f).toString(16).toUpperCase(),x:f=>Math.round(f).toString(16)};function f2(f){return f}var C1,m2,r4,Gl=Array.prototype.map,p2=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function o5(f){var O=f.domain;return f.ticks=function(o){var v=O();return function td(f,O,o){var v,X,Oe,st,F=-1;if(o=+o,(f=+f)==(O=+O)&&o>0)return[f];if((v=O<f)&&(X=f,f=O,O=X),0===(st=p3(f,O,o))||!isFinite(st))return[];if(st>0){let Ut=Math.round(f/st),zt=Math.round(O/st);for(Ut*st<f&&++Ut,zt*st>O&&--zt,Oe=new Array(X=zt-Ut+1);++F<X;)Oe[F]=(Ut+F)*st}else{st=-st;let Ut=Math.round(f*st),zt=Math.round(O*st);for(Ut/st<f&&++Ut,zt/st>O&&--zt,Oe=new Array(X=zt-Ut+1);++F<X;)Oe[F]=(Ut+F)/st}return v&&Oe.reverse(),Oe}(v[0],v[v.length-1],null==o?10:o)},f.tickFormat=function(o,v){var F=O();return function a4(f,O,o,v){var X,F=fl(f,O,o);switch((v=p1(null==v?",f":v)).type){case"s":var Oe=Math.max(Math.abs(f),Math.abs(O));return null==v.precision&&!isNaN(X=function t4(f,O){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Ro(O)/3)))-Ro(Math.abs(f)))}(F,Oe))&&(v.precision=X),r4(v,Oe);case"":case"e":case"g":case"p":case"r":null==v.precision&&!isNaN(X=function Wl(f,O){return f=Math.abs(f),O=Math.abs(O)-f,Math.max(0,Ro(O)-Ro(f))+1}(F,Math.max(Math.abs(f),Math.abs(O))))&&(v.precision=X-("e"===v.type));break;case"f":case"%":null==v.precision&&!isNaN(X=function Yl(f){return Math.max(0,-Ro(Math.abs(f)))}(F))&&(v.precision=X-2*("%"===v.type))}return m2(v)}(F[0],F[F.length-1],null==o?10:o,v)},f.nice=function(o){null==o&&(o=10);var Ut,zt,v=O(),F=0,X=v.length-1,Oe=v[F],st=v[X],li=10;for(st<Oe&&(zt=Oe,Oe=st,st=zt,zt=F,F=X,X=zt);li-- >0;){if((zt=p3(Oe,st,o))===Ut)return v[F]=Oe,v[X]=st,O(v);if(zt>0)Oe=Math.floor(Oe/zt)*zt,st=Math.ceil(st/zt)*zt;else{if(!(zt<0))break;Oe=Math.ceil(Oe*zt)/zt,st=Math.floor(st*zt)/zt}Ut=zt}return f},f}function eo(){var f=Vl();return f.copy=function(){return Fl(f,eo())},_o.apply(f,arguments),o5(f)}function s4(f,O,o){f=+f,O=+O,o=(F=arguments.length)<2?(O=f,f=0,1):F<3?1:+o;for(var v=-1,F=0|Math.max(0,Math.ceil((O-f)/o)),X=new Array(F);++v<F;)X[v]=f+v*o;return X}!function Yd(f){C1=function g1(f){var O=void 0===f.grouping||void 0===f.thousands?f2:function i4(f,O){return function(o,v){for(var F=o.length,X=[],Oe=0,st=f[0],Ut=0;F>0&&st>0&&(Ut+st+1>v&&(st=Math.max(1,v-Ut)),X.push(o.substring(F-=st,F+st)),!((Ut+=st+1)>v));)st=f[Oe=(Oe+1)%f.length];return X.reverse().join(O)}}(Gl.call(f.grouping,Number),f.thousands+""),o=void 0===f.currency?"":f.currency[0]+"",v=void 0===f.currency?"":f.currency[1]+"",F=void 0===f.decimal?".":f.decimal+"",X=void 0===f.numerals?f2:function n4(f){return function(O){return O.replace(/[0-9]/g,function(o){return f[+o]})}}(Gl.call(f.numerals,String)),Oe=void 0===f.percent?"%":f.percent+"",st=void 0===f.minus?"\u2212":f.minus+"",Ut=void 0===f.nan?"NaN":f.nan+"";function zt(yi){var xi=(yi=p1(yi)).fill,Ti=yi.align,nn=yi.sign,vn=yi.symbol,Ii=yi.zero,fn=yi.width,_n=yi.comma,pn=yi.precision,Fn=yi.trim,Dn=yi.type;"n"===Dn?(_n=!0,Dn="g"):u2[Dn]||(void 0===pn&&(pn=12),Fn=!0,Dn="g"),(Ii||"0"===xi&&"="===Ti)&&(Ii=!0,xi="0",Ti="=");var En="$"===vn?o:"#"===vn&&/[boxX]/.test(Dn)?"0"+Dn.toLowerCase():"",pr="$"===vn?v:/[%p]/.test(Dn)?Oe:"",Mr=u2[Dn],Sa=/[defgprs%]/.test(Dn);function Lr(In){var Tr,Ya,Qr,pa=En,or=pr;if("c"===Dn)or=Mr(In)+or,In="";else{var ln=(In=+In)<0||1/In<0;if(In=isNaN(In)?Ut:Mr(Math.abs(In),pn),Fn&&(In=function Ul(f){e:for(var F,O=f.length,o=1,v=-1;o<O;++o)switch(f[o]){case".":v=F=o;break;case"0":0===v&&(v=o),F=o;break;default:if(!+f[o])break e;v>0&&(v=0)}return v>0?f.slice(0,v)+f.slice(F+1):f}(In)),ln&&0==+In&&"+"!==nn&&(ln=!1),pa=(ln?"("===nn?nn:st:"-"===nn||"("===nn?"":nn)+pa,or=("s"===Dn?p2[8+d2/3]:"")+or+(ln&&"("===nn?")":""),Sa)for(Tr=-1,Ya=In.length;++Tr<Ya;)if(48>(Qr=In.charCodeAt(Tr))||Qr>57){or=(46===Qr?F+In.slice(Tr+1):In.slice(Tr))+or,In=In.slice(0,Tr);break}}_n&&!Ii&&(In=O(In,1/0));var ja=pa.length+In.length+or.length,vr=ja<fn?new Array(fn-ja+1).join(xi):"";switch(_n&&Ii&&(In=O(vr+In,vr.length?fn-or.length:1/0),vr=""),Ti){case"<":In=pa+In+or+vr;break;case"=":In=pa+vr+In+or;break;case"^":In=vr.slice(0,ja=vr.length>>1)+pa+In+or+vr.slice(ja);break;default:In=vr+pa+In+or}return X(In)}return pn=void 0===pn?6:/[gprs]/.test(Dn)?Math.max(1,Math.min(21,pn)):Math.max(0,Math.min(20,pn)),Lr.toString=function(){return yi+""},Lr}return{format:zt,formatPrefix:function li(yi,xi){var Ti=zt(((yi=p1(yi)).type="f",yi)),nn=3*Math.max(-8,Math.min(8,Math.floor(Ro(xi)/3))),vn=Math.pow(10,-nn),Ii=p2[8+nn/3];return function(fn){return Ti(vn*fn)+Ii}}}}(f),m2=C1.format,r4=C1.formatPrefix}({thousands:",",grouping:[3],currency:["$",""]});const jl=Symbol("implicit");function Zl(){var f=new Map,O=[],o=[],v=jl;function F(X){var Oe=X+"",st=f.get(Oe);if(!st){if(v!==jl)return v;f.set(Oe,st=O.push(X))}return o[(st-1)%o.length]}return F.domain=function(X){if(!arguments.length)return O.slice();O=[],f=new Map;for(const Oe of X){const st=Oe+"";f.has(st)||f.set(st,O.push(Oe))}return F},F.range=function(X){return arguments.length?(o=Array.from(X),F):o.slice()},F.unknown=function(X){return arguments.length?(v=X,F):v},F.copy=function(){return Zl(O,o).unknown(v)},_o.apply(F,arguments),F}function No(){var X,Oe,f=Zl().unknown(void 0),O=f.domain,o=f.range,v=0,F=1,st=!1,Ut=0,zt=0,li=.5;function yi(){var xi=O().length,Ti=F<v,nn=Ti?F:v,vn=Ti?v:F;X=(vn-nn)/Math.max(1,xi-Ut+2*zt),st&&(X=Math.floor(X)),nn+=(vn-nn-X*(xi-Ut))*li,Oe=X*(1-Ut),st&&(nn=Math.round(nn),Oe=Math.round(Oe));var Ii=s4(xi).map(function(fn){return nn+X*fn});return o(Ti?Ii.reverse():Ii)}return delete f.unknown,f.domain=function(xi){return arguments.length?(O(xi),yi()):O()},f.range=function(xi){return arguments.length?([v,F]=xi,v=+v,F=+F,yi()):[v,F]},f.rangeRound=function(xi){return[v,F]=xi,v=+v,F=+F,st=!0,yi()},f.bandwidth=function(){return Oe},f.step=function(){return X},f.round=function(xi){return arguments.length?(st=!!xi,yi()):st},f.padding=function(xi){return arguments.length?(Ut=Math.min(1,zt=+xi),yi()):Ut},f.paddingInner=function(xi){return arguments.length?(Ut=Math.min(1,xi),yi()):Ut},f.paddingOuter=function(xi){return arguments.length?(zt=+xi,yi()):zt},f.align=function(xi){return arguments.length?(li=Math.max(0,Math.min(1,xi)),yi()):li},f.copy=function(){return No(O(),[v,F]).round(st).paddingInner(Ut).paddingOuter(zt).align(li)},_o.apply(yi(),arguments)}function Kd(f,O,o=ko){if(v=f.length){if((O=+O)<=0||v<2)return+o(f[0],0,f);if(O>=1)return+o(f[v-1],v-1,f);var v,F=(v-1)*O,X=Math.floor(F),Oe=+o(f[X],X,f);return Oe+(+o(f[X+1],X+1,f)-Oe)*(F-X)}}function o4(){var v,f=[],O=[],o=[];function F(){var Oe=0,st=Math.max(1,O.length);for(o=new Array(st-1);++Oe<st;)o[Oe-1]=Kd(f,Oe/st);return X}function X(Oe){return null==Oe||isNaN(Oe=+Oe)?v:O[Fd(o,Oe)]}return X.invertExtent=function(Oe){var st=O.indexOf(Oe);return st<0?[NaN,NaN]:[st>0?o[st-1]:f[0],st<o.length?o[st]:f[f.length-1]]},X.domain=function(Oe){if(!arguments.length)return f.slice();f=[];for(let st of Oe)null!=st&&!isNaN(st=+st)&&f.push(st);return f.sort(Jo),F()},X.range=function(Oe){return arguments.length?(O=Array.from(Oe),F()):O.slice()},X.unknown=function(Oe){return arguments.length?(v=Oe,X):v},X.quantiles=function(){return o.slice()},X.copy=function(){return o4().domain(f).range(O).unknown(v)},_o.apply(X,arguments)}p(7293);const $d=["caretElm"];function g2(f,O){}const Qd=function(f){return{model:f}};function Xd(f,O){if(1&f&&(e.TgZ(0,"span"),e.YNc(1,g2,0,0,"ng-template",5),e.qZA()),2&f){const o=e.oxw();e.xp6(1),e.Q6J("ngTemplateOutlet",o.template)("ngTemplateOutletContext",e.VKq(2,Qd,o.context))}}function l4(f,O){if(1&f&&e._UZ(0,"span",6),2&f){const o=e.oxw();e.Q6J("innerHTML",o.title,e.oJD)}}function Bn(f,O){if(1&f&&(e.TgZ(0,"header",4)(1,"span",5),e._uU(2),e.qZA()()),2&f){const o=e.oxw();e.xp6(2),e.Oqu(o.title)}}function c4(f,O){if(1&f){const o=e.EpF();e.TgZ(0,"li",6)(1,"ngx-charts-legend-entry",7),e.NdJ("select",function(F){return e.CHM(o),e.oxw().labelClick.emit(F)})("activate",function(F){return e.CHM(o),e.oxw().activate(F)})("deactivate",function(F){return e.CHM(o),e.oxw().deactivate(F)}),e.qZA()()}if(2&f){const o=O.$implicit,v=e.oxw();e.xp6(1),e.Q6J("label",o.label)("formattedLabel",o.formattedLabel)("color",o.color)("isActive",v.isActive(o))}}function d4(f,O){if(1&f&&(e.O4$(),e.kcU(),e._UZ(0,"ngx-charts-scale-legend",4)),2&f){const o=e.oxw();e.Q6J("horizontal",o.legendOptions&&o.legendOptions.position===o.LegendPosition.Below)("valueRange",o.legendOptions.domain)("colors",o.legendOptions.colors)("height",o.view[1])("width",o.legendWidth)}}function h4(f,O){if(1&f){const o=e.EpF();e.O4$(),e.kcU(),e.TgZ(0,"ngx-charts-legend",5),e.NdJ("labelClick",function(F){return e.CHM(o),e.oxw().legendLabelClick.emit(F)})("labelActivate",function(F){return e.CHM(o),e.oxw().legendLabelActivate.emit(F)})("labelDeactivate",function(F){return e.CHM(o),e.oxw().legendLabelDeactivate.emit(F)}),e.qZA()}if(2&f){const o=e.oxw();e.Q6J("horizontal",o.legendOptions&&o.legendOptions.position===o.LegendPosition.Below)("data",o.legendOptions.domain)("title",o.legendOptions.title)("colors",o.legendOptions.colors)("height",o.view[1])("width",o.legendWidth)("activeEntries",o.activeEntries)}}const _1=["*"],hs=["ngx-charts-axis-label",""],Kl=["ticksel"],u4=["ngx-charts-x-axis-ticks",""];function $l(f,O){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 o=O.$implicit,v=e.oxw();e.uIk("transform",v.tickTransform(o)),e.xp6(2),e.Oqu(v.tickFormat(o)),e.xp6(1),e.Udp("font-size","12px"),e.uIk("text-anchor",v.textAnchor)("transform",v.textTransform),e.xp6(1),e.hij(" ",v.tickTrim(v.tickFormat(o))," ")}}function ks(f,O){if(1&f&&(e.O4$(),e.TgZ(0,"g"),e._UZ(1,"line",6),e.qZA()),2&f){const o=e.oxw(2);e.uIk("transform",o.gridLineTransform()),e.xp6(1),e.uIk("y1",-o.gridLineHeight)}}function Ql(f,O){if(1&f&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,ks,2,2,"g",5),e.qZA()),2&f){const o=O.$implicit,v=e.oxw();e.uIk("transform",v.tickTransform(o)),e.xp6(1),e.Q6J("ngIf",v.showGridLines)}}const f4=["ngx-charts-x-axis",""];function C2(f,O){if(1&f){const o=e.EpF();e.O4$(),e.TgZ(0,"g",2),e.NdJ("dimensionsChanged",function(F){return e.CHM(o),e.oxw().emitTicksHeight(F)}),e.qZA()}if(2&f){const o=e.oxw();e.Q6J("trimTicks",o.trimTicks)("rotateTicks",o.rotateTicks)("maxTickLength",o.maxTickLength)("tickFormatting",o.tickFormatting)("tickArguments",o.tickArguments)("tickStroke",o.tickStroke)("scale",o.xScale)("orient",o.xOrient)("showGridLines",o.showGridLines)("gridLineHeight",o.dims.height)("width",o.dims.width)("tickValues",o.ticks)}}function c5(f,O){if(1&f&&(e.O4$(),e._UZ(0,"g",3)),2&f){const o=e.oxw();e.Q6J("label",o.labelText)("offset",o.labelOffset)("orient",o.orientation.Bottom)("height",o.dims.height)("width",o.dims.width)}}const Xl=["ngx-charts-y-axis-ticks",""];function d5(f,O){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 o=O.$implicit,v=e.oxw();e.uIk("transform",v.transform(o)),e.xp6(2),e.Oqu(v.tickFormat(o)),e.xp6(1),e.Udp("font-size","12px"),e.uIk("dy",v.dy)("x",v.x1)("y",v.y1)("text-anchor",v.textAnchor),e.xp6(1),e.hij(" ",v.tickTrim(v.tickFormat(o))," ")}}function _2(f,O){if(1&f&&(e.O4$(),e._UZ(0,"path",6)),2&f){const o=e.oxw();e.uIk("d",o.referenceAreaPath)("transform",o.gridLineTransform())}}function v2(f,O){if(1&f&&(e.O4$(),e._UZ(0,"line",9)),2&f){const o=e.oxw(3);e.uIk("x2",o.gridLineWidth)}}function ql(f,O){if(1&f&&(e.O4$(),e._UZ(0,"line",9)),2&f){const o=e.oxw(3);e.uIk("x2",-o.gridLineWidth)}}function y2(f,O){if(1&f&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,v2,1,1,"line",8),e.YNc(2,ql,1,1,"line",8),e.qZA()),2&f){const o=e.oxw(2);e.uIk("transform",o.gridLineTransform()),e.xp6(1),e.Q6J("ngIf",o.orient===o.Orientation.Left),e.xp6(1),e.Q6J("ngIf",o.orient===o.Orientation.Right)}}function Jl(f,O){if(1&f&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,y2,3,3,"g",7),e.qZA()),2&f){const o=O.$implicit,v=e.oxw();e.uIk("transform",v.transform(o)),e.xp6(1),e.Q6J("ngIf",v.showGridLines)}}function h5(f,O){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 o=e.oxw(2).$implicit,v=e.oxw();e.xp6(2),e.Oqu(v.tickTrim(v.tickFormat(o.value))),e.xp6(1),e.uIk("dy",v.dy)("y",-6)("x",v.gridLineWidth)("text-anchor",v.textAnchor),e.xp6(1),e.hij(" ",o.name," ")}}function qd(f,O){if(1&f&&(e.O4$(),e.TgZ(0,"g"),e._UZ(1,"line",10),e.YNc(2,h5,5,6,"g",7),e.qZA()),2&f){const o=e.oxw().$implicit,v=e.oxw();e.uIk("transform",v.transform(o.value)),e.xp6(1),e.uIk("x2",v.gridLineWidth)("transform",v.gridLineTransform()),e.xp6(1),e.Q6J("ngIf",v.showRefLabels)}}function Jd(f,O){if(1&f&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,qd,3,4,"g",7),e.qZA()),2&f){const o=e.oxw();e.xp6(1),e.Q6J("ngIf",o.showRefLines)}}const b2=["ngx-charts-y-axis",""];function e6(f,O){if(1&f){const o=e.EpF();e.O4$(),e.TgZ(0,"g",2),e.NdJ("dimensionsChanged",function(F){return e.CHM(o),e.oxw().emitTicksWidth(F)}),e.qZA()}if(2&f){const o=e.oxw();e.Q6J("trimTicks",o.trimTicks)("maxTickLength",o.maxTickLength)("tickFormatting",o.tickFormatting)("tickArguments",o.tickArguments)("tickValues",o.ticks)("tickStroke",o.tickStroke)("scale",o.yScale)("orient",o.yOrient)("showGridLines",o.showGridLines)("gridLineWidth",o.dims.width)("referenceLines",o.referenceLines)("showRefLines",o.showRefLines)("showRefLabels",o.showRefLabels)("height",o.dims.height)}}function p4(f,O){if(1&f&&(e.O4$(),e._UZ(0,"g",3)),2&f){const o=e.oxw();e.Q6J("label",o.labelText)("offset",o.labelOffset)("orient",o.yOrient)("height",o.dims.height)("width",o.dims.width)}}const u5=["ngx-charts-svg-linear-gradient",""];function m4(f,O){if(1&f&&(e.O4$(),e._UZ(0,"stop")),2&f){const o=O.$implicit;e.Udp("stop-color",o.color)("stop-opacity",o.opacity),e.uIk("offset",o.offset+"%")}}const m5=["ngx-charts-grid-panel",""],t6=["ngx-charts-grid-panel-series",""];function g5(f,O){if(1&f&&(e.O4$(),e._UZ(0,"g",1)),2&f){const o=O.$implicit;e.ekj("grid-panel",!0)("odd","odd"===o.class)("even","even"===o.class),e.Q6J("height",o.height)("width",o.width)("x",o.x)("y",o.y)}}const v4=["tooltipTemplate"],bs=function(f,O){return[f,O]},E4=".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",u6=["ngx-charts-bar",""];function Ja(f,O){if(1&f&&(e.O4$(),e.TgZ(0,"defs"),e._UZ(1,"g",2),e.qZA()),2&f){const o=e.oxw();e.xp6(1),e.Q6J("orientation",o.orientation)("name",o.gradientId)("stops",o.gradientStops)}}const f6=["ngx-charts-bar-label",""],dc=["ngx-charts-series-vertical",""];function M6(f,O){if(1&f){const o=e.EpF();e.O4$(),e.TgZ(0,"g",2),e.NdJ("select",function(F){return e.CHM(o),e.oxw(2).onClick(F)})("activate",function(F){return e.CHM(o),e.oxw(2).activate.emit(F)})("deactivate",function(F){return e.CHM(o),e.oxw(2).deactivate.emit(F)}),e.qZA()}if(2&f){const o=O.$implicit,v=e.oxw(2);e.Q6J("@animationState","active")("@.disabled",!v.animations)("width",o.width)("height",o.height)("x",o.x)("y",o.y)("fill",o.color)("stops",o.gradientStops)("data",o.data)("orientation",v.barOrientation.Vertical)("roundEdges",o.roundEdges)("gradient",v.gradient)("ariaLabel",o.ariaLabel)("isActive",v.isActive(o.data))("tooltipDisabled",v.tooltipDisabled)("tooltipPlacement",v.tooltipPlacement)("tooltipType",v.tooltipType)("tooltipTitle",v.tooltipTemplate?void 0:o.tooltipText)("tooltipTemplate",v.tooltipTemplate)("tooltipContext",o.data)("noBarWhenZero",v.noBarWhenZero)("animations",v.animations)}}function k4(f,O){if(1&f&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,M6,1,22,"g",1),e.qZA()),2&f){const o=e.oxw();e.xp6(1),e.Q6J("ngForOf",o.bars)("ngForTrackBy",o.trackBy)}}function E6(f,O){if(1&f){const o=e.EpF();e.O4$(),e.TgZ(0,"g",2),e.NdJ("select",function(F){return e.CHM(o),e.oxw(2).onClick(F)})("activate",function(F){return e.CHM(o),e.oxw(2).activate.emit(F)})("deactivate",function(F){return e.CHM(o),e.oxw(2).deactivate.emit(F)}),e.qZA()}if(2&f){const o=O.$implicit,v=e.oxw(2);e.Q6J("width",o.width)("height",o.height)("x",o.x)("y",o.y)("fill",o.color)("stops",o.gradientStops)("data",o.data)("orientation",v.barOrientation.Vertical)("roundEdges",o.roundEdges)("gradient",v.gradient)("ariaLabel",o.ariaLabel)("isActive",v.isActive(o.data))("tooltipDisabled",v.tooltipDisabled)("tooltipPlacement",v.tooltipPlacement)("tooltipType",v.tooltipType)("tooltipTitle",v.tooltipTemplate?void 0:o.tooltipText)("tooltipTemplate",v.tooltipTemplate)("tooltipContext",o.data)("noBarWhenZero",v.noBarWhenZero)("animations",v.animations)}}function L2(f,O){if(1&f&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,E6,1,20,"g",1),e.qZA()),2&f){const o=e.oxw();e.xp6(1),e.Q6J("ngForOf",o.bars)("ngForTrackBy",o.trackBy)}}function w6(f,O){if(1&f){const o=e.EpF();e.O4$(),e.TgZ(0,"g",4),e.NdJ("dimensionsChanged",function(F){const Oe=e.CHM(o).index;return e.oxw(2).dataLabelHeightChanged.emit({size:F,index:Oe})}),e.qZA()}if(2&f){const o=O.$implicit,v=e.oxw(2);e.Q6J("barX",o.x)("barY",o.y)("barWidth",o.width)("barHeight",o.height)("value",o.total)("valueFormatting",v.dataLabelFormatting)("orientation",v.barOrientation.Vertical)}}function P4(f,O){if(1&f&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,w6,1,7,"g",3),e.qZA()),2&f){const o=e.oxw();e.xp6(1),e.Q6J("ngForOf",o.barsForDataLabels)("ngForTrackBy",o.trackDataLabelBy)}}function T2(f,O){if(1&f){const o=e.EpF();e.O4$(),e.TgZ(0,"g",5),e.NdJ("dimensionsChanged",function(F){return e.CHM(o),e.oxw().updateXAxisHeight(F)}),e.qZA()}if(2&f){const o=e.oxw();e.Q6J("xScale",o.xScale)("dims",o.dims)("showGridLines",o.showGridLines)("showLabel",o.showXAxisLabel)("labelText",o.xAxisLabel)("trimTicks",o.trimXAxisTicks)("rotateTicks",o.rotateXAxisTicks)("maxTickLength",o.maxXAxisTickLength)("tickFormatting",o.xAxisTickFormatting)("ticks",o.xAxisTicks)("xAxisOffset",o.dataLabelMaxHeight.negative)}}function A2(f,O){if(1&f){const o=e.EpF();e.O4$(),e.TgZ(0,"g",6),e.NdJ("dimensionsChanged",function(F){return e.CHM(o),e.oxw().updateYAxisWidth(F)}),e.qZA()}if(2&f){const o=e.oxw();e.Q6J("yScale",o.yScale)("dims",o.dims)("showGridLines",o.showGridLines)("showLabel",o.showYAxisLabel)("labelText",o.yAxisLabel)("trimTicks",o.trimYAxisTicks)("maxTickLength",o.maxYAxisTickLength)("tickFormatting",o.yAxisTickFormatting)("ticks",o.yAxisTicks)}}function S6(f,O){if(1&f){const o=e.EpF();e.O4$(),e.TgZ(0,"g",6),e.NdJ("dimensionsChanged",function(F){return e.CHM(o),e.oxw().updateXAxisHeight(F)}),e.qZA()}if(2&f){const o=e.oxw();e.Q6J("xScale",o.groupScale)("dims",o.dims)("showLabel",o.showXAxisLabel)("labelText",o.xAxisLabel)("trimTicks",o.trimXAxisTicks)("rotateTicks",o.rotateXAxisTicks)("maxTickLength",o.maxXAxisTickLength)("tickFormatting",o.xAxisTickFormatting)("ticks",o.xAxisTicks)("xAxisOffset",o.dataLabelMaxHeight.negative)}}function D2(f,O){if(1&f){const o=e.EpF();e.O4$(),e.TgZ(0,"g",7),e.NdJ("dimensionsChanged",function(F){return e.CHM(o),e.oxw().updateYAxisWidth(F)}),e.qZA()}if(2&f){const o=e.oxw();e.Q6J("yScale",o.valueScale)("dims",o.dims)("showGridLines",o.showGridLines)("showLabel",o.showYAxisLabel)("labelText",o.yAxisLabel)("trimTicks",o.trimYAxisTicks)("maxTickLength",o.maxYAxisTickLength)("tickFormatting",o.yAxisTickFormatting)("ticks",o.yAxisTicks)}}function hc(f,O){if(1&f){const o=e.EpF();e.O4$(),e.TgZ(0,"g",9),e.NdJ("select",function(F){const Oe=e.CHM(o).$implicit;return e.oxw(2).onClick(F,Oe)})("activate",function(F){const Oe=e.CHM(o).$implicit;return e.oxw(2).onActivate(F,Oe)})("deactivate",function(F){const Oe=e.CHM(o).$implicit;return e.oxw(2).onDeactivate(F,Oe)})("dataLabelHeightChanged",function(F){const Oe=e.CHM(o).index;return e.oxw(2).onDataLabelMaxHeightChanged(F,Oe)}),e.qZA()}if(2&f){const o=O.$implicit,v=e.oxw(2);e.Q6J("@animationState","active")("activeEntries",v.activeEntries)("xScale",v.innerScale)("yScale",v.valueScale)("colors",v.colors)("series",o.series)("dims",v.dims)("gradient",v.gradient)("tooltipDisabled",v.tooltipDisabled)("tooltipTemplate",v.tooltipTemplate)("showDataLabel",v.showDataLabel)("dataLabelFormatting",v.dataLabelFormatting)("seriesName",o.name)("roundEdges",v.roundEdges)("animations",v.animations)("noBarWhenZero",v.noBarWhenZero),e.uIk("transform",v.groupTransform(o))}}function uc(f,O){if(1&f&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,hc,1,17,"g",8),e.qZA()),2&f){const o=e.oxw();e.xp6(1),e.Q6J("ngForOf",o.results)("ngForTrackBy",o.trackBy)}}function L5(f,O){if(1&f){const o=e.EpF();e.O4$(),e.TgZ(0,"g",9),e.NdJ("select",function(F){const Oe=e.CHM(o).$implicit;return e.oxw(2).onClick(F,Oe)})("activate",function(F){const Oe=e.CHM(o).$implicit;return e.oxw(2).onActivate(F,Oe)})("deactivate",function(F){const Oe=e.CHM(o).$implicit;return e.oxw(2).onDeactivate(F,Oe)})("dataLabelHeightChanged",function(F){const Oe=e.CHM(o).index;return e.oxw(2).onDataLabelMaxHeightChanged(F,Oe)}),e.qZA()}if(2&f){const o=O.$implicit,v=e.oxw(2);e.Q6J("activeEntries",v.activeEntries)("xScale",v.innerScale)("yScale",v.valueScale)("colors",v.colors)("series",o.series)("dims",v.dims)("gradient",v.gradient)("tooltipDisabled",v.tooltipDisabled)("tooltipTemplate",v.tooltipTemplate)("showDataLabel",v.showDataLabel)("dataLabelFormatting",v.dataLabelFormatting)("seriesName",o.name)("roundEdges",v.roundEdges)("animations",v.animations)("noBarWhenZero",v.noBarWhenZero),e.uIk("transform",v.groupTransform(o))}}function L6(f,O){if(1&f&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,L5,1,16,"g",8),e.qZA()),2&f){const o=e.oxw();e.xp6(1),e.Q6J("ngForOf",o.results)("ngForTrackBy",o.trackBy)}}function bc(f,O,o){o=o||{};let v,F,X,Oe=null,st=0;function Ut(){st=!1===o.leading?0:+new Date,Oe=null,X=f.apply(v,F)}return function(){const zt=+new Date;!st&&!1===o.leading&&(st=zt);const li=O-(zt-st);return v=this,F=arguments,li<=0?(clearTimeout(Oe),Oe=null,st=zt,X=f.apply(v,F)):!Oe&&!1!==o.trailing&&(Oe=setTimeout(Ut,li)),X}}function q4(f,O){return function(v,F,X){return{configurable:!0,enumerable:X.enumerable,get:function(){return Object.defineProperty(this,F,{configurable:!0,enumerable:X.enumerable,value:bc(X.value,f,O)}),this[F]}}}}var Zn=(()=>{return(f=Zn||(Zn={})).Top="top",f.Bottom="bottom",f.Left="left",f.Right="right",f.Center="center",Zn;var f})();function xc(f,O,o){return o===Zn.Top?f.top-7:o===Zn.Bottom?f.top+f.height-O.height+7:o===Zn.Center?f.top+f.height/2-O.height/2:void 0}function Mc(f,O,o){return o===Zn.Left?f.left-7:o===Zn.Right?f.left+f.width-O.width+7:o===Zn.Center?f.left+f.width/2-O.width/2:void 0}class es{static calculateVerticalAlignment(O,o,v){let F=xc(O,o,v);return F+o.height>window.innerHeight&&(F=window.innerHeight-o.height),F}static calculateVerticalCaret(O,o,v,F){let X;F===Zn.Top&&(X=O.height/2-v.height/2+7),F===Zn.Bottom&&(X=o.height-O.height/2-v.height/2-7),F===Zn.Center&&(X=o.height/2-v.height/2);const Oe=xc(O,o,F);return Oe+o.height>window.innerHeight&&(X+=Oe+o.height-window.innerHeight),X}static calculateHorizontalAlignment(O,o,v){let F=Mc(O,o,v);return F+o.width>window.innerWidth&&(F=window.innerWidth-o.width),F}static calculateHorizontalCaret(O,o,v,F){let X;F===Zn.Left&&(X=O.width/2-v.width/2+7),F===Zn.Right&&(X=o.width-O.width/2-v.width/2-7),F===Zn.Center&&(X=o.width/2-v.width/2);const Oe=Mc(O,o,F);return Oe+o.width>window.innerWidth&&(X+=Oe+o.width-window.innerWidth),X}static shouldFlip(O,o,v,F){let X=!1;return v===Zn.Right&&O.left+O.width+o.width+F>window.innerWidth&&(X=!0),v===Zn.Left&&O.left-o.width-F<0&&(X=!0),v===Zn.Top&&O.top-o.height-F<0&&(X=!0),v===Zn.Bottom&&O.top+O.height+o.height+F>window.innerHeight&&(X=!0),X}static positionCaret(O,o,v,F,X){let Oe=0,st=0;return O===Zn.Right?(st=-7,Oe=es.calculateVerticalCaret(v,o,F,X)):O===Zn.Left?(st=o.width,Oe=es.calculateVerticalCaret(v,o,F,X)):O===Zn.Top?(Oe=o.height,st=es.calculateHorizontalCaret(v,o,F,X)):O===Zn.Bottom&&(Oe=-7,st=es.calculateHorizontalCaret(v,o,F,X)),{top:Oe,left:st}}static positionContent(O,o,v,F,X){let Oe=0,st=0;return O===Zn.Right?(st=v.left+v.width+F,Oe=es.calculateVerticalAlignment(v,o,X)):O===Zn.Left?(st=v.left-o.width-F,Oe=es.calculateVerticalAlignment(v,o,X)):O===Zn.Top?(Oe=v.top-o.height-F,st=es.calculateHorizontalAlignment(v,o,X)):O===Zn.Bottom&&(Oe=v.top+v.height+F,st=es.calculateHorizontalAlignment(v,o,X)),{top:Oe,left:st}}static determinePlacement(O,o,v,F){if(es.shouldFlip(v,o,O,F)){if(O===Zn.Right)return Zn.Left;if(O===Zn.Left)return Zn.Right;if(O===Zn.Top)return Zn.Bottom;if(O===Zn.Bottom)return Zn.Top}return O}}let J4=(()=>{class f{constructor(o,v,F){this.element=o,this.renderer=v,this.platformId=F}get cssClasses(){let o="ngx-charts-tooltip-content";return o+=` position-${this.placement}`,o+=` type-${this.type}`,o+=` ${this.cssClass}`,o}ngAfterViewInit(){setTimeout(this.position.bind(this))}position(){if(!(0,i.NF)(this.platformId))return;const o=this.element.nativeElement,v=this.host.nativeElement.getBoundingClientRect();if(!v.height&&!v.width)return;const F=o.getBoundingClientRect();this.checkFlip(v,F),this.positionContent(o,v,F),this.showCaret&&this.positionCaret(v,F),setTimeout(()=>this.renderer.addClass(o,"animate"),1)}positionContent(o,v,F){const{top:X,left:Oe}=es.positionContent(this.placement,F,v,this.spacing,this.alignment);this.renderer.setStyle(o,"top",`${X}px`),this.renderer.setStyle(o,"left",`${Oe}px`)}positionCaret(o,v){const F=this.caretElm.nativeElement,X=F.getBoundingClientRect(),{top:Oe,left:st}=es.positionCaret(this.placement,v,o,X,this.alignment);this.renderer.setStyle(F,"top",`${Oe}px`),this.renderer.setStyle(F,"left",`${st}px`)}checkFlip(o,v){this.placement=es.determinePlacement(this.placement,v,o,this.spacing)}onWindowResize(){this.position()}}return f.\u0275fac=function(o){return new(o||f)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.Lbi))},f.\u0275cmp=e.Xpm({type:f,selectors:[["ngx-tooltip-content"]],viewQuery:function(o,v){if(1&o&&e.Gf($d,5),2&o){let F;e.iGM(F=e.CRH())&&(v.caretElm=F.first)}},hostVars:2,hostBindings:function(o,v){1&o&&e.NdJ("resize",function(){return v.onWindowResize()},!1,e.Jf7),2&o&&e.Tol(v.cssClasses)},inputs:{host:"host",showCaret:"showCaret",type:"type",placement:"placement",alignment:"alignment",spacing:"spacing",cssClass:"cssClass",title:"title",template:"template",context:"context"},decls:6,vars:6,consts:[[3,"hidden"],["caretElm",""],[1,"tooltip-content"],[4,"ngIf"],[3,"innerHTML",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"innerHTML"]],template:function(o,v){1&o&&(e.TgZ(0,"div"),e._UZ(1,"span",0,1),e.TgZ(3,"div",2),e.YNc(4,Xd,2,4,"span",3),e.YNc(5,l4,1,1,"span",4),e.qZA()()),2&o&&(e.xp6(1),e.Gre("tooltip-caret position-",v.placement,""),e.Q6J("hidden",!v.showCaret),e.xp6(3),e.Q6J("ngIf",!v.title),e.xp6(1),e.Q6J("ngIf",v.title))},directives:[i.O5,i.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,u.gn)([q4(100)],f.prototype,"onWindowResize",null),f})(),wc=(()=>{class f{constructor(o,v,F){this.applicationRef=o,this.componentFactoryResolver=v,this.injector=F}static setGlobalRootViewContainer(o){f.globalRootViewContainer=o}getRootViewContainer(){if(this._container)return this._container;if(f.globalRootViewContainer)return f.globalRootViewContainer;if(this.applicationRef.components.length)return this.applicationRef.components[0];throw new Error("View Container not found! ngUpgrade needs to manually set this via setRootViewContainer or setGlobalRootViewContainer.")}setRootViewContainer(o){this._container=o}getComponentRootNode(o){return function Ec(f){return f.element}(o)?o.element.nativeElement:o.hostView&&o.hostView.rootNodes.length>0?o.hostView.rootNodes[0]:o.location.nativeElement}getRootViewContainerNode(o){return this.getComponentRootNode(o)}projectComponentBindings(o,v){if(v){if(void 0!==v.inputs){const F=Object.getOwnPropertyNames(v.inputs);for(const X of F)o.instance[X]=v.inputs[X]}if(void 0!==v.outputs){const F=Object.getOwnPropertyNames(v.outputs);for(const X of F)o.instance[X]=v.outputs[X]}}return o}appendComponent(o,v={},F){F||(F=this.getRootViewContainer());const X=this.getComponentRootNode(F),Oe=new b.u0(X,this.componentFactoryResolver,this.applicationRef,this.injector),st=new b.C5(o),Ut=Oe.attach(st);return this.projectComponentBindings(Ut,v),Ut}}return f.globalRootViewContainer=null,f.\u0275fac=function(o){return new(o||f)(e.LFG(e.z2F),e.LFG(e._Vd),e.LFG(e.zs3))},f.\u0275prov=e.Yz7({token:f,factory:f.\u0275fac}),f})(),Sc=(()=>{class f extends class oh{constructor(O){this.injectionService=O,this.defaults={},this.components=new Map}getByType(O=this.type){return this.components.get(O)}create(O){return this.createByType(this.type,O)}createByType(O,o){o=this.assignDefaults(o);const v=this.injectComponent(O,o);return this.register(O,v),v}destroy(O){const o=this.components.get(O.componentType);if(o&&o.length){const v=o.indexOf(O);v>-1&&(o[v].destroy(),o.splice(v,1))}}destroyAll(){this.destroyByType(this.type)}destroyByType(O){const o=this.components.get(O);if(o&&o.length){let v=o.length-1;for(;v>=0;)this.destroy(o[v--])}}injectComponent(O,o){return this.injectionService.appendComponent(O,o)}assignDefaults(O){const o=Object.assign({},this.defaults.inputs),v=Object.assign({},this.defaults.outputs);return!O.inputs&&!O.outputs&&(O={inputs:O}),o&&(O.inputs=Object.assign(Object.assign({},o),O.inputs)),v&&(O.outputs=Object.assign(Object.assign({},v),O.outputs)),O}register(O,o){this.components.has(O)||this.components.set(O,[]),this.components.get(O).push(o)}}{constructor(o){super(o),this.type=J4}}return f.\u0275fac=function(o){return new(o||f)(e.LFG(wc))},f.\u0275prov=e.Yz7({token:f,factory:f.\u0275fac}),f})();var xs=(()=>{return(f=xs||(xs={})).Right="right",f.Below="below",xs;var f})(),xo=(()=>{return(f=xo||(xo={})).ScaleLegend="scaleLegend",f.Legend="legend",xo;var f})(),Sn=(()=>{return(f=Sn||(Sn={})).Time="time",f.Linear="linear",f.Ordinal="ordinal",f.Quantile="quantile",Sn;var f})();let H2=(()=>{class f{constructor(){this.horizontal=!1}ngOnChanges(o){const v=this.gradientString(this.colors.range(),this.colors.domain());this.gradient=`linear-gradient(to ${this.horizontal?"right":"bottom"}, ${v})`}gradientString(o,v){v.push(1);const F=[];return o.reverse().forEach((X,Oe)=>{F.push(`${X} ${Math.round(100*v[Oe])}%`)}),F.join(", ")}}return f.\u0275fac=function(o){return new(o||f)},f.\u0275cmp=e.Xpm({type:f,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(o,v){1&o&&(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&o&&(e.Udp("height",v.horizontal?void 0:v.height,"px")("width",v.width,"px"),e.ekj("horizontal-legend",v.horizontal),e.xp6(3),e.Oqu(v.valueRange[1].toLocaleString()),e.xp6(1),e.Udp("background",v.gradient),e.xp6(3),e.Oqu(v.valueRange[0].toLocaleString()))},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .scale-legend{text-align:center;display:flex;flex-direction:column}.chart-legend .scale-legend-wrap{display:inline-block;flex:1;width:30px;border-radius:5px;margin:0 auto}.chart-legend .scale-legend-label{font-size:12px}.chart-legend .horizontal-legend.scale-legend{flex-direction:row}.chart-legend .horizontal-legend .scale-legend-wrap{width:auto;height:30px;margin:0 16px}\n"],encapsulation:2,changeDetection:0}),f})();function T1(f){return f instanceof Date?f.toLocaleDateString():f.toLocaleString()}let F2=(()=>{class f{constructor(){this.isActive=!1,this.select=new e.vpe,this.activate=new e.vpe,this.deactivate=new e.vpe,this.toggle=new e.vpe}get trimmedLabel(){return this.formattedLabel||"(empty)"}onMouseEnter(){this.activate.emit({name:this.label})}onMouseLeave(){this.deactivate.emit({name:this.label})}}return f.\u0275fac=function(o){return new(o||f)},f.\u0275cmp=e.Xpm({type:f,selectors:[["ngx-charts-legend-entry"]],hostBindings:function(o,v){1&o&&e.NdJ("mouseenter",function(){return v.onMouseEnter()})("mouseleave",function(){return v.onMouseLeave()})},inputs:{color:"color",label:"label",formattedLabel:"formattedLabel",isActive:"isActive"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",toggle:"toggle"},decls:4,vars:6,consts:[["tabindex","-1",3,"title","click"],[1,"legend-label-color",3,"click"],[1,"legend-label-text"]],template:function(o,v){1&o&&(e.TgZ(0,"span",0),e.NdJ("click",function(){return v.select.emit(v.formattedLabel)}),e.TgZ(1,"span",1),e.NdJ("click",function(){return v.toggle.emit(v.formattedLabel)}),e.qZA(),e.TgZ(2,"span",2),e._uU(3),e.qZA()()),2&o&&(e.ekj("active",v.isActive),e.Q6J("title",v.formattedLabel),e.xp6(1),e.Udp("background-color",v.color),e.xp6(2),e.hij(" ",v.trimmedLabel," "))},encapsulation:2,changeDetection:0}),f})(),V2=(()=>{class f{constructor(o){this.cd=o,this.horizontal=!1,this.labelClick=new e.vpe,this.labelActivate=new e.vpe,this.labelDeactivate=new e.vpe,this.legendEntries=[]}ngOnChanges(o){this.update()}update(){this.cd.markForCheck(),this.legendEntries=this.getLegendEntries()}getLegendEntries(){const o=[];for(const v of this.data){const F=T1(v);-1===o.findIndex(Oe=>Oe.label===F)&&o.push({label:v,formattedLabel:F,color:this.colors.getColor(v)})}return o}isActive(o){return!!this.activeEntries&&void 0!==this.activeEntries.find(F=>o.label===F.name)}activate(o){this.labelActivate.emit(o)}deactivate(o){this.labelDeactivate.emit(o)}trackBy(o,v){return v.label}}return f.\u0275fac=function(o){return new(o||f)(e.Y36(e.sBO))},f.\u0275cmp=e.Xpm({type:f,selectors:[["ngx-charts-legend"]],inputs:{data:"data",title:"title",colors:"colors",height:"height",width:"width",activeEntries:"activeEntries",horizontal:"horizontal"},outputs:{labelClick:"labelClick",labelActivate:"labelActivate",labelDeactivate:"labelDeactivate"},features:[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(o,v){1&o&&(e.TgZ(0,"div"),e.YNc(1,Bn,3,1,"header",0),e.TgZ(2,"div",1)(3,"ul",2),e.YNc(4,c4,2,4,"li",3),e.qZA()()()),2&o&&(e.Udp("width",v.width,"px"),e.xp6(1),e.Q6J("ngIf",(null==v.title?null:v.title.length)>0),e.xp6(2),e.Udp("max-height",v.height-45,"px"),e.ekj("horizontal-legend",v.horizontal),e.xp6(1),e.Q6J("ngForOf",v.legendEntries)("ngForTrackBy",v.trackBy))},directives:[F2,i.O5,i.sg],styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .legend-title{white-space:nowrap;overflow:hidden;margin-left:10px;margin-bottom:5px;font-size:14px;font-weight:700}.chart-legend ul,.chart-legend li{padding:0;margin:0;list-style:none}.chart-legend .horizontal-legend li{display:inline-block}.chart-legend .legend-wrap{width:calc(100% - 10px)}.chart-legend .legend-labels{line-height:85%;list-style:none;text-align:left;float:left;width:100%;border-radius:3px;overflow-y:auto;overflow-x:hidden;white-space:nowrap;background:rgba(0,0,0,.05)}.chart-legend .legend-label{cursor:pointer;font-size:90%;margin:8px;color:#afb7c8}.chart-legend .legend-label:hover{color:#000;transition:.2s}.chart-legend .legend-label .active .legend-label-text{color:#000}.chart-legend .legend-label-color{display:inline-block;height:15px;width:15px;margin-right:5px;color:#5b646b;border-radius:3px}.chart-legend .legend-label-text{display:inline-block;vertical-align:top;line-height:15px;font-size:12px;width:calc(100% - 20px);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.chart-legend .legend-title-text{vertical-align:bottom;display:inline-block;line-height:16px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}\n"],encapsulation:2,changeDetection:0}),f})(),Lc=(()=>{class f{constructor(){this.showLegend=!1,this.animations=!0,this.legendLabelClick=new e.vpe,this.legendLabelActivate=new e.vpe,this.legendLabelDeactivate=new e.vpe,this.LegendPosition=xs,this.LegendType=xo}ngOnChanges(o){this.update()}update(){let o=0;this.showLegend&&(this.legendType=this.getLegendType(),(!this.legendOptions||this.legendOptions.position===xs.Right)&&(o=this.legendType===xo.ScaleLegend?1:2)),this.chartWidth=Math.floor(this.view[0]*(12-o)/12),this.legendWidth=this.legendOptions&&this.legendOptions.position!==xs.Right?this.chartWidth:Math.floor(this.view[0]*o/12)}getLegendType(){return this.legendOptions.scaleType===Sn.Linear?xo.ScaleLegend:xo.Legend}}return f.\u0275fac=function(o){return new(o||f)},f.\u0275cmp=e.Xpm({type:f,selectors:[["ngx-charts-chart"]],inputs:{view:"view",showLegend:"showLegend",legendOptions:"legendOptions",legendType:"legendType",activeEntries:"activeEntries",animations:"animations"},outputs:{legendLabelClick:"legendLabelClick",legendLabelActivate:"legendLabelActivate",legendLabelDeactivate:"legendLabelDeactivate"},features:[e._Bn([Sc]),e.TTD],ngContentSelectors:_1,decls:5,vars:6,consts:[[1,"ngx-charts-outer"],[1,"ngx-charts"],["class","chart-legend",3,"horizontal","valueRange","colors","height","width",4,"ngIf"],["class","chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate",4,"ngIf"],[1,"chart-legend",3,"horizontal","valueRange","colors","height","width"],[1,"chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate"]],template:function(o,v){1&o&&(e.F$t(),e.TgZ(0,"div",0),e.O4$(),e.TgZ(1,"svg",1),e.Hsn(2),e.qZA(),e.YNc(3,d4,1,5,"ngx-charts-scale-legend",2),e.YNc(4,h4,1,7,"ngx-charts-legend",3),e.qZA()),2&o&&(e.Udp("width",v.view[0],"px"),e.xp6(1),e.uIk("width",v.chartWidth)("height",v.view[1]),e.xp6(2),e.Q6J("ngIf",v.showLegend&&v.legendType===v.LegendType.ScaleLegend),e.xp6(1),e.Q6J("ngIf",v.showLegend&&v.legendType===v.LegendType.Legend))},directives:[H2,V2,i.O5],encapsulation:2,changeDetection:0}),f})(),Y5=(()=>{class f{constructor(o,v){this.element=o,this.zone=v,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 o=()=>{if(!this.element)return;const{offsetHeight:v,offsetWidth:F}=this.element.nativeElement;v&&F?(clearTimeout(this.timeout),this.onVisibilityChange()):(clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>o(),100)}))};this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>o())})}}return f.\u0275fac=function(o){return new(o||f)(e.Y36(e.SBq),e.Y36(e.R0b))},f.\u0275dir=e.lG2({type:f,selectors:[["visibility-observer"]],outputs:{visible:"visible"}}),f})();function Tc(f){return"[object Date]"===toString.call(f)}let z2=(()=>{class f{constructor(o,v,F,X){this.chartElement=o,this.zone=v,this.cd=F,this.platformId=X,this.scheme="cool",this.schemeType=Sn.Ordinal,this.animations=!0,this.select=new e.vpe}ngOnInit(){(0,i.PM)(this.platformId)&&(this.animations=!1)}ngAfterViewInit(){this.bindWindowResizeEvent(),this.visibilityObserver=new Y5(this.chartElement,this.zone),this.visibilityObserver.visible.subscribe(this.update.bind(this))}ngOnDestroy(){this.unbindEvents(),this.visibilityObserver&&(this.visibilityObserver.visible.unsubscribe(),this.visibilityObserver.destroy())}ngOnChanges(o){this.update()}update(){if(this.results=this.results?this.cloneData(this.results):[],this.view)this.width=this.view[0],this.height=this.view[1];else{const o=this.getContainerDims();o&&(this.width=o.width,this.height=o.height)}this.width||(this.width=600),this.height||(this.height=400),this.width=Math.floor(this.width),this.height=Math.floor(this.height),this.cd&&this.cd.markForCheck()}getContainerDims(){let o,v;const F=this.chartElement.nativeElement;if((0,i.NF)(this.platformId)&&null!==F.parentNode){const X=F.parentNode.getBoundingClientRect();o=X.width,v=X.height}return o&&v?{width:o,height:v}:null}formatDates(){for(let o=0;o<this.results.length;o++){const v=this.results[o];if(v.label=v.name,Tc(v.label)&&(v.label=v.label.toLocaleDateString()),v.series)for(let F=0;F<v.series.length;F++){const X=v.series[F];X.label=X.name,Tc(X.label)&&(X.label=X.label.toLocaleDateString())}}}unbindEvents(){this.resizeSubscription&&this.resizeSubscription.unsubscribe()}bindWindowResizeEvent(){if(!(0,i.NF)(this.platformId))return;const v=(0,a.R)(window,"resize").pipe((0,y.b)(200)).subscribe(F=>{this.update(),this.cd&&this.cd.markForCheck()});this.resizeSubscription=v}cloneData(o){const v=[];for(const F of o){const X={name:F.name};if(void 0!==F.value&&(X.value=F.value),void 0!==F.series){X.series=[];for(const Oe of F.series){const st=Object.assign({},Oe);X.series.push(st)}}void 0!==F.extra&&(X.extra=JSON.parse(JSON.stringify(F.extra))),v.push(X)}return v}}return f.\u0275fac=function(o){return new(o||f)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(e.sBO),e.Y36(e.Lbi))},f.\u0275cmp=e.Xpm({type:f,selectors:[["base-chart"]],inputs:{results:"results",view:"view",scheme:"scheme",schemeType:"schemeType",customColors:"customColors",animations:"animations"},outputs:{select:"select"},features:[e.TTD],decls:1,vars:0,template:function(o,v){1&o&&e._UZ(0,"div")},encapsulation:2}),f})();var fa=(()=>{return(f=fa||(fa={})).Top="top",f.Bottom="bottom",f.Left="left",f.Right="right",fa;var f})();let e0=(()=>{class f{constructor(o){this.textHeight=25,this.margin=5,this.element=o.nativeElement}ngOnChanges(o){this.update()}update(){switch(this.strokeWidth="0.01",this.textAnchor="middle",this.transform="",this.orient){case fa.Top:case fa.Bottom:this.y=this.offset,this.x=this.width/2;break;case fa.Left:this.y=-(this.offset+this.textHeight+this.margin),this.x=-this.height/2,this.transform="rotate(270)";break;case fa.Right:this.y=this.offset+this.margin,this.x=-this.height/2,this.transform="rotate(270)"}}}return f.\u0275fac=function(o){return new(o||f)(e.Y36(e.SBq))},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-axis-label",""]],inputs:{orient:"orient",label:"label",offset:"offset",width:"width",height:"height"},features:[e.TTD],attrs:hs,decls:2,vars:6,template:function(o,v){1&o&&(e.O4$(),e.TgZ(0,"text"),e._uU(1),e.qZA()),2&o&&(e.uIk("stroke-width",v.strokeWidth)("x",v.x)("y",v.y)("text-anchor",v.textAnchor)("transform",v.transform),e.xp6(1),e.hij(" ",v.label," "))},encapsulation:2,changeDetection:0}),f})();function no(f,O=16){return"string"!=typeof f?"number"==typeof f?f+"":"":(f=f.trim()).length<=O?f:`${f.slice(0,O)}...`}function Ac(f,O){if(f.length>O){const o=[],v=Math.floor(f.length/O);for(let F=0;F<f.length;F++)F%v==0&&o.push(f[F]);f=o}return f}var fs=(()=>{return(f=fs||(fs={})).Start="start",f.Middle="middle",f.End="end",fs;var f})();let Dc=(()=>{class f{constructor(o){this.platformId=o,this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.rotateTicks=!0,this.dimensionsChanged=new e.vpe,this.verticalSpacing=20,this.rotateLabels=!1,this.innerTickSize=6,this.outerTickSize=6,this.tickPadding=3,this.textAnchor=fs.Middle,this.maxTicksLength=0,this.maxAllowedLength=16,this.height=0,this.approxHeight=10}ngOnChanges(o){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){if(!(0,i.NF)(this.platformId))return void this.dimensionsChanged.emit({height:this.approxHeight});const o=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().height,10);o!==this.height&&(this.height=o,this.dimensionsChanged.emit({height:this.height}),setTimeout(()=>this.updateDims()))}update(){const o=this.scale;this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:o.tickFormat?o.tickFormat.apply(o,this.tickArguments):function(F){return"Date"===F.constructor.name?F.toLocaleDateString():F.toLocaleString()};const v=this.rotateTicks?this.getRotationAngle(this.ticks):null;this.adjustedScale=this.scale.bandwidth?function(F){return this.scale(F)+.5*this.scale.bandwidth()}:this.scale,this.textTransform="",v&&0!==v?(this.textTransform=`rotate(${v})`,this.textAnchor=fs.End,this.verticalSpacing=10):this.textAnchor=fs.Middle,setTimeout(()=>this.updateDims())}getRotationAngle(o){let v=0;this.maxTicksLength=0;for(let zt=0;zt<o.length;zt++){const li=this.tickFormat(o[zt]).toString();let yi=li.length;this.trimTicks&&(yi=this.tickTrim(li).length),yi>this.maxTicksLength&&(this.maxTicksLength=yi)}const Oe=7*Math.min(this.maxTicksLength,this.maxAllowedLength);let st=Oe;const Ut=Math.floor(this.width/o.length);for(;st>Ut&&v>-90;)v-=30,st=Math.cos(v*(Math.PI/180))*Oe;return this.approxHeight=Math.max(Math.abs(Math.sin(v*(Math.PI/180))*Oe),10),v}getTicks(){let o;const v=this.getMaxTicks(20),F=this.getMaxTicks(100);return this.tickValues?o=this.tickValues:this.scale.ticks?o=this.scale.ticks.apply(this.scale,[F]):(o=this.scale.domain(),o=Ac(o,v)),o}getMaxTicks(o){return Math.floor(this.width/o)}tickTransform(o){return"translate("+this.adjustedScale(o)+","+this.verticalSpacing+")"}gridLineTransform(){return`translate(0,${-this.verticalSpacing-5})`}tickTrim(o){return this.trimTicks?no(o,this.maxTickLength):o}}return f.\u0275fac=function(o){return new(o||f)(e.Y36(e.Lbi))},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-x-axis-ticks",""]],viewQuery:function(o,v){if(1&o&&e.Gf(Kl,5),2&o){let F;e.iGM(F=e.CRH())&&(v.ticksElement=F.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:u4,decls:4,vars:2,consts:[["ticksel",""],["class","tick",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[1,"tick"],["stroke-width","0.01"],[4,"ngIf"],["y2","0",1,"gridline-path","gridline-path-vertical"]],template:function(o,v){1&o&&(e.O4$(),e.TgZ(0,"g",null,0),e.YNc(2,$l,5,7,"g",1),e.qZA(),e.YNc(3,Ql,2,2,"g",2)),2&o&&(e.xp6(2),e.Q6J("ngForOf",v.ticks),e.xp6(1),e.Q6J("ngForOf",v.ticks))},directives:[i.sg,i.O5],encapsulation:2,changeDetection:0}),f})(),B2=(()=>{class f{constructor(){this.rotateTicks=!0,this.showGridLines=!1,this.xOrient=fa.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=fa}ngOnChanges(o){this.update()}update(){this.transform=`translate(0,${this.xAxisOffset+this.padding+this.dims.height})`,void 0!==this.xAxisTickCount&&(this.tickArguments=[this.xAxisTickCount])}emitTicksHeight({height:o}){const v=o+25+5;v!==this.labelOffset&&(this.labelOffset=v,setTimeout(()=>{this.dimensionsChanged.emit({height:o})},0))}}return f.\u0275fac=function(o){return new(o||f)},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-x-axis",""]],viewQuery:function(o,v){if(1&o&&e.Gf(Dc,5),2&o){let F;e.iGM(F=e.CRH())&&(v.ticksComponent=F.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:f4,decls:3,vars:4,consts:[["ngx-charts-x-axis-ticks","",3,"trimTicks","rotateTicks","maxTickLength","tickFormatting","tickArguments","tickStroke","scale","orient","showGridLines","gridLineHeight","width","tickValues","dimensionsChanged",4,"ngIf"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width",4,"ngIf"],["ngx-charts-x-axis-ticks","",3,"trimTicks","rotateTicks","maxTickLength","tickFormatting","tickArguments","tickStroke","scale","orient","showGridLines","gridLineHeight","width","tickValues","dimensionsChanged"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(o,v){1&o&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,C2,1,12,"g",0),e.YNc(2,c5,1,5,"g",1),e.qZA()),2&o&&(e.uIk("class",v.xAxisClassName)("transform",v.transform),e.xp6(1),e.Q6J("ngIf",v.xScale),e.xp6(1),e.Q6J("ngIf",v.showLabel))},directives:[Dc,e0,i.O5],encapsulation:2,changeDetection:0}),f})();function ps(f,O,o,v,F,[X,Oe,st,Ut]){let zt="";return zt=`M${[f+F,O]}`,zt+="h"+((o=0===(o=Math.floor(o))?1:o)-2*F),zt+=Oe?`a${[F,F]} 0 0 1 ${[F,F]}`:`h${F}v${F}`,zt+="v"+((v=0===(v=Math.floor(v))?1:v)-2*F),zt+=Ut?`a${[F,F]} 0 0 1 ${[-F,F]}`:`v${F}h${-F}`,zt+="h"+(2*F-o),zt+=st?`a${[F,F]} 0 0 1 ${[-F,-F]}`:`h${-F}v${-F}`,zt+="v"+(2*F-v),zt+=X?`a${[F,F]} 0 0 1 ${[F,-F]}`:`v${-F}h${F}`,zt+="z",zt}let t0=(()=>{class f{constructor(o){this.platformId=o,this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.showRefLabels=!1,this.showRefLines=!1,this.dimensionsChanged=new e.vpe,this.innerTickSize=6,this.tickPadding=3,this.verticalSpacing=20,this.textAnchor=fs.Middle,this.width=0,this.outerTickSize=6,this.rotateLabels=!1,this.referenceLineLength=0,this.Orientation=fa}ngOnChanges(o){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){if(!(0,i.NF)(this.platformId))return this.width=this.getApproximateAxisWidth(),void this.dimensionsChanged.emit({width:this.width});const o=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().width,10);o!==this.width&&(this.width=o,this.dimensionsChanged.emit({width:o}),setTimeout(()=>this.updateDims()))}update(){let o;const v=this.orient===fa.Top||this.orient===fa.Right?-1:1;switch(this.tickSpacing=Math.max(this.innerTickSize,0)+this.tickPadding,o=this.scale,this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:o.tickFormat?o.tickFormat.apply(o,this.tickArguments):function(F){return"Date"===F.constructor.name?F.toLocaleDateString():F.toLocaleString()},this.adjustedScale=o.bandwidth?function(F){return o(F)+.5*o.bandwidth()}:o,this.showRefLines&&this.referenceLines&&this.setReferencelines(),this.orient){case fa.Top:case fa.Bottom:this.transform=function(F){return"translate("+this.adjustedScale(F)+",0)"},this.textAnchor=fs.Middle,this.y2=this.innerTickSize*v,this.y1=this.tickSpacing*v,this.dy=v<0?"0em":".71em";break;case fa.Left:this.transform=function(F){return"translate(0,"+this.adjustedScale(F)+")"},this.textAnchor=fs.End,this.x2=this.innerTickSize*-v,this.x1=this.tickSpacing*-v,this.dy=".32em";break;case fa.Right:this.transform=function(F){return"translate(0,"+this.adjustedScale(F)+")"},this.textAnchor=fs.Start,this.x2=this.innerTickSize*-v,this.x1=this.tickSpacing*-v,this.dy=".32em"}setTimeout(()=>this.updateDims())}setReferencelines(){this.refMin=this.adjustedScale(Math.min.apply(null,this.referenceLines.map(o=>o.value))),this.refMax=this.adjustedScale(Math.max.apply(null,this.referenceLines.map(o=>o.value))),this.referenceLineLength=this.referenceLines.length,this.referenceAreaPath=ps(0,this.refMax,this.gridLineWidth,this.refMin-this.refMax,0,[!1,!1,!1,!1])}getTicks(){let o;const v=this.getMaxTicks(20),F=this.getMaxTicks(50);return this.tickValues?o=this.tickValues:this.scale.ticks?o=this.scale.ticks.apply(this.scale,[F]):(o=this.scale.domain(),o=Ac(o,v)),o}getMaxTicks(o){return Math.floor(this.height/o)}tickTransform(o){return`translate(${this.adjustedScale(o)},${this.verticalSpacing})`}gridLineTransform(){return"translate(5,0)"}tickTrim(o){return this.trimTicks?no(o,this.maxTickLength):o}getApproximateAxisWidth(){return 7*Math.max(...this.ticks.map(F=>this.tickTrim(this.tickFormat(F)).length))}}return f.\u0275fac=function(o){return new(o||f)(e.Y36(e.Lbi))},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-y-axis-ticks",""]],viewQuery:function(o,v){if(1&o&&e.Gf(Kl,5),2&o){let F;e.iGM(F=e.CRH())&&(v.ticksElement=F.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:Xl,decls:6,vars:4,consts:[["ticksel",""],["class","tick",4,"ngFor","ngForOf"],["class","reference-area",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"tick"],["stroke-width","0.01"],[1,"reference-area"],[4,"ngIf"],["class","gridline-path gridline-path-horizontal","x1","0",4,"ngIf"],["x1","0",1,"gridline-path","gridline-path-horizontal"],["x1","0",1,"refline-path","gridline-path-horizontal"],[1,"refline-label"]],template:function(o,v){1&o&&(e.O4$(),e.TgZ(0,"g",null,0),e.YNc(2,d5,5,9,"g",1),e.qZA(),e.YNc(3,_2,1,2,"path",2),e.YNc(4,Jl,2,2,"g",3),e.YNc(5,Jd,2,1,"g",3)),2&o&&(e.xp6(2),e.Q6J("ngForOf",v.ticks),e.xp6(1),e.Q6J("ngIf",v.referenceLineLength>1&&v.refMax&&v.refMin&&v.showRefLines),e.xp6(1),e.Q6J("ngForOf",v.ticks),e.xp6(1),e.Q6J("ngForOf",v.referenceLines))},directives:[i.sg,i.O5],encapsulation:2,changeDetection:0}),f})(),Ic=(()=>{class f{constructor(){this.showGridLines=!1,this.yOrient=fa.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(o){this.update()}update(){this.offset=-(this.yAxisOffset+this.padding),this.yOrient===fa.Right?(this.labelOffset=65,this.transform=`translate(${this.offset+this.dims.width} , 0)`):(this.offset=this.offset,this.transform=`translate(${this.offset} , 0)`),void 0!==this.yAxisTickCount&&(this.tickArguments=[this.yAxisTickCount])}emitTicksWidth({width:o}){o!==this.labelOffset&&this.yOrient===fa.Right?(this.labelOffset=o+this.labelOffset,setTimeout(()=>{this.dimensionsChanged.emit({width:o})},0)):o!==this.labelOffset&&(this.labelOffset=o,setTimeout(()=>{this.dimensionsChanged.emit({width:o})},0))}}return f.\u0275fac=function(o){return new(o||f)},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-y-axis",""]],viewQuery:function(o,v){if(1&o&&e.Gf(t0,5),2&o){let F;e.iGM(F=e.CRH())&&(v.ticksComponent=F.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:b2,decls:3,vars:4,consts:[["ngx-charts-y-axis-ticks","",3,"trimTicks","maxTickLength","tickFormatting","tickArguments","tickValues","tickStroke","scale","orient","showGridLines","gridLineWidth","referenceLines","showRefLines","showRefLabels","height","dimensionsChanged",4,"ngIf"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width",4,"ngIf"],["ngx-charts-y-axis-ticks","",3,"trimTicks","maxTickLength","tickFormatting","tickArguments","tickValues","tickStroke","scale","orient","showGridLines","gridLineWidth","referenceLines","showRefLines","showRefLabels","height","dimensionsChanged"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(o,v){1&o&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,e6,1,14,"g",0),e.YNc(2,p4,1,5,"g",1),e.qZA()),2&o&&(e.uIk("class",v.yAxisClassName)("transform",v.transform),e.xp6(1),e.Q6J("ngIf",v.yScale),e.xp6(1),e.Q6J("ngIf",v.showLabel))},directives:[t0,e0,i.O5],encapsulation:2,changeDetection:0}),f})(),n0=(()=>{class f{}return f.\u0275fac=function(o){return new(o||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[i.ez]]}),f})();var Mo=(()=>{return(f=Mo||(Mo={})).popover="popover",f.tooltip="tooltip",Mo;var f})(),ro=(()=>{return(f=ro||(ro={}))[f.all="all"]="all",f[f.focus="focus"]="focus",f[f.mouseover="mouseover"]="mouseover",ro;var f})();let Oc=(()=>{class f{constructor(o,v,F){this.tooltipService=o,this.viewContainerRef=v,this.renderer=F,this.tooltipCssClass="",this.tooltipAppendToBody=!0,this.tooltipSpacing=10,this.tooltipDisabled=!1,this.tooltipShowCaret=!0,this.tooltipPlacement=Zn.Top,this.tooltipAlignment=Zn.Center,this.tooltipType=Mo.popover,this.tooltipCloseOnClickOutside=!0,this.tooltipCloseOnMouseLeave=!0,this.tooltipHideTimeout=300,this.tooltipShowTimeout=100,this.tooltipShowEvent=ro.all,this.tooltipImmediateExit=!1,this.show=new e.vpe,this.hide=new e.vpe}get listensForFocus(){return this.tooltipShowEvent===ro.all||this.tooltipShowEvent===ro.focus}get listensForHover(){return this.tooltipShowEvent===ro.all||this.tooltipShowEvent===ro.mouseover}ngOnDestroy(){this.hideTooltip(!0)}onFocus(){this.listensForFocus&&this.showTooltip()}onBlur(){this.listensForFocus&&this.hideTooltip(!0)}onMouseEnter(){this.listensForHover&&this.showTooltip()}onMouseLeave(o){if(this.listensForHover&&this.tooltipCloseOnMouseLeave){if(clearTimeout(this.timeout),this.component&&this.component.instance.element.nativeElement.contains(o))return;this.hideTooltip(this.tooltipImmediateExit)}}onMouseClick(){this.listensForHover&&this.hideTooltip(!0)}showTooltip(o){if(this.component||this.tooltipDisabled)return;const v=o?0:this.tooltipShowTimeout+(navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)?300:0);clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.tooltipService.destroyAll();const F=this.createBoundOptions();this.component=this.tooltipService.create(F),setTimeout(()=>{this.component&&this.addHideListeners(this.component.instance.element.nativeElement)},10),this.show.emit(!0)},v)}addHideListeners(o){this.mouseEnterContentEvent=this.renderer.listen(o,"mouseenter",()=>{clearTimeout(this.timeout)}),this.tooltipCloseOnMouseLeave&&(this.mouseLeaveContentEvent=this.renderer.listen(o,"mouseleave",()=>{this.hideTooltip(this.tooltipImmediateExit)})),this.tooltipCloseOnClickOutside&&(this.documentClickEvent=this.renderer.listen("window","click",v=>{o.contains(v.target)||this.hideTooltip()}))}hideTooltip(o=!1){if(!this.component)return;const v=()=>{this.mouseLeaveContentEvent&&this.mouseLeaveContentEvent(),this.mouseEnterContentEvent&&this.mouseEnterContentEvent(),this.documentClickEvent&&this.documentClickEvent(),this.hide.emit(!0),this.tooltipService.destroy(this.component),this.component=void 0};clearTimeout(this.timeout),o?v():this.timeout=setTimeout(v,this.tooltipHideTimeout)}createBoundOptions(){return{title:this.tooltipTitle,template:this.tooltipTemplate,host:this.viewContainerRef.element,placement:this.tooltipPlacement,alignment:this.tooltipAlignment,type:this.tooltipType,showCaret:this.tooltipShowCaret,cssClass:this.tooltipCssClass,spacing:this.tooltipSpacing,context:this.tooltipContext}}}return f.\u0275fac=function(o){return new(o||f)(e.Y36(Sc),e.Y36(e.s_b),e.Y36(e.Qsj))},f.\u0275dir=e.lG2({type:f,selectors:[["","ngx-tooltip",""]],hostBindings:function(o,v){1&o&&e.NdJ("focusin",function(){return v.onFocus()})("blur",function(){return v.onBlur()})("mouseenter",function(){return v.onMouseEnter()})("mouseleave",function(X){return v.onMouseLeave(X.target)})("click",function(){return v.onMouseClick()})},inputs:{tooltipCssClass:"tooltipCssClass",tooltipTitle:"tooltipTitle",tooltipAppendToBody:"tooltipAppendToBody",tooltipSpacing:"tooltipSpacing",tooltipDisabled:"tooltipDisabled",tooltipShowCaret:"tooltipShowCaret",tooltipPlacement:"tooltipPlacement",tooltipAlignment:"tooltipAlignment",tooltipType:"tooltipType",tooltipCloseOnClickOutside:"tooltipCloseOnClickOutside",tooltipCloseOnMouseLeave:"tooltipCloseOnMouseLeave",tooltipHideTimeout:"tooltipHideTimeout",tooltipShowTimeout:"tooltipShowTimeout",tooltipTemplate:"tooltipTemplate",tooltipShowEvent:"tooltipShowEvent",tooltipContext:"tooltipContext",tooltipImmediateExit:"tooltipImmediateExit"},outputs:{show:"show",hide:"hide"}}),f})(),r0=(()=>{class f{}return f.\u0275fac=function(o){return new(o||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({providers:[wc,Sc],imports:[[i.ez]]}),f})();const kc={};function D1(){let f=("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4);return f=`a${f}`,kc[f]?D1():(kc[f]=!0,f)}var $r=(()=>{return(f=$r||($r={})).Vertical="vertical",f.Horizontal="horizontal",$r;var f})();let Go=(()=>{class f{constructor(){this.orientation=$r.Vertical}ngOnChanges(o){this.x1="0%",this.x2="0%",this.y1="0%",this.y2="0%",this.orientation===$r.Horizontal?this.x2="100%":this.orientation===$r.Vertical&&(this.y1="100%")}}return f.\u0275fac=function(o){return new(o||f)},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-svg-linear-gradient",""]],inputs:{orientation:"orientation",name:"name",stops:"stops"},features:[e.TTD],attrs:u5,decls:2,vars:6,consts:[[3,"id"],[3,"stop-color","stop-opacity",4,"ngFor","ngForOf"]],template:function(o,v){1&o&&(e.O4$(),e.TgZ(0,"linearGradient",0),e.YNc(1,m4,1,5,"stop",1),e.qZA()),2&o&&(e.Q6J("id",v.name),e.uIk("x1",v.x1)("y1",v.y1)("x2",v.x2)("y2",v.y2),e.xp6(1),e.Q6J("ngForOf",v.stops))},directives:[i.sg],encapsulation:2,changeDetection:0}),f})(),a0=(()=>{class f{}return f.\u0275fac=function(o){return new(o||f)},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-grid-panel",""]],inputs:{width:"width",height:"height",x:"x",y:"y"},attrs:m5,decls:1,vars:4,consts:[["stroke","none",1,"gridpanel"]],template:function(o,v){1&o&&(e.O4$(),e._UZ(0,"rect",0)),2&o&&e.uIk("height",v.height)("width",v.width)("x",v.x)("y",v.y)},encapsulation:2,changeDetection:0}),f})();var O1=(()=>{return(f=O1||(O1={})).Odd="odd",f.Even="even",O1;var f})();let P1,Wo=(()=>{class f{ngOnChanges(o){this.update()}update(){this.gridPanels=this.getGridPanels()}getGridPanels(){return this.data.map(o=>{let v,F,X,Oe,st,Ut=O1.Odd;if(this.orient===$r.Vertical){const zt=this.xScale(o.name);Number.parseInt((zt/this.xScale.step()).toString(),10)%2==1&&(Ut=O1.Even),v=this.xScale.bandwidth()*this.xScale.paddingInner(),F=this.xScale.bandwidth()+v,X=this.dims.height,Oe=this.xScale(o.name)-v/2,st=0}else if(this.orient===$r.Horizontal){const zt=this.yScale(o.name);Number.parseInt((zt/this.yScale.step()).toString(),10)%2==1&&(Ut=O1.Even),v=this.yScale.bandwidth()*this.yScale.paddingInner(),F=this.dims.width,X=this.yScale.bandwidth()+v,Oe=0,st=this.yScale(o.name)-v/2}return{name:o.name,class:Ut,height:X,width:F,x:Oe,y:st}})}}return f.\u0275fac=function(o){return new(o||f)},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-grid-panel-series",""]],inputs:{data:"data",dims:"dims",xScale:"xScale",yScale:"yScale",orient:"orient"},features:[e.TTD],attrs:t6,decls:1,vars:1,consts:[["ngx-charts-grid-panel","",3,"height","width","x","y","grid-panel","odd","even",4,"ngFor","ngForOf"],["ngx-charts-grid-panel","",3,"height","width","x","y"]],template:function(o,v){1&o&&e.YNc(0,g5,1,10,"g",0),2&o&&e.Q6J("ngForOf",v.gridPanels)},directives:[a0,i.sg],encapsulation:2,changeDetection:0}),f})();"undefined"!=typeof window?P1=window:"undefined"!=typeof global&&(P1=global);let ts=(()=>{class f{}return f.\u0275fac=function(o){return new(o||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[i.ez,n0,r0],i.ez,n0,r0]}),f})();function j2({width:f,height:O,margins:o,showXAxis:v=!1,showYAxis:F=!1,xAxisHeight:X=0,yAxisWidth:Oe=0,showXLabel:st=!1,showYLabel:Ut=!1,showLegend:zt=!1,legendType:li=Sn.Ordinal,legendPosition:yi=xs.Right,columns:xi=12}){let Ti=o[3],nn=f,vn=O-o[0]-o[2];return zt&&yi===xs.Right&&(xi-=li===Sn.Ordinal?2:1),nn=nn*xi/12,nn=nn-o[1]-o[3],v&&(vn-=5,vn-=X,st&&(vn-=30)),F&&(nn-=5,nn-=Oe,Ti+=Oe,Ti+=10,Ut&&(nn-=30,Ti+=30)),nn=Math.max(0,nn),vn=Math.max(0,vn),{width:Math.floor(nn),height:Math.floor(vn),xOffset:Math.floor(Ti)}}let Vc=[{name:"vivid",selectable:!0,group:Sn.Ordinal,domain:["#647c8a","#3f51b5","#2196f3","#00b862","#afdf0a","#a7b61a","#f3e562","#ff9800","#ff5722","#ff4514"]},{name:"natural",selectable:!0,group:Sn.Ordinal,domain:["#bf9d76","#e99450","#d89f59","#f2dfa7","#a5d7c6","#7794b1","#afafaf","#707160","#ba9383","#d9d5c3"]},{name:"cool",selectable:!0,group:Sn.Ordinal,domain:["#a8385d","#7aa3e5","#a27ea8","#aae3f5","#adcded","#a95963","#8796c0","#7ed3ed","#50abcc","#ad6886"]},{name:"fire",selectable:!0,group:Sn.Ordinal,domain:["#ff3d00","#bf360c","#ff8f00","#ff6f00","#ff5722","#e65100","#ffca28","#ffab00"]},{name:"solar",selectable:!0,group:Sn.Linear,domain:["#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"]},{name:"air",selectable:!0,group:Sn.Linear,domain:["#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"]},{name:"aqua",selectable:!0,group:Sn.Linear,domain:["#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"]},{name:"flame",selectable:!1,group:Sn.Ordinal,domain:["#A10A28","#D3342D","#EF6D49","#FAAD67","#FDDE90","#DBED91","#A9D770","#6CBA67","#2C9653","#146738"]},{name:"ocean",selectable:!1,group:Sn.Ordinal,domain:["#1D68FB","#33C0FC","#4AFFFE","#AFFFFF","#FFFC63","#FDBD2D","#FC8A25","#FA4F1E","#FA141B","#BA38D1"]},{name:"forest",selectable:!1,group:Sn.Ordinal,domain:["#55C22D","#C1F33D","#3CC099","#AFFFFF","#8CFC9D","#76CFFA","#BA60FB","#EE6490","#C42A1C","#FC9F32"]},{name:"horizon",selectable:!1,group:Sn.Ordinal,domain:["#2597FB","#65EBFD","#99FDD0","#FCEE4B","#FEFCFA","#FDD6E3","#FCB1A8","#EF6F7B","#CB96E8","#EFDEE0"]},{name:"neons",selectable:!1,group:Sn.Ordinal,domain:["#FF3333","#FF33FF","#CC33FF","#0000FF","#33CCFF","#33FFFF","#33FF66","#CCFF33","#FFCC00","#FF6600"]},{name:"picnic",selectable:!1,group:Sn.Ordinal,domain:["#FAC51D","#66BD6D","#FAA026","#29BB9C","#E96B56","#55ACD2","#B7332F","#2C83C9","#9166B8","#92E7E8"]},{name:"night",selectable:!1,group:Sn.Ordinal,domain:["#2B1B5A","#501356","#183356","#28203F","#391B3C","#1E2B3C","#120634","#2D0432","#051932","#453080","#75267D","#2C507D","#4B3880","#752F7D","#35547D"]},{name:"nightLights",selectable:!1,group:Sn.Ordinal,domain:["#4e31a5","#9c25a7","#3065ab","#57468b","#904497","#46648b","#32118d","#a00fb3","#1052a2","#6e51bd","#b63cc3","#6c97cb","#8671c1","#b455be","#7496c3"]}];class R1{constructor(O,o,v,F){"string"==typeof O&&(O=Vc.find(X=>X.name===O)),this.colorDomain=O.domain,this.scaleType=o,this.domain=v,this.customColors=F,this.scale=this.generateColorScheme(O,o,this.domain)}generateColorScheme(O,o,v){let F;switch("string"==typeof O&&(O=Vc.find(X=>X.name===O)),o){case Sn.Quantile:F=o4().range(O.domain).domain(v);break;case Sn.Ordinal:F=Zl().range(O.domain).domain(v);break;case Sn.Linear:{const X=[...O.domain];1===X.length&&(X.push(X[0]),this.colorDomain=X);const Oe=s4(0,1,1/X.length);F=eo().range(X).domain(Oe)}}return F}getColor(O){if(null==O)throw new Error("Value can not be null");if(this.scaleType===Sn.Linear){const o=eo().domain(this.domain).range([0,1]);return this.scale(o(O))}{if("function"==typeof this.customColors)return this.customColors(O);const o=O.toString();let v;return this.customColors&&this.customColors.length>0&&(v=this.customColors.find(F=>F.name.toLowerCase()===o.toLowerCase())),v?v.value:this.scale(O)}}getLinearGradientStops(O,o){void 0===o&&(o=this.domain[0]);const v=eo().domain(this.domain).range([0,1]),F=No().domain(this.colorDomain).range([0,1]),X=this.getColor(O),Oe=v(o),st=this.getColor(o),Ut=v(O);let zt=1,li=Oe;const yi=[];for(yi.push({color:st,offset:Oe,originalOffset:Oe,opacity:1});li<Ut&&zt<this.colorDomain.length;){const xi=this.colorDomain[zt],Ti=F(xi);if(Ti<=Oe)zt++;else{if(Ti.toFixed(4)>=(Ut-F.bandwidth()).toFixed(4))break;yi.push({color:xi,offset:Ti,opacity:1}),li=Ti,zt++}}if(yi[yi.length-1].offset<100&&yi.push({color:X,offset:Ut,opacity:1}),Ut===Oe)yi[0].offset=0,yi[1].offset=100;else if(100!==yi[yi.length-1].offset)for(const xi of yi)xi.offset=(xi.offset-Oe)/(Ut-Oe)*100;return yi}}let Z2=(()=>{class f{}return f.\u0275fac=function(o){return new(o||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[ts]]}),f})(),h0=(()=>{class f{constructor(o){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=o.nativeElement}ngOnChanges(o){o.roundEdges&&this.loadAnimation(),this.update()}update(){this.gradientId="grad"+D1().toString(),this.gradientFill=`url(#${this.gradientId})`,this.gradient||this.stops?(this.gradientStops=this.getGradient(),this.hasGradient=!0):this.hasGradient=!1,this.updatePathEl(),this.checkToHideBar()}loadAnimation(){this.path=this.getStartingPath(),setTimeout(this.update.bind(this),100)}updatePathEl(){const o=function sn(f){return"string"==typeof f?new bi([[document.querySelector(f)]],[document.documentElement]):new bi([[f]],Vt)}(this.element).select(".bar"),v=this.getPath();this.animations?o.transition().duration(500).attr("d",v):o.attr("d",v)}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 v,o=this.getRadius();return this.roundEdges?this.orientation===$r.Vertical?(o=Math.min(this.height,o),v=ps(this.x,this.y+this.height,this.width,1,0,this.edges)):this.orientation===$r.Horizontal&&(o=Math.min(this.width,o),v=ps(this.x,this.y,1,this.height,0,this.edges)):this.orientation===$r.Vertical?v=ps(this.x,this.y+this.height,this.width,1,0,this.edges):this.orientation===$r.Horizontal&&(v=ps(this.x,this.y,1,this.height,0,this.edges)),v}getPath(){let v,o=this.getRadius();return this.roundEdges?this.orientation===$r.Vertical?(o=Math.min(this.height,o),v=ps(this.x,this.y,this.width,this.height,o,this.edges)):this.orientation===$r.Horizontal&&(o=Math.min(this.width,o),v=ps(this.x,this.y,this.width,this.height,o,this.edges)):v=ps(this.x,this.y,this.width,this.height,o,this.edges),v}getRadius(){let o=0;return this.roundEdges&&this.height>5&&this.width>5&&(o=Math.floor(Math.min(5,this.height/2,this.width/2))),o}getStartOpacity(){return this.roundEdges?.2:.5}get edges(){let o=[!1,!1,!1,!1];return this.roundEdges&&(this.orientation===$r.Vertical?o=this.data.value>0?[!0,!0,!1,!1]:[!1,!1,!0,!0]:this.orientation===$r.Horizontal&&(o=this.data.value>0?[!1,!0,!1,!0]:[!0,!1,!0,!1])),o}onMouseEnter(){this.activate.emit(this.data)}onMouseLeave(){this.deactivate.emit(this.data)}checkToHideBar(){this.hideBar=this.noBarWhenZero&&(this.orientation===$r.Vertical&&0===this.height||this.orientation===$r.Horizontal&&0===this.width)}}return f.\u0275fac=function(o){return new(o||f)(e.Y36(e.SBq))},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-bar",""]],hostBindings:function(o,v){1&o&&e.NdJ("mouseenter",function(){return v.onMouseEnter()})("mouseleave",function(){return v.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:u6,decls:2,vars:8,consts:[[4,"ngIf"],["stroke","none","role","img","tabIndex","-1",1,"bar",3,"click"],["ngx-charts-svg-linear-gradient","",3,"orientation","name","stops"]],template:function(o,v){1&o&&(e.YNc(0,Ja,2,3,"defs",0),e.O4$(),e.TgZ(1,"path",1),e.NdJ("click",function(){return v.select.emit(v.data)}),e.qZA()),2&o&&(e.Q6J("ngIf",v.hasGradient),e.xp6(1),e.ekj("active",v.isActive)("hidden",v.hideBar),e.uIk("d",v.path)("aria-label",v.ariaLabel)("fill",v.hasGradient?v.gradientFill:v.fill))},directives:[Go,i.O5],encapsulation:2,changeDetection:0}),f})();var Ms=(()=>{return(f=Ms||(Ms={})).Standard="standard",f.Normalized="normalized",f.Stacked="stacked",Ms;var f})(),Ys=(()=>{return(f=Ys||(Ys={})).positive="positive",f.negative="negative",Ys;var f})();let u0=(()=>{class f{constructor(o){this.dimensionsChanged=new e.vpe,this.horizontalPadding=2,this.verticalPadding=5,this.element=o.nativeElement}ngOnChanges(o){this.update()}getSize(){return{height:this.element.getBoundingClientRect().height,width:this.element.getBoundingClientRect().width,negative:this.value<0}}ngAfterViewInit(){this.dimensionsChanged.emit(this.getSize())}update(){this.formatedValue=this.valueFormatting?this.valueFormatting(this.value):T1(this.value),"horizontal"===this.orientation?(this.x=this.barX+this.barWidth,this.value<0?(this.x=this.x-this.horizontalPadding,this.textAnchor="end"):(this.x=this.x+this.horizontalPadding,this.textAnchor="start"),this.y=this.barY+this.barHeight/2):(this.x=this.barX+this.barWidth/2,this.y=this.barY+this.barHeight,this.value<0?(this.y=this.y+this.verticalPadding,this.textAnchor="end"):(this.y=this.y-this.verticalPadding,this.textAnchor="start"),this.transform=`rotate(-45, ${this.x} , ${this.y})`)}}return f.\u0275fac=function(o){return new(o||f)(e.Y36(e.SBq))},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-bar-label",""]],inputs:{value:"value",valueFormatting:"valueFormatting",barX:"barX",barY:"barY",barWidth:"barWidth",barHeight:"barHeight",orientation:"orientation"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[e.TTD],attrs:f6,decls:2,vars:5,consts:[["alignment-baseline","middle",1,"textDataLabel"]],template:function(o,v){1&o&&(e.O4$(),e.TgZ(0,"text",0),e._uU(1),e.qZA()),2&o&&(e.uIk("text-anchor",v.textAnchor)("transform",v.transform)("x",v.x)("y",v.y),e.xp6(1),e.hij(" ",v.formatedValue," "))},styles:[".textDataLabel[_ngcontent-%COMP%]{font-size:11px}"],changeDetection:0}),f})(),f0=(()=>{class f{constructor(o){this.platformId=o,this.type=Ms.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=$r,this.isSSR=!1}ngOnInit(){(0,i.PM)(this.platformId)&&(this.isSSR=!0)}ngOnChanges(o){this.update()}update(){let o;this.updateTooltipSettings(),this.series.length&&(o=this.xScale.bandwidth()),o=Math.round(o);const v=Math.max(this.yScale.domain()[0],0),F={[Ys.positive]:0,[Ys.negative]:0};let Oe,X=Ys.positive;this.type===Ms.Normalized&&(Oe=this.series.map(st=>st.value).reduce((st,Ut)=>st+Ut,0)),this.bars=this.series.map((st,Ut)=>{let zt=st.value;const li=this.getLabel(st),yi=T1(li);X=zt>0?Ys.positive:Ys.negative;const Ti={value:zt,label:li,roundEdges:this.roundEdges,data:st,width:o,formattedLabel:yi,height:0,x:0,y:0};if(this.type===Ms.Standard)Ti.height=Math.abs(this.yScale(zt)-this.yScale(v)),Ti.x=this.xScale(li),Ti.y=this.yScale(zt<0?0:zt);else if(this.type===Ms.Stacked){const vn=F[X],Ii=vn+zt;F[X]+=zt,Ti.height=this.yScale(vn)-this.yScale(Ii),Ti.x=0,Ti.y=this.yScale(Ii),Ti.offset0=vn,Ti.offset1=Ii}else if(this.type===Ms.Normalized){let vn=F[X],Ii=vn+zt;F[X]+=zt,Oe>0?(vn=100*vn/Oe,Ii=100*Ii/Oe):(vn=0,Ii=0),Ti.height=this.yScale(vn)-this.yScale(Ii),Ti.x=0,Ti.y=this.yScale(Ii),Ti.offset0=vn,Ti.offset1=Ii,zt=(Ii-vn).toFixed(2)+"%"}this.colors.scaleType===Sn.Ordinal?Ti.color=this.colors.getColor(li):this.type===Ms.Standard?(Ti.color=this.colors.getColor(zt),Ti.gradientStops=this.colors.getLinearGradientStops(zt)):(Ti.color=this.colors.getColor(Ti.offset1),Ti.gradientStops=this.colors.getLinearGradientStops(Ti.offset1,Ti.offset0));let nn=yi;return Ti.ariaLabel=yi+" "+zt.toLocaleString(),null!=this.seriesName&&(nn=`${this.seriesName} \u2022 ${yi}`,Ti.data.series=this.seriesName,Ti.ariaLabel=this.seriesName+" "+Ti.ariaLabel),Ti.tooltipText=this.tooltipDisabled?void 0:`\n <span class="tooltip-label">${function A1(f){return f.toLocaleString().replace(/[&'`"<>]/g,O=>({"&":"&amp;","'":"&#x27;","`":"&#x60;",'"':"&quot;","<":"&lt;",">":"&gt;"}[O]))}(nn)}</span>\n <span class="tooltip-val">${this.dataLabelFormatting?this.dataLabelFormatting(zt):zt.toLocaleString()}</span>\n `,Ti}),this.updateDataLabels()}updateDataLabels(){if(this.type===Ms.Stacked){this.barsForDataLabels=[];const o={};o.series=this.seriesName;const v=this.series.map(X=>X.value).reduce((X,Oe)=>Oe>0?X+Oe:X,0),F=this.series.map(X=>X.value).reduce((X,Oe)=>Oe<0?X+Oe:X,0);o.total=v+F,o.x=0,o.y=0,o.height=this.yScale(o.total>0?v:F),o.width=this.xScale.bandwidth(),this.barsForDataLabels.push(o)}else this.barsForDataLabels=this.series.map(o=>{var v;const F={};return F.series=null!==(v=this.seriesName)&&void 0!==v?v:o.label,F.total=o.value,F.x=this.xScale(o.label),F.y=this.yScale(0),F.height=this.yScale(F.total)-this.yScale(0),F.width=this.xScale.bandwidth(),F})}updateTooltipSettings(){this.tooltipPlacement=this.tooltipDisabled?void 0:Zn.Top,this.tooltipType=this.tooltipDisabled?void 0:Mo.tooltip}isActive(o){return!!this.activeEntries&&void 0!==this.activeEntries.find(F=>o.name===F.name&&o.value===F.value)}onClick(o){this.select.emit(o)}getLabel(o){return o.label?o.label:o.name}trackBy(o,v){return v.label}trackDataLabelBy(o,v){return o+"#"+v.series+"#"+v.total}}return f.\u0275fac=function(o){return new(o||f)(e.Y36(e.Lbi))},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-series-vertical",""]],inputs:{dims:"dims",type:"type",series:"series",xScale:"xScale",yScale:"yScale",colors:"colors",gradient:"gradient",activeEntries:"activeEntries",seriesName:"seriesName",tooltipDisabled:"tooltipDisabled",tooltipTemplate:"tooltipTemplate",roundEdges:"roundEdges",animations:"animations",showDataLabel:"showDataLabel",dataLabelFormatting:"dataLabelFormatting",noBarWhenZero:"noBarWhenZero"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",dataLabelHeightChanged:"dataLabelHeightChanged"},features:[e.TTD],attrs:dc,decls:3,vars:3,consts:[[4,"ngIf"],["ngx-charts-bar","","ngx-tooltip","",3,"width","height","x","y","fill","stops","data","orientation","roundEdges","gradient","ariaLabel","isActive","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","noBarWhenZero","animations","select","activate","deactivate",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-bar","","ngx-tooltip","",3,"width","height","x","y","fill","stops","data","orientation","roundEdges","gradient","ariaLabel","isActive","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","noBarWhenZero","animations","select","activate","deactivate"],["ngx-charts-bar-label","",3,"barX","barY","barWidth","barHeight","value","valueFormatting","orientation","dimensionsChanged",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-bar-label","",3,"barX","barY","barWidth","barHeight","value","valueFormatting","orientation","dimensionsChanged"]],template:function(o,v){1&o&&(e.YNc(0,k4,2,2,"g",0),e.YNc(1,L2,2,2,"g",0),e.YNc(2,P4,2,2,"g",0)),2&o&&(e.Q6J("ngIf",!v.isSSR),e.xp6(1),e.Q6J("ngIf",v.isSSR),e.xp6(1),e.Q6J("ngIf",v.showDataLabel))},directives:[h0,u0,i.O5,i.sg,Oc],encapsulation:2,data:{animation:[(0,d.X$)("animationState",[(0,d.eR)(":leave",[(0,d.oB)({opacity:1}),(0,d.jt)(500,(0,d.oB)({opacity:0}))])])]},changeDetection:0}),f})(),yh=(()=>{class f extends z2{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition=xs.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=j2({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.formatDates(),this.showDataLabel&&(this.dims.height-=this.dataLabelMaxHeight.negative),this.xScale=this.getXScale(),this.yScale=this.getYScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]+this.dataLabelMaxHeight.negative})`}getXScale(){this.xDomain=this.getXDomain();const o=this.xDomain.length/(this.dims.width/this.barPadding+1);return No().range([0,this.dims.width]).paddingInner(o).domain(this.xDomain)}getYScale(){this.yDomain=this.getYDomain();const o=eo().range([this.dims.height,0]).domain(this.yDomain);return this.roundDomains?o.nice():o}getXDomain(){return this.results.map(o=>o.label)}getYDomain(){const o=this.results.map(X=>X.value);let v=this.yScaleMin?Math.min(this.yScaleMin,...o):Math.min(0,...o);this.yAxisTicks&&!this.yAxisTicks.some(isNaN)&&(v=Math.min(v,...this.yAxisTicks));let F=this.yScaleMax?Math.max(this.yScaleMax,...o):Math.max(0,...o);return this.yAxisTicks&&!this.yAxisTicks.some(isNaN)&&(F=Math.max(F,...this.yAxisTicks)),[v,F]}onClick(o){this.select.emit(o)}setColors(){let o;o=this.schemeType===Sn.Ordinal?this.xDomain:this.yDomain,this.colors=new R1(this.scheme,this.schemeType,o,this.customColors)}getLegendOptions(){const o={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return o.scaleType===Sn.Ordinal?(o.domain=this.xDomain,o.colors=this.colors,o.title=this.legendTitle):(o.domain=this.yDomain,o.colors=this.colors.scale),o}updateYAxisWidth({width:o}){this.yAxisWidth=o,this.update()}updateXAxisHeight({height:o}){this.xAxisHeight=o,this.update()}onDataLabelMaxHeightChanged(o){o.size.negative?this.dataLabelMaxHeight.negative=Math.max(this.dataLabelMaxHeight.negative,o.size.height):this.dataLabelMaxHeight.positive=Math.max(this.dataLabelMaxHeight.positive,o.size.height),o.index===this.results.length-1&&setTimeout(()=>this.update())}onActivate(o,v=!1){o=this.results.find(X=>v?X.label===o.name:X.name===o.name),!(this.activeEntries.findIndex(X=>X.name===o.name&&X.value===o.value&&X.series===o.series)>-1)&&(this.activeEntries=[o,...this.activeEntries],this.activate.emit({value:o,entries:this.activeEntries}))}onDeactivate(o,v=!1){o=this.results.find(X=>v?X.label===o.name:X.name===o.name);const F=this.activeEntries.findIndex(X=>X.name===o.name&&X.value===o.value&&X.series===o.series);this.activeEntries.splice(F,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:o,entries:this.activeEntries})}}return f.\u0275fac=function(){let O;return function(v){return(O||(O=e.n5z(f)))(v||f)}}(),f.\u0275cmp=e.Xpm({type:f,selectors:[["ngx-charts-bar-vertical"]],contentQueries:function(o,v,F){if(1&o&&e.Suo(F,v4,5),2&o){let X;e.iGM(X=e.CRH())&&(v.tooltipTemplate=X.first)}},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",tooltipDisabled:"tooltipDisabled",gradient:"gradient",showGridLines:"showGridLines",activeEntries:"activeEntries",schemeType:"schemeType",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",barPadding:"barPadding",roundDomains:"roundDomains",roundEdges:"roundEdges",yScaleMax:"yScaleMax",yScaleMin:"yScaleMin",showDataLabel:"showDataLabel",dataLabelFormatting:"dataLabelFormatting",noBarWhenZero:"noBarWhenZero"},outputs:{activate:"activate",deactivate:"deactivate"},features:[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(o,v){1&o&&(e.TgZ(0,"ngx-charts-chart",0),e.NdJ("legendLabelClick",function(X){return v.onClick(X)})("legendLabelActivate",function(X){return v.onActivate(X,!0)})("legendLabelDeactivate",function(X){return v.onDeactivate(X,!0)}),e.O4$(),e.TgZ(1,"g",1),e.YNc(2,T2,1,11,"g",2),e.YNc(3,A2,1,9,"g",3),e.TgZ(4,"g",4),e.NdJ("activate",function(X){return v.onActivate(X)})("deactivate",function(X){return v.onDeactivate(X)})("select",function(X){return v.onClick(X)})("dataLabelHeightChanged",function(X){return v.onDataLabelMaxHeightChanged(X)}),e.qZA()()()),2&o&&(e.Q6J("view",e.WLB(22,bs,v.width,v.height))("showLegend",v.legend)("legendOptions",v.legendOptions)("activeEntries",v.activeEntries)("animations",v.animations),e.xp6(1),e.uIk("transform",v.transform),e.xp6(1),e.Q6J("ngIf",v.xAxis),e.xp6(1),e.Q6J("ngIf",v.yAxis),e.xp6(1),e.Q6J("xScale",v.xScale)("yScale",v.yScale)("colors",v.colors)("series",v.results)("dims",v.dims)("gradient",v.gradient)("tooltipDisabled",v.tooltipDisabled)("tooltipTemplate",v.tooltipTemplate)("showDataLabel",v.showDataLabel)("dataLabelFormatting",v.dataLabelFormatting)("activeEntries",v.activeEntries)("roundEdges",v.roundEdges)("animations",v.animations)("noBarWhenZero",v.noBarWhenZero))},directives:[Lc,B2,Ic,f0,i.O5],styles:[E4],encapsulation:2,changeDetection:0}),f})(),p0=(()=>{class f extends z2{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition=xs.Right,this.tooltipDisabled=!1,this.scaleType=Sn.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=$r,this.trackBy=(o,v)=>v.name}ngOnInit(){(0,i.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=j2({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.showDataLabel&&(this.dims.height-=this.dataLabelMaxHeight.negative),this.formatDates(),this.groupDomain=this.getGroupDomain(),this.innerDomain=this.getInnerDomain(),this.valueDomain=this.getValueDomain(),this.groupScale=this.getGroupScale(),this.innerScale=this.getInnerScale(),this.valueScale=this.getValueScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]+this.dataLabelMaxHeight.negative})`}onDataLabelMaxHeightChanged(o,v){o.size.negative?this.dataLabelMaxHeight.negative=Math.max(this.dataLabelMaxHeight.negative,o.size.height):this.dataLabelMaxHeight.positive=Math.max(this.dataLabelMaxHeight.positive,o.size.height),v===this.results.length-1&&setTimeout(()=>this.update())}getGroupScale(){const o=this.groupDomain.length/(this.dims.height/this.groupPadding+1);return No().rangeRound([0,this.dims.width]).paddingInner(o).paddingOuter(o/2).domain(this.groupDomain)}getInnerScale(){const o=this.groupScale.bandwidth(),v=this.innerDomain.length/(o/this.barPadding+1);return No().rangeRound([0,o]).paddingInner(v).domain(this.innerDomain)}getValueScale(){const o=eo().range([this.dims.height,0]).domain(this.valueDomain);return this.roundDomains?o.nice():o}getGroupDomain(){const o=[];for(const v of this.results)o.includes(v.label)||o.push(v.label);return o}getInnerDomain(){const o=[];for(const v of this.results)for(const F of v.series)o.includes(F.label)||o.push(F.label);return o}getValueDomain(){const o=[];for(const X of this.results)for(const Oe of X.series)o.includes(Oe.value)||o.push(Oe.value);return[Math.min(0,...o),this.yScaleMax?Math.max(this.yScaleMax,...o):Math.max(0,...o)]}groupTransform(o){return`translate(${this.groupScale(o.label)}, 0)`}onClick(o,v){v&&(o.series=v.name),this.select.emit(o)}setColors(){let o;o=this.schemeType===Sn.Ordinal?this.innerDomain:this.valueDomain,this.colors=new R1(this.scheme,this.schemeType,o,this.customColors)}getLegendOptions(){const o={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return o.scaleType===Sn.Ordinal?(o.domain=this.innerDomain,o.colors=this.colors,o.title=this.legendTitle):(o.domain=this.valueDomain,o.colors=this.colors.scale),o}updateYAxisWidth({width:o}){this.yAxisWidth=o,this.update()}updateXAxisHeight({height:o}){this.xAxisHeight=o,this.update()}onActivate(o,v,F=!1){const X=Object.assign({},o);v&&(X.series=v.name);const Oe=this.results.map(st=>st.series).flat().filter(st=>F?st.label===X.name:st.name===X.name&&st.series===X.series);this.activeEntries=[...Oe],this.activate.emit({value:X,entries:this.activeEntries})}onDeactivate(o,v,F=!1){const X=Object.assign({},o);v&&(X.series=v.name),this.activeEntries=this.activeEntries.filter(Oe=>F?Oe.label!==X.name:!(Oe.name===X.name&&Oe.series===X.series)),this.deactivate.emit({value:X,entries:this.activeEntries})}}return f.\u0275fac=function(){let O;return function(v){return(O||(O=e.n5z(f)))(v||f)}}(),f.\u0275cmp=e.Xpm({type:f,selectors:[["ngx-charts-bar-vertical-2d"]],contentQueries:function(o,v,F){if(1&o&&e.Suo(F,v4,5),2&o){let X;e.iGM(X=e.CRH())&&(v.tooltipTemplate=X.first)}},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",tooltipDisabled:"tooltipDisabled",scaleType:"scaleType",gradient:"gradient",showGridLines:"showGridLines",activeEntries:"activeEntries",schemeType:"schemeType",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",groupPadding:"groupPadding",barPadding:"barPadding",roundDomains:"roundDomains",roundEdges:"roundEdges",yScaleMax:"yScaleMax",showDataLabel:"showDataLabel",dataLabelFormatting:"dataLabelFormatting",noBarWhenZero:"noBarWhenZero"},outputs:{activate:"activate",deactivate:"deactivate"},features:[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(o,v){1&o&&(e.TgZ(0,"ngx-charts-chart",0),e.NdJ("legendLabelActivate",function(X){return v.onActivate(X,void 0,!0)})("legendLabelDeactivate",function(X){return v.onDeactivate(X,void 0,!0)})("legendLabelClick",function(X){return v.onClick(X)}),e.O4$(),e.TgZ(1,"g",1),e._UZ(2,"g",2),e.YNc(3,S6,1,10,"g",3),e.YNc(4,D2,1,9,"g",4),e.YNc(5,uc,2,2,"g",5),e.qZA(),e.YNc(6,L6,2,2,"g",5),e.qZA()),2&o&&(e.Q6J("view",e.WLB(15,bs,v.width,v.height))("showLegend",v.legend)("legendOptions",v.legendOptions)("activeEntries",v.activeEntries)("animations",v.animations),e.xp6(1),e.uIk("transform",v.transform),e.xp6(1),e.Q6J("xScale",v.groupScale)("yScale",v.valueScale)("data",v.results)("dims",v.dims)("orient",v.barOrientation.Vertical),e.xp6(1),e.Q6J("ngIf",v.xAxis),e.xp6(1),e.Q6J("ngIf",v.yAxis),e.xp6(1),e.Q6J("ngIf",!v.isSSR),e.xp6(1),e.Q6J("ngIf",v.isSSR))},directives:[Lc,Wo,B2,Ic,f0,i.O5,i.sg],styles:[E4],encapsulation:2,data:{animation:[(0,d.X$)("animationState",[(0,d.eR)(":leave",[(0,d.oB)({opacity:1,transform:"*"}),(0,d.jt)(500,(0,d.oB)({opacity:0,transform:"scale(0)"}))])])]},changeDetection:0}),f})(),Bc=(()=>{class f{}return f.\u0275fac=function(o){return new(o||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[ts]]}),f})(),xh=(()=>{class f{}return f.\u0275fac=function(o){return new(o||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[ts]]}),f})(),Eh=(()=>{class f{}return f.\u0275fac=function(o){return new(o||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[ts]]}),f})(),Q5=(()=>{class f{}return f.\u0275fac=function(o){return new(o||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[ts]]}),f})(),Yc=(()=>{class f{}return f.\u0275fac=function(o){return new(o||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[ts]]}),f})();Math;let $2=(()=>{class f{}return f.\u0275fac=function(o){return new(o||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[ts]]}),f})(),Ah=(()=>{class f{}return f.\u0275fac=function(o){return new(o||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[ts,$2,Yc]]}),f})(),$c=(()=>{class f{}return f.\u0275fac=function(o){return new(o||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[ts]]}),f})(),E0=(()=>{class f{}return f.\u0275fac=function(o){return new(o||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[ts]]}),f})(),Nh=(()=>{class f{}return f.\u0275fac=function(o){return new(o||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[ts,$2,Bc]]}),f})(),Hh=(()=>{class f{constructor(){!function Qc(){"undefined"!=typeof SVGElement&&void 0===SVGElement.prototype.contains&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)}()}}return f.\u0275fac=function(o){return new(o||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[ts,Z2,Bc,xh,Eh,Q5,Yc,Ah,$c,$2,E0,Nh]}),f})()},159:(He,j,p)=>{"use strict";p.d(j,{OF:()=>T,uU:()=>D});var e=p(5e3),i=p(9808),u=p(655),b=p(3259);function a(M,A){if(1&M&&e._UZ(0,"canvas",1),2&M){const E=e.oxw();e.Q6J("qrCode",E.value)("qrCodeErrorCorrectionLevel",E.errorCorrectionLevel)("qrCodeCenterImageSrc",E.centerImageSrc)("qrCodeCenterImageWidth",E.centerImageSize)("qrCodeCenterImageHeight",E.centerImageSize)("qrCodeMargin",E.margin)("width",E.size)("height",E.size)("darkColor",E.darkColor)("lightColor",E.lightColor)}}const y=/^#(?:[0-9a-fA-F]{3,4}){1,2}$/;let d=(()=>{class M{constructor(E){this.viewContainerRef=E,this.errorCorrectionLevel=M.DEFAULT_ERROR_CORRECTION_LEVEL,this.darkColor="#000000FF",this.lightColor="#FFFFFFFF",this.margin=16}ngOnChanges(){var E,k;return(0,u.mG)(this,void 0,void 0,function*(){if(!this.value)return;this.version&&this.version>40?(console.warn("[qrCode] max version is 40, clamping"),this.version=40):this.version&&this.version<1?(console.warn("[qrCode] min version is 1, clamping"),this.version=1):void 0!==this.version&&isNaN(this.version)&&(console.warn("[qrCode] version should be set to a number, defaulting to auto"),this.version=void 0);const w=this.viewContainerRef.element.nativeElement;if(!w)return;const z=w.getContext("2d");z&&z.clearRect(0,0,z.canvas.width,z.canvas.height);const U=null!==(E=this.errorCorrectionLevel)&&void 0!==E?E:M.DEFAULT_ERROR_CORRECTION_LEVEL,W=y.test(this.darkColor)?this.darkColor:void 0,ne=y.test(this.lightColor)?this.lightColor:void 0;(0,e.X6Q)()&&(!W&&this.darkColor&&console.error("[ng-qrcode] darkColor set to invalid value, must be RGBA hex color string, eg: #3050A1FF"),!ne&&this.lightColor&&console.error("[ng-qrcode] lightColor set to invalid value, must be RGBA hex color string, eg: #3050A130")),yield b.toCanvas(w,this.value,{version:this.version,errorCorrectionLevel:U,width:this.width,margin:this.margin,color:{dark:W,light:ne}});const Q=this.centerImageSrc,le=P(this.centerImageWidth,M.DEFAULT_CENTER_IMAGE_SIZE),q=P(this.centerImageHeight,M.DEFAULT_CENTER_IMAGE_SIZE);if(Q&&z){this.centerImage||(this.centerImage=new Image(le,q)),Q!==(null===(k=this.centerImage)||void 0===k?void 0:k.src)&&(this.centerImage.src=Q),le!==this.centerImage.width&&(this.centerImage.width=le),q!==this.centerImage.height&&(this.centerImage.height=q);const ie=this.centerImage;ie.onload=()=>{z.drawImage(ie,w.width/2-le/2,w.height/2-q/2,le,q)}}})}}return M.DEFAULT_ERROR_CORRECTION_LEVEL="M",M.DEFAULT_CENTER_IMAGE_SIZE=40,M.\u0275fac=function(E){return new(E||M)(e.Y36(e.s_b))},M.\u0275dir=e.lG2({type:M,selectors:[["canvas","qrCode",""]],inputs:{value:["qrCode","value"],version:["qrCodeVersion","version"],errorCorrectionLevel:["qrCodeErrorCorrectionLevel","errorCorrectionLevel"],width:"width",height:"height",darkColor:"darkColor",lightColor:"lightColor",centerImageSrc:["qrCodeCenterImageSrc","centerImageSrc"],centerImageWidth:["qrCodeCenterImageWidth","centerImageWidth"],centerImageHeight:["qrCodeCenterImageHeight","centerImageHeight"],margin:["qrCodeMargin","margin"]},features:[e.TTD]}),M})();function P(M,A){return void 0===M||""===M?A:"string"==typeof M?parseInt(M,10):M}let D=(()=>{class M{}return M.\u0275fac=function(E){return new(E||M)},M.\u0275cmp=e.Xpm({type:M,selectors:[["qr-code"]],inputs:{value:"value",size:"size",darkColor:"darkColor",lightColor:"lightColor",errorCorrectionLevel:"errorCorrectionLevel",centerImageSrc:"centerImageSrc",centerImageSize:"centerImageSize",margin:"margin"},decls:1,vars:1,consts:[[3,"qrCode","qrCodeErrorCorrectionLevel","qrCodeCenterImageSrc","qrCodeCenterImageWidth","qrCodeCenterImageHeight","qrCodeMargin","width","height","darkColor","lightColor",4,"ngIf"],[3,"qrCode","qrCodeErrorCorrectionLevel","qrCodeCenterImageSrc","qrCodeCenterImageWidth","qrCodeCenterImageHeight","qrCodeMargin","width","height","darkColor","lightColor"]],template:function(E,k){1&E&&e.YNc(0,a,1,10,"canvas",0),2&E&&e.Q6J("ngIf",k.value)},directives:[i.O5,d],encapsulation:2}),M})(),T=(()=>{class M{}return M.\u0275fac=function(E){return new(E||M)},M.\u0275mod=e.oAB({type:M}),M.\u0275inj=e.cJS({imports:[[i.ez]]}),M})()},8129:(He,j,p)=>{"use strict";p.d(j,{op:()=>ei,$V:()=>Me,Xd:()=>Rt});var e=p(7579),i=p(4968),u=p(3601),b=p(2722),a=p(5e3),y=p(9808);function d(et){return getComputedStyle(et)}function P(et,Re){for(var qe in Re){var Ze=Re[qe];"number"==typeof Ze&&(Ze+="px"),et.style[qe]=Ze}return et}function D(et){var Re=document.createElement("div");return Re.className=et,Re}var T="undefined"!=typeof Element&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function M(et,Re){if(!T)throw new Error("No element matching method supported");return T.call(et,Re)}function A(et){et.remove?et.remove():et.parentNode&&et.parentNode.removeChild(et)}function E(et,Re){return Array.prototype.filter.call(et.children,function(qe){return M(qe,Re)})}var k_element_thumb=function(et){return"ps__thumb-"+et},k_element_rail=function(et){return"ps__rail-"+et},k_element_consuming="ps__child--consume",k_state_focus="ps--focus",k_state_clicking="ps--clicking",k_state_active=function(et){return"ps--active-"+et},k_state_scrolling=function(et){return"ps--scrolling-"+et},w={x:null,y:null};function z(et,Re){var qe=et.element.classList,Ze=k_state_scrolling(Re);qe.contains(Ze)?clearTimeout(w[Re]):qe.add(Ze)}function U(et,Re){w[Re]=setTimeout(function(){return et.isAlive&&et.element.classList.remove(k_state_scrolling(Re))},et.settings.scrollingThreshold)}var ne=function(Re){this.element=Re,this.handlers={}},Q={isEmpty:{configurable:!0}};ne.prototype.bind=function(Re,qe){void 0===this.handlers[Re]&&(this.handlers[Re]=[]),this.handlers[Re].push(qe),this.element.addEventListener(Re,qe,!1)},ne.prototype.unbind=function(Re,qe){var Ze=this;this.handlers[Re]=this.handlers[Re].filter(function(we){return!(!qe||we===qe)||(Ze.element.removeEventListener(Re,we,!1),!1)})},ne.prototype.unbindAll=function(){for(var Re in this.handlers)this.unbind(Re)},Q.isEmpty.get=function(){var et=this;return Object.keys(this.handlers).every(function(Re){return 0===et.handlers[Re].length})},Object.defineProperties(ne.prototype,Q);var le=function(){this.eventElements=[]};function q(et){if("function"==typeof window.CustomEvent)return new CustomEvent(et);var Re=document.createEvent("CustomEvent");return Re.initCustomEvent(et,!1,!1,void 0),Re}function ie(et,Re,qe,Ze,we){var Fe;if(void 0===Ze&&(Ze=!0),void 0===we&&(we=!1),"top"===Re)Fe=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==Re)throw new Error("A proper axis should be provided");Fe=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function se(et,Re,qe,Ze,we){var Fe=qe[0],rt=qe[1],at=qe[2],yt=qe[3],mi=qe[4],Xt=qe[5];void 0===Ze&&(Ze=!0),void 0===we&&(we=!1);var Jt=et.element;et.reach[yt]=null,Jt[at]<1&&(et.reach[yt]="start"),Jt[at]>et[Fe]-et[rt]-1&&(et.reach[yt]="end"),Re&&(Jt.dispatchEvent(q("ps-scroll-"+yt)),Re<0?Jt.dispatchEvent(q("ps-scroll-"+mi)):Re>0&&Jt.dispatchEvent(q("ps-scroll-"+Xt)),Ze&&function W(et,Re){z(et,Re),U(et,Re)}(et,yt)),et.reach[yt]&&(Re||we)&&Jt.dispatchEvent(q("ps-"+yt+"-reach-"+et.reach[yt]))}(et,qe,Fe,Ze,we)}function J(et){return parseInt(et,10)||0}le.prototype.eventElement=function(Re){var qe=this.eventElements.filter(function(Ze){return Ze.element===Re})[0];return qe||(qe=new ne(Re),this.eventElements.push(qe)),qe},le.prototype.bind=function(Re,qe,Ze){this.eventElement(Re).bind(qe,Ze)},le.prototype.unbind=function(Re,qe,Ze){var we=this.eventElement(Re);we.unbind(qe,Ze),we.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(we),1)},le.prototype.unbindAll=function(){this.eventElements.forEach(function(Re){return Re.unbindAll()}),this.eventElements=[]},le.prototype.once=function(Re,qe,Ze){var we=this.eventElement(Re),Fe=function(rt){we.unbind(qe,Fe),Ze(rt)};we.bind(qe,Fe)};var t={isWebKit:"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style,supportsTouch:"undefined"!=typeof window&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:"undefined"!=typeof navigator&&navigator.msMaxTouchPoints,isChrome:"undefined"!=typeof navigator&&/Chrome/i.test(navigator&&navigator.userAgent)};function r(et){var Re=et.element,qe=Math.floor(Re.scrollTop),Ze=Re.getBoundingClientRect();et.containerWidth=Math.round(Ze.width),et.containerHeight=Math.round(Ze.height),et.contentWidth=Re.scrollWidth,et.contentHeight=Re.scrollHeight,Re.contains(et.scrollbarXRail)||(E(Re,k_element_rail("x")).forEach(function(we){return A(we)}),Re.appendChild(et.scrollbarXRail)),Re.contains(et.scrollbarYRail)||(E(Re,k_element_rail("y")).forEach(function(we){return A(we)}),Re.appendChild(et.scrollbarYRail)),!et.settings.suppressScrollX&&et.containerWidth+et.settings.scrollXMarginOffset<et.contentWidth?(et.scrollbarXActive=!0,et.railXWidth=et.containerWidth-et.railXMarginWidth,et.railXRatio=et.containerWidth/et.railXWidth,et.scrollbarXWidth=h(et,J(et.railXWidth*et.containerWidth/et.contentWidth)),et.scrollbarXLeft=J((et.negativeScrollAdjustment+Re.scrollLeft)*(et.railXWidth-et.scrollbarXWidth)/(et.contentWidth-et.containerWidth))):et.scrollbarXActive=!1,!et.settings.suppressScrollY&&et.containerHeight+et.settings.scrollYMarginOffset<et.contentHeight?(et.scrollbarYActive=!0,et.railYHeight=et.containerHeight-et.railYMarginHeight,et.railYRatio=et.containerHeight/et.railYHeight,et.scrollbarYHeight=h(et,J(et.railYHeight*et.containerHeight/et.contentHeight)),et.scrollbarYTop=J(qe*(et.railYHeight-et.scrollbarYHeight)/(et.contentHeight-et.containerHeight))):et.scrollbarYActive=!1,et.scrollbarXLeft>=et.railXWidth-et.scrollbarXWidth&&(et.scrollbarXLeft=et.railXWidth-et.scrollbarXWidth),et.scrollbarYTop>=et.railYHeight-et.scrollbarYHeight&&(et.scrollbarYTop=et.railYHeight-et.scrollbarYHeight),function c(et,Re){var qe={width:Re.railXWidth},Ze=Math.floor(et.scrollTop);qe.left=Re.isRtl?Re.negativeScrollAdjustment+et.scrollLeft+Re.containerWidth-Re.contentWidth:et.scrollLeft,Re.isScrollbarXUsingBottom?qe.bottom=Re.scrollbarXBottom-Ze:qe.top=Re.scrollbarXTop+Ze,P(Re.scrollbarXRail,qe);var we={top:Ze,height:Re.railYHeight};Re.isScrollbarYUsingRight?we.right=Re.isRtl?Re.contentWidth-(Re.negativeScrollAdjustment+et.scrollLeft)-Re.scrollbarYRight-Re.scrollbarYOuterWidth-9:Re.scrollbarYRight-et.scrollLeft:we.left=Re.isRtl?Re.negativeScrollAdjustment+et.scrollLeft+2*Re.containerWidth-Re.contentWidth-Re.scrollbarYLeft-Re.scrollbarYOuterWidth:Re.scrollbarYLeft+et.scrollLeft,P(Re.scrollbarYRail,we),P(Re.scrollbarX,{left:Re.scrollbarXLeft,width:Re.scrollbarXWidth-Re.railBorderXWidth}),P(Re.scrollbarY,{top:Re.scrollbarYTop,height:Re.scrollbarYHeight-Re.railBorderYWidth})}(Re,et),et.scrollbarXActive?Re.classList.add(k_state_active("x")):(Re.classList.remove(k_state_active("x")),et.scrollbarXWidth=0,et.scrollbarXLeft=0,Re.scrollLeft=!0===et.isRtl?et.contentWidth:0),et.scrollbarYActive?Re.classList.add(k_state_active("y")):(Re.classList.remove(k_state_active("y")),et.scrollbarYHeight=0,et.scrollbarYTop=0,Re.scrollTop=0)}function h(et,Re){return et.settings.minScrollbarLength&&(Re=Math.max(Re,et.settings.minScrollbarLength)),et.settings.maxScrollbarLength&&(Re=Math.min(Re,et.settings.maxScrollbarLength)),Re}function I(et,Re){var qe=Re[0],Ze=Re[1],we=Re[2],Fe=Re[3],rt=Re[4],at=Re[5],yt=Re[6],mi=Re[7],Xt=Re[8],Jt=et.element,qi=null,ui=null,si=null;function en(Gi){Gi.touches&&Gi.touches[0]&&(Gi[we]=Gi.touches[0].pageY),Jt[yt]=qi+si*(Gi[we]-ui),z(et,mi),r(et),Gi.stopPropagation(),Gi.type.startsWith("touch")&&Gi.changedTouches.length>1&&Gi.preventDefault()}function Ui(){U(et,mi),et[Xt].classList.remove(k_state_clicking),et.event.unbind(et.ownerDocument,"mousemove",en)}function Bi(Gi,ct){qi=Jt[yt],ct&&Gi.touches&&(Gi[we]=Gi.touches[0].pageY),ui=Gi[we],si=(et[Ze]-et[qe])/(et[Fe]-et[at]),ct?et.event.bind(et.ownerDocument,"touchmove",en):(et.event.bind(et.ownerDocument,"mousemove",en),et.event.once(et.ownerDocument,"mouseup",Ui),Gi.preventDefault()),et[Xt].classList.add(k_state_clicking),Gi.stopPropagation()}et.event.bind(et[rt],"mousedown",function(Gi){Bi(Gi)}),et.event.bind(et[rt],"touchstart",function(Gi){Bi(Gi,!0)})}var R={"click-rail":function C(et){et.event.bind(et.scrollbarY,"mousedown",function(qe){return qe.stopPropagation()}),et.event.bind(et.scrollbarYRail,"mousedown",function(qe){var Ze=qe.pageY-window.pageYOffset-et.scrollbarYRail.getBoundingClientRect().top;et.element.scrollTop+=(Ze>et.scrollbarYTop?1:-1)*et.containerHeight,r(et),qe.stopPropagation()}),et.event.bind(et.scrollbarX,"mousedown",function(qe){return qe.stopPropagation()}),et.event.bind(et.scrollbarXRail,"mousedown",function(qe){var Ze=qe.pageX-window.pageXOffset-et.scrollbarXRail.getBoundingClientRect().left;et.element.scrollLeft+=(Ze>et.scrollbarXLeft?1:-1)*et.containerWidth,r(et),qe.stopPropagation()})},"drag-thumb":function S(et){I(et,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),I(et,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function _(et){var Re=et.element;et.event.bind(et.ownerDocument,"keydown",function(Fe){if(!(Fe.isDefaultPrevented&&Fe.isDefaultPrevented()||Fe.defaultPrevented)&&(M(Re,":hover")||M(et.scrollbarX,":focus")||M(et.scrollbarY,":focus"))){var rt=document.activeElement?document.activeElement:et.ownerDocument.activeElement;if(rt){if("IFRAME"===rt.tagName)rt=rt.contentDocument.activeElement;else for(;rt.shadowRoot;)rt=rt.shadowRoot.activeElement;if(function me(et){return M(et,"input,[contenteditable]")||M(et,"select,[contenteditable]")||M(et,"textarea,[contenteditable]")||M(et,"button,[contenteditable]")}(rt))return}var at=0,yt=0;switch(Fe.which){case 37:at=Fe.metaKey?-et.contentWidth:Fe.altKey?-et.containerWidth:-30;break;case 38:yt=Fe.metaKey?et.contentHeight:Fe.altKey?et.containerHeight:30;break;case 39:at=Fe.metaKey?et.contentWidth:Fe.altKey?et.containerWidth:30;break;case 40:yt=Fe.metaKey?-et.contentHeight:Fe.altKey?-et.containerHeight:-30;break;case 32:yt=Fe.shiftKey?et.containerHeight:-et.containerHeight;break;case 33:yt=et.containerHeight;break;case 34:yt=-et.containerHeight;break;case 36:yt=et.contentHeight;break;case 35:yt=-et.contentHeight;break;default:return}et.settings.suppressScrollX&&0!==at||et.settings.suppressScrollY&&0!==yt||(Re.scrollTop-=yt,Re.scrollLeft+=at,r(et),function we(Fe,rt){var at=Math.floor(Re.scrollTop);if(0===Fe){if(!et.scrollbarYActive)return!1;if(0===at&&rt>0||at>=et.contentHeight-et.containerHeight&&rt<0)return!et.settings.wheelPropagation}var yt=Re.scrollLeft;if(0===rt){if(!et.scrollbarXActive)return!1;if(0===yt&&Fe<0||yt>=et.contentWidth-et.containerWidth&&Fe>0)return!et.settings.wheelPropagation}return!0}(at,yt)&&Fe.preventDefault())}})},wheel:function n(et){var Re=et.element;function Fe(rt){var at=function Ze(rt){var at=rt.deltaX,yt=-1*rt.deltaY;return(void 0===at||void 0===yt)&&(at=-1*rt.wheelDeltaX/6,yt=rt.wheelDeltaY/6),rt.deltaMode&&1===rt.deltaMode&&(at*=10,yt*=10),at!=at&&yt!=yt&&(at=0,yt=rt.wheelDelta),rt.shiftKey?[-yt,-at]:[at,yt]}(rt),yt=at[0],mi=at[1];if(!function we(rt,at,yt){if(!t.isWebKit&&Re.querySelector("select:focus"))return!0;if(!Re.contains(rt))return!1;for(var mi=rt;mi&&mi!==Re;){if(mi.classList.contains(k_element_consuming))return!0;var Xt=d(mi);if(yt&&Xt.overflowY.match(/(scroll|auto)/)){var Jt=mi.scrollHeight-mi.clientHeight;if(Jt>0&&(mi.scrollTop>0&&yt<0||mi.scrollTop<Jt&&yt>0))return!0}if(at&&Xt.overflowX.match(/(scroll|auto)/)){var qi=mi.scrollWidth-mi.clientWidth;if(qi>0&&(mi.scrollLeft>0&&at<0||mi.scrollLeft<qi&&at>0))return!0}mi=mi.parentNode}return!1}(rt.target,yt,mi)){var Xt=!1;et.settings.useBothWheelAxes?et.scrollbarYActive&&!et.scrollbarXActive?(mi?Re.scrollTop-=mi*et.settings.wheelSpeed:Re.scrollTop+=yt*et.settings.wheelSpeed,Xt=!0):et.scrollbarXActive&&!et.scrollbarYActive&&(yt?Re.scrollLeft+=yt*et.settings.wheelSpeed:Re.scrollLeft-=mi*et.settings.wheelSpeed,Xt=!0):(Re.scrollTop-=mi*et.settings.wheelSpeed,Re.scrollLeft+=yt*et.settings.wheelSpeed),r(et),Xt=Xt||function qe(rt,at){var yt=Math.floor(Re.scrollTop),mi=0===Re.scrollTop,Xt=yt+Re.offsetHeight===Re.scrollHeight,Jt=0===Re.scrollLeft,qi=Re.scrollLeft+Re.offsetWidth===Re.scrollWidth;return!(Math.abs(at)>Math.abs(rt)?mi||Xt:Jt||qi)||!et.settings.wheelPropagation}(yt,mi),Xt&&!rt.ctrlKey&&(rt.stopPropagation(),rt.preventDefault())}}void 0!==window.onwheel?et.event.bind(Re,"wheel",Fe):void 0!==window.onmousewheel&&et.event.bind(Re,"mousewheel",Fe)},touch:function g(et){if(t.supportsTouch||t.supportsIePointer){var Re=et.element,we={},Fe=0,rt={},at=null;t.supportsTouch?(et.event.bind(Re,"touchstart",Xt),et.event.bind(Re,"touchmove",qi),et.event.bind(Re,"touchend",ui)):t.supportsIePointer&&(window.PointerEvent?(et.event.bind(Re,"pointerdown",Xt),et.event.bind(Re,"pointermove",qi),et.event.bind(Re,"pointerup",ui)):window.MSPointerEvent&&(et.event.bind(Re,"MSPointerDown",Xt),et.event.bind(Re,"MSPointerMove",qi),et.event.bind(Re,"MSPointerUp",ui)))}function Ze(si,en){Re.scrollTop-=en,Re.scrollLeft-=si,r(et)}function yt(si){return si.targetTouches?si.targetTouches[0]:si}function mi(si){return!(si.pointerType&&"pen"===si.pointerType&&0===si.buttons||!(si.targetTouches&&1===si.targetTouches.length||si.pointerType&&"mouse"!==si.pointerType&&si.pointerType!==si.MSPOINTER_TYPE_MOUSE))}function Xt(si){if(mi(si)){var en=yt(si);we.pageX=en.pageX,we.pageY=en.pageY,Fe=(new Date).getTime(),null!==at&&clearInterval(at)}}function qi(si){if(mi(si)){var en=yt(si),Ui={pageX:en.pageX,pageY:en.pageY},Bi=Ui.pageX-we.pageX,Gi=Ui.pageY-we.pageY;if(function Jt(si,en,Ui){if(!Re.contains(si))return!1;for(var Bi=si;Bi&&Bi!==Re;){if(Bi.classList.contains(k_element_consuming))return!0;var Gi=d(Bi);if(Ui&&Gi.overflowY.match(/(scroll|auto)/)){var ct=Bi.scrollHeight-Bi.clientHeight;if(ct>0&&(Bi.scrollTop>0&&Ui<0||Bi.scrollTop<ct&&Ui>0))return!0}if(en&&Gi.overflowX.match(/(scroll|auto)/)){var Ft=Bi.scrollWidth-Bi.clientWidth;if(Ft>0&&(Bi.scrollLeft>0&&en<0||Bi.scrollLeft<Ft&&en>0))return!0}Bi=Bi.parentNode}return!1}(si.target,Bi,Gi))return;Ze(Bi,Gi),we=Ui;var ct=(new Date).getTime(),Ft=ct-Fe;Ft>0&&(rt.x=Bi/Ft,rt.y=Gi/Ft,Fe=ct),function qe(si,en){var Ui=Math.floor(Re.scrollTop),Bi=Re.scrollLeft,Gi=Math.abs(si),ct=Math.abs(en);if(ct>Gi){if(en<0&&Ui===et.contentHeight-et.containerHeight||en>0&&0===Ui)return 0===window.scrollY&&en>0&&t.isChrome}else if(Gi>ct&&(si<0&&Bi===et.contentWidth-et.containerWidth||si>0&&0===Bi))return!0;return!0}(Bi,Gi)&&si.preventDefault()}}function ui(){et.settings.swipeEasing&&(clearInterval(at),at=setInterval(function(){et.isInitialized?clearInterval(at):rt.x||rt.y?Math.abs(rt.x)<.01&&Math.abs(rt.y)<.01?clearInterval(at):et.element?(Ze(30*rt.x,30*rt.y),rt.x*=.8,rt.y*=.8):clearInterval(at):clearInterval(at)},10))}}},H=function(Re,qe){var Ze=this;if(void 0===qe&&(qe={}),"string"==typeof Re&&(Re=document.querySelector(Re)),!Re||!Re.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var we in this.element=Re,Re.classList.add("ps"),this.settings={handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1},qe)this.settings[we]=qe[we];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var Xt,mi,Fe=function(){return Re.classList.add(k_state_focus)},rt=function(){return Re.classList.remove(k_state_focus)};this.isRtl="rtl"===d(Re).direction,!0===this.isRtl&&Re.classList.add("ps__rtl"),this.isNegativeScroll=(mi=Re.scrollLeft,Re.scrollLeft=-1,Xt=Re.scrollLeft<0,Re.scrollLeft=mi,Xt),this.negativeScrollAdjustment=this.isNegativeScroll?Re.scrollWidth-Re.clientWidth:0,this.event=new le,this.ownerDocument=Re.ownerDocument||document,this.scrollbarXRail=D(k_element_rail("x")),Re.appendChild(this.scrollbarXRail),this.scrollbarX=D(k_element_thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",Fe),this.event.bind(this.scrollbarX,"blur",rt),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var at=d(this.scrollbarXRail);this.scrollbarXBottom=parseInt(at.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=J(at.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=J(at.borderLeftWidth)+J(at.borderRightWidth),P(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=J(at.marginLeft)+J(at.marginRight),P(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=D(k_element_rail("y")),Re.appendChild(this.scrollbarYRail),this.scrollbarY=D(k_element_thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",Fe),this.event.bind(this.scrollbarY,"blur",rt),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var yt=d(this.scrollbarYRail);this.scrollbarYRight=parseInt(yt.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=J(yt.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function x(et){var Re=d(et);return J(Re.width)+J(Re.paddingLeft)+J(Re.paddingRight)+J(Re.borderLeftWidth)+J(Re.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=J(yt.borderTopWidth)+J(yt.borderBottomWidth),P(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=J(yt.marginTop)+J(yt.marginBottom),P(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:Re.scrollLeft<=0?"start":Re.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:Re.scrollTop<=0?"start":Re.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(mi){return R[mi](Ze)}),this.lastScrollTop=Math.floor(Re.scrollTop),this.lastScrollLeft=Re.scrollLeft,this.event.bind(this.element,"scroll",function(mi){return Ze.onScroll(mi)}),r(this)};H.prototype.update=function(){!this.isAlive||(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,P(this.scrollbarXRail,{display:"block"}),P(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=J(d(this.scrollbarXRail).marginLeft)+J(d(this.scrollbarXRail).marginRight),this.railYMarginHeight=J(d(this.scrollbarYRail).marginTop)+J(d(this.scrollbarYRail).marginBottom),P(this.scrollbarXRail,{display:"none"}),P(this.scrollbarYRail,{display:"none"}),r(this),ie(this,"top",0,!1,!0),ie(this,"left",0,!1,!0),P(this.scrollbarXRail,{display:""}),P(this.scrollbarYRail,{display:""}))},H.prototype.onScroll=function(Re){!this.isAlive||(r(this),ie(this,"top",this.element.scrollTop-this.lastScrollTop),ie(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},H.prototype.destroy=function(){!this.isAlive||(this.event.unbindAll(),A(this.scrollbarX),A(this.scrollbarY),A(this.scrollbarXRail),A(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},H.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(Re){return!Re.match(/^ps([-_].+|)$/)}).join(" ")};const $=H;var fe=function(){if("undefined"!=typeof Map)return Map;function et(Re,qe){var Ze=-1;return Re.some(function(we,Fe){return we[0]===qe&&(Ze=Fe,!0)}),Ze}return function(){function Re(){this.__entries__=[]}return Object.defineProperty(Re.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),Re.prototype.get=function(qe){var Ze=et(this.__entries__,qe),we=this.__entries__[Ze];return we&&we[1]},Re.prototype.set=function(qe,Ze){var we=et(this.__entries__,qe);~we?this.__entries__[we][1]=Ze:this.__entries__.push([qe,Ze])},Re.prototype.delete=function(qe){var Ze=this.__entries__,we=et(Ze,qe);~we&&Ze.splice(we,1)},Re.prototype.has=function(qe){return!!~et(this.__entries__,qe)},Re.prototype.clear=function(){this.__entries__.splice(0)},Re.prototype.forEach=function(qe,Ze){void 0===Ze&&(Ze=null);for(var we=0,Fe=this.__entries__;we<Fe.length;we++){var rt=Fe[we];qe.call(Ze,rt[1],rt[0])}},Re}()}(),ye="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,ke="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),Ee="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(ke):function(et){return setTimeout(function(){return et(Date.now())},1e3/60)},Z=["top","right","bottom","left","width","height","size","weight"],Y="undefined"!=typeof MutationObserver,ot=function(){function et(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function ze(et,Re){var qe=!1,Ze=!1,we=0;function Fe(){qe&&(qe=!1,et()),Ze&&at()}function rt(){Ee(Fe)}function at(){var yt=Date.now();if(qe){if(yt-we<2)return;Ze=!0}else qe=!0,Ze=!1,setTimeout(rt,Re);we=yt}return at}(this.refresh.bind(this),20)}return et.prototype.addObserver=function(Re){~this.observers_.indexOf(Re)||this.observers_.push(Re),this.connected_||this.connect_()},et.prototype.removeObserver=function(Re){var qe=this.observers_,Ze=qe.indexOf(Re);~Ze&&qe.splice(Ze,1),!qe.length&&this.connected_&&this.disconnect_()},et.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},et.prototype.updateObservers_=function(){var Re=this.observers_.filter(function(qe){return qe.gatherActive(),qe.hasActive()});return Re.forEach(function(qe){return qe.broadcastActive()}),Re.length>0},et.prototype.connect_=function(){!ye||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Y?(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)},et.prototype.disconnect_=function(){!ye||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},et.prototype.onTransitionEnd_=function(Re){var qe=Re.propertyName,Ze=void 0===qe?"":qe;Z.some(function(Fe){return!!~Ze.indexOf(Fe)})&&this.refresh()},et.getInstance=function(){return this.instance_||(this.instance_=new et),this.instance_},et.instance_=null,et}(),Ie=function(et,Re){for(var qe=0,Ze=Object.keys(Re);qe<Ze.length;qe++){var we=Ze[qe];Object.defineProperty(et,we,{value:Re[we],enumerable:!1,writable:!1,configurable:!0})}return et},Ae=function(et){return et&&et.ownerDocument&&et.ownerDocument.defaultView||ke},ce=Tt(0,0,0,0);function Te(et){return parseFloat(et)||0}function xe(et){for(var Re=[],qe=1;qe<arguments.length;qe++)Re[qe-1]=arguments[qe];return Re.reduce(function(Ze,we){return Ze+Te(et["border-"+we+"-width"])},0)}var ve="undefined"!=typeof SVGGraphicsElement?function(et){return et instanceof Ae(et).SVGGraphicsElement}:function(et){return et instanceof Ae(et).SVGElement&&"function"==typeof et.getBBox};function lt(et){return ye?ve(et)?function ee(et){var Re=et.getBBox();return Tt(0,0,Re.width,Re.height)}(et):function ue(et){var Re=et.clientWidth,qe=et.clientHeight;if(!Re&&!qe)return ce;var Ze=Ae(et).getComputedStyle(et),we=function G(et){for(var qe={},Ze=0,we=["top","right","bottom","left"];Ze<we.length;Ze++){var Fe=we[Ze];qe[Fe]=Te(et["padding-"+Fe])}return qe}(Ze),Fe=we.left+we.right,rt=we.top+we.bottom,at=Te(Ze.width),yt=Te(Ze.height);if("border-box"===Ze.boxSizing&&(Math.round(at+Fe)!==Re&&(at-=xe(Ze,"left","right")+Fe),Math.round(yt+rt)!==qe&&(yt-=xe(Ze,"top","bottom")+rt)),!function Le(et){return et===Ae(et).document.documentElement}(et)){var mi=Math.round(at+Fe)-Re,Xt=Math.round(yt+rt)-qe;1!==Math.abs(mi)&&(at-=mi),1!==Math.abs(Xt)&&(yt-=Xt)}return Tt(we.left,we.top,at,yt)}(et):ce}function Tt(et,Re,qe,Ze){return{x:et,y:Re,width:qe,height:Ze}}var hi=function(){function et(Re){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Tt(0,0,0,0),this.target=Re}return et.prototype.isActive=function(){var Re=lt(this.target);return this.contentRect_=Re,Re.width!==this.broadcastWidth||Re.height!==this.broadcastHeight},et.prototype.broadcastRect=function(){var Re=this.contentRect_;return this.broadcastWidth=Re.width,this.broadcastHeight=Re.height,Re},et}(),jt=function et(Re,qe){var Ze=function ht(et){var Re=et.x,qe=et.y,Ze=et.width,we=et.height,Fe="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,rt=Object.create(Fe.prototype);return Ie(rt,{x:Re,y:qe,width:Ze,height:we,top:qe,right:Re+Ze,bottom:we+qe,left:Re}),rt}(qe);Ie(this,{target:Re,contentRect:Ze})},Gt=function(){function et(Re,qe,Ze){if(this.activeObservations_=[],this.observations_=new fe,"function"!=typeof Re)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=Re,this.controller_=qe,this.callbackCtx_=Ze}return et.prototype.observe=function(Re){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(Re instanceof Ae(Re).Element))throw new TypeError('parameter 1 is not of type "Element".');var qe=this.observations_;qe.has(Re)||(qe.set(Re,new hi(Re)),this.controller_.addObserver(this),this.controller_.refresh())}},et.prototype.unobserve=function(Re){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(Re instanceof Ae(Re).Element))throw new TypeError('parameter 1 is not of type "Element".');var qe=this.observations_;!qe.has(Re)||(qe.delete(Re),qe.size||this.controller_.removeObserver(this))}},et.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},et.prototype.gatherActive=function(){var Re=this;this.clearActive(),this.observations_.forEach(function(qe){qe.isActive()&&Re.activeObservations_.push(qe)})},et.prototype.broadcastActive=function(){if(this.hasActive()){var Re=this.callbackCtx_,qe=this.activeObservations_.map(function(Ze){return new jt(Ze.target,Ze.broadcastRect())});this.callback_.call(Re,qe,Re),this.clearActive()}},et.prototype.clearActive=function(){this.activeObservations_.splice(0)},et.prototype.hasActive=function(){return this.activeObservations_.length>0},et}(),di="undefined"!=typeof WeakMap?new WeakMap:new fe,vt=function et(Re){if(!(this instanceof et))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var qe=ot.getInstance(),Ze=new Gt(Re,qe,this);di.set(this,Ze)};["observe","unobserve","disconnect"].forEach(function(et){vt.prototype[et]=function(){var Re;return(Re=di.get(this))[et].apply(Re,arguments)}});const gt=void 0!==ke.ResizeObserver?ke.ResizeObserver:vt,ei=new a.OlP("PERFECT_SCROLLBAR_CONFIG");class Zt{constructor(Re,qe,Ze,we){this.x=Re,this.y=qe,this.w=Ze,this.h=we}}class Pe{constructor(Re,qe){this.x=Re,this.y=qe}}const De=["psScrollY","psScrollX","psScrollUp","psScrollDown","psScrollLeft","psScrollRight","psYReachEnd","psYReachStart","psXReachEnd","psXReachStart"];class oe{constructor(Re={}){this.assign(Re)}assign(Re={}){for(const qe in Re)this[qe]=Re[qe]}}let Me=(()=>{class et{constructor(qe,Ze,we,Fe,rt){this.zone=qe,this.differs=Ze,this.elementRef=we,this.platformId=Fe,this.defaults=rt,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 a.vpe,this.psScrollX=new a.vpe,this.psScrollUp=new a.vpe,this.psScrollDown=new a.vpe,this.psScrollLeft=new a.vpe,this.psScrollRight=new a.vpe,this.psYReachEnd=new a.vpe,this.psYReachStart=new a.vpe,this.psXReachEnd=new a.vpe,this.psXReachStart=new a.vpe}ngOnInit(){if(!this.disabled&&(0,y.NF)(this.platformId)){const qe=new oe(this.defaults);qe.assign(this.config),this.zone.runOutsideAngular(()=>{this.instance=new $(this.elementRef.nativeElement,qe)}),this.configDiff||(this.configDiff=this.differs.find(this.config||{}).create(),this.configDiff.diff(this.config||{})),this.zone.runOutsideAngular(()=>{this.ro=new gt(()=>{this.update()}),this.elementRef.nativeElement.children[0]&&this.ro.observe(this.elementRef.nativeElement.children[0]),this.ro.observe(this.elementRef.nativeElement)}),this.zone.runOutsideAngular(()=>{De.forEach(Ze=>{const we=Ze.replace(/([A-Z])/g,Fe=>`-${Fe.toLowerCase()}`);(0,i.R)(this.elementRef.nativeElement,we).pipe((0,u.e)(20),(0,b.R)(this.ngDestroy)).subscribe(Fe=>{this[Ze].emit(Fe)})})})}}ngOnDestroy(){(0,y.NF)(this.platformId)&&(this.ngDestroy.next(),this.ngDestroy.complete(),this.ro&&this.ro.disconnect(),this.timeout&&"undefined"!=typeof window&&window.clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.instance&&this.instance.destroy()}),this.instance=null)}ngDoCheck(){!this.disabled&&this.configDiff&&(0,y.NF)(this.platformId)&&this.configDiff.diff(this.config||{})&&(this.ngOnDestroy(),this.ngOnInit())}ngOnChanges(qe){qe.disabled&&!qe.disabled.isFirstChange()&&(0,y.NF)(this.platformId)&&qe.disabled.currentValue!==qe.disabled.previousValue&&(!0===qe.disabled.currentValue?this.ngOnDestroy():!1===qe.disabled.currentValue&&this.ngOnInit())}ps(){return this.instance}update(){"undefined"!=typeof window&&(this.timeout&&window.clearTimeout(this.timeout),this.timeout=window.setTimeout(()=>{if(!this.disabled&&this.configDiff)try{this.zone.runOutsideAngular(()=>{this.instance&&this.instance.update()})}catch(qe){}},0))}geometry(qe="scroll"){return new Zt(this.elementRef.nativeElement[qe+"Left"],this.elementRef.nativeElement[qe+"Top"],this.elementRef.nativeElement[qe+"Width"],this.elementRef.nativeElement[qe+"Height"])}position(qe=!1){return!qe&&this.instance?new Pe(this.instance.reach.x||0,this.instance.reach.y||0):new Pe(this.elementRef.nativeElement.scrollLeft,this.elementRef.nativeElement.scrollTop)}scrollable(qe="any"){const Ze=this.elementRef.nativeElement;return"any"===qe?Ze.classList.contains("ps--active-x")||Ze.classList.contains("ps--active-y"):"both"===qe?Ze.classList.contains("ps--active-x")&&Ze.classList.contains("ps--active-y"):Ze.classList.contains("ps--active-"+qe)}scrollTo(qe,Ze,we){this.disabled||(null==Ze&&null==we?this.animateScrolling("scrollTop",qe,we):(null!=qe&&this.animateScrolling("scrollLeft",qe,we),null!=Ze&&this.animateScrolling("scrollTop",Ze,we)))}scrollToX(qe,Ze){this.animateScrolling("scrollLeft",qe,Ze)}scrollToY(qe,Ze){this.animateScrolling("scrollTop",qe,Ze)}scrollToTop(qe,Ze){this.animateScrolling("scrollTop",qe||0,Ze)}scrollToLeft(qe,Ze){this.animateScrolling("scrollLeft",qe||0,Ze)}scrollToRight(qe,Ze){this.animateScrolling("scrollLeft",this.elementRef.nativeElement.scrollWidth-this.elementRef.nativeElement.clientWidth-(qe||0),Ze)}scrollToBottom(qe,Ze){this.animateScrolling("scrollTop",this.elementRef.nativeElement.scrollHeight-this.elementRef.nativeElement.clientHeight-(qe||0),Ze)}scrollToElement(qe,Ze,we){if("string"==typeof qe&&(qe=this.elementRef.nativeElement.querySelector(qe)),qe){const Fe=qe.getBoundingClientRect(),rt=this.elementRef.nativeElement.getBoundingClientRect();this.elementRef.nativeElement.classList.contains("ps--active-x")&&this.animateScrolling("scrollLeft",Fe.left-rt.left+this.elementRef.nativeElement.scrollLeft+(Ze||0),we),this.elementRef.nativeElement.classList.contains("ps--active-y")&&this.animateScrolling("scrollTop",Fe.top-rt.top+this.elementRef.nativeElement.scrollTop+(Ze||0),we)}}animateScrolling(qe,Ze,we){if(this.animation&&(window.cancelAnimationFrame(this.animation),this.animation=null),we&&"undefined"!=typeof window){if(Ze!==this.elementRef.nativeElement[qe]){let Fe=0,rt=0,at=performance.now(),yt=this.elementRef.nativeElement[qe];const mi=(yt-Ze)/2,Xt=Jt=>{rt+=Math.PI/(we/(Jt-at)),Fe=Math.round(Ze+mi+mi*Math.cos(rt)),this.elementRef.nativeElement[qe]===yt&&(rt>=Math.PI?this.animateScrolling(qe,Ze,0):(this.elementRef.nativeElement[qe]=Fe,yt=this.elementRef.nativeElement[qe],at=Jt,this.animation=window.requestAnimationFrame(Xt)))};window.requestAnimationFrame(Xt)}}else this.elementRef.nativeElement[qe]=Ze}}return et.\u0275fac=function(qe){return new(qe||et)(a.Y36(a.R0b),a.Y36(a.aQg),a.Y36(a.SBq),a.Y36(a.Lbi),a.Y36(ei,8))},et.\u0275dir=a.lG2({type:et,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:[a.TTD]}),et})(),Rt=(()=>{class et{}return et.\u0275fac=function(qe){return new(qe||et)},et.\u0275mod=a.oAB({type:et}),et.\u0275inj=a.cJS({imports:[[y.ez],y.ez]}),et})()},4946:He=>{"use strict";He.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:He=>{"use strict";He.exports=JSON.parse('{"sha224WithRSAEncryption":{"sign":"rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"RSA-SHA224":{"sign":"ecdsa/rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"sha256WithRSAEncryption":{"sign":"rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"RSA-SHA256":{"sign":"ecdsa/rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"sha384WithRSAEncryption":{"sign":"rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"RSA-SHA384":{"sign":"ecdsa/rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"sha512WithRSAEncryption":{"sign":"rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA512":{"sign":"ecdsa/rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA1":{"sign":"rsa","hash":"sha1","id":"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{"sign":"ecdsa","hash":"sha1","id":""},"sha256":{"sign":"ecdsa","hash":"sha256","id":""},"sha224":{"sign":"ecdsa","hash":"sha224","id":""},"sha384":{"sign":"ecdsa","hash":"sha384","id":""},"sha512":{"sign":"ecdsa","hash":"sha512","id":""},"DSA-SHA":{"sign":"dsa","hash":"sha1","id":""},"DSA-SHA1":{"sign":"dsa","hash":"sha1","id":""},"DSA":{"sign":"dsa","hash":"sha1","id":""},"DSA-WITH-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-WITH-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-WITH-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-WITH-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-RIPEMD160":{"sign":"dsa","hash":"rmd160","id":""},"ripemd160WithRSA":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"RSA-RIPEMD160":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"md5WithRSAEncryption":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"},"RSA-MD5":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"}}')},1308:He=>{"use strict";He.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:He=>{"use strict";He.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:He=>{"use strict";He.exports={i8:"6.5.4"}},2562:He=>{"use strict";He.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"}')}},He=>{He(He.s=5901)}]);