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

1 line
2.7 MiB

var M5=Object.defineProperty,w5=Object.defineProperties,A5=Object.getOwnPropertyDescriptors,m8=Object.getOwnPropertySymbols,E5=Object.prototype.hasOwnProperty,T5=Object.prototype.propertyIsEnumerable,g8=(Ve,Q,m)=>Q in Ve?M5(Ve,Q,{enumerable:!0,configurable:!0,writable:!0,value:m}):Ve[Q]=m,to=(Ve,Q)=>{for(var m in Q||(Q={}))E5.call(Q,m)&&g8(Ve,m,Q[m]);if(m8)for(var m of m8(Q))T5.call(Q,m)&&g8(Ve,m,Q[m]);return Ve},_8=(Ve,Q)=>w5(Ve,A5(Q));(self.webpackChunkRTLApp=self.webpackChunkRTLApp||[]).push([[179],{801:(Ve,Q,m)=>{"use strict";m.d(Q,{Sbq:()=>w,Vfw:()=>W,N2j:()=>ae,DL8:()=>$,BDt:()=>at,Acd:()=>gt,koM:()=>Vr,OS1:()=>pr,dT$:()=>Qt,mh3:()=>Xt,b7W:()=>Ti,kZ_:()=>wr,q7m:()=>ii,FlN:()=>ao,KOR:()=>Ea,Ssp:()=>bo,eHv:()=>Yr,Mdf:()=>a1,Aq:()=>aa,qO$:()=>kh,vqe:()=>os,sqG:()=>C1,Krp:()=>pl,uli:()=>z0,nNP:()=>E1,byT:()=>Z0,SuH:()=>I1,co4:()=>X0,aj4:()=>kc,kXW:()=>Ja,XsY:()=>vl,USL:()=>Fc,r8p:()=>bd,o4t:()=>Td,Psp:()=>Y1,dLy:()=>_2,FpQ:()=>x2,wn1:()=>vr,xf3:()=>Ud,HLz:()=>J1,NBC:()=>Z2,CgH:()=>$a,B$L:()=>qr,hkK:()=>$2,hnx:()=>ku,gNZ:()=>jc,FJU:()=>s0,FVb:()=>qc,X5K:()=>nh,wyP:()=>sh});var w={prefix:"fas",iconName:"angle-double-down",icon:[320,512,[],"f103","M143 256.3L7 120.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0L313 86.3c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.4 9.5-24.6 9.5-34 .1zm34 192l136-136c9.4-9.4 9.4-24.6 0-33.9l-22.6-22.6c-9.4-9.4-24.6-9.4-33.9 0L160 352.1l-96.4-96.4c-9.4-9.4-24.6-9.4-33.9 0L7 278.3c-9.4 9.4-9.4 24.6 0 33.9l136 136c9.4 9.5 24.6 9.5 34 .1z"]},W={prefix:"fas",iconName:"angle-double-up",icon:[320,512,[],"f102","M177 255.7l136 136c9.4 9.4 9.4 24.6 0 33.9l-22.6 22.6c-9.4 9.4-24.6 9.4-33.9 0L160 351.9l-96.4 96.4c-9.4 9.4-24.6 9.4-33.9 0L7 425.7c-9.4-9.4-9.4-24.6 0-33.9l136-136c9.4-9.5 24.6-9.5 34-.1zm-34-192L7 199.7c-9.4 9.4-9.4 24.6 0 33.9l22.6 22.6c9.4 9.4 24.6 9.4 33.9 0l96.4-96.4 96.4 96.4c9.4 9.4 24.6 9.4 33.9 0l22.6-22.6c9.4-9.4 9.4-24.6 0-33.9l-136-136c-9.2-9.4-24.4-9.4-33.8 0z"]},ae={prefix:"fas",iconName:"archive",icon:[512,512,[],"f187","M32 448c0 17.7 14.3 32 32 32h384c17.7 0 32-14.3 32-32V160H32v288zm160-212c0-6.6 5.4-12 12-12h104c6.6 0 12 5.4 12 12v8c0 6.6-5.4 12-12 12H204c-6.6 0-12-5.4-12-12v-8zM480 32H32C14.3 32 0 46.3 0 64v48c0 8.8 7.2 16 16 16h480c8.8 0 16-7.2 16-16V64c0-17.7-14.3-32-32-32z"]},$={prefix:"fas",iconName:"balance-scale",icon:[640,512,[],"f24e","M256 336h-.02c0-16.18 1.34-8.73-85.05-181.51-17.65-35.29-68.19-35.36-85.87 0C-2.06 328.75.02 320.33.02 336H0c0 44.18 57.31 80 128 80s128-35.82 128-80zM128 176l72 144H56l72-144zm511.98 160c0-16.18 1.34-8.73-85.05-181.51-17.65-35.29-68.19-35.36-85.87 0-87.12 174.26-85.04 165.84-85.04 181.51H384c0 44.18 57.31 80 128 80s128-35.82 128-80h-.02zM440 320l72-144 72 144H440zm88 128H352V153.25c23.51-10.29 41.16-31.48 46.39-57.25H528c8.84 0 16-7.16 16-16V48c0-8.84-7.16-16-16-16H383.64C369.04 12.68 346.09 0 320 0s-49.04 12.68-63.64 32H112c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h129.61c5.23 25.76 22.87 46.96 46.39 57.25V448H112c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h416c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z"]},at={prefix:"fas",iconName:"bolt",icon:[320,512,[],"f0e7","M296 160H180.6l42.6-129.8C227.2 15 215.7 0 200 0H56C44 0 33.8 8.9 32.2 20.8l-32 240C-1.7 275.2 9.5 288 24 288h118.7L96.6 482.5c-3.6 15.2 8 29.5 23.3 29.5 8.4 0 16.4-4.4 20.8-12l176-304c9.3-15.9-2.2-36-20.7-36z"]},gt={prefix:"fas",iconName:"bullhorn",icon:[576,512,[],"f0a1","M576 240c0-23.63-12.95-44.04-32-55.12V32.01C544 23.26 537.02 0 512 0c-7.12 0-14.19 2.38-19.98 7.02l-85.03 68.03C364.28 109.19 310.66 128 256 128H64c-35.35 0-64 28.65-64 64v96c0 35.35 28.65 64 64 64h33.7c-1.39 10.48-2.18 21.14-2.18 32 0 39.77 9.26 77.35 25.56 110.94 5.19 10.69 16.52 17.06 28.4 17.06h74.28c26.05 0 41.69-29.84 25.9-50.56-16.4-21.52-26.15-48.36-26.15-77.44 0-11.11 1.62-21.79 4.41-32H256c54.66 0 108.28 18.81 150.98 52.95l85.03 68.03a32.023 32.023 0 0 0 19.98 7.02c24.92 0 32-22.78 32-32V295.13C563.05 284.04 576 263.63 576 240zm-96 141.42l-33.05-26.44C392.95 311.78 325.12 288 256 288v-96c69.12 0 136.95-23.78 190.95-66.98L480 98.58v282.84z"]},Vr={prefix:"fas",iconName:"chart-bar",icon:[512,512,[],"f080","M332.8 320h38.4c6.4 0 12.8-6.4 12.8-12.8V172.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h38.4c6.4 0 12.8-6.4 12.8-12.8V76.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-288 0h38.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h38.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zM496 384H64V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z"]},pr={prefix:"fas",iconName:"chart-pie",icon:[544,512,[],"f200","M527.79 288H290.5l158.03 158.03c6.04 6.04 15.98 6.53 22.19.68 38.7-36.46 65.32-85.61 73.13-140.86 1.34-9.46-6.51-17.85-16.06-17.85zm-15.83-64.8C503.72 103.74 408.26 8.28 288.8.04 279.68-.59 272 7.1 272 16.24V240h223.77c9.14 0 16.82-7.68 16.19-16.8zM224 288V50.71c0-9.55-8.39-17.4-17.84-16.06C86.99 51.49-4.1 155.6.14 280.37 4.5 408.51 114.83 513.59 243.03 511.98c50.4-.63 96.97-16.87 135.26-44.03 7.9-5.6 8.42-17.23 1.57-24.08L224 288z"]},Qt={prefix:"fas",iconName:"code",icon:[640,512,[],"f121","M278.9 511.5l-61-17.7c-6.4-1.8-10-8.5-8.2-14.9L346.2 8.7c1.8-6.4 8.5-10 14.9-8.2l61 17.7c6.4 1.8 10 8.5 8.2 14.9L293.8 503.3c-1.9 6.4-8.5 10.1-14.9 8.2zm-114-112.2l43.5-46.4c4.6-4.9 4.3-12.7-.8-17.2L117 256l90.6-79.7c5.1-4.5 5.5-12.3.8-17.2l-43.5-46.4c-4.5-4.8-12.1-5.1-17-.5L3.8 247.2c-5.1 4.7-5.1 12.8 0 17.5l144.1 135.1c4.9 4.6 12.5 4.4 17-.5zm327.2.6l144.1-135.1c5.1-4.7 5.1-12.8 0-17.5L492.1 112.1c-4.8-4.5-12.4-4.3-17 .5L431.6 159c-4.6 4.9-4.3 12.7.8 17.2L523 256l-90.6 79.7c-5.1 4.5-5.5 12.3-.8 17.2l43.5 46.4c4.5 4.9 12.1 5.1 17 .6z"]},Xt={prefix:"fas",iconName:"code-branch",icon:[384,512,[],"f126","M384 144c0-44.2-35.8-80-80-80s-80 35.8-80 80c0 36.4 24.3 67.1 57.5 76.8-.6 16.1-4.2 28.5-11 36.9-15.4 19.2-49.3 22.4-85.2 25.7-28.2 2.6-57.4 5.4-81.3 16.9v-144c32.5-10.2 56-40.5 56-76.3 0-44.2-35.8-80-80-80S0 35.8 0 80c0 35.8 23.5 66.1 56 76.3v199.3C23.5 365.9 0 396.2 0 432c0 44.2 35.8 80 80 80s80-35.8 80-80c0-34-21.2-63.1-51.2-74.6 3.1-5.2 7.8-9.8 14.9-13.4 16.2-8.2 40.4-10.4 66.1-12.8 42.2-3.9 90-8.4 118.2-43.4 14-17.4 21.1-39.8 21.6-67.9 31.6-10.8 54.4-40.7 54.4-75.9zM80 64c8.8 0 16 7.2 16 16s-7.2 16-16 16-16-7.2-16-16 7.2-16 16-16zm0 384c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm224-320c8.8 0 16 7.2 16 16s-7.2 16-16 16-16-7.2-16-16 7.2-16 16-16z"]},Ti={prefix:"fas",iconName:"cog",icon:[512,512,[],"f013","M487.4 315.7l-42.6-24.6c4.3-23.2 4.3-47 0-70.2l42.6-24.6c4.9-2.8 7.1-8.6 5.5-14-11.1-35.6-30-67.8-54.7-94.6-3.8-4.1-10-5.1-14.8-2.3L380.8 110c-17.9-15.4-38.5-27.3-60.8-35.1V25.8c0-5.6-3.9-10.5-9.4-11.7-36.7-8.2-74.3-7.8-109.2 0-5.5 1.2-9.4 6.1-9.4 11.7V75c-22.2 7.9-42.8 19.8-60.8 35.1L88.7 85.5c-4.9-2.8-11-1.9-14.8 2.3-24.7 26.7-43.6 58.9-54.7 94.6-1.7 5.4.6 11.2 5.5 14L67.3 221c-4.3 23.2-4.3 47 0 70.2l-42.6 24.6c-4.9 2.8-7.1 8.6-5.5 14 11.1 35.6 30 67.8 54.7 94.6 3.8 4.1 10 5.1 14.8 2.3l42.6-24.6c17.9 15.4 38.5 27.3 60.8 35.1v49.2c0 5.6 3.9 10.5 9.4 11.7 36.7 8.2 74.3 7.8 109.2 0 5.5-1.2 9.4-6.1 9.4-11.7v-49.2c22.2-7.9 42.8-19.8 60.8-35.1l42.6 24.6c4.9 2.8 11 1.9 14.8-2.3 24.7-26.7 43.6-58.9 54.7-94.6 1.5-5.5-.7-11.3-5.6-14.1zM256 336c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"]},wr={prefix:"fas",iconName:"copy",icon:[448,512,[],"f0c5","M320 448v40c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24V120c0-13.255 10.745-24 24-24h72v296c0 30.879 25.121 56 56 56h168zm0-344V0H152c-13.255 0-24 10.745-24 24v368c0 13.255 10.745 24 24 24h272c13.255 0 24-10.745 24-24V128H344c-13.2 0-24-10.8-24-24zm120.971-31.029L375.029 7.029A24 24 0 0 0 358.059 0H352v96h96v-6.059a24 24 0 0 0-7.029-16.97z"]},ii={prefix:"fas",iconName:"download",icon:[512,512,[],"f019","M216 0h80c13.3 0 24 10.7 24 24v168h87.7c17.8 0 26.7 21.5 14.1 34.1L269.7 378.3c-7.5 7.5-19.8 7.5-27.3 0L90.1 226.1c-12.6-12.6-3.7-34.1 14.1-34.1H192V24c0-13.3 10.7-24 24-24zm296 376v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h146.7l49 49c20.1 20.1 52.5 20.1 72.6 0l49-49H488c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z"]},ao={prefix:"fas",iconName:"dumbbell",icon:[640,512,[],"f44b","M104 96H56c-13.3 0-24 10.7-24 24v104H8c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h24v104c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24V120c0-13.3-10.7-24-24-24zm528 128h-24V120c0-13.3-10.7-24-24-24h-48c-13.3 0-24 10.7-24 24v272c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24V288h24c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM456 32h-48c-13.3 0-24 10.7-24 24v168H256V56c0-13.3-10.7-24-24-24h-48c-13.3 0-24 10.7-24 24v400c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24V288h128v168c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24z"]},Ea={prefix:"fas",iconName:"eject",icon:[448,512,[],"f052","M448 384v64c0 17.673-14.327 32-32 32H32c-17.673 0-32-14.327-32-32v-64c0-17.673 14.327-32 32-32h384c17.673 0 32 14.327 32 32zM48.053 320h351.886c41.651 0 63.581-49.674 35.383-80.435L259.383 47.558c-19.014-20.743-51.751-20.744-70.767 0L12.67 239.565C-15.475 270.268 6.324 320 48.053 320z"]},bo={prefix:"fas",iconName:"exchange-alt",icon:[512,512,[],"f362","M0 168v-16c0-13.255 10.745-24 24-24h360V80c0-21.367 25.899-32.042 40.971-16.971l80 80c9.372 9.373 9.372 24.569 0 33.941l-80 80C409.956 271.982 384 261.456 384 240v-48H24c-13.255 0-24-10.745-24-24zm488 152H128v-48c0-21.314-25.862-32.08-40.971-16.971l-80 80c-9.372 9.373-9.372 24.569 0 33.941l80 80C102.057 463.997 128 453.437 128 432v-48h360c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24z"]},Yr={prefix:"fas",iconName:"exclamation-triangle",icon:[576,512,[],"f071","M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"]},a1={prefix:"fas",iconName:"eye",icon:[576,512,[],"f06e","M572.52 241.4C518.29 135.59 410.93 64 288 64S57.68 135.64 3.48 241.41a32.35 32.35 0 0 0 0 29.19C57.71 376.41 165.07 448 288 448s230.32-71.64 284.52-177.41a32.35 32.35 0 0 0 0-29.19zM288 400a144 144 0 1 1 144-144 143.93 143.93 0 0 1-144 144zm0-240a95.31 95.31 0 0 0-25.31 3.79 47.85 47.85 0 0 1-66.9 66.9A95.78 95.78 0 1 0 288 160z"]},aa={prefix:"fas",iconName:"eye-slash",icon:[640,512,[],"f070","M320 400c-75.85 0-137.25-58.71-142.9-133.11L72.2 185.82c-13.79 17.3-26.48 35.59-36.72 55.59a32.35 32.35 0 0 0 0 29.19C89.71 376.41 197.07 448 320 448c26.91 0 52.87-4 77.89-10.46L346 397.39a144.13 144.13 0 0 1-26 2.61zm313.82 58.1l-110.55-85.44a331.25 331.25 0 0 0 81.25-102.07 32.35 32.35 0 0 0 0-29.19C550.29 135.59 442.93 64 320 64a308.15 308.15 0 0 0-147.32 37.7L45.46 3.37A16 16 0 0 0 23 6.18L3.37 31.45A16 16 0 0 0 6.18 53.9l588.36 454.73a16 16 0 0 0 22.46-2.81l19.64-25.27a16 16 0 0 0-2.82-22.45zm-183.72-142l-39.3-30.38A94.75 94.75 0 0 0 416 256a94.76 94.76 0 0 0-121.31-92.21A47.65 47.65 0 0 1 304 192a46.64 46.64 0 0 1-1.54 10l-73.61-56.89A142.31 142.31 0 0 1 320 112a143.92 143.92 0 0 1 144 144c0 21.63-5.29 41.79-13.9 60.11z"]},kh={prefix:"fas",iconName:"history",icon:[512,512,[],"f1da","M504 255.531c.253 136.64-111.18 248.372-247.82 248.468-59.015.042-113.223-20.53-155.822-54.911-11.077-8.94-11.905-25.541-1.839-35.607l11.267-11.267c8.609-8.609 22.353-9.551 31.891-1.984C173.062 425.135 212.781 440 256 440c101.705 0 184-82.311 184-184 0-101.705-82.311-184-184-184-48.814 0-93.149 18.969-126.068 49.932l50.754 50.754c10.08 10.08 2.941 27.314-11.313 27.314H24c-8.837 0-16-7.163-16-16V38.627c0-14.254 17.234-21.393 27.314-11.314l49.372 49.372C129.209 34.136 189.552 8 256 8c136.81 0 247.747 110.78 248 247.531zm-180.912 78.784l9.823-12.63c8.138-10.463 6.253-25.542-4.21-33.679L288 256.349V152c0-13.255-10.745-24-24-24h-16c-13.255 0-24 10.745-24 24v135.651l65.409 50.874c10.463 8.137 25.541 6.253 33.679-4.21z"]},os={prefix:"fas",iconName:"infinity",icon:[640,512,[],"f534","M471.1 96C405 96 353.3 137.3 320 174.6 286.7 137.3 235 96 168.9 96 75.8 96 0 167.8 0 256s75.8 160 168.9 160c66.1 0 117.8-41.3 151.1-78.6 33.3 37.3 85 78.6 151.1 78.6 93.1 0 168.9-71.8 168.9-160S564.2 96 471.1 96zM168.9 320c-40.2 0-72.9-28.7-72.9-64s32.7-64 72.9-64c38.2 0 73.4 36.1 94 64-20.4 27.6-55.9 64-94 64zm302.2 0c-38.2 0-73.4-36.1-94-64 20.4-27.6 55.9-64 94-64 40.2 0 72.9 28.7 72.9 64s-32.7 64-72.9 64z"]},C1={prefix:"fas",iconName:"info-circle",icon:[512,512,[],"f05a","M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z"]},pl={prefix:"fas",iconName:"layer-group",icon:[512,512,[],"f5fd","M12.41 148.02l232.94 105.67c6.8 3.09 14.49 3.09 21.29 0l232.94-105.67c16.55-7.51 16.55-32.52 0-40.03L266.65 2.31a25.607 25.607 0 0 0-21.29 0L12.41 107.98c-16.55 7.51-16.55 32.53 0 40.04zm487.18 88.28l-58.09-26.33-161.64 73.27c-7.56 3.43-15.59 5.17-23.86 5.17s-16.29-1.74-23.86-5.17L70.51 209.97l-58.1 26.33c-16.55 7.5-16.55 32.5 0 40l232.94 105.59c6.8 3.08 14.49 3.08 21.29 0L499.59 276.3c16.55-7.5 16.55-32.5 0-40zm0 127.8l-57.87-26.23-161.86 73.37c-7.56 3.43-15.59 5.17-23.86 5.17s-16.29-1.74-23.86-5.17L70.29 337.87 12.41 364.1c-16.55 7.5-16.55 32.5 0 40l232.94 105.59c6.8 3.08 14.49 3.08 21.29 0L499.59 404.1c16.55-7.5 16.55-32.5 0-40z"]},z0={prefix:"fas",iconName:"life-ring",icon:[512,512,[],"f1cd","M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm173.696 119.559l-63.399 63.399c-10.987-18.559-26.67-34.252-45.255-45.255l63.399-63.399a218.396 218.396 0 0 1 45.255 45.255zM256 352c-53.019 0-96-42.981-96-96s42.981-96 96-96 96 42.981 96 96-42.981 96-96 96zM127.559 82.304l63.399 63.399c-18.559 10.987-34.252 26.67-45.255 45.255l-63.399-63.399a218.372 218.372 0 0 1 45.255-45.255zM82.304 384.441l63.399-63.399c10.987 18.559 26.67 34.252 45.255 45.255l-63.399 63.399a218.396 218.396 0 0 1-45.255-45.255zm302.137 45.255l-63.399-63.399c18.559-10.987 34.252-26.67 45.255-45.255l63.399 63.399a218.403 218.403 0 0 1-45.255 45.255z"]},E1={prefix:"fas",iconName:"link",icon:[512,512,[],"f0c1","M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"]},Z0={prefix:"fas",iconName:"lock",icon:[448,512,[],"f023","M400 224h-24v-72C376 68.2 307.8 0 224 0S72 68.2 72 152v72H48c-26.5 0-48 21.5-48 48v192c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48zm-104 0H152v-72c0-39.7 32.3-72 72-72s72 32.3 72 72v72z"]},I1={prefix:"fas",iconName:"map-signs",icon:[512,512,[],"f277","M507.31 84.69L464 41.37c-6-6-14.14-9.37-22.63-9.37H288V16c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v16H56c-13.25 0-24 10.75-24 24v80c0 13.25 10.75 24 24 24h385.37c8.49 0 16.62-3.37 22.63-9.37l43.31-43.31c6.25-6.26 6.25-16.38 0-22.63zM224 496c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16V384h-64v112zm232-272H288v-32h-64v32H70.63c-8.49 0-16.62 3.37-22.63 9.37L4.69 276.69c-6.25 6.25-6.25 16.38 0 22.63L48 342.63c6 6 14.14 9.37 22.63 9.37H456c13.25 0 24-10.75 24-24v-80c0-13.25-10.75-24-24-24z"]},X0={prefix:"fas",iconName:"money-bill-alt",icon:[640,512,[],"f3d1","M352 288h-16v-88c0-4.42-3.58-8-8-8h-13.58c-4.74 0-9.37 1.4-13.31 4.03l-15.33 10.22a7.994 7.994 0 0 0-2.22 11.09l8.88 13.31a7.994 7.994 0 0 0 11.09 2.22l.47-.31V288h-16c-4.42 0-8 3.58-8 8v16c0 4.42 3.58 8 8 8h64c4.42 0 8-3.58 8-8v-16c0-4.42-3.58-8-8-8zM608 64H32C14.33 64 0 78.33 0 96v320c0 17.67 14.33 32 32 32h576c17.67 0 32-14.33 32-32V96c0-17.67-14.33-32-32-32zM48 400v-64c35.35 0 64 28.65 64 64H48zm0-224v-64h64c0 35.35-28.65 64-64 64zm272 192c-53.02 0-96-50.15-96-112 0-61.86 42.98-112 96-112s96 50.14 96 112c0 61.87-43 112-96 112zm272 32h-64c0-35.35 28.65-64 64-64v64zm0-224c-35.35 0-64-28.65-64-64h64v64z"]},kc={prefix:"fas",iconName:"money-bill-wave",icon:[640,512,[],"f53a","M621.16 54.46C582.37 38.19 543.55 32 504.75 32c-123.17-.01-246.33 62.34-369.5 62.34-30.89 0-61.76-3.92-92.65-13.72-3.47-1.1-6.95-1.62-10.35-1.62C15.04 79 0 92.32 0 110.81v317.26c0 12.63 7.23 24.6 18.84 29.46C57.63 473.81 96.45 480 135.25 480c123.17 0 246.34-62.35 369.51-62.35 30.89 0 61.76 3.92 92.65 13.72 3.47 1.1 6.95 1.62 10.35 1.62 17.21 0 32.25-13.32 32.25-31.81V83.93c-.01-12.64-7.24-24.6-18.85-29.47zM48 132.22c20.12 5.04 41.12 7.57 62.72 8.93C104.84 170.54 79 192.69 48 192.69v-60.47zm0 285v-47.78c34.37 0 62.18 27.27 63.71 61.4-22.53-1.81-43.59-6.31-63.71-13.62zM320 352c-44.19 0-80-42.99-80-96 0-53.02 35.82-96 80-96s80 42.98 80 96c0 53.03-35.83 96-80 96zm272 27.78c-17.52-4.39-35.71-6.85-54.32-8.44 5.87-26.08 27.5-45.88 54.32-49.28v57.72zm0-236.11c-30.89-3.91-54.86-29.7-55.81-61.55 19.54 2.17 38.09 6.23 55.81 12.66v48.89z"]},Ja={prefix:"fas",iconName:"network-wired",icon:[640,512,[],"f6ff","M640 264v-16c0-8.84-7.16-16-16-16H344v-40h72c17.67 0 32-14.33 32-32V32c0-17.67-14.33-32-32-32H224c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h72v40H16c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16h104v40H64c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h160c17.67 0 32-14.33 32-32V352c0-17.67-14.33-32-32-32h-56v-40h304v40h-56c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h160c17.67 0 32-14.33 32-32V352c0-17.67-14.33-32-32-32h-56v-40h104c8.84 0 16-7.16 16-16zM256 128V64h128v64H256zm-64 320H96v-64h96v64zm352 0h-96v-64h96v64z"]},vl={prefix:"fas",iconName:"paint-brush",icon:[512,512,[],"f1fc","M167.02 309.34c-40.12 2.58-76.53 17.86-97.19 72.3-2.35 6.21-8 9.98-14.59 9.98-11.11 0-45.46-27.67-55.25-34.35C0 439.62 37.93 512 128 512c75.86 0 128-43.77 128-120.19 0-3.11-.65-6.08-.97-9.13l-88.01-73.34zM457.89 0c-15.16 0-29.37 6.71-40.21 16.45C213.27 199.05 192 203.34 192 257.09c0 13.7 3.25 26.76 8.73 38.7l63.82 53.18c7.21 1.8 14.64 3.03 22.39 3.03 62.11 0 98.11-45.47 211.16-256.46 7.38-14.35 13.9-29.85 13.9-45.99C512 20.64 486 0 457.89 0z"]},Fc={prefix:"fas",iconName:"percentage",icon:[384,512,[],"f541","M109.25 173.25c24.99-24.99 24.99-65.52 0-90.51-24.99-24.99-65.52-24.99-90.51 0-24.99 24.99-24.99 65.52 0 90.51 25 25 65.52 25 90.51 0zm256 165.49c-24.99-24.99-65.52-24.99-90.51 0-24.99 24.99-24.99 65.52 0 90.51 24.99 24.99 65.52 24.99 90.51 0 25-24.99 25-65.51 0-90.51zm-1.94-231.43l-22.62-22.62c-12.5-12.5-32.76-12.5-45.25 0L20.69 359.44c-12.5 12.5-12.5 32.76 0 45.25l22.62 22.62c12.5 12.5 32.76 12.5 45.25 0l274.75-274.75c12.5-12.49 12.5-32.75 0-45.25z"]},bd={prefix:"fas",iconName:"plus",icon:[448,512,[],"f067","M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"]},Td={prefix:"fas",iconName:"project-diagram",icon:[640,512,[],"f542","M384 320H256c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h128c17.67 0 32-14.33 32-32V352c0-17.67-14.33-32-32-32zM192 32c0-17.67-14.33-32-32-32H32C14.33 0 0 14.33 0 32v128c0 17.67 14.33 32 32 32h95.72l73.16 128.04C211.98 300.98 232.4 288 256 288h.28L192 175.51V128h224V64H192V32zM608 0H480c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h128c17.67 0 32-14.33 32-32V32c0-17.67-14.33-32-32-32z"]},Y1={prefix:"fas",iconName:"question",icon:[384,512,[],"f128","M202.021 0C122.202 0 70.503 32.703 29.914 91.026c-7.363 10.58-5.093 25.086 5.178 32.874l43.138 32.709c10.373 7.865 25.132 6.026 33.253-4.148 25.049-31.381 43.63-49.449 82.757-49.449 30.764 0 68.816 19.799 68.816 49.631 0 22.552-18.617 34.134-48.993 51.164-35.423 19.86-82.299 44.576-82.299 106.405V320c0 13.255 10.745 24 24 24h72.471c13.255 0 24-10.745 24-24v-5.773c0-42.86 125.268-44.645 125.268-160.627C377.504 66.256 286.902 0 202.021 0zM192 373.459c-38.196 0-69.271 31.075-69.271 69.271 0 38.195 31.075 69.27 69.271 69.27s69.271-31.075 69.271-69.271-31.075-69.27-69.271-69.27z"]},_2={prefix:"fas",iconName:"receipt",icon:[384,512,[],"f543","M358.4 3.2L320 48 265.6 3.2a15.9 15.9 0 0 0-19.2 0L192 48 137.6 3.2a15.9 15.9 0 0 0-19.2 0L64 48 25.6 3.2C15-4.7 0 2.8 0 16v480c0 13.2 15 20.7 25.6 12.8L64 464l54.4 44.8a15.9 15.9 0 0 0 19.2 0L192 464l54.4 44.8a15.9 15.9 0 0 0 19.2 0L320 464l38.4 44.8c10.5 7.9 25.6.4 25.6-12.8V16c0-13.2-15-20.7-25.6-12.8zM320 360c0 4.4-3.6 8-8 8H72c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h240c4.4 0 8 3.6 8 8v16zm0-96c0 4.4-3.6 8-8 8H72c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h240c4.4 0 8 3.6 8 8v16zm0-96c0 4.4-3.6 8-8 8H72c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h240c4.4 0 8 3.6 8 8v16z"]},x2={prefix:"fas",iconName:"route",icon:[512,512,[],"f4d7","M416 320h-96c-17.6 0-32-14.4-32-32s14.4-32 32-32h96s96-107 96-160-43-96-96-96-96 43-96 96c0 25.5 22.2 63.4 45.3 96H320c-52.9 0-96 43.1-96 96s43.1 96 96 96h96c17.6 0 32 14.4 32 32s-14.4 32-32 32H185.5c-16 24.8-33.8 47.7-47.3 64H416c52.9 0 96-43.1 96-96s-43.1-96-96-96zm0-256c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zM96 256c-53 0-96 43-96 96s96 160 96 160 96-107 96-160-43-96-96-96zm0 128c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"]},vr={prefix:"fas",iconName:"search",icon:[512,512,[],"f002","M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"]},Ud={prefix:"fas",iconName:"server",icon:[512,512,[],"f233","M480 160H32c-17.673 0-32-14.327-32-32V64c0-17.673 14.327-32 32-32h448c17.673 0 32 14.327 32 32v64c0 17.673-14.327 32-32 32zm-48-88c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm-64 0c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm112 248H32c-17.673 0-32-14.327-32-32v-64c0-17.673 14.327-32 32-32h448c17.673 0 32 14.327 32 32v64c0 17.673-14.327 32-32 32zm-48-88c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm-64 0c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm112 248H32c-17.673 0-32-14.327-32-32v-64c0-17.673 14.327-32 32-32h448c17.673 0 32 14.327 32 32v64c0 17.673-14.327 32-32 32zm-48-88c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm-64 0c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24z"]},J1={prefix:"fas",iconName:"tachometer-alt",icon:[576,512,[],"f3fd","M288 32C128.94 32 0 160.94 0 320c0 52.8 14.25 102.26 39.06 144.8 5.61 9.62 16.3 15.2 27.44 15.2h443c11.14 0 21.83-5.58 27.44-15.2C561.75 422.26 576 372.8 576 320c0-159.06-128.94-288-288-288zm0 64c14.71 0 26.58 10.13 30.32 23.65-1.11 2.26-2.64 4.23-3.45 6.67l-9.22 27.67c-5.13 3.49-10.97 6.01-17.64 6.01-17.67 0-32-14.33-32-32S270.33 96 288 96zM96 384c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm48-160c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm246.77-72.41l-61.33 184C343.13 347.33 352 364.54 352 384c0 11.72-3.38 22.55-8.88 32H232.88c-5.5-9.45-8.88-20.28-8.88-32 0-33.94 26.5-61.43 59.9-63.59l61.34-184.01c4.17-12.56 17.73-19.45 30.36-15.17 12.57 4.19 19.35 17.79 15.17 30.36zm14.66 57.2l15.52-46.55c3.47-1.29 7.13-2.23 11.05-2.23 17.67 0 32 14.33 32 32s-14.33 32-32 32c-11.38-.01-20.89-6.28-26.57-15.22zM480 384c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"]},Z2={prefix:"fas",iconName:"times",icon:[352,512,[],"f00d","M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"]},$a={prefix:"fas",iconName:"tools",icon:[512,512,[],"f7d9","M501.1 395.7L384 278.6c-23.1-23.1-57.6-27.6-85.4-13.9L192 158.1V96L64 0 0 64l96 128h62.1l106.6 106.6c-13.6 27.8-9.2 62.3 13.9 85.4l117.1 117.1c14.6 14.6 38.2 14.6 52.7 0l52.7-52.7c14.5-14.6 14.5-38.2 0-52.7zM331.7 225c28.3 0 54.9 11 74.9 31l19.4 19.4c15.8-6.9 30.8-16.5 43.8-29.5 37.1-37.1 49.7-89.3 37.9-136.7-2.2-9-13.5-12.1-20.1-5.5l-74.4 74.4-67.9-11.3L334 98.9l74.4-74.4c6.6-6.6 3.4-17.9-5.7-20.2-47.4-11.7-99.6.9-136.6 37.9-28.5 28.5-41.9 66.1-41.2 103.6l82.1 82.1c8.1-1.9 16.5-2.9 24.7-2.9zm-103.9 82l-56.7-56.7L18.7 402.8c-25 25-25 65.5 0 90.5s65.5 25 90.5 0l123.6-123.6c-7.6-19.9-9.9-41.6-5-62.7zM64 472c-13.2 0-24-10.8-24-24 0-13.3 10.7-24 24-24s24 10.7 24 24c0 13.2-10.7 24-24 24z"]},qr={prefix:"fas",iconName:"unlock-alt",icon:[448,512,[],"f13e","M400 256H152V152.9c0-39.6 31.7-72.5 71.3-72.9 40-.4 72.7 32.1 72.7 72v16c0 13.3 10.7 24 24 24h32c13.3 0 24-10.7 24-24v-16C376 68 307.5-.3 223.5 0 139.5.3 72 69.5 72 153.5V256H48c-26.5 0-48 21.5-48 48v160c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V304c0-26.5-21.5-48-48-48zM264 408c0 22.1-17.9 40-40 40s-40-17.9-40-40v-48c0-22.1 17.9-40 40-40s40 17.9 40 40v48z"]},$2={prefix:"fas",iconName:"user-check",icon:[640,512,[],"f4fc","M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4zm323-128.4l-27.8-28.1c-4.6-4.7-12.1-4.7-16.8-.1l-104.8 104-45.5-45.8c-4.6-4.7-12.1-4.7-16.8-.1l-28.1 27.9c-4.7 4.6-4.7 12.1-.1 16.8l81.7 82.3c4.6 4.7 12.1 4.7 16.8.1l141.3-140.2c4.6-4.7 4.7-12.2.1-16.8z"]},ku={prefix:"fas",iconName:"user-clock",icon:[640,512,[],"f4fd","M496 224c-79.6 0-144 64.4-144 144s64.4 144 144 144 144-64.4 144-144-64.4-144-144-144zm64 150.3c0 5.3-4.4 9.7-9.7 9.7h-60.6c-5.3 0-9.7-4.4-9.7-9.7v-76.6c0-5.3 4.4-9.7 9.7-9.7h12.6c5.3 0 9.7 4.4 9.7 9.7V352h38.3c5.3 0 9.7 4.4 9.7 9.7v12.6zM320 368c0-27.8 6.7-54.1 18.2-77.5-8-1.5-16.2-2.5-24.6-2.5h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h347.1c-45.3-31.9-75.1-84.5-75.1-144zm-96-112c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128z"]},jc={prefix:"fas",iconName:"user-cog",icon:[640,512,[],"f4fe","M610.5 373.3c2.6-14.1 2.6-28.5 0-42.6l25.8-14.9c3-1.7 4.3-5.2 3.3-8.5-6.7-21.6-18.2-41.2-33.2-57.4-2.3-2.5-6-3.1-9-1.4l-25.8 14.9c-10.9-9.3-23.4-16.5-36.9-21.3v-29.8c0-3.4-2.4-6.4-5.7-7.1-22.3-5-45-4.8-66.2 0-3.3.7-5.7 3.7-5.7 7.1v29.8c-13.5 4.8-26 12-36.9 21.3l-25.8-14.9c-2.9-1.7-6.7-1.1-9 1.4-15 16.2-26.5 35.8-33.2 57.4-1 3.3.4 6.8 3.3 8.5l25.8 14.9c-2.6 14.1-2.6 28.5 0 42.6l-25.8 14.9c-3 1.7-4.3 5.2-3.3 8.5 6.7 21.6 18.2 41.1 33.2 57.4 2.3 2.5 6 3.1 9 1.4l25.8-14.9c10.9 9.3 23.4 16.5 36.9 21.3v29.8c0 3.4 2.4 6.4 5.7 7.1 22.3 5 45 4.8 66.2 0 3.3-.7 5.7-3.7 5.7-7.1v-29.8c13.5-4.8 26-12 36.9-21.3l25.8 14.9c2.9 1.7 6.7 1.1 9-1.4 15-16.2 26.5-35.8 33.2-57.4 1-3.3-.4-6.8-3.3-8.5l-25.8-14.9zM496 400.5c-26.8 0-48.5-21.8-48.5-48.5s21.8-48.5 48.5-48.5 48.5 21.8 48.5 48.5-21.7 48.5-48.5 48.5zM224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm201.2 226.5c-2.3-1.2-4.6-2.6-6.8-3.9l-7.9 4.6c-6 3.4-12.8 5.3-19.6 5.3-10.9 0-21.4-4.6-28.9-12.6-18.3-19.8-32.3-43.9-40.2-69.6-5.5-17.7 1.9-36.4 17.9-45.7l7.9-4.6c-.1-2.6-.1-5.2 0-7.8l-7.9-4.6c-16-9.2-23.4-28-17.9-45.7.9-2.9 2.2-5.8 3.2-8.7-3.8-.3-7.5-1.2-11.4-1.2h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c10.1 0 19.5-3.2 27.2-8.5-1.2-3.8-2-7.7-2-11.8v-9.2z"]},s0={prefix:"fas",iconName:"user-lock",icon:[640,512,[],"f502","M224 256A128 128 0 1 0 96 128a128 128 0 0 0 128 128zm96 64a63.08 63.08 0 0 1 8.1-30.5c-4.8-.5-9.5-1.5-14.5-1.5h-16.7a174.08 174.08 0 0 1-145.8 0h-16.7A134.43 134.43 0 0 0 0 422.4V464a48 48 0 0 0 48 48h280.9a63.54 63.54 0 0 1-8.9-32zm288-32h-32v-80a80 80 0 0 0-160 0v80h-32a32 32 0 0 0-32 32v160a32 32 0 0 0 32 32h224a32 32 0 0 0 32-32V320a32 32 0 0 0-32-32zM496 432a32 32 0 1 1 32-32 32 32 0 0 1-32 32zm32-144h-64v-80a32 32 0 0 1 64 0z"]},qc={prefix:"fas",iconName:"users",icon:[640,512,[],"f0c0","M96 224c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm448 0c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm32 32h-64c-17.6 0-33.5 7.1-45.1 18.6 40.3 22.1 68.9 62 75.1 109.4h66c17.7 0 32-14.3 32-32v-32c0-35.3-28.7-64-64-64zm-256 0c61.9 0 112-50.1 112-112S381.9 32 320 32 208 82.1 208 144s50.1 112 112 112zm76.8 32h-8.3c-20.8 10-43.9 16-68.5 16s-47.6-6-68.5-16h-8.3C179.6 288 128 339.6 128 403.2V432c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48v-28.8c0-63.6-51.6-115.2-115.2-115.2zm-223.7-13.4C161.5 263.1 145.6 256 128 256H64c-35.3 0-64 28.7-64 64v32c0 17.7 14.3 32 32 32h65.9c6.3-47.4 34.9-87.3 75.2-109.4z"]},nh={prefix:"fas",iconName:"wallet",icon:[512,512,[],"f555","M461.2 128H80c-8.84 0-16-7.16-16-16s7.16-16 16-16h384c8.84 0 16-7.16 16-16 0-26.51-21.49-48-48-48H64C28.65 32 0 60.65 0 96v320c0 35.35 28.65 64 64 64h397.2c28.02 0 50.8-21.53 50.8-48V176c0-26.47-22.78-48-50.8-48zM416 336c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"]},sh={prefix:"fas",iconName:"window-restore",icon:[512,512,[],"f2d2","M512 48v288c0 26.5-21.5 48-48 48h-48V176c0-44.1-35.9-80-80-80H128V48c0-26.5 21.5-48 48-48h288c26.5 0 48 21.5 48 48zM384 176v288c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V176c0-26.5 21.5-48 48-48h288c26.5 0 48 21.5 48 48zm-68 28c0-6.6-5.4-12-12-12H76c-6.6 0-12 5.4-12 12v52h252v-52z"]}},429:(Ve,Q,m)=>{"use strict";m.d(Q,{Ni:()=>y,xH:()=>C,oo:()=>o,CN:()=>M,CX:()=>l,SN:()=>N,RX:()=>s,HJ:()=>D,I8:()=>A,EG:()=>O,Lu:()=>E,g3:()=>P,xS:()=>w,_E:()=>Z,$W:()=>W,Z8:()=>ie,El:()=>ee,X3:()=>ce,z:()=>re,EK:()=>de,cQ:()=>oe,HI:()=>ae,oV:()=>b,TM:()=>i,WO:()=>a,kL:()=>p,UR:()=>u,as:()=>_,pW:()=>L,YX:()=>I,BL:()=>x,OG:()=>r,Sf:()=>v,$A:()=>G,n7:()=>F,v_:()=>U,u0:()=>ye,QJ:()=>Ce,WM:()=>Be,Nr:()=>ze,Rd:()=>Ie,YP:()=>K,aL:()=>Me,g6:()=>we,Wi:()=>z,Ly:()=>vt,UH:()=>Re,eM:()=>Ne,VD:()=>he,yl:()=>Le,Zu:()=>ke,dh:()=>q,ZH:()=>$,i9:()=>le,JK:()=>xe,uT:()=>Ue,d7:()=>lt,e9:()=>nt,_9:()=>ft,en:()=>it});var e=m(5620),t=m(7731);const y=(0,e.PH)(t.AB.UPDATE_API_CALL_STATUS_CLN,(0,e.Ky)()),C=(0,e.PH)(t.AB.RESET_CLN_STORE,(0,e.Ky)()),o=(0,e.PH)(t.AB.SET_CHILD_NODE_SETTINGS_CLN,(0,e.Ky)()),M=(0,e.PH)(t.AB.FETCH_INFO_CLN,(0,e.Ky)()),l=(0,e.PH)(t.AB.SET_INFO_CLN,(0,e.Ky)()),N=(0,e.PH)(t.AB.FETCH_FEES_CLN),s=(0,e.PH)(t.AB.SET_FEES_CLN,(0,e.Ky)()),D=(0,e.PH)(t.AB.FETCH_FEE_RATES_CLN,(0,e.Ky)()),A=(0,e.PH)(t.AB.SET_FEE_RATES_CLN,(0,e.Ky)()),O=(0,e.PH)(t.AB.FETCH_BALANCE_CLN),E=(0,e.PH)(t.AB.SET_BALANCE_CLN,(0,e.Ky)()),P=(0,e.PH)(t.AB.FETCH_LOCAL_REMOTE_BALANCE_CLN),w=(0,e.PH)(t.AB.SET_LOCAL_REMOTE_BALANCE_CLN,(0,e.Ky)()),Z=(0,e.PH)(t.AB.GET_NEW_ADDRESS_CLN,(0,e.Ky)()),W=((0,e.PH)(t.AB.SET_NEW_ADDRESS_CLN,(0,e.Ky)()),(0,e.PH)(t.AB.FETCH_PEERS_CLN)),ie=(0,e.PH)(t.AB.SET_PEERS_CLN,(0,e.Ky)()),ee=(0,e.PH)(t.AB.SAVE_NEW_PEER_CLN,(0,e.Ky)()),ce=((0,e.PH)(t.AB.NEWLY_ADDED_PEER_CLN,(0,e.Ky)()),(0,e.PH)(t.AB.ADD_PEER_CLN,(0,e.Ky)())),re=(0,e.PH)(t.AB.DETACH_PEER_CLN,(0,e.Ky)()),de=(0,e.PH)(t.AB.REMOVE_PEER_CLN,(0,e.Ky)()),oe=(0,e.PH)(t.AB.FETCH_PAYMENTS_CLN),ae=(0,e.PH)(t.AB.SET_PAYMENTS_CLN,(0,e.Ky)()),b=(0,e.PH)(t.AB.SEND_PAYMENT_CLN,(0,e.Ky)()),i=(0,e.PH)(t.AB.SEND_PAYMENT_STATUS_CLN,(0,e.Ky)()),a=(0,e.PH)(t.AB.GET_QUERY_ROUTES_CLN,(0,e.Ky)()),p=(0,e.PH)(t.AB.SET_QUERY_ROUTES_CLN,(0,e.Ky)()),u=(0,e.PH)(t.AB.FETCH_CHANNELS_CLN),_=(0,e.PH)(t.AB.SET_CHANNELS_CLN,(0,e.Ky)()),L=(0,e.PH)(t.AB.UPDATE_CHANNEL_CLN,(0,e.Ky)()),I=(0,e.PH)(t.AB.SAVE_NEW_CHANNEL_CLN,(0,e.Ky)()),x=(0,e.PH)(t.AB.CLOSE_CHANNEL_CLN,(0,e.Ky)()),r=(0,e.PH)(t.AB.REMOVE_CHANNEL_CLN,(0,e.Ky)()),v=(0,e.PH)(t.AB.PEER_LOOKUP_CLN,(0,e.Ky)()),G=(0,e.PH)(t.AB.CHANNEL_LOOKUP_CLN,(0,e.Ky)()),F=(0,e.PH)(t.AB.INVOICE_LOOKUP_CLN,(0,e.Ky)()),U=(0,e.PH)(t.AB.SET_LOOKUP_CLN,(0,e.Ky)()),ye=(0,e.PH)(t.AB.GET_FORWARDING_HISTORY_CLN,(0,e.Ky)()),Ce=(0,e.PH)(t.AB.SET_FORWARDING_HISTORY_CLN,(0,e.Ky)()),Be=(0,e.PH)(t.AB.FETCH_INVOICES_CLN,(0,e.Ky)()),ze=(0,e.PH)(t.AB.SET_INVOICES_CLN,(0,e.Ky)()),Ie=(0,e.PH)(t.AB.SAVE_NEW_INVOICE_CLN,(0,e.Ky)()),K=(0,e.PH)(t.AB.ADD_INVOICE_CLN,(0,e.Ky)()),Me=(0,e.PH)(t.AB.UPDATE_INVOICE_CLN,(0,e.Ky)()),we=(0,e.PH)(t.AB.DELETE_EXPIRED_INVOICE_CLN,(0,e.Ky)()),z=(0,e.PH)(t.AB.SET_CHANNEL_TRANSACTION_CLN,(0,e.Ky)()),vt=((0,e.PH)(t.AB.SET_CHANNEL_TRANSACTION_RES_CLN,(0,e.Ky)()),(0,e.PH)(t.AB.FETCH_UTXOS_CLN)),Re=(0,e.PH)(t.AB.SET_UTXOS_CLN,(0,e.Ky)()),Ne=(0,e.PH)(t.AB.FETCH_OFFER_INVOICE_CLN,(0,e.Ky)()),he=(0,e.PH)(t.AB.SET_OFFER_INVOICE_CLN,(0,e.Ky)()),Le=(0,e.PH)(t.AB.FETCH_OFFERS_CLN),ke=(0,e.PH)(t.AB.SET_OFFERS_CLN,(0,e.Ky)()),q=(0,e.PH)(t.AB.SAVE_NEW_OFFER_CLN,(0,e.Ky)()),$=(0,e.PH)(t.AB.ADD_OFFER_CLN,(0,e.Ky)()),le=(0,e.PH)(t.AB.DISABLE_OFFER_CLN,(0,e.Ky)()),xe=(0,e.PH)(t.AB.UPDATE_OFFER_CLN,(0,e.Ky)()),Ue=(0,e.PH)(t.AB.FETCH_OFFER_BOOKMARKS_CLN),lt=(0,e.PH)(t.AB.SET_OFFER_BOOKMARKS_CLN,(0,e.Ky)()),nt=(0,e.PH)(t.AB.ADD_UPDATE_OFFER_BOOKMARK_CLN,(0,e.Ky)()),ft=(0,e.PH)(t.AB.DELETE_OFFER_BOOKMARK_CLN,(0,e.Ky)()),it=(0,e.PH)(t.AB.REMOVE_OFFER_BOOKMARK_CLN,(0,e.Ky)())},4947:(Ve,Q,m)=>{"use strict";m.d(Q,{J:()=>oe});var e=m(6642),t=m(7579),y=m(9646),C=m(5577),o=m(2722),M=m(4004),l=m(262),N=m(2340),s=m(1786),D=m(5566),A=m(7731),O=m(7861),E=m(429),P=m(9828),w=m(1462),Z=m(5e3),j=m(8138),W=m(5620),ie=m(5986),ee=m(62),_e=m(5043),ce=m(1402),re=m(7998),de=m(9808);let oe=(()=>{class ae{constructor(i,a,p,u,_,L,I,x,r){this.actions=i,this.httpClient=a,this.store=p,this.sessionService=u,this.commonService=_,this.logger=L,this.router=I,this.wsService=x,this.location=r,this.CHILD_API_URL=N.T5+"/cln",this.flgInitialized=!1,this.unSubs=[new t.x,new t.x,new t.x],this.infoFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.FETCH_INFO_CLN),(0,C.z)(v=>(this.flgInitialized=!1,this.store.dispatch((0,O.lC)({payload:this.CHILD_API_URL})),this.store.dispatch((0,E.Ni)({payload:{action:"FetchInfo",status:A.Bn.INITIATED}})),this.store.dispatch((0,O.ac)({payload:A.m6.GET_NODE_INFO})),this.httpClient.get(this.CHILD_API_URL+N.NZ.GETINFO_API).pipe((0,o.R)(this.actions.pipe((0,e.l4)(A.pg.SET_SELECTED_NODE))),(0,M.U)(G=>(this.logger.info(G),G.chains&&G.chains.length&&G.chains[0]&&"object"==typeof G.chains[0]&&G.chains[0].hasOwnProperty("chain")&&G.chains[0].chain.toLowerCase().indexOf("bitcoin")<0?(this.store.dispatch((0,E.Ni)({payload:{action:"FetchInfo",status:A.Bn.COMPLETED}})),this.store.dispatch((0,O.uO)({payload:A.m6.GET_NODE_INFO})),this.store.dispatch((0,O.ts)()),this.store.dispatch((0,O.qR)({payload:{data:{type:A.n_.ERROR,alertTitle:"Shitcoin Found",titleMessage:"Sorry Not Sorry, RTL is Bitcoin Only!"}}})),{type:A.pg.LOGOUT}):(this.initializeRemainingData(G,v.payload.loadPage),this.store.dispatch((0,E.Ni)({payload:{action:"FetchInfo",status:A.Bn.COMPLETED}})),this.store.dispatch((0,O.uO)({payload:A.m6.GET_NODE_INFO})),{type:A.AB.SET_INFO_CLN,payload:G||{}}))),(0,l.K)(G=>{const F=this.commonService.extractErrorCode(G),U="ETIMEDOUT"===F?"Unable to Connect to Core Lightning Server.":this.commonService.extractErrorMessage(G);return this.router.navigate(["/error"],{state:{errorCode:F,errorMessage:U}}),this.handleErrorWithoutAlert("FetchInfo",A.m6.GET_NODE_INFO,"Fetching Node Info Failed.",{status:F,error:U}),(0,y.of)({type:A.pg.VOID})})))))),this.fetchFeesCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.FETCH_FEES_CLN),(0,C.z)(()=>(this.store.dispatch((0,E.Ni)({payload:{action:"FetchFees",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+N.NZ.FEES_API))),(0,M.U)(v=>(this.logger.info(v),this.store.dispatch((0,E.Ni)({payload:{action:"FetchFees",status:A.Bn.COMPLETED}})),{type:A.AB.SET_FEES_CLN,payload:v||{}})),(0,l.K)(v=>(this.handleErrorWithoutAlert("FetchFees",A.m6.NO_SPINNER,"Fetching Fees Failed.",v),(0,y.of)({type:A.pg.VOID}))))),this.fetchFeeRatesCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.FETCH_FEE_RATES_CLN),(0,C.z)(v=>(this.store.dispatch((0,E.Ni)({payload:{action:"FetchFeeRates"+v.payload,status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+N.NZ.NETWORK_API+"/feeRates/"+v.payload).pipe((0,M.U)(G=>(this.logger.info(G),this.store.dispatch((0,E.Ni)({payload:{action:"FetchFeeRates"+v.payload,status:A.Bn.COMPLETED}})),{type:A.AB.SET_FEE_RATES_CLN,payload:G||{}})),(0,l.K)(G=>(this.handleErrorWithoutAlert("FetchFeeRates"+v.payload,A.m6.NO_SPINNER,"Fetching Fee Rates Failed.",G),(0,y.of)({type:A.pg.VOID})))))))),this.fetchBalanceCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.FETCH_BALANCE_CLN),(0,C.z)(()=>(this.store.dispatch((0,E.Ni)({payload:{action:"FetchBalance",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+N.NZ.BALANCE_API))),(0,M.U)(v=>(this.logger.info(v),this.store.dispatch((0,E.Ni)({payload:{action:"FetchBalance",status:A.Bn.COMPLETED}})),{type:A.AB.SET_BALANCE_CLN,payload:v||{}})),(0,l.K)(v=>(this.handleErrorWithoutAlert("FetchBalance",A.m6.NO_SPINNER,"Fetching Balances Failed.",v),(0,y.of)({type:A.pg.VOID}))))),this.fetchLocalRemoteBalanceCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.FETCH_LOCAL_REMOTE_BALANCE_CLN),(0,C.z)(()=>(this.store.dispatch((0,E.Ni)({payload:{action:"FetchLocalRemoteBalance",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+N.NZ.CHANNELS_API+"/localRemoteBalance"))),(0,M.U)(v=>(this.logger.info(v),this.store.dispatch((0,E.Ni)({payload:{action:"FetchLocalRemoteBalance",status:A.Bn.COMPLETED}})),{type:A.AB.SET_LOCAL_REMOTE_BALANCE_CLN,payload:v||{}})),(0,l.K)(v=>(this.handleErrorWithoutAlert("FetchLocalRemoteBalance",A.m6.NO_SPINNER,"Fetching Balances Failed.",v),(0,y.of)({type:A.pg.VOID}))))),this.getNewAddressCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.GET_NEW_ADDRESS_CLN),(0,C.z)(v=>(this.store.dispatch((0,O.ac)({payload:A.m6.GENERATE_NEW_ADDRESS})),this.httpClient.get(this.CHILD_API_URL+N.NZ.ON_CHAIN_API+"?type="+v.payload.addressCode).pipe((0,M.U)(G=>(this.logger.info(G),this.store.dispatch((0,O.uO)({payload:A.m6.GENERATE_NEW_ADDRESS})),{type:A.AB.SET_NEW_ADDRESS_CLN,payload:G&&G.address?G.address:{}})),(0,l.K)(G=>(this.handleErrorWithAlert("GenerateNewAddress",A.m6.GENERATE_NEW_ADDRESS,"Generate New Address Failed",this.CHILD_API_URL+N.NZ.ON_CHAIN_API+"?type="+v.payload.addressId,G),(0,y.of)({type:A.pg.VOID})))))))),this.setNewAddressCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.SET_NEW_ADDRESS_CLN),(0,M.U)(v=>(this.logger.info(v.payload),v.payload))),{dispatch:!1}),this.peersFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.FETCH_PEERS_CLN),(0,C.z)(()=>(this.store.dispatch((0,E.Ni)({payload:{action:"FetchPeers",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+N.NZ.PEERS_API).pipe((0,M.U)(v=>(this.logger.info(v),this.store.dispatch((0,E.Ni)({payload:{action:"FetchPeers",status:A.Bn.COMPLETED}})),{type:A.AB.SET_PEERS_CLN,payload:v||[]})),(0,l.K)(v=>(this.handleErrorWithoutAlert("FetchPeers",A.m6.NO_SPINNER,"Fetching Peers Failed.",v),(0,y.of)({type:A.pg.VOID})))))))),this.saveNewPeerCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.SAVE_NEW_PEER_CLN),(0,C.z)(v=>(this.store.dispatch((0,O.ac)({payload:A.m6.CONNECT_PEER})),this.store.dispatch((0,E.Ni)({payload:{action:"SaveNewPeer",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+N.NZ.PEERS_API,{id:v.payload.id}).pipe((0,M.U)(G=>(this.logger.info(G),this.store.dispatch((0,E.Ni)({payload:{action:"SaveNewPeer",status:A.Bn.COMPLETED}})),this.store.dispatch((0,O.uO)({payload:A.m6.CONNECT_PEER})),this.store.dispatch((0,E.Z8)({payload:G||[]})),{type:A.AB.NEWLY_ADDED_PEER_CLN,payload:{peer:G.find(F=>0===v.payload.id.indexOf(F.id))}})),(0,l.K)(G=>(this.handleErrorWithoutAlert("SaveNewPeer",A.m6.CONNECT_PEER,"Peer Connection Failed.",G),(0,y.of)({type:A.pg.VOID})))))))),this.detachPeerCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.DETACH_PEER_CLN),(0,C.z)(v=>(this.store.dispatch((0,O.ac)({payload:A.m6.DISCONNECT_PEER})),this.httpClient.delete(this.CHILD_API_URL+N.NZ.PEERS_API+"/"+v.payload.id+"?force="+v.payload.force).pipe((0,M.U)(G=>(this.logger.info(G),this.store.dispatch((0,O.uO)({payload:A.m6.DISCONNECT_PEER})),this.store.dispatch((0,O.jW)({payload:"Peer Disconnected Successfully!"})),{type:A.AB.REMOVE_PEER_CLN,payload:{id:v.payload.id}})),(0,l.K)(G=>(this.handleErrorWithAlert("PeerDisconnect",A.m6.DISCONNECT_PEER,"Unable to Detach Peer. Try again later.",this.CHILD_API_URL+N.NZ.PEERS_API+"/"+v.payload.id,G),(0,y.of)({type:A.pg.VOID})))))))),this.channelsFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.FETCH_CHANNELS_CLN),(0,C.z)(()=>(this.store.dispatch((0,E.Ni)({payload:{action:"FetchChannels",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+N.NZ.CHANNELS_API+"/listChannels"))),(0,M.U)(v=>{this.logger.info(v),this.store.dispatch((0,E.Ni)({payload:{action:"FetchChannels",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.u0)({payload:{status:A.OO.SETTLED,maxLen:10,offset:0}}));const G={activeChannels:[],pendingChannels:[],inactiveChannels:[]};return v.forEach(F=>{"CHANNELD_NORMAL"===F.state?F.connected?G.activeChannels.push(F):G.inactiveChannels.push(F):G.pendingChannels.push(F)}),{type:A.AB.SET_CHANNELS_CLN,payload:G}}),(0,l.K)(v=>(this.handleErrorWithoutAlert("FetchChannels",A.m6.NO_SPINNER,"Fetching Channels Failed.",v),(0,y.of)({type:A.pg.VOID}))))),this.openNewChannelCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.SAVE_NEW_CHANNEL_CLN),(0,C.z)(v=>{this.store.dispatch((0,O.ac)({payload:A.m6.OPEN_CHANNEL})),this.store.dispatch((0,E.Ni)({payload:{action:"SaveNewChannel",status:A.Bn.INITIATED}}));const G={id:v.payload.peerId,satoshis:v.payload.satoshis,feeRate:v.payload.feeRate,announce:v.payload.announce};return v.payload.minconf&&(G.minconf=v.payload.minconf),v.payload.utxos&&(G.utxos=v.payload.utxos),v.payload.requestAmount&&(G.request_amt=v.payload.requestAmount),v.payload.compactLease&&(G.compact_lease=v.payload.compactLease),this.httpClient.post(this.CHILD_API_URL+N.NZ.CHANNELS_API,G).pipe((0,M.U)(F=>(this.logger.info(F),this.store.dispatch((0,E.Ni)({payload:{action:"SaveNewChannel",status:A.Bn.COMPLETED}})),this.store.dispatch((0,O.uO)({payload:A.m6.OPEN_CHANNEL})),this.store.dispatch((0,O.jW)({payload:"Channel Added Successfully!"})),this.store.dispatch((0,E.EG)()),this.store.dispatch((0,E.Ly)()),{type:A.AB.FETCH_CHANNELS_CLN})),(0,l.K)(F=>(this.handleErrorWithoutAlert("SaveNewChannel",A.m6.OPEN_CHANNEL,"Opening Channel Failed.",F),(0,y.of)({type:A.pg.VOID}))))}))),this.updateChannelCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.UPDATE_CHANNEL_CLN),(0,C.z)(v=>(this.store.dispatch((0,O.ac)({payload:A.m6.UPDATE_CHAN_POLICY})),this.httpClient.post(this.CHILD_API_URL+N.NZ.CHANNELS_API+"/setChannelFee",{id:v.payload.channelId,base:v.payload.baseFeeMsat,ppm:v.payload.feeRate}).pipe((0,M.U)(G=>(this.logger.info(G),this.store.dispatch((0,O.uO)({payload:A.m6.UPDATE_CHAN_POLICY})),this.store.dispatch((0,O.jW)("all"===v.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:A.AB.FETCH_CHANNELS_CLN})),(0,l.K)(G=>(this.handleErrorWithAlert("UpdateChannel",A.m6.UPDATE_CHAN_POLICY,"Update Channel Failed",this.CHILD_API_URL+N.NZ.CHANNELS_API,G),(0,y.of)({type:A.pg.VOID})))))))),this.closeChannelCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.CLOSE_CHANNEL_CLN),(0,C.z)(v=>(this.store.dispatch((0,O.ac)({payload:v.payload.force?A.m6.FORCE_CLOSE_CHANNEL:A.m6.CLOSE_CHANNEL})),this.httpClient.delete(this.CHILD_API_URL+N.NZ.CHANNELS_API+"/"+v.payload.channelId+(v.payload.force?"?force="+v.payload.force:"")).pipe((0,M.U)(F=>(this.logger.info(F),this.store.dispatch((0,O.uO)({payload:v.payload.force?A.m6.FORCE_CLOSE_CHANNEL:A.m6.CLOSE_CHANNEL})),this.store.dispatch((0,E.UR)()),this.store.dispatch((0,E.g3)()),this.store.dispatch((0,O.jW)({payload:"Channel Closed Successfully!"})),{type:A.AB.REMOVE_CHANNEL_CLN,payload:v.payload})),(0,l.K)(F=>(this.handleErrorWithAlert("CloseChannel",v.payload.force?A.m6.FORCE_CLOSE_CHANNEL:A.m6.CLOSE_CHANNEL,"Unable to Close Channel. Try again later.",this.CHILD_API_URL+N.NZ.CHANNELS_API,F),(0,y.of)({type:A.pg.VOID})))))))),this.paymentsFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.FETCH_PAYMENTS_CLN),(0,C.z)(()=>(this.store.dispatch((0,E.Ni)({payload:{action:"FetchPayments",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+N.NZ.PAYMENTS_API))),(0,M.U)(v=>(this.logger.info(v),this.store.dispatch((0,E.Ni)({payload:{action:"FetchPayments",status:A.Bn.COMPLETED}})),{type:A.AB.SET_PAYMENTS_CLN,payload:v||[]})),(0,l.K)(v=>(this.handleErrorWithoutAlert("FetchPayments",A.m6.NO_SPINNER,"Fetching Payments Failed.",v),(0,y.of)({type:A.pg.VOID}))))),this.fetchOfferInvoiceCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.FETCH_OFFER_INVOICE_CLN),(0,C.z)(v=>(this.store.dispatch((0,O.ac)({payload:A.m6.FETCH_INVOICE})),this.store.dispatch((0,E.Ni)({payload:{action:"FetchOfferInvoice",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+N.NZ.OFFERS_API+"/fetchOfferInvoice",v.payload).pipe((0,M.U)(G=>{this.logger.info(G),setTimeout(()=>{this.store.dispatch((0,E.Ni)({payload:{action:"FetchOfferInvoice",status:A.Bn.COMPLETED}})),this.store.dispatch((0,O.uO)({payload:A.m6.FETCH_INVOICE})),this.store.dispatch((0,E.VD)({payload:G||{}}))},500)}),(0,l.K)(G=>(this.handleErrorWithoutAlert("FetchOfferInvoice",A.m6.FETCH_INVOICE,"Offer Invoice Fetch Failed",G),(0,y.of)({type:A.pg.VOID}))))))),{dispatch:!1}),this.setOfferInvoiceCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.SET_OFFER_INVOICE_CLN),(0,M.U)(v=>(this.logger.info(v.payload),v.payload))),{dispatch:!1}),this.sendPaymentCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.SEND_PAYMENT_CLN),(0,C.z)(v=>(this.store.dispatch((0,O.ac)({payload:v.payload.uiMessage})),this.store.dispatch((0,E.Ni)({payload:{action:"SendPayment",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+N.NZ.PAYMENTS_API,v.payload).pipe((0,M.U)(G=>{this.logger.info(G),this.store.dispatch((0,E.Ni)({payload:{action:"SendPayment",status:A.Bn.COMPLETED}}));let F="Payment Sent Successfully!";G.saveToDBError&&(F="Payment Sent Successfully but Offer Saving to Database Failed."),G.saveToDBResponse&&"NA"!==G.saveToDBResponse&&(this.store.dispatch((0,E.e9)({payload:G.saveToDBResponse})),F="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,O.uO)({payload:v.payload.uiMessage})),this.store.dispatch((0,O.jW)({payload:F})),this.store.dispatch((0,E.TM)({payload:G.paymentResponse}))},1e3)}),(0,l.K)(G=>(this.logger.error("Error: "+JSON.stringify(G)),v.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",v.payload.uiMessage,"Send Payment Failed.",G):this.handleErrorWithAlert("SendPayment",v.payload.uiMessage,"Send Payment Failed",this.CHILD_API_URL+N.NZ.PAYMENTS_API,G),(0,y.of)({type:A.pg.VOID}))))))),{dispatch:!1}),this.queryRoutesFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.GET_QUERY_ROUTES_CLN),(0,C.z)(v=>(this.store.dispatch((0,E.Ni)({payload:{action:"GetQueryRoutes",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+N.NZ.NETWORK_API+"/getRoute/"+v.payload.destPubkey+"/"+v.payload.amount).pipe((0,M.U)(G=>(this.logger.info(G),this.store.dispatch((0,E.Ni)({payload:{action:"GetQueryRoutes",status:A.Bn.COMPLETED}})),{type:A.AB.SET_QUERY_ROUTES_CLN,payload:G})),(0,l.K)(G=>(this.store.dispatch((0,E.kL)({payload:{routes:[]}})),this.handleErrorWithAlert("GetQueryRoutes",A.m6.NO_SPINNER,"Get Query Routes Failed",this.CHILD_API_URL+N.NZ.NETWORK_API+"/getRoute/"+v.payload.destPubkey+"/"+v.payload.amount,G),(0,y.of)({type:A.pg.VOID})))))))),this.setQueryRoutesCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.SET_QUERY_ROUTES_CLN),(0,M.U)(v=>v.payload)),{dispatch:!1}),this.peerLookupCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.PEER_LOOKUP_CLN),(0,C.z)(v=>(this.store.dispatch((0,O.ac)({payload:A.m6.SEARCHING_NODE})),this.store.dispatch((0,E.Ni)({payload:{action:"Lookup",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+N.NZ.NETWORK_API+"/listNode/"+v.payload).pipe((0,M.U)(G=>(this.logger.info(G),this.store.dispatch((0,E.Ni)({payload:{action:"Lookup",status:A.Bn.COMPLETED}})),this.store.dispatch((0,O.uO)({payload:A.m6.SEARCHING_NODE})),{type:A.AB.SET_LOOKUP_CLN,payload:G})),(0,l.K)(G=>(this.handleErrorWithAlert("Lookup",A.m6.SEARCHING_NODE,"Peer Lookup Failed",this.CHILD_API_URL+N.NZ.NETWORK_API+"/listNode/"+v.payload,G),(0,y.of)({type:A.pg.VOID})))))))),this.channelLookupCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.CHANNEL_LOOKUP_CLN),(0,C.z)(v=>(this.store.dispatch((0,O.ac)({payload:v.payload.uiMessage})),this.store.dispatch((0,E.Ni)({payload:{action:"Lookup",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+N.NZ.NETWORK_API+"/listChannel/"+v.payload.shortChannelID).pipe((0,M.U)(G=>(this.logger.info(G),this.store.dispatch((0,E.Ni)({payload:{action:"Lookup",status:A.Bn.COMPLETED}})),this.store.dispatch((0,O.uO)({payload:v.payload.uiMessage})),{type:A.AB.SET_LOOKUP_CLN,payload:G})),(0,l.K)(G=>(v.payload.showError?this.handleErrorWithAlert("Lookup",v.payload.uiMessage,"Channel Lookup Failed",this.CHILD_API_URL+N.NZ.NETWORK_API+"/listChannel/"+v.payload.shortChannelID,G):this.store.dispatch((0,O.uO)({payload:v.payload.uiMessage})),this.store.dispatch((0,E.v_)({payload:[]})),(0,y.of)({type:A.pg.VOID})))))))),this.invoiceLookupCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.INVOICE_LOOKUP_CLN),(0,C.z)(v=>(this.store.dispatch((0,O.ac)({payload:A.m6.SEARCHING_INVOICE})),this.store.dispatch((0,E.Ni)({payload:{action:"Lookup",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+N.NZ.INVOICES_API+"?label="+v.payload).pipe((0,M.U)(G=>(this.logger.info(G),this.store.dispatch((0,E.Ni)({payload:{action:"Lookup",status:A.Bn.COMPLETED}})),this.store.dispatch((0,O.uO)({payload:A.m6.SEARCHING_INVOICE})),G.invoices&&G.invoices.length&&G.invoices.length>0&&this.store.dispatch((0,E.aL)({payload:G.invoices[0]})),{type:A.AB.SET_LOOKUP_CLN,payload:G.invoices&&G.invoices.length&&G.invoices.length>0?G.invoices[0]:G})),(0,l.K)(G=>(this.handleErrorWithoutAlert("Lookup",A.m6.SEARCHING_INVOICE,"Invoice Lookup Failed",G),this.store.dispatch((0,O.jW)({payload:{message:"Invoice Refresh Failed.",type:"ERROR"}})),(0,y.of)({type:A.pg.VOID})))))))),this.setLookupCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.SET_LOOKUP_CLN),(0,M.U)(v=>(this.logger.info(v.payload),v.payload))),{dispatch:!1}),this.fetchForwardingHistoryCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.GET_FORWARDING_HISTORY_CLN),(0,C.z)(v=>{const G=v.payload.status?v.payload.status:"settled",F=v.payload.maxLen?v.payload.maxLen:100,U=v.payload.offset?v.payload.offset:0,ye=G.charAt(0).toUpperCase();return this.store.dispatch((0,E.Ni)({payload:{action:"FetchForwardingHistory"+ye,status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+N.NZ.CHANNELS_API+"/listForwardsPaginated?status="+G+"&maxLen="+F+"&offset="+U).pipe((0,M.U)(Ce=>(this.logger.info(Ce),this.store.dispatch((0,E.Ni)({payload:{action:"FetchForwardingHistory"+ye,status:A.Bn.COMPLETED}})),{type:A.AB.SET_FORWARDING_HISTORY_CLN,payload:{status:G,response:Ce}})),(0,l.K)(Ce=>(this.handleErrorWithAlert("FetchForwardingHistory"+ye,A.m6.NO_SPINNER,"Get "+G+" Forwarding History Failed",this.CHILD_API_URL+N.NZ.CHANNELS_API+"/listForwardsPaginated?status="+G,Ce),(0,y.of)({type:A.pg.VOID}))))}))),this.deleteExpiredInvoiceCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.DELETE_EXPIRED_INVOICE_CLN),(0,C.z)(v=>(this.store.dispatch((0,O.ac)({payload:A.m6.DELETE_INVOICE})),this.httpClient.delete(this.CHILD_API_URL+N.NZ.INVOICES_API+(v.payload?"?maxexpiry="+v.payload:"")).pipe((0,M.U)(F=>(this.logger.info(F),this.store.dispatch((0,O.uO)({payload:A.m6.DELETE_INVOICE})),this.store.dispatch((0,O.jW)({payload:"Invoices Deleted Successfully!"})),{type:A.AB.FETCH_INVOICES_CLN,payload:{num_max_invoices:1e6,reversed:!0}})),(0,l.K)(F=>(this.handleErrorWithAlert("DeleteInvoices",A.m6.DELETE_INVOICE,"Delete Invoice Failed",this.CHILD_API_URL+N.NZ.INVOICES_API,F),(0,y.of)({type:A.pg.VOID})))))))),this.saveNewInvoiceCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.SAVE_NEW_INVOICE_CLN),(0,C.z)(v=>(this.store.dispatch((0,O.ac)({payload:A.m6.ADD_INVOICE})),this.store.dispatch((0,E.Ni)({payload:{action:"SaveNewInvoice",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+N.NZ.INVOICES_API,{label:v.payload.label,amount:v.payload.amount,description:v.payload.description,expiry:v.payload.expiry,private:v.payload.private}).pipe((0,M.U)(G=>(this.logger.info(G),this.store.dispatch((0,E.Ni)({payload:{action:"SaveNewInvoice",status:A.Bn.COMPLETED}})),this.store.dispatch((0,O.uO)({payload:A.m6.ADD_INVOICE})),G.msatoshi=v.payload.amount,G.label=v.payload.label,G.expires_at=Math.round((new Date).getTime()/1e3+v.payload.expiry),G.description=v.payload.description,G.status="unpaid",setTimeout(()=>{this.store.dispatch((0,O.qR)({payload:{data:{invoice:G,newlyAdded:!0,component:D.y}}}))},100),{type:A.AB.ADD_INVOICE_CLN,payload:G})),(0,l.K)(G=>(this.handleErrorWithoutAlert("SaveNewInvoice",A.m6.ADD_INVOICE,"Add Invoice Failed.",G),(0,y.of)({type:A.pg.VOID})))))))),this.saveNewOfferCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.SAVE_NEW_OFFER_CLN),(0,C.z)(v=>(this.store.dispatch((0,O.ac)({payload:A.m6.CREATE_OFFER})),this.store.dispatch((0,E.Ni)({payload:{action:"SaveNewOffer",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+N.NZ.OFFERS_API,{amount:v.payload.amount,description:v.payload.description,vendor:v.payload.vendor}).pipe((0,M.U)(G=>(this.logger.info(G),this.store.dispatch((0,E.Ni)({payload:{action:"SaveNewOffer",status:A.Bn.COMPLETED}})),this.store.dispatch((0,O.uO)({payload:A.m6.CREATE_OFFER})),setTimeout(()=>{this.store.dispatch((0,O.qR)({payload:{data:{offer:G,newlyAdded:!0,component:w.k}}}))},100),{type:A.AB.ADD_OFFER_CLN,payload:G})),(0,l.K)(G=>(this.handleErrorWithoutAlert("SaveNewOffer",A.m6.CREATE_OFFER,"Create Offer Failed.",G),(0,y.of)({type:A.pg.VOID})))))))),this.invoicesFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.FETCH_INVOICES_CLN),(0,C.z)(v=>(this.store.dispatch((0,E.Ni)({payload:{action:"FetchInvoices",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+N.NZ.INVOICES_API+"?num_max_invoices="+(v.payload.num_max_invoices?v.payload.num_max_invoices:1e6)+"&index_offset="+(v.payload.index_offset?v.payload.index_offset:0)+"&reversed="+(!v.payload.reversed||v.payload.reversed)).pipe((0,M.U)(ye=>(this.logger.info(ye),this.store.dispatch((0,E.Ni)({payload:{action:"FetchInvoices",status:A.Bn.COMPLETED}})),{type:A.AB.SET_INVOICES_CLN,payload:ye})),(0,l.K)(ye=>(this.handleErrorWithoutAlert("FetchInvoices",A.m6.NO_SPINNER,"Fetching Invoices Failed.",ye),(0,y.of)({type:A.pg.VOID})))))))),this.offersFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.FETCH_OFFERS_CLN),(0,C.z)(v=>(this.store.dispatch((0,E.Ni)({payload:{action:"FetchOffers",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+N.NZ.OFFERS_API).pipe((0,M.U)(G=>(this.logger.info(G),this.store.dispatch((0,E.Ni)({payload:{action:"FetchOffers",status:A.Bn.COMPLETED}})),{type:A.AB.SET_OFFERS_CLN,payload:G.offers?G.offers:[]})),(0,l.K)(G=>(this.handleErrorWithoutAlert("FetchOffers",A.m6.NO_SPINNER,"Fetching Offers Failed.",G),(0,y.of)({type:A.pg.VOID})))))))),this.offersDisableCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.DISABLE_OFFER_CLN),(0,C.z)(v=>(this.store.dispatch((0,O.ac)({payload:A.m6.DISABLE_OFFER})),this.store.dispatch((0,E.Ni)({payload:{action:"DisableOffer",status:A.Bn.INITIATED}})),this.httpClient.delete(this.CHILD_API_URL+N.NZ.OFFERS_API+"/"+v.payload.offer_id).pipe((0,M.U)(G=>(this.logger.info(G),this.store.dispatch((0,E.Ni)({payload:{action:"DisableOffer",status:A.Bn.COMPLETED}})),this.store.dispatch((0,O.uO)({payload:A.m6.DISABLE_OFFER})),this.store.dispatch((0,O.jW)({payload:"Offer Disabled Successfully!"})),{type:A.AB.UPDATE_OFFER_CLN,payload:{offer:G}})),(0,l.K)(G=>(this.handleErrorWithoutAlert("DisableOffer",A.m6.DISABLE_OFFER,"Disabling Offer Failed.",G),(0,y.of)({type:A.pg.VOID})))))))),this.offerBookmarksFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.FETCH_OFFER_BOOKMARKS_CLN),(0,C.z)(v=>(this.store.dispatch((0,E.Ni)({payload:{action:"FetchOfferBookmarks",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+N.NZ.OFFERS_API+"/offerbookmarks").pipe((0,M.U)(G=>(this.logger.info(G),this.store.dispatch((0,E.Ni)({payload:{action:"FetchOfferBookmarks",status:A.Bn.COMPLETED}})),{type:A.AB.SET_OFFER_BOOKMARKS_CLN,payload:G||[]})),(0,l.K)(G=>(this.handleErrorWithoutAlert("FetchOfferBookmarks",A.m6.NO_SPINNER,"Fetching Offer Bookmarks Failed.",G),(0,y.of)({type:A.pg.VOID})))))))),this.peidOffersDeleteCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.DELETE_OFFER_BOOKMARK_CLN),(0,C.z)(v=>(this.store.dispatch((0,O.ac)({payload:A.m6.DELETE_OFFER_BOOKMARK})),this.store.dispatch((0,E.Ni)({payload:{action:"DeleteOfferBookmark",status:A.Bn.INITIATED}})),this.httpClient.delete(this.CHILD_API_URL+N.NZ.OFFERS_API+"/offerbookmark/"+v.payload.bolt12).pipe((0,M.U)(G=>(this.logger.info(G),this.store.dispatch((0,E.Ni)({payload:{action:"DeleteOfferBookmark",status:A.Bn.COMPLETED}})),this.store.dispatch((0,O.uO)({payload:A.m6.DELETE_OFFER_BOOKMARK})),this.store.dispatch((0,O.jW)({payload:"Offer Bookmark Deleted Successfully!"})),{type:A.AB.REMOVE_OFFER_BOOKMARK_CLN,payload:{bolt12:v.payload.bolt12}})),(0,l.K)(G=>(this.handleErrorWithAlert("DeleteOfferBookmark",A.m6.DELETE_OFFER_BOOKMARK,"Deleting Offer Bookmark Failed.",this.CHILD_API_URL+N.NZ.OFFERS_API+"/offerbookmark/"+v.payload.bolt12,G),(0,y.of)({type:A.pg.VOID})))))))),this.SetChannelTransactionCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.SET_CHANNEL_TRANSACTION_CLN),(0,C.z)(v=>(this.store.dispatch((0,O.ac)({payload:A.m6.SEND_FUNDS})),this.store.dispatch((0,E.Ni)({payload:{action:"SetChannelTransaction",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+N.NZ.ON_CHAIN_API,v.payload).pipe((0,M.U)(G=>(this.logger.info(G),this.store.dispatch((0,E.Ni)({payload:{action:"SetChannelTransaction",status:A.Bn.COMPLETED}})),this.store.dispatch((0,O.uO)({payload:A.m6.SEND_FUNDS})),this.store.dispatch((0,E.EG)()),this.store.dispatch((0,E.Ly)()),{type:A.AB.SET_CHANNEL_TRANSACTION_RES_CLN,payload:G})),(0,l.K)(G=>(this.handleErrorWithoutAlert("SetChannelTransaction",A.m6.SEND_FUNDS,"Sending Fund Failed.",G),(0,y.of)({type:A.pg.VOID})))))))),this.utxosFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.FETCH_UTXOS_CLN),(0,C.z)(()=>(this.store.dispatch((0,E.Ni)({payload:{action:"FetchUTXOs",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+N.NZ.ON_CHAIN_API+"/utxos"))),(0,M.U)(v=>(this.logger.info(v),this.store.dispatch((0,E.Ni)({payload:{action:"FetchUTXOs",status:A.Bn.COMPLETED}})),{type:A.AB.SET_UTXOS_CLN,payload:v.outputs||[]})),(0,l.K)(v=>(this.handleErrorWithoutAlert("FetchUTXOs",A.m6.NO_SPINNER,"Fetching UTXOs Failed.",v),(0,y.of)({type:A.pg.VOID}))))),this.store.select(P.yA).pipe((0,o.R)(this.unSubs[0])).subscribe(v=>{v.FetchInfo.status!==A.Bn.COMPLETED&&v.FetchInfo.status!==A.Bn.ERROR||v.FetchFees.status!==A.Bn.COMPLETED&&v.FetchFees.status!==A.Bn.ERROR||v.FetchChannels.status!==A.Bn.COMPLETED&&v.FetchChannels.status!==A.Bn.ERROR||v.FetchBalance.status!==A.Bn.COMPLETED&&v.FetchBalance.status!==A.Bn.ERROR||v.FetchLocalRemoteBalance.status!==A.Bn.COMPLETED&&v.FetchLocalRemoteBalance.status!==A.Bn.ERROR||this.flgInitialized||(this.store.dispatch((0,O.uO)({payload:A.m6.INITALIZE_NODE_DATA})),this.flgInitialized=!0)}),this.wsService.clWSMessages.pipe((0,o.R)(this.unSubs[1])).subscribe(v=>{if(this.logger.info("Received new message from the service: "+JSON.stringify(v)),v)switch(v.event){case A.nM.INVOICE:this.logger.info(v),v&&v.data&&v.data.label&&this.store.dispatch((0,E.aL)({payload:v.data}));break;case A.nM.SEND_PAYMENT:case A.nM.BLOCK_HEIGHT:this.logger.info(v);break;default:this.logger.info("Received Event from WS: "+JSON.stringify(v))}})}initializeRemainingData(i,a){this.sessionService.setItem("clUnlocked","true");const p={identity_pubkey:i.id,alias:i.alias,testnet:"testnet"===i.network.toLowerCase(),chains:i.chains,uris:i.uris,version:i.version,api_version:i.api_version,numberOfPendingChannels:i.num_pending_channels};this.store.dispatch((0,O.ac)({payload:A.m6.INITALIZE_NODE_DATA})),this.store.dispatch((0,O._V)({payload:p}));let u=this.location.path();u.includes("/lnd/")?u=u.replace("/lnd/","/cln/"):u.includes("/ecl/")&&(u=u.replace("/ecl/","/cln/")),(u.includes("/login")||u.includes("/error")||""===u||"HOME"===a||u.includes("?access-key="))&&(u="/cln/home"),this.router.navigate([u]),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(i,a,p,u){if(this.logger.error("ERROR IN: "+i+"\n"+JSON.stringify(u)),401===u.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,O.ts)()),this.store.dispatch((0,O.kS)()),this.store.dispatch((0,O.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,O.uO)({payload:a}));const _=this.commonService.extractErrorMessage(u,p);this.store.dispatch((0,E.Ni)({payload:{action:i,status:A.Bn.ERROR,statusCode:u.status.toString(),message:_}}))}}handleErrorWithAlert(i,a,p,u,_){if(this.logger.error(_),401===_.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,O.ts)()),this.store.dispatch((0,O.kS)()),this.store.dispatch((0,O.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,O.uO)({payload:a}));const L=this.commonService.extractErrorMessage(_);this.store.dispatch((0,O.qR)({payload:{data:{type:"ERROR",alertTitle:p,message:{code:_.status,message:L,URL:u},component:s.H}}})),this.store.dispatch((0,E.Ni)({payload:{action:i,status:A.Bn.ERROR,statusCode:_.status.toString(),message:L,URL:u}}))}}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}}return ae.\u0275fac=function(i){return new(i||ae)(Z.LFG(e.eX),Z.LFG(j.eN),Z.LFG(W.yh),Z.LFG(ie.m),Z.LFG(ee.v),Z.LFG(_e.mQ),Z.LFG(ce.F0),Z.LFG(re.d),Z.LFG(de.Ye))},ae.\u0275prov=Z.Yz7({token:ae,factory:ae.\u0275fac}),ae})()},9828:(Ve,Q,m)=>{"use strict";m.d(Q,{lw:()=>y,ey:()=>C,yA:()=>M,PP:()=>l,Wi:()=>N,JG:()=>s,zm:()=>D,hx:()=>A,gc:()=>O,T4:()=>E,ZW:()=>P,Rn:()=>w,Wj:()=>Z,Bo:()=>j,xQ:()=>W,lK:()=>ie,OL:()=>ee,jK:()=>_e,Ao:()=>ce,Hz:()=>re,Y_:()=>de,EQ:()=>oe});var e=m(5620);const t=(0,e.ZF)("cln"),y=(0,e.P1)(t,b=>b.nodeSettings),C=(0,e.P1)(t,b=>b.information),M=((0,e.P1)(t,b=>b.apisCallStatus.FetchInfo),(0,e.P1)(t,b=>b.apisCallStatus)),l=(0,e.P1)(t,b=>({payments:b.payments,apiCallStatus:b.apisCallStatus.FetchPayments})),N=(0,e.P1)(t,b=>({peers:b.peers,apiCallStatus:b.apisCallStatus.FetchPeers})),s=(0,e.P1)(t,b=>({fees:b.fees,apiCallStatus:b.apisCallStatus.FetchFees})),D=(0,e.P1)(t,b=>({feeRatesPerKB:b.feeRatesPerKB,apiCallStatus:b.apisCallStatus.FetchFeeRatesperkb})),A=(0,e.P1)(t,b=>({feeRatesPerKW:b.feeRatesPerKW,apiCallStatus:b.apisCallStatus.FetchFeeRatesperkw})),O=(0,e.P1)(t,b=>({listInvoices:b.invoices,apiCallStatus:b.apisCallStatus.FetchInvoices})),E=(0,e.P1)(t,b=>({utxos:b.utxos,apiCallStatus:b.apisCallStatus.FetchUTXOs})),P=(0,e.P1)(t,b=>({activeChannels:b.activeChannels,pendingChannels:b.pendingChannels,inactiveChannels:b.inactiveChannels,apiCallStatus:b.apisCallStatus.FetchChannels})),w=(0,e.P1)(t,b=>({balance:b.balance,apiCallStatus:b.apisCallStatus.FetchBalance})),Z=(0,e.P1)(t,b=>({localRemoteBalance:b.localRemoteBalance,apiCallStatus:b.apisCallStatus.FetchLocalRemoteBalance})),j=(0,e.P1)(t,b=>({forwardingHistory:b.forwardingHistory,apiCallStatus:b.apisCallStatus.FetchForwardingHistoryS})),W=(0,e.P1)(t,b=>({failedForwardingHistory:b.failedForwardingHistory,apiCallStatus:b.apisCallStatus.FetchForwardingHistoryF})),ie=(0,e.P1)(t,b=>({localFailedForwardingHistory:b.localFailedForwardingHistory,apiCallStatus:b.apisCallStatus.FetchForwardingHistoryL})),ee=(0,e.P1)(t,b=>({information:b.information,nodeSettings:b.nodeSettings,balance:b.balance})),_e=(0,e.P1)(t,b=>({information:b.information,balance:b.balance,numPeers:b.peers.length})),ce=(0,e.P1)(t,b=>({information:b.information,balance:b.balance})),re=(0,e.P1)(t,b=>({information:b.information,nodeSettings:b.nodeSettings,apisCallStatus:[b.apisCallStatus.FetchInfo,b.apisCallStatus.FetchForwardingHistoryS]})),de=(0,e.P1)(t,b=>({offers:b.offers,apiCallStatus:b.apisCallStatus.FetchOffers})),oe=(0,e.P1)(t,b=>({offersBookmarks:b.offersBookmarks,apiCallStatus:b.apisCallStatus.FetchOfferBookmarks}))},5566:(Ve,Q,m)=>{"use strict";m.d(Q,{y:()=>vt});var e=m(8966),t=m(801),y=m(7579),C=m(2722),o=m(7731),M=m(9828),l=m(5e3),N=m(5043),s=m(62),D=m(7261),A=m(5620),O=m(7093),E=m(9808),P=m(3322),w=m(9224),Z=m(9444),j=m(7423),W=m(4834),ie=m(159),ee=m(7238),_e=m(773),ce=m(3390),re=m(6895);function de(Re,Ne){if(1&Re&&l._UZ(0,"qr-code",33),2&Re){const he=l.oxw();l.Q6J("value",(null==he.invoice?null:he.invoice.bolt11)||(null==he.invoice?null:he.invoice.bolt12))("size",he.qrWidth)("errorCorrectionLevel","L")}}function oe(Re,Ne){1&Re&&(l.TgZ(0,"span",34),l._uU(1,"N/A"),l.qZA())}const ae=function(Re){return{"mr-0":Re}};function b(Re,Ne){if(1&Re&&l._UZ(0,"span",35),2&Re){const he=l.oxw();l.Q6J("ngClass",l.VKq(1,ae,he.screenSize===he.screenSizeEnum.XS))}}function i(Re,Ne){if(1&Re&&l._UZ(0,"span",36),2&Re){const he=l.oxw();l.Q6J("ngClass",l.VKq(1,ae,he.screenSize===he.screenSizeEnum.XS))}}function a(Re,Ne){if(1&Re&&l._UZ(0,"span",37),2&Re){const he=l.oxw();l.Q6J("ngClass",l.VKq(1,ae,he.screenSize===he.screenSizeEnum.XS))}}function p(Re,Ne){if(1&Re&&l._UZ(0,"qr-code",33),2&Re){const he=l.oxw();l.Q6J("value",(null==he.invoice?null:he.invoice.bolt11)||(null==he.invoice?null:he.invoice.bolt12))("size",he.qrWidth)("errorCorrectionLevel","L")}}function u(Re,Ne){1&Re&&(l.TgZ(0,"span",38),l._uU(1,"QR Code Not Applicable"),l.qZA())}function _(Re,Ne){1&Re&&l._UZ(0,"mat-divider",39),2&Re&&l.Q6J("inset",!0)}function L(Re,Ne){if(1&Re&&(l.TgZ(0,"div",19),l.TgZ(1,"div",40),l._UZ(2,"fa-icon",41),l.TgZ(3,"span"),l._uU(4),l.qZA(),l.qZA(),l.qZA()),2&Re){const he=l.oxw();l.xp6(2),l.Q6J("icon",he.faExclamationTriangle),l.xp6(2),l.Oqu(null==he.invoice?null:he.invoice.warning_capacity)}}function I(Re,Ne){1&Re&&(l.ynx(0),l._uU(1," (zero amount) "),l.BQk())}function x(Re,Ne){1&Re&&l._UZ(0,"span",47)}const r=function(){return[]};function v(Re,Ne){if(1&Re&&(l.TgZ(0,"div",43),l.TgZ(1,"div",44),l.TgZ(2,"span",45),l._uU(3),l.ALo(4,"number"),l.qZA(),l.YNc(5,x,1,0,"span",46),l.qZA(),l.qZA()),2&Re){const he=l.oxw(2);l.xp6(3),l.hij("",l.lcZ(4,2,(null==he.invoice?null:he.invoice.msatoshi_received)/1e3)," Sats"),l.xp6(2),l.Q6J("ngForOf",l.DdM(4,r).constructor(35))}}function G(Re,Ne){if(1&Re&&(l.TgZ(0,"div"),l._uU(1),l.ALo(2,"number"),l.qZA()),2&Re){const he=l.oxw(2);l.xp6(1),l.hij("",l.lcZ(2,1,(null==he.invoice?null:he.invoice.msatoshi_received)/1e3)," Sats")}}function F(Re,Ne){if(1&Re&&(l.ynx(0),l.YNc(1,v,6,5,"div",42),l.YNc(2,G,3,3,"div",23),l.BQk()),2&Re){const he=l.oxw();l.xp6(1),l.Q6J("ngIf",he.flgInvoicePaid),l.xp6(1),l.Q6J("ngIf",!he.flgInvoicePaid)}}function U(Re,Ne){1&Re&&(l.TgZ(0,"span"),l._uU(1,"-"),l.qZA())}function ye(Re,Ne){1&Re&&l._UZ(0,"mat-spinner",49),2&Re&&l.Q6J("diameter",20)}function Ce(Re,Ne){if(1&Re&&(l.ynx(0),l.YNc(1,U,2,0,"span",23),l.YNc(2,ye,1,1,"mat-spinner",48),l.BQk()),2&Re){const he=l.oxw();l.xp6(1),l.Q6J("ngIf","unpaid"!==(null==he.invoice?null:he.invoice.status)||!he.flgVersionCompatible),l.xp6(1),l.Q6J("ngIf","unpaid"===(null==he.invoice?null:he.invoice.status)&&he.flgVersionCompatible)}}function Be(Re,Ne){if(1&Re&&(l.TgZ(0,"div"),l._UZ(1,"mat-divider",25),l.TgZ(2,"div",19),l.TgZ(3,"div",26),l.TgZ(4,"h4",21),l._uU(5,"Payment Hash"),l.qZA(),l.TgZ(6,"span",24),l._uU(7),l.qZA(),l.qZA(),l.qZA(),l._UZ(8,"mat-divider",25),l.TgZ(9,"div",19),l.TgZ(10,"div",26),l.TgZ(11,"h4",21),l._uU(12,"Label"),l.qZA(),l.TgZ(13,"span",24),l._uU(14),l.qZA(),l.qZA(),l.qZA(),l._UZ(15,"mat-divider",25),l.qZA()),2&Re){const he=l.oxw();l.xp6(7),l.Oqu(null==he.invoice?null:he.invoice.payment_hash),l.xp6(7),l.Oqu(null==he.invoice?null:he.invoice.label)}}function ze(Re,Ne){1&Re&&(l.TgZ(0,"p"),l._uU(1,"Show Advanced"),l.qZA())}function Ie(Re,Ne){1&Re&&(l.TgZ(0,"p"),l._uU(1,"Hide Advanced"),l.qZA())}function K(Re,Ne){if(1&Re){const he=l.EpF();l.TgZ(0,"button",50),l.NdJ("copied",function(ke){return l.CHM(he),l.oxw().onCopyPayment(ke)}),l._uU(1,"Copy Invoice"),l.qZA()}if(2&Re){const he=l.oxw();l.Q6J("payload",(null==he.invoice?null:he.invoice.bolt11)||(null==he.invoice?null:he.invoice.bolt12))}}function Me(Re,Ne){if(1&Re){const he=l.EpF();l.TgZ(0,"button",51),l.NdJ("click",function(){return l.CHM(he),l.oxw().onClose()}),l._uU(1,"OK"),l.qZA()}}const we=function(Re){return{"display-none":Re}},z=function(Re){return{"xs-scroll-y":Re}},Ge=function(Re,Ne){return{"mt-2":Re,"mt-1":Ne}};let vt=(()=>{class Re{constructor(he,Le,ke,q,$,le){this.dialogRef=he,this.data=Le,this.logger=ke,this.commonService=q,this.snackBar=$,this.store=le,this.faReceipt=t.dLy,this.faExclamationTriangle=t.eHv,this.showAdvanced=!1,this.newlyAdded=!1,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=o.cu,this.flgInvoicePaid=!1,this.flgVersionCompatible=!0,this.unSubs=[new y.x,new y.x,new y.x,new y.x,new y.x]}ngOnInit(){this.invoice=this.data.invoice,this.newlyAdded=this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===o.cu.XS&&(this.qrWidth=220),this.store.select(M.ey).pipe((0,C.R)(this.unSubs[0])).subscribe(he=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(he.api_version,"0.6.0")}),this.store.select(M.gc).pipe((0,C.R)(this.unSubs[1])).subscribe(he=>{const Le=this.invoice.status;this.invoice=(he.listInvoices.invoices||[]).find(q=>q.payment_hash===this.invoice.payment_hash),Le!==this.invoice.status&&"paid"===this.invoice.status&&(this.flgInvoicePaid=!0,setTimeout(()=>{this.flgInvoicePaid=!1},4e3)),this.logger.info(he)})}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyPayment(he){this.snackBar.open("Invoice copied."),this.logger.info("Copied Text: "+he)}ngOnDestroy(){this.unSubs.forEach(he=>{he.next(null),he.complete()})}}return Re.\u0275fac=function(he){return new(he||Re)(l.Y36(e.so),l.Y36(e.WI),l.Y36(N.mQ),l.Y36(s.v),l.Y36(D.ux),l.Y36(A.yh))},Re.\u0275cmp=l.Xpm({type:Re,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(he,Le){if(1&he&&(l.TgZ(0,"div",0),l.TgZ(1,"div",1),l.YNc(2,de,1,3,"qr-code",2),l.YNc(3,oe,2,0,"span",3),l.qZA(),l.TgZ(4,"div",4),l.TgZ(5,"mat-card-header",5),l.TgZ(6,"div",6),l._UZ(7,"fa-icon",7),l.TgZ(8,"span",8),l._uU(9),l.YNc(10,b,1,3,"span",9),l.YNc(11,i,1,3,"span",10),l.YNc(12,a,1,3,"span",11),l.qZA(),l.qZA(),l.TgZ(13,"button",12),l.NdJ("click",function(){return Le.onClose()}),l._uU(14,"X"),l.qZA(),l.qZA(),l.TgZ(15,"mat-card-content",13),l.TgZ(16,"div",14),l.TgZ(17,"div",15),l.YNc(18,p,1,3,"qr-code",2),l.YNc(19,u,2,0,"span",16),l.qZA(),l.YNc(20,_,1,1,"mat-divider",17),l.YNc(21,L,5,2,"div",18),l.TgZ(22,"div",19),l.TgZ(23,"div",20),l.TgZ(24,"h4",21),l._uU(25),l.qZA(),l.TgZ(26,"span",22),l._uU(27),l.ALo(28,"number"),l.YNc(29,I,2,0,"ng-container",23),l.qZA(),l.qZA(),l.TgZ(30,"div",20),l.TgZ(31,"h4",21),l._uU(32,"Amount Received"),l.qZA(),l.TgZ(33,"span",24),l.YNc(34,F,3,2,"ng-container",23),l.YNc(35,Ce,3,2,"ng-container",23),l.qZA(),l.qZA(),l.qZA(),l._UZ(36,"mat-divider",25),l.TgZ(37,"div",19),l.TgZ(38,"div",20),l.TgZ(39,"h4",21),l._uU(40,"Date Expiry"),l.qZA(),l.TgZ(41,"span",22),l._uU(42),l.ALo(43,"date"),l.qZA(),l.qZA(),l.TgZ(44,"div",20),l.TgZ(45,"h4",21),l._uU(46,"Date Settled"),l.qZA(),l.TgZ(47,"span",22),l._uU(48),l.ALo(49,"date"),l.qZA(),l.qZA(),l.qZA(),l._UZ(50,"mat-divider",25),l.TgZ(51,"div",19),l.TgZ(52,"div",26),l.TgZ(53,"h4",21),l._uU(54,"Description"),l.qZA(),l.TgZ(55,"span",22),l._uU(56),l.qZA(),l.qZA(),l.qZA(),l._UZ(57,"mat-divider",25),l.TgZ(58,"div",19),l.TgZ(59,"div",26),l.TgZ(60,"h4",21),l._uU(61),l.qZA(),l.TgZ(62,"span",24),l._uU(63),l.qZA(),l.qZA(),l.qZA(),l.YNc(64,Be,16,2,"div",23),l.TgZ(65,"div",27),l.TgZ(66,"button",28),l.NdJ("click",function(){return Le.onShowAdvanced()}),l.YNc(67,ze,2,0,"p",29),l.YNc(68,Ie,2,0,"ng-template",null,30,l.W1O),l.qZA(),l.YNc(70,K,2,1,"button",31),l.YNc(71,Me,2,0,"button",32),l.qZA(),l.qZA(),l.qZA(),l.qZA(),l.qZA()),2&he){const ke=l.MAs(69);l.xp6(1),l.Q6J("fxLayoutAlign",null!=Le.invoice&&Le.invoice.bolt11&&""!==(null==Le.invoice?null:Le.invoice.bolt11)||null!=Le.invoice&&Le.invoice.bolt12&&""!==(null==Le.invoice?null:Le.invoice.bolt12)?"center start":"center center")("ngClass",l.VKq(40,we,Le.screenSize===Le.screenSizeEnum.XS||Le.screenSize===Le.screenSizeEnum.SM)),l.xp6(1),l.Q6J("ngIf",(null==Le.invoice?null:Le.invoice.bolt11)&&""!==(null==Le.invoice?null:Le.invoice.bolt11)||(null==Le.invoice?null:Le.invoice.bolt12)&&""!==(null==Le.invoice?null:Le.invoice.bolt12)),l.xp6(1),l.Q6J("ngIf",!(null!=Le.invoice&&Le.invoice.bolt11||null!=Le.invoice&&Le.invoice.bolt12)),l.xp6(4),l.Q6J("icon",Le.faReceipt),l.xp6(2),l.hij(" ",Le.screenSize===Le.screenSizeEnum.XS?Le.newlyAdded?"Created":"Invoice":Le.newlyAdded?"Invoice Created":"Invoice Information"," "),l.xp6(1),l.Q6J("ngIf","paid"===(null==Le.invoice?null:Le.invoice.status)),l.xp6(1),l.Q6J("ngIf","unpaid"===(null==Le.invoice?null:Le.invoice.status)),l.xp6(1),l.Q6J("ngIf","expired"===(null==Le.invoice?null:Le.invoice.status)),l.xp6(3),l.Q6J("ngClass",l.VKq(42,z,Le.screenSize===Le.screenSizeEnum.XS)),l.xp6(2),l.Q6J("fxLayoutAlign",null!=Le.invoice&&Le.invoice.bolt11&&""!==(null==Le.invoice?null:Le.invoice.bolt11)||null!=Le.invoice&&Le.invoice.bolt12&&""!==(null==Le.invoice?null:Le.invoice.bolt12)?"center start":"center center")("ngClass",l.VKq(44,we,Le.screenSize!==Le.screenSizeEnum.XS&&Le.screenSize!==Le.screenSizeEnum.SM)),l.xp6(1),l.Q6J("ngIf",(null==Le.invoice?null:Le.invoice.bolt11)&&""!==(null==Le.invoice?null:Le.invoice.bolt11)||(null==Le.invoice?null:Le.invoice.bolt12)&&""!==(null==Le.invoice?null:Le.invoice.bolt12)),l.xp6(1),l.Q6J("ngIf",!(null!=Le.invoice&&Le.invoice.bolt11||null!=Le.invoice&&Le.invoice.bolt12)),l.xp6(1),l.Q6J("ngIf",Le.screenSize===Le.screenSizeEnum.XS||Le.screenSize===Le.screenSizeEnum.SM),l.xp6(1),l.Q6J("ngIf",null==Le.invoice?null:Le.invoice.warning_capacity),l.xp6(4),l.Oqu(Le.screenSize===Le.screenSizeEnum.XS?"Amount":"Amount Requested"),l.xp6(2),l.hij(" ",l.lcZ(28,32,(null==Le.invoice?null:Le.invoice.msatoshi)/1e3||0)," Sats"),l.xp6(2),l.Q6J("ngIf",!(null!=Le.invoice&&Le.invoice.msatoshi)||"0"===(null==Le.invoice?null:Le.invoice.msatoshi)),l.xp6(5),l.Q6J("ngIf","paid"===(null==Le.invoice?null:Le.invoice.status)),l.xp6(1),l.Q6J("ngIf","paid"!==(null==Le.invoice?null:Le.invoice.status)),l.xp6(7),l.Oqu(l.xi3(43,34,1e3*(null==Le.invoice?null:Le.invoice.expires_at),"dd/MMM/y HH:mm")),l.xp6(6),l.Oqu(l.xi3(49,37,1e3*(null==Le.invoice?null:Le.invoice.paid_at),"dd/MMM/y HH:mm")||"-"),l.xp6(8),l.Oqu((null==Le.invoice?null:Le.invoice.description)||"-"),l.xp6(5),l.hij("",null!=Le.invoice&&Le.invoice.bolt12?"Bolt12":null!=Le.invoice&&Le.invoice.bolt11&&!Le.invoice.label.includes("keysend-")?"Bolt11":"Keysend"," Invoice"),l.xp6(2),l.Oqu((null==Le.invoice?null:Le.invoice.bolt11)||(null==Le.invoice?null:Le.invoice.bolt12)),l.xp6(1),l.Q6J("ngIf",Le.showAdvanced),l.xp6(1),l.Q6J("ngClass",l.WLB(46,Ge,!Le.showAdvanced,Le.showAdvanced)),l.xp6(2),l.Q6J("ngIf",!Le.showAdvanced)("ngIfElse",ke),l.xp6(3),l.Q6J("ngIf",(null==Le.invoice?null:Le.invoice.bolt11)&&""!==(null==Le.invoice?null:Le.invoice.bolt11)||(null==Le.invoice?null:Le.invoice.bolt12)&&""!==(null==Le.invoice?null:Le.invoice.bolt12)),l.xp6(1),l.Q6J("ngIf",!(null!=Le.invoice&&Le.invoice.bolt11||null!=Le.invoice&&Le.invoice.bolt12))}},directives:[O.xw,O.Wh,O.yH,E.mk,P.oO,E.O5,w.dk,Z.BN,j.lW,w.dn,W.d,ie.uU,ee.gM,E.sg,_e.$g,ce.h,re.y],pipes:[E.JJ,E.uU],styles:[""]}),Re})()},1462:(Ve,Q,m)=>{"use strict";m.d(Q,{k:()=>U});var e=m(8966),t=m(801),y=m(7579),C=m(2722),o=m(7731),M=m(9828),l=m(5e3),N=m(5043),s=m(62),D=m(7261),A=m(5620),O=m(8104),E=m(7093),P=m(9808),w=m(3322),Z=m(9224),j=m(9444),W=m(7423),ie=m(4834),ee=m(159),_e=m(3390),ce=m(6895);function re(ye,Ce){if(1&ye&&l._UZ(0,"qr-code",28),2&ye){const Be=l.oxw();l.Q6J("value",null==Be.offer?null:Be.offer.bolt12)("size",Be.qrWidth)("errorCorrectionLevel","L")}}function de(ye,Ce){1&ye&&(l.TgZ(0,"span",29),l._uU(1,"N/A"),l.qZA())}function oe(ye,Ce){if(1&ye&&l._UZ(0,"qr-code",28),2&ye){const Be=l.oxw();l.Q6J("value",null==Be.offer?null:Be.offer.bolt12)("size",Be.qrWidth)("errorCorrectionLevel","L")}}function ae(ye,Ce){1&ye&&(l.TgZ(0,"span",30),l._uU(1,"QR Code Not Applicable"),l.qZA())}function b(ye,Ce){1&ye&&l._UZ(0,"mat-divider",31),2&ye&&l.Q6J("inset",!0)}function i(ye,Ce){1&ye&&l._UZ(0,"mat-divider",19)}function a(ye,Ce){if(1&ye&&(l.TgZ(0,"div",15),l.TgZ(1,"div",16),l.TgZ(2,"h4",17),l._uU(3,"Used"),l.qZA(),l.TgZ(4,"span",18),l._uU(5),l.qZA(),l.qZA(),l.TgZ(6,"div",16),l.TgZ(7,"h4",17),l._uU(8,"Single Use"),l.qZA(),l.TgZ(9,"span",18),l._uU(10),l.qZA(),l.qZA(),l.qZA()),2&ye){const Be=l.oxw(2);l.xp6(5),l.hij(" ",null!=Be.offer&&Be.offer.used?null!=Be.offer&&Be.offer.used?"Yes":"No":"N/K"," "),l.xp6(5),l.hij(" ",null!=Be.offer&&Be.offer.single_use?null!=Be.offer&&Be.offer.single_use?"Yes":"No":"N/K"," ")}}function p(ye,Ce){1&ye&&l._UZ(0,"mat-divider",19)}function u(ye,Ce){if(1&ye&&(l.TgZ(0,"div",15),l.TgZ(1,"div",20),l.TgZ(2,"h4",17),l._uU(3,"Vendor"),l.qZA(),l.TgZ(4,"span",34),l._uU(5),l.qZA(),l.qZA(),l.qZA()),2&ye){const Be=l.oxw(2);l.xp6(5),l.Oqu((null==Be.offerDecoded?null:Be.offerDecoded.vendor)||(null==Be.offerDecoded?null:Be.offerDecoded.issuer))}}function _(ye,Ce){if(1&ye&&(l.TgZ(0,"div"),l.YNc(1,i,1,0,"mat-divider",32),l.YNc(2,a,11,2,"div",33),l.YNc(3,p,1,0,"mat-divider",32),l.YNc(4,u,6,1,"div",33),l._UZ(5,"mat-divider",19),l.TgZ(6,"div",15),l.TgZ(7,"div",20),l.TgZ(8,"h4",17),l._uU(9,"Offer ID"),l.qZA(),l.TgZ(10,"span",18),l._uU(11),l.qZA(),l.qZA(),l.qZA(),l._UZ(12,"mat-divider",19),l.qZA()),2&ye){const Be=l.oxw();l.xp6(1),l.Q6J("ngIf",(null==Be.offer?null:Be.offer.used)||(null==Be.offer?null:Be.offer.single_use)),l.xp6(1),l.Q6J("ngIf",(null==Be.offer?null:Be.offer.used)||(null==Be.offer?null:Be.offer.single_use)),l.xp6(1),l.Q6J("ngIf",(null==Be.offerDecoded?null:Be.offerDecoded.vendor)||(null==Be.offerDecoded?null:Be.offerDecoded.issuer)),l.xp6(1),l.Q6J("ngIf",(null==Be.offerDecoded?null:Be.offerDecoded.vendor)||(null==Be.offerDecoded?null:Be.offerDecoded.issuer)),l.xp6(7),l.Oqu(Be.offerDecoded.offer_id)}}function L(ye,Ce){1&ye&&(l.TgZ(0,"p"),l._uU(1,"Show Advanced"),l.qZA())}function I(ye,Ce){1&ye&&(l.TgZ(0,"p"),l._uU(1,"Hide Advanced"),l.qZA())}function x(ye,Ce){if(1&ye){const Be=l.EpF();l.TgZ(0,"button",35),l.NdJ("copied",function(Ie){return l.CHM(Be),l.oxw().onCopyOffer(Ie)}),l._uU(1,"Copy Offer"),l.qZA()}if(2&ye){const Be=l.oxw();l.Q6J("payload",null==Be.offer?null:Be.offer.bolt12)}}function r(ye,Ce){if(1&ye){const Be=l.EpF();l.TgZ(0,"button",36),l.NdJ("click",function(){return l.CHM(Be),l.oxw().onClose()}),l._uU(1,"OK"),l.qZA()}}const v=function(ye){return{"display-none":ye}},G=function(ye){return{"xs-scroll-y":ye}},F=function(ye,Ce){return{"mt-2":ye,"mt-1":Ce}};let U=(()=>{class ye{constructor(Be,ze,Ie,K,Me,we,z){this.dialogRef=Be,this.data=ze,this.logger=Ie,this.commonService=K,this.snackBar=Me,this.store=we,this.dataService=z,this.faReceipt=t.dLy,this.faExclamationTriangle=t.eHv,this.showAdvanced=!1,this.newlyAdded=!1,this.offerDecoded={},this.qrWidth=240,this.screenSize="",this.screenSizeEnum=o.cu,this.flgOfferPaid=!1,this.flgVersionCompatible=!0,this.unSubs=[new y.x,new y.x,new y.x,new y.x,new y.x]}ngOnInit(){this.offer=this.data.offer,this.newlyAdded=this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===o.cu.XS&&(this.qrWidth=220),this.store.select(M.ey).pipe((0,C.R)(this.unSubs[0])).subscribe(Be=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(Be.api_version,"0.6.0")}),this.dataService.decodePayment(this.offer.bolt12,!0).pipe((0,C.R)(this.unSubs[1])).subscribe(Be=>{this.offerDecoded=Be,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_msat.slice(0,-4))})}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyOffer(Be){this.snackBar.open("Offer copied."),this.logger.info("Copied Text: "+Be)}ngOnDestroy(){this.unSubs.forEach(Be=>{Be.next(null),Be.complete()})}}return ye.\u0275fac=function(Be){return new(Be||ye)(l.Y36(e.so),l.Y36(e.WI),l.Y36(N.mQ),l.Y36(s.v),l.Y36(D.ux),l.Y36(A.yh),l.Y36(O.D))},ye.\u0275cmp=l.Xpm({type:ye,selectors:[["rtl-cln-offer-information"]],decls:52,vars:33,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","35",1,"modal-qr-code-container","padding-gap-large",3,"fxLayoutAlign","ngClass"],[3,"value","size","errorCorrectionLevel",4,"ngIf"],["class","font-size-300",4,"ngIf"],["fxFlex","65"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","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(Be,ze){if(1&Be&&(l.TgZ(0,"div",0),l.TgZ(1,"div",1),l.YNc(2,re,1,3,"qr-code",2),l.YNc(3,de,2,0,"span",3),l.qZA(),l.TgZ(4,"div",4),l.TgZ(5,"mat-card-header",5),l.TgZ(6,"div",6),l._UZ(7,"fa-icon",7),l.TgZ(8,"span",8),l._uU(9),l.qZA(),l.qZA(),l.TgZ(10,"button",9),l.NdJ("click",function(){return ze.onClose()}),l._uU(11,"X"),l.qZA(),l.qZA(),l.TgZ(12,"mat-card-content",10),l.TgZ(13,"div",11),l.TgZ(14,"div",12),l.YNc(15,oe,1,3,"qr-code",2),l.YNc(16,ae,2,0,"span",13),l.qZA(),l.YNc(17,b,1,1,"mat-divider",14),l.TgZ(18,"div",15),l.TgZ(19,"div",16),l.TgZ(20,"h4",17),l._uU(21,"Amount Requested (Sats)"),l.qZA(),l.TgZ(22,"span",18),l._uU(23),l.ALo(24,"number"),l.qZA(),l.qZA(),l.TgZ(25,"div",16),l.TgZ(26,"h4",17),l._uU(27,"Active"),l.qZA(),l.TgZ(28,"span",18),l._uU(29),l.qZA(),l.qZA(),l.qZA(),l._UZ(30,"mat-divider",19),l.TgZ(31,"div",15),l.TgZ(32,"div",20),l.TgZ(33,"h4",17),l._uU(34,"Description"),l.qZA(),l.TgZ(35,"span",18),l._uU(36),l.qZA(),l.qZA(),l.qZA(),l._UZ(37,"mat-divider",19),l.TgZ(38,"div",15),l.TgZ(39,"div",20),l.TgZ(40,"h4",17),l._uU(41,"Offer Request"),l.qZA(),l.TgZ(42,"span",18),l._uU(43),l.qZA(),l.qZA(),l.qZA(),l.YNc(44,_,13,5,"div",21),l.TgZ(45,"div",22),l.TgZ(46,"button",23),l.NdJ("click",function(){return ze.onShowAdvanced()}),l.YNc(47,L,2,0,"p",24),l.YNc(48,I,2,0,"ng-template",null,25,l.W1O),l.qZA(),l.YNc(50,x,2,1,"button",26),l.YNc(51,r,2,0,"button",27),l.qZA(),l.qZA(),l.qZA(),l.qZA(),l.qZA()),2&Be){const Ie=l.MAs(49);l.xp6(1),l.Q6J("fxLayoutAlign",null!=ze.offer&&ze.offer.bolt12&&""!==(null==ze.offer?null:ze.offer.bolt12)?"center start":"center center")("ngClass",l.VKq(24,v,ze.screenSize===ze.screenSizeEnum.XS||ze.screenSize===ze.screenSizeEnum.SM)),l.xp6(1),l.Q6J("ngIf",(null==ze.offer?null:ze.offer.bolt12)&&""!==(null==ze.offer?null:ze.offer.bolt12)),l.xp6(1),l.Q6J("ngIf",!(null!=ze.offer&&ze.offer.bolt12)||""===(null==ze.offer?null:ze.offer.bolt12)),l.xp6(4),l.Q6J("icon",ze.faReceipt),l.xp6(2),l.Oqu(ze.screenSize===ze.screenSizeEnum.XS?ze.newlyAdded?"Created":"Offer":ze.newlyAdded?"Offer Created":"Offer Information"),l.xp6(3),l.Q6J("ngClass",l.VKq(26,G,ze.screenSize===ze.screenSizeEnum.XS)),l.xp6(2),l.Q6J("fxLayoutAlign",null!=ze.offer&&ze.offer.bolt12&&""!==(null==ze.offer?null:ze.offer.bolt12)?"center start":"center center")("ngClass",l.VKq(28,v,ze.screenSize!==ze.screenSizeEnum.XS&&ze.screenSize!==ze.screenSizeEnum.SM)),l.xp6(1),l.Q6J("ngIf",(null==ze.offer?null:ze.offer.bolt12)&&""!==(null==ze.offer?null:ze.offer.bolt12)),l.xp6(1),l.Q6J("ngIf",!(null!=ze.offer&&ze.offer.bolt12)||""===(null==ze.offer?null:ze.offer.bolt12)),l.xp6(1),l.Q6J("ngIf",ze.screenSize===ze.screenSizeEnum.XS||ze.screenSize===ze.screenSizeEnum.SM),l.xp6(6),l.hij(" ",null!=ze.offerDecoded&&ze.offerDecoded.amount_msat&&0!==(null==ze.offerDecoded?null:ze.offerDecoded.amount)?l.lcZ(24,22,(null==ze.offerDecoded?null:ze.offerDecoded.amount)/1e3):"Open Offer"," "),l.xp6(6),l.hij(" ",null!=ze.offer&&ze.offer.active?null!=ze.offer&&ze.offer.active?"Active":"Inactive":"N/K"," "),l.xp6(7),l.hij(" ",null==ze.offerDecoded?null:ze.offerDecoded.description," "),l.xp6(7),l.Oqu(null==ze.offer?null:ze.offer.bolt12),l.xp6(1),l.Q6J("ngIf",ze.showAdvanced),l.xp6(1),l.Q6J("ngClass",l.WLB(30,F,!ze.showAdvanced,ze.showAdvanced)),l.xp6(2),l.Q6J("ngIf",!ze.showAdvanced)("ngIfElse",Ie),l.xp6(3),l.Q6J("ngIf",(null==ze.offer?null:ze.offer.bolt12)&&""!==(null==ze.offer?null:ze.offer.bolt12)),l.xp6(1),l.Q6J("ngIf",!(null!=ze.offer&&ze.offer.bolt12)||""===(null==ze.offer?null:ze.offer.bolt12))}},directives:[E.xw,E.Wh,E.yH,P.mk,w.oO,P.O5,Z.dk,j.BN,W.lW,Z.dn,ie.d,ee.uU,_e.h,ce.y],pipes:[P.JJ],styles:[""]}),ye})()},2994:(Ve,Q,m)=>{"use strict";m.d(Q,{QZ:()=>y,Fd:()=>C,Zr:()=>o,iz:()=>M,CX:()=>l,SN:()=>N,RX:()=>s,UR:()=>D,eN:()=>A,TW:()=>O,i:()=>E,iL:()=>P,Bw:()=>w,On:()=>Z,HG:()=>j,$W:()=>W,Z8:()=>ie,El:()=>ee,GD:()=>re,EK:()=>de,_E:()=>oe,YX:()=>b,pW:()=>i,BL:()=>a,OG:()=>p,cQ:()=>u,HI:()=>_,WO:()=>L,kL:()=>I,oV:()=>x,TM:()=>r,mC:()=>v,Lf:()=>G,Iy:()=>F,WM:()=>ye,Nr:()=>Ce,Z$:()=>Be,YP:()=>ze,aL:()=>Ie,Sf:()=>K,n7:()=>Me,DJ:()=>z,ti:()=>Ge});var e=m(5620),t=m(7731);const y=(0,e.PH)(t.lr.UPDATE_API_CALL_STATUS_ECL,(0,e.Ky)()),C=(0,e.PH)(t.lr.RESET_ECL_STORE,(0,e.Ky)()),o=(0,e.PH)(t.lr.SET_CHILD_NODE_SETTINGS_ECL,(0,e.Ky)()),M=(0,e.PH)(t.lr.FETCH_INFO_ECL,(0,e.Ky)()),l=(0,e.PH)(t.lr.SET_INFO_ECL,(0,e.Ky)()),N=(0,e.PH)(t.lr.FETCH_FEES_ECL),s=(0,e.PH)(t.lr.SET_FEES_ECL,(0,e.Ky)()),D=(0,e.PH)(t.lr.FETCH_CHANNELS_ECL,(0,e.Ky)()),A=(0,e.PH)(t.lr.SET_ACTIVE_CHANNELS_ECL,(0,e.Ky)()),O=(0,e.PH)(t.lr.SET_PENDING_CHANNELS_ECL,(0,e.Ky)()),E=(0,e.PH)(t.lr.SET_INACTIVE_CHANNELS_ECL,(0,e.Ky)()),P=(0,e.PH)(t.lr.FETCH_ONCHAIN_BALANCE_ECL),w=(0,e.PH)(t.lr.SET_ONCHAIN_BALANCE_ECL,(0,e.Ky)()),Z=(0,e.PH)(t.lr.SET_LIGHTNING_BALANCE_ECL,(0,e.Ky)()),j=(0,e.PH)(t.lr.SET_CHANNELS_STATUS_ECL,(0,e.Ky)()),W=(0,e.PH)(t.lr.FETCH_PEERS_ECL),ie=(0,e.PH)(t.lr.SET_PEERS_ECL,(0,e.Ky)()),ee=(0,e.PH)(t.lr.SAVE_NEW_PEER_ECL,(0,e.Ky)()),re=((0,e.PH)(t.lr.NEWLY_ADDED_PEER_ECL,(0,e.Ky)()),(0,e.PH)(t.lr.ADD_PEER_ECL,(0,e.Ky)()),(0,e.PH)(t.lr.DETACH_PEER_ECL,(0,e.Ky)())),de=(0,e.PH)(t.lr.REMOVE_PEER_ECL,(0,e.Ky)()),oe=(0,e.PH)(t.lr.GET_NEW_ADDRESS_ECL),b=((0,e.PH)(t.lr.SET_NEW_ADDRESS_ECL,(0,e.Ky)()),(0,e.PH)(t.lr.SAVE_NEW_CHANNEL_ECL,(0,e.Ky)())),i=(0,e.PH)(t.lr.UPDATE_CHANNEL_ECL,(0,e.Ky)()),a=(0,e.PH)(t.lr.CLOSE_CHANNEL_ECL,(0,e.Ky)()),p=(0,e.PH)(t.lr.REMOVE_CHANNEL_ECL,(0,e.Ky)()),u=(0,e.PH)(t.lr.FETCH_PAYMENTS_ECL),_=(0,e.PH)(t.lr.SET_PAYMENTS_ECL,(0,e.Ky)()),L=(0,e.PH)(t.lr.GET_QUERY_ROUTES_ECL,(0,e.Ky)()),I=(0,e.PH)(t.lr.SET_QUERY_ROUTES_ECL,(0,e.Ky)()),x=(0,e.PH)(t.lr.SEND_PAYMENT_ECL,(0,e.Ky)()),r=(0,e.PH)(t.lr.SEND_PAYMENT_STATUS_ECL,(0,e.Ky)()),v=(0,e.PH)(t.lr.FETCH_TRANSACTIONS_ECL),G=(0,e.PH)(t.lr.SET_TRANSACTIONS_ECL,(0,e.Ky)()),F=(0,e.PH)(t.lr.SEND_ONCHAIN_FUNDS_ECL,(0,e.Ky)()),ye=((0,e.PH)(t.lr.SEND_ONCHAIN_FUNDS_RES_ECL,(0,e.Ky)()),(0,e.PH)(t.lr.FETCH_INVOICES_ECL)),Ce=(0,e.PH)(t.lr.SET_INVOICES_ECL,(0,e.Ky)()),Be=(0,e.PH)(t.lr.CREATE_INVOICE_ECL,(0,e.Ky)()),ze=(0,e.PH)(t.lr.ADD_INVOICE_ECL,(0,e.Ky)()),Ie=(0,e.PH)(t.lr.UPDATE_INVOICE_ECL,(0,e.Ky)()),K=(0,e.PH)(t.lr.PEER_LOOKUP_ECL,(0,e.Ky)()),Me=(0,e.PH)(t.lr.INVOICE_LOOKUP_ECL,(0,e.Ky)()),z=((0,e.PH)(t.lr.SET_LOOKUP_ECL,(0,e.Ky)()),(0,e.PH)(t.lr.UPDATE_CHANNEL_STATE_ECL,(0,e.Ky)())),Ge=(0,e.PH)(t.lr.UPDATE_RELAYED_PAYMENT_ECL,(0,e.Ky)())},3289:(Ve,Q,m)=>{"use strict";m.d(Q,{o:()=>de});var e=m(6642),t=m(7579),y=m(9646),C=m(5577),o=m(2722),M=m(4004),l=m(262),N=m(2340),s=m(1786),D=m(7731),A=m(7861),O=m(7766),E=m(2994),P=m(2501),w=m(5e3),Z=m(8138),j=m(5620),W=m(5986),ie=m(62),ee=m(5043),_e=m(1402),ce=m(7998),re=m(9808);let de=(()=>{class oe{constructor(b,i,a,p,u,_,L,I,x){this.actions=b,this.httpClient=i,this.store=a,this.sessionService=p,this.commonService=u,this.logger=_,this.router=L,this.wsService=I,this.location=x,this.CHILD_API_URL=N.T5+"/ecl",this.flgInitialized=!1,this.flgReceivedPaymentUpdateFromWS=!1,this.latestPaymentRes="",this.rawChannelsList=[],this.unSubs=[new t.x,new t.x,new t.x],this.infoFetchECL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.lr.FETCH_INFO_ECL),(0,C.z)(r=>(this.flgInitialized=!1,this.store.dispatch((0,A.lC)({payload:this.CHILD_API_URL})),this.store.dispatch((0,A.ac)({payload:D.m6.GET_NODE_INFO})),this.store.dispatch((0,E.QZ)({payload:{action:"FetchInfo",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+N.NZ.GETINFO_API).pipe((0,o.R)(this.actions.pipe((0,e.l4)(D.pg.SET_SELECTED_NODE))),(0,M.U)(v=>(this.logger.info(v),this.initializeRemainingData(v,r.payload.loadPage),this.store.dispatch((0,E.QZ)({payload:{action:"FetchInfo",status:D.Bn.COMPLETED}})),this.store.dispatch((0,A.uO)({payload:D.m6.GET_NODE_INFO})),{type:D.lr.SET_INFO_ECL,payload:v||{}})),(0,l.K)(v=>{const G=this.commonService.extractErrorCode(v),F=503===G?"Unable to Connect to Eclair Server.":this.commonService.extractErrorMessage(v);return this.router.navigate(["/error"],{state:{errorCode:G,errorMessage:F}}),this.handleErrorWithoutAlert("FetchInfo",D.m6.GET_NODE_INFO,"Fetching Node Info Failed.",{status:G,error:F}),(0,y.of)({type:D.pg.VOID})})))))),this.fetchFees=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.lr.FETCH_FEES_ECL),(0,C.z)(()=>(this.store.dispatch((0,E.QZ)({payload:{action:"FetchFees",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+N.NZ.FEES_API+"/fees").pipe((0,M.U)(r=>(this.logger.info(r),this.store.dispatch((0,E.QZ)({payload:{action:"FetchFees",status:D.Bn.COMPLETED}})),{type:D.lr.SET_FEES_ECL,payload:r||{}})),(0,l.K)(r=>(this.handleErrorWithoutAlert("FetchFees",D.m6.NO_SPINNER,"Fetching Fees Failed.",r),(0,y.of)({type:D.pg.VOID})))))))),this.fetchPayments=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.lr.FETCH_PAYMENTS_ECL),(0,C.z)(()=>(this.store.dispatch((0,E.QZ)({payload:{action:"FetchPayments",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+N.NZ.FEES_API+"/payments").pipe((0,M.U)(r=>(this.logger.info(r),this.store.dispatch((0,E.QZ)({payload:{action:"FetchPayments",status:D.Bn.COMPLETED}})),{type:D.lr.SET_PAYMENTS_ECL,payload:r||{}})),(0,l.K)(r=>(this.handleErrorWithoutAlert("FetchPayments",D.m6.NO_SPINNER,"Fetching Payments Failed.",r),(0,y.of)({type:D.pg.VOID})))))))),this.channelsFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.lr.FETCH_CHANNELS_ECL),(0,C.z)(r=>(this.store.dispatch((0,E.QZ)({payload:{action:"FetchChannels",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+N.NZ.CHANNELS_API).pipe((0,M.U)(v=>(this.logger.info(v),this.rawChannelsList=v,this.setChannelsAndStatusAndBalances(),this.store.dispatch((0,E.QZ)({payload:{action:"FetchChannels",status:D.Bn.COMPLETED}})),r.payload&&r.payload.fetchPayments&&this.store.dispatch((0,E.cQ)()),{type:D.pg.VOID})),(0,l.K)(v=>(this.handleErrorWithoutAlert("FetchChannels",D.m6.NO_SPINNER,"Fetching Channels Failed.",v),(0,y.of)({type:D.pg.VOID})))))))),this.fetchOnchainBalance=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.lr.FETCH_ONCHAIN_BALANCE_ECL),(0,C.z)(()=>(this.store.dispatch((0,E.QZ)({payload:{action:"FetchOnchainBalance",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+N.NZ.ON_CHAIN_API+"/balance"))),(0,M.U)(r=>(this.logger.info(r),this.store.dispatch((0,E.QZ)({payload:{action:"FetchOnchainBalance",status:D.Bn.COMPLETED}})),{type:D.lr.SET_ONCHAIN_BALANCE_ECL,payload:r||{}})),(0,l.K)(r=>(this.handleErrorWithoutAlert("FetchOnchainBalance",D.m6.NO_SPINNER,"Fetching Onchain Balances Failed.",r),(0,y.of)({type:D.pg.VOID}))))),this.peersFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.lr.FETCH_PEERS_ECL),(0,C.z)(()=>(this.store.dispatch((0,E.QZ)({payload:{action:"FetchPeers",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+N.NZ.PEERS_API).pipe((0,M.U)(r=>(this.logger.info(r),this.store.dispatch((0,E.QZ)({payload:{action:"FetchPeers",status:D.Bn.COMPLETED}})),{type:D.lr.SET_PEERS_ECL,payload:r||[]})),(0,l.K)(r=>(this.handleErrorWithoutAlert("FetchPeers",D.m6.NO_SPINNER,"Fetching Peers Failed.",r),(0,y.of)({type:D.pg.VOID})))))))),this.getNewAddress=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.lr.GET_NEW_ADDRESS_ECL),(0,C.z)(()=>(this.store.dispatch((0,A.ac)({payload:D.m6.GENERATE_NEW_ADDRESS})),this.httpClient.get(this.CHILD_API_URL+N.NZ.ON_CHAIN_API).pipe((0,M.U)(r=>(this.logger.info(r),this.store.dispatch((0,A.uO)({payload:D.m6.GENERATE_NEW_ADDRESS})),{type:D.lr.SET_NEW_ADDRESS_ECL,payload:r})),(0,l.K)(r=>(this.handleErrorWithAlert("GetNewAddress",D.m6.GENERATE_NEW_ADDRESS,"Generate New Address Failed",this.CHILD_API_URL+N.NZ.ON_CHAIN_API,r),(0,y.of)({type:D.pg.VOID})))))))),this.setNewAddress=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.lr.SET_NEW_ADDRESS_ECL),(0,M.U)(r=>(this.logger.info(r.payload),r.payload))),{dispatch:!1}),this.saveNewPeer=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.lr.SAVE_NEW_PEER_ECL),(0,C.z)(r=>(this.store.dispatch((0,A.ac)({payload:D.m6.CONNECT_PEER})),this.store.dispatch((0,E.QZ)({payload:{action:"SaveNewPeer",status:D.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+N.NZ.PEERS_API+(r.payload.id.includes("@")?"?uri=":"?nodeId=")+r.payload.id,{}).pipe((0,M.U)(v=>(this.logger.info(v),this.store.dispatch((0,E.QZ)({payload:{action:"SaveNewPeer",status:D.Bn.COMPLETED}})),v=v||[],this.store.dispatch((0,A.uO)({payload:D.m6.CONNECT_PEER})),this.store.dispatch((0,E.Z8)({payload:v})),{type:D.lr.NEWLY_ADDED_PEER_ECL,payload:{peer:v.find(G=>G.nodeId===(r.payload.id.includes("@")?r.payload.id.substring(0,r.payload.id.indexOf("@")):r.payload.id))}})),(0,l.K)(v=>(this.handleErrorWithoutAlert("SaveNewPeer",D.m6.CONNECT_PEER,"Peer Connection Failed.",v),(0,y.of)({type:D.pg.VOID})))))))),this.detachPeer=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.lr.DETACH_PEER_ECL),(0,C.z)(r=>(this.store.dispatch((0,A.ac)({payload:D.m6.DISCONNECT_PEER})),this.httpClient.delete(this.CHILD_API_URL+N.NZ.PEERS_API+"/"+r.payload.nodeId).pipe((0,M.U)(v=>(this.logger.info(v),this.store.dispatch((0,A.uO)({payload:D.m6.DISCONNECT_PEER})),this.store.dispatch((0,A.jW)({payload:"Disconnecting Peer!"})),{type:D.lr.REMOVE_PEER_ECL,payload:{nodeId:r.payload.nodeId}})),(0,l.K)(v=>(this.handleErrorWithAlert("DisconnectPeer",D.m6.DISCONNECT_PEER,"Unable to Detach Peer. Try again later.",this.CHILD_API_URL+N.NZ.PEERS_API+"/"+r.payload.nodeId,v),(0,y.of)({type:D.pg.VOID})))))))),this.openNewChannel=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.lr.SAVE_NEW_CHANNEL_ECL),(0,C.z)(r=>(this.store.dispatch((0,A.ac)({payload:D.m6.OPEN_CHANNEL})),this.store.dispatch((0,E.QZ)({payload:{action:"SaveNewChannel",status:D.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+N.NZ.CHANNELS_API,r.payload.feeRate&&r.payload.feeRate>0?{nodeId:r.payload.nodeId,fundingSatoshis:r.payload.amount,channelFlags:+!r.payload.private,fundingFeerateSatByte:r.payload.feeRate}:{nodeId:r.payload.nodeId,fundingSatoshis:r.payload.amount,channelFlags:+!r.payload.private}).pipe((0,M.U)(G=>(this.logger.info(G),this.store.dispatch((0,E.QZ)({payload:{action:"SaveNewChannel",status:D.Bn.COMPLETED}})),this.store.dispatch((0,E.$W)()),this.store.dispatch((0,E.iL)()),this.store.dispatch((0,A.uO)({payload:D.m6.OPEN_CHANNEL})),this.store.dispatch((0,A.jW)({payload:"Channel Added Successfully!"})),{type:D.lr.FETCH_CHANNELS_ECL,payload:{fetchPayments:!1}})),(0,l.K)(G=>(this.handleErrorWithoutAlert("SaveNewChannel",D.m6.OPEN_CHANNEL,"Opening Channel Failed.",G),(0,y.of)({type:D.pg.VOID})))))))),this.updateChannel=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.lr.UPDATE_CHANNEL_ECL),(0,C.z)(r=>{this.store.dispatch((0,A.ac)({payload:D.m6.UPDATE_CHAN_POLICY}));let v="?feeBaseMsat="+r.payload.baseFeeMsat+"&feeProportionalMillionths="+r.payload.feeRate;return v=r.payload.nodeIds?v+"&nodeIds="+r.payload.nodeIds:r.payload.nodeId?v+"&nodeId="+r.payload.nodeId:r.payload.channelIds?v+"&channelIds="+r.payload.channelIds:v+"&channelId="+r.payload.channelId,this.httpClient.post(this.CHILD_API_URL+N.NZ.CHANNELS_API+"/updateRelayFee"+v,{}).pipe((0,M.U)(G=>(this.logger.info(G),this.store.dispatch((0,A.uO)({payload:D.m6.UPDATE_CHAN_POLICY})),this.store.dispatch((0,A.jW)(r.payload.nodeIds||r.payload.channelIds?{payload:"Channels Updated Successfully."}:{payload:"Channel Updated Successfully!"})),{type:D.lr.FETCH_CHANNELS_ECL,payload:{fetchPayments:!1}})),(0,l.K)(G=>(this.handleErrorWithAlert("UpdateChannels",D.m6.UPDATE_CHAN_POLICY,"Update Channel Failed",this.CHILD_API_URL+N.NZ.CHANNELS_API,G),(0,y.of)({type:D.pg.VOID}))))}))),this.closeChannel=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.lr.CLOSE_CHANNEL_ECL),(0,C.z)(r=>(this.store.dispatch((0,A.ac)({payload:r.payload.force?D.m6.FORCE_CLOSE_CHANNEL:D.m6.CLOSE_CHANNEL})),this.httpClient.delete(this.CHILD_API_URL+N.NZ.CHANNELS_API+"?channelId="+r.payload.channelId+"&force="+r.payload.force).pipe((0,M.U)(v=>(this.logger.info(v),setTimeout(()=>{this.store.dispatch((0,A.uO)({payload:r.payload.force?D.m6.FORCE_CLOSE_CHANNEL:D.m6.CLOSE_CHANNEL})),this.store.dispatch((0,E.UR)({payload:{fetchPayments:!1}})),this.store.dispatch((0,A.jW)({payload:r.payload.force?"Channel Force Closed Successfully!":"Channel Closed Successfully!"}))},2e3),{type:D.pg.VOID})),(0,l.K)(v=>(this.handleErrorWithAlert("CloseChannel",r.payload.force?D.m6.FORCE_CLOSE_CHANNEL:D.m6.CLOSE_CHANNEL,"Unable to Close Channel. Try again later.",this.CHILD_API_URL+N.NZ.CHANNELS_API,v),(0,y.of)({type:D.pg.VOID})))))))),this.queryRoutesFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.lr.GET_QUERY_ROUTES_ECL),(0,C.z)(r=>this.httpClient.get(this.CHILD_API_URL+N.NZ.PAYMENTS_API+"/route?nodeId="+r.payload.nodeId+"&amountMsat="+r.payload.amount).pipe((0,M.U)(v=>(this.logger.info(v),{type:D.lr.SET_QUERY_ROUTES_ECL,payload:v})),(0,l.K)(v=>(this.store.dispatch((0,E.kL)({payload:[]})),this.handleErrorWithAlert("GetQueryRoutes",D.m6.NO_SPINNER,"Get Query Routes Failed",this.CHILD_API_URL+N.NZ.PAYMENTS_API+"/route?nodeId="+r.payload.nodeId+"&amountMsat="+r.payload.amount,v),(0,y.of)({type:D.pg.VOID}))))))),this.setQueryRoutes=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.lr.SET_QUERY_ROUTES_ECL),(0,M.U)(r=>r.payload)),{dispatch:!1}),this.sendPayment=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.lr.SEND_PAYMENT_ECL),(0,C.z)(r=>(this.flgReceivedPaymentUpdateFromWS=!1,this.latestPaymentRes="",this.store.dispatch((0,A.ac)({payload:D.m6.SEND_PAYMENT})),this.store.dispatch((0,E.QZ)({payload:{action:"SendPayment",status:D.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+N.NZ.PAYMENTS_API,r.payload).pipe((0,M.U)(v=>(this.logger.info(v),this.latestPaymentRes=v,setTimeout(()=>{this.flgReceivedPaymentUpdateFromWS||this.handleSendPaymentStatus("Payment Submitted!")},3e3),{type:D.pg.VOID})),(0,l.K)(v=>(this.logger.error("Error: "+JSON.stringify(v)),r.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",D.m6.SEND_PAYMENT,"Send Payment Failed.",v):this.handleErrorWithAlert("SendPayment",D.m6.SEND_PAYMENT,"Send Payment Failed",this.CHILD_API_URL+N.NZ.PAYMENTS_API,v),(0,y.of)({type:D.pg.VOID})))))))),this.transactionsFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.lr.FETCH_TRANSACTIONS_ECL),(0,C.z)(()=>(this.store.dispatch((0,E.QZ)({payload:{action:"FetchTransactions",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+N.NZ.ON_CHAIN_API+"/transactions?count=1000&skip=0"))),(0,M.U)(r=>(this.logger.info(r),this.store.dispatch((0,E.QZ)({payload:{action:"FetchTransactions",status:D.Bn.COMPLETED}})),{type:D.lr.SET_TRANSACTIONS_ECL,payload:r||[]})),(0,l.K)(r=>(this.handleErrorWithoutAlert("FetchTransactions",D.m6.NO_SPINNER,"Fetching Transactions Failed.",r),(0,y.of)({type:D.pg.VOID}))))),this.SendOnchainFunds=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.lr.SEND_ONCHAIN_FUNDS_ECL),(0,C.z)(r=>(this.store.dispatch((0,A.ac)({payload:D.m6.SEND_FUNDS})),this.store.dispatch((0,E.QZ)({payload:{action:"SendOnchainFunds",status:D.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+N.NZ.ON_CHAIN_API,r.payload).pipe((0,M.U)(v=>(this.logger.info(v),this.store.dispatch((0,E.QZ)({payload:{action:"SendOnchainFunds",status:D.Bn.COMPLETED}})),this.store.dispatch((0,A.uO)({payload:D.m6.SEND_FUNDS})),this.store.dispatch((0,E.iL)()),{type:D.lr.SEND_ONCHAIN_FUNDS_RES_ECL,payload:v})),(0,l.K)(v=>(this.handleErrorWithoutAlert("SendOnchainFunds",D.m6.SEND_FUNDS,"Sending Fund Failed.",v),(0,y.of)({type:D.pg.VOID})))))))),this.createInvoice=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.lr.CREATE_INVOICE_ECL),(0,C.z)(r=>(this.store.dispatch((0,A.ac)({payload:D.m6.CREATE_INVOICE})),this.store.dispatch((0,E.QZ)({payload:{action:"CreateInvoice",status:D.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+N.NZ.INVOICES_API,r.payload).pipe((0,M.U)(v=>(this.logger.info(v),this.store.dispatch((0,E.QZ)({payload:{action:"CreateInvoice",status:D.Bn.COMPLETED}})),this.store.dispatch((0,A.uO)({payload:D.m6.CREATE_INVOICE})),v.timestamp=Math.round((new Date).getTime()/1e3),v.expiresAt=Math.round(v.timestamp+r.payload.expireIn),v.description=r.payload.description,v.status="unpaid",setTimeout(()=>{this.store.dispatch((0,A.qR)({payload:{data:{invoice:v,newlyAdded:!0,component:O.R}}}))},100),{type:D.lr.ADD_INVOICE_ECL,payload:v})),(0,l.K)(v=>(this.handleErrorWithoutAlert("CreateInvoice",D.m6.CREATE_INVOICE,"Create Invoice Failed.",v),(0,y.of)({type:D.pg.VOID})))))))),this.invoicesFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.lr.FETCH_INVOICES_ECL),(0,C.z)(()=>(this.store.dispatch((0,E.QZ)({payload:{action:"FetchInvoices",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+N.NZ.INVOICES_API).pipe((0,M.U)(r=>(this.logger.info(r),this.store.dispatch((0,E.QZ)({payload:{action:"FetchInvoices",status:D.Bn.COMPLETED}})),{type:D.lr.SET_INVOICES_ECL,payload:r})),(0,l.K)(r=>(this.handleErrorWithoutAlert("FetchInvoices",D.m6.NO_SPINNER,"Fetching Invoices Failed.",r),(0,y.of)({type:D.pg.VOID})))))))),this.peerLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.lr.PEER_LOOKUP_ECL),(0,C.z)(r=>(this.store.dispatch((0,A.ac)({payload:D.m6.SEARCHING_NODE})),this.store.dispatch((0,E.QZ)({payload:{action:"Lookup",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+N.NZ.NETWORK_API+"/nodes/"+r.payload).pipe((0,M.U)(v=>(this.logger.info(v),this.store.dispatch((0,E.QZ)({payload:{action:"Lookup",status:D.Bn.COMPLETED}})),this.store.dispatch((0,A.uO)({payload:D.m6.SEARCHING_NODE})),{type:D.lr.SET_LOOKUP_ECL,payload:v})),(0,l.K)(v=>(this.handleErrorWithAlert("Lookup",D.m6.SEARCHING_NODE,"Peer Lookup Failed",this.CHILD_API_URL+N.NZ.NETWORK_API+"/nodes/"+r.payload,v),(0,y.of)({type:D.pg.VOID})))))))),this.invoiceLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.lr.INVOICE_LOOKUP_ECL),(0,C.z)(r=>(this.store.dispatch((0,A.ac)({payload:D.m6.SEARCHING_INVOICE})),this.store.dispatch((0,E.QZ)({payload:{action:"Lookup",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+N.NZ.INVOICES_API+"/"+r.payload).pipe((0,M.U)(v=>(this.logger.info(v),this.store.dispatch((0,E.QZ)({payload:{action:"Lookup",status:D.Bn.COMPLETED}})),this.store.dispatch((0,A.uO)({payload:D.m6.SEARCHING_INVOICE})),this.store.dispatch((0,E.aL)({payload:v})),{type:D.lr.SET_LOOKUP_ECL,payload:v})),(0,l.K)(v=>(this.handleErrorWithoutAlert("Lookup",D.m6.SEARCHING_INVOICE,"Invoice Lookup Failed",v),this.store.dispatch((0,A.jW)({payload:{message:"Invoice Refresh Failed.",type:"ERROR"}})),(0,y.of)({type:D.pg.VOID})))))))),this.setLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.lr.SET_LOOKUP_ECL),(0,M.U)(r=>(this.logger.info(r.payload),r.payload))),{dispatch:!1}),this.handleSendPaymentStatus=r=>{this.store.dispatch((0,E.QZ)({payload:{action:"SendPayment",status:D.Bn.COMPLETED}})),this.store.dispatch((0,A.uO)({payload:D.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,A.jW)({payload:r}))},this.store.select(P.yA).pipe((0,o.R)(this.unSubs[0])).subscribe(r=>{r.FetchInfo.status!==D.Bn.COMPLETED&&r.FetchInfo.status!==D.Bn.ERROR||r.FetchFees.status!==D.Bn.COMPLETED&&r.FetchFees.status!==D.Bn.ERROR||r.FetchOnchainBalance.status!==D.Bn.COMPLETED&&r.FetchOnchainBalance.status!==D.Bn.ERROR||r.FetchChannels.status!==D.Bn.COMPLETED&&r.FetchChannels.status!==D.Bn.ERROR||this.flgInitialized||(this.store.dispatch((0,A.uO)({payload:D.m6.INITALIZE_NODE_DATA})),this.flgInitialized=!0)}),this.wsService.eclWSMessages.pipe((0,o.R)(this.unSubs[1])).subscribe(r=>{this.logger.info("Received new message from the service: "+JSON.stringify(r));let v="";if(r)switch(r.type){case D.$v.PAYMENT_SENT:r&&r.id&&this.latestPaymentRes===r.id&&(this.flgReceivedPaymentUpdateFromWS=!0,v="Payment Sent: "+(r.paymentHash?"with payment hash "+r.paymentHash:JSON.stringify(r)),this.handleSendPaymentStatus(v));break;case D.$v.PAYMENT_FAILED:r&&r.id&&this.latestPaymentRes===r.id&&(this.flgReceivedPaymentUpdateFromWS=!0,v="Payment Failed: "+(r.failures&&r.failures.length&&r.failures.length>0&&r.failures[0].t?r.failures[0].t:r.failures&&r.failures.length&&r.failures.length>0&&r.failures[0].e&&r.failures[0].e.failureMessage?r.failures[0].e.failureMessage:JSON.stringify(r)),this.handleSendPaymentStatus(v));break;case D.$v.PAYMENT_RECEIVED:this.store.dispatch((0,E.aL)({payload:r}));break;case D.$v.PAYMENT_RELAYED:delete r.source,this.store.dispatch((0,E.ti)({payload:r}));break;case D.$v.CHANNEL_STATE_CHANGED:"NORMAL"===r.currentState||"CLOSED"===r.currentState?(this.rawChannelsList=this.rawChannelsList.map(G=>(G.channelId===r.channelId&&G.nodeId===r.remoteNodeId&&(G.state=r.currentState),G)),this.setChannelsAndStatusAndBalances()):this.store.dispatch((0,E.DJ)({payload:r}));break;default:this.logger.info("Received Event from WS: "+JSON.stringify(r))}})}setChannelsAndStatusAndBalances(){let b=0,i=0,a=0,p={localBalance:0,remoteBalance:0},u=[];const _=[],L=[],I={active:{channels:0,capacity:0},inactive:{channels:0,capacity:0},pending:{channels:0,capacity:0}};this.rawChannelsList.forEach((x,r)=>{"NORMAL"===x.state?(b=x.toLocal+x.toRemote,i+=x.toLocal,a+=x.toRemote,x.balancedness=0===b?1:+(1-Math.abs((x.toLocal-x.toRemote)/b)).toFixed(3),u.push(x),I.active.channels=I.active.channels+1,I.active.capacity=I.active.capacity+x.toLocal):x.state.includes("WAIT")||x.state.includes("CLOSING")||x.state.includes("SYNCING")?(x.state=x.state.replace(/_/g," "),_.push(x),I.pending.channels=I.pending.channels+1,I.pending.capacity=I.pending.capacity+x.toLocal):(x.state=x.state.replace(/_/g," "),L.push(x),I.inactive.channels=I.inactive.channels+1,I.inactive.capacity=I.inactive.capacity+x.toLocal)}),p={localBalance:i,remoteBalance:a},u=this.commonService.sortDescByKey(u,"balancedness"),this.logger.info("Active Channels: "+JSON.stringify(u)),this.logger.info("Pending Channels: "+JSON.stringify(_)),this.logger.info("Inactive Channels: "+JSON.stringify(L)),this.logger.info("Lightning Balances: "+JSON.stringify(p)),this.logger.info("Channels Status: "+JSON.stringify(I)),this.logger.info("Channel, status and balances: "+JSON.stringify({active:u,pending:_,inactive:L,balances:p,status:I})),this.store.dispatch((0,E.eN)({payload:u})),this.store.dispatch((0,E.TW)({payload:_})),this.store.dispatch((0,E.i)({payload:L})),this.store.dispatch((0,E.On)({payload:p})),this.store.dispatch((0,E.HG)({payload:I}))}initializeRemainingData(b,i){this.sessionService.setItem("eclUnlocked","true");const a={identity_pubkey:b.nodeId,alias:b.alias,testnet:"testnet"===b.network,chains:b.publicAddresses,uris:b.uris,version:b.version,numberOfPendingChannels:0};this.store.dispatch((0,A.ac)({payload:D.m6.INITALIZE_NODE_DATA})),this.store.dispatch((0,A._V)({payload:a}));let p=this.location.path();p.includes("/lnd/")?p=p.replace("/lnd/","/ecl/"):p.includes("/cln/")&&(p=p.replace("/cln/","/ecl/")),(p.includes("/login")||p.includes("/error")||""===p||"HOME"===i||p.includes("?access-key="))&&(p="/ecl/home"),this.router.navigate([p]),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(b,i,a,p){this.logger.error("ERROR IN: "+b+"\n"+JSON.stringify(p)),401===p.status?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,A.ts)()),this.store.dispatch((0,A.kS)()),this.store.dispatch((0,A.jW)({payload:"Authentication Failed. Redirecting to Login."}))):(this.store.dispatch((0,A.uO)({payload:i})),this.store.dispatch((0,E.QZ)({payload:{action:b,status:D.Bn.ERROR,statusCode:p.status.toString(),message:this.commonService.extractErrorMessage(p,a)}})))}handleErrorWithAlert(b,i,a,p,u){if(this.logger.error(u),401===u.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:i}));const _=this.commonService.extractErrorMessage(u);this.store.dispatch((0,A.qR)({payload:{data:{type:"ERROR",alertTitle:a,message:{code:u.status,message:_,URL:p},component:s.H}}})),this.store.dispatch((0,E.QZ)({payload:{action:b,status:D.Bn.ERROR,statusCode:u.status.toString(),message:_,URL:p}}))}}ngOnDestroy(){this.unSubs.forEach(b=>{b.next(null),b.complete()})}}return oe.\u0275fac=function(b){return new(b||oe)(w.LFG(e.eX),w.LFG(Z.eN),w.LFG(j.yh),w.LFG(W.m),w.LFG(ie.v),w.LFG(ee.mQ),w.LFG(_e.F0),w.LFG(ce.d),w.LFG(re.Ye))},oe.\u0275prov=w.Yz7({token:oe,factory:oe.\u0275fac}),oe})()},2501:(Ve,Q,m)=>{"use strict";m.d(Q,{pg:()=>y,yD:()=>C,T$:()=>o,yA:()=>l,PP:()=>N,JG:()=>s,Xz:()=>D,dx:()=>A,Ef:()=>O,Bo:()=>E,kY:()=>P});var e=m(5620);const t=(0,e.ZF)("ecl"),y=(0,e.P1)(t,w=>w.nodeSettings),C=(0,e.P1)(t,w=>w.information),o=(0,e.P1)(t,w=>({information:w.information,apiCallStatus:w.apisCallStatus.FetchInfo})),l=((0,e.P1)(t,w=>w.apisCallStatus.FetchInfo),(0,e.P1)(t,w=>w.apisCallStatus)),N=(0,e.P1)(t,w=>({payments:w.payments,apiCallStatus:w.apisCallStatus.FetchPayments})),s=(0,e.P1)(t,w=>({fees:w.fees,apiCallStatus:w.apisCallStatus.FetchFees})),D=(0,e.P1)(t,w=>({activeChannels:w.activeChannels,pendingChannels:w.pendingChannels,inactiveChannels:w.inactiveChannels,lightningBalance:w.lightningBalance,channelsStatus:w.channelsStatus,apiCallStatus:w.apisCallStatus.FetchChannels})),A=(0,e.P1)(t,w=>({transactions:w.transactions,apiCallStatus:w.apisCallStatus.FetchTransactions})),O=(0,e.P1)(t,w=>({invoices:w.invoices,apiCallStatus:w.apisCallStatus.FetchInvoices})),E=(0,e.P1)(t,w=>({peers:w.peers,apiCallStatus:w.apisCallStatus.FetchPeers})),P=(0,e.P1)(t,w=>({onchainBalance:w.onchainBalance,apiCallStatus:w.apisCallStatus.FetchOnchainBalance}))},7766:(Ve,Q,m)=>{"use strict";m.d(Q,{R:()=>Ie});var e=m(8966),t=m(801),y=m(7579),C=m(2722),o=m(7731),M=m(2501),l=m(5e3),N=m(5043),s=m(62),D=m(7261),A=m(5620),O=m(7093),E=m(9808),P=m(3322),w=m(9224),Z=m(9444),j=m(7423),W=m(4834),ie=m(159),ee=m(773),_e=m(3390),ce=m(6895);function re(K,Me){if(1&K&&l._UZ(0,"qr-code",29),2&K){const we=l.oxw();l.Q6J("value",null==we.invoice?null:we.invoice.serialized)("size",we.qrWidth)("errorCorrectionLevel","L")}}function de(K,Me){1&K&&(l.TgZ(0,"span",30),l._uU(1,"N/A"),l.qZA())}function oe(K,Me){if(1&K&&l._UZ(0,"qr-code",29),2&K){const we=l.oxw();l.Q6J("value",null==we.invoice?null:we.invoice.serialized)("size",we.qrWidth)("errorCorrectionLevel","L")}}function ae(K,Me){1&K&&(l.TgZ(0,"span",31),l._uU(1,"QR Code Not Applicable"),l.qZA())}function b(K,Me){1&K&&l._UZ(0,"mat-divider",32),2&K&&l.Q6J("inset",!0)}function i(K,Me){1&K&&(l.ynx(0),l._uU(1," (zero amount) "),l.BQk())}function a(K,Me){1&K&&l._UZ(0,"span",38)}const p=function(){return[]};function u(K,Me){if(1&K&&(l.TgZ(0,"div",34),l.TgZ(1,"div",35),l.TgZ(2,"span",36),l._uU(3),l.ALo(4,"number"),l.qZA(),l.YNc(5,a,1,0,"span",37),l.qZA(),l.qZA()),2&K){const we=l.oxw(2);l.xp6(3),l.hij("",l.lcZ(4,2,null==we.invoice?null:we.invoice.amountSettled)," Sats"),l.xp6(2),l.Q6J("ngForOf",l.DdM(4,p).constructor(35))}}function _(K,Me){if(1&K&&(l.TgZ(0,"div"),l._uU(1),l.ALo(2,"number"),l.qZA()),2&K){const we=l.oxw(2);l.xp6(1),l.hij("",l.lcZ(2,1,null==we.invoice?null:we.invoice.amountSettled)," Sats")}}function L(K,Me){if(1&K&&(l.ynx(0),l.YNc(1,u,6,5,"div",33),l.YNc(2,_,3,3,"div",19),l.BQk()),2&K){const we=l.oxw();l.xp6(1),l.Q6J("ngIf",we.flgInvoicePaid),l.xp6(1),l.Q6J("ngIf",!we.flgInvoicePaid)}}function I(K,Me){1&K&&(l.TgZ(0,"span"),l._uU(1,"-"),l.qZA())}function x(K,Me){1&K&&l._UZ(0,"mat-spinner",40),2&K&&l.Q6J("diameter",20)}function r(K,Me){if(1&K&&(l.ynx(0),l.YNc(1,I,2,0,"span",19),l.YNc(2,x,1,1,"mat-spinner",39),l.BQk()),2&K){const we=l.oxw();l.xp6(1),l.Q6J("ngIf","unpaid"!==(null==we.invoice?null:we.invoice.status)||!we.flgVersionCompatible),l.xp6(1),l.Q6J("ngIf","unpaid"===(null==we.invoice?null:we.invoice.status)&&we.flgVersionCompatible)}}function v(K,Me){if(1&K&&(l.TgZ(0,"div"),l._UZ(1,"mat-divider",20),l.TgZ(2,"div",15),l.TgZ(3,"div",41),l.TgZ(4,"h4",17),l._uU(5,"Date Expiry"),l.qZA(),l.TgZ(6,"span",18),l._uU(7),l.ALo(8,"date"),l.qZA(),l.qZA(),l.TgZ(9,"div",42),l.TgZ(10,"h4",17),l._uU(11,"Date Settled"),l.qZA(),l.TgZ(12,"span",21),l._uU(13),l.ALo(14,"date"),l.qZA(),l.qZA(),l.qZA(),l._UZ(15,"mat-divider",20),l.TgZ(16,"div",15),l.TgZ(17,"div",22),l.TgZ(18,"h4",17),l._uU(19,"Payment Hash"),l.qZA(),l.TgZ(20,"span",21),l._uU(21),l.qZA(),l.qZA(),l.qZA(),l._UZ(22,"mat-divider",20),l.TgZ(23,"div",15),l.TgZ(24,"div",22),l.TgZ(25,"h4",17),l._uU(26,"Node Id"),l.qZA(),l.TgZ(27,"span",21),l._uU(28),l.qZA(),l.qZA(),l.qZA(),l._UZ(29,"mat-divider",20),l.qZA()),2&K){const we=l.oxw();l.xp6(7),l.Oqu(l.xi3(8,4,1e3*(null==we.invoice?null:we.invoice.expiresAt),"dd/MMM/y HH:mm")),l.xp6(6),l.Oqu(l.xi3(14,7,1e3*(null==we.invoice?null:we.invoice.receivedAt),"dd/MMM/y HH:mm")),l.xp6(8),l.Oqu(null==we.invoice?null:we.invoice.paymentHash),l.xp6(7),l.Oqu(null==we.invoice?null:we.invoice.nodeId)}}function G(K,Me){1&K&&(l.TgZ(0,"p"),l._uU(1,"Show Advanced"),l.qZA())}function F(K,Me){1&K&&(l.TgZ(0,"p"),l._uU(1,"Hide Advanced"),l.qZA())}function U(K,Me){if(1&K){const we=l.EpF();l.TgZ(0,"button",43),l.NdJ("copied",function(Ge){return l.CHM(we),l.oxw().onCopyPayment(Ge)}),l._uU(1,"Copy Invoice"),l.qZA()}if(2&K){const we=l.oxw();l.Q6J("payload",null==we.invoice?null:we.invoice.serialized)}}function ye(K,Me){if(1&K){const we=l.EpF();l.TgZ(0,"button",44),l.NdJ("click",function(){return l.CHM(we),l.oxw().onClose()}),l._uU(1,"OK"),l.qZA()}}const Ce=function(K){return{"display-none":K}},Be=function(K){return{"xs-scroll-y":K}},ze=function(K,Me){return{"mt-2":K,"mt-1":Me}};let Ie=(()=>{class K{constructor(we,z,Ge,vt,Re,Ne){this.dialogRef=we,this.data=z,this.logger=Ge,this.commonService=vt,this.snackBar=Re,this.store=Ne,this.faReceipt=t.dLy,this.faExclamationTriangle=t.eHv,this.showAdvanced=!1,this.newlyAdded=!1,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=o.cu,this.flgInvoicePaid=!1,this.flgVersionCompatible=!0,this.unSubs=[new y.x,new y.x,new y.x,new y.x,new y.x]}ngOnInit(){this.invoice=this.data.invoice,this.newlyAdded=this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===o.cu.XS&&(this.qrWidth=220),this.store.select(M.yD).pipe((0,C.R)(this.unSubs[0])).subscribe(we=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(we.version,"0.5.0")}),this.store.select(M.Ef).pipe((0,C.R)(this.unSubs[1])).subscribe(we=>{const z=this.invoice.status;this.invoice=(we.invoices&&we.invoices.length>0?we.invoices:[]).find(vt=>vt.paymentHash===this.invoice.paymentHash),z!==this.invoice.status&&"received"===this.invoice.status&&(this.flgInvoicePaid=!0,setTimeout(()=>{this.flgInvoicePaid=!1},4e3)),this.logger.info(we)})}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyPayment(we){this.snackBar.open("Invoice copied."),this.logger.info("Copied Text: "+we)}ngOnDestroy(){this.unSubs.forEach(we=>{we.next(null),we.complete()})}}return K.\u0275fac=function(we){return new(we||K)(l.Y36(e.so),l.Y36(e.WI),l.Y36(N.mQ),l.Y36(s.v),l.Y36(D.ux),l.Y36(A.yh))},K.\u0275cmp=l.Xpm({type:K,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(we,z){if(1&we&&(l.TgZ(0,"div",0),l.TgZ(1,"div",1),l.YNc(2,re,1,3,"qr-code",2),l.YNc(3,de,2,0,"span",3),l.qZA(),l.TgZ(4,"div",4),l.TgZ(5,"mat-card-header",5),l.TgZ(6,"div",6),l._UZ(7,"fa-icon",7),l.TgZ(8,"span",8),l._uU(9),l.qZA(),l.qZA(),l.TgZ(10,"button",9),l.NdJ("click",function(){return z.onClose()}),l._uU(11,"X"),l.qZA(),l.qZA(),l.TgZ(12,"mat-card-content",10),l.TgZ(13,"div",11),l.TgZ(14,"div",12),l.YNc(15,oe,1,3,"qr-code",2),l.YNc(16,ae,2,0,"span",13),l.qZA(),l.YNc(17,b,1,1,"mat-divider",14),l.TgZ(18,"div",15),l.TgZ(19,"div",16),l.TgZ(20,"h4",17),l._uU(21,"Amount Requested"),l.qZA(),l.TgZ(22,"span",18),l._uU(23),l.ALo(24,"number"),l.YNc(25,i,2,0,"ng-container",19),l.qZA(),l.qZA(),l.TgZ(26,"div",16),l.TgZ(27,"h4",17),l._uU(28,"Amount Settled"),l.qZA(),l.TgZ(29,"span",18),l.YNc(30,L,3,2,"ng-container",19),l.YNc(31,r,3,2,"ng-container",19),l.qZA(),l.qZA(),l.qZA(),l._UZ(32,"mat-divider",20),l.TgZ(33,"div",15),l.TgZ(34,"div",16),l.TgZ(35,"h4",17),l._uU(36,"Date Created"),l.qZA(),l.TgZ(37,"span",21),l._uU(38),l.ALo(39,"date"),l.qZA(),l.qZA(),l.TgZ(40,"div",16),l.TgZ(41,"h4",17),l._uU(42,"Status"),l.qZA(),l.TgZ(43,"span",21),l._uU(44),l.ALo(45,"titlecase"),l.qZA(),l.qZA(),l.qZA(),l._UZ(46,"mat-divider",20),l.TgZ(47,"div",15),l.TgZ(48,"div",22),l.TgZ(49,"h4",17),l._uU(50,"Description"),l.qZA(),l.TgZ(51,"span",18),l._uU(52),l.qZA(),l.qZA(),l.qZA(),l._UZ(53,"mat-divider",20),l.TgZ(54,"div",15),l.TgZ(55,"div",22),l.TgZ(56,"h4",17),l._uU(57,"Invoice"),l.qZA(),l.TgZ(58,"span",21),l._uU(59),l.qZA(),l.qZA(),l.qZA(),l.YNc(60,v,30,10,"div",19),l.TgZ(61,"div",23),l.TgZ(62,"button",24),l.NdJ("click",function(){return z.onShowAdvanced()}),l.YNc(63,G,2,0,"p",25),l.YNc(64,F,2,0,"ng-template",null,26,l.W1O),l.qZA(),l.YNc(66,U,2,1,"button",27),l.YNc(67,ye,2,0,"button",28),l.qZA(),l.qZA(),l.qZA(),l.qZA(),l.qZA()),2&we){const Ge=l.MAs(65);l.xp6(1),l.Q6J("fxLayoutAlign",null!=z.invoice&&z.invoice.serialized&&""!==(null==z.invoice?null:z.invoice.serialized)?"center start":"center center")("ngClass",l.VKq(33,Ce,z.screenSize===z.screenSizeEnum.XS||z.screenSize===z.screenSizeEnum.SM)),l.xp6(1),l.Q6J("ngIf",(null==z.invoice?null:z.invoice.serialized)&&""!==(null==z.invoice?null:z.invoice.serialized)),l.xp6(1),l.Q6J("ngIf",!(null!=z.invoice&&z.invoice.serialized)||""===(null==z.invoice?null:z.invoice.serialized)),l.xp6(4),l.Q6J("icon",z.faReceipt),l.xp6(2),l.Oqu(z.screenSize===z.screenSizeEnum.XS?z.newlyAdded?"Created":"Invoice":z.newlyAdded?"Invoice Created":"Invoice Information"),l.xp6(3),l.Q6J("ngClass",l.VKq(35,Be,z.screenSize===z.screenSizeEnum.XS)),l.xp6(2),l.Q6J("fxLayoutAlign",null!=z.invoice&&z.invoice.serialized&&""!==(null==z.invoice?null:z.invoice.serialized)?"center start":"center center")("ngClass",l.VKq(37,Ce,z.screenSize!==z.screenSizeEnum.XS&&z.screenSize!==z.screenSizeEnum.SM)),l.xp6(1),l.Q6J("ngIf",(null==z.invoice?null:z.invoice.serialized)&&""!==(null==z.invoice?null:z.invoice.serialized)),l.xp6(1),l.Q6J("ngIf",!(null!=z.invoice&&z.invoice.serialized)||""===(null==z.invoice?null:z.invoice.serialized)),l.xp6(1),l.Q6J("ngIf",z.screenSize===z.screenSizeEnum.XS||z.screenSize===z.screenSizeEnum.SM),l.xp6(6),l.hij("",l.lcZ(24,26,(null==z.invoice?null:z.invoice.amount)||0)," Sats"),l.xp6(2),l.Q6J("ngIf",!(null!=z.invoice&&z.invoice.amount)||"0"===(null==z.invoice?null:z.invoice.amount)),l.xp6(5),l.Q6J("ngIf",null==z.invoice?null:z.invoice.amountSettled),l.xp6(1),l.Q6J("ngIf",!(null!=z.invoice&&z.invoice.amountSettled)),l.xp6(7),l.Oqu(l.xi3(39,28,1e3*(null==z.invoice?null:z.invoice.timestamp),"dd/MMM/y HH:mm")),l.xp6(6),l.Oqu(l.lcZ(45,31,null==z.invoice?null:z.invoice.status)),l.xp6(8),l.Oqu((null==z.invoice?null:z.invoice.description)||"-"),l.xp6(7),l.Oqu((null==z.invoice?null:z.invoice.serialized)||"N/A"),l.xp6(1),l.Q6J("ngIf",z.showAdvanced),l.xp6(1),l.Q6J("ngClass",l.WLB(39,ze,!z.showAdvanced,z.showAdvanced)),l.xp6(2),l.Q6J("ngIf",!z.showAdvanced)("ngIfElse",Ge),l.xp6(3),l.Q6J("ngIf",(null==z.invoice?null:z.invoice.serialized)&&""!==(null==z.invoice?null:z.invoice.serialized)),l.xp6(1),l.Q6J("ngIf",!(null!=z.invoice&&z.invoice.serialized)||""===(null==z.invoice?null:z.invoice.serialized))}},directives:[O.xw,O.Wh,O.yH,E.mk,P.oO,E.O5,w.dk,Z.BN,j.lW,w.dn,W.d,ie.uU,E.sg,ee.$g,_e.h,ce.y],pipes:[E.JJ,E.uU,E.rS],styles:[""]}),K})()},6523:(Ve,Q,m)=>{"use strict";m.d(Q,{PC:()=>y,Ll:()=>C,JT:()=>o,sQ:()=>M,CX:()=>l,$W:()=>N,Z8:()=>s,El:()=>D,z:()=>O,EK:()=>E,Rd:()=>P,YP:()=>Z,SN:()=>j,RX:()=>W,Bl:()=>ie,Jl:()=>ee,Rv:()=>_e,ks:()=>ce,UR:()=>re,as:()=>de,Z7:()=>oe,TW:()=>ae,Zh:()=>b,_L:()=>i,pW:()=>a,YX:()=>p,BL:()=>u,OG:()=>_,Vv:()=>L,Cp:()=>I,tb:()=>v,B_:()=>G,vV:()=>F,WM:()=>ye,Nr:()=>Ce,aL:()=>Be,qY:()=>ze,mC:()=>Ie,Lf:()=>K,Ly:()=>Me,UH:()=>we,cQ:()=>z,HI:()=>Ge,oV:()=>vt,dV:()=>Ne,_E:()=>Le,Wi:()=>q,fu:()=>le,y2:()=>Ue,xG:()=>nt,Sf:()=>ft,$A:()=>it,n7:()=>rt,yZ:()=>Mt,u0:()=>Ft,QJ:()=>Vt,WO:()=>Ii,kL:()=>jt,Jo:()=>ei,Fr:()=>Pi});var e=m(5620),t=m(7731);const y=(0,e.PH)(t.uR.UPDATE_API_CALL_STATUS_LND,(0,e.Ky)()),C=(0,e.PH)(t.uR.RESET_LND_STORE,(0,e.Ky)()),o=(0,e.PH)(t.uR.SET_CHILD_NODE_SETTINGS_LND,(0,e.Ky)()),M=(0,e.PH)(t.uR.FETCH_INFO_LND,(0,e.Ky)()),l=(0,e.PH)(t.uR.SET_INFO_LND,(0,e.Ky)()),N=(0,e.PH)(t.uR.FETCH_PEERS_LND),s=(0,e.PH)(t.uR.SET_PEERS_LND,(0,e.Ky)()),D=(0,e.PH)(t.uR.SAVE_NEW_PEER_LND,(0,e.Ky)()),O=((0,e.PH)(t.uR.NEWLY_ADDED_PEER_LND,(0,e.Ky)()),(0,e.PH)(t.uR.DETACH_PEER_LND,(0,e.Ky)())),E=(0,e.PH)(t.uR.REMOVE_PEER_LND,(0,e.Ky)()),P=(0,e.PH)(t.uR.SAVE_NEW_INVOICE_LND,(0,e.Ky)()),Z=((0,e.PH)(t.uR.NEWLY_SAVED_INVOICE_LND,(0,e.Ky)()),(0,e.PH)(t.uR.ADD_INVOICE_LND,(0,e.Ky)())),j=(0,e.PH)(t.uR.FETCH_FEES_LND),W=(0,e.PH)(t.uR.SET_FEES_LND,(0,e.Ky)()),ie=(0,e.PH)(t.uR.FETCH_BLOCKCHAIN_BALANCE_LND),ee=(0,e.PH)(t.uR.SET_BLOCKCHAIN_BALANCE_LND,(0,e.Ky)()),_e=(0,e.PH)(t.uR.FETCH_NETWORK_LND),ce=(0,e.PH)(t.uR.SET_NETWORK_LND,(0,e.Ky)()),re=(0,e.PH)(t.uR.FETCH_CHANNELS_LND),de=(0,e.PH)(t.uR.SET_CHANNELS_LND,(0,e.Ky)()),oe=(0,e.PH)(t.uR.FETCH_PENDING_CHANNELS_LND),ae=(0,e.PH)(t.uR.SET_PENDING_CHANNELS_LND,(0,e.Ky)()),b=(0,e.PH)(t.uR.FETCH_CLOSED_CHANNELS_LND),i=(0,e.PH)(t.uR.SET_CLOSED_CHANNELS_LND,(0,e.Ky)()),a=(0,e.PH)(t.uR.UPDATE_CHANNEL_LND,(0,e.Ky)()),p=(0,e.PH)(t.uR.SAVE_NEW_CHANNEL_LND,(0,e.Ky)()),u=(0,e.PH)(t.uR.CLOSE_CHANNEL_LND,(0,e.Ky)()),_=(0,e.PH)(t.uR.REMOVE_CHANNEL_LND,(0,e.Ky)()),L=(0,e.PH)(t.uR.BACKUP_CHANNELS_LND,(0,e.Ky)()),I=(0,e.PH)(t.uR.VERIFY_CHANNEL_LND,(0,e.Ky)()),v=((0,e.PH)(t.uR.BACKUP_CHANNELS_RES_LND,(0,e.Ky)()),(0,e.PH)(t.uR.VERIFY_CHANNEL_RES_LND,(0,e.Ky)()),(0,e.PH)(t.uR.RESTORE_CHANNELS_LIST_LND)),G=(0,e.PH)(t.uR.SET_RESTORE_CHANNELS_LIST_LND,(0,e.Ky)()),F=(0,e.PH)(t.uR.RESTORE_CHANNELS_LND,(0,e.Ky)()),ye=((0,e.PH)(t.uR.RESTORE_CHANNELS_RES_LND,(0,e.Ky)()),(0,e.PH)(t.uR.FETCH_INVOICES_LND,(0,e.Ky)())),Ce=(0,e.PH)(t.uR.SET_INVOICES_LND,(0,e.Ky)()),Be=(0,e.PH)(t.uR.UPDATE_INVOICE_LND,(0,e.Ky)()),ze=(0,e.PH)(t.uR.UPDATE_PAYMENT_LND,(0,e.Ky)()),Ie=(0,e.PH)(t.uR.FETCH_TRANSACTIONS_LND),K=(0,e.PH)(t.uR.SET_TRANSACTIONS_LND,(0,e.Ky)()),Me=(0,e.PH)(t.uR.FETCH_UTXOS_LND),we=(0,e.PH)(t.uR.SET_UTXOS_LND,(0,e.Ky)()),z=(0,e.PH)(t.uR.FETCH_PAYMENTS_LND,(0,e.Ky)()),Ge=(0,e.PH)(t.uR.SET_PAYMENTS_LND,(0,e.Ky)()),vt=(0,e.PH)(t.uR.SEND_PAYMENT_LND,(0,e.Ky)()),Ne=((0,e.PH)(t.uR.SEND_PAYMENT_STATUS_LND,(0,e.Ky)()),(0,e.PH)(t.uR.FETCH_GRAPH_NODE_LND,(0,e.Ky)())),Le=((0,e.PH)(t.uR.SET_GRAPH_NODE_LND,(0,e.Ky)()),(0,e.PH)(t.uR.GET_NEW_ADDRESS_LND,(0,e.Ky)())),q=((0,e.PH)(t.uR.SET_NEW_ADDRESS_LND,(0,e.Ky)()),(0,e.PH)(t.uR.SET_CHANNEL_TRANSACTION_LND,(0,e.Ky)())),le=((0,e.PH)(t.uR.SET_CHANNEL_TRANSACTION_RES_LND,(0,e.Ky)()),(0,e.PH)(t.uR.GEN_SEED_LND,(0,e.Ky)())),Ue=((0,e.PH)(t.uR.GEN_SEED_RESPONSE_LND,(0,e.Ky)()),(0,e.PH)(t.uR.INIT_WALLET_LND,(0,e.Ky)())),nt=((0,e.PH)(t.uR.INIT_WALLET_RESPONSE_LND,(0,e.Ky)()),(0,e.PH)(t.uR.UNLOCK_WALLET_LND,(0,e.Ky)())),ft=(0,e.PH)(t.uR.PEER_LOOKUP_LND,(0,e.Ky)()),it=(0,e.PH)(t.uR.CHANNEL_LOOKUP_LND,(0,e.Ky)()),rt=(0,e.PH)(t.uR.INVOICE_LOOKUP_LND,(0,e.Ky)()),Mt=(0,e.PH)(t.uR.PAYMENT_LOOKUP_LND,(0,e.Ky)()),Ft=((0,e.PH)(t.uR.SET_LOOKUP_LND,(0,e.Ky)()),(0,e.PH)(t.uR.GET_FORWARDING_HISTORY_LND,(0,e.Ky)())),Vt=(0,e.PH)(t.uR.SET_FORWARDING_HISTORY_LND,(0,e.Ky)()),Ii=(0,e.PH)(t.uR.GET_QUERY_ROUTES_LND,(0,e.Ky)()),jt=(0,e.PH)(t.uR.SET_QUERY_ROUTES_LND,(0,e.Ky)()),ei=(0,e.PH)(t.uR.GET_ALL_LIGHTNING_TRANSATIONS_LND),Pi=(0,e.PH)(t.uR.SET_ALL_LIGHTNING_TRANSATIONS_LND,(0,e.Ky)())},711:(Ve,Q,m)=>{"use strict";m.d(Q,{l:()=>ae});var e=m(6642),t=m(7579),y=m(9646),C=m(5577),o=m(2722),M=m(4004),l=m(262),N=m(1365),s=m(2340),D=m(8627),A=m(1786),O=m(7731),E=m(7861),P=m(6523),w=m(6529),Z=m(5e3),j=m(8138),W=m(5620),ie=m(5043),ee=m(62),_e=m(5986),ce=m(8966),re=m(1402),de=m(7998),oe=m(9808);let ae=(()=>{class b{constructor(a,p,u,_,L,I,x,r,v,G){this.actions=a,this.httpClient=p,this.store=u,this.logger=_,this.commonService=L,this.sessionService=I,this.dialog=x,this.router=r,this.wsService=v,this.location=G,this.CHILD_API_URL=s.T5+"/lnd",this.flgInitialized=!1,this.unSubs=[new t.x,new t.x],this.infoFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.FETCH_INFO_LND),(0,C.z)(F=>(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:O.m6.GET_NODE_INFO})),this.store.dispatch((0,P.PC)({payload:{action:"FetchInfo",status:O.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.GETINFO_API).pipe((0,o.R)(this.actions.pipe((0,e.l4)(O.pg.SET_SELECTED_NODE))),(0,M.U)(U=>(this.logger.info(U),U.chains&&U.chains.length&&U.chains[0]&&("string"==typeof U.chains[0]&&U.chains[0].toLowerCase().indexOf("bitcoin")<0||"object"==typeof U.chains[0]&&U.chains[0].hasOwnProperty("chain")&&U.chains[0].chain.toLowerCase().indexOf("bitcoin")<0)?(this.store.dispatch((0,P.PC)({payload:{action:"FetchInfo",status:O.Bn.COMPLETED}})),this.store.dispatch((0,E.ts)()),this.store.dispatch((0,E.qR)({payload:{data:{type:O.n_.ERROR,alertTitle:"Shitcoin Found",titleMessage:"Sorry Not Sorry, RTL is Bitcoin Only!"}}})),{type:O.pg.LOGOUT}):U.identity_pubkey?(U.lnImplementation="LND",this.initializeRemainingData(U,F.payload.loadPage),this.store.dispatch((0,P.PC)({payload:{action:"FetchInfo",status:O.Bn.COMPLETED}})),this.store.dispatch((0,E.ts)()),{type:O.uR.SET_INFO_LND,payload:U||{}}):(this.store.dispatch((0,P.PC)({payload:{action:"FetchInfo",status:O.Bn.COMPLETED}})),this.store.dispatch((0,E.ts)()),this.sessionService.removeItem("lndUnlocked"),this.logger.info("Redirecting to Unlock"),this.router.navigate(["/lnd/wallet"]),{type:O.uR.SET_INFO_LND,payload:{}}))),(0,l.K)(U=>{if("string"==typeof U.error.error&&U.error.error.includes("Not Found")||"string"==typeof U.error.error&&U.error.error.includes("wallet locked")||502===U.status&&!U.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",O.m6.GET_NODE_INFO,"Fetching Node Info Failed.",U);else if("string"==typeof U.error.error&&U.error.error.includes("starting up")&&500===U.status)setTimeout(()=>{this.store.dispatch((0,P.sQ)({payload:{loadPage:"HOME"}}))},2e3);else{const ye=this.commonService.extractErrorCode(U),Ce=503===ye?"Unable to Connect to LND Server.":this.commonService.extractErrorMessage(U);this.router.navigate(["/error"],{state:{errorCode:ye,errorMessage:Ce}}),this.handleErrorWithoutAlert("FetchInfo",O.m6.GET_NODE_INFO,"Fetching Node Info Failed.",{status:ye,error:Ce})}return(0,y.of)({type:O.pg.VOID})})))))),this.peersFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.FETCH_PEERS_LND),(0,C.z)(()=>(this.store.dispatch((0,P.PC)({payload:{action:"FetchPeers",status:O.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.PEERS_API).pipe((0,M.U)(F=>(this.logger.info(F),this.store.dispatch((0,P.PC)({payload:{action:"FetchPeers",status:O.Bn.COMPLETED}})),{type:O.uR.SET_PEERS_LND,payload:F||[]})),(0,l.K)(F=>(this.handleErrorWithoutAlert("FetchPeers",O.m6.NO_SPINNER,"Fetching Peers Failed.",F),(0,y.of)({type:O.pg.VOID})))))))),this.saveNewPeer=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.SAVE_NEW_PEER_LND),(0,C.z)(F=>(this.store.dispatch((0,E.ac)({payload:O.m6.CONNECT_PEER})),this.store.dispatch((0,P.PC)({payload:{action:"SaveNewPeer",status:O.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+s.NZ.PEERS_API,{pubkey:F.payload.pubkey,host:F.payload.host,perm:F.payload.perm}).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,P.PC)({payload:{action:"SaveNewPeer",status:O.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:O.m6.CONNECT_PEER})),this.store.dispatch((0,P.Z8)({payload:U||[]})),{type:O.uR.NEWLY_ADDED_PEER_LND,payload:{peer:U[0]}})),(0,l.K)(U=>(this.handleErrorWithoutAlert("SaveNewPeer",O.m6.CONNECT_PEER,"Peer Connection Failed.",U),(0,y.of)({type:O.pg.VOID})))))))),this.detachPeer=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.DETACH_PEER_LND),(0,C.z)(F=>(this.store.dispatch((0,E.ac)({payload:O.m6.DISCONNECT_PEER})),this.httpClient.delete(this.CHILD_API_URL+s.NZ.PEERS_API+"/"+F.payload.pubkey).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,E.uO)({payload:O.m6.DISCONNECT_PEER})),this.store.dispatch((0,E.jW)({payload:"Peer Disconnected Successfully."})),{type:O.uR.REMOVE_PEER_LND,payload:{pubkey:F.payload.pubkey}})),(0,l.K)(U=>(this.handleErrorWithAlert("DetachPeer",O.m6.DISCONNECT_PEER,"Unable to Detach Peer. Try again later.",this.CHILD_API_URL+s.NZ.PEERS_API+"/"+F.payload.pubkey,U),(0,y.of)({type:O.pg.VOID})))))))),this.saveNewInvoice=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.SAVE_NEW_INVOICE_LND),(0,C.z)(F=>(this.store.dispatch((0,E.ac)({payload:F.payload.uiMessage})),this.store.dispatch((0,P.PC)({payload:{action:"SaveNewInvoice",status:O.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+s.NZ.INVOICES_API,{memo:F.payload.memo,amount:F.payload.invoiceValue,private:F.payload.private,expiry:F.payload.expiry}).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,P.PC)({payload:{action:"SaveNewInvoice",status:O.Bn.COMPLETED}})),this.store.dispatch((0,P.WM)({payload:{num_max_invoices:F.payload.pageSize,reversed:!0}})),F.payload.openModal?(U.memo=F.payload.memo,U.value=F.payload.invoiceValue,U.expiry=F.payload.expiry,U.cltv_expiry="144",U.private=F.payload.private,U.creation_date=Math.round((new Date).getTime()/1e3).toString(),setTimeout(()=>{this.store.dispatch((0,E.qR)({payload:{data:{invoice:U,newlyAdded:!0,component:D.v}}}))},100),{type:O.pg.CLOSE_SPINNER,payload:F.payload.uiMessage}):{type:O.uR.NEWLY_SAVED_INVOICE_LND,payload:{paymentRequest:U.payment_request}})),(0,l.K)(U=>(this.handleErrorWithoutAlert("SaveNewInvoice",F.payload.uiMessage,"Add Invoice Failed.",U),(0,y.of)({type:O.pg.VOID})))))))),this.openNewChannel=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.SAVE_NEW_CHANNEL_LND),(0,C.z)(F=>(this.store.dispatch((0,E.ac)({payload:O.m6.OPEN_CHANNEL})),this.store.dispatch((0,P.PC)({payload:{action:"SaveNewChannel",status:O.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+s.NZ.CHANNELS_API,{node_pubkey:F.payload.selectedPeerPubkey,local_funding_amount:F.payload.fundingAmount,private:F.payload.private,trans_type:F.payload.transType,trans_type_value:F.payload.transTypeValue,spend_unconfirmed:F.payload.spendUnconfirmed}).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,P.PC)({payload:{action:"SaveNewChannel",status:O.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:O.m6.OPEN_CHANNEL})),this.store.dispatch((0,P.Bl)()),this.store.dispatch((0,P.UR)()),this.store.dispatch((0,P.Vv)({payload:{uiMessage:O.m6.NO_SPINNER,channelPoint:"ALL",showMessage:"Channel Added Successfully!"}})),{type:O.uR.FETCH_PENDING_CHANNELS_LND})),(0,l.K)(U=>(this.handleErrorWithoutAlert("SaveNewChannel",O.m6.OPEN_CHANNEL,"Opening Channel Failed.",U),(0,y.of)({type:O.pg.VOID})))))))),this.updateChannel=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.UPDATE_CHANNEL_LND),(0,C.z)(F=>(this.store.dispatch((0,E.ac)({payload:O.m6.UPDATE_CHAN_POLICY})),this.httpClient.post(this.CHILD_API_URL+s.NZ.CHANNELS_API+"/chanPolicy",{baseFeeMsat:F.payload.baseFeeMsat,feeRate:F.payload.feeRate,timeLockDelta:F.payload.timeLockDelta,chanPoint:F.payload.chanPoint}).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,E.uO)({payload:O.m6.UPDATE_CHAN_POLICY})),this.store.dispatch((0,E.jW)("all"===F.payload.chanPoint?{payload:"All Channels Updated Successfully."}:{payload:"Channel Updated Successfully!"})),{type:O.uR.FETCH_CHANNELS_LND})),(0,l.K)(U=>(this.handleErrorWithAlert("UpdateChannels",O.m6.UPDATE_CHAN_POLICY,"Update Channel Failed",this.CHILD_API_URL+s.NZ.CHANNELS_API+"/chanPolicy",U),(0,y.of)({type:O.pg.VOID})))))))),this.closeChannel=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.CLOSE_CHANNEL_LND),(0,C.z)(F=>{this.store.dispatch((0,E.ac)({payload:F.payload.forcibly?O.m6.FORCE_CLOSE_CHANNEL:O.m6.CLOSE_CHANNEL}));let U=this.CHILD_API_URL+s.NZ.CHANNELS_API+"/"+F.payload.channelPoint+"?force="+F.payload.forcibly;return F.payload.targetConf&&(U=U+"&target_conf="+F.payload.targetConf),F.payload.satPerByte&&(U=U+"&sat_per_byte="+F.payload.satPerByte),this.httpClient.delete(U).pipe((0,M.U)(ye=>(this.logger.info(ye),this.store.dispatch((0,E.uO)({payload:F.payload.forcibly?O.m6.FORCE_CLOSE_CHANNEL:O.m6.CLOSE_CHANNEL})),this.store.dispatch((0,P.UR)()),this.store.dispatch((0,P.Z7)()),this.store.dispatch((0,P.Vv)({payload:{uiMessage:O.m6.NO_SPINNER,channelPoint:"ALL",showMessage:ye.message}})),{type:O.pg.VOID})),(0,l.K)(ye=>(this.handleErrorWithAlert("CloseChannel",F.payload.forcibly?O.m6.FORCE_CLOSE_CHANNEL:O.m6.CLOSE_CHANNEL,"Unable to Close Channel. Try again later.",this.CHILD_API_URL+s.NZ.CHANNELS_API+"/"+F.payload.channelPoint+"?force="+F.payload.forcibly,ye),(0,y.of)({type:O.pg.VOID}))))}))),this.backupChannels=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.BACKUP_CHANNELS_LND),(0,C.z)(F=>(this.store.dispatch((0,E.ac)({payload:F.payload.uiMessage})),this.store.dispatch((0,P.PC)({payload:{action:"BackupChannels",status:O.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.CHANNELS_BACKUP_API+"/"+F.payload.channelPoint).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,P.PC)({payload:{action:"BackupChannels",status:O.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:F.payload.uiMessage})),this.store.dispatch((0,E.jW)({payload:F.payload.showMessage+" "+U.message})),{type:O.uR.BACKUP_CHANNELS_RES_LND,payload:U.message})),(0,l.K)(U=>(this.handleErrorWithAlert("BackupChannels",F.payload.uiMessage,F.payload.showMessage+" Unable to Backup Channel. Try again later.",this.CHILD_API_URL+s.NZ.CHANNELS_BACKUP_API+"/"+F.payload.channelPoint,U),(0,y.of)({type:O.pg.VOID})))))))),this.verifyChannel=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.VERIFY_CHANNEL_LND),(0,C.z)(F=>(this.store.dispatch((0,E.ac)({payload:O.m6.VERIFY_CHANNEL})),this.store.dispatch((0,P.PC)({payload:{action:"VerifyChannel",status:O.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+s.NZ.CHANNELS_BACKUP_API+"/verify/"+F.payload.channelPoint,{}).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,P.PC)({payload:{action:"VerifyChannel",status:O.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:O.m6.VERIFY_CHANNEL})),this.store.dispatch((0,E.jW)({payload:U.message})),{type:O.uR.VERIFY_CHANNEL_RES_LND,payload:U.message})),(0,l.K)(U=>(this.handleErrorWithAlert("VerifyChannel",O.m6.VERIFY_CHANNEL,"Unable to Verify Channel. Try again later.",this.CHILD_API_URL+s.NZ.CHANNELS_BACKUP_API+"/verify/"+F.payload.channelPoint,U),(0,y.of)({type:O.pg.VOID})))))))),this.restoreChannels=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.RESTORE_CHANNELS_LND),(0,C.z)(F=>(this.store.dispatch((0,E.ac)({payload:O.m6.RESTORE_CHANNEL})),this.store.dispatch((0,P.PC)({payload:{action:"RestoreChannels",status:O.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+s.NZ.CHANNELS_BACKUP_API+"/restore/"+F.payload.channelPoint,{}).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,P.PC)({payload:{action:"RestoreChannels",status:O.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:O.m6.RESTORE_CHANNEL})),this.store.dispatch((0,E.jW)({payload:U.message})),this.store.dispatch((0,P.B_)({payload:U.list})),{type:O.uR.RESTORE_CHANNELS_RES_LND,payload:U.message})),(0,l.K)(U=>(this.handleErrorWithAlert("RestoreChannels",O.m6.RESTORE_CHANNEL,"Unable to Restore Channel. Try again later.",this.CHILD_API_URL+s.NZ.CHANNELS_BACKUP_API+"/restore/"+F.payload.channelPoint,U),(0,y.of)({type:O.pg.VOID})))))))),this.fetchFees=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.FETCH_FEES_LND),(0,C.z)(()=>(this.store.dispatch((0,P.PC)({payload:{action:"FetchFees",status:O.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.FEES_API))),(0,M.U)(F=>(this.logger.info(F),this.store.dispatch((0,P.PC)({payload:{action:"FetchFees",status:O.Bn.COMPLETED}})),F.forwarding_events_history&&(this.store.dispatch((0,P.QJ)({payload:F.forwarding_events_history})),delete F.forwarding_events_history),{type:O.uR.SET_FEES_LND,payload:F||{}})),(0,l.K)(F=>(this.handleErrorWithoutAlert("FetchFees",O.m6.NO_SPINNER,"Fetching Fees Failed.",F),(0,y.of)({type:O.pg.VOID}))))),this.balanceBlockchainFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.FETCH_BLOCKCHAIN_BALANCE_LND),(0,C.z)(()=>(this.store.dispatch((0,P.PC)({payload:{action:"FetchBalance",status:O.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.BALANCE_API))),(0,M.U)(F=>(this.store.dispatch((0,P.PC)({payload:{action:"FetchBalance",status:O.Bn.COMPLETED}})),this.logger.info(F),{type:O.uR.SET_BLOCKCHAIN_BALANCE_LND,payload:F||{total_balance:""}})),(0,l.K)(F=>(this.handleErrorWithoutAlert("FetchBalance",O.m6.NO_SPINNER,"Fetching Blockchain Balance Failed.",F),(0,y.of)({type:O.pg.VOID}))))),this.networkInfoFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.FETCH_NETWORK_LND),(0,C.z)(()=>(this.store.dispatch((0,P.PC)({payload:{action:"FetchNetwork",status:O.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.NETWORK_API+"/info"))),(0,M.U)(F=>(this.logger.info(F),this.store.dispatch((0,P.PC)({payload:{action:"FetchNetwork",status:O.Bn.COMPLETED}})),{type:O.uR.SET_NETWORK_LND,payload:F||{}})),(0,l.K)(F=>(this.handleErrorWithoutAlert("FetchNetwork",O.m6.NO_SPINNER,"Fetching Network Failed.",F),(0,y.of)({type:O.pg.VOID}))))),this.channelsFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.FETCH_CHANNELS_LND),(0,C.z)(()=>(this.store.dispatch((0,P.PC)({payload:{action:"FetchChannels",status:O.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.CHANNELS_API).pipe((0,M.U)(F=>(this.logger.info(F),this.store.dispatch((0,P.PC)({payload:{action:"FetchChannels",status:O.Bn.COMPLETED}})),{type:O.uR.SET_CHANNELS_LND,payload:F.channels||[]})),(0,l.K)(F=>(this.handleErrorWithoutAlert("FetchChannels",O.m6.NO_SPINNER,"Fetching Channels Failed.",F),(0,y.of)({type:O.pg.VOID})))))))),this.channelsPendingFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.FETCH_PENDING_CHANNELS_LND),(0,C.z)(()=>(this.store.dispatch((0,P.PC)({payload:{action:"FetchPendingChannels",status:O.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.CHANNELS_API+"/pending").pipe((0,M.U)(F=>{this.logger.info(F),this.store.dispatch((0,P.PC)({payload:{action:"FetchPendingChannels",status:O.Bn.COMPLETED}}));const U={open:{num_channels:0,limbo_balance:0},closing:{num_channels:0,limbo_balance:0},force_closing:{num_channels:0,limbo_balance:0},waiting_close:{num_channels:0,limbo_balance:0},total_channels:0,total_limbo_balance:0};return F&&(U.total_limbo_balance=F.total_limbo_balance,F.pending_closing_channels&&(U.closing.num_channels=F.pending_closing_channels.length,U.total_channels=U.total_channels+F.pending_closing_channels.length,F.pending_closing_channels.forEach(ye=>{U.closing.limbo_balance=+U.closing.limbo_balance+(ye.channel.local_balance?+ye.channel.local_balance:0)})),F.pending_force_closing_channels&&(U.force_closing.num_channels=F.pending_force_closing_channels.length,U.total_channels=U.total_channels+F.pending_force_closing_channels.length,F.pending_force_closing_channels.forEach(ye=>{U.force_closing.limbo_balance=+U.force_closing.limbo_balance+(ye.channel.local_balance?+ye.channel.local_balance:0)})),F.pending_open_channels&&(U.open.num_channels=F.pending_open_channels.length,U.total_channels=U.total_channels+F.pending_open_channels.length,F.pending_open_channels.forEach(ye=>{U.open.limbo_balance=+U.open.limbo_balance+(ye.channel.local_balance?+ye.channel.local_balance:0)})),F.waiting_close_channels&&(U.waiting_close.num_channels=F.waiting_close_channels.length,U.total_channels=U.total_channels+F.waiting_close_channels.length,F.waiting_close_channels.forEach(ye=>{U.waiting_close.limbo_balance=+U.waiting_close.limbo_balance+(ye.channel.local_balance?+ye.channel.local_balance:0)}))),{type:O.uR.SET_PENDING_CHANNELS_LND,payload:F?{pendingChannels:F,pendingChannelsSummary:U}:{pendingChannels:{},pendingChannelsSummary:U}}}),(0,l.K)(F=>(this.handleErrorWithoutAlert("FetchPendingChannels",O.m6.NO_SPINNER,"Fetching Pending Channels Failed.",F),(0,y.of)({type:O.pg.VOID})))))))),this.channelsClosedFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.FETCH_CLOSED_CHANNELS_LND),(0,C.z)(()=>(this.store.dispatch((0,P.PC)({payload:{action:"FetchClosedChannels",status:O.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.CHANNELS_API+"/closed").pipe((0,M.U)(F=>(this.logger.info(F),this.store.dispatch((0,P.PC)({payload:{action:"FetchClosedChannels",status:O.Bn.COMPLETED}})),{type:O.uR.SET_CLOSED_CHANNELS_LND,payload:F.channels||[]})),(0,l.K)(F=>(this.handleErrorWithoutAlert("FetchClosedChannels",O.m6.NO_SPINNER,"Fetching Closed Channels Failed.",F),(0,y.of)({type:O.pg.VOID})))))))),this.invoicesFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.FETCH_INVOICES_LND),(0,C.z)(F=>(this.store.dispatch((0,P.PC)({payload:{action:"FetchInvoices",status:O.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.INVOICES_API+"?num_max_invoices="+(F.payload.num_max_invoices?F.payload.num_max_invoices:100)+"&index_offset="+(F.payload.index_offset?F.payload.index_offset:0)+"&reversed="+(!!F.payload.reversed&&F.payload.reversed)).pipe((0,M.U)(Be=>(this.logger.info(Be),this.store.dispatch((0,P.PC)({payload:{action:"FetchInvoices",status:O.Bn.COMPLETED}})),F.payload.reversed&&!F.payload.index_offset&&(Be.total_invoices=+Be.last_index_offset),{type:O.uR.SET_INVOICES_LND,payload:Be})),(0,l.K)(Be=>(this.handleErrorWithoutAlert("FetchInvoices",O.m6.NO_SPINNER,"Fetching Invoices Failed.",Be),(0,y.of)({type:O.pg.VOID})))))))),this.transactionsFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.FETCH_TRANSACTIONS_LND),(0,C.z)(()=>(this.store.dispatch((0,P.PC)({payload:{action:"FetchTransactions",status:O.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.TRANSACTIONS_API))),(0,M.U)(F=>(this.logger.info(F),this.store.dispatch((0,P.PC)({payload:{action:"FetchTransactions",status:O.Bn.COMPLETED}})),{type:O.uR.SET_TRANSACTIONS_LND,payload:F||[]})),(0,l.K)(F=>(this.handleErrorWithoutAlert("FetchTransactions",O.m6.NO_SPINNER,"Fetching Transactions Failed.",F),(0,y.of)({type:O.pg.VOID}))))),this.utxosFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.FETCH_UTXOS_LND),(0,N.M)(this.store.select(w.Q5)),(0,C.z)(([F,U])=>(this.store.dispatch((0,P.PC)({payload:{action:"FetchUTXOs",status:O.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.WALLET_API+"/getUTXOs?max_confs="+(U&&U.block_height?U.block_height:1e9)))),(0,M.U)(F=>(this.logger.info(F),this.store.dispatch((0,P.PC)({payload:{action:"FetchUTXOs",status:O.Bn.COMPLETED}})),{type:O.uR.SET_UTXOS_LND,payload:F||[]})),(0,l.K)(F=>(this.handleErrorWithoutAlert("FetchUTXOs",O.m6.NO_SPINNER,"Fetching UTXOs Failed.",F),(0,y.of)({type:O.pg.VOID}))))),this.paymentsFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.FETCH_PAYMENTS_LND),(0,C.z)(F=>(this.store.dispatch((0,P.PC)({payload:{action:"FetchPayments",status:O.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.PAYMENTS_API+"?max_payments="+(F.payload.max_payments?F.payload.max_payments:100)+"&index_offset="+(F.payload.index_offset?F.payload.index_offset:0)+"&reversed="+(!!F.payload.reversed&&F.payload.reversed)).pipe((0,M.U)(Be=>(this.logger.info(Be),this.store.dispatch((0,P.PC)({payload:{action:"FetchPayments",status:O.Bn.COMPLETED}})),{type:O.uR.SET_PAYMENTS_LND,payload:Be})),(0,l.K)(Be=>(this.handleErrorWithoutAlert("FetchPayments",O.m6.NO_SPINNER,"Fetching Payments Failed.",Be),(0,y.of)({type:O.uR.SET_PAYMENTS_LND,payload:{payments:[]}})))))))),this.sendPayment=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.SEND_PAYMENT_LND),(0,C.z)(F=>{this.store.dispatch((0,E.ac)({payload:F.payload.uiMessage})),this.store.dispatch((0,P.PC)({payload:{action:"SendPayment",status:O.Bn.INITIATED}}));const U={};return U.paymentReq=F.payload.paymentReq,F.payload.paymentAmount&&(U.paymentAmount=F.payload.paymentAmount),F.payload.outgoingChannel&&(U.outgoingChannel=F.payload.outgoingChannel.chan_id),F.payload.allowSelfPayment&&(U.allowSelfPayment=F.payload.allowSelfPayment),F.payload.lastHopPubkey&&(U.lastHopPubkey=F.payload.lastHopPubkey),F.payload.feeLimitType&&F.payload.feeLimitType!==O.Vc[0].id&&(U.feeLimit={},U.feeLimit[F.payload.feeLimitType]=F.payload.feeLimit),this.httpClient.post(this.CHILD_API_URL+s.NZ.CHANNELS_API+"/transactions",U).pipe((0,M.U)(ye=>{if(this.logger.info(ye),this.store.dispatch((0,E.uO)({payload:F.payload.uiMessage})),this.store.dispatch((0,P.PC)({payload:{action:"SendPayment",status:O.Bn.COMPLETED}})),ye.payment_error)return F.payload.allowSelfPayment?(this.store.dispatch((0,P.WM)({payload:{num_max_invoices:O.IV,reversed:!0}})),{type:O.uR.SEND_PAYMENT_STATUS_LND,payload:ye}):(F.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",F.payload.uiMessage,"Send Payment Failed.",ye.payment_error):this.handleErrorWithAlert("SendPayment",F.payload.uiMessage,"Send Payment Failed",this.CHILD_API_URL+s.NZ.CHANNELS_API+"/transactions",ye.payment_error),{type:O.pg.VOID});if(this.store.dispatch((0,E.uO)({payload:F.payload.uiMessage})),this.store.dispatch((0,P.PC)({payload:{action:"SendPayment",status:O.Bn.COMPLETED}})),this.store.dispatch((0,P.UR)()),this.store.dispatch((0,P.cQ)({payload:{max_payments:O.IV,reversed:!0}})),F.payload.allowSelfPayment)this.store.dispatch((0,P.WM)({payload:{num_max_invoices:O.IV,reversed:!0}}));else{let Ce="Payment Sent Successfully.";ye.payment_route&&ye.payment_route.total_fees_msat&&(Ce="Payment sent successfully with the total fee "+ye.payment_route.total_fees_msat+" (mSats)."),this.store.dispatch((0,E.jW)({payload:Ce}))}return{type:O.uR.SEND_PAYMENT_STATUS_LND,payload:ye}}),(0,l.K)(ye=>(this.logger.error("Error: "+JSON.stringify(ye)),F.payload.allowSelfPayment?(this.handleErrorWithoutAlert("SendPayment",F.payload.uiMessage,"Send Payment Failed.",ye),this.store.dispatch((0,P.WM)({payload:{num_max_invoices:O.IV,reversed:!0}})),(0,y.of)({type:O.uR.SEND_PAYMENT_STATUS_LND,payload:{error:this.commonService.extractErrorMessage(ye)}})):(F.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",F.payload.uiMessage,"Send Payment Failed.",ye):this.handleErrorWithAlert("SendPayment",F.payload.uiMessage,"Send Payment Failed",this.CHILD_API_URL+s.NZ.CHANNELS_API+"/transactions",ye),(0,y.of)({type:O.pg.VOID})))))}))),this.graphNodeFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.FETCH_GRAPH_NODE_LND),(0,C.z)(F=>(this.store.dispatch((0,E.ac)({payload:O.m6.GET_NODE_ADDRESS})),this.store.dispatch((0,P.PC)({payload:{action:"FetchGraphNode",status:O.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.NETWORK_API+"/node/"+F.payload.pubkey).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,E.uO)({payload:O.m6.GET_NODE_ADDRESS})),this.store.dispatch((0,P.PC)({payload:{action:"FetchGraphNode",status:O.Bn.COMPLETED}})),{type:O.uR.SET_GRAPH_NODE_LND,payload:U&&U.node?{node:U.node}:{node:null}})),(0,l.K)(U=>(this.handleErrorWithoutAlert("FetchGraphNode",O.m6.GET_NODE_ADDRESS,"Fetching Graph Node Failed.",U),(0,y.of)({type:O.pg.VOID})))))))),this.setGraphNode=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.SET_GRAPH_NODE_LND),(0,M.U)(F=>(this.logger.info(F.payload),F.payload))),{dispatch:!1}),this.getNewAddress=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.GET_NEW_ADDRESS_LND),(0,C.z)(F=>(this.store.dispatch((0,E.ac)({payload:O.m6.GENERATE_NEW_ADDRESS})),this.httpClient.get(this.CHILD_API_URL+s.NZ.NEW_ADDRESS_API+"?type="+F.payload.addressId).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,E.uO)({payload:O.m6.GENERATE_NEW_ADDRESS})),{type:O.uR.SET_NEW_ADDRESS_LND,payload:U&&U.address?U.address:{}})),(0,l.K)(U=>(this.handleErrorWithAlert("GetNewAddress",O.m6.GENERATE_NEW_ADDRESS,"Generate New Address Failed",this.CHILD_API_URL+s.NZ.NEW_ADDRESS_API+"?type="+F.payload.addressId,U),(0,y.of)({type:O.pg.VOID})))))))),this.setNewAddress=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.SET_NEW_ADDRESS_LND),(0,M.U)(F=>(this.logger.info(F.payload),F.payload))),{dispatch:!1}),this.SetChannelTransaction=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.SET_CHANNEL_TRANSACTION_LND),(0,C.z)(F=>(this.store.dispatch((0,E.ac)({payload:O.m6.SEND_FUNDS})),this.store.dispatch((0,P.PC)({payload:{action:"SetChannelTransaction",status:O.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+s.NZ.TRANSACTIONS_API,{amount:F.payload.amount,address:F.payload.address,sendAll:F.payload.sendAll,fees:F.payload.fees,blocks:F.payload.blocks}).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,P.PC)({payload:{action:"SetChannelTransaction",status:O.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:O.m6.SEND_FUNDS})),this.store.dispatch((0,P.mC)()),this.store.dispatch((0,P.Bl)()),this.store.dispatch((0,P.UR)()),{type:O.uR.SET_CHANNEL_TRANSACTION_RES_LND,payload:U})),(0,l.K)(U=>(this.handleErrorWithoutAlert("SetChannelTransaction",O.m6.SEND_FUNDS,"Sending Fund Failed.",U),(0,y.of)({type:O.pg.VOID})))))))),this.fetchForwardingHistory=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.GET_FORWARDING_HISTORY_LND),(0,C.z)(F=>(this.store.dispatch((0,P.PC)({payload:{action:"FetchForwardingHistory",status:O.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+s.NZ.SWITCH_API,{num_max_events:F.payload.num_max_events,index_offset:F.payload.index_offset,end_time:F.payload.end_time,start_time:F.payload.start_time}).pipe((0,M.U)(ye=>(this.logger.info(ye),this.store.dispatch((0,P.PC)({payload:{action:"FetchForwardingHistory",status:O.Bn.COMPLETED}})),{type:O.uR.SET_FORWARDING_HISTORY_LND,payload:ye})),(0,l.K)(ye=>(this.handleErrorWithAlert("FetchForwardingHistory",O.m6.NO_SPINNER,"Get Forwarding History Failed",this.CHILD_API_URL+s.NZ.SWITCH_API,ye),(0,y.of)({type:O.pg.VOID})))))))),this.queryRoutesFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.GET_QUERY_ROUTES_LND),(0,C.z)(F=>{let U=this.CHILD_API_URL+s.NZ.NETWORK_API+"/routes/"+F.payload.destPubkey+"/"+F.payload.amount;return F.payload.outgoingChanId&&(U=U+"?outgoing_chan_id="+F.payload.outgoingChanId),this.httpClient.get(U).pipe((0,M.U)(ye=>(this.logger.info(ye),{type:O.uR.SET_QUERY_ROUTES_LND,payload:ye})),(0,l.K)(ye=>(this.store.dispatch((0,P.kL)({payload:{routes:[]}})),this.handleErrorWithAlert("GetQueryRoutes",O.m6.NO_SPINNER,"Get Query Routes Failed",this.CHILD_API_URL+s.NZ.NETWORK_API,ye),(0,y.of)({type:O.pg.VOID}))))}))),this.setQueryRoutes=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.SET_QUERY_ROUTES_LND),(0,M.U)(F=>F.payload)),{dispatch:!1}),this.genSeed=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.GEN_SEED_LND),(0,C.z)(F=>(this.store.dispatch((0,E.ac)({payload:O.m6.GEN_SEED})),this.httpClient.get(this.CHILD_API_URL+s.NZ.WALLET_API+"/genseed/"+F.payload).pipe((0,M.U)(U=>(this.logger.info("Generated GenSeed!"),this.logger.info(U),this.store.dispatch((0,E.uO)({payload:O.m6.GEN_SEED})),{type:O.uR.GEN_SEED_RESPONSE_LND,payload:U.cipher_seed_mnemonic})),(0,l.K)(U=>(this.handleErrorWithAlert("GenSeed",O.m6.GEN_SEED,"Genseed Generation Failed",this.CHILD_API_URL+s.NZ.WALLET_API+"/genseed/"+F.payload,U),(0,y.of)({type:O.pg.VOID})))))))),this.updateSelNodeOptions=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.pg.UPDATE_SELECTED_NODE_OPTIONS),(0,C.z)(()=>this.httpClient.get(this.CHILD_API_URL+s.NZ.WALLET_API+"/updateSelNodeOptions").pipe((0,M.U)(F=>(this.logger.info("Update Sel Node Successfull"),this.logger.info(F),{type:O.pg.VOID})),(0,l.K)(F=>(this.handleErrorWithAlert("UpdateSelectedNodeOptions",O.m6.NO_SPINNER,"Update macaroon for newly initialized node failed! Please check the macaroon path and restart the server!","Update Macaroon",F),(0,y.of)({type:O.pg.VOID}))))))),this.genSeedResponse=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.GEN_SEED_RESPONSE_LND),(0,M.U)(F=>F.payload)),{dispatch:!1}),this.initWalletRes=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.INIT_WALLET_RESPONSE_LND),(0,M.U)(F=>F.payload)),{dispatch:!1}),this.initWallet=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.INIT_WALLET_LND),(0,C.z)(F=>(this.store.dispatch((0,E.ac)({payload:O.m6.INITIALIZE_WALLET})),this.httpClient.post(this.CHILD_API_URL+s.NZ.WALLET_API+"/wallet/initwallet",{wallet_password:F.payload.pwd,cipher_seed_mnemonic:F.payload.cipher?F.payload.cipher:"",aezeed_passphrase:F.payload.passphrase?F.payload.passphrase:""}).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,E.uO)({payload:O.m6.INITIALIZE_WALLET})),{type:O.uR.INIT_WALLET_RESPONSE_LND,payload:U})),(0,l.K)(U=>(this.handleErrorWithAlert("InitWallet",O.m6.INITIALIZE_WALLET,"Wallet Initialization Failed",this.CHILD_API_URL+s.NZ.WALLET_API+"/initwallet",U),(0,y.of)({type:O.pg.VOID})))))))),this.unlockWallet=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.UNLOCK_WALLET_LND),(0,C.z)(F=>(this.store.dispatch((0,E.ac)({payload:O.m6.UNLOCK_WALLET})),this.httpClient.post(this.CHILD_API_URL+s.NZ.WALLET_API+"/wallet/unlockwallet",{wallet_password:F.payload.pwd}).pipe((0,M.U)(U=>(this.logger.info(U),this.logger.info("Successfully Unlocked!"),this.sessionService.setItem("lndUnlocked","true"),this.store.dispatch((0,E.uO)({payload:O.m6.UNLOCK_WALLET})),this.store.dispatch((0,E.ac)({payload:O.m6.WAIT_SYNC_NODE})),setTimeout(()=>{this.store.dispatch((0,E.uO)({payload:O.m6.WAIT_SYNC_NODE})),this.store.dispatch((0,P.sQ)({payload:{loadPage:"HOME"}}))},5e3),{type:O.pg.VOID})),(0,l.K)(U=>(this.handleErrorWithAlert("UnlockWallet",O.m6.UNLOCK_WALLET,"Unlock Wallet Failed",this.CHILD_API_URL+s.NZ.WALLET_API+"/unlockwallet",U),(0,y.of)({type:O.pg.VOID}))))))),{dispatch:!1}),this.peerLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.PEER_LOOKUP_LND),(0,C.z)(F=>(this.store.dispatch((0,E.ac)({payload:O.m6.SEARCHING_NODE})),this.store.dispatch((0,P.PC)({payload:{action:"Lookup",status:O.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.NETWORK_API+"/node/"+F.payload).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,E.uO)({payload:O.m6.SEARCHING_NODE})),this.store.dispatch((0,P.PC)({payload:{action:"Lookup",status:O.Bn.COMPLETED}})),{type:O.uR.SET_LOOKUP_LND,payload:U})),(0,l.K)(U=>(this.handleErrorWithAlert("Lookup",O.m6.SEARCHING_NODE,"Peer Lookup Failed",this.CHILD_API_URL+s.NZ.NETWORK_API+"/node/"+F.payload,U),(0,y.of)({type:O.pg.VOID})))))))),this.channelLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.CHANNEL_LOOKUP_LND),(0,C.z)(F=>(this.store.dispatch((0,E.ac)({payload:F.payload.uiMessage})),this.store.dispatch((0,P.PC)({payload:{action:"Lookup",status:O.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.NETWORK_API+"/edge/"+F.payload.channelID).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,E.uO)({payload:F.payload.uiMessage})),this.store.dispatch((0,P.PC)({payload:{action:"Lookup",status:O.Bn.COMPLETED}})),{type:O.uR.SET_LOOKUP_LND,payload:U})),(0,l.K)(U=>(this.handleErrorWithAlert("Lookup",F.payload.uiMessage,"Channel Lookup Failed",this.CHILD_API_URL+s.NZ.NETWORK_API+"/edge/"+F.payload.channelID,U),(0,y.of)({type:O.pg.VOID})))))))),this.invoiceLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.INVOICE_LOOKUP_LND),(0,C.z)(F=>{this.store.dispatch((0,E.ac)({payload:O.m6.SEARCHING_INVOICE})),this.store.dispatch((0,P.PC)({payload:{action:"Lookup",status:O.Bn.INITIATED}}));let U=this.CHILD_API_URL+s.NZ.INVOICES_API+"/lookup";return U=F.payload.paymentAddress&&""!==F.payload.paymentAddress?U+"?payment_addr="+F.payload.paymentAddress:U+"?payment_hash="+F.payload.paymentHash,this.httpClient.get(U).pipe((0,M.U)(ye=>(this.logger.info(ye),this.store.dispatch((0,E.uO)({payload:O.m6.SEARCHING_INVOICE})),this.store.dispatch((0,P.PC)({payload:{action:"Lookup",status:O.Bn.COMPLETED}})),this.store.dispatch((0,P.aL)({payload:ye})),{type:O.uR.SET_LOOKUP_LND,payload:ye})),(0,l.K)(ye=>(this.store.dispatch((0,P.PC)({payload:{action:"Lookup",status:O.Bn.ERROR}})),this.handleErrorWithoutAlert("Lookup",O.m6.SEARCHING_INVOICE,"Invoice Lookup Failed",ye),F.payload.openSnackBar&&this.store.dispatch((0,E.jW)({payload:{message:"Invoice Refresh Failed.",type:"ERROR"}})),(0,y.of)({type:O.uR.SET_LOOKUP_LND,payload:{error:ye}}))))}))),this.paymentLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.PAYMENT_LOOKUP_LND),(0,C.z)(F=>(this.store.dispatch((0,E.ac)({payload:O.m6.SEARCHING_PAYMENT})),this.store.dispatch((0,P.PC)({payload:{action:"Lookup",status:O.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.PAYMENTS_API+"/lookup/"+F.payload).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,E.uO)({payload:O.m6.SEARCHING_PAYMENT})),this.store.dispatch((0,P.PC)({payload:{action:"Lookup",status:O.Bn.COMPLETED}})),this.store.dispatch((0,P.qY)({payload:U})),{type:O.uR.SET_LOOKUP_LND,payload:U})),(0,l.K)(U=>(this.store.dispatch((0,P.PC)({payload:{action:"Lookup",status:O.Bn.ERROR}})),this.handleErrorWithoutAlert("Lookup",O.m6.SEARCHING_PAYMENT,"Payment Lookup Failed",U),(0,y.of)({type:O.uR.SET_LOOKUP_LND,payload:{error:U}})))))))),this.setLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.SET_LOOKUP_LND),(0,M.U)(F=>(this.logger.info(F.payload),F.payload))),{dispatch:!1}),this.getRestoreChannelList=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.RESTORE_CHANNELS_LIST_LND),(0,C.z)(()=>(this.store.dispatch((0,P.PC)({payload:{action:"RestoreChannelsList",status:O.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.CHANNELS_BACKUP_API+"/restore/list").pipe((0,M.U)(F=>(this.logger.info(F),this.store.dispatch((0,P.PC)({payload:{action:"RestoreChannelsList",status:O.Bn.COMPLETED}})),{type:O.uR.SET_RESTORE_CHANNELS_LIST_LND,payload:F||{all_restore_exists:!1,files:[]}})),(0,l.K)(F=>(this.handleErrorWithAlert("RestoreChannelsList",O.m6.NO_SPINNER,"Restore Channels List Failed",this.CHILD_API_URL+s.NZ.CHANNELS_BACKUP_API,F),(0,y.of)({type:O.pg.VOID})))))))),this.setRestoreChannelList=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.SET_RESTORE_CHANNELS_LIST_LND),(0,M.U)(F=>(this.logger.info(F.payload),F.payload))),{dispatch:!1}),this.allLightningTransactionsFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.GET_ALL_LIGHTNING_TRANSATIONS_LND),(0,C.z)(()=>(this.store.dispatch((0,P.PC)({payload:{action:"FetchLightningTransactions",status:O.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.PAYMENTS_API+"/alltransactions").pipe((0,M.U)(F=>(this.logger.info(F),this.store.dispatch((0,P.PC)({payload:{action:"FetchLightningTransactions",status:O.Bn.COMPLETED}})),{type:O.uR.SET_ALL_LIGHTNING_TRANSATIONS_LND,payload:F})),(0,l.K)(F=>(this.handleErrorWithoutAlert("FetchLightningTransactions",O.m6.NO_SPINNER,"Fetching All Lightning Transaction Failed.",F),(0,y.of)({type:O.pg.VOID})))))))),this.store.select(w.yA).pipe((0,o.R)(this.unSubs[0])).subscribe(F=>{F.FetchInfo.status!==O.Bn.COMPLETED&&F.FetchInfo.status!==O.Bn.ERROR||F.FetchFees.status!==O.Bn.COMPLETED&&F.FetchFees.status!==O.Bn.ERROR||F.FetchBalanceBlockchain.status!==O.Bn.COMPLETED&&F.FetchBalanceBlockchain.status!==O.Bn.ERROR||F.FetchAllChannels.status!==O.Bn.COMPLETED&&F.FetchAllChannels.status!==O.Bn.ERROR||F.FetchPendingChannels.status!==O.Bn.COMPLETED&&F.FetchPendingChannels.status!==O.Bn.ERROR||this.flgInitialized||(this.store.dispatch((0,E.uO)({payload:O.m6.INITALIZE_NODE_DATA})),this.flgInitialized=!0)}),this.wsService.lndWSMessages.pipe((0,o.R)(this.unSubs[1])).subscribe(F=>{this.logger.info("Received new message from the service: "+JSON.stringify(F)),F&&(F.type===O.g8.INVOICE?(this.logger.info(F),F&&F.result&&F.result.payment_request&&this.store.dispatch((0,P.aL)({payload:F.result}))):this.logger.info("Received Event from WS: "+JSON.stringify(F)))})}initializeRemainingData(a,p){this.sessionService.setItem("lndUnlocked","true");const u={identity_pubkey:a.identity_pubkey,alias:a.alias,testnet:a.testnet,chains:a.chains,uris:a.uris,version:a.version?a.version.split(" ")[0]:""};this.store.dispatch((0,E.ac)({payload:O.m6.INITALIZE_NODE_DATA})),this.store.dispatch((0,E._V)({payload:u}));let _=this.location.path();_.includes("/cln/")?_=_.replace("/cln/","/lnd/"):_.includes("/ecl/")&&(_=_.replace("/ecl/","/lnd/")),(_.includes("/unlock")||_.includes("/login")||_.includes("/error")||""===_||"HOME"===p||_.includes("?access-key="))&&(_="/lnd/home"),this.router.navigate([_]),this.store.dispatch((0,P.Bl)()),this.store.dispatch((0,P.UR)()),this.store.dispatch((0,P.Z7)()),this.store.dispatch((0,P.Zh)()),this.store.dispatch((0,P.$W)()),this.store.dispatch((0,P.Rv)()),this.store.dispatch((0,P.SN)()),this.store.dispatch((0,P.WM)({payload:{num_max_invoices:10,reversed:!0}})),this.store.dispatch((0,P.cQ)({payload:{max_payments:1e5,reversed:!0}}))}handleErrorWithoutAlert(a,p,u,_){this.logger.error("ERROR IN: "+a+"\n"+JSON.stringify(_)),401===_.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:p})),this.store.dispatch((0,P.PC)({payload:{action:a,status:O.Bn.ERROR,statusCode:_.status.toString(),message:this.commonService.extractErrorMessage(_,u)}})))}handleErrorWithAlert(a,p,u,_,L){if(this.logger.error(L),401===L.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:p}));const I=this.commonService.extractErrorMessage(L);this.store.dispatch((0,E.qR)({payload:{data:{type:"ERROR",alertTitle:u,message:{code:L.status,message:I,URL:_},component:A.H}}})),this.store.dispatch((0,P.PC)({payload:{action:a,status:O.Bn.ERROR,statusCode:L.status.toString(),message:I,URL:_}}))}}ngOnDestroy(){this.unSubs.forEach(a=>{a.next(null),a.complete()})}}return b.\u0275fac=function(a){return new(a||b)(Z.LFG(e.eX),Z.LFG(j.eN),Z.LFG(W.yh),Z.LFG(ie.mQ),Z.LFG(ee.v),Z.LFG(_e.m),Z.LFG(ce.uw),Z.LFG(re.F0),Z.LFG(de.d),Z.LFG(oe.Ye))},b.\u0275prov=Z.Yz7({token:b,factory:b.\u0275fac}),b})()},6529:(Ve,Q,m)=>{"use strict";m.d(Q,{$k:()=>y,Q5:()=>C,yA:()=>M,Bo:()=>l,PP:()=>N,JG:()=>s,Wi:()=>D,dx:()=>A,Ef:()=>O,ZW:()=>E,ni:()=>w,P2:()=>Z,qU:()=>j,T4:()=>ie,N7:()=>ee,l5:()=>_e,_f:()=>ce,bx:()=>re});var e=m(5620);const t=(0,e.ZF)("lnd"),y=(0,e.P1)(t,de=>de.nodeSettings),C=(0,e.P1)(t,de=>de.information),M=((0,e.P1)(t,de=>({information:de.information,apiCallStatus:de.apisCallStatus.FetchInfo})),(0,e.P1)(t,de=>de.apisCallStatus)),l=(0,e.P1)(t,de=>({forwardingHistory:de.forwardingHistory,apiCallStatus:de.apisCallStatus.FetchForwardingHistory})),N=(0,e.P1)(t,de=>({listPayments:de.listPayments,apiCallStatus:de.apisCallStatus.FetchPayments})),s=(0,e.P1)(t,de=>({fees:de.fees,apiCallStatus:de.apisCallStatus.FetchFees})),D=(0,e.P1)(t,de=>({peers:de.peers,apiCallStatus:de.apisCallStatus.FetchPeers})),A=(0,e.P1)(t,de=>({transactions:de.transactions,apiCallStatus:de.apisCallStatus.FetchTransactions})),O=(0,e.P1)(t,de=>({listInvoices:de.listInvoices,apiCallStatus:de.apisCallStatus.FetchInvoices})),E=(0,e.P1)(t,de=>({channels:de.channels,channelsSummary:de.channelsSummary,lightningBalance:de.lightningBalance,apiCallStatus:de.apisCallStatus.FetchAllChannels})),w=((0,e.P1)(t,de=>({channelsSummary:de.channelsSummary,pendingChannels:de.pendingChannels,closedChannels:de.closedChannels,apiCallStatus:de.apisCallStatus.FetchAllChannels})),(0,e.P1)(t,de=>({pendingChannels:de.pendingChannels,pendingChannelsSummary:de.pendingChannelsSummary,apiCallStatus:de.apisCallStatus.FetchPendingChannels}))),Z=(0,e.P1)(t,de=>({closedChannels:de.closedChannels,apiCallStatus:de.apisCallStatus.FetchClosedChannels})),j=(0,e.P1)(t,de=>({blockchainBalance:de.blockchainBalance,apiCallStatus:de.apisCallStatus.FetchBalanceBlockchain})),ie=((0,e.P1)(t,de=>({lightningBalance:de.lightningBalance,apiCallStatus:de.apisCallStatus.FetchAllChannels})),(0,e.P1)(t,de=>({utxos:de.utxos,apiCallStatus:de.apisCallStatus.FetchUTXOs}))),ee=(0,e.P1)(t,de=>({networkInfo:de.networkInfo,apiCallStatus:de.apisCallStatus.FetchNetwork})),_e=(0,e.P1)(t,de=>({allLightningTransactions:de.allLightningTransactions,apiCallStatus:de.apisCallStatus.FetchLightningTransactions})),ce=(0,e.P1)(t,de=>({channels:de.channels,pendingChannels:de.pendingChannels,closedChannels:de.closedChannels})),re=(0,e.P1)(t,de=>({information:de.information,nodeSettings:de.nodeSettings,apiCallStatus:de.apisCallStatus.FetchInfo}))},8627:(Ve,Q,m)=>{"use strict";m.d(Q,{v:()=>$});var e=m(8966),t=m(801),y=m(7579),C=m(2722),o=m(7731),M=m(6529),l=m(5e3),N=m(5043),s=m(62),D=m(7261),A=m(5620),O=m(7093),E=m(9808),P=m(3322),w=m(9224),Z=m(9444),j=m(7423),W=m(644),ie=m(4834),ee=m(159),_e=m(773),ce=m(1125),re=m(7238),de=m(5245),oe=m(3390),ae=m(6895);const b=["scrollContainer"];function i(le,xe){if(1&le&&l._UZ(0,"qr-code",32),2&le){const Ue=l.oxw();l.Q6J("value",null==Ue.invoice?null:Ue.invoice.payment_request)("size",Ue.qrWidth)("errorCorrectionLevel","L")}}function a(le,xe){1&le&&(l.TgZ(0,"span",33),l._uU(1,"N/A"),l.qZA())}function p(le,xe){if(1&le&&l._UZ(0,"qr-code",32),2&le){const Ue=l.oxw();l.Q6J("value",null==Ue.invoice?null:Ue.invoice.payment_request)("size",Ue.qrWidth)("errorCorrectionLevel","L")}}function u(le,xe){1&le&&(l.TgZ(0,"span",34),l._uU(1,"QR Code Not Applicable"),l.qZA())}function _(le,xe){1&le&&l._UZ(0,"mat-divider",22),2&le&&l.Q6J("inset",!0)}function L(le,xe){1&le&&(l.ynx(0),l._uU(1," (zero amount) "),l.BQk())}function I(le,xe){1&le&&l._UZ(0,"span",40)}const x=function(){return[]};function r(le,xe){if(1&le&&(l.TgZ(0,"div",36),l.TgZ(1,"div",37),l.TgZ(2,"span",38),l._uU(3),l.ALo(4,"number"),l.qZA(),l.YNc(5,I,1,0,"span",39),l.qZA(),l.qZA()),2&le){const Ue=l.oxw(2);l.xp6(3),l.hij("",l.lcZ(4,2,null==Ue.invoice?null:Ue.invoice.amt_paid_sat)," Sats"),l.xp6(2),l.Q6J("ngForOf",l.DdM(4,x).constructor(35))}}function v(le,xe){if(1&le&&(l.TgZ(0,"div"),l._uU(1),l.ALo(2,"number"),l.qZA()),2&le){const Ue=l.oxw(2);l.xp6(1),l.hij("",l.lcZ(2,1,null==Ue.invoice?null:Ue.invoice.amt_paid_sat)," Sats")}}function G(le,xe){if(1&le&&(l.ynx(0),l.YNc(1,r,6,5,"div",35),l.YNc(2,v,3,3,"div",21),l.BQk()),2&le){const Ue=l.oxw();l.xp6(1),l.Q6J("ngIf",Ue.flgInvoicePaid),l.xp6(1),l.Q6J("ngIf",!Ue.flgInvoicePaid)}}function F(le,xe){1&le&&(l.TgZ(0,"span"),l._uU(1,"-"),l.qZA())}function U(le,xe){1&le&&l._UZ(0,"mat-spinner",42),2&le&&l.Q6J("diameter",20)}function ye(le,xe){if(1&le&&(l.ynx(0),l.YNc(1,F,2,0,"span",21),l.YNc(2,U,1,1,"mat-spinner",41),l.BQk()),2&le){const Ue=l.oxw();l.xp6(1),l.Q6J("ngIf","OPEN"!==(null==Ue.invoice?null:Ue.invoice.state)||!Ue.flgVersionCompatible),l.xp6(1),l.Q6J("ngIf","OPEN"===(null==Ue.invoice?null:Ue.invoice.state)&&Ue.flgVersionCompatible)}}const Ce=function(le){return{"mr-0":le}};function Be(le,xe){if(1&le&&l._UZ(0,"span",59),2&le){const Ue=l.oxw(4);l.Q6J("ngClass",l.VKq(1,Ce,Ue.screenSize===Ue.screenSizeEnum.XS))}}function ze(le,xe){if(1&le&&l._UZ(0,"span",60),2&le){const Ue=l.oxw(4);l.Q6J("ngClass",l.VKq(1,Ce,Ue.screenSize===Ue.screenSizeEnum.XS))}}function Ie(le,xe){if(1&le&&l._UZ(0,"span",61),2&le){const Ue=l.oxw(4);l.Q6J("ngClass",l.VKq(1,Ce,Ue.screenSize===Ue.screenSizeEnum.XS))}}function K(le,xe){if(1&le&&(l.TgZ(0,"div",48),l.TgZ(1,"div",53),l.TgZ(2,"span",54),l.YNc(3,Be,1,3,"span",55),l.YNc(4,ze,1,3,"span",56),l.YNc(5,Ie,1,3,"span",57),l._uU(6),l.qZA(),l.TgZ(7,"span",58),l._uU(8),l.ALo(9,"number"),l.qZA(),l.qZA(),l._UZ(10,"mat-divider",22),l.qZA()),2&le){const Ue=xe.$implicit,lt=l.oxw(3);l.xp6(3),l.Q6J("ngIf","SETTLED"===Ue.state),l.xp6(1),l.Q6J("ngIf","ACCEPTED"===Ue.state),l.xp6(1),l.Q6J("ngIf","CANCELED"===Ue.state),l.xp6(1),l.hij(" ",Ue.chan_id," "),l.xp6(2),l.Oqu(l.xi3(9,6,+Ue.amt_msat/1e3||0,lt.getDecimalFormat(Ue))),l.xp6(2),l.Q6J("inset",!0)}}function Me(le,xe){if(1&le){const Ue=l.EpF();l.TgZ(0,"div",17),l.TgZ(1,"mat-expansion-panel",46),l.NdJ("opened",function(){return l.CHM(Ue),l.oxw(2).flgOpened=!0})("closed",function(){return l.CHM(Ue),l.oxw(2).onExpansionClosed()}),l.TgZ(2,"mat-expansion-panel-header"),l.TgZ(3,"mat-panel-title"),l.TgZ(4,"h4",47),l._uU(5,"HTLCs"),l.qZA(),l.qZA(),l.qZA(),l.TgZ(6,"div",48),l.TgZ(7,"div",49),l.TgZ(8,"span",50),l._uU(9,"Channel ID"),l.qZA(),l.TgZ(10,"span",51),l._uU(11,"Amount (Sats)"),l.qZA(),l.qZA(),l._UZ(12,"mat-divider",22),l.YNc(13,K,11,9,"div",52),l.qZA(),l.qZA(),l.qZA()}if(2&le){const Ue=l.oxw(2);l.xp6(12),l.Q6J("inset",!0),l.xp6(1),l.Q6J("ngForOf",null==Ue.invoice?null:Ue.invoice.htlcs)}}function we(le,xe){1&le&&l._UZ(0,"mat-divider",22),2&le&&l.Q6J("inset",!0)}function z(le,xe){if(1&le&&(l.TgZ(0,"div"),l._UZ(1,"mat-divider",22),l.TgZ(2,"div",17),l.TgZ(3,"div",23),l.TgZ(4,"h4",19),l._uU(5,"Preimage"),l.qZA(),l.TgZ(6,"span",24),l._uU(7),l.qZA(),l.qZA(),l.qZA(),l._UZ(8,"mat-divider",22),l.TgZ(9,"div",17),l.TgZ(10,"div",43),l.TgZ(11,"h4",19),l._uU(12,"State"),l.qZA(),l.TgZ(13,"span",24),l._uU(14),l.qZA(),l.qZA(),l.TgZ(15,"div",44),l.TgZ(16,"h4",19),l._uU(17,"Expiry"),l.qZA(),l.TgZ(18,"span",24),l._uU(19),l.qZA(),l.qZA(),l.TgZ(20,"div",44),l.TgZ(21,"h4",19),l._uU(22,"Private Routing Hints"),l.qZA(),l.TgZ(23,"span",24),l._uU(24),l.qZA(),l.qZA(),l.qZA(),l._UZ(25,"mat-divider",22),l.YNc(26,Me,14,2,"div",45),l.YNc(27,we,1,1,"mat-divider",14),l.qZA()),2&le){const Ue=l.oxw();l.xp6(1),l.Q6J("inset",!0),l.xp6(6),l.Oqu((null==Ue.invoice?null:Ue.invoice.r_preimage)||"-"),l.xp6(1),l.Q6J("inset",!0),l.xp6(6),l.Oqu(null==Ue.invoice?null:Ue.invoice.state),l.xp6(5),l.Oqu(null==Ue.invoice?null:Ue.invoice.expiry),l.xp6(5),l.Oqu(null!=Ue.invoice&&Ue.invoice.private?"Yes":"No"),l.xp6(1),l.Q6J("inset",!0),l.xp6(1),l.Q6J("ngIf",(null==Ue.invoice?null:Ue.invoice.htlcs)&&(null==Ue.invoice?null:Ue.invoice.htlcs.length)>0),l.xp6(1),l.Q6J("ngIf",(null==Ue.invoice?null:Ue.invoice.htlcs)&&(null==Ue.invoice?null:Ue.invoice.htlcs.length)>0)}}function Ge(le,xe){if(1&le){const Ue=l.EpF();l.TgZ(0,"div",62),l.TgZ(1,"button",63),l.NdJ("click",function(){return l.CHM(Ue),l.oxw().onScrollDown()}),l.TgZ(2,"mat-icon",64),l._uU(3,"arrow_downward"),l.qZA(),l.qZA(),l.qZA()}}function vt(le,xe){1&le&&(l.TgZ(0,"p"),l._uU(1,"Show Advanced"),l.qZA())}function Re(le,xe){1&le&&(l.TgZ(0,"p"),l._uU(1,"Hide Advanced"),l.qZA())}function Ne(le,xe){if(1&le){const Ue=l.EpF();l.TgZ(0,"button",65),l.NdJ("copied",function(nt){return l.CHM(Ue),l.oxw().onCopyPayment(nt)}),l._uU(1),l.qZA()}if(2&le){const Ue=l.oxw();l.Q6J("payload",null==Ue.invoice?null:Ue.invoice.payment_request),l.xp6(1),l.Oqu(Ue.screenSize===Ue.screenSizeEnum.XS?"Copy Payment":"Copy Payment Request")}}function he(le,xe){if(1&le){const Ue=l.EpF();l.TgZ(0,"button",66),l.NdJ("click",function(){return l.CHM(Ue),l.oxw().onClose()}),l._uU(1,"OK"),l.qZA()}}const Le=function(le){return{"display-none":le}},ke=function(le){return{"xs-scroll-y":le}},q=function(le){return{"h-50":le}};let $=(()=>{class le{constructor(Ue,lt,nt,ft,it,rt){this.dialogRef=Ue,this.data=lt,this.logger=nt,this.commonService=ft,this.snackBar=it,this.store=rt,this.faReceipt=t.dLy,this.showAdvanced=!1,this.newlyAdded=!1,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=o.cu,this.flgOpened=!1,this.flgInvoicePaid=!1,this.flgVersionCompatible=!0,this.unSubs=[new y.x,new y.x,new y.x,new y.x,new y.x]}set container(Ue){Ue&&(this.scrollContainer=Ue)}ngOnInit(){this.invoice=JSON.parse(JSON.stringify(this.data.invoice)),this.newlyAdded=this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===o.cu.XS&&(this.qrWidth=220),this.store.select(M.Q5).pipe((0,C.R)(this.unSubs[0])).subscribe(lt=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(lt.version,"0.11.0")});const Ue=JSON.parse(JSON.stringify(this.invoice));this.store.select(M.Ef).pipe((0,C.R)(this.unSubs[1])).subscribe(lt=>{const nt=this.invoice.state,it=(lt.listInvoices.invoices||[]).find(rt=>rt.r_hash===Ue.r_hash);this.invoice=it,nt!==this.invoice.state&&"SETTLED"===this.invoice.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(Ue){this.snackBar.open("Payment request copied."),this.logger.info("Copied Text: "+Ue)}getDecimalFormat(Ue){return Ue.amt_msat<1e3?"1.0-4":"1.0-0"}ngOnDestroy(){this.unSubs.forEach(Ue=>{Ue.next(null),Ue.complete()})}}return le.\u0275fac=function(Ue){return new(Ue||le)(l.Y36(e.so),l.Y36(e.WI),l.Y36(N.mQ),l.Y36(s.v),l.Y36(D.ux),l.Y36(A.yh))},le.\u0275cmp=l.Xpm({type:le,selectors:[["rtl-invoice-information"]],viewQuery:function(Ue,lt){if(1&Ue&&l.Gf(b,5),2&Ue){let nt;l.iGM(nt=l.CRH())&&(lt.container=nt.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(Ue,lt){if(1&Ue&&(l.TgZ(0,"div",0),l.TgZ(1,"div",1),l.YNc(2,i,1,3,"qr-code",2),l.YNc(3,a,2,0,"span",3),l.qZA(),l.TgZ(4,"div",4),l.TgZ(5,"mat-card-header",5),l.TgZ(6,"div",6),l._UZ(7,"fa-icon",7),l.TgZ(8,"span",8),l._uU(9),l.qZA(),l.qZA(),l.TgZ(10,"button",9),l.NdJ("click",function(){return lt.onClose()}),l._uU(11,"X"),l.qZA(),l.qZA(),l.TgZ(12,"mat-card-content",10),l.TgZ(13,"div",11),l.TgZ(14,"div",12),l.YNc(15,p,1,3,"qr-code",2),l.YNc(16,u,2,0,"span",13),l.qZA(),l.YNc(17,_,1,1,"mat-divider",14),l.TgZ(18,"div",15,16),l.TgZ(20,"div",17),l.TgZ(21,"div",18),l.TgZ(22,"h4",19),l._uU(23),l.qZA(),l.TgZ(24,"span",20),l._uU(25),l.ALo(26,"number"),l.YNc(27,L,2,0,"ng-container",21),l.qZA(),l.qZA(),l.TgZ(28,"div",18),l.TgZ(29,"h4",19),l._uU(30,"Amount Settled"),l.qZA(),l.TgZ(31,"span",20),l.YNc(32,G,3,2,"ng-container",21),l.YNc(33,ye,3,2,"ng-container",21),l.qZA(),l.qZA(),l.qZA(),l._UZ(34,"mat-divider",22),l.TgZ(35,"div",17),l.TgZ(36,"div",18),l.TgZ(37,"h4",19),l._uU(38,"Date Created"),l.qZA(),l.TgZ(39,"span",20),l._uU(40),l.ALo(41,"date"),l.qZA(),l.qZA(),l.TgZ(42,"div",18),l.TgZ(43,"h4",19),l._uU(44,"Date Settled"),l.qZA(),l.TgZ(45,"span",20),l._uU(46),l.ALo(47,"date"),l.qZA(),l.qZA(),l.qZA(),l._UZ(48,"mat-divider",22),l.TgZ(49,"div",17),l.TgZ(50,"div",23),l.TgZ(51,"h4",19),l._uU(52,"Memo"),l.qZA(),l.TgZ(53,"span",20),l._uU(54),l.qZA(),l.qZA(),l.qZA(),l._UZ(55,"mat-divider",22),l.TgZ(56,"div",17),l.TgZ(57,"div",23),l.TgZ(58,"h4",19),l._uU(59,"Payment Request"),l.qZA(),l.TgZ(60,"span",24),l._uU(61),l.qZA(),l.qZA(),l.qZA(),l._UZ(62,"mat-divider",22),l.TgZ(63,"div",17),l.TgZ(64,"div",23),l.TgZ(65,"h4",19),l._uU(66,"Payment Hash"),l.qZA(),l.TgZ(67,"span",24),l._uU(68),l.qZA(),l.qZA(),l.qZA(),l.YNc(69,z,28,9,"div",21),l.qZA(),l.qZA(),l.qZA(),l.YNc(70,Ge,4,0,"div",25),l.TgZ(71,"div",26),l.TgZ(72,"button",27),l.NdJ("click",function(){return lt.onShowAdvanced()}),l.YNc(73,vt,2,0,"p",28),l.YNc(74,Re,2,0,"ng-template",null,29,l.W1O),l.qZA(),l.YNc(76,Ne,2,2,"button",30),l.YNc(77,he,2,0,"button",31),l.qZA(),l.qZA(),l.qZA()),2&Ue){const nt=l.MAs(75);l.xp6(1),l.Q6J("fxLayoutAlign",null!=lt.invoice&&lt.invoice.payment_request&&""!==(null==lt.invoice?null:lt.invoice.payment_request)?"center start":"center center")("ngClass",l.VKq(41,Le,lt.screenSize===lt.screenSizeEnum.XS||lt.screenSize===lt.screenSizeEnum.SM)),l.xp6(1),l.Q6J("ngIf",(null==lt.invoice?null:lt.invoice.payment_request)&&""!==(null==lt.invoice?null:lt.invoice.payment_request)),l.xp6(1),l.Q6J("ngIf",!(null!=lt.invoice&&lt.invoice.payment_request)||""===(null==lt.invoice?null:lt.invoice.payment_request)),l.xp6(4),l.Q6J("icon",lt.faReceipt),l.xp6(2),l.Oqu(lt.screenSize===lt.screenSizeEnum.XS?lt.newlyAdded?"Created":"Invoice":lt.newlyAdded?"Invoice Created":"Invoice Information"),l.xp6(3),l.Q6J("ngClass",l.VKq(43,ke,lt.screenSize===lt.screenSizeEnum.XS)),l.xp6(2),l.Q6J("fxLayoutAlign",null!=lt.invoice&&lt.invoice.payment_request&&""!==(null==lt.invoice?null:lt.invoice.payment_request)?"center start":"center center")("ngClass",l.VKq(45,Le,lt.screenSize!==lt.screenSizeEnum.XS&&lt.screenSize!==lt.screenSizeEnum.SM)),l.xp6(1),l.Q6J("ngIf",(null==lt.invoice?null:lt.invoice.payment_request)&&""!==(null==lt.invoice?null:lt.invoice.payment_request)),l.xp6(1),l.Q6J("ngIf",!(null!=lt.invoice&&lt.invoice.payment_request)||""===(null==lt.invoice?null:lt.invoice.payment_request)),l.xp6(1),l.Q6J("ngIf",lt.screenSize===lt.screenSizeEnum.XS||lt.screenSize===lt.screenSizeEnum.SM),l.xp6(1),l.Q6J("ngClass",l.VKq(47,q,(null==lt.invoice?null:lt.invoice.htlcs)&&(null==lt.invoice?null:lt.invoice.htlcs.length)>0&&lt.showAdvanced)),l.xp6(5),l.Oqu(lt.screenSize===lt.screenSizeEnum.XS?"Amount":"Amount Requested"),l.xp6(2),l.hij("",l.lcZ(26,33,(null==lt.invoice?null:lt.invoice.value)||0)," Sats"),l.xp6(2),l.Q6J("ngIf",!(null!=lt.invoice&&lt.invoice.value)||"0"===(null==lt.invoice?null:lt.invoice.value)),l.xp6(5),l.Q6J("ngIf",(null==lt.invoice?null:lt.invoice.amt_paid_sat)&&"OPEN"!==(null==lt.invoice?null:lt.invoice.state)),l.xp6(1),l.Q6J("ngIf",!(null!=lt.invoice&&lt.invoice.amt_paid_sat)||"0"===(null==lt.invoice?null:lt.invoice.amt_paid_sat)),l.xp6(1),l.Q6J("inset",!0),l.xp6(6),l.Oqu(l.xi3(41,35,1e3*(null==lt.invoice?null:lt.invoice.creation_date),"dd/MMM/y HH:mm")),l.xp6(6),l.Oqu(0!=+(null==lt.invoice?null:lt.invoice.settle_date)?l.xi3(47,38,1e3*+(null==lt.invoice?null:lt.invoice.settle_date),"dd/MMM/y HH:mm"):"-"),l.xp6(2),l.Q6J("inset",!0),l.xp6(6),l.Oqu(null==lt.invoice?null:lt.invoice.memo),l.xp6(1),l.Q6J("inset",!0),l.xp6(6),l.Oqu((null==lt.invoice?null:lt.invoice.payment_request)||"N/A"),l.xp6(1),l.Q6J("inset",!0),l.xp6(6),l.Oqu((null==lt.invoice?null:lt.invoice.r_hash)||""),l.xp6(1),l.Q6J("ngIf",lt.showAdvanced),l.xp6(1),l.Q6J("ngIf",(null==lt.invoice?null:lt.invoice.htlcs)&&(null==lt.invoice?null:lt.invoice.htlcs.length)>0&&lt.showAdvanced&&lt.flgOpened),l.xp6(3),l.Q6J("ngIf",!lt.showAdvanced)("ngIfElse",nt),l.xp6(3),l.Q6J("ngIf",(null==lt.invoice?null:lt.invoice.payment_request)&&""!==(null==lt.invoice?null:lt.invoice.payment_request)),l.xp6(1),l.Q6J("ngIf",!(null!=lt.invoice&&lt.invoice.payment_request)||""===(null==lt.invoice?null:lt.invoice.payment_request))}},directives:[O.xw,O.Wh,O.yH,E.mk,P.oO,E.O5,w.dk,Z.BN,j.lW,w.dn,W.$V,ie.d,ee.uU,E.sg,_e.$g,ce.ib,ce.yz,ce.yK,re.gM,de.Hw,oe.h,ae.y],pipes:[E.JJ,E.uU],styles:[""]}),le})()},7772:(Ve,Q,m)=>{"use strict";m.d(Q,{_:()=>t,J:()=>y});var e=m(1777);const t=[(0,e.X$)("opacityAnimation",[(0,e.eR)(":enter",[(0,e.oB)({opacity:0}),(0,e.jt)("1000ms ease-in",(0,e.oB)({opacity:1}))]),(0,e.eR)(":leave",[(0,e.jt)("0ms",(0,e.oB)({opacity:0}))])])],y=[(0,e.X$)("fadeIn",[(0,e.eR)("void => *",[]),(0,e.eR)("* => void",[]),(0,e.eR)("* => *",[(0,e.jt)(800,(0,e.F4)([(0,e.oB)({opacity:0,transform:"translateY(100%)"}),(0,e.oB)({opacity:1,transform:"translateY(0%)"})]))])])]},8878:(Ve,Q,m)=>{"use strict";m.d(Q,{g:()=>t});var e=m(1777);const t=(0,e.X$)("routeAnimation",[(0,e.eR)("* => *",[(0,e.IO)(":enter, :leave",(0,e.oB)({position:"fixed",width:"100%"}),{optional:!0}),(0,e.ru)([(0,e.IO)(":enter",[(0,e.oB)({transform:"translateX(100%)"}),(0,e.jt)("1000ms ease-in-out",(0,e.oB)({transform:"translateX(0%)"}))],{optional:!0}),(0,e.IO)(":leave",[(0,e.oB)({transform:"translateX(0%)"}),(0,e.jt)("1000ms ease-in-out",(0,e.oB)({transform:"translateX(-100%)"}))],{optional:!0})])])])},113:(Ve,Q,m)=>{"use strict";m.d(Q,{l:()=>t});var e=m(1777);const t=[(0,e.X$)("sliderAnimation",[(0,e.SB)("*",(0,e.oB)({transform:"translateX(0)"})),(0,e.eR)("void => backward",[(0,e.oB)({transform:"translateX(-100%"}),(0,e.jt)("800ms")]),(0,e.eR)("backward => void",[(0,e.jt)("0ms",(0,e.oB)({transform:"translateX(100%)"}))]),(0,e.eR)("void => forward",[(0,e.oB)({transform:"translateX(100%"}),(0,e.jt)("800ms")]),(0,e.eR)("forward => void",[(0,e.jt)("0ms",(0,e.oB)({transform:"translateX(-100%)"}))])])]},1786:(Ve,Q,m)=>{"use strict";m.d(Q,{H:()=>A});var e=m(8966),t=m(5e3),y=m(5043),C=m(7093),o=m(9224),M=m(7423),l=m(9808),N=m(4834),s=m(3390);function D(O,E){if(1&O&&(t.TgZ(0,"p",14),t._uU(1),t.qZA()),2&O){const P=t.oxw();t.xp6(1),t.Oqu(P.data.titleMessage)}}let A=(()=>{class O{constructor(P,w,Z){this.dialogRef=P,this.data=w,this.logger=Z,this.errorMessage=""}ngOnInit(){this.errorMessage="object"==typeof this.data.message.message?JSON.stringify(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 O.\u0275fac=function(P){return new(P||O)(t.Y36(e.so),t.Y36(e.WI),t.Y36(y.mQ))},O.\u0275cmp=t.Xpm({type:O,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(P,w){1&P&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.TgZ(2,"mat-card-header",2),t.TgZ(3,"div",3),t.TgZ(4,"span",4),t._uU(5),t.qZA(),t.qZA(),t.TgZ(6,"button",5),t.NdJ("click",function(){return w.onClose()}),t._uU(7,"X"),t.qZA(),t.qZA(),t.TgZ(8,"mat-card-content",6),t.TgZ(9,"div",7),t.YNc(10,D,2,1,"p",8),t.TgZ(11,"h4",9),t._uU(12,"Error Code"),t.qZA(),t.TgZ(13,"span"),t._uU(14),t.qZA(),t._UZ(15,"mat-divider",10),t.TgZ(16,"h4",9),t._uU(17,"Error Message"),t.qZA(),t.TgZ(18,"span",11),t._uU(19),t.qZA(),t._UZ(20,"mat-divider",10),t.TgZ(21,"h4",9),t._uU(22,"API URL"),t.qZA(),t.TgZ(23,"span",11),t._uU(24),t.qZA(),t._UZ(25,"mat-divider",10),t.TgZ(26,"div",12),t.TgZ(27,"button",13),t._uU(28,"OK"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&P&&(t.xp6(5),t.Oqu(w.data.alertTitle||"ERROR"),t.xp6(5),t.Q6J("ngIf",w.data.titleMessage),t.xp6(4),t.Oqu(w.data.message.code),t.xp6(5),t.Oqu(w.errorMessage),t.xp6(5),t.Oqu(w.data.message.URL),t.xp6(3),t.Q6J("mat-dialog-close",!1))},directives:[C.xw,C.yH,o.dk,C.Wh,M.lW,o.dn,l.O5,N.d,s.h,e.ZT],styles:[".display-block[_ngcontent-%COMP%]{display:block}"]}),O})()},9442:(Ve,Q,m)=>{"use strict";m.d(Q,{w:()=>N});var e=m(801),t=m(5e3),y=m(1402),C=m(7093),o=m(9444),M=m(9224),l=m(7423);let N=(()=>{class s{constructor(A){this.router=A,this.faTimes=e.NBC}goToHelp(){this.router.navigate(["/help"])}}return s.\u0275fac=function(A){return new(A||s)(t.Y36(y.F0))},s.\u0275cmp=t.Xpm({type:s,selectors:[["rtl-not-found"]],decls:13,vars:1,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column",1,"padding-gap-large"],["fxLayout","column","fxLayoutAlign","start start"],[1,"box-text"],["fxLayout","row","fxLayoutAlign","center","fxFlex","80"],["mat-flat-button","","color","primary","type","button",1,"mt-2",3,"click"]],template:function(A,O){1&A&&(t.TgZ(0,"div",0),t._UZ(1,"fa-icon",1),t.TgZ(2,"span",2),t._uU(3,"Page Not Found"),t.qZA(),t.qZA(),t.TgZ(4,"div",3),t.TgZ(5,"mat-card"),t.TgZ(6,"mat-card-content",4),t.TgZ(7,"div",5),t.TgZ(8,"div",6),t._uU(9,"This page does not exist!"),t.qZA(),t.TgZ(10,"span",7),t.TgZ(11,"button",8),t.NdJ("click",function(){return O.goToHelp()}),t._uU(12,"Go To Help"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&A&&(t.xp6(1),t.Q6J("icon",O.faTimes))},directives:[C.xw,C.Wh,o.BN,M.a8,M.dn,C.yH,l.lW],encapsulation:2}),s})()},8213:(Ve,Q,m)=>{"use strict";m.d(Q,{a:()=>Xi});var e=m(3075),t=m(7579),y=m(2722),C=m(8966),o=m(801),M=m(7772),l=m(7731),N=m(6529),s=m(5e3),D=m(5620),A=m(9107),O=m(9808),E=m(5043),P=m(1402),w=m(62),Z=m(7093),j=m(9224),W=m(7423),ie=m(5615),ee=m(1125),_e=m(3322),ce=m(5245),re=m(7238),de=m(4834);function oe(Ke,_t){1&Ke&&s.GkF(0)}function ae(Ke,_t){1&Ke&&s.GkF(0)}const b=function(Ke){return{"h-5":Ke}};function i(Ke,_t){if(1&Ke&&(s.TgZ(0,"mat-expansion-panel",3),s.TgZ(1,"mat-expansion-panel-header"),s.TgZ(2,"mat-panel-title"),s.TgZ(3,"span",4),s._uU(4),s.ALo(5,"number"),s.qZA(),s.qZA(),s.qZA(),s.YNc(6,ae,1,0,"ng-container",0),s.qZA()),2&Ke){const ve=s.oxw(),qe=s.MAs(4);s.Q6J("expanded",ve.panelExpanded)("ngClass",s.VKq(7,b,!ve.flgShowPanel)),s.xp6(4),s.AsE("Quote for ",ve.termCaption," amount (",s.lcZ(5,5,ve.quote.amount)," Sats)"),s.xp6(2),s.Q6J("ngTemplateOutlet",qe)}}function a(Ke,_t){if(1&Ke&&(s.TgZ(0,"div",19),s.TgZ(1,"h4",8),s._uU(2," Prepay Amount (Sats) "),s.TgZ(3,"mat-icon",20),s._uU(4,"info_outline"),s.qZA(),s.qZA(),s.TgZ(5,"span",10),s._uU(6),s.ALo(7,"number"),s.qZA(),s.qZA()),2&Ke){const ve=s.oxw(2);s.xp6(6),s.Oqu(s.lcZ(7,1,null==ve.quote?null:ve.quote.prepay_amt_sat))}}function p(Ke,_t){1&Ke&&s._UZ(0,"mat-divider",13)}function u(Ke,_t){if(1&Ke&&(s.TgZ(0,"div",6),s.TgZ(1,"div",21),s.TgZ(2,"h4",8),s._uU(3," Swap Server Node Pubkey "),s.TgZ(4,"mat-icon",22),s._uU(5,"info_outline"),s.qZA(),s.qZA(),s.TgZ(6,"span",10),s._uU(7),s.qZA(),s.qZA(),s.qZA()),2&Ke){const ve=s.oxw(2);s.xp6(7),s.Oqu(null==ve.quote?null:ve.quote.swap_payment_dest)}}function _(Ke,_t){if(1&Ke&&(s.TgZ(0,"div",5),s.TgZ(1,"div",6),s.TgZ(2,"div",7),s.TgZ(3,"h4",8),s._uU(4," Swap Fee (Sats) "),s.TgZ(5,"mat-icon",9),s._uU(6,"info_outline"),s.qZA(),s.qZA(),s.TgZ(7,"span",10),s._uU(8),s.ALo(9,"number"),s.qZA(),s.qZA(),s.TgZ(10,"div",7),s.TgZ(11,"h4",8),s._uU(12),s.TgZ(13,"mat-icon",11),s._uU(14,"info_outline"),s.qZA(),s.qZA(),s.TgZ(15,"span",10),s._uU(16),s.ALo(17,"number"),s.qZA(),s.qZA(),s.YNc(18,a,8,3,"div",12),s.qZA(),s._UZ(19,"mat-divider",13),s.TgZ(20,"div",6),s.TgZ(21,"div",14),s.TgZ(22,"h4",8),s._uU(23," Max Off-chain Swap Routing Fee (Sats) "),s.TgZ(24,"mat-icon",15),s._uU(25,"info_outline"),s.qZA(),s.qZA(),s.TgZ(26,"span",10),s._uU(27),s.ALo(28,"number"),s.qZA(),s.qZA(),s.TgZ(29,"div",14),s.TgZ(30,"h4",8),s._uU(31," Max Off-chain Prepay Routing Fee (Sats) "),s.TgZ(32,"mat-icon",16),s._uU(33,"info_outline"),s.qZA(),s.qZA(),s.TgZ(34,"span",10),s._uU(35,"36"),s.qZA(),s.qZA(),s.qZA(),s.YNc(36,p,1,0,"mat-divider",17),s.YNc(37,u,8,1,"div",18),s.qZA()),2&Ke){const ve=s.oxw();s.xp6(2),s.Q6J("fxFlex",null!=ve.quote&&ve.quote.prepay_amt_sat?"30":"50"),s.xp6(6),s.Oqu(s.lcZ(9,9,null==ve.quote?null:ve.quote.swap_fee_sat)),s.xp6(2),s.Q6J("fxFlex",null!=ve.quote&&ve.quote.prepay_amt_sat?"35":"50"),s.xp6(2),s.hij(" ",null!=ve.quote&&ve.quote.htlc_sweep_fee_sat?"HTLC Sweep Fee (Sats)":null!=ve.quote&&ve.quote.htlc_publish_fee_sat?"HTLC Publish Fee (Sats)":""," "),s.xp6(4),s.Oqu(s.lcZ(17,11,null!=ve.quote&&ve.quote.htlc_sweep_fee_sat?ve.quote.htlc_sweep_fee_sat:null!=ve.quote&&ve.quote.htlc_publish_fee_sat?ve.quote.htlc_publish_fee_sat:0)),s.xp6(2),s.Q6J("ngIf",null==ve.quote?null:ve.quote.prepay_amt_sat),s.xp6(9),s.Oqu(s.lcZ(28,13,(null==ve.quote?null:ve.quote.amount)*((null!=ve.quote&&ve.quote.off_chain_swap_routing_fee_percentage?null==ve.quote?null:ve.quote.off_chain_swap_routing_fee_percentage:2)/100))),s.xp6(9),s.Q6J("ngIf",""!==(null==ve.quote?null:ve.quote.swap_payment_dest)),s.xp6(1),s.Q6J("ngIf",""!==(null==ve.quote?null:ve.quote.swap_payment_dest))}}let L=(()=>{class Ke{constructor(){this.quote={},this.termCaption="",this.showPanel=!0,this.panelExpanded=!1,this.flgShowPanel=!1}ngOnInit(){setTimeout(()=>{this.flgShowPanel=!0},1200)}}return Ke.\u0275fac=function(ve){return new(ve||Ke)},Ke.\u0275cmp=s.Xpm({type:Ke,selectors:[["rtl-loop-quote"]],inputs:{quote:"quote",termCaption:"termCaption",showPanel:"showPanel",panelExpanded:"panelExpanded"},decls:5,vars:1,consts:[[4,"ngTemplateOutlet"],["informationBlock",""],["quoteDetailsBlock",""],["fxFlex","100",1,"flat-expansion-panel","mb-1",3,"expanded","ngClass"],["fxLayoutAlign","start center","fxFlex","100"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row"],[3,"fxFlex"],["fxLayoutAlign","start center",1,"font-bold-500"],["matTooltip","Estimated fee charged by the loop server for the swap",1,"info-icon","info-icon-text"],[1,"foreground-secondary-text"],["matTooltip","An estimate of the on-chain fee that needs to be paid to sweep the HTLC",1,"info-icon","info-icon-text"],["fxFlex","35",4,"ngIf"],[1,"w-100","my-1"],["fxFlex","50"],["matTooltip","Maximum off-chain fee that may be paid for routing the payment amount to the server",1,"info-icon","info-icon-text"],["matTooltip","Maximum off-chain fee that may be paid for routing the pre-payment amount to the server","matTooltipPosition","before",1,"info-icon","info-icon-text"],["class","w-100 my-1",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxFlex","35"],["matTooltip","The part of the swap fee that is requested as a prepayment","matTooltipPosition","before",1,"info-icon","info-icon-text"],["fxFlex","100"],["matTooltip","The node pubkey, where the swap payments will be sent",1,"info-icon","info-icon-text"]],template:function(ve,qe){if(1&ve&&(s.YNc(0,oe,1,0,"ng-container",0),s.YNc(1,i,7,9,"ng-template",null,1,s.W1O),s.YNc(3,_,38,15,"ng-template",null,2,s.W1O)),2&ve){const yt=s.MAs(2),fe=s.MAs(4);s.Q6J("ngTemplateOutlet",qe.showPanel?yt:fe)}},directives:[O.tP,ee.ib,Z.yH,O.mk,_e.oO,ee.yz,ee.yK,Z.Wh,Z.xw,ce.Hw,re.gM,O.O5,de.d],pipes:[O.JJ],styles:[""]}),Ke})();var I=m(7322),x=m(7531),r=m(3390),v=m(2368),G=m(9814),F=m(5899);function U(Ke,_t){1&Ke&&s.GkF(0)}function ye(Ke,_t){if(1&Ke&&(s.TgZ(0,"div",3),s.TgZ(1,"span",4),s._uU(2),s.qZA(),s.qZA()),2&Ke){const ve=s.oxw();s.xp6(2),s.Oqu(null!=ve.loopStatus&&ve.loopStatus.error?null==ve.loopStatus?null:ve.loopStatus.error:"Unknown Error.")}}function Ce(Ke,_t){if(1&Ke&&(s.TgZ(0,"div",3),s.TgZ(1,"div",5),s.TgZ(2,"div",6),s.TgZ(3,"h4",7),s._uU(4,"ID"),s.qZA(),s.TgZ(5,"span",4),s._uU(6),s.qZA(),s.qZA(),s.qZA(),s._UZ(7,"mat-divider",8),s.TgZ(8,"div",5),s.TgZ(9,"div",6),s.TgZ(10,"h4",7),s._uU(11,"HTLC Address"),s.qZA(),s.TgZ(12,"span",4),s._uU(13),s.qZA(),s.qZA(),s.qZA(),s.qZA()),2&Ke){const ve=s.oxw();s.xp6(6),s.Oqu(null==ve.loopStatus?null:ve.loopStatus.id_bytes),s.xp6(7),s.Oqu(null==ve.loopStatus?null:ve.loopStatus.htlc_address)}}let Be=(()=>{class Ke{constructor(){}}return Ke.\u0275fac=function(ve){return new(ve||Ke)},Ke.\u0275cmp=s.Xpm({type:Ke,selectors:[["rtl-loop-status"]],inputs:{loopStatus:"loopStatus"},decls:5,vars:1,consts:[[4,"ngTemplateOutlet"],["loopFailedBlock",""],["loopSuccessfulBlock",""],["fxLayout","column"],[1,"foreground-secondary-text"],["fxLayout","row"],["fxFlex","100"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"w-100","my-1"]],template:function(ve,qe){if(1&ve&&(s.YNc(0,U,1,0,"ng-container",0),s.YNc(1,ye,3,1,"ng-template",null,1,s.W1O),s.YNc(3,Ce,14,2,"ng-template",null,2,s.W1O)),2&ve){const yt=s.MAs(2),fe=s.MAs(4);s.Q6J("ngTemplateOutlet",null!=qe.loopStatus&&qe.loopStatus.error?yt:fe)}},directives:[O.tP,Z.xw,Z.yH,Z.Wh,de.d],styles:[""]}),Ke})();var ze=m(113);function Ie(Ke,_t){1&Ke&&s.GkF(0)}const K=function(Ke,_t){return{"small-svg":Ke,"large-svg":_t}};function Me(Ke,_t){if(1&Ke){const ve=s.EpF();s.TgZ(0,"div",6),s.NdJ("swipe",function(yt){return s.CHM(ve),s.oxw().onSwipe(yt)}),s.O4$(),s.TgZ(1,"svg",7),s.TgZ(2,"desc"),s._uU(3,"Created with Sketch."),s.qZA(),s.TgZ(4,"g",8),s.TgZ(5,"g",9),s.TgZ(6,"g",10),s.TgZ(7,"g",11),s._UZ(8,"circle",12),s._UZ(9,"path",13),s.qZA(),s.TgZ(10,"g",14),s._UZ(11,"ellipse",15),s._UZ(12,"ellipse",16),s._UZ(13,"rect",17),s._UZ(14,"rect",18),s._UZ(15,"rect",19),s._UZ(16,"rect",20),s._UZ(17,"rect",21),s._UZ(18,"rect",22),s._UZ(19,"rect",23),s._UZ(20,"rect",24),s._UZ(21,"rect",25),s._UZ(22,"rect",26),s._UZ(23,"rect",27),s._UZ(24,"rect",28),s._UZ(25,"rect",29),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.kcU(),s.TgZ(26,"div",30),s.TgZ(27,"mat-card-title"),s._uU(28,"Loop Out explained."),s.qZA(),s.qZA(),s.TgZ(29,"div",31),s.TgZ(30,"mat-card-subtitle",32),s._uU(31," Lightning Loop is a non custodial service offered by Lightning Labs to bridge on-chain and off-chain Bitcoin using Submarine swaps. "),s.qZA(),s.qZA(),s.qZA()}if(2&Ke){const ve=s.oxw();s.Q6J("@sliderAnimation",ve.animationDirection),s.xp6(1),s.Q6J("ngClass",s.WLB(2,K,ve.screenSize===ve.screenSizeEnum.XS,ve.screenSize!==ve.screenSizeEnum.XS))}}function we(Ke,_t){if(1&Ke){const ve=s.EpF();s.TgZ(0,"div",6),s.NdJ("swipe",function(yt){return s.CHM(ve),s.oxw().onSwipe(yt)}),s.O4$(),s.TgZ(1,"svg",33),s.TgZ(2,"desc"),s._uU(3,"Created with Sketch."),s.qZA(),s.TgZ(4,"defs"),s.TgZ(5,"linearGradient",34),s._UZ(6,"stop",35),s._UZ(7,"stop",36),s._UZ(8,"stop",37),s.qZA(),s.qZA(),s.TgZ(9,"g",8),s.TgZ(10,"g",38),s.TgZ(11,"g",39),s.TgZ(12,"g",40),s.TgZ(13,"g",41),s.TgZ(14,"g",42),s._UZ(15,"rect",43),s._UZ(16,"rect",44),s._UZ(17,"rect",45),s._UZ(18,"circle",46),s._UZ(19,"rect",47),s._UZ(20,"rect",48),s._UZ(21,"circle",49),s._UZ(22,"rect",50),s._UZ(23,"rect",51),s._UZ(24,"rect",52),s._UZ(25,"rect",53),s._UZ(26,"circle",54),s._UZ(27,"circle",55),s.qZA(),s.TgZ(28,"g",56),s._UZ(29,"path",57),s._UZ(30,"rect",58),s._UZ(31,"polygon",59),s._UZ(32,"circle",60),s._UZ(33,"path",61),s._UZ(34,"rect",62),s._UZ(35,"rect",63),s._UZ(36,"rect",64),s._UZ(37,"rect",65),s._UZ(38,"rect",66),s._UZ(39,"rect",67),s._UZ(40,"rect",68),s._UZ(41,"path",69),s._UZ(42,"path",70),s.qZA(),s._UZ(43,"path",71),s.qZA(),s.qZA(),s._UZ(44,"circle",72),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.kcU(),s.TgZ(45,"div",30),s.TgZ(46,"mat-card-title"),s._uU(47,"Step 1: Deciding to Loop Out"),s.qZA(),s.qZA(),s.TgZ(48,"div",31),s.TgZ(49,"mat-card-subtitle",32),s._uU(50," You have a channel with a local balance amount and you want to gain inbound liquidity. "),s.qZA(),s.qZA(),s.qZA()}if(2&Ke){const ve=s.oxw();s.Q6J("@sliderAnimation",ve.animationDirection),s.xp6(1),s.Q6J("ngClass",s.WLB(2,K,ve.screenSize===ve.screenSizeEnum.XS,ve.screenSize!==ve.screenSizeEnum.XS))}}function z(Ke,_t){if(1&Ke){const ve=s.EpF();s.TgZ(0,"div",6),s.NdJ("swipe",function(yt){return s.CHM(ve),s.oxw().onSwipe(yt)}),s.O4$(),s.TgZ(1,"svg",73),s.TgZ(2,"desc"),s._uU(3,"Created with Sketch."),s.qZA(),s.TgZ(4,"defs"),s.TgZ(5,"linearGradient",74),s._UZ(6,"stop",35),s._UZ(7,"stop",36),s._UZ(8,"stop",37),s.qZA(),s.qZA(),s.TgZ(9,"g",8),s.TgZ(10,"g",75),s.TgZ(11,"g",76),s._UZ(12,"circle",77),s._UZ(13,"path",78),s.TgZ(14,"g",79),s._UZ(15,"polygon",80),s._UZ(16,"polygon",81),s._UZ(17,"path",82),s.qZA(),s.TgZ(18,"g",83),s._UZ(19,"polygon",84),s._UZ(20,"path",85),s._UZ(21,"rect",86),s._UZ(22,"path",87),s._UZ(23,"rect",88),s._UZ(24,"rect",89),s._UZ(25,"rect",90),s._UZ(26,"rect",91),s._UZ(27,"circle",92),s._UZ(28,"path",93),s.TgZ(29,"g",94),s.TgZ(30,"g",95),s._UZ(31,"g",96),s.qZA(),s._UZ(32,"g",97),s.qZA(),s._UZ(33,"path",98),s.qZA(),s.TgZ(34,"g",99),s.TgZ(35,"g",41),s.TgZ(36,"g",42),s._UZ(37,"rect",43),s._UZ(38,"rect",44),s._UZ(39,"rect",45),s._UZ(40,"circle",46),s._UZ(41,"rect",47),s._UZ(42,"rect",48),s._UZ(43,"circle",49),s._UZ(44,"rect",50),s._UZ(45,"rect",51),s._UZ(46,"rect",52),s._UZ(47,"rect",53),s._UZ(48,"circle",100),s._UZ(49,"circle",54),s._UZ(50,"circle",55),s._UZ(51,"circle",101),s.qZA(),s.TgZ(52,"g",56),s._UZ(53,"path",57),s._UZ(54,"rect",102),s._UZ(55,"polygon",103),s._UZ(56,"circle",104),s._UZ(57,"path",61),s._UZ(58,"rect",105),s._UZ(59,"rect",106),s._UZ(60,"rect",107),s._UZ(61,"rect",108),s._UZ(62,"rect",109),s._UZ(63,"rect",110),s._UZ(64,"rect",68),s._UZ(65,"path",69),s._UZ(66,"path",70),s.qZA(),s._UZ(67,"path",111),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.kcU(),s.TgZ(68,"div",30),s.TgZ(69,"mat-card-title"),s._uU(70,"Step 2: Send lightning payment"),s.qZA(),s.qZA(),s.TgZ(71,"div",31),s.TgZ(72,"mat-card-subtitle",32),s._uU(73," Your node pays a lightning invoice for the amount requested via the loop service. This moves the local balance, for the amount paid, to the remote side of the channel. "),s.qZA(),s.qZA(),s.qZA()}if(2&Ke){const ve=s.oxw();s.Q6J("@sliderAnimation",ve.animationDirection),s.xp6(1),s.Q6J("ngClass",s.WLB(2,K,ve.screenSize===ve.screenSizeEnum.XS,ve.screenSize!==ve.screenSizeEnum.XS))}}function Ge(Ke,_t){if(1&Ke){const ve=s.EpF();s.TgZ(0,"div",6),s.NdJ("swipe",function(yt){return s.CHM(ve),s.oxw().onSwipe(yt)}),s.O4$(),s.TgZ(1,"svg",112),s.TgZ(2,"desc"),s._uU(3,"Created with Sketch."),s.qZA(),s.TgZ(4,"g",8),s.TgZ(5,"g",113),s.TgZ(6,"g",114),s.TgZ(7,"g",115),s.TgZ(8,"g",116),s._UZ(9,"circle",12),s._UZ(10,"path",117),s.qZA(),s.TgZ(11,"g",14),s._UZ(12,"ellipse",118),s._UZ(13,"ellipse",16),s._UZ(14,"rect",17),s._UZ(15,"rect",18),s._UZ(16,"rect",19),s._UZ(17,"rect",20),s._UZ(18,"rect",21),s._UZ(19,"rect",22),s._UZ(20,"rect",23),s._UZ(21,"rect",24),s._UZ(22,"rect",25),s._UZ(23,"rect",26),s._UZ(24,"rect",27),s._UZ(25,"rect",28),s._UZ(26,"rect",29),s.qZA(),s.qZA(),s.TgZ(27,"g",119),s._UZ(28,"polygon",80),s._UZ(29,"polygon",120),s._UZ(30,"path",82),s.qZA(),s.TgZ(31,"g",121),s._UZ(32,"polygon",84),s._UZ(33,"path",85),s._UZ(34,"rect",86),s._UZ(35,"path",87),s._UZ(36,"rect",88),s._UZ(37,"rect",89),s._UZ(38,"rect",90),s._UZ(39,"rect",91),s._UZ(40,"circle",122),s._UZ(41,"path",93),s.TgZ(42,"g",94),s.TgZ(43,"g",95),s._UZ(44,"g",96),s.qZA(),s._UZ(45,"g",97),s.qZA(),s._UZ(46,"path",123),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.kcU(),s.TgZ(47,"div",30),s.TgZ(48,"mat-card-title"),s._uU(49,"Step 3: Receive funds back"),s.qZA(),s.qZA(),s.TgZ(50,"div",31),s.TgZ(51,"mat-card-subtitle",32),s._uU(52," Loop service then sends you a payment on-chain for the amount same as the lightning payment minus the fee. "),s.qZA(),s.qZA(),s.qZA()}if(2&Ke){const ve=s.oxw();s.Q6J("@sliderAnimation",ve.animationDirection),s.xp6(1),s.Q6J("ngClass",s.WLB(2,K,ve.screenSize===ve.screenSizeEnum.XS,ve.screenSize!==ve.screenSizeEnum.XS))}}function vt(Ke,_t){if(1&Ke){const ve=s.EpF();s.TgZ(0,"div",6),s.NdJ("swipe",function(yt){return s.CHM(ve),s.oxw().onSwipe(yt)}),s.O4$(),s.TgZ(1,"svg",124),s.TgZ(2,"desc"),s._uU(3,"Created with Sketch."),s.qZA(),s.TgZ(4,"defs"),s.TgZ(5,"linearGradient",34),s._UZ(6,"stop",35),s._UZ(7,"stop",36),s._UZ(8,"stop",37),s.qZA(),s.qZA(),s.TgZ(9,"g",8),s.TgZ(10,"g",125),s.TgZ(11,"g",126),s.TgZ(12,"g",42),s._UZ(13,"rect",127),s._UZ(14,"rect",128),s._UZ(15,"rect",129),s._UZ(16,"circle",130),s._UZ(17,"rect",131),s._UZ(18,"rect",132),s._UZ(19,"circle",133),s._UZ(20,"rect",134),s._UZ(21,"rect",135),s._UZ(22,"rect",136),s._UZ(23,"rect",137),s._UZ(24,"rect",138),s._UZ(25,"circle",139),s._UZ(26,"circle",140),s._UZ(27,"circle",141),s.qZA(),s.TgZ(28,"g",142),s.TgZ(29,"g",143),s.TgZ(30,"g",144),s._UZ(31,"path",145),s._UZ(32,"rect",146),s._UZ(33,"polygon",147),s.TgZ(34,"g",148),s._UZ(35,"path",149),s.qZA(),s._UZ(36,"rect",150),s._UZ(37,"rect",151),s._UZ(38,"rect",152),s._UZ(39,"rect",153),s._UZ(40,"rect",154),s._UZ(41,"rect",155),s._UZ(42,"rect",156),s._UZ(43,"path",157),s._UZ(44,"path",158),s.qZA(),s.TgZ(45,"g",159),s._UZ(46,"path",160),s._UZ(47,"path",161),s._UZ(48,"path",162),s._UZ(49,"path",163),s._UZ(50,"path",164),s._UZ(51,"path",165),s._UZ(52,"path",166),s._UZ(53,"path",167),s._UZ(54,"path",168),s._UZ(55,"path",169),s._UZ(56,"path",170),s._UZ(57,"circle",171),s._UZ(58,"circle",172),s.qZA(),s._UZ(59,"path",173),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.kcU(),s.TgZ(60,"div",30),s.TgZ(61,"mat-card-title"),s._uU(62,"Done!"),s.qZA(),s.qZA(),s.TgZ(63,"div",31),s.TgZ(64,"mat-card-subtitle",32),s._uU(65," Final settlement occurs when your node sweeps the on-chain payment and the loop server settles the lightning invoice. You receive the payment on-chain in your wallet and also move local balance to the remote side of the channel, gaining inbound capacity. "),s.qZA(),s.qZA(),s.qZA()}if(2&Ke){const ve=s.oxw();s.Q6J("@sliderAnimation",ve.animationDirection),s.xp6(1),s.Q6J("ngClass",s.WLB(2,K,ve.screenSize===ve.screenSizeEnum.XS,ve.screenSize!==ve.screenSizeEnum.XS))}}let Re=(()=>{class Ke{constructor(ve){this.commonService=ve,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new s.vpe,this.screenSize="",this.screenSizeEnum=l.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(ve){2===ve.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===ve.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return Ke.\u0275fac=function(ve){return new(ve||Ke)(s.Y36(w.v))},Ke.\u0275cmp=s.Xpm({type:Ke,selectors:[["rtl-loop-out-info-graphics"]],inputs:{animationDirection:"animationDirection",stepNumber:"stepNumber"},outputs:{stepNumberChange:"stepNumberChange"},decls:11,vars:1,consts:[[4,"ngTemplateOutlet"],["loopStepBlock1",""],["loopStepBlock2",""],["loopStepBlock3",""],["loopStepBlock4",""],["loopStepBlock5",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",3,"swipe"],["fxFlex","30","viewBox","0 0 108 118","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["id","Loopv0.2","stroke","none","stroke-width","1","fill","none","fill-rule","evenodd"],["id","LoopOut_Step01","transform","translate(-594.000000, -215.000000)","fill-rule","nonzero"],["id","Loop_Step01","transform","translate(594.000000, 215.000000)"],["id","Group-16","transform","translate(23.000000, 0.000000)"],["id","Oval","cx","42.4877419","cy","42.4877419","r","42.4877419",1,"fill-color-2"],["d","M56.0827415,28.5000036 C60.4468211,28.5000036 63.9999285,25.1343958 63.9999285,21.0000215 C63.9999285,16.8656472 60.4468211,13.5000393 56.0827415,13.5000393 C52.9843297,13.5000393 50.5608889,15.4359631 48.9999642,17.1843872 C47.4390396,15.4359631 45.0155987,13.5000393 41.9171869,13.5000393 C37.5531074,13.5000393 34,16.8656472 34,21.0000215 C34,25.1343958 37.5531074,28.5000036 41.9171869,28.5000036 C45.0155987,28.5000036 47.4390396,26.5640798 48.9999642,24.8156557 C50.5608889,26.5640798 52.9843297,28.5000036 56.0827415,28.5000036 Z M41.9171869,24.0000143 C40.0328073,24.0000143 38.4999893,22.6546959 38.4999893,21.0000286 C38.4999893,19.3453471 40.0328073,18.0000286 41.9171869,18.0000286 C43.707771,18.0000286 45.3577763,19.6921938 46.3234264,21.0000286 C45.3671604,22.2937501 43.7031019,24.0000143 41.9171869,24.0000143 Z M56.0827415,24.0000143 C54.2921574,24.0000143 52.6421522,22.3078492 51.676502,21.0000286 C52.6327681,19.7062929 54.2968266,18.0000286 56.0827415,18.0000286 C57.9671212,18.0000286 59.4999392,19.3453471 59.4999392,21.0000286 C59.4999392,22.6546959 57.9671212,24.0000143 56.0827415,24.0000143 Z","id","i",1,"fill-color-primary"],["id","Group-21","transform","translate(0.000000, 36.000000)"],["id","Oval","cx","48.644129","cy","75.1589677","rx","48.644129","ry","6.61766437",1,"fill-color-7"],["id","Oval","opacity","0.1","cx","48.644129","cy","75.1589677","rx","40.8402581","ry","5.55600756",1,"fill-color-27"],["id","Rectangle","x","25.2325161","y","6.09470968","width","54.1068387","height","62.9512258",1,"fill-color-26"],["id","Rectangle","x","20","y","1.24344979e-14","width","65.0322581","height","22.3710968",1,"fill-color-19"],["id","Rectangle","x","20","y","26","width","65.0322581","height","22.3710968",1,"fill-color-19"],["id","Rectangle","x","19.7698065","y","52.9179355","width","65.0322581","height","22.3710968",1,"fill-color-19"],["id","Rectangle","x","67.6335484","y","3.75354839","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","73.6165161","y","3.75354839","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","79.5994839","y","3.75354839","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","67.6335484","y","30.0265806","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","73.6165161","y","30.0265806","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","79.5994839","y","30.0265806","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","67.6335484","y","56.2996129","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","73.6165161","y","56.2996129","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","79.5994839","y","56.2996129","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["fxFlex","20","fxLayoutAlign","center end"],["fxFlex","40"],[1,"font-size-120"],["fxFlex","30","viewBox","0 0 205 121","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["x1","50%","y1","100%","x2","50%","y2","0%","id","linearGradient-1"],["stop-color","#808080","stop-opacity","0.25","offset","0%"],["stop-color","#808080","stop-opacity","0.12","offset","54%"],["stop-color","#808080","stop-opacity","0.1","offset","100%"],["id","LoopOut_Step02","transform","translate(-540.000000, -210.000000)","fill-rule","nonzero"],["id","Loop_Step02","transform","translate(540.000000, 210.000000)"],["id","Illustration_Step02"],["id","Group-31"],["id","Group-2"],["id","Rectangle","x","0","y","0","width","90.1490688","height","100.616012",1,"fill-color-10"],["id","Rectangle","x","1.48932403","y","67.1775068","width","87.1682273","height","31.2472904",1,"fill-color-1"],["id","Rectangle","x","8.64422093","y","74.5890324","width","51.2","height","16.0118784",1,"fill-color-primary-lighter"],["id","Oval","cx","76.317438","cy","82.4918815","r","8.15070413",1,"fill-color-primary-darker"],["id","Rectangle","x","1.48932403","y","34.712875","width","87.1682273","height","31.2472904",1,"fill-color-1"],["id","Rectangle","x","8.64422093","y","42.1244006","width","51.2","height","16.0118784",1,"fill-color-primary-lighter"],["id","Oval","cx","76.317438","cy","50.0294431","r","8.15070413",1,"fill-color-primary-darker"],["id","Rectangle","x","1.48932403","y","2.2482432","width","87.1682273","height","31.2472904",1,"fill-color-1"],["id","Rectangle","x","8.64422093","y","74.5890324","width","24","height","16.0118784",1,"fill-color-primary"],["id","Rectangle","x","8.64422093","y","42.1244006","width","36.8","height","16.0118784",1,"fill-color-primary"],["id","Rectangle","x","8.64422093","y","9.66196224","width","51.2","height","16.0118784",1,"fill-color-primary"],["id","Oval","fill","url(#linearGradient-1)","cx","76.317438","cy","50.2465905","r","8.78679245"],["id","Oval","fill","url(#linearGradient-1)","cx","76.317438","cy","82.7090289","r","8.78679245"],["id","Group","transform","translate(60.115627, 35.744427)"],["d","M133.318807,1.04548939 L82.5936439,1.04548939 L82.5936439,0 L59.5928852,0 L59.5928852,1.04548939 L8.65861943,1.04548939 C7.74861523,1.04548887 6.87588228,1.4069864 6.23241214,2.05045654 C5.58894199,2.69392669 5.22744498,3.56665964 5.22744498,4.47666384 L5.22744498,73.9350108 C5.22744498,74.8450173 5.5889387,75.7177532 6.23240879,76.3612266 C6.87587888,77.0047 7.74861298,77.3662028 8.65861943,77.3662028 L133.318807,77.3662028 C135.213795,77.3662028 136.749981,75.8300048 136.749981,73.9350167 L136.749981,4.47666384 C136.749981,3.56665964 136.388484,2.69392669 135.745014,2.05045654 C135.101544,1.4069864 134.228811,1.04548887 133.318807,1.04548939 Z","id","Path",1,"fill-color-20"],["id","Rectangle","x","9.82759671","y","7.10932665","width","122.322231","height","69.0022838",1,"fill-color-25"],["id","Path","opacity","0.257273065","points","97.1677755 76.1116475 9.82763376 76.1116475 9.82763376 7.10937149",1,"fill-color-24"],["id","Oval","cx","28.9673627","cy","59.1901502","r","11.7579927",1,"fill-color-25"],["d","M31.5848237,68.0274261 C25.669241,68.0274261 20.3361447,64.4639649 18.0723494,58.9986791 C15.808554,53.5333932 17.0598755,47.2425772 21.2428244,43.0596288 C25.4257733,38.8766804 31.7165895,37.6253598 37.1818751,39.8891559 C42.6471607,42.1529519 46.2106203,47.4860487 46.2106203,53.4016314 C46.2014756,61.4754447 39.6586369,68.0182825 31.5848237,68.0274261 L31.5848237,68.0274261 Z M31.5848237,38.967022 C23.612809,38.967022 17.1502143,45.4296168 17.1502143,53.4016314 C17.1502143,61.3736461 23.612809,67.8362409 31.5848237,67.8362409 C39.5568383,67.8362409 46.0194331,61.3736461 46.0194331,53.4016314 C46.010427,45.4333502 39.5531049,38.9760281 31.5848237,38.967022 L31.5848237,38.967022 Z","id","Shape",1,"fill-color-primary"],["id","Rectangle","x","99.4252759","y","44.3228077","width","11.4262324","height","2.38757043",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","25.733862","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","28.9741379","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","32.2144137","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","35.4546875","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","38.6949634","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","119.89017","y","8.50924347","width","4.7751428","height","4.7751428",1,"fill-color-6"],["d","M126.882344,15.5014148 L121.083948,15.5014148 L121.083948,9.70301894 L126.882344,9.70301894 L126.882344,15.5014148 Z M121.336061,15.2493191 L126.63024,15.2493191 L126.63024,9.95513218 L121.336061,9.95513218 L121.336061,15.2493191 Z","id","Shape",1,"fill-color-19"],["d","M140.184525,74.8570201 L128.246669,74.8570201 L128.246669,73.9969059 C128.246671,73.9516751 128.228704,73.9082962 128.196721,73.876313 C128.164738,73.8443298 128.12136,73.826364 128.076129,73.826364 L123.98315,73.826364 C123.937919,73.826364 123.89454,73.8443305 123.862558,73.8763135 C123.830575,73.9082966 123.812608,73.9516752 123.81261,73.9969059 L123.81261,74.8570201 L121.254497,74.8570201 L121.254497,73.9969059 C121.254499,73.9516752 121.236532,73.9082966 121.204549,73.8763135 C121.172566,73.8443305 121.129188,73.826364 121.083957,73.826364 L116.990978,73.826364 C116.945747,73.826364 116.902368,73.8443297 116.870385,73.8763129 C116.838402,73.908296 116.820435,73.9516749 116.820436,73.9969059 L116.820436,74.8570201 L114.262326,74.8570201 L114.262326,73.9969059 C114.262328,73.9516749 114.24436,73.908296 114.212377,73.8763129 C114.180394,73.8443297 114.137015,73.826364 114.091784,73.826364 L109.998805,73.826364 C109.953574,73.826364 109.910196,73.8443305 109.878213,73.8763135 C109.84623,73.9082966 109.828263,73.9516752 109.828265,73.9969059 L109.828265,74.8570201 L107.270153,74.8570201 L107.270153,73.9969059 C107.270154,73.9516752 107.252187,73.9082966 107.220204,73.8763135 C107.188222,73.8443305 107.144843,73.826364 107.099613,73.826364 L103.00663,73.826364 C102.961399,73.826364 102.91802,73.8443298 102.886037,73.876313 C102.854054,73.9082962 102.836088,73.9516751 102.83609,73.9969059 L102.83609,74.8570201 L100.277981,74.8570201 L100.277981,73.9969059 C100.277983,73.9516749 100.260016,73.908296 100.228032,73.8763129 C100.196049,73.8443297 100.15267,73.826364 100.107439,73.826364 L96.0144621,73.826364 C95.9692311,73.826364 95.9258522,73.8443297 95.8938691,73.8763129 C95.861886,73.908296 95.8439187,73.9516749 95.8439202,73.9969059 L95.8439202,74.8570201 L93.285808,74.8570201 L93.285808,73.9969059 C93.2858095,73.9516752 93.2678425,73.9082966 93.2358598,73.8763135 C93.2038771,73.8443305 93.1604987,73.826364 93.1152681,73.826364 L89.0222888,73.826364 C88.9770581,73.826364 88.9336797,73.8443305 88.901697,73.8763135 C88.8697143,73.9082966 88.8517473,73.9516752 88.8517489,73.9969059 L88.8517489,74.8570201 L86.2936405,74.8570201 L86.2936405,73.9969059 C86.293642,73.9516752 86.2756751,73.9082966 86.2436923,73.8763135 C86.2117096,73.8443305 86.1683312,73.826364 86.1231006,73.826364 L54.061428,73.826364 C54.0161974,73.826364 53.972819,73.8443305 53.9408363,73.8763135 C53.9088536,73.9082966 53.8908866,73.9516752 53.8908881,73.9969059 L53.8908881,74.8570201 L51.3327759,74.8570201 L51.3327759,73.9969059 C51.3327774,73.9516749 51.3148102,73.908296 51.282827,73.8763129 C51.2508439,73.8443297 51.207465,73.826364 51.162234,73.826364 L47.0692664,73.826364 C47.0240354,73.826364 46.9806565,73.8443297 46.9486734,73.8763129 C46.9166903,73.908296 46.898723,73.9516749 46.8987246,73.9969059 L46.8987246,74.8570201 L44.3406025,74.8570201 L44.3406025,73.9969059 C44.3406046,73.9516751 44.3226378,73.9082962 44.290655,73.876313 C44.2586721,73.8443298 44.2152934,73.826364 44.1700626,73.826364 L40.0770834,73.826364 C40.0318527,73.826364 39.9884743,73.8443305 39.9564916,73.8763135 C39.9245089,73.9082966 39.9065419,73.9516752 39.9065435,73.9969059 L39.9065435,74.8570201 L37.3484312,74.8570201 L37.3484312,73.9969059 C37.3484327,73.9516752 37.3304657,73.9082966 37.298483,73.8763135 C37.2665003,73.8443305 37.2231219,73.826364 37.1778913,73.826364 L33.084912,73.826364 C33.039681,73.826364 32.9963021,73.8443297 32.964319,73.8763129 C32.9323358,73.908296 32.9143686,73.9516749 32.9143701,73.9969059 L32.9143701,74.8570201 L30.3562598,74.8570201 L30.3562598,73.9969059 C30.3562614,73.9516749 30.3382941,73.908296 30.306311,73.8763129 C30.2743278,73.8443297 30.2309489,73.826364 30.1857179,73.826364 L26.0927387,73.826364 C26.047508,73.826364 26.0041296,73.8443305 25.9721469,73.8763135 C25.9401642,73.9082966 25.9221972,73.9516752 25.9221988,73.9969059 L25.9221988,74.8570201 L23.3640826,74.8570201 L23.3640826,73.9969059 C23.3640841,73.9516752 23.3461171,73.9082966 23.3141344,73.8763135 C23.2821517,73.8443305 23.2387733,73.826364 23.1935427,73.826364 L19.1005673,73.826364 C19.0553365,73.826364 19.0119578,73.8443298 18.979975,73.876313 C18.9479921,73.9082962 18.9300253,73.9516751 18.9300274,73.9969059 L18.9300274,74.8570201 L16.3719151,74.8570201 L16.3719151,73.9969059 C16.3719167,73.9516749 16.3539494,73.908296 16.3219663,73.8763129 C16.2899831,73.8443297 16.2466042,73.826364 16.2013733,73.826364 L12.1083959,73.826364 C12.0631649,73.826364 12.0197861,73.8443297 11.9878029,73.8763129 C11.9558198,73.908296 11.9378525,73.9516749 11.9378541,73.9969059 L11.9378541,74.8570201 L4.09297732,74.8570201 C1.83248849,74.8570223 0,76.6895106 0,78.9499994 L0,80.8007483 C0,83.061233 1.83249262,84.8937159 4.09297732,84.8937159 L140.184525,84.8937159 C142.44501,84.8937159 144.277504,83.0612333 144.277504,80.8007483 L144.277504,78.9499994 C144.277504,76.6895102 142.445014,74.8570223 140.184525,74.8570201 Z","id","Path",1,"fill-color-20"],["d","M88.0406297,103.870828 C88.3071704,103.870828 88.5610365,103.731189 88.7006752,103.490029 L94.2857286,93.8431185 C94.5808417,93.3385473 94.2159092,92.7007212 93.6288439,92.7007212 L89.9668136,92.7007212 L91.318669,88.5817505 C91.445602,88.0993988 91.0806695,87.6234 90.5824512,87.6234 L86.0128621,87.6234 C85.632063,87.6234 85.3083776,87.9058383 85.2576168,88.2834455 L84.2421525,95.8994274 C84.1818469,96.3563987 84.5372656,96.7625782 84.9973979,96.7625782 L88.7641417,96.7625782 L87.30122,102.934697 C87.1869926,103.417048 87.555086,103.870828 88.0406297,103.870828 Z","id","b","transform","translate(89.312846, 95.747114) rotate(14.000000) translate(-89.312846, -95.747114) ",1,"fill-color-21"],["id","Oval","cx","74.1507041","cy","17.5648113","r","8.15070413",1,"fill-color-primary"],["fxFlex","30","viewBox","0 0 373 121","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["x1","50%","y1","100%","x2","50%","y2","8.86848147e-15%","id","linearGradient-1"],["id","LoopOut_Step03","transform","translate(-460.000000, -210.000000)"],["id","Loop_Step03","transform","translate(460.000000, 210.000000)"],["id","Oval","fill-rule","nonzero","cx","330.487742","cy","57.4877419","r","42.4877419",1,"fill-color-2"],["d","M345.082742,43.5000036 C349.446821,43.5000036 352.999928,40.1343958 352.999928,36.0000215 C352.999928,31.8656472 349.446821,28.5000393 345.082742,28.5000393 C341.98433,28.5000393 339.560889,30.4359631 337.999964,32.1843872 C336.43904,30.4359631 334.015599,28.5000393 330.917187,28.5000393 C326.553107,28.5000393 323,31.8656472 323,36.0000215 C323,40.1343958 326.553107,43.5000036 330.917187,43.5000036 C334.015599,43.5000036 336.43904,41.5640798 337.999964,39.8156557 C339.560889,41.5640798 341.98433,43.5000036 345.082742,43.5000036 Z M330.917187,39.0000143 C329.032807,39.0000143 327.499989,37.6546959 327.499989,36.0000286 C327.499989,34.3453471 329.032807,33.0000286 330.917187,33.0000286 C332.707771,33.0000286 334.357776,34.6921938 335.323426,36.0000286 C334.36716,37.2937501 332.703102,39.0000143 330.917187,39.0000143 Z M345.082742,39.0000143 C343.292157,39.0000143 341.642152,37.3078492 340.676502,36.0000286 C341.632768,34.7062929 343.296827,33.0000286 345.082742,33.0000286 C346.967121,33.0000286 348.499939,34.3453471 348.499939,36.0000286 C348.499939,37.6546959 346.967121,39.0000143 345.082742,39.0000143 Z","id","i","fill-rule","nonzero",1,"fill-color-primary"],["id","Group-44","transform","translate(113.000000, 79.000000)","fill-rule","nonzero"],["id","Path","transform","translate(118.400000, 7.089946) scale(-1, 1) translate(-118.400000, -7.089946) ","points","234.731878 6.60770626 8.52651283e-14 6.60770626 8.52651283e-14 7.57218541 236.8 7.57218541",1,"fill-color-19"],["id","Path","transform","translate(118.400000, 8.960000) scale(-1, 1) translate(-118.400000, -8.960000) ","points","113.024 5.376 123.776 5.376 123.776 12.544 113.024 12.544",1,"fill-color-22"],["d","M120.192,8.96 L105.856,8.96 L105.856,1.86517468e-14 L120.192,1.86517468e-14 L120.192,8.96 Z M106.479304,8.57043501 L119.568696,8.57043501 L119.568696,0.389564988 L106.479304,0.389564988 L106.479304,8.57043501 Z","id","Shape","transform","translate(113.024000, 4.480000) scale(-1, 1) translate(-113.024000, -4.480000) ",1,"fill-color-19"],["id","Group-43","transform","translate(265.000000, 50.000000)"],["id","Path","fill-rule","nonzero","points","-9.84073267e-14 7.36243469 92.3919279 7.36243469 92.3919279 70.3073253 -1.13686838e-13 70.3073253",1,"fill-color-23"],["d","M97.5448374,1.70530257e-13 L6.62592538,1.70530257e-13 C6.01615907,0.000922175294 5.52114394,0.495001701 5.52114394,1.104768 L5.52114394,62.57664 C5.52114394,62.8696481 5.63752746,63.150658 5.84471672,63.3578447 C6.05190598,63.5650315 6.3329173,63.681408 6.62592538,63.681408 L97.5448374,63.681408 C97.8378436,63.681408 98.1188523,63.5650282 98.3260389,63.3578415 C98.5332256,63.1506549 98.6496054,62.8696462 98.6496054,62.57664 L98.6496054,1.104768 C98.6496054,0.495005713 98.1545997,0.000926622272 97.5448374,1.70530257e-13 L97.5448374,1.70530257e-13 Z M97.9130952,62.57664 C97.9130952,62.6744022 97.8747043,62.7682496 97.8055756,62.8373783 C97.736447,62.9065069 97.6425996,62.9448978 97.5448374,62.9448978 L6.62592538,62.9448978 C6.52816341,62.9448978 6.4343164,62.906506 6.3651879,62.8373775 C6.29605941,62.768249 6.25766754,62.674402 6.25766754,62.57664 L6.25766754,1.104768 C6.25766754,0.901512883 6.42267026,0.736512 6.62592538,0.736512 L97.5448374,0.736512 C97.7480931,0.736512 97.9130952,0.901512271 97.9130952,1.104768 L97.9130952,62.57664 Z","id","Shape","fill-rule","nonzero",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","10.3066764","y","43.4358624","width","41.5947948","height","4.78524211","rx","0.5376",1,"fill-color-19"],["d","M89.8141359,39.3872559 L76.5649839,39.3872559 C76.2719769,39.3872559 75.9909677,39.5036372 75.7837792,39.7108232 C75.5765907,39.9180091 75.4602025,40.1990169 75.4602025,40.4920239 L75.4602025,50.7978159 C75.4602025,51.090824 75.576586,51.3718339 75.7837753,51.5790207 C75.9909645,51.7862074 76.2719759,51.9025839 76.5649839,51.9025839 L89.8141359,51.9025839 C90.107143,51.9025839 90.3881533,51.7862079 90.5953406,51.5790206 C90.8025279,51.3718333 90.9189039,51.090823 90.9189039,50.7978159 L90.9189039,40.4920239 C90.9189039,40.199018 90.8025232,39.9180097 90.5953367,39.7108232 C90.3881502,39.5036367 90.1071419,39.3872559 89.8141359,39.3872559 Z M90.1823938,50.7978159 C90.182087,51.0010717 90.0173917,51.165767 89.8141359,51.1660719 L76.5649839,51.1660719 C76.3617256,51.165767 76.1970256,51.0010743 76.19671,50.7978159 L76.19671,40.4920239 C76.1964064,40.3942603 76.2351088,40.3004129 76.30424,40.2312847 C76.3733712,40.1621565 76.4672203,40.1234582 76.5649839,40.1237661 L89.8141359,40.1237661 C89.9118981,40.1234582 90.0057456,40.162157 90.0748742,40.2312857 C90.1440029,40.3004143 90.1827017,40.3942617 90.1823938,40.4920239 L90.1823938,50.7978159 Z","id","Shape","fill-rule","nonzero",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","78.6733409","y","41.7652758","width","9.03249715","height","1.86879168","rx","0.5376",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","78.6733409","y","44.7100416","width","9.03249715","height","1.86879168","rx","0.5376",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","78.6733409","y","47.6548047","width","9.03249715","height","1.86879168","rx","0.5376",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","11.4109632","y","4.41773875","width","19.1409684","height","8.09810266","rx","0.5376",1,"fill-color-19"],["id","Oval","fill-rule","nonzero","cx","47.2929593","cy","42.2294561","r","12.9683743",1,"fill-color-3"],["d","M50.1798649,51.9764517 C43.6553251,51.9764517 37.7732336,48.0461636 35.2764005,42.0182748 C32.7795674,35.990386 34.1597014,29.0519859 38.773248,24.4384399 C43.3867946,19.824894 50.3251948,18.4447609 56.3530833,20.9415948 C62.3809718,23.4384287 66.3112582,29.3205207 66.3112582,35.8450605 C66.3011721,44.7500015 59.0848059,51.9663668 50.1798649,51.9764517 L50.1798649,51.9764517 Z M50.1798649,19.9245354 C41.3872016,19.9245354 34.2593397,27.0523972 34.2593397,35.8450605 C34.2593397,44.6377237 41.3872016,51.7655856 50.1798649,51.7655856 C58.9725281,51.7655856 66.10039,44.6377237 66.10039,35.8450605 C66.0904567,27.056515 58.9684103,19.9344686 50.1798649,19.9245354 L50.1798649,19.9245354 Z","id","Shape","fill-rule","nonzero",1,"fill-color-primary"],["id","Group-23","transform","translate(5.000000, 0.001193)"],["id","Group-22"],["id","Group","transform","translate(0.378134, 0.000000)"],["id","Group-24","transform","translate(29.048000, 19.712000)"],["d","M46.60483,51.432122 C46.8713708,51.432122 47.1252368,51.2924832 47.2648756,51.0513229 L52.8499289,41.4044125 C53.145042,40.8998413 52.7801095,40.2620153 52.1930443,40.2620153 L48.5310139,40.2620153 L49.8828693,36.1430446 C50.0098023,35.6606929 49.6448699,35.184694 49.1466515,35.184694 L44.5770624,35.184694 C44.1962633,35.184694 43.8725779,35.4671324 43.8218171,35.8447396 L42.8063528,43.4607214 C42.7460473,43.9176927 43.1014659,44.3238722 43.5615982,44.3238722 L47.3283421,44.3238722 L45.8654203,50.4959909 C45.751193,50.9783426 46.1192864,51.432122 46.60483,51.432122 Z","id","b","fill-rule","nonzero","transform","translate(47.877046, 43.308408) rotate(14.000000) translate(-47.877046, -43.308408) ",1,"fill-color-12"],["id","Group-34","fill-rule","nonzero"],["id","Oval","fill","url(#linearGradient-1)","cx","76.317438","cy","17.5648113","r","8.78679245"],["id","Oval","cx","76.317438","cy","17.5648113","r","8.15070413",1,"fill-color-primary"],["id","Rectangle","x","9.82759671","y","7.10932665","width","122.322231","height","69.0022838",1,"fill-color-8"],["id","Path","opacity","0.222721354","points","97.1677755 76.1116475 9.82763376 76.1116475 9.82763376 7.10937149",1,"fill-color-18"],["id","Oval","cx","28.9673627","cy","59.1901502","r","11.7579927",1,"fill-color-8"],["id","Rectangle","x","99.4252759","y","44.3228077","width","11.4262324","height","2.38757043",1,"fill-color-14"],["id","Rectangle","x","85.6114731","y","25.733862","width","39.05384","height","1.0232453",1,"fill-color-14"],["id","Rectangle","x","85.6114731","y","28.9741379","width","39.05384","height","1.0232453",1,"fill-color-14"],["id","Rectangle","x","85.6114731","y","32.2144137","width","39.05384","height","1.0232453",1,"fill-color-14"],["id","Rectangle","x","85.6114731","y","35.4546875","width","39.05384","height","1.0232453",1,"fill-color-14"],["id","Rectangle","x","85.6114731","y","38.6949634","width","39.05384","height","1.0232453",1,"fill-color-14"],["d","M88.0406297,103.870828 C88.3071704,103.870828 88.5610365,103.731189 88.7006752,103.490029 L94.2857286,93.8431185 C94.5808417,93.3385473 94.2159092,92.7007212 93.6288439,92.7007212 L89.9668136,92.7007212 L91.318669,88.5817505 C91.445602,88.0993988 91.0806695,87.6234 90.5824512,87.6234 L86.0128621,87.6234 C85.632063,87.6234 85.3083776,87.9058383 85.2576168,88.2834455 L84.2421525,95.8994274 C84.1818469,96.3563987 84.5372656,96.7625782 84.9973979,96.7625782 L88.7641417,96.7625782 L87.30122,102.934697 C87.1869926,103.417048 87.555086,103.870828 88.0406297,103.870828 Z","id","b","transform","translate(89.312846, 95.747114) rotate(14.000000) translate(-89.312846, -95.747114) ",1,"fill-color-12"],["fxFlex","30","viewBox","0 0 278 118","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["id","LoopOut_Step04","transform","translate(-503.000000, -212.000000)"],["id","Loop_Step04","transform","translate(503.000000, 212.000000)"],["id","Loop","fill-rule","nonzero"],["id","Group-16","transform","translate(24.000000, 0.000000)"],["d","M55.0827415,28.5000036 C59.4468211,28.5000036 62.9999285,25.1343958 62.9999285,21.0000215 C62.9999285,16.8656472 59.4468211,13.5000393 55.0827415,13.5000393 C51.9843297,13.5000393 49.5608889,15.4359631 47.9999642,17.1843872 C46.4390396,15.4359631 44.0155987,13.5000393 40.9171869,13.5000393 C36.5531074,13.5000393 33,16.8656472 33,21.0000215 C33,25.1343958 36.5531074,28.5000036 40.9171869,28.5000036 C44.0155987,28.5000036 46.4390396,26.5640798 47.9999642,24.8156557 C49.5608889,26.5640798 51.9843297,28.5000036 55.0827415,28.5000036 Z M40.9171869,24.0000143 C39.0328073,24.0000143 37.4999893,22.6546959 37.4999893,21.0000286 C37.4999893,19.3453471 39.0328073,18.0000286 40.9171869,18.0000286 C42.707771,18.0000286 44.3577763,19.6921938 45.3234264,21.0000286 C44.3671604,22.2937501 42.7031019,24.0000143 40.9171869,24.0000143 Z M55.0827415,24.0000143 C53.2921574,24.0000143 51.6421522,22.3078492 50.676502,21.0000286 C51.6327681,19.7062929 53.2968266,18.0000286 55.0827415,18.0000286 C56.9671212,18.0000286 58.4999392,19.3453471 58.4999392,21.0000286 C58.4999392,22.6546959 56.9671212,24.0000143 55.0827415,24.0000143 Z","id","i",1,"fill-color-primary"],["id","Oval","cx","48.644129","cy","75.1589677","rx","48.644129","ry","6.61766437",1,"fill-color-2"],["id","Group-44","transform","translate(27.000000, 69.000000)","fill-rule","nonzero"],["id","Path","transform","translate(118.400000, 8.960000) scale(-1, 1) translate(-118.400000, -8.960000) ","points","113.024 5.376 123.776 5.376 123.776 12.544 113.024 12.544",1,"fill-color-23"],["id","Group-43","transform","translate(179.000000, 40.000000)"],["id","Oval","fill-rule","nonzero","cx","47.2929593","cy","42.2294561","r","12.9683743",1,"fill-color-4"],["d","M46.519593,50.6740439 L46.519593,48.5460252 C46.9395628,48.5560039 47.349554,48.5560039 47.739557,48.5560039 L47.739557,50.6740439 L49.2794877,50.6740439 L49.2794877,48.5160274 C51.8593644,48.3760168 53.5840235,47.7260428 53.8140277,45.2961554 C53.9939838,43.3462645 53.0739982,42.476265 51.6140824,42.1263004 C52.4940295,41.6763328 53.054041,40.8763386 52.92404,39.5463928 C52.7540005,37.7264719 51.2593765,37.1164744 49.2794567,36.9465279 L49.2794567,34.4266159 L47.739526,34.4266159 L47.739526,36.8765226 C47.3395134,36.8765226 46.9295222,36.8865012 46.519562,36.8965108 L46.519562,34.4266159 L44.9796003,34.4266159 L44.9796003,36.9465279 C44.413422,36.9636341 43.7539962,36.9552669 41.8897293,36.9465279 L41.8897293,38.5864308 C43.1055717,38.564924 43.7434908,38.4867995 43.8896683,39.2663716 L43.8896683,46.1661239 C43.7968547,46.7846435 43.3018283,46.6955796 42.1997174,46.6760872 L41.8897293,48.5060178 C44.6975648,48.5060178 44.9796313,48.5160274 44.9796313,48.5160274 L44.9796313,50.6740439 L46.519593,50.6740439 Z M46.5495908,41.7662953 L46.5495908,38.6964125 C47.4195593,38.6964125 50.1394466,38.4264629 50.1394466,40.2363742 C50.1394466,41.9663016 47.4195903,41.7662953 46.5495908,41.7662953 Z M46.5495908,46.6860969 L46.5495908,43.306257 C47.5895368,43.306257 50.7741427,43.0162572 50.7741427,44.9962079 C50.7741427,46.9060914 47.5895368,46.6860969 46.5495908,46.6860969 Z","id","B","fill-rule","nonzero","transform","translate(47.863077, 42.550330) rotate(14.000000) translate(-47.863077, -42.550330) ",1,"fill-color-29"],["fxFlex","30","viewBox","0 0 200 120","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["id","LoopOut_Step05","transform","translate(-542.000000, -210.000000)","fill-rule","nonzero"],["id","Loop_Step05","transform","translate(542.000000, 210.000000)"],["id","Rectangle","x","0","y","0","width","81.4032636","height","90.8547569",1,"fill-color-11"],["id","Rectangle","x","1.34483737","y","60.660286","width","78.7116083","height","28.2158368",1,"fill-color-9"],["id","Rectangle","x","7.80560248","y","67.352783","width","46.2328358","height","14.4584872",1,"fill-color-primary-lighter"],["id","Oval","cx","68.9135074","cy","74.4889377","r","7.35996418",1,"fill-color-primary-darker"],["id","Rectangle","x","1.34483737","y","31.345208","width","78.7116083","height","28.2158368",1,"fill-color-9"],["id","Rectangle","x","7.80560248","y","38.0377051","width","46.2328358","height","14.4584872",1,"fill-color-primary-lighter"],["id","Oval","cx","68.9135074","cy","45.1758404","r","7.35996418",1,"fill-color-primary-darker"],["id","Rectangle","x","1.34483737","y","2.03013005","width","78.7116083","height","28.2158368",1,"fill-color-9"],["id","Rectangle","x","7.80560248","y","8.72460769","width","46.2328358","height","14.4584872",1,"fill-color-primary-lighter"],["id","Rectangle","x","7.80560248","y","67.352783","width","23.1164179","height","14.4584872",1,"fill-color-primary"],["id","Rectangle","x","7.80560248","y","38.0377051","width","33.2298507","height","14.4584872",1,"fill-color-primary"],["id","Rectangle","x","7.80560248","y","8.72460769","width","23.1164179","height","14.4584872",1,"fill-color-primary"],["id","Oval","cx","68.9135074","cy","15.8607624","r","7.93434243",1,"fill-color-31"],["id","Oval","fill","url(#linearGradient-1)","cx","68.9135074","cy","45.3719212","r","7.93434243"],["id","Oval","fill","url(#linearGradient-1)","cx","68.9135074","cy","74.6850186","r","7.93434243"],["id","Group-16","transform","translate(55.804478, 34.674627)"],["id","Group-29","transform","translate(0.310627, 0.751284)"],["id","Group"],["d","M132.777455,1.04124409 L82.2582659,1.04124409 L82.2582659,0 L59.3509036,0 L59.3509036,1.04124409 L8.62346042,1.04124409 C7.71715136,1.04124358 6.84796221,1.40127322 6.20710493,2.0421305 C5.56624765,2.68298778 5.20621852,3.55217693 5.20621852,4.45848599 L5.20621852,73.6347918 C5.20621852,74.5411031 5.56624437,75.4102953 6.2071016,76.0511558 C6.84795882,76.6920163 7.71714912,77.0520512 8.62346042,77.0520512 L132.777455,77.0520512 C134.664749,77.0520512 136.194697,75.522091 136.194697,73.6347977 L136.194697,4.45848599 C136.194697,3.55217693 135.834668,2.68298778 135.193811,2.0421305 C134.552953,1.40127322 133.683764,1.04124358 132.777455,1.04124409 Z","id","Path",1,"fill-color-20"],["id","Rectangle","x","9.78769098","y","7.08045867","width","121.825532","height","68.7220946",1,"fill-color-7"],["id","Path","opacity","0.306775484","points","96.7732181 75.8025901 9.78772787 75.8025901 9.78772787 7.08050333",1,"fill-color-27"],["id","Group-24","transform","translate(16.889738, 38.617955)",1,"fill-color-primary-darker"],["d","M14.5668332,29.1332406 C8.67527117,29.1332406 3.36383033,25.5842492 1.10922733,20.1411555 C-1.14537566,14.6980619 0.100864684,8.43279022 4.26682842,4.26682704 C8.43279215,0.100863866 14.698064,-1.14537564 20.1411573,1.10922807 C25.5842507,3.36383179 29.1332406,8.67527311 29.1332406,14.5668351 C29.124133,22.607864 22.6078621,29.1241341 14.5668332,29.1332406 L14.5668332,29.1332406 Z M14.5668332,0.190838576 C6.62718953,0.190838576 0.190836635,6.62719147 0.190836635,14.5668351 C0.190836635,22.5064788 6.62718953,28.9428317 14.5668332,28.9428317 C22.5064768,28.9428317 28.9428297,22.5064788 28.9428297,14.5668351 C28.9338602,6.63090975 22.5027586,0.199808125 14.5668332,0.190838576 L14.5668332,0.190838576 Z","id","Shape"],["id","Rectangle","x","99.0215517","y","44.1428314","width","11.3798353","height","2.37787551",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","25.6293676","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","28.8564861","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","32.0836045","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","35.310721","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","38.5378394","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","119.403347","y","8.47469101","width","4.75575295","height","4.75575295",1,"fill-color-5"],["d","M126.367128,15.4384701 L120.592277,15.4384701 L120.592277,9.66361906 L126.367128,9.66361906 L126.367128,15.4384701 Z M120.843366,15.1873981 L126.116048,15.1873981 L126.116048,9.91470857 L120.843366,9.91470857 L120.843366,15.1873981 Z","id","Shape",1,"fill-color-19"],["d","M139.615294,74.5530572 L127.725913,74.5530572 L127.725913,73.6964356 C127.725915,73.6513884 127.708021,73.6081857 127.676168,73.5763323 C127.644315,73.544479 127.601113,73.5265862 127.556065,73.5265862 L123.479706,73.5265862 C123.434659,73.5265862 123.391457,73.5444797 123.359604,73.5763329 C123.327751,73.6081861 123.309857,73.6513886 123.309859,73.6964356 L123.309859,74.5530572 L120.762134,74.5530572 L120.762134,73.6964356 C120.762135,73.6513886 120.744241,73.6081861 120.712388,73.5763329 C120.680536,73.5444797 120.637333,73.5265862 120.592286,73.5265862 L116.515927,73.5265862 C116.47088,73.5265862 116.427677,73.5444789 116.395824,73.5763322 C116.36397,73.6081855 116.346076,73.6513882 116.346078,73.6964356 L116.346078,74.5530572 L113.798355,74.5530572 L113.798355,73.6964356 C113.798356,73.6513882 113.780462,73.6081855 113.748609,73.5763322 C113.716755,73.5444789 113.673553,73.5265862 113.628505,73.5265862 L109.552146,73.5265862 C109.507099,73.5265862 109.463897,73.5444797 109.432044,73.5763329 C109.400191,73.6081861 109.382297,73.6513886 109.382299,73.6964356 L109.382299,74.5530572 L106.834574,74.5530572 L106.834574,73.6964356 C106.834575,73.6513886 106.816681,73.6081861 106.784828,73.5763329 C106.752975,73.5444797 106.709773,73.5265862 106.664726,73.5265862 L102.588363,73.5265862 C102.543316,73.5265862 102.500113,73.544479 102.46826,73.5763323 C102.436407,73.6081857 102.418513,73.6513884 102.418516,73.6964356 L102.418516,74.5530572 L99.8707946,74.5530572 L99.8707946,73.6964356 C99.8707961,73.6513882 99.8529018,73.6081855 99.8210486,73.5763322 C99.7891953,73.5444789 99.7459925,73.5265862 99.7009452,73.5265862 L95.6245878,73.5265862 C95.5795404,73.5265862 95.5363377,73.5444789 95.5044844,73.5763322 C95.4726311,73.6081855 95.4547369,73.6513882 95.4547384,73.6964356 L95.4547384,74.5530572 L92.9070135,74.5530572 L92.9070135,73.6964356 C92.9070151,73.6513886 92.889121,73.6081861 92.8572682,73.5763329 C92.8254153,73.5444797 92.7822131,73.5265862 92.7371661,73.5265862 L88.6608067,73.5265862 C88.6157597,73.5265862 88.5725575,73.5444797 88.5407046,73.5763329 C88.5088518,73.6081861 88.4909577,73.6513886 88.4909593,73.6964356 L88.4909593,74.5530572 L85.9432383,74.5530572 L85.9432383,73.6964356 C85.9432399,73.6513886 85.9253458,73.6081861 85.893493,73.5763329 C85.8616401,73.5444797 85.8184379,73.5265862 85.7733909,73.5265862 L53.8419073,73.5265862 C53.7968603,73.5265862 53.7536581,73.5444797 53.7218052,73.5763329 C53.6899524,73.6081861 53.6720584,73.6513886 53.6720599,73.6964356 L53.6720599,74.5530572 L51.124335,74.5530572 L51.124335,73.6964356 C51.1243366,73.6513882 51.1064423,73.6081855 51.074589,73.5763322 C51.0427358,73.5444789 50.999533,73.5265862 50.9544857,73.5265862 L46.8781379,73.5265862 C46.8330906,73.5265862 46.7898879,73.5444789 46.7580346,73.5763322 C46.7261813,73.6081855 46.708287,73.6513882 46.7082886,73.6964356 L46.7082886,74.5530572 L44.160554,74.5530572 L44.160554,73.6964356 C44.1605561,73.6513884 44.1426622,73.6081857 44.1108092,73.5763323 C44.0789563,73.544479 44.0357537,73.5265862 43.9907066,73.5265862 L39.9143472,73.5265862 C39.8693002,73.5265862 39.8260979,73.5444797 39.7942451,73.5763329 C39.7623922,73.6081861 39.7444982,73.6513886 39.7444998,73.6964356 L39.7444998,74.5530572 L37.1967749,74.5530572 L37.1967749,73.6964356 C37.1967764,73.6513886 37.1788824,73.6081861 37.1470296,73.5763329 C37.1151767,73.5444797 37.0719745,73.5265862 37.0269275,73.5265862 L32.9505681,73.5265862 C32.9055208,73.5265862 32.862318,73.5444789 32.8304647,73.5763322 C32.7986115,73.6081855 32.7807172,73.6513882 32.7807187,73.6964356 L32.7807187,74.5530572 L30.2329958,74.5530572 L30.2329958,73.6964356 C30.2329973,73.6513882 30.215103,73.6081855 30.1832498,73.5763322 C30.1513965,73.5444789 30.1081938,73.5265862 30.0631464,73.5265862 L25.986787,73.5265862 C25.94174,73.5265862 25.8985378,73.5444797 25.866685,73.5763329 C25.8348321,73.6081861 25.8169381,73.6513886 25.8169396,73.6964356 L25.8169396,74.5530572 L23.2692109,74.5530572 L23.2692109,73.6964356 C23.2692124,73.6513886 23.2513184,73.6081861 23.2194655,73.5763329 C23.1876127,73.5444797 23.1444104,73.5265862 23.0993634,73.5265862 L19.0230079,73.5265862 C18.9779608,73.5265862 18.9347582,73.544479 18.9029053,73.5763323 C18.8710523,73.6081857 18.8531585,73.6513884 18.8531605,73.6964356 L18.8531605,74.5530572 L16.3054357,74.5530572 L16.3054357,73.6964356 C16.3054372,73.6513882 16.2875429,73.6081855 16.2556896,73.5763322 C16.2238364,73.5444789 16.1806336,73.5265862 16.1355863,73.5265862 L12.0592288,73.5265862 C12.0141815,73.5265862 11.9709788,73.5444789 11.9391255,73.5763322 C11.9072722,73.6081855 11.8893779,73.6513882 11.8893795,73.6964356 L11.8893795,74.5530572 L4.07635746,74.5530572 C1.82504753,74.5530594 0,76.3781067 0,78.6294166 L0,80.4726504 C0,82.7239563 1.82505163,84.5489982 4.07635746,84.5489982 L139.615294,84.5489982 C141.8666,84.5489982 143.691654,82.7239566 143.691654,80.4726504 L143.691654,78.6294166 C143.691654,76.3781064 141.866605,74.5530594 139.615294,74.5530572 Z","id","Path",1,"fill-color-20"],["id","Group","transform","translate(14.563343, 25.890388)"],["d","M34.1898756,18.6935074 C34.8335754,18.7760331 35.5015474,18.8284611 36.1180622,18.6284578 C36.2151512,18.5983603 36.321949,18.5313689 36.3122401,18.4342799 C36.3052976,18.3990002 36.2903506,18.3657846 36.2685501,18.337191 C36.0361522,17.9886397 35.8409087,17.6167008 35.6860164,17.2274642 C35.6798777,17.2071636 35.6672606,17.1894314 35.6500935,17.176978 C35.6300188,17.1697099 35.6080312,17.1697099 35.5879565,17.176978 C35.3034859,17.2517365 35.0578508,17.4352346 34.775322,17.5138766 C34.6312683,17.5533966 34.4809179,17.5646069 34.3325963,17.5468869 C34.2044389,17.5323235 34.0296788,17.4264966 33.9131721,17.440089 C33.9791925,17.8643678 34.1403602,18.2604907 34.1898756,18.6935074 Z","id","Path",1,"fill-color-primary-darker"],["d","M46.3638597,17.6187327 C46.7881384,17.3274658 47.2279514,17.0216356 47.4784409,16.5721138 C47.4963243,16.5452282 47.5067138,16.5140596 47.5085385,16.481821 C47.5042662,16.4500929 47.4918946,16.4199997 47.4726155,16.394441 C47.2340087,16.0151166 46.9268212,15.6835648 46.5667756,15.4167552 C46.3789189,15.549458 46.2091963,15.7061249 46.061913,15.8827822 C45.9551152,15.9954054 45.6599648,16.1740491 45.6570521,16.3458965 C45.6570521,16.4429855 45.7696753,16.5556086 45.8221033,16.6371634 C45.8929782,16.7420194 45.9599696,16.8488173 46.0240483,16.9575569 C46.0609421,17.0109558 46.3978408,17.5973731 46.3638597,17.6187327 Z","id","Path",1,"fill-color-primary-darker"],["d","M36.7132175,19.9935285 C36.7207976,20.0935521 36.6933371,20.1930963 36.6355464,20.2750865 C36.5902231,20.3206727 36.5341172,20.3540691 36.4724369,20.3721755 C35.5724223,20.6945108 34.5306578,20.2925625 33.632585,20.6100434 C33.448116,20.675093 33.2733558,20.7692693 33.0879159,20.8314062 C32.8668382,20.8978733 32.6387504,20.9382775 32.4082933,20.9517965 C32.0908124,20.9818941 31.7713897,21.0013119 31.4529379,21.0100499 C31.2109788,21.0271812 30.9678332,21.0058814 30.7325379,20.9469421 C30.494578,20.8860354 30.29373,20.7268395 30.1801017,20.5090709 C30.1312849,20.4125511 30.1215484,20.3009295 30.1529168,20.1974154 C30.1669968,20.1619216 30.1870252,20.1290882 30.2121411,20.1003264 C30.2730042,20.0320475 30.3444715,19.9740213 30.423795,19.9284789 L30.7548683,19.7148832 C30.9101158,19.6051008 31.0788103,19.515696 31.2568182,19.4488595 C31.3878883,19.4061404 31.5267255,19.3876935 31.6597374,19.3517706 C32.1247935,19.215846 32.4801391,18.846908 32.8102415,18.4925333 L33.2607343,18.011943 C33.3028503,17.9590638 33.3562578,17.9162715 33.4170475,17.8866982 C33.4795282,17.8658617 33.5459388,17.8595527 33.6112254,17.8682513 C34.0488232,17.8994947 34.4713668,18.041122 34.8394007,18.2799085 C34.9334629,18.3504651 35.0350556,18.4103788 35.1423182,18.4585522 C35.4064002,18.5614665 35.7452406,18.4837953 35.9889339,18.3536961 C36.1044698,18.2915592 36.0792267,18.2566071 36.1277711,18.1459257 C36.1763156,18.0352443 36.2947641,17.9643694 36.3976784,18.0653419 C36.4287289,18.1002598 36.4507324,18.1422664 36.4617571,18.187674 C36.5588461,18.5080675 36.5219523,18.8527333 36.5219523,19.1886611 C36.519104,19.2411857 36.5256803,19.2937961 36.5413701,19.3440034 C36.566144,19.3946232 36.5957307,19.4427421 36.629721,19.4876951 C36.6366398,19.4995928 36.642801,19.5119152 36.6481679,19.5245889 C36.7075588,19.673314 36.7298837,19.8342531 36.7132175,19.9935285 Z","id","Path",1,"fill-color-primary-darker"],["d","M36.7132175,19.9935285 C36.7207976,20.0935521 36.6933371,20.1930963 36.6355464,20.2750865 C36.5902231,20.3206727 36.5341172,20.3540691 36.4724369,20.3721755 C35.5724223,20.6945108 34.5306578,20.2925625 33.632585,20.6100434 C33.448116,20.675093 33.2733558,20.7692693 33.0879159,20.8314062 C32.8668382,20.8978733 32.6387504,20.9382775 32.4082933,20.9517965 C32.0908124,20.9818941 31.7713897,21.0013119 31.4529379,21.0100499 C31.2109788,21.0271812 30.9678332,21.0058814 30.7325379,20.9469421 C30.494578,20.8860354 30.29373,20.7268395 30.1801017,20.5090709 C30.1312849,20.4125511 30.1215484,20.3009295 30.1529168,20.1974154 C30.1669968,20.1619216 30.1870252,20.1290882 30.2121411,20.1003264 C30.2645691,20.2100369 30.3024338,20.3556704 30.3354441,20.4080984 C30.4256618,20.5652773 30.5791886,20.6760005 30.7568101,20.7119868 C30.8882242,20.7200556 31.0199808,20.7032567 31.1451659,20.6624715 C31.9607132,20.4605264 32.8277175,20.4576138 33.6112254,20.1517835 C33.8801618,20.0459566 34.1364767,19.9051776 34.4190055,19.8410989 C34.7015344,19.7770202 35.0015392,19.7944962 35.2928061,19.770224 C35.7530078,19.7333301 36.1986461,19.5944929 36.6520515,19.5216762 C36.7105975,19.6716231 36.7315958,19.83361 36.7132175,19.9935285 L36.7132175,19.9935285 Z","id","Path",1,"fill-color-primary-darker"],["d","M48.4250582,17.5595084 C48.3823391,17.9012616 48.1658307,18.1954411 47.9279627,18.4449597 C47.6900948,18.6944783 47.4211584,18.9187538 47.2318349,19.2061371 C46.9988214,19.5624536 46.8939654,20.0042083 46.5910478,20.3051841 C46.4747693,20.4146353 46.3441148,20.5077266 46.202692,20.5818876 C46.0442646,20.6753601 45.8767312,20.752458 45.7026839,20.8119884 C45.2502494,20.956651 44.7628628,20.9236407 44.2900396,20.8886887 C44.1365309,20.8872131 43.9845596,20.8579372 43.8414886,20.8022795 C43.7763574,20.7691922 43.7140162,20.7308783 43.6550778,20.6877146 C43.5365551,20.6147292 43.4367964,20.5149704 43.363811,20.3964477 C43.3279723,20.332004 43.3179103,20.2563656 43.3356552,20.1847938 C43.3626747,20.1059564 43.4090817,20.0351774 43.4706088,19.9789652 C43.5770067,19.8683202 43.6912186,19.7654647 43.8123619,19.6711932 C43.9785829,19.5639234 44.1283649,19.4331094 44.2570293,19.2828374 C44.335968,19.1640934 44.3940832,19.0327597 44.4288768,18.8944816 C44.4976483,18.652227 44.5396476,18.4031617 44.5541216,18.1517511 C44.5535898,17.9846963 44.5708393,17.8180593 44.6055787,17.6546556 C44.6774245,17.3983408 44.8677189,17.1692108 44.8463593,16.904158 C44.8377185,16.866204 44.8411119,16.8265011 44.8560682,16.7905639 C44.8786704,16.7624825 44.9101823,16.7429588 44.94539,16.7352232 C45.0937604,16.6760869 45.2502282,16.6397523 45.4094752,16.6274545 C45.571226,16.6162976 45.7294484,16.6783037 45.8405502,16.7963893 C45.9065707,16.8760022 45.9502607,16.9905672 46.0473497,17.0216356 C46.0954598,17.0347655 46.1459295,17.0367577 46.1949249,17.027461 C46.4337637,17.0031887 46.686195,16.9730912 46.8745476,16.8187197 C47.0505482,16.6608586 47.152616,16.4366614 47.1561056,16.2002631 C47.1561056,16.1119121 47.1162991,16.0196776 47.2531945,16.0060852 C47.3561088,15.9924927 47.4376635,16.1031741 47.4900916,16.1711364 C47.679415,16.4245386 47.8735929,16.6895914 47.9444679,16.9983343 C47.9720312,16.9876362 48.0013112,16.9820434 48.030877,16.9818292 C48.1537854,16.9807475 48.2694521,17.0398499 48.3405908,17.1400842 C48.4179108,17.2653269 48.447872,17.4140998 48.4250582,17.5595084 L48.4250582,17.5595084 Z","id","Path",1,"fill-color-primary-darker"],["d","M48.4250582,17.5595084 C48.3823391,17.9012616 48.1658307,18.1954411 47.9279627,18.4449597 C47.6900948,18.6944783 47.4211584,18.9187538 47.2318349,19.2061371 C46.9988214,19.5624536 46.8939654,20.0042083 46.5910478,20.3051841 C46.4747693,20.4146353 46.3441148,20.5077266 46.202692,20.5818876 C46.0442646,20.6753601 45.8767312,20.752458 45.7026839,20.8119884 C45.2502494,20.956651 44.7628628,20.9236407 44.2900396,20.8886887 C44.1365309,20.8872131 43.9845596,20.8579372 43.8414886,20.8022795 C43.7763574,20.7691922 43.7140162,20.7308783 43.6550778,20.6877146 C43.5365551,20.6147292 43.4367964,20.5149704 43.363811,20.3964477 C43.4548211,20.3526902 43.5541213,20.3288581 43.6550778,20.3265437 C43.86479,20.3381943 44.0181905,20.5362558 44.2191647,20.5974219 C44.5055771,20.683831 44.7910186,20.481886 45.0813146,20.4129528 C45.270638,20.3682919 45.4696704,20.3799426 45.6570521,20.3158639 C45.8132081,20.2555144 45.9574928,20.168089 46.0832726,20.0576073 C46.2556706,19.9343474 46.4090818,19.786497 46.5386198,19.6187652 C46.646198,19.4510234 46.735696,19.2723528 46.8056144,19.0857468 C46.9589198,18.7281302 47.1393856,18.3827784 47.345429,18.0527203 C47.375905,18.0004629 47.4127576,17.9521958 47.4551395,17.9090287 C47.5007713,17.8672804 47.5522285,17.8381537 47.6036856,17.8012599 C47.7978635,17.6546556 47.8784474,17.4129041 47.9464096,17.1760071 C47.9648208,17.1040024 47.9905203,17.0340608 48.0231099,16.9672512 C48.1460183,16.9661841 48.2616849,17.0252865 48.3328237,17.1255208 C48.4163608,17.2537243 48.4492363,17.4084124 48.4250582,17.5595084 L48.4250582,17.5595084 Z","id","Path",1,"fill-color-primary-darker"],["d","M54.316416,4.55250111 L54.316416,3.34665629 C54.316416,1.49819202 52.8172532,0 50.9687888,0 L3.34762718,0 C1.49916283,0 0,1.49819202 0,3.34665629 L0,5.56999336 L54.316416,4.55250111 Z","id","Path",1,"fill-color-16"],["d","M55.6018738,5.73601547 L55.6018738,39.231705 C55.6018738,39.9999836 55.2966099,40.7367813 54.7532639,41.2799452 C54.2099179,41.8231092 53.4730179,42.1278687 52.7047393,42.1278687 L2.89810531,42.1278687 C1.29897753,42.1273325 0.00291266866,40.8308329 0.00291266866,39.231705 L0.00291266866,2.35926161 C1.43012031,2.88936731 1.43012031,2.88936731 2.89810531,2.84470639 L52.7047393,2.84470639 C54.3025103,2.84470316 55.5986611,4.13824772 55.6018738,5.73601547 Z","id","Path","opacity","0.1",1,"fill-color-27"],["d","M55.6018738,6.16223599 L55.6018738,39.6579255 C55.6018738,41.2575895 54.3044034,42.5540891 52.7047393,42.5540891 L2.89810531,42.5540891 C1.29897753,42.553553 0.00291266866,41.2570534 0.00291266866,39.6579255 L0.00291266866,2.78451124 C1.43012031,3.31364604 1.43012031,3.31364604 2.89810531,3.26995601 L52.7047393,3.26995601 C54.3028886,3.26995377 55.5991959,4.56408894 55.6018738,6.16223599 Z","id","Path",1,"fill-color-19"],["d","M55.4601239,18.5459322 L55.4601239,29.2577567 L45.0716057,29.2577567 C42.141738,29.2183086 39.7873207,26.8319777 39.7873207,23.9018444 C39.7873207,20.9717112 42.141738,18.5853803 45.0716057,18.5459322 L55.4601239,18.5459322 Z","id","Path","opacity","0.1",1,"fill-color-27"],["d","M55.6018738,18.2604907 L55.6018738,28.9742569 L45.2133556,28.9742569 C42.2834879,28.9348088 39.9290706,26.5484779 39.9290706,23.6183447 C39.9290706,20.6882114 42.2834879,18.3018806 45.2133556,18.2624325 L55.6018738,18.2604907 Z","id","Path",1,"fill-color-17"],["id","Oval","opacity","0.1","cx","45.7114219","cy","23.9023299","r","2.08838343",1,"fill-color-27"],["id","Oval","cx","45.8531718","cy","23.6188301","r","2.08838343",1,"fill-color-28"],["d","M37.114137,56.485738 L37.114137,54.3663604 C37.5324015,54.3762985 37.9407279,54.3762985 38.3291472,54.3762985 L38.3291472,56.485738 L39.8628249,56.485738 L39.8628249,54.3364843 C42.4322258,54.1970423 44.1498818,53.5497076 44.378952,51.1296869 C44.5581774,49.1877136 43.6419275,48.3212469 42.1879398,47.9727034 C43.0643138,47.5245628 43.6220513,46.7278171 43.4925782,45.4032717 C43.3232292,43.5907407 41.8346742,42.9832201 39.8627941,42.8139637 L39.8627941,40.3042841 L38.3291164,40.3042841 L38.3291164,42.7442427 C37.9307281,42.7442427 37.5224017,42.7541808 37.1141061,42.7641498 L37.1141061,40.3042841 L35.5803975,40.3042841 L35.5803975,42.8139637 C35.0165182,42.8310005 34.3597701,42.8226673 32.5030732,42.8139637 L32.5030732,44.4472076 C33.7139786,44.4257882 34.3493073,44.3479809 34.4948913,45.1243875 L34.4948913,51.9961228 C34.4024546,52.6121309 33.9094382,52.5234287 32.8118025,52.5040154 L32.5030732,54.3265154 L33.46474,54.3269705 C35.3673259,54.328922 35.5804284,54.3364843 35.5804284,54.3364843 L35.5804284,56.485738 L37.114137,56.485738 Z M37.144013,47.6141601 L37.144013,44.5567428 C38.0104489,44.5567428 40.7192919,44.2878893 40.7192919,46.0904514 C40.7192919,47.8133542 38.0104798,47.6141601 37.144013,47.6141601 Z M37.144013,52.5139844 L37.144013,49.1478686 C38.1797362,49.1478686 41.3514108,48.8590464 41.3514108,50.8309574 C41.3514108,52.7330856 38.1797362,52.5139844 37.144013,52.5139844 Z","id","b","transform","translate(38.452166, 48.395011) rotate(14.000000) translate(-38.452166, -48.395011) ",1,"fill-color-30"]],template:function(ve,qe){if(1&ve&&(s.YNc(0,Ie,1,0,"ng-container",0),s.YNc(1,Me,32,5,"ng-template",null,1,s.W1O),s.YNc(3,we,51,5,"ng-template",null,2,s.W1O),s.YNc(5,z,74,5,"ng-template",null,3,s.W1O),s.YNc(7,Ge,53,5,"ng-template",null,4,s.W1O),s.YNc(9,vt,66,5,"ng-template",null,5,s.W1O)),2&ve){const yt=s.MAs(2),fe=s.MAs(4),Je=s.MAs(6),St=s.MAs(8),Pt=s.MAs(10);s.Q6J("ngTemplateOutlet",1===qe.stepNumber?yt:2===qe.stepNumber?fe:3===qe.stepNumber?Je:4===qe.stepNumber?St:Pt)}},directives:[O.tP,Z.xw,Z.yH,Z.Wh,O.mk,_e.oO,j.n5,j.$j],styles:["svg.small-svg[_ngcontent-%COMP%]{height:50%;min-height:50%;max-width:100%}svg.large-svg[_ngcontent-%COMP%]{height:60%;min-height:60%;max-width:100%}"],data:{animation:[ze.l]}}),Ke})();function Ne(Ke,_t){1&Ke&&s.GkF(0)}const he=function(Ke,_t){return{"small-svg":Ke,"large-svg":_t}};function Le(Ke,_t){if(1&Ke){const ve=s.EpF();s.TgZ(0,"div",6),s.NdJ("swipe",function(yt){return s.CHM(ve),s.oxw().onSwipe(yt)}),s.O4$(),s.TgZ(1,"svg",7),s.TgZ(2,"desc"),s._uU(3,"Created with Sketch."),s.qZA(),s.TgZ(4,"g",8),s.TgZ(5,"g",9),s.TgZ(6,"g",10),s.TgZ(7,"g",11),s._UZ(8,"circle",12),s._UZ(9,"path",13),s.qZA(),s.TgZ(10,"g",14),s._UZ(11,"ellipse",15),s._UZ(12,"ellipse",16),s._UZ(13,"rect",17),s._UZ(14,"rect",18),s._UZ(15,"rect",19),s._UZ(16,"rect",20),s._UZ(17,"rect",21),s._UZ(18,"rect",22),s._UZ(19,"rect",23),s._UZ(20,"rect",24),s._UZ(21,"rect",25),s._UZ(22,"rect",26),s._UZ(23,"rect",27),s._UZ(24,"rect",28),s._UZ(25,"rect",29),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.kcU(),s.TgZ(26,"div",30),s.TgZ(27,"mat-card-title"),s._uU(28,"Loop In explained."),s.qZA(),s.qZA(),s.TgZ(29,"div",31),s.TgZ(30,"mat-card-subtitle",32),s._uU(31," Lightning Loop is a non custodial service offered by Lightning Labs to bridge on-chain and off-chain Bitcoin using Submarine swaps. "),s.qZA(),s.qZA(),s.qZA()}if(2&Ke){const ve=s.oxw();s.Q6J("@sliderAnimation",ve.animationDirection),s.xp6(1),s.Q6J("ngClass",s.WLB(2,he,ve.screenSize===ve.screenSizeEnum.XS,ve.screenSize!==ve.screenSizeEnum.XS))}}function ke(Ke,_t){if(1&Ke){const ve=s.EpF();s.TgZ(0,"div",6),s.NdJ("swipe",function(yt){return s.CHM(ve),s.oxw().onSwipe(yt)}),s.O4$(),s.TgZ(1,"svg",33),s.TgZ(2,"desc"),s._uU(3,"Created with Sketch."),s.qZA(),s.TgZ(4,"defs"),s.TgZ(5,"linearGradient",34),s._UZ(6,"stop",35),s._UZ(7,"stop",36),s._UZ(8,"stop",37),s.qZA(),s.qZA(),s.TgZ(9,"g",8),s.TgZ(10,"g",38),s.TgZ(11,"g",39),s.TgZ(12,"g",40),s._UZ(13,"rect",41),s._UZ(14,"rect",42),s._UZ(15,"rect",43),s._UZ(16,"circle",44),s._UZ(17,"rect",45),s._UZ(18,"rect",46),s._UZ(19,"circle",47),s._UZ(20,"rect",48),s._UZ(21,"rect",49),s._UZ(22,"rect",50),s._UZ(23,"rect",51),s._UZ(24,"rect",52),s._UZ(25,"circle",53),s._UZ(26,"circle",54),s._UZ(27,"circle",55),s.qZA(),s.TgZ(28,"g",56),s.TgZ(29,"g",57),s.TgZ(30,"g",58),s._UZ(31,"path",59),s._UZ(32,"rect",60),s._UZ(33,"polygon",61),s.TgZ(34,"g",62),s._UZ(35,"path",63),s.qZA(),s._UZ(36,"rect",64),s._UZ(37,"rect",65),s._UZ(38,"rect",66),s._UZ(39,"rect",67),s._UZ(40,"rect",68),s._UZ(41,"rect",69),s._UZ(42,"rect",70),s._UZ(43,"path",71),s._UZ(44,"path",72),s.qZA(),s.TgZ(45,"g",73),s._UZ(46,"path",74),s._UZ(47,"path",75),s._UZ(48,"path",76),s._UZ(49,"path",77),s._UZ(50,"path",78),s._UZ(51,"path",79),s._UZ(52,"path",80),s._UZ(53,"path",81),s._UZ(54,"path",82),s._UZ(55,"path",83),s._UZ(56,"path",84),s._UZ(57,"circle",85),s._UZ(58,"circle",86),s.qZA(),s._UZ(59,"path",87),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.kcU(),s.TgZ(60,"div",30),s.TgZ(61,"mat-card-title"),s._uU(62,"Step 1: Deciding to Loop In"),s.qZA(),s.qZA(),s.TgZ(63,"div",31),s.TgZ(64,"mat-card-subtitle",32),s._uU(65," Your outgoing capacity is depleted and you want to regain it without opening new channels. "),s.qZA(),s.qZA(),s.qZA()}if(2&Ke){const ve=s.oxw();s.Q6J("@sliderAnimation",ve.animationDirection),s.xp6(1),s.Q6J("ngClass",s.WLB(2,he,ve.screenSize===ve.screenSizeEnum.XS,ve.screenSize!==ve.screenSizeEnum.XS))}}function q(Ke,_t){if(1&Ke){const ve=s.EpF();s.TgZ(0,"div",6),s.NdJ("swipe",function(yt){return s.CHM(ve),s.oxw().onSwipe(yt)}),s.O4$(),s.TgZ(1,"svg",88),s.TgZ(2,"desc"),s._uU(3,"Created with Sketch."),s.qZA(),s.TgZ(4,"defs"),s.TgZ(5,"linearGradient",89),s._UZ(6,"stop",35),s._UZ(7,"stop",36),s._UZ(8,"stop",37),s.qZA(),s.qZA(),s.TgZ(9,"g",90),s.TgZ(10,"g",91),s.TgZ(11,"g",92),s.TgZ(12,"g",93),s.TgZ(13,"g",94),s._UZ(14,"circle",95),s._UZ(15,"path",96),s.TgZ(16,"g",97),s._UZ(17,"polygon",98),s._UZ(18,"polygon",99),s._UZ(19,"path",100),s.qZA(),s.TgZ(20,"g",101),s._UZ(21,"polygon",102),s._UZ(22,"path",103),s._UZ(23,"rect",104),s._UZ(24,"path",105),s._UZ(25,"rect",106),s._UZ(26,"rect",107),s._UZ(27,"rect",108),s._UZ(28,"rect",109),s._UZ(29,"circle",110),s._UZ(30,"path",111),s.TgZ(31,"g",112),s.TgZ(32,"g",113),s._UZ(33,"g",114),s.qZA(),s._UZ(34,"g",115),s.qZA(),s.qZA(),s.qZA(),s.TgZ(35,"g",116),s.TgZ(36,"g",40),s._UZ(37,"rect",117),s._UZ(38,"rect",42),s._UZ(39,"rect",43),s._UZ(40,"circle",118),s._UZ(41,"rect",45),s._UZ(42,"rect",46),s._UZ(43,"circle",119),s._UZ(44,"rect",48),s._UZ(45,"rect",49),s._UZ(46,"rect",50),s._UZ(47,"rect",51),s._UZ(48,"rect",52),s._UZ(49,"circle",120),s._UZ(50,"circle",54),s._UZ(51,"circle",55),s._UZ(52,"circle",121),s.qZA(),s.TgZ(53,"g",56),s.TgZ(54,"g",57),s.TgZ(55,"g",58),s._UZ(56,"path",59),s._UZ(57,"rect",60),s._UZ(58,"polygon",61),s.TgZ(59,"g",122),s._UZ(60,"path",63),s.qZA(),s._UZ(61,"rect",123),s._UZ(62,"rect",124),s._UZ(63,"rect",125),s._UZ(64,"rect",126),s._UZ(65,"rect",127),s._UZ(66,"rect",128),s._UZ(67,"rect",129),s._UZ(68,"path",130),s._UZ(69,"path",72),s.qZA(),s.TgZ(70,"g",73),s._UZ(71,"path",131),s._UZ(72,"path",132),s._UZ(73,"path",133),s._UZ(74,"path",134),s._UZ(75,"path",135),s._UZ(76,"path",136),s._UZ(77,"path",80),s._UZ(78,"path",81),s._UZ(79,"path",137),s._UZ(80,"path",83),s._UZ(81,"path",138),s._UZ(82,"circle",85),s._UZ(83,"circle",86),s.qZA(),s._UZ(84,"path",139),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s._UZ(85,"path",140),s._UZ(86,"path",141),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.kcU(),s.TgZ(87,"div",30),s.TgZ(88,"mat-card-title"),s._uU(89,"Step 2: Send payment out"),s.qZA(),s.qZA(),s.TgZ(90,"div",31),s.TgZ(91,"mat-card-subtitle",32),s._uU(92," Your node sends funds on-chain to loop server to be swapped with off-chain liquidity. "),s.qZA(),s.qZA(),s.qZA()}if(2&Ke){const ve=s.oxw();s.Q6J("@sliderAnimation",ve.animationDirection),s.xp6(1),s.Q6J("ngClass",s.WLB(2,he,ve.screenSize===ve.screenSizeEnum.XS,ve.screenSize!==ve.screenSizeEnum.XS))}}function $(Ke,_t){if(1&Ke){const ve=s.EpF();s.TgZ(0,"div",6),s.NdJ("swipe",function(yt){return s.CHM(ve),s.oxw().onSwipe(yt)}),s.O4$(),s.TgZ(1,"svg",142),s.TgZ(2,"desc"),s._uU(3,"Created with Sketch."),s.qZA(),s.TgZ(4,"g",90),s.TgZ(5,"g",143),s.TgZ(6,"g",144),s.TgZ(7,"g"),s.TgZ(8,"g",145),s.TgZ(9,"g",146),s._UZ(10,"circle",12),s._UZ(11,"path",147),s.qZA(),s.TgZ(12,"g",14),s._UZ(13,"ellipse",148),s._UZ(14,"ellipse",16),s._UZ(15,"rect",17),s._UZ(16,"rect",18),s._UZ(17,"rect",19),s._UZ(18,"rect",20),s._UZ(19,"rect",21),s._UZ(20,"rect",22),s._UZ(21,"rect",23),s._UZ(22,"rect",24),s._UZ(23,"rect",25),s._UZ(24,"rect",26),s._UZ(25,"rect",27),s._UZ(26,"rect",28),s._UZ(27,"rect",29),s.qZA(),s.qZA(),s.TgZ(28,"g",149),s._UZ(29,"polygon",150),s._UZ(30,"polygon",99),s._UZ(31,"path",151),s.qZA(),s.TgZ(32,"g",152),s._UZ(33,"polygon",102),s._UZ(34,"path",103),s._UZ(35,"rect",104),s._UZ(36,"path",105),s._UZ(37,"rect",106),s._UZ(38,"rect",107),s._UZ(39,"rect",108),s._UZ(40,"rect",109),s._UZ(41,"circle",110),s._UZ(42,"path",111),s.TgZ(43,"g",112),s.TgZ(44,"g",113),s._UZ(45,"g",114),s.qZA(),s._UZ(46,"g",115),s.qZA(),s.qZA(),s.qZA(),s._UZ(47,"path",153),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.kcU(),s.TgZ(48,"div",30),s.TgZ(49,"mat-card-title"),s._uU(50,"Step 3: Recieve Funds Off-chain"),s.qZA(),s.qZA(),s.TgZ(51,"div",31),s.TgZ(52,"mat-card-subtitle",32),s._uU(53," Loop server sends equivalent funds off-chain to your node by making a lightning payment to you. "),s.qZA(),s.qZA(),s.qZA()}if(2&Ke){const ve=s.oxw();s.Q6J("@sliderAnimation",ve.animationDirection),s.xp6(1),s.Q6J("ngClass",s.WLB(2,he,ve.screenSize===ve.screenSizeEnum.XS,ve.screenSize!==ve.screenSizeEnum.XS))}}function le(Ke,_t){if(1&Ke){const ve=s.EpF();s.TgZ(0,"div",6),s.NdJ("swipe",function(yt){return s.CHM(ve),s.oxw().onSwipe(yt)}),s.O4$(),s.TgZ(1,"svg",154),s.TgZ(2,"desc"),s._uU(3,"Created with Sketch."),s.qZA(),s.TgZ(4,"defs"),s.TgZ(5,"linearGradient",34),s._UZ(6,"stop",35),s._UZ(7,"stop",36),s._UZ(8,"stop",37),s.qZA(),s.qZA(),s.TgZ(9,"g",90),s.TgZ(10,"g",155),s.TgZ(11,"g",156),s.TgZ(12,"g",157),s.TgZ(13,"g",158),s.TgZ(14,"g",40),s._UZ(15,"rect",159),s._UZ(16,"rect",160),s._UZ(17,"rect",161),s._UZ(18,"circle",162),s._UZ(19,"rect",163),s._UZ(20,"rect",164),s._UZ(21,"circle",165),s._UZ(22,"rect",166),s._UZ(23,"rect",167),s._UZ(24,"rect",168),s._UZ(25,"rect",169),s._UZ(26,"circle",170),s._UZ(27,"circle",171),s.qZA(),s.TgZ(28,"g",172),s._UZ(29,"path",173),s._UZ(30,"rect",174),s._UZ(31,"polygon",175),s._UZ(32,"circle",176),s._UZ(33,"path",177),s._UZ(34,"rect",178),s._UZ(35,"rect",179),s._UZ(36,"rect",180),s._UZ(37,"rect",181),s._UZ(38,"rect",182),s._UZ(39,"rect",183),s._UZ(40,"rect",184),s._UZ(41,"path",185),s._UZ(42,"path",186),s.qZA(),s._UZ(43,"path",187),s.qZA(),s.qZA(),s._UZ(44,"circle",188),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.kcU(),s.TgZ(45,"div",30),s.TgZ(46,"mat-card-title"),s._uU(47,"Done!"),s.qZA(),s.qZA(),s.TgZ(48,"div",31),s.TgZ(49,"mat-card-subtitle",32),s._uU(50," You send the payment on-chain from your wallet and also move remote balance to the local side of the node, gaining outgoing capacity. "),s.qZA(),s.qZA(),s.qZA()}if(2&Ke){const ve=s.oxw();s.Q6J("@sliderAnimation",ve.animationDirection),s.xp6(1),s.Q6J("ngClass",s.WLB(2,he,ve.screenSize===ve.screenSizeEnum.XS,ve.screenSize!==ve.screenSizeEnum.XS))}}let xe=(()=>{class Ke{constructor(ve){this.commonService=ve,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new s.vpe,this.screenSize="",this.screenSizeEnum=l.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(ve){2===ve.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===ve.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return Ke.\u0275fac=function(ve){return new(ve||Ke)(s.Y36(w.v))},Ke.\u0275cmp=s.Xpm({type:Ke,selectors:[["rtl-loop-in-info-graphics"]],inputs:{animationDirection:"animationDirection",stepNumber:"stepNumber"},outputs:{stepNumberChange:"stepNumberChange"},decls:11,vars:1,consts:[[4,"ngTemplateOutlet"],["loopStepBlock1",""],["loopStepBlock2",""],["loopStepBlock3",""],["loopStepBlock4",""],["loopStepBlock5",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",3,"swipe"],["fxFlex","30","viewBox","0 0 108 118","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["id","Loopv0.2","stroke","none","stroke-width","1","fill","none","fill-rule","evenodd"],["id","LoopIn_Step01","transform","translate(-594.000000, -215.000000)","fill-rule","nonzero"],["id","Loop_Step01","transform","translate(594.000000, 215.000000)"],["id","Group-16","transform","translate(23.000000, 0.000000)"],["id","Oval","cx","42.4877419","cy","42.4877419","r","42.4877419",1,"fill-color-2"],["d","M56.0827415,28.5000036 C60.4468211,28.5000036 63.9999285,25.1343958 63.9999285,21.0000215 C63.9999285,16.8656472 60.4468211,13.5000393 56.0827415,13.5000393 C52.9843297,13.5000393 50.5608889,15.4359631 48.9999642,17.1843872 C47.4390396,15.4359631 45.0155987,13.5000393 41.9171869,13.5000393 C37.5531074,13.5000393 34,16.8656472 34,21.0000215 C34,25.1343958 37.5531074,28.5000036 41.9171869,28.5000036 C45.0155987,28.5000036 47.4390396,26.5640798 48.9999642,24.8156557 C50.5608889,26.5640798 52.9843297,28.5000036 56.0827415,28.5000036 Z M41.9171869,24.0000143 C40.0328073,24.0000143 38.4999893,22.6546959 38.4999893,21.0000286 C38.4999893,19.3453471 40.0328073,18.0000286 41.9171869,18.0000286 C43.707771,18.0000286 45.3577763,19.6921938 46.3234264,21.0000286 C45.3671604,22.2937501 43.7031019,24.0000143 41.9171869,24.0000143 Z M56.0827415,24.0000143 C54.2921574,24.0000143 52.6421522,22.3078492 51.676502,21.0000286 C52.6327681,19.7062929 54.2968266,18.0000286 56.0827415,18.0000286 C57.9671212,18.0000286 59.4999392,19.3453471 59.4999392,21.0000286 C59.4999392,22.6546959 57.9671212,24.0000143 56.0827415,24.0000143 Z","id","i",1,"fill-color-primary"],["id","Group-21","transform","translate(0.000000, 36.000000)"],["id","Oval","cx","48.644129","cy","75.1589677","rx","48.644129","ry","6.61766437",1,"fill-color-7"],["id","Oval","opacity","0.1","cx","48.644129","cy","75.1589677","rx","40.8402581","ry","5.55600756",1,"fill-color-27"],["id","Rectangle","x","25.2325161","y","6.09470968","width","54.1068387","height","62.9512258",1,"fill-color-26"],["id","Rectangle","x","20","y","1.24344979e-14","width","65.0322581","height","22.3710968",1,"fill-color-19"],["id","Rectangle","x","20","y","26","width","65.0322581","height","22.3710968",1,"fill-color-19"],["id","Rectangle","x","19.7698065","y","52.9179355","width","65.0322581","height","22.3710968",1,"fill-color-19"],["id","Rectangle","x","67.6335484","y","3.75354839","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","73.6165161","y","3.75354839","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","79.5994839","y","3.75354839","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","67.6335484","y","30.0265806","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","73.6165161","y","30.0265806","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","79.5994839","y","30.0265806","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","67.6335484","y","56.2996129","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","73.6165161","y","56.2996129","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","79.5994839","y","56.2996129","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["fxFlex","20","fxLayoutAlign","center end"],["fxFlex","40"],[1,"font-size-120"],["fxFlex","30","viewBox","0 0 200 120","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["x1","50%","y1","100%","x2","50%","y2","0%","id","linearGradient-1"],["stop-color","#808080","stop-opacity","0.25","offset","0%"],["stop-color","#808080","stop-opacity","0.12","offset","54%"],["stop-color","#808080","stop-opacity","0.1","offset","100%"],["id","LoopIn_Step02","transform","translate(-542.000000, -210.000000)","fill-rule","nonzero"],["id","Loop_Step02","transform","translate(542.000000, 210.000000)"],["id","Group-2"],["id","Rectangle","x","0","y","0","width","81.4032636","height","90.8547569",1,"fill-color-11"],["id","Rectangle","x","1.34483737","y","60.660286","width","78.7116083","height","28.2158368",1,"fill-color-9"],["id","Rectangle","x","7.80560248","y","67.352783","width","46.2328358","height","14.4584872",1,"fill-color-primary-lighter"],["id","Oval","cx","68.9135074","cy","74.4889377","r","7.35996418",1,"fill-color-primary-darker"],["id","Rectangle","x","1.34483737","y","31.345208","width","78.7116083","height","28.2158368",1,"fill-color-9"],["id","Rectangle","x","7.80560248","y","38.0377051","width","46.2328358","height","14.4584872",1,"fill-color-primary-lighter"],["id","Oval","cx","68.9135074","cy","45.1758404","r","7.35996418",1,"fill-color-primary-darker"],["id","Rectangle","x","1.34483737","y","2.03013005","width","78.7116083","height","28.2158368",1,"fill-color-9"],["id","Rectangle","x","7.80560248","y","8.72460769","width","46.2328358","height","14.4584872",1,"fill-color-primary-lighter"],["id","Rectangle","x","7.80560248","y","67.352783","width","23.1164179","height","14.4584872",1,"fill-color-primary"],["id","Rectangle","x","7.80560248","y","38.0377051","width","33.2298507","height","14.4584872",1,"fill-color-primary"],["id","Rectangle","x","7.80560248","y","8.72460769","width","23.1164179","height","14.4584872",1,"fill-color-primary"],["id","Oval","cx","68.9135074","cy","15.8607624","r","7.93434243",1,"fill-color-31"],["id","Oval","fill","url(#linearGradient-1)","cx","68.9135074","cy","45.3719212","r","7.93434243"],["id","Oval","fill","url(#linearGradient-1)","cx","68.9135074","cy","74.6850186","r","7.93434243"],["id","Group-16","transform","translate(55.804478, 34.674627)"],["id","Group-29","transform","translate(0.310627, 0.751284)"],["id","Group"],["d","M132.777455,1.04124409 L82.2582659,1.04124409 L82.2582659,0 L59.3509036,0 L59.3509036,1.04124409 L8.62346042,1.04124409 C7.71715136,1.04124358 6.84796221,1.40127322 6.20710493,2.0421305 C5.56624765,2.68298778 5.20621852,3.55217693 5.20621852,4.45848599 L5.20621852,73.6347918 C5.20621852,74.5411031 5.56624437,75.4102953 6.2071016,76.0511558 C6.84795882,76.6920163 7.71714912,77.0520512 8.62346042,77.0520512 L132.777455,77.0520512 C134.664749,77.0520512 136.194697,75.522091 136.194697,73.6347977 L136.194697,4.45848599 C136.194697,3.55217693 135.834668,2.68298778 135.193811,2.0421305 C134.552953,1.40127322 133.683764,1.04124358 132.777455,1.04124409 Z","id","Path",1,"fill-color-20"],["id","Rectangle","x","9.78769098","y","7.08045867","width","121.825532","height","68.7220946",1,"fill-color-7"],["id","Path","opacity","0.306775484","points","96.7732181 75.8025901 9.78772787 75.8025901 9.78772787 7.08050333",1,"fill-color-27"],["id","Group-24","transform","translate(16.889738, 38.617955)",1,"fill-color-primary-darker"],["d","M14.5668332,29.1332406 C8.67527117,29.1332406 3.36383033,25.5842492 1.10922733,20.1411555 C-1.14537566,14.6980619 0.100864684,8.43279022 4.26682842,4.26682704 C8.43279215,0.100863866 14.698064,-1.14537564 20.1411573,1.10922807 C25.5842507,3.36383179 29.1332406,8.67527311 29.1332406,14.5668351 C29.124133,22.607864 22.6078621,29.1241341 14.5668332,29.1332406 L14.5668332,29.1332406 Z M14.5668332,0.190838576 C6.62718953,0.190838576 0.190836635,6.62719147 0.190836635,14.5668351 C0.190836635,22.5064788 6.62718953,28.9428317 14.5668332,28.9428317 C22.5064768,28.9428317 28.9428297,22.5064788 28.9428297,14.5668351 C28.9338602,6.63090975 22.5027586,0.199808125 14.5668332,0.190838576 L14.5668332,0.190838576 Z","id","Shape"],["id","Rectangle","x","99.0215517","y","44.1428314","width","11.3798353","height","2.37787551",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","25.6293676","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","28.8564861","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","32.0836045","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","35.310721","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","38.5378394","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","119.403347","y","8.47469101","width","4.75575295","height","4.75575295",1,"fill-color-5"],["d","M126.367128,15.4384701 L120.592277,15.4384701 L120.592277,9.66361906 L126.367128,9.66361906 L126.367128,15.4384701 Z M120.843366,15.1873981 L126.116048,15.1873981 L126.116048,9.91470857 L120.843366,9.91470857 L120.843366,15.1873981 Z","id","Shape",1,"fill-color-19"],["d","M139.615294,74.5530572 L127.725913,74.5530572 L127.725913,73.6964356 C127.725915,73.6513884 127.708021,73.6081857 127.676168,73.5763323 C127.644315,73.544479 127.601113,73.5265862 127.556065,73.5265862 L123.479706,73.5265862 C123.434659,73.5265862 123.391457,73.5444797 123.359604,73.5763329 C123.327751,73.6081861 123.309857,73.6513886 123.309859,73.6964356 L123.309859,74.5530572 L120.762134,74.5530572 L120.762134,73.6964356 C120.762135,73.6513886 120.744241,73.6081861 120.712388,73.5763329 C120.680536,73.5444797 120.637333,73.5265862 120.592286,73.5265862 L116.515927,73.5265862 C116.47088,73.5265862 116.427677,73.5444789 116.395824,73.5763322 C116.36397,73.6081855 116.346076,73.6513882 116.346078,73.6964356 L116.346078,74.5530572 L113.798355,74.5530572 L113.798355,73.6964356 C113.798356,73.6513882 113.780462,73.6081855 113.748609,73.5763322 C113.716755,73.5444789 113.673553,73.5265862 113.628505,73.5265862 L109.552146,73.5265862 C109.507099,73.5265862 109.463897,73.5444797 109.432044,73.5763329 C109.400191,73.6081861 109.382297,73.6513886 109.382299,73.6964356 L109.382299,74.5530572 L106.834574,74.5530572 L106.834574,73.6964356 C106.834575,73.6513886 106.816681,73.6081861 106.784828,73.5763329 C106.752975,73.5444797 106.709773,73.5265862 106.664726,73.5265862 L102.588363,73.5265862 C102.543316,73.5265862 102.500113,73.544479 102.46826,73.5763323 C102.436407,73.6081857 102.418513,73.6513884 102.418516,73.6964356 L102.418516,74.5530572 L99.8707946,74.5530572 L99.8707946,73.6964356 C99.8707961,73.6513882 99.8529018,73.6081855 99.8210486,73.5763322 C99.7891953,73.5444789 99.7459925,73.5265862 99.7009452,73.5265862 L95.6245878,73.5265862 C95.5795404,73.5265862 95.5363377,73.5444789 95.5044844,73.5763322 C95.4726311,73.6081855 95.4547369,73.6513882 95.4547384,73.6964356 L95.4547384,74.5530572 L92.9070135,74.5530572 L92.9070135,73.6964356 C92.9070151,73.6513886 92.889121,73.6081861 92.8572682,73.5763329 C92.8254153,73.5444797 92.7822131,73.5265862 92.7371661,73.5265862 L88.6608067,73.5265862 C88.6157597,73.5265862 88.5725575,73.5444797 88.5407046,73.5763329 C88.5088518,73.6081861 88.4909577,73.6513886 88.4909593,73.6964356 L88.4909593,74.5530572 L85.9432383,74.5530572 L85.9432383,73.6964356 C85.9432399,73.6513886 85.9253458,73.6081861 85.893493,73.5763329 C85.8616401,73.5444797 85.8184379,73.5265862 85.7733909,73.5265862 L53.8419073,73.5265862 C53.7968603,73.5265862 53.7536581,73.5444797 53.7218052,73.5763329 C53.6899524,73.6081861 53.6720584,73.6513886 53.6720599,73.6964356 L53.6720599,74.5530572 L51.124335,74.5530572 L51.124335,73.6964356 C51.1243366,73.6513882 51.1064423,73.6081855 51.074589,73.5763322 C51.0427358,73.5444789 50.999533,73.5265862 50.9544857,73.5265862 L46.8781379,73.5265862 C46.8330906,73.5265862 46.7898879,73.5444789 46.7580346,73.5763322 C46.7261813,73.6081855 46.708287,73.6513882 46.7082886,73.6964356 L46.7082886,74.5530572 L44.160554,74.5530572 L44.160554,73.6964356 C44.1605561,73.6513884 44.1426622,73.6081857 44.1108092,73.5763323 C44.0789563,73.544479 44.0357537,73.5265862 43.9907066,73.5265862 L39.9143472,73.5265862 C39.8693002,73.5265862 39.8260979,73.5444797 39.7942451,73.5763329 C39.7623922,73.6081861 39.7444982,73.6513886 39.7444998,73.6964356 L39.7444998,74.5530572 L37.1967749,74.5530572 L37.1967749,73.6964356 C37.1967764,73.6513886 37.1788824,73.6081861 37.1470296,73.5763329 C37.1151767,73.5444797 37.0719745,73.5265862 37.0269275,73.5265862 L32.9505681,73.5265862 C32.9055208,73.5265862 32.862318,73.5444789 32.8304647,73.5763322 C32.7986115,73.6081855 32.7807172,73.6513882 32.7807187,73.6964356 L32.7807187,74.5530572 L30.2329958,74.5530572 L30.2329958,73.6964356 C30.2329973,73.6513882 30.215103,73.6081855 30.1832498,73.5763322 C30.1513965,73.5444789 30.1081938,73.5265862 30.0631464,73.5265862 L25.986787,73.5265862 C25.94174,73.5265862 25.8985378,73.5444797 25.866685,73.5763329 C25.8348321,73.6081861 25.8169381,73.6513886 25.8169396,73.6964356 L25.8169396,74.5530572 L23.2692109,74.5530572 L23.2692109,73.6964356 C23.2692124,73.6513886 23.2513184,73.6081861 23.2194655,73.5763329 C23.1876127,73.5444797 23.1444104,73.5265862 23.0993634,73.5265862 L19.0230079,73.5265862 C18.9779608,73.5265862 18.9347582,73.544479 18.9029053,73.5763323 C18.8710523,73.6081857 18.8531585,73.6513884 18.8531605,73.6964356 L18.8531605,74.5530572 L16.3054357,74.5530572 L16.3054357,73.6964356 C16.3054372,73.6513882 16.2875429,73.6081855 16.2556896,73.5763322 C16.2238364,73.5444789 16.1806336,73.5265862 16.1355863,73.5265862 L12.0592288,73.5265862 C12.0141815,73.5265862 11.9709788,73.5444789 11.9391255,73.5763322 C11.9072722,73.6081855 11.8893779,73.6513882 11.8893795,73.6964356 L11.8893795,74.5530572 L4.07635746,74.5530572 C1.82504753,74.5530594 0,76.3781067 0,78.6294166 L0,80.4726504 C0,82.7239563 1.82505163,84.5489982 4.07635746,84.5489982 L139.615294,84.5489982 C141.8666,84.5489982 143.691654,82.7239566 143.691654,80.4726504 L143.691654,78.6294166 C143.691654,76.3781064 141.866605,74.5530594 139.615294,74.5530572 Z","id","Path",1,"fill-color-20"],["id","Group","transform","translate(14.563343, 25.890388)"],["d","M34.1898756,18.6935074 C34.8335754,18.7760331 35.5015474,18.8284611 36.1180622,18.6284578 C36.2151512,18.5983603 36.321949,18.5313689 36.3122401,18.4342799 C36.3052976,18.3990002 36.2903506,18.3657846 36.2685501,18.337191 C36.0361522,17.9886397 35.8409087,17.6167008 35.6860164,17.2274642 C35.6798777,17.2071636 35.6672606,17.1894314 35.6500935,17.176978 C35.6300188,17.1697099 35.6080312,17.1697099 35.5879565,17.176978 C35.3034859,17.2517365 35.0578508,17.4352346 34.775322,17.5138766 C34.6312683,17.5533966 34.4809179,17.5646069 34.3325963,17.5468869 C34.2044389,17.5323235 34.0296788,17.4264966 33.9131721,17.440089 C33.9791925,17.8643678 34.1403602,18.2604907 34.1898756,18.6935074 Z","id","Path",1,"fill-color-primary-darker"],["d","M46.3638597,17.6187327 C46.7881384,17.3274658 47.2279514,17.0216356 47.4784409,16.5721138 C47.4963243,16.5452282 47.5067138,16.5140596 47.5085385,16.481821 C47.5042662,16.4500929 47.4918946,16.4199997 47.4726155,16.394441 C47.2340087,16.0151166 46.9268212,15.6835648 46.5667756,15.4167552 C46.3789189,15.549458 46.2091963,15.7061249 46.061913,15.8827822 C45.9551152,15.9954054 45.6599648,16.1740491 45.6570521,16.3458965 C45.6570521,16.4429855 45.7696753,16.5556086 45.8221033,16.6371634 C45.8929782,16.7420194 45.9599696,16.8488173 46.0240483,16.9575569 C46.0609421,17.0109558 46.3978408,17.5973731 46.3638597,17.6187327 Z","id","Path",1,"fill-color-primary-darker"],["d","M36.7132175,19.9935285 C36.7207976,20.0935521 36.6933371,20.1930963 36.6355464,20.2750865 C36.5902231,20.3206727 36.5341172,20.3540691 36.4724369,20.3721755 C35.5724223,20.6945108 34.5306578,20.2925625 33.632585,20.6100434 C33.448116,20.675093 33.2733558,20.7692693 33.0879159,20.8314062 C32.8668382,20.8978733 32.6387504,20.9382775 32.4082933,20.9517965 C32.0908124,20.9818941 31.7713897,21.0013119 31.4529379,21.0100499 C31.2109788,21.0271812 30.9678332,21.0058814 30.7325379,20.9469421 C30.494578,20.8860354 30.29373,20.7268395 30.1801017,20.5090709 C30.1312849,20.4125511 30.1215484,20.3009295 30.1529168,20.1974154 C30.1669968,20.1619216 30.1870252,20.1290882 30.2121411,20.1003264 C30.2730042,20.0320475 30.3444715,19.9740213 30.423795,19.9284789 L30.7548683,19.7148832 C30.9101158,19.6051008 31.0788103,19.515696 31.2568182,19.4488595 C31.3878883,19.4061404 31.5267255,19.3876935 31.6597374,19.3517706 C32.1247935,19.215846 32.4801391,18.846908 32.8102415,18.4925333 L33.2607343,18.011943 C33.3028503,17.9590638 33.3562578,17.9162715 33.4170475,17.8866982 C33.4795282,17.8658617 33.5459388,17.8595527 33.6112254,17.8682513 C34.0488232,17.8994947 34.4713668,18.041122 34.8394007,18.2799085 C34.9334629,18.3504651 35.0350556,18.4103788 35.1423182,18.4585522 C35.4064002,18.5614665 35.7452406,18.4837953 35.9889339,18.3536961 C36.1044698,18.2915592 36.0792267,18.2566071 36.1277711,18.1459257 C36.1763156,18.0352443 36.2947641,17.9643694 36.3976784,18.0653419 C36.4287289,18.1002598 36.4507324,18.1422664 36.4617571,18.187674 C36.5588461,18.5080675 36.5219523,18.8527333 36.5219523,19.1886611 C36.519104,19.2411857 36.5256803,19.2937961 36.5413701,19.3440034 C36.566144,19.3946232 36.5957307,19.4427421 36.629721,19.4876951 C36.6366398,19.4995928 36.642801,19.5119152 36.6481679,19.5245889 C36.7075588,19.673314 36.7298837,19.8342531 36.7132175,19.9935285 Z","id","Path",1,"fill-color-primary-darker"],["d","M36.7132175,19.9935285 C36.7207976,20.0935521 36.6933371,20.1930963 36.6355464,20.2750865 C36.5902231,20.3206727 36.5341172,20.3540691 36.4724369,20.3721755 C35.5724223,20.6945108 34.5306578,20.2925625 33.632585,20.6100434 C33.448116,20.675093 33.2733558,20.7692693 33.0879159,20.8314062 C32.8668382,20.8978733 32.6387504,20.9382775 32.4082933,20.9517965 C32.0908124,20.9818941 31.7713897,21.0013119 31.4529379,21.0100499 C31.2109788,21.0271812 30.9678332,21.0058814 30.7325379,20.9469421 C30.494578,20.8860354 30.29373,20.7268395 30.1801017,20.5090709 C30.1312849,20.4125511 30.1215484,20.3009295 30.1529168,20.1974154 C30.1669968,20.1619216 30.1870252,20.1290882 30.2121411,20.1003264 C30.2645691,20.2100369 30.3024338,20.3556704 30.3354441,20.4080984 C30.4256618,20.5652773 30.5791886,20.6760005 30.7568101,20.7119868 C30.8882242,20.7200556 31.0199808,20.7032567 31.1451659,20.6624715 C31.9607132,20.4605264 32.8277175,20.4576138 33.6112254,20.1517835 C33.8801618,20.0459566 34.1364767,19.9051776 34.4190055,19.8410989 C34.7015344,19.7770202 35.0015392,19.7944962 35.2928061,19.770224 C35.7530078,19.7333301 36.1986461,19.5944929 36.6520515,19.5216762 C36.7105975,19.6716231 36.7315958,19.83361 36.7132175,19.9935285 L36.7132175,19.9935285 Z","id","Path",1,"fill-color-primary-darker"],["d","M48.4250582,17.5595084 C48.3823391,17.9012616 48.1658307,18.1954411 47.9279627,18.4449597 C47.6900948,18.6944783 47.4211584,18.9187538 47.2318349,19.2061371 C46.9988214,19.5624536 46.8939654,20.0042083 46.5910478,20.3051841 C46.4747693,20.4146353 46.3441148,20.5077266 46.202692,20.5818876 C46.0442646,20.6753601 45.8767312,20.752458 45.7026839,20.8119884 C45.2502494,20.956651 44.7628628,20.9236407 44.2900396,20.8886887 C44.1365309,20.8872131 43.9845596,20.8579372 43.8414886,20.8022795 C43.7763574,20.7691922 43.7140162,20.7308783 43.6550778,20.6877146 C43.5365551,20.6147292 43.4367964,20.5149704 43.363811,20.3964477 C43.3279723,20.332004 43.3179103,20.2563656 43.3356552,20.1847938 C43.3626747,20.1059564 43.4090817,20.0351774 43.4706088,19.9789652 C43.5770067,19.8683202 43.6912186,19.7654647 43.8123619,19.6711932 C43.9785829,19.5639234 44.1283649,19.4331094 44.2570293,19.2828374 C44.335968,19.1640934 44.3940832,19.0327597 44.4288768,18.8944816 C44.4976483,18.652227 44.5396476,18.4031617 44.5541216,18.1517511 C44.5535898,17.9846963 44.5708393,17.8180593 44.6055787,17.6546556 C44.6774245,17.3983408 44.8677189,17.1692108 44.8463593,16.904158 C44.8377185,16.866204 44.8411119,16.8265011 44.8560682,16.7905639 C44.8786704,16.7624825 44.9101823,16.7429588 44.94539,16.7352232 C45.0937604,16.6760869 45.2502282,16.6397523 45.4094752,16.6274545 C45.571226,16.6162976 45.7294484,16.6783037 45.8405502,16.7963893 C45.9065707,16.8760022 45.9502607,16.9905672 46.0473497,17.0216356 C46.0954598,17.0347655 46.1459295,17.0367577 46.1949249,17.027461 C46.4337637,17.0031887 46.686195,16.9730912 46.8745476,16.8187197 C47.0505482,16.6608586 47.152616,16.4366614 47.1561056,16.2002631 C47.1561056,16.1119121 47.1162991,16.0196776 47.2531945,16.0060852 C47.3561088,15.9924927 47.4376635,16.1031741 47.4900916,16.1711364 C47.679415,16.4245386 47.8735929,16.6895914 47.9444679,16.9983343 C47.9720312,16.9876362 48.0013112,16.9820434 48.030877,16.9818292 C48.1537854,16.9807475 48.2694521,17.0398499 48.3405908,17.1400842 C48.4179108,17.2653269 48.447872,17.4140998 48.4250582,17.5595084 L48.4250582,17.5595084 Z","id","Path",1,"fill-color-primary-darker"],["d","M48.4250582,17.5595084 C48.3823391,17.9012616 48.1658307,18.1954411 47.9279627,18.4449597 C47.6900948,18.6944783 47.4211584,18.9187538 47.2318349,19.2061371 C46.9988214,19.5624536 46.8939654,20.0042083 46.5910478,20.3051841 C46.4747693,20.4146353 46.3441148,20.5077266 46.202692,20.5818876 C46.0442646,20.6753601 45.8767312,20.752458 45.7026839,20.8119884 C45.2502494,20.956651 44.7628628,20.9236407 44.2900396,20.8886887 C44.1365309,20.8872131 43.9845596,20.8579372 43.8414886,20.8022795 C43.7763574,20.7691922 43.7140162,20.7308783 43.6550778,20.6877146 C43.5365551,20.6147292 43.4367964,20.5149704 43.363811,20.3964477 C43.4548211,20.3526902 43.5541213,20.3288581 43.6550778,20.3265437 C43.86479,20.3381943 44.0181905,20.5362558 44.2191647,20.5974219 C44.5055771,20.683831 44.7910186,20.481886 45.0813146,20.4129528 C45.270638,20.3682919 45.4696704,20.3799426 45.6570521,20.3158639 C45.8132081,20.2555144 45.9574928,20.168089 46.0832726,20.0576073 C46.2556706,19.9343474 46.4090818,19.786497 46.5386198,19.6187652 C46.646198,19.4510234 46.735696,19.2723528 46.8056144,19.0857468 C46.9589198,18.7281302 47.1393856,18.3827784 47.345429,18.0527203 C47.375905,18.0004629 47.4127576,17.9521958 47.4551395,17.9090287 C47.5007713,17.8672804 47.5522285,17.8381537 47.6036856,17.8012599 C47.7978635,17.6546556 47.8784474,17.4129041 47.9464096,17.1760071 C47.9648208,17.1040024 47.9905203,17.0340608 48.0231099,16.9672512 C48.1460183,16.9661841 48.2616849,17.0252865 48.3328237,17.1255208 C48.4163608,17.2537243 48.4492363,17.4084124 48.4250582,17.5595084 L48.4250582,17.5595084 Z","id","Path",1,"fill-color-primary-darker"],["d","M54.316416,4.55250111 L54.316416,3.34665629 C54.316416,1.49819202 52.8172532,0 50.9687888,0 L3.34762718,0 C1.49916283,0 0,1.49819202 0,3.34665629 L0,5.56999336 L54.316416,4.55250111 Z","id","Path",1,"fill-color-16"],["d","M55.6018738,5.73601547 L55.6018738,39.231705 C55.6018738,39.9999836 55.2966099,40.7367813 54.7532639,41.2799452 C54.2099179,41.8231092 53.4730179,42.1278687 52.7047393,42.1278687 L2.89810531,42.1278687 C1.29897753,42.1273325 0.00291266866,40.8308329 0.00291266866,39.231705 L0.00291266866,2.35926161 C1.43012031,2.88936731 1.43012031,2.88936731 2.89810531,2.84470639 L52.7047393,2.84470639 C54.3025103,2.84470316 55.5986611,4.13824772 55.6018738,5.73601547 Z","id","Path","opacity","0.1",1,"fill-color-27"],["d","M55.6018738,6.16223599 L55.6018738,39.6579255 C55.6018738,41.2575895 54.3044034,42.5540891 52.7047393,42.5540891 L2.89810531,42.5540891 C1.29897753,42.553553 0.00291266866,41.2570534 0.00291266866,39.6579255 L0.00291266866,2.78451124 C1.43012031,3.31364604 1.43012031,3.31364604 2.89810531,3.26995601 L52.7047393,3.26995601 C54.3028886,3.26995377 55.5991959,4.56408894 55.6018738,6.16223599 Z","id","Path",1,"fill-color-19"],["d","M55.4601239,18.5459322 L55.4601239,29.2577567 L45.0716057,29.2577567 C42.141738,29.2183086 39.7873207,26.8319777 39.7873207,23.9018444 C39.7873207,20.9717112 42.141738,18.5853803 45.0716057,18.5459322 L55.4601239,18.5459322 Z","id","Path","opacity","0.1",1,"fill-color-27"],["d","M55.6018738,18.2604907 L55.6018738,28.9742569 L45.2133556,28.9742569 C42.2834879,28.9348088 39.9290706,26.5484779 39.9290706,23.6183447 C39.9290706,20.6882114 42.2834879,18.3018806 45.2133556,18.2624325 L55.6018738,18.2604907 Z","id","Path",1,"fill-color-17"],["id","Oval","opacity","0.1","cx","45.7114219","cy","23.9023299","r","2.08838343",1,"fill-color-27"],["id","Oval","cx","45.8531718","cy","23.6188301","r","2.08838343",1,"fill-color-28"],["d","M37.114137,56.485738 L37.114137,54.3663604 C37.5324015,54.3762985 37.9407279,54.3762985 38.3291472,54.3762985 L38.3291472,56.485738 L39.8628249,56.485738 L39.8628249,54.3364843 C42.4322258,54.1970423 44.1498818,53.5497076 44.378952,51.1296869 C44.5581774,49.1877136 43.6419275,48.3212469 42.1879398,47.9727034 C43.0643138,47.5245628 43.6220513,46.7278171 43.4925782,45.4032717 C43.3232292,43.5907407 41.8346742,42.9832201 39.8627941,42.8139637 L39.8627941,40.3042841 L38.3291164,40.3042841 L38.3291164,42.7442427 C37.9307281,42.7442427 37.5224017,42.7541808 37.1141061,42.7641498 L37.1141061,40.3042841 L35.5803975,40.3042841 L35.5803975,42.8139637 C35.0165182,42.8310005 34.3597701,42.8226673 32.5030732,42.8139637 L32.5030732,44.4472076 C33.7139786,44.4257882 34.3493073,44.3479809 34.4948913,45.1243875 L34.4948913,51.9961228 C34.4024546,52.6121309 33.9094382,52.5234287 32.8118025,52.5040154 L32.5030732,54.3265154 L33.46474,54.3269705 C35.3673259,54.328922 35.5804284,54.3364843 35.5804284,54.3364843 L35.5804284,56.485738 L37.114137,56.485738 Z M37.144013,47.6141601 L37.144013,44.5567428 C38.0104489,44.5567428 40.7192919,44.2878893 40.7192919,46.0904514 C40.7192919,47.8133542 38.0104798,47.6141601 37.144013,47.6141601 Z M37.144013,52.5139844 L37.144013,49.1478686 C38.1797362,49.1478686 41.3514108,48.8590464 41.3514108,50.8309574 C41.3514108,52.7330856 38.1797362,52.5139844 37.144013,52.5139844 Z","id","b","transform","translate(38.452166, 48.395011) rotate(14.000000) translate(-38.452166, -48.395011) ",1,"fill-color-30"],["fxFlex","30","viewBox","0 0 364 120","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["x1","50%","y1","100%","x2","50%","y2","8.86848147e-15%","id","linearGradient-1"],["id","Loopv0.3","stroke","none","stroke-width","1","fill","none","fill-rule","evenodd"],["id","LoopIn_Step03","transform","translate(-1127.000000, -164.000000)"],["id","LoopIn_Step03","transform","translate(1127.000000, 164.000000)"],["id","Group-21"],["id","Group-35","transform","translate(107.000000, 10.000000)"],["id","Oval","fill-rule","nonzero","cx","214.487742","cy","42.4877419","r","42.4877419",1,"fill-color-2"],["d","M232.082742,28.5000036 C236.446821,28.5000036 239.999928,25.1343958 239.999928,21.0000215 C239.999928,16.8656472 236.446821,13.5000393 232.082742,13.5000393 C228.98433,13.5000393 226.560889,15.4359631 224.999964,17.1843872 C223.43904,15.4359631 221.015599,13.5000393 217.917187,13.5000393 C213.553107,13.5000393 210,16.8656472 210,21.0000215 C210,25.1343958 213.553107,28.5000036 217.917187,28.5000036 C221.015599,28.5000036 223.43904,26.5640798 224.999964,24.8156557 C226.560889,26.5640798 228.98433,28.5000036 232.082742,28.5000036 Z M217.917187,24.0000143 C216.032807,24.0000143 214.499989,22.6546959 214.499989,21.0000286 C214.499989,19.3453471 216.032807,18.0000286 217.917187,18.0000286 C219.707771,18.0000286 221.357776,19.6921938 222.323426,21.0000286 C221.36716,22.2937501 219.703102,24.0000143 217.917187,24.0000143 Z M232.082742,24.0000143 C230.292157,24.0000143 228.642152,22.3078492 227.676502,21.0000286 C228.632768,19.7062929 230.296827,18.0000286 232.082742,18.0000286 C233.967121,18.0000286 235.499939,19.3453471 235.499939,21.0000286 C235.499939,22.6546959 233.967121,24.0000143 232.082742,24.0000143 Z","id","i","fill-rule","nonzero",1,"fill-color-primary"],["id","Group-44","transform","translate(0.000000, 64.000000)","fill-rule","nonzero"],["id","Path","transform","translate(118.400000, 7.089946) scale(-1, 1) translate(-118.400000, -7.089946) ","points","234.731878 6.60770626 8.52651283e-14 6.60770626 8.52651283e-14 7.57218541 236.8 7.57218541",1,"fill-color-20"],["id","Path","transform","translate(118.400000, 8.960000) scale(-1, 1) translate(-118.400000, -8.960000) ","points","113.024 5.376 123.776 5.376 123.776 12.544 113.024 12.544",1,"fill-color-23"],["d","M120.192,8.96 L105.856,8.96 L105.856,1.86517468e-14 L120.192,1.86517468e-14 L120.192,8.96 Z M106.479304,8.57043501 L119.568696,8.57043501 L119.568696,0.389564988 L106.479304,0.389564988 L106.479304,8.57043501 Z","id","Shape","transform","translate(113.024000, 4.480000) scale(-1, 1) translate(-113.024000, -4.480000) ",1,"fill-color-20"],["id","Group-43","transform","translate(152.000000, 35.000000)"],["id","Path","fill-rule","nonzero","points","-9.84073267e-14 7.36243469 92.3919279 7.36243469 92.3919279 70.3073253 -1.13686838e-13 70.3073253",1,"fill-color-23"],["d","M97.5448374,1.70530257e-13 L6.62592538,1.70530257e-13 C6.01615907,0.000922175294 5.52114394,0.495001701 5.52114394,1.104768 L5.52114394,62.57664 C5.52114394,62.8696481 5.63752746,63.150658 5.84471672,63.3578447 C6.05190598,63.5650315 6.3329173,63.681408 6.62592538,63.681408 L97.5448374,63.681408 C97.8378436,63.681408 98.1188523,63.5650282 98.3260389,63.3578415 C98.5332256,63.1506549 98.6496054,62.8696462 98.6496054,62.57664 L98.6496054,1.104768 C98.6496054,0.495005713 98.1545997,0.000926622272 97.5448374,1.70530257e-13 L97.5448374,1.70530257e-13 Z M97.9130952,62.57664 C97.9130952,62.6744022 97.8747043,62.7682496 97.8055756,62.8373783 C97.736447,62.9065069 97.6425996,62.9448978 97.5448374,62.9448978 L6.62592538,62.9448978 C6.52816341,62.9448978 6.4343164,62.906506 6.3651879,62.8373775 C6.29605941,62.768249 6.25766754,62.674402 6.25766754,62.57664 L6.25766754,1.104768 C6.25766754,0.901512883 6.42267026,0.736512 6.62592538,0.736512 L97.5448374,0.736512 C97.7480931,0.736512 97.9130952,0.901512271 97.9130952,1.104768 L97.9130952,62.57664 Z","id","Shape","fill-rule","nonzero",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","10.3066764","y","43.4358624","width","41.5947948","height","4.78524211","rx","0.5376",1,"fill-color-19"],["d","M89.8141359,39.3872559 L76.5649839,39.3872559 C76.2719769,39.3872559 75.9909677,39.5036372 75.7837792,39.7108232 C75.5765907,39.9180091 75.4602025,40.1990169 75.4602025,40.4920239 L75.4602025,50.7978159 C75.4602025,51.090824 75.576586,51.3718339 75.7837753,51.5790207 C75.9909645,51.7862074 76.2719759,51.9025839 76.5649839,51.9025839 L89.8141359,51.9025839 C90.107143,51.9025839 90.3881533,51.7862079 90.5953406,51.5790206 C90.8025279,51.3718333 90.9189039,51.090823 90.9189039,50.7978159 L90.9189039,40.4920239 C90.9189039,40.199018 90.8025232,39.9180097 90.5953367,39.7108232 C90.3881502,39.5036367 90.1071419,39.3872559 89.8141359,39.3872559 Z M90.1823938,50.7978159 C90.182087,51.0010717 90.0173917,51.165767 89.8141359,51.1660719 L76.5649839,51.1660719 C76.3617256,51.165767 76.1970256,51.0010743 76.19671,50.7978159 L76.19671,40.4920239 C76.1964064,40.3942603 76.2351088,40.3004129 76.30424,40.2312847 C76.3733712,40.1621565 76.4672203,40.1234582 76.5649839,40.1237661 L89.8141359,40.1237661 C89.9118981,40.1234582 90.0057456,40.162157 90.0748742,40.2312857 C90.1440029,40.3004143 90.1827017,40.3942617 90.1823938,40.4920239 L90.1823938,50.7978159 Z","id","Shape","fill-rule","nonzero",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","78.6733409","y","41.7652758","width","9.03249715","height","1.86879168","rx","0.5376",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","78.6733409","y","44.7100416","width","9.03249715","height","1.86879168","rx","0.5376",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","78.6733409","y","47.6548047","width","9.03249715","height","1.86879168","rx","0.5376",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","11.4109632","y","4.41773875","width","19.1409684","height","8.09810266","rx","0.5376",1,"fill-color-19"],["id","Oval","fill-rule","nonzero","cx","47.2929593","cy","42.2294561","r","12.9683743",1,"fill-color-4"],["d","M50.1798649,51.9764517 C43.6553251,51.9764517 37.7732336,48.0461636 35.2764005,42.0182748 C32.7795674,35.990386 34.1597014,29.0519859 38.773248,24.4384399 C43.3867946,19.824894 50.3251948,18.4447609 56.3530833,20.9415948 C62.3809718,23.4384287 66.3112582,29.3205207 66.3112582,35.8450605 C66.3011721,44.7500015 59.0848059,51.9663668 50.1798649,51.9764517 L50.1798649,51.9764517 Z M50.1798649,19.9245354 C41.3872016,19.9245354 34.2593397,27.0523972 34.2593397,35.8450605 C34.2593397,44.6377237 41.3872016,51.7655856 50.1798649,51.7655856 C58.9725281,51.7655856 66.10039,44.6377237 66.10039,35.8450605 C66.0904567,27.056515 58.9684103,19.9344686 50.1798649,19.9245354 L50.1798649,19.9245354 Z","id","Shape","fill-rule","nonzero",1,"fill-color-primary"],["id","Group-23","transform","translate(5.000000, 0.001193)"],["id","Group-22"],["id","Group","transform","translate(0.378134, 0.000000)"],["id","Group-24","transform","translate(29.048000, 19.712000)"],["id","LoopIn_Step03","fill-rule","nonzero"],["id","Rectangle","x","0","y","0","width","81.4032636","height","90.8547569",1,"fill-color-10"],["id","Oval","cx","68.9135074","cy","74.4889377","r","7.35996418",1,"fill-color-primary"],["id","Oval","cx","68.9135074","cy","45.1758404","r","7.35996418",1,"fill-color-primary"],["id","Oval","fill","url(#linearGradient-1)","cx","68.9135074","cy","15.8607624","r","7.93434243"],["id","Oval","cx","68.9135074","cy","15.8607624","r","7.35996418",1,"fill-color-31"],["id","Group-24","transform","translate(16.889738, 38.617955)",1,"fill-color-primary"],["id","Rectangle","x","99.0215517","y","44.1428314","width","11.3798353","height","2.37787551",1,"fill-color-20"],["id","Rectangle","x","85.2638409","y","25.6293676","width","38.8952588","height","1.01909033",1,"fill-color-20"],["id","Rectangle","x","85.2638409","y","28.8564861","width","38.8952588","height","1.01909033",1,"fill-color-20"],["id","Rectangle","x","85.2638409","y","32.0836045","width","38.8952588","height","1.01909033",1,"fill-color-20"],["id","Rectangle","x","85.2638409","y","35.310721","width","38.8952588","height","1.01909033",1,"fill-color-20"],["id","Rectangle","x","85.2638409","y","38.5378394","width","38.8952588","height","1.01909033",1,"fill-color-20"],["id","Rectangle","x","119.403347","y","8.47469101","width","4.75575295","height","4.75575295",1,"fill-color-4"],["d","M126.367128,15.4384701 L120.592277,15.4384701 L120.592277,9.66361906 L126.367128,9.66361906 L126.367128,15.4384701 Z M120.843366,15.1873981 L126.116048,15.1873981 L126.116048,9.91470857 L120.843366,9.91470857 L120.843366,15.1873981 Z","id","Shape",1,"fill-color-20"],["d","M34.1898756,18.6935074 C34.8335754,18.7760331 35.5015474,18.8284611 36.1180622,18.6284578 C36.2151512,18.5983603 36.321949,18.5313689 36.3122401,18.4342799 C36.3052976,18.3990002 36.2903506,18.3657846 36.2685501,18.337191 C36.0361522,17.9886397 35.8409087,17.6167008 35.6860164,17.2274642 C35.6798777,17.2071636 35.6672606,17.1894314 35.6500935,17.176978 C35.6300188,17.1697099 35.6080312,17.1697099 35.5879565,17.176978 C35.3034859,17.2517365 35.0578508,17.4352346 34.775322,17.5138766 C34.6312683,17.5533966 34.4809179,17.5646069 34.3325963,17.5468869 C34.2044389,17.5323235 34.0296788,17.4264966 33.9131721,17.440089 C33.9791925,17.8643678 34.1403602,18.2604907 34.1898756,18.6935074 Z","id","Path",1,"fill-color-primary"],["d","M46.3638597,17.6187327 C46.7881384,17.3274658 47.2279514,17.0216356 47.4784409,16.5721138 C47.4963243,16.5452282 47.5067138,16.5140596 47.5085385,16.481821 C47.5042662,16.4500929 47.4918946,16.4199997 47.4726155,16.394441 C47.2340087,16.0151166 46.9268212,15.6835648 46.5667756,15.4167552 C46.3789189,15.549458 46.2091963,15.7061249 46.061913,15.8827822 C45.9551152,15.9954054 45.6599648,16.1740491 45.6570521,16.3458965 C45.6570521,16.4429855 45.7696753,16.5556086 45.8221033,16.6371634 C45.8929782,16.7420194 45.9599696,16.8488173 46.0240483,16.9575569 C46.0609421,17.0109558 46.3978408,17.5973731 46.3638597,17.6187327 Z","id","Path",1,"fill-color-primary"],["d","M36.7132175,19.9935285 C36.7207976,20.0935521 36.6933371,20.1930963 36.6355464,20.2750865 C36.5902231,20.3206727 36.5341172,20.3540691 36.4724369,20.3721755 C35.5724223,20.6945108 34.5306578,20.2925625 33.632585,20.6100434 C33.448116,20.675093 33.2733558,20.7692693 33.0879159,20.8314062 C32.8668382,20.8978733 32.6387504,20.9382775 32.4082933,20.9517965 C32.0908124,20.9818941 31.7713897,21.0013119 31.4529379,21.0100499 C31.2109788,21.0271812 30.9678332,21.0058814 30.7325379,20.9469421 C30.494578,20.8860354 30.29373,20.7268395 30.1801017,20.5090709 C30.1312849,20.4125511 30.1215484,20.3009295 30.1529168,20.1974154 C30.1669968,20.1619216 30.1870252,20.1290882 30.2121411,20.1003264 C30.2730042,20.0320475 30.3444715,19.9740213 30.423795,19.9284789 L30.7548683,19.7148832 C30.9101158,19.6051008 31.0788103,19.515696 31.2568182,19.4488595 C31.3878883,19.4061404 31.5267255,19.3876935 31.6597374,19.3517706 C32.1247935,19.215846 32.4801391,18.846908 32.8102415,18.4925333 L33.2607343,18.011943 C33.3028503,17.9590638 33.3562578,17.9162715 33.4170475,17.8866982 C33.4795282,17.8658617 33.5459388,17.8595527 33.6112254,17.8682513 C34.0488232,17.8994947 34.4713668,18.041122 34.8394007,18.2799085 C34.9334629,18.3504651 35.0350556,18.4103788 35.1423182,18.4585522 C35.4064002,18.5614665 35.7452406,18.4837953 35.9889339,18.3536961 C36.1044698,18.2915592 36.0792267,18.2566071 36.1277711,18.1459257 C36.1763156,18.0352443 36.2947641,17.9643694 36.3976784,18.0653419 C36.4287289,18.1002598 36.4507324,18.1422664 36.4617571,18.187674 C36.5588461,18.5080675 36.5219523,18.8527333 36.5219523,19.1886611 C36.519104,19.2411857 36.5256803,19.2937961 36.5413701,19.3440034 C36.566144,19.3946232 36.5957307,19.4427421 36.629721,19.4876951 C36.6366398,19.4995928 36.642801,19.5119152 36.6481679,19.5245889 C36.7075588,19.673314 36.7298837,19.8342531 36.7132175,19.9935285 Z","id","Path",1,"fill-color-primary"],["d","M36.7132175,19.9935285 C36.7207976,20.0935521 36.6933371,20.1930963 36.6355464,20.2750865 C36.5902231,20.3206727 36.5341172,20.3540691 36.4724369,20.3721755 C35.5724223,20.6945108 34.5306578,20.2925625 33.632585,20.6100434 C33.448116,20.675093 33.2733558,20.7692693 33.0879159,20.8314062 C32.8668382,20.8978733 32.6387504,20.9382775 32.4082933,20.9517965 C32.0908124,20.9818941 31.7713897,21.0013119 31.4529379,21.0100499 C31.2109788,21.0271812 30.9678332,21.0058814 30.7325379,20.9469421 C30.494578,20.8860354 30.29373,20.7268395 30.1801017,20.5090709 C30.1312849,20.4125511 30.1215484,20.3009295 30.1529168,20.1974154 C30.1669968,20.1619216 30.1870252,20.1290882 30.2121411,20.1003264 C30.2645691,20.2100369 30.3024338,20.3556704 30.3354441,20.4080984 C30.4256618,20.5652773 30.5791886,20.6760005 30.7568101,20.7119868 C30.8882242,20.7200556 31.0199808,20.7032567 31.1451659,20.6624715 C31.9607132,20.4605264 32.8277175,20.4576138 33.6112254,20.1517835 C33.8801618,20.0459566 34.1364767,19.9051776 34.4190055,19.8410989 C34.7015344,19.7770202 35.0015392,19.7944962 35.2928061,19.770224 C35.7530078,19.7333301 36.1986461,19.5944929 36.6520515,19.5216762 C36.7105975,19.6716231 36.7315958,19.83361 36.7132175,19.9935285 L36.7132175,19.9935285 Z","id","Path",1,"fill-color-primary"],["d","M48.4250582,17.5595084 C48.3823391,17.9012616 48.1658307,18.1954411 47.9279627,18.4449597 C47.6900948,18.6944783 47.4211584,18.9187538 47.2318349,19.2061371 C46.9988214,19.5624536 46.8939654,20.0042083 46.5910478,20.3051841 C46.4747693,20.4146353 46.3441148,20.5077266 46.202692,20.5818876 C46.0442646,20.6753601 45.8767312,20.752458 45.7026839,20.8119884 C45.2502494,20.956651 44.7628628,20.9236407 44.2900396,20.8886887 C44.1365309,20.8872131 43.9845596,20.8579372 43.8414886,20.8022795 C43.7763574,20.7691922 43.7140162,20.7308783 43.6550778,20.6877146 C43.5365551,20.6147292 43.4367964,20.5149704 43.363811,20.3964477 C43.3279723,20.332004 43.3179103,20.2563656 43.3356552,20.1847938 C43.3626747,20.1059564 43.4090817,20.0351774 43.4706088,19.9789652 C43.5770067,19.8683202 43.6912186,19.7654647 43.8123619,19.6711932 C43.9785829,19.5639234 44.1283649,19.4331094 44.2570293,19.2828374 C44.335968,19.1640934 44.3940832,19.0327597 44.4288768,18.8944816 C44.4976483,18.652227 44.5396476,18.4031617 44.5541216,18.1517511 C44.5535898,17.9846963 44.5708393,17.8180593 44.6055787,17.6546556 C44.6774245,17.3983408 44.8677189,17.1692108 44.8463593,16.904158 C44.8377185,16.866204 44.8411119,16.8265011 44.8560682,16.7905639 C44.8786704,16.7624825 44.9101823,16.7429588 44.94539,16.7352232 C45.0937604,16.6760869 45.2502282,16.6397523 45.4094752,16.6274545 C45.571226,16.6162976 45.7294484,16.6783037 45.8405502,16.7963893 C45.9065707,16.8760022 45.9502607,16.9905672 46.0473497,17.0216356 C46.0954598,17.0347655 46.1459295,17.0367577 46.1949249,17.027461 C46.4337637,17.0031887 46.686195,16.9730912 46.8745476,16.8187197 C47.0505482,16.6608586 47.152616,16.4366614 47.1561056,16.2002631 C47.1561056,16.1119121 47.1162991,16.0196776 47.2531945,16.0060852 C47.3561088,15.9924927 47.4376635,16.1031741 47.4900916,16.1711364 C47.679415,16.4245386 47.8735929,16.6895914 47.9444679,16.9983343 C47.9720312,16.9876362 48.0013112,16.9820434 48.030877,16.9818292 C48.1537854,16.9807475 48.2694521,17.0398499 48.3405908,17.1400842 C48.4179108,17.2653269 48.447872,17.4140998 48.4250582,17.5595084 L48.4250582,17.5595084 Z","id","Path",1,"fill-color-primary"],["d","M48.4250582,17.5595084 C48.3823391,17.9012616 48.1658307,18.1954411 47.9279627,18.4449597 C47.6900948,18.6944783 47.4211584,18.9187538 47.2318349,19.2061371 C46.9988214,19.5624536 46.8939654,20.0042083 46.5910478,20.3051841 C46.4747693,20.4146353 46.3441148,20.5077266 46.202692,20.5818876 C46.0442646,20.6753601 45.8767312,20.752458 45.7026839,20.8119884 C45.2502494,20.956651 44.7628628,20.9236407 44.2900396,20.8886887 C44.1365309,20.8872131 43.9845596,20.8579372 43.8414886,20.8022795 C43.7763574,20.7691922 43.7140162,20.7308783 43.6550778,20.6877146 C43.5365551,20.6147292 43.4367964,20.5149704 43.363811,20.3964477 C43.4548211,20.3526902 43.5541213,20.3288581 43.6550778,20.3265437 C43.86479,20.3381943 44.0181905,20.5362558 44.2191647,20.5974219 C44.5055771,20.683831 44.7910186,20.481886 45.0813146,20.4129528 C45.270638,20.3682919 45.4696704,20.3799426 45.6570521,20.3158639 C45.8132081,20.2555144 45.9574928,20.168089 46.0832726,20.0576073 C46.2556706,19.9343474 46.4090818,19.786497 46.5386198,19.6187652 C46.646198,19.4510234 46.735696,19.2723528 46.8056144,19.0857468 C46.9589198,18.7281302 47.1393856,18.3827784 47.345429,18.0527203 C47.375905,18.0004629 47.4127576,17.9521958 47.4551395,17.9090287 C47.5007713,17.8672804 47.5522285,17.8381537 47.6036856,17.8012599 C47.7978635,17.6546556 47.8784474,17.4129041 47.9464096,17.1760071 C47.9648208,17.1040024 47.9905203,17.0340608 48.0231099,16.9672512 C48.1460183,16.9661841 48.2616849,17.0252865 48.3328237,17.1255208 C48.4163608,17.2537243 48.4492363,17.4084124 48.4250582,17.5595084 L48.4250582,17.5595084 Z","id","Path",1,"fill-color-primary"],["d","M55.6018738,6.16223599 L55.6018738,39.6579255 C55.6018738,41.2575895 54.3044034,42.5540891 52.7047393,42.5540891 L2.89810531,42.5540891 C1.29897753,42.553553 0.00291266866,41.2570534 0.00291266866,39.6579255 L0.00291266866,2.78451124 C1.43012031,3.31364604 1.43012031,3.31364604 2.89810531,3.26995601 L52.7047393,3.26995601 C54.3028886,3.26995377 55.5991959,4.56408894 55.6018738,6.16223599 Z","id","Path",1,"fill-color-20"],["d","M55.6018738,18.2604907 L55.6018738,28.9742569 L45.2133556,28.9742569 C42.2834879,28.9348088 39.9290706,26.5484779 39.9290706,23.6183447 C39.9290706,20.6882114 42.2834879,18.3018806 45.2133556,18.2624325 L55.6018738,18.2604907 Z","id","Path",1,"fill-color-16"],["d","M37.114137,56.485738 L37.114137,54.3663604 C37.5324015,54.3762985 37.9407279,54.3762985 38.3291472,54.3762985 L38.3291472,56.485738 L39.8628249,56.485738 L39.8628249,54.3364843 C42.4322258,54.1970423 44.1498818,53.5497076 44.378952,51.1296869 C44.5581774,49.1877136 43.6419275,48.3212469 42.1879398,47.9727034 C43.0643138,47.5245628 43.6220513,46.7278171 43.4925782,45.4032717 C43.3232292,43.5907407 41.8346742,42.9832201 39.8627941,42.8139637 L39.8627941,40.3042841 L38.3291164,40.3042841 L38.3291164,42.7442427 C37.9307281,42.7442427 37.5224017,42.7541808 37.1141061,42.7641498 L37.1141061,40.3042841 L35.5803975,40.3042841 L35.5803975,42.8139637 C35.0165182,42.8310005 34.3597701,42.8226673 32.5030732,42.8139637 L32.5030732,44.4472076 C33.7139786,44.4257882 34.3493073,44.3479809 34.4948913,45.1243875 L34.4948913,51.9961228 C34.4024546,52.6121309 33.9094382,52.5234287 32.8118025,52.5040154 L32.5030732,54.3265154 L33.46474,54.3269705 C35.3673259,54.328922 35.5804284,54.3364843 35.5804284,54.3364843 L35.5804284,56.485738 L37.114137,56.485738 Z M37.144013,47.6141601 L37.144013,44.5567428 C38.0104489,44.5567428 40.7192919,44.2878893 40.7192919,46.0904514 C40.7192919,47.8133542 38.0104798,47.6141601 37.144013,47.6141601 Z M37.144013,52.5139844 L37.144013,49.1478686 C38.1797362,49.1478686 41.3514108,48.8590464 41.3514108,50.8309574 C41.3514108,52.7330856 38.1797362,52.5139844 37.144013,52.5139844 Z","id","b","transform","translate(38.452166, 48.395011) rotate(14.000000) translate(-38.452166, -48.395011) ",1,"fill-color-9"],["d","M93.2292414,91.9116485 L93.2292414,89.7922708 C93.647506,89.8022089 94.0558324,89.8022089 94.4442517,89.8022089 L94.4442517,91.9116485 L95.9779294,91.9116485 L95.9779294,89.7623948 C98.5473303,89.6229527 100.264986,88.975618 100.494057,86.5555973 C100.673282,84.6136241 99.757032,83.7471573 98.3030443,83.3986138 C99.1794183,82.9504733 99.7371558,82.1537275 99.6076827,80.8291821 C99.4383337,79.0166511 97.9497787,78.4091306 95.9778985,78.2398742 L95.9778985,75.7301945 L94.4442208,75.7301945 L94.4442208,78.1701531 C94.0458325,78.1701531 93.6375061,78.1800912 93.2292106,78.1900602 L93.2292106,75.7301945 L91.695502,75.7301945 L91.695502,78.2398742 C91.1316227,78.2569109 90.4748746,78.2485777 88.6181777,78.2398742 L88.6181777,79.8731181 C89.8290831,79.8516987 90.4644118,79.7738914 90.6099957,80.5502979 L90.6099957,87.4220333 C90.517559,88.0380413 90.0245427,87.9493391 88.926907,87.9299259 L88.6181777,89.7524258 L89.5798445,89.7528809 C91.4824304,89.7548325 91.6955329,89.7623948 91.6955329,89.7623948 L91.6955329,91.9116485 L93.2292414,91.9116485 Z M93.2591175,83.0400705 L93.2591175,79.9826533 C94.1255534,79.9826533 96.8343964,79.7137998 96.8343964,81.5163618 C96.8343964,83.2392647 94.1255843,83.0400705 93.2591175,83.0400705 Z M93.2591175,87.9398948 L93.2591175,84.5737791 C94.2948407,84.5737791 97.4665153,84.2849568 97.4665153,86.2568678 C97.4665153,88.1589961 94.2948407,87.9398948 93.2591175,87.9398948 Z","id","b","fill-rule","nonzero","transform","translate(94.567271, 83.820921) rotate(14.000000) translate(-94.567271, -83.820921) ",1,"fill-color-9"],["d","M305.611064,96.181454 L305.611064,94.0620763 C306.029328,94.0720144 306.437655,94.0720144 306.826074,94.0720144 L306.826074,96.181454 L308.359752,96.181454 L308.359752,94.0322003 C310.929153,93.8927582 312.646809,93.2454235 312.875879,90.8254028 C313.055104,88.8834296 312.138854,88.0169628 310.684867,87.6684193 C311.561241,87.2202788 312.118978,86.423533 311.989505,85.0989876 C311.820156,83.2864566 310.331601,82.678936 308.359721,82.5096797 L308.359721,80 L306.826043,80 L306.826043,82.4399586 C306.427655,82.4399586 306.019328,82.4498967 305.611033,82.4598657 L305.611033,80 L304.077324,80 L304.077324,82.5096797 C303.513445,82.5267164 302.856697,82.5183832 301,82.5096797 L301,84.1429236 C302.210905,84.1215042 302.846234,84.0436969 302.991818,84.8201034 L302.991818,91.6918387 C302.899381,92.3078468 302.406365,92.2191446 301.308729,92.1997314 L301,94.0222313 L301.961667,94.0226864 C303.864253,94.024638 304.077355,94.0322003 304.077355,94.0322003 L304.077355,96.181454 L305.611064,96.181454 Z M305.64094,87.309876 L305.64094,84.2524587 C306.507376,84.2524587 309.216219,83.9836053 309.216219,85.7861673 C309.216219,87.5090702 306.507407,87.309876 305.64094,87.309876 Z M305.64094,92.2097003 L305.64094,88.8435846 C306.676663,88.8435846 309.848338,88.5547623 309.848338,90.5266733 C309.848338,92.4288016 306.676663,92.2097003 305.64094,92.2097003 Z","id","b","fill-rule","nonzero","transform","translate(306.949093, 88.090727) rotate(14.000000) translate(-306.949093, -88.090727) ",1,"fill-color-26"],["fxFlex","30","viewBox","0 0 278 118","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["id","LoopIn_Step04","transform","translate(-1799.000000, -756.000000)"],["id","LoopIn_Step04","transform","translate(1799.000000, 756.000000)"],["id","Loop","fill-rule","nonzero"],["id","Group-16","transform","translate(24.000000, 0.000000)"],["d","M55.0827415,28.5000036 C59.4468211,28.5000036 62.9999285,25.1343958 62.9999285,21.0000215 C62.9999285,16.8656472 59.4468211,13.5000393 55.0827415,13.5000393 C51.9843297,13.5000393 49.5608889,15.4359631 47.9999642,17.1843872 C46.4390396,15.4359631 44.0155987,13.5000393 40.9171869,13.5000393 C36.5531074,13.5000393 33,16.8656472 33,21.0000215 C33,25.1343958 36.5531074,28.5000036 40.9171869,28.5000036 C44.0155987,28.5000036 46.4390396,26.5640798 47.9999642,24.8156557 C49.5608889,26.5640798 51.9843297,28.5000036 55.0827415,28.5000036 Z M40.9171869,24.0000143 C39.0328073,24.0000143 37.4999893,22.6546959 37.4999893,21.0000286 C37.4999893,19.3453471 39.0328073,18.0000286 40.9171869,18.0000286 C42.707771,18.0000286 44.3577763,19.6921938 45.3234264,21.0000286 C44.3671604,22.2937501 42.7031019,24.0000143 40.9171869,24.0000143 Z M55.0827415,24.0000143 C53.2921574,24.0000143 51.6421522,22.3078492 50.676502,21.0000286 C51.6327681,19.7062929 53.2968266,18.0000286 55.0827415,18.0000286 C56.9671212,18.0000286 58.4999392,19.3453471 58.4999392,21.0000286 C58.4999392,22.6546959 56.9671212,24.0000143 55.0827415,24.0000143 Z","id","i",1,"fill-color-primary"],["id","Oval","cx","48.644129","cy","75.1589677","rx","48.644129","ry","6.61766437",1,"fill-color-2"],["id","Group-44","transform","translate(27.000000, 69.000000)","fill-rule","nonzero"],["id","Path","transform","translate(118.400000, 7.089946) scale(-1, 1) translate(-118.400000, -7.089946) ","points","234.731878 6.60770626 8.52651283e-14 6.60770626 8.52651283e-14 7.57218541 236.8 7.57218541",1,"fill-color-19"],["d","M120.192,8.96 L105.856,8.96 L105.856,1.86517468e-14 L120.192,1.86517468e-14 L120.192,8.96 Z M106.479304,8.57043501 L119.568696,8.57043501 L119.568696,0.389564988 L106.479304,0.389564988 L106.479304,8.57043501 Z","id","Shape","transform","translate(113.024000, 4.480000) scale(-1, 1) translate(-113.024000, -4.480000) ",1,"fill-color-19"],["id","Group-43","transform","translate(179.000000, 40.000000)"],["d","M225.805162,92.2474279 C226.071703,92.2474279 226.325569,92.1077892 226.465207,91.8666288 L232.050261,82.2197185 C232.345374,81.7151473 231.980441,81.0773212 231.393376,81.0773212 L227.731346,81.0773212 L229.083201,76.9583506 C229.210134,76.4759989 228.845202,76 228.346983,76 L223.777394,76 C223.396595,76 223.07291,76.2824384 223.022149,76.6600456 L222.006685,84.2760274 C221.946379,84.7329987 222.301798,85.1391782 222.76193,85.1391782 L226.528674,85.1391782 L225.065752,91.3112968 C224.951525,91.7936485 225.319618,92.2474279 225.805162,92.2474279 Z","id","b","fill-rule","nonzero","transform","translate(227.077378, 84.123714) rotate(14.000000) translate(-227.077378, -84.123714) ",1,"fill-color-12"],["fxFlex","30","viewBox","0 0 205 121","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["id","LoopIn_Step05","transform","translate(-2386.000000, -764.000000)","fill-rule","nonzero"],["id","LoopIn_Step05","transform","translate(2386.000000, 764.000000)"],["id","Illustration_Step02"],["id","Group-31"],["id","Rectangle","x","0","y","0","width","90.1490688","height","100.616012",1,"fill-color-10"],["id","Rectangle","x","1.48932403","y","67.1775068","width","87.1682273","height","31.2472904",1,"fill-color-1"],["id","Rectangle","x","8.64422093","y","74.5890324","width","51.2","height","16.0118784",1,"fill-color-primary-lighter"],["id","Oval","cx","76.317438","cy","82.4918815","r","8.15070413",1,"fill-color-primary-darker"],["id","Rectangle","x","1.48932403","y","34.712875","width","87.1682273","height","31.2472904",1,"fill-color-1"],["id","Rectangle","x","8.64422093","y","42.1244006","width","51.2","height","16.0118784",1,"fill-color-primary-lighter"],["id","Oval","cx","76.317438","cy","50.0294431","r","8.15070413",1,"fill-color-primary-darker"],["id","Rectangle","x","1.48932403","y","2.2482432","width","87.1682273","height","31.2472904",1,"fill-color-1"],["id","Rectangle","x","8.64422093","y","74.5890324","width","24","height","16.0118784",1,"fill-color-primary"],["id","Rectangle","x","8.64422093","y","42.1244006","width","36.8","height","16.0118784",1,"fill-color-primary"],["id","Rectangle","x","8.64422093","y","9.66196224","width","51.2","height","16.0118784",1,"fill-color-primary"],["id","Oval","fill","url(#linearGradient-1)","cx","76.317438","cy","50.2465905","r","8.78679245"],["id","Oval","fill","url(#linearGradient-1)","cx","76.317438","cy","82.7090289","r","8.78679245"],["id","Group","transform","translate(60.115627, 35.744427)"],["d","M133.318807,1.04548939 L82.5936439,1.04548939 L82.5936439,0 L59.5928852,0 L59.5928852,1.04548939 L8.65861943,1.04548939 C7.74861523,1.04548887 6.87588228,1.4069864 6.23241214,2.05045654 C5.58894199,2.69392669 5.22744498,3.56665964 5.22744498,4.47666384 L5.22744498,73.9350108 C5.22744498,74.8450173 5.5889387,75.7177532 6.23240879,76.3612266 C6.87587888,77.0047 7.74861298,77.3662028 8.65861943,77.3662028 L133.318807,77.3662028 C135.213795,77.3662028 136.749981,75.8300048 136.749981,73.9350167 L136.749981,4.47666384 C136.749981,3.56665964 136.388484,2.69392669 135.745014,2.05045654 C135.101544,1.4069864 134.228811,1.04548887 133.318807,1.04548939 Z","id","Path",1,"fill-color-20"],["id","Rectangle","x","9.82759671","y","7.10932665","width","122.322231","height","69.0022838",1,"fill-color-25"],["id","Path","opacity","0.257273065","points","97.1677755 76.1116475 9.82763376 76.1116475 9.82763376 7.10937149",1,"fill-color-24"],["id","Oval","cx","28.9673627","cy","59.1901502","r","11.7579927",1,"fill-color-25"],["d","M31.5848237,68.0274261 C25.669241,68.0274261 20.3361447,64.4639649 18.0723494,58.9986791 C15.808554,53.5333932 17.0598755,47.2425772 21.2428244,43.0596288 C25.4257733,38.8766804 31.7165895,37.6253598 37.1818751,39.8891559 C42.6471607,42.1529519 46.2106203,47.4860487 46.2106203,53.4016314 C46.2014756,61.4754447 39.6586369,68.0182825 31.5848237,68.0274261 L31.5848237,68.0274261 Z M31.5848237,38.967022 C23.612809,38.967022 17.1502143,45.4296168 17.1502143,53.4016314 C17.1502143,61.3736461 23.612809,67.8362409 31.5848237,67.8362409 C39.5568383,67.8362409 46.0194331,61.3736461 46.0194331,53.4016314 C46.010427,45.4333502 39.5531049,38.9760281 31.5848237,38.967022 L31.5848237,38.967022 Z","id","Shape",1,"fill-color-primary"],["id","Rectangle","x","99.4252759","y","44.3228077","width","11.4262324","height","2.38757043",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","25.733862","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","28.9741379","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","32.2144137","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","35.4546875","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","38.6949634","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","119.89017","y","8.50924347","width","4.7751428","height","4.7751428",1,"fill-color-6"],["d","M126.882344,15.5014148 L121.083948,15.5014148 L121.083948,9.70301894 L126.882344,9.70301894 L126.882344,15.5014148 Z M121.336061,15.2493191 L126.63024,15.2493191 L126.63024,9.95513218 L121.336061,9.95513218 L121.336061,15.2493191 Z","id","Shape",1,"fill-color-19"],["d","M140.184525,74.8570201 L128.246669,74.8570201 L128.246669,73.9969059 C128.246671,73.9516751 128.228704,73.9082962 128.196721,73.876313 C128.164738,73.8443298 128.12136,73.826364 128.076129,73.826364 L123.98315,73.826364 C123.937919,73.826364 123.89454,73.8443305 123.862558,73.8763135 C123.830575,73.9082966 123.812608,73.9516752 123.81261,73.9969059 L123.81261,74.8570201 L121.254497,74.8570201 L121.254497,73.9969059 C121.254499,73.9516752 121.236532,73.9082966 121.204549,73.8763135 C121.172566,73.8443305 121.129188,73.826364 121.083957,73.826364 L116.990978,73.826364 C116.945747,73.826364 116.902368,73.8443297 116.870385,73.8763129 C116.838402,73.908296 116.820435,73.9516749 116.820436,73.9969059 L116.820436,74.8570201 L114.262326,74.8570201 L114.262326,73.9969059 C114.262328,73.9516749 114.24436,73.908296 114.212377,73.8763129 C114.180394,73.8443297 114.137015,73.826364 114.091784,73.826364 L109.998805,73.826364 C109.953574,73.826364 109.910196,73.8443305 109.878213,73.8763135 C109.84623,73.9082966 109.828263,73.9516752 109.828265,73.9969059 L109.828265,74.8570201 L107.270153,74.8570201 L107.270153,73.9969059 C107.270154,73.9516752 107.252187,73.9082966 107.220204,73.8763135 C107.188222,73.8443305 107.144843,73.826364 107.099613,73.826364 L103.00663,73.826364 C102.961399,73.826364 102.91802,73.8443298 102.886037,73.876313 C102.854054,73.9082962 102.836088,73.9516751 102.83609,73.9969059 L102.83609,74.8570201 L100.277981,74.8570201 L100.277981,73.9969059 C100.277983,73.9516749 100.260016,73.908296 100.228032,73.8763129 C100.196049,73.8443297 100.15267,73.826364 100.107439,73.826364 L96.0144621,73.826364 C95.9692311,73.826364 95.9258522,73.8443297 95.8938691,73.8763129 C95.861886,73.908296 95.8439187,73.9516749 95.8439202,73.9969059 L95.8439202,74.8570201 L93.285808,74.8570201 L93.285808,73.9969059 C93.2858095,73.9516752 93.2678425,73.9082966 93.2358598,73.8763135 C93.2038771,73.8443305 93.1604987,73.826364 93.1152681,73.826364 L89.0222888,73.826364 C88.9770581,73.826364 88.9336797,73.8443305 88.901697,73.8763135 C88.8697143,73.9082966 88.8517473,73.9516752 88.8517489,73.9969059 L88.8517489,74.8570201 L86.2936405,74.8570201 L86.2936405,73.9969059 C86.293642,73.9516752 86.2756751,73.9082966 86.2436923,73.8763135 C86.2117096,73.8443305 86.1683312,73.826364 86.1231006,73.826364 L54.061428,73.826364 C54.0161974,73.826364 53.972819,73.8443305 53.9408363,73.8763135 C53.9088536,73.9082966 53.8908866,73.9516752 53.8908881,73.9969059 L53.8908881,74.8570201 L51.3327759,74.8570201 L51.3327759,73.9969059 C51.3327774,73.9516749 51.3148102,73.908296 51.282827,73.8763129 C51.2508439,73.8443297 51.207465,73.826364 51.162234,73.826364 L47.0692664,73.826364 C47.0240354,73.826364 46.9806565,73.8443297 46.9486734,73.8763129 C46.9166903,73.908296 46.898723,73.9516749 46.8987246,73.9969059 L46.8987246,74.8570201 L44.3406025,74.8570201 L44.3406025,73.9969059 C44.3406046,73.9516751 44.3226378,73.9082962 44.290655,73.876313 C44.2586721,73.8443298 44.2152934,73.826364 44.1700626,73.826364 L40.0770834,73.826364 C40.0318527,73.826364 39.9884743,73.8443305 39.9564916,73.8763135 C39.9245089,73.9082966 39.9065419,73.9516752 39.9065435,73.9969059 L39.9065435,74.8570201 L37.3484312,74.8570201 L37.3484312,73.9969059 C37.3484327,73.9516752 37.3304657,73.9082966 37.298483,73.8763135 C37.2665003,73.8443305 37.2231219,73.826364 37.1778913,73.826364 L33.084912,73.826364 C33.039681,73.826364 32.9963021,73.8443297 32.964319,73.8763129 C32.9323358,73.908296 32.9143686,73.9516749 32.9143701,73.9969059 L32.9143701,74.8570201 L30.3562598,74.8570201 L30.3562598,73.9969059 C30.3562614,73.9516749 30.3382941,73.908296 30.306311,73.8763129 C30.2743278,73.8443297 30.2309489,73.826364 30.1857179,73.826364 L26.0927387,73.826364 C26.047508,73.826364 26.0041296,73.8443305 25.9721469,73.8763135 C25.9401642,73.9082966 25.9221972,73.9516752 25.9221988,73.9969059 L25.9221988,74.8570201 L23.3640826,74.8570201 L23.3640826,73.9969059 C23.3640841,73.9516752 23.3461171,73.9082966 23.3141344,73.8763135 C23.2821517,73.8443305 23.2387733,73.826364 23.1935427,73.826364 L19.1005673,73.826364 C19.0553365,73.826364 19.0119578,73.8443298 18.979975,73.876313 C18.9479921,73.9082962 18.9300253,73.9516751 18.9300274,73.9969059 L18.9300274,74.8570201 L16.3719151,74.8570201 L16.3719151,73.9969059 C16.3719167,73.9516749 16.3539494,73.908296 16.3219663,73.8763129 C16.2899831,73.8443297 16.2466042,73.826364 16.2013733,73.826364 L12.1083959,73.826364 C12.0631649,73.826364 12.0197861,73.8443297 11.9878029,73.8763129 C11.9558198,73.908296 11.9378525,73.9516749 11.9378541,73.9969059 L11.9378541,74.8570201 L4.09297732,74.8570201 C1.83248849,74.8570223 0,76.6895106 0,78.9499994 L0,80.8007483 C0,83.061233 1.83249262,84.8937159 4.09297732,84.8937159 L140.184525,84.8937159 C142.44501,84.8937159 144.277504,83.0612333 144.277504,80.8007483 L144.277504,78.9499994 C144.277504,76.6895102 142.445014,74.8570223 140.184525,74.8570201 Z","id","Path",1,"fill-color-20"],["d","M88.0406297,103.870828 C88.3071704,103.870828 88.5610365,103.731189 88.7006752,103.490029 L94.2857286,93.8431185 C94.5808417,93.3385473 94.2159092,92.7007212 93.6288439,92.7007212 L89.9668136,92.7007212 L91.318669,88.5817505 C91.445602,88.0993988 91.0806695,87.6234 90.5824512,87.6234 L86.0128621,87.6234 C85.632063,87.6234 85.3083776,87.9058383 85.2576168,88.2834455 L84.2421525,95.8994274 C84.1818469,96.3563987 84.5372656,96.7625782 84.9973979,96.7625782 L88.7641417,96.7625782 L87.30122,102.934697 C87.1869926,103.417048 87.555086,103.870828 88.0406297,103.870828 Z","id","b","transform","translate(89.312846, 95.747114) rotate(14.000000) translate(-89.312846, -95.747114) ",1,"fill-color-21"],["id","Oval","cx","74.1507041","cy","17.5648113","r","8.15070413",1,"fill-color-primary"]],template:function(ve,qe){if(1&ve&&(s.YNc(0,Ne,1,0,"ng-container",0),s.YNc(1,Le,32,5,"ng-template",null,1,s.W1O),s.YNc(3,ke,66,5,"ng-template",null,2,s.W1O),s.YNc(5,q,93,5,"ng-template",null,3,s.W1O),s.YNc(7,$,54,5,"ng-template",null,4,s.W1O),s.YNc(9,le,51,5,"ng-template",null,5,s.W1O)),2&ve){const yt=s.MAs(2),fe=s.MAs(4),Je=s.MAs(6),St=s.MAs(8),Pt=s.MAs(10);s.Q6J("ngTemplateOutlet",1===qe.stepNumber?yt:2===qe.stepNumber?fe:3===qe.stepNumber?Je:4===qe.stepNumber?St:Pt)}},directives:[O.tP,Z.xw,Z.yH,Z.Wh,O.mk,_e.oO,j.n5,j.$j],styles:["svg.small-svg[_ngcontent-%COMP%]{height:50%;min-height:50%;max-width:100%}svg.large-svg[_ngcontent-%COMP%]{height:60%;min-height:60%;max-width:100%}"],data:{animation:[ze.l]}}),Ke})();const Ue=["stepper"];function lt(Ke,_t){if(1&Ke&&(s.TgZ(0,"div",48),s.TgZ(1,"p",49),s.TgZ(2,"strong"),s._uU(3,"Channel Peer:\xa0"),s.qZA(),s._uU(4),s.ALo(5,"titlecase"),s.qZA(),s.TgZ(6,"p",50),s.TgZ(7,"strong"),s._uU(8,"Channel ID:\xa0"),s.qZA(),s._uU(9),s.qZA(),s._UZ(10,"p",50),s.qZA()),2&Ke){const ve=s.oxw(2);s.xp6(4),s.Oqu(s.lcZ(5,2,ve.channel.remote_alias)),s.xp6(5),s.Oqu(ve.channel.chan_id)}}function nt(Ke,_t){if(1&Ke&&s._uU(0),2&Ke){const ve=s.oxw(2);s.Oqu(ve.inputFormLabel)}}function ft(Ke,_t){1&Ke&&(s.TgZ(0,"mat-error"),s._uU(1,"Amount is required."),s.qZA())}function it(Ke,_t){if(1&Ke&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"number"),s.qZA()),2&Ke){const ve=s.oxw(2);s.xp6(1),s.hij("Amount must be greater than or equal to ",s.lcZ(2,1,ve.minQuote.amount),".")}}function rt(Ke,_t){if(1&Ke&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"number"),s.qZA()),2&Ke){const ve=s.oxw(2);s.xp6(1),s.hij("Amount must be less than or equal to ",s.lcZ(2,1,ve.maxQuote.amount),".")}}function Mt(Ke,_t){1&Ke&&(s.TgZ(0,"mat-error"),s._uU(1,"Confirmation target is required."),s.qZA())}function Zt(Ke,_t){1&Ke&&(s.TgZ(0,"mat-error"),s._uU(1,"Confirmation target must be a positive number."),s.qZA())}function Ft(Ke,_t){1&Ke&&(s.TgZ(0,"mat-error"),s._uU(1,"Percentage is required."),s.qZA())}function Vt(Ke,_t){1&Ke&&(s.TgZ(0,"mat-error"),s._uU(1,"Percentage must be a positive number."),s.qZA())}function Ii(Ke,_t){if(1&Ke&&(s.TgZ(0,"mat-form-field",50),s._UZ(1,"input",51),s.YNc(2,Ft,2,0,"mat-error",25),s.YNc(3,Vt,2,0,"mat-error",25),s.qZA()),2&Ke){const ve=s.oxw(2);s.xp6(1),s.Q6J("step",1),s.xp6(1),s.Q6J("ngIf",null==ve.inputFormGroup.controls.routingFeePercent.errors?null:ve.inputFormGroup.controls.routingFeePercent.errors.required),s.xp6(1),s.Q6J("ngIf",null==ve.inputFormGroup.controls.routingFeePercent.errors?null:ve.inputFormGroup.controls.routingFeePercent.errors.min)}}function jt(Ke,_t){1&Ke&&(s.TgZ(0,"div",52),s.TgZ(1,"mat-slide-toggle",53),s._uU(2,"Fast"),s.qZA(),s.TgZ(3,"mat-icon",54),s._uU(4,"info_outline"),s.qZA(),s.qZA())}function ei(Ke,_t){if(1&Ke&&s._uU(0),2&Ke){const ve=s.oxw(2);s.Oqu(ve.quoteFormLabel)}}function Pi(Ke,_t){1&Ke&&(s.TgZ(0,"p",55),s.TgZ(1,"mat-icon",56),s._uU(2,"close"),s.qZA(),s._uU(3,"Local balance amount is insufficient for swap."),s.qZA())}function ai(Ke,_t){if(1&Ke){const ve=s.EpF();s.TgZ(0,"button",57),s.NdJ("click",function(){return s.CHM(ve),s.oxw(2).onValidateAmount()}),s._uU(1,"Next"),s.qZA()}}function hi(Ke,_t){if(1&Ke){const ve=s.EpF();s.TgZ(0,"button",58),s.NdJ("click",function(){return s.CHM(ve),s.oxw(2).onLoop()}),s._uU(1),s.qZA()}if(2&Ke){const ve=s.oxw(2);s.xp6(1),s.hij("Initiate ",ve.loopDirectionCaption,"")}}function Ze(Ke,_t){if(1&Ke&&s._uU(0),2&Ke){const ve=s.oxw(3);s.Oqu(ve.addressFormLabel)}}function Ee(Ke,_t){1&Ke&&(s.TgZ(0,"mat-error"),s._uU(1,"Address is required."),s.qZA())}function Y(Ke,_t){if(1&Ke){const ve=s.EpF();s.TgZ(0,"mat-step",16),s.TgZ(1,"form",17),s.YNc(2,Ze,1,1,"ng-template",18),s.TgZ(3,"div",59),s.TgZ(4,"mat-radio-group",60),s.NdJ("change",function(yt){return s.CHM(ve),s.oxw(2).onAddressTypeChange(yt)}),s.TgZ(5,"mat-radio-button",61),s._uU(6,"Node Local Address"),s.qZA(),s.TgZ(7,"mat-radio-button",62),s._uU(8,"External Address"),s.qZA(),s.qZA(),s.TgZ(9,"mat-form-field",63),s._UZ(10,"input",64),s.YNc(11,Ee,2,0,"mat-error",25),s.qZA(),s.qZA(),s.TgZ(12,"div",29),s.TgZ(13,"button",65),s.NdJ("click",function(){return s.CHM(ve),s.oxw(2).onLoop()}),s._uU(14),s.qZA(),s.qZA(),s.qZA(),s.qZA()}if(2&Ke){const ve=s.oxw(2);s.Q6J("stepControl",ve.addressFormGroup)("editable",ve.flgEditable),s.xp6(1),s.Q6J("formGroup",ve.addressFormGroup),s.xp6(9),s.Q6J("required","external"===ve.addressFormGroup.controls.addressType.value),s.xp6(1),s.Q6J("ngIf",null==ve.addressFormGroup.controls.address.errors?null:ve.addressFormGroup.controls.address.errors.required),s.xp6(3),s.hij("Initiate ",ve.loopDirectionCaption,"")}}function me(Ke,_t){if(1&Ke&&s._uU(0),2&Ke){const ve=s.oxw(2);s.hij("",ve.loopDirectionCaption," Status")}}function De(Ke,_t){if(1&Ke&&(s.TgZ(0,"mat-icon",66),s._uU(1),s.qZA()),2&Ke){const ve=s.oxw(2);s.xp6(1),s.Oqu(ve.loopStatus&&null!=ve.loopStatus&&ve.loopStatus.id_bytes?"check":"close")}}function et(Ke,_t){1&Ke&&s._UZ(0,"div")}function $t(Ke,_t){1&Ke&&s._UZ(0,"mat-progress-bar",67)}function Nt(Ke,_t){if(1&Ke&&(s.TgZ(0,"h4",68),s._uU(1),s.qZA()),2&Ke){const ve=s.oxw(2);s.xp6(1),s.Oqu(ve.loopStatus&&ve.loopStatus.error?ve.loopDirectionCaption+" failed.":ve.loopStatus&&ve.loopStatus.id_bytes&&ve.channel?ve.loopDirectionCaption+" request placed successfully. You can check the status of the request on the 'Loop' menu.":ve.loopDirectionCaption+" request placed successfully.")}}function Jt(Ke,_t){if(1&Ke){const ve=s.EpF();s.TgZ(0,"button",69),s.NdJ("click",function(){return s.CHM(ve),s.oxw(2).goToLoop()}),s._uU(1,"Check Status"),s.qZA()}}function ct(Ke,_t){if(1&Ke){const ve=s.EpF();s.TgZ(0,"button",70),s.NdJ("click",function(){return s.CHM(ve),s.oxw(2).onRestart()}),s._uU(1,"Start Again"),s.qZA()}}function Pe(Ke,_t){if(1&Ke){const ve=s.EpF();s.TgZ(0,"div",3),s.TgZ(1,"div",4),s.TgZ(2,"mat-card-header",5),s.TgZ(3,"div",6),s.TgZ(4,"span",7),s._uU(5),s.qZA(),s.qZA(),s.TgZ(6,"div",8),s.TgZ(7,"button",9),s.NdJ("click",function(){return s.CHM(ve),s.oxw().showInfo()}),s._uU(8,"?"),s.qZA(),s.TgZ(9,"button",10),s.NdJ("click",function(){return s.CHM(ve),s.oxw().onClose()}),s._uU(10,"X"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(11,"mat-card-content",11),s.TgZ(12,"div",12),s.YNc(13,lt,11,4,"div",13),s.TgZ(14,"mat-vertical-stepper",14,15),s.NdJ("selectionChange",function(yt){return s.CHM(ve),s.oxw().stepSelectionChanged(yt)}),s.TgZ(16,"mat-step",16),s.TgZ(17,"form",17),s.YNc(18,nt,1,1,"ng-template",18),s.TgZ(19,"div",19),s._UZ(20,"rtl-loop-quote",20),s._UZ(21,"rtl-loop-quote",20),s.qZA(),s.TgZ(22,"div",21),s.TgZ(23,"mat-form-field",22),s._UZ(24,"input",23),s.TgZ(25,"mat-hint"),s._uU(26),s.ALo(27,"number"),s.ALo(28,"number"),s.qZA(),s.TgZ(29,"span",24),s._uU(30,"Sats"),s.qZA(),s.YNc(31,ft,2,0,"mat-error",25),s.YNc(32,it,3,3,"mat-error",25),s.YNc(33,rt,3,3,"mat-error",25),s.qZA(),s.TgZ(34,"mat-form-field",22),s._UZ(35,"input",26),s.YNc(36,Mt,2,0,"mat-error",25),s.YNc(37,Zt,2,0,"mat-error",25),s.qZA(),s.YNc(38,Ii,4,3,"mat-form-field",27),s.qZA(),s.YNc(39,jt,5,0,"div",28),s.TgZ(40,"div",29),s.TgZ(41,"button",30),s.NdJ("click",function(){return s.CHM(ve),s.oxw().onEstimateQuote()}),s._uU(42,"Estimate Quote"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.TgZ(43,"mat-step",16),s.TgZ(44,"form",17),s.YNc(45,ei,1,1,"ng-template",18),s._UZ(46,"rtl-loop-quote",31),s.YNc(47,Pi,4,0,"p",32),s.TgZ(48,"div",29),s.YNc(49,ai,2,0,"button",33),s.YNc(50,hi,2,1,"button",34),s.qZA(),s.qZA(),s.qZA(),s.YNc(51,Y,15,6,"mat-step",35),s.TgZ(52,"mat-step",36),s.TgZ(53,"form",17),s.YNc(54,me,1,1,"ng-template",18),s.TgZ(55,"div",37),s.TgZ(56,"mat-expansion-panel",38),s.TgZ(57,"mat-expansion-panel-header"),s.TgZ(58,"mat-panel-title"),s.TgZ(59,"span",39),s._uU(60),s.YNc(61,De,2,1,"mat-icon",40),s.qZA(),s.qZA(),s.qZA(),s.YNc(62,et,1,0,"div",41),s.qZA(),s.YNc(63,$t,1,0,"mat-progress-bar",42),s.qZA(),s.YNc(64,Nt,2,1,"h4",43),s.TgZ(65,"div",29),s.YNc(66,Jt,2,0,"button",44),s.YNc(67,ct,2,0,"button",45),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.TgZ(68,"div",46),s.TgZ(69,"button",47),s._uU(70,"Close"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA()}if(2&Ke){const ve=s.oxw(),qe=s.MAs(2);s.Q6J("@opacityAnimation",void 0),s.xp6(3),s.Q6J("fxFlex",ve.screenSize===ve.screenSizeEnum.XS||ve.screenSize===ve.screenSizeEnum.SM?"83":"91"),s.xp6(2),s.Oqu(ve.channel?"Channel "+ve.loopDirectionCaption:ve.loopDirectionCaption),s.xp6(1),s.Q6J("fxFlex",ve.screenSize===ve.screenSizeEnum.XS||ve.screenSize===ve.screenSizeEnum.SM?"17":"9"),s.xp6(7),s.Q6J("ngIf",ve.channel),s.xp6(1),s.Q6J("linear",!0),s.xp6(2),s.Q6J("stepControl",ve.inputFormGroup)("editable",ve.flgEditable),s.xp6(1),s.Q6J("formGroup",ve.inputFormGroup),s.xp6(3),s.Q6J("quote",ve.minQuote)("termCaption","min")("panelExpanded",!1)("showPanel",!0),s.xp6(1),s.Q6J("quote",ve.maxQuote)("termCaption","max")("panelExpanded",!1)("showPanel",!0),s.xp6(2),s.Q6J("fxFlex",ve.direction===ve.LoopTypeEnum.LOOP_OUT?"35":"48"),s.xp6(1),s.Q6J("step",1e3),s.xp6(2),s.AsE("Range: ",s.lcZ(27,51,ve.minQuote.amount),"-",s.lcZ(28,53,ve.maxQuote.amount),""),s.xp6(5),s.Q6J("ngIf",null==ve.inputFormGroup.controls.amount.errors?null:ve.inputFormGroup.controls.amount.errors.required),s.xp6(1),s.Q6J("ngIf",null==ve.inputFormGroup.controls.amount.errors?null:ve.inputFormGroup.controls.amount.errors.min),s.xp6(1),s.Q6J("ngIf",null==ve.inputFormGroup.controls.amount.errors?null:ve.inputFormGroup.controls.amount.errors.max),s.xp6(1),s.Q6J("fxFlex",ve.direction===ve.LoopTypeEnum.LOOP_OUT?"30":"48"),s.xp6(1),s.Q6J("step",1),s.xp6(1),s.Q6J("ngIf",null==ve.inputFormGroup.controls.sweepConfTarget.errors?null:ve.inputFormGroup.controls.sweepConfTarget.errors.required),s.xp6(1),s.Q6J("ngIf",null==ve.inputFormGroup.controls.sweepConfTarget.errors?null:ve.inputFormGroup.controls.sweepConfTarget.errors.min),s.xp6(1),s.Q6J("ngIf",ve.direction===ve.LoopTypeEnum.LOOP_OUT),s.xp6(1),s.Q6J("ngIf",ve.direction===ve.LoopTypeEnum.LOOP_OUT),s.xp6(4),s.Q6J("stepControl",ve.quoteFormGroup)("editable",ve.flgEditable),s.xp6(1),s.Q6J("formGroup",ve.quoteFormGroup),s.xp6(2),s.Q6J("quote",ve.quote)("showPanel",!1),s.xp6(1),s.Q6J("ngIf",ve.inputFormGroup.controls.amount.value>ve.localBalanceToCompare),s.xp6(2),s.Q6J("ngIf",ve.direction===ve.LoopTypeEnum.LOOP_OUT),s.xp6(1),s.Q6J("ngIf",ve.direction===ve.LoopTypeEnum.LOOP_IN),s.xp6(1),s.Q6J("ngIf",ve.direction===ve.LoopTypeEnum.LOOP_OUT),s.xp6(1),s.Q6J("stepControl",ve.statusFormGroup),s.xp6(1),s.Q6J("formGroup",ve.statusFormGroup),s.xp6(3),s.Q6J("expanded",!!ve.loopStatus),s.xp6(4),s.Oqu(ve.loopStatus?ve.loopStatus.id_bytes?ve.loopDirectionCaption+" request details":ve.loopDirectionCaption+" error details":"Waiting for "+ve.loopDirectionCaption+" request..."),s.xp6(1),s.Q6J("ngIf",ve.loopStatus),s.xp6(1),s.Q6J("ngIf",!ve.loopStatus)("ngIfElse",qe),s.xp6(1),s.Q6J("ngIf",!ve.loopStatus),s.xp6(1),s.Q6J("ngIf",ve.loopStatus),s.xp6(2),s.Q6J("ngIf",ve.loopStatus&&ve.loopStatus.id_bytes&&ve.channel),s.xp6(1),s.Q6J("ngIf",ve.loopStatus&&(ve.loopStatus.error||!ve.loopStatus.id_bytes)),s.xp6(2),s.Q6J("mat-dialog-close",!1)}}function Fe(Ke,_t){if(1&Ke&&s._UZ(0,"rtl-loop-status",71),2&Ke){const ve=s.oxw();s.Q6J("loopStatus",ve.loopStatus)}}function at(Ke,_t){if(1&Ke){const ve=s.EpF();s.TgZ(0,"rtl-loop-out-info-graphics",88),s.NdJ("stepNumberChange",function(yt){return s.CHM(ve),s.oxw(2).stepNumber=yt}),s.qZA()}if(2&Ke){const ve=s.oxw(2);s.Q6J("stepNumber",ve.stepNumber)("animationDirection",ve.animationDirection)}}function st(Ke,_t){if(1&Ke){const ve=s.EpF();s.TgZ(0,"rtl-loop-in-info-graphics",88),s.NdJ("stepNumberChange",function(yt){return s.CHM(ve),s.oxw(2).stepNumber=yt}),s.qZA()}if(2&Ke){const ve=s.oxw(2);s.Q6J("stepNumber",ve.stepNumber)("animationDirection",ve.animationDirection)}}const At=function(Ke,_t){return{"dot-primary":Ke,"dot-primary-lighter":_t}};function li(Ke,_t){if(1&Ke){const ve=s.EpF();s.TgZ(0,"span",89),s.NdJ("click",function(){const fe=s.CHM(ve).$implicit;return s.oxw(2).onStepChanged(fe)}),s._UZ(1,"p",90),s.qZA()}if(2&Ke){const ve=_t.$implicit,qe=s.oxw(2);s.xp6(1),s.Q6J("ngClass",s.WLB(1,At,qe.stepNumber===ve,qe.stepNumber!==ve))}}function Bt(Ke,_t){if(1&Ke){const ve=s.EpF();s.TgZ(0,"button",91),s.NdJ("click",function(){return s.CHM(ve),s.oxw(2).onReadMore()}),s._uU(1,"Read More"),s.qZA()}}function Rt(Ke,_t){if(1&Ke){const ve=s.EpF();s.TgZ(0,"button",92),s.NdJ("click",function(){return s.CHM(ve),s.oxw(2).onStepChanged(4)}),s._uU(1,"Back"),s.qZA()}}function Li(Ke,_t){if(1&Ke){const ve=s.EpF();s.TgZ(0,"button",93),s.NdJ("click",function(){s.CHM(ve);const yt=s.oxw(2);return yt.flgShowInfo=!1,yt.stepNumber=1}),s._uU(1,"Close"),s.qZA()}}function si(Ke,_t){if(1&Ke){const ve=s.EpF();s.TgZ(0,"button",94),s.NdJ("click",function(){s.CHM(ve);const yt=s.oxw(2);return yt.flgShowInfo=!1,yt.stepNumber=1}),s._uU(1,"Close"),s.qZA()}}function ci(Ke,_t){if(1&Ke){const ve=s.EpF();s.TgZ(0,"button",95),s.NdJ("click",function(){s.CHM(ve);const yt=s.oxw(2);return yt.onStepChanged(yt.stepNumber-1)}),s._uU(1,"Back"),s.qZA()}}function sn(Ke,_t){if(1&Ke){const ve=s.EpF();s.TgZ(0,"button",96),s.NdJ("click",function(){s.CHM(ve);const yt=s.oxw(2);return yt.onStepChanged(yt.stepNumber+1)}),s._uU(1,"Next"),s.qZA()}}const Ui=function(){return[1,2,3,4,5]};function Di(Ke,_t){if(1&Ke){const ve=s.EpF();s.TgZ(0,"div",72),s.TgZ(1,"div",19),s.TgZ(2,"mat-card-header",73),s.TgZ(3,"div",74),s._UZ(4,"span",7),s.qZA(),s.TgZ(5,"div",75),s.TgZ(6,"button",76),s.NdJ("click",function(){s.CHM(ve);const yt=s.oxw();return yt.flgShowInfo=!1,yt.stepNumber=1}),s._uU(7,"X"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(8,"mat-card-content",77),s.YNc(9,at,1,2,"rtl-loop-out-info-graphics",78),s.YNc(10,st,1,2,"rtl-loop-in-info-graphics",78),s.qZA(),s.TgZ(11,"div",79),s.YNc(12,li,2,4,"span",80),s.qZA(),s.TgZ(13,"div",81),s.YNc(14,Bt,2,0,"button",82),s.YNc(15,Rt,2,0,"button",83),s.YNc(16,Li,2,0,"button",84),s.YNc(17,si,2,0,"button",85),s.YNc(18,ci,2,0,"button",86),s.YNc(19,sn,2,0,"button",87),s.qZA(),s.qZA(),s.qZA()}if(2&Ke){const ve=s.oxw();s.Q6J("@opacityAnimation",void 0),s.xp6(9),s.Q6J("ngIf",ve.direction===ve.LoopTypeEnum.LOOP_OUT),s.xp6(1),s.Q6J("ngIf",ve.direction===ve.LoopTypeEnum.LOOP_IN),s.xp6(2),s.Q6J("ngForOf",s.DdM(10,Ui)),s.xp6(2),s.Q6J("ngIf",5===ve.stepNumber),s.xp6(1),s.Q6J("ngIf",5===ve.stepNumber),s.xp6(1),s.Q6J("ngIf",5===ve.stepNumber),s.xp6(1),s.Q6J("ngIf",ve.stepNumber<5),s.xp6(1),s.Q6J("ngIf",ve.stepNumber>1&&ve.stepNumber<5),s.xp6(1),s.Q6J("ngIf",ve.stepNumber<5)}}let Xi=(()=>{class Ke{constructor(ve,qe,yt,fe,Je,St,Pt,yi,Ni){this.dialogRef=ve,this.data=qe,this.store=yt,this.loopService=fe,this.formBuilder=Je,this.decimalPipe=St,this.logger=Pt,this.router=yi,this.commonService=Ni,this.faInfoCircle=o.sqG,this.LoopTypeEnum=l.$I,this.direction=l.$I.LOOP_OUT,this.loopDirectionCaption="Loop out",this.loopStatus=null,this.inputFormLabel="Amount to loop out",this.quoteFormLabel="Confirm Quote",this.addressFormLabel="Withdrawal Address",this.prepayRoutingFee=36,this.flgShowInfo=!1,this.stepNumber=1,this.screenSize="",this.screenSizeEnum=l.cu,this.animationDirection="forward",this.flgEditable=!0,this.localBalanceToCompare=null,this.unSubs=[new t.x,new t.x,new t.x,new t.x,new t.x,new t.x,new t.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.channel=this.data.channel,this.minQuote=this.data.minQuote?this.data.minQuote:{},this.maxQuote=this.data.maxQuote?this.data.maxQuote:{},this.direction=this.data.direction,this.loopDirectionCaption=this.direction===l.$I.LOOP_IN?"Loop in":"Loop out",this.inputFormLabel="Amount to "+this.loopDirectionCaption,this.inputFormGroup=this.formBuilder.group({amount:[this.minQuote.amount,[e.kI.required,e.kI.min(this.minQuote.amount),e.kI.max(this.maxQuote.amount)]],sweepConfTarget:[6,[e.kI.required,e.kI.min(1)]],routingFeePercent:[2,[e.kI.required,e.kI.min(0)]],fast:[!1,[e.kI.required]]}),this.quoteFormGroup=this.formBuilder.group({}),this.addressFormGroup=this.formBuilder.group({addressType:["local",[e.kI.required]],address:[{value:"",disabled:!0}]}),this.statusFormGroup=this.formBuilder.group({}),this.onFormValueChanges(),this.store.select(N.ZW).pipe((0,y.R)(this.unSubs[6])).subscribe(ve=>{this.localBalanceToCompare=this.channel?+this.channel.local_balance:+ve.lightningBalance.local})}ngAfterViewInit(){this.inputFormGroup.setErrors({Invalid:!0}),this.direction===l.$I.LOOP_OUT&&this.addressFormGroup.setErrors({Invalid:!0})}onFormValueChanges(){this.inputFormGroup.valueChanges.pipe((0,y.R)(this.unSubs[4])).subscribe(ve=>{this.inputFormGroup.setErrors({Invalid:!0})}),this.direction===l.$I.LOOP_OUT&&this.addressFormGroup.valueChanges.pipe((0,y.R)(this.unSubs[5])).subscribe(ve=>{this.addressFormGroup.setErrors({Invalid:!0})})}onAddressTypeChange(ve){"external"===ve.value?(this.addressFormGroup.controls.address.setValidators([e.kI.required]),this.addressFormGroup.controls.address.markAsTouched(),this.addressFormGroup.controls.address.enable()):(this.addressFormGroup.controls.address.setValidators(null),this.addressFormGroup.controls.address.markAsPristine(),this.addressFormGroup.controls.address.disable(),this.addressFormGroup.controls.address.setValue("")),this.addressFormGroup.setErrors({Invalid:!0})}onValidateAmount(){this.inputFormGroup.controls.amount.value<=this.localBalanceToCompare&&this.stepper.next()}onLoop(){if(!this.inputFormGroup.controls.amount.value||this.inputFormGroup.controls.amount.value<this.minQuote.amount||this.inputFormGroup.controls.amount.value>this.maxQuote.amount||!this.inputFormGroup.controls.sweepConfTarget.value||this.inputFormGroup.controls.sweepConfTarget.value<2||this.direction===l.$I.LOOP_OUT&&(!this.inputFormGroup.controls.routingFeePercent.value||this.inputFormGroup.controls.routingFeePercent.value<0)||this.direction===l.$I.LOOP_OUT&&"external"===this.addressFormGroup.controls.addressType.value&&(!this.addressFormGroup.controls.address.value||""===this.addressFormGroup.controls.address.value.trim()))return!0;if(this.flgEditable=!1,this.stepper.selected.stepControl.setErrors(null),this.stepper.next(),this.direction===l.$I.LOOP_IN)this.loopService.loopIn(this.inputFormGroup.controls.amount.value,+this.quote.swap_fee_sat,+this.quote.htlc_publish_fee_sat,"",!0).pipe((0,y.R)(this.unSubs[0])).subscribe({next:ve=>{this.loopStatus=ve,this.loopService.listSwaps(),this.flgEditable=!0},error:ve=>{this.loopStatus={error:ve},this.flgEditable=!0,this.logger.error(ve)}});else{const ve=Math.ceil(this.inputFormGroup.controls.amount.value*(this.inputFormGroup.controls.routingFeePercent.value/100)),qe="external"===this.addressFormGroup.controls.addressType.value?this.addressFormGroup.controls.address.value:"",yt=this.inputFormGroup.controls.fast.value?0:(new Date).getTime()+18e5;this.loopService.loopOut(this.inputFormGroup.controls.amount.value,this.channel&&this.channel.chan_id?this.channel.chan_id:"",this.inputFormGroup.controls.sweepConfTarget.value,ve,+this.quote.htlc_sweep_fee_sat,this.prepayRoutingFee,+this.quote.prepay_amt_sat,+this.quote.swap_fee_sat,yt,qe).pipe((0,y.R)(this.unSubs[1])).subscribe({next:fe=>{this.loopStatus=fe,this.loopService.listSwaps(),this.flgEditable=!0},error:fe=>{this.loopStatus={error:fe},this.flgEditable=!0,this.logger.error(fe)}})}}onEstimateQuote(){if(!this.inputFormGroup.controls.amount.value||this.inputFormGroup.controls.amount.value<this.minQuote.amount||this.inputFormGroup.controls.amount.value>this.maxQuote.amount||!this.inputFormGroup.controls.sweepConfTarget.value||this.inputFormGroup.controls.sweepConfTarget.value<2)return!0;const ve=this.inputFormGroup.controls.fast.value?0:(new Date).getTime()+18e5;this.direction===l.$I.LOOP_IN?this.loopService.getLoopInQuote(this.inputFormGroup.controls.amount.value,this.inputFormGroup.controls.sweepConfTarget.value,ve).pipe((0,y.R)(this.unSubs[2])).subscribe(qe=>{this.quote=qe,this.quote.off_chain_swap_routing_fee_percentage=this.inputFormGroup.controls.routingFeePercent.value?this.inputFormGroup.controls.routingFeePercent.value:2}):this.loopService.getLoopOutQuote(this.inputFormGroup.controls.amount.value,this.inputFormGroup.controls.sweepConfTarget.value,ve).pipe((0,y.R)(this.unSubs[3])).subscribe(qe=>{this.quote=qe,this.quote.off_chain_swap_routing_fee_percentage=this.inputFormGroup.controls.routingFeePercent.value?this.inputFormGroup.controls.routingFeePercent.value:2}),this.stepper.selected.stepControl.setErrors(null),this.stepper.next()}stepSelectionChanged(ve){switch(ve.selectedIndex){case 0:default:this.inputFormLabel="Amount to "+this.loopDirectionCaption,this.quoteFormLabel="Confirm Quote",this.addressFormLabel="Withdrawal Address";break;case 1:this.inputFormLabel=this.inputFormGroup.controls.amount.value||this.inputFormGroup.controls.sweepConfTarget.value?this.direction===l.$I.LOOP_IN?this.loopDirectionCaption+" Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.amount.value?this.inputFormGroup.controls.amount.value:0)+" Sats | Target Confirmation: "+(this.inputFormGroup.controls.sweepConfTarget.value?this.inputFormGroup.controls.sweepConfTarget.value:6):this.loopDirectionCaption+" Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.amount.value?this.inputFormGroup.controls.amount.value:0)+" Sats | Target Confirmation: "+(this.inputFormGroup.controls.sweepConfTarget.value?this.inputFormGroup.controls.sweepConfTarget.value:6)+" | Percentage: "+(this.inputFormGroup.controls.routingFeePercent.value?this.inputFormGroup.controls.routingFeePercent.value:"2")+" | Fast: "+(this.inputFormGroup.controls.fast.value?"Enabled":"Disabled"):"Amount to "+this.loopDirectionCaption,this.quoteFormLabel="Confirm Quote",this.addressFormLabel="Withdrawal Address";break;case 2:this.inputFormLabel=this.inputFormGroup.controls.amount.value||this.inputFormGroup.controls.sweepConfTarget.value?this.direction===l.$I.LOOP_IN?this.loopDirectionCaption+" Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.amount.value?this.inputFormGroup.controls.amount.value:0)+" Sats | Target Confirmation: "+(this.inputFormGroup.controls.sweepConfTarget.value?this.inputFormGroup.controls.sweepConfTarget.value:6):this.loopDirectionCaption+" Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.amount.value?this.inputFormGroup.controls.amount.value:0)+" Sats | Target Confirmation: "+(this.inputFormGroup.controls.sweepConfTarget.value?this.inputFormGroup.controls.sweepConfTarget.value:6)+" | Fast: "+(this.inputFormGroup.controls.fast.value?"Enabled":"Disabled"):"Amount to "+this.loopDirectionCaption,this.quoteFormLabel=this.quote&&this.quote.swap_fee_sat&&(this.quote.htlc_sweep_fee_sat||this.quote.htlc_publish_fee_sat)&&this.quote.prepay_amt_sat?"Quote confirmed | Estimated Fees: "+this.decimalPipe.transform(+this.quote.swap_fee_sat+ +(this.quote.htlc_sweep_fee_sat?this.quote.htlc_sweep_fee_sat:this.quote.htlc_publish_fee_sat?this.quote.htlc_publish_fee_sat:0))+" Sats":"Quote confirmed",this.addressFormLabel=this.addressFormGroup.controls.addressType.value?"Withdrawal Address | Type: "+this.addressFormGroup.controls.addressType.value:"Withdrawal Address"}(this.direction===l.$I.LOOP_OUT&&1!==ve.selectedIndex&&ve.selectedIndex<ve.previouslySelectedIndex||this.direction===l.$I.LOOP_IN&&ve.selectedIndex<ve.previouslySelectedIndex)&&ve.selectedStep.stepControl.setErrors({Invalid:!0})}goToLoop(){this.dialogRef.close(!0),this.router.navigateByUrl("/services/loop")}onClose(){this.dialogRef.close(!0)}showInfo(){this.flgShowInfo=!0}onReadMore(){this.direction===l.$I.LOOP_IN?window.open("https://blog.lightning.engineering/announcement/2019/06/25/loop-in.html","_blank"):window.open("https://blog.lightning.engineering/technical/posts/2019/04/15/loop-out-in-depth.html","_blank"),this.onClose()}onStepChanged(ve){this.animationDirection=ve<this.stepNumber?"backward":"forward",this.stepNumber=ve}onRestart(){this.stepper.reset(),this.flgEditable=!0,this.inputFormGroup.reset({amount:this.minQuote.amount,sweepConfTarget:6,routingFeePercent:2,fast:!1}),this.quoteFormGroup.reset(),this.statusFormGroup.reset(),this.addressFormGroup.reset({addressType:"local",address:""}),this.addressFormGroup.controls.address.disable()}ngOnDestroy(){this.unSubs.forEach(ve=>{ve.next(null),ve.complete()})}}return Ke.\u0275fac=function(ve){return new(ve||Ke)(s.Y36(C.so),s.Y36(C.WI),s.Y36(D.yh),s.Y36(A.W),s.Y36(e.qu),s.Y36(O.JJ),s.Y36(E.mQ),s.Y36(P.F0),s.Y36(w.v))},Ke.\u0275cmp=s.Xpm({type:Ke,selectors:[["rtl-loop-modal"]],viewQuery:function(ve,qe){if(1&ve&&s.Gf(Ue,5),2&ve){let yt;s.iGM(yt=s.CRH())&&(qe.stepper=yt.first)}},decls:4,vars:2,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf"],["loopStatusBlock",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch","class","info-graphics-container",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxLayoutAlign","start start",3,"fxFlex"],[1,"page-title"],["fxLayoutAlign","space-between end",3,"fxFlex"],["tabindex","21","mat-button","",1,"btn-close-x","p-0",3,"click"],["tabindex","22","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],["class","padding-gap-large","fxLayout","row wrap","fxLayoutAlign","space-between stretch",4,"ngIf"],[3,"linear","selectionChange"],["stepper",""],[3,"stepControl","editable"],["fxLayout","column","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"my-1",3,"formGroup"],["matStepLabel",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],[3,"quote","termCaption","panelExpanded","showPanel"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between center",1,"mt-1"],[3,"fxFlex"],["autoFocus","","matInput","","placeholder","Amount","type","number","tabindex","1","formControlName","amount","required","",3,"step"],["matSuffix",""],[4,"ngIf"],["matInput","","placeholder","Sweep Confirmation Target","type","number","tabindex","2","formControlName","sweepConfTarget","required","",3,"step"],["fxFlex","30",4,"ngIf"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","start center","class","mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-button","","color","primary","tabindex","5","type","button",3,"click"],[3,"quote","showPanel"],["fxFlex","100","class","color-warn mt-2","fxLayoutAlign","start center",4,"ngIf"],["mat-button","","color","primary","tabindex","6","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","7","type","button",3,"click",4,"ngIf"],[3,"stepControl","editable",4,"ngIf"],[3,"stepControl"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100",1,"flat-expansion-panel",3,"expanded"],["fxLayoutAlign","start center","fxFlex","100"],["class","ml-1 icon-small",4,"ngIf"],[4,"ngIf","ngIfElse"],["fxFlex","100","color","primary","mode","indeterminate",4,"ngIf"],["fxLayoutAlign","start","class","font-bold-500 mt-2",4,"ngIf"],["mat-button","","color","primary","tabindex","12","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","13","type","button",3,"click",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end end"],["mat-button","","color","primary","tabindex","14","type","button","default","",3,"mat-dialog-close"],["fxLayout","row wrap","fxLayoutAlign","space-between stretch",1,"padding-gap-large"],["fxFlex","40"],["fxFlex","30"],["matInput","","placeholder","Max Off-chain Routing Fee (%)","type","number","tabindex","3","formControlName","routingFeePercent","required","",3,"step"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","start center",1,"mt-1"],["tabindex","4","color","primary","formControlName","fast","fxFlex","none"],["matTooltip","Swap immediately (Might end up paying a higher on-chain fee)","matTooltipPosition","above","fxFlex","none",1,"info-icon"],["fxFlex","100","fxLayoutAlign","start center",1,"color-warn","mt-2"],[1,"mr-1","icon-small"],["mat-button","","color","primary","tabindex","6","type","button",3,"click"],["mat-button","","color","primary","tabindex","7","type","button",3,"click"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mt-1"],["color","primary","name","addressType","formControlName","addressType","fxFlex","100","fxLayoutAlign","space-between stretch",3,"change"],["fxFlex","48","tabindex","8","value","local"],["fxFlex","48","tabindex","9","value","external"],["fxFlex","100",1,"mt-1"],["matInput","","placeholder","Address","tabindex","10","formControlName","address",3,"required"],["mat-button","","color","primary","tabindex","11","type","button",3,"click"],[1,"ml-1","icon-small"],["fxFlex","100","color","primary","mode","indeterminate"],["fxLayoutAlign","start",1,"font-bold-500","mt-2"],["mat-button","","color","primary","tabindex","12","type","button",3,"click"],["mat-button","","color","primary","tabindex","13","type","button",3,"click"],["fxLayout","column",3,"loopStatus"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"info-graphics-container"],["fxLayout","row","fxFlex","8","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],["fxFlex","5","fxLayoutAlign","end center"],["tabindex","19","mat-button","",1,"btn-close-x","p-0",3,"click"],["fxLayout","column","fxFlex","70","fxLayoutAlign","space-between center",1,"padding-gap-x-large"],["fxFlex","100",3,"stepNumber","animationDirection","stepNumberChange",4,"ngIf"],["fxLayout","row","fxFlex","10","fxLayoutAlign","center end",1,"padding-gap-x-large","padding-gap-bottom-large"],["fxLayoutAlign","center center","class","dots-stepper-block",3,"click",4,"ngFor","ngForOf"],["fxLayout","row","fxFlex","10","fxLayoutAlign","end end",1,"padding-gap-x-large","padding-gap-bottom-large"],["mat-button","","class","mr-1","color","primary","tabindex","15","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","16","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","17","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","18","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","19","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","20","type","button",3,"click",4,"ngIf"],["fxFlex","100",3,"stepNumber","animationDirection","stepNumberChange"],["fxLayoutAlign","center center",1,"dots-stepper-block",3,"click"],[1,"dot","tiny-dot","mr-0",3,"ngClass"],["mat-button","","color","primary","tabindex","15","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","16","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","17","type","button",3,"click"],["mat-button","","color","primary","tabindex","18","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","19","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","20","type","button",3,"click"]],template:function(ve,qe){1&ve&&(s.YNc(0,Pe,71,55,"div",0),s.YNc(1,Fe,1,1,"ng-template",null,1,s.W1O),s.YNc(3,Di,20,11,"div",2)),2&ve&&(s.Q6J("ngIf",!qe.flgShowInfo),s.xp6(3),s.Q6J("ngIf",qe.flgShowInfo))},directives:[O.O5,Z.xw,Z.yH,Z.Wh,j.dk,W.lW,j.dn,ie.Vq,ie.C0,e._Y,e.JL,e.sg,ie.VY,L,I.KE,x.Nt,e.wV,e.Fj,r.h,e.JJ,e.u,e.Q7,I.bx,I.R9,ee.ib,ee.yz,ee.yK,C.ZT,I.TO,v.Rr,ce.Hw,re.gM,G.VQ,G.U0,F.pW,Be,O.sg,Re,xe,O.mk,_e.oO],pipes:[O.JJ,O.rS],styles:[".dots-stepper-block[_ngcontent-%COMP%]{width:3rem}.info-graphics-container[_ngcontent-%COMP%]{max-height:60rem;min-height:60rem}"],data:{animation:[M._]}}),Ke})()},3390:(Ve,Q,m)=>{"use strict";m.d(Q,{h:()=>t});var e=m(5e3);let t=(()=>{class y{constructor(o){this.el=o}ngAfterContentInit(){setTimeout(()=>{this.el.nativeElement.focus()},500)}}return y.\u0275fac=function(o){return new(o||y)(e.Y36(e.SBq))},y.\u0275dir=e.lG2({type:y,selectors:[["","autoFocus",""]],inputs:{appAutoFocus:"appAutoFocus"}}),y})()},6895:(Ve,Q,m)=>{"use strict";m.d(Q,{y:()=>t});var e=m(5e3);let t=(()=>{class y{constructor(){this.copied=new e.vpe}onClick(o){o.preventDefault(),this.payload&&navigator.clipboard&&navigator.clipboard.writeText(this.payload.toString()).then(()=>{this.copied.emit(this.payload.toString())},M=>{this.copied.emit("Error could not copy text: "+JSON.stringify(M))})}}return y.\u0275fac=function(o){return new(o||y)},y.\u0275dir=e.lG2({type:y,selectors:[["","rtlClipboard",""]],hostBindings:function(o,M){1&o&&e.NdJ("click",function(N){return M.onClick(N)})},inputs:{payload:"payload"},outputs:{copied:"copied"}}),y})()},9843:(Ve,Q,m)=>{"use strict";m.d(Q,{F:()=>y});var e=m(3075),t=m(5e3);let y=(()=>{class C{validate(M){return this.max?e.kI.max(+this.max)(M):null}}return C.\u0275fac=function(M){return new(M||C)},C.\u0275dir=t.lG2({type:C,selectors:[["input","max",""]],inputs:{max:"max"},features:[t._Bn([{provide:e.Cf,useExisting:C,multi:!0}])]}),C})()},6534:(Ve,Q,m)=>{"use strict";m.d(Q,{q:()=>y});var e=m(3075),t=m(5e3);let y=(()=>{class C{validate(M){return this.min?e.kI.min(+this.min)(M):null}}return C.\u0275fac=function(M){return new(M||C)},C.\u0275dir=t.lG2({type:C,selectors:[["input","min",""]],inputs:{min:"min"},features:[t._Bn([{provide:e.Cf,useExisting:C,multi:!0}])]}),C})()},1643:(Ve,Q,m)=>{"use strict";m.d(Q,{a1:()=>o,QM:()=>M,eQ:()=>l,fY:()=>N});var e=m(4004),t=m(5e3),y=m(1402),C=m(5986);let o=(()=>{class s{constructor(A,O){this.router=A,this.sessionService=O}canActivate(A){return!(!this.sessionService.getItem("token")||"settings"!==A.url[0].path&&"auth"!==A.url[0].path&&"true"===this.sessionService.getItem("defaultPassword")&&(this.router.navigate(["/settings/auth"]),1))}}return s.\u0275fac=function(A){return new(A||s)(t.LFG(y.F0),t.LFG(C.m))},s.\u0275prov=t.Yz7({token:s,factory:s.\u0275fac}),s})(),M=(()=>{class s{constructor(A){this.sessionService=A}canActivate(){return!!this.sessionService.watchSession().pipe((0,e.U)(A=>A.lndUnlocked))}}return s.\u0275fac=function(A){return new(A||s)(t.LFG(C.m))},s.\u0275prov=t.Yz7({token:s,factory:s.\u0275fac}),s})(),l=(()=>{class s{constructor(A){this.sessionService=A}canActivate(){return!!this.sessionService.watchSession().pipe((0,e.U)(A=>A.clUnlocked))}}return s.\u0275fac=function(A){return new(A||s)(t.LFG(C.m))},s.\u0275prov=t.Yz7({token:s,factory:s.\u0275fac}),s})(),N=(()=>{class s{constructor(A){this.sessionService=A}canActivate(){return!!this.sessionService.watchSession().pipe((0,e.U)(A=>A.eclUnlocked))}}return s.\u0275fac=function(A){return new(A||s)(t.LFG(C.m))},s.\u0275prov=t.Yz7({token:s,factory:s.\u0275fac}),s})()},62:(Ve,Q,m)=>{"use strict";m.d(Q,{v:()=>A});var e=m(1135),t=m(9646),y=m(2843),C=m(5698),o=m(4004),M=m(262),l=m(7731),N=m(5e3),s=m(8104),D=m(5043);let A=(()=>{class O{constructor(P,w){this.dataService=P,this.logger=w,this.currencyUnits=[],this.CurrencyUnitEnum=l.NT,this.conversionData={data:null,last_fetched:null},this.ratesAPIStatus=l.Bn.UN_INITIATED,this.screenSize=l.cu.MD,this.containerSize={width:0,height:0},this.containerSizeUpdated=new e.X(this.containerSize)}getScreenSize(){return this.screenSize}setScreenSize(P){this.screenSize=P}getContainerSize(){return this.containerSize}setContainerSize(P,w){this.containerSize={width:P,height:w},this.logger.info("Container Size: "+JSON.stringify(this.containerSize)),this.containerSizeUpdated.next(this.containerSize)}sortByKey(P,w,Z,j="asc"){return P.sort("number"===Z?"desc"===j?(W,ie)=>+W[w]>+ie[w]?-1:1:(W,ie)=>+W[w]>+ie[w]?1:-1:"desc"===j?(W,ie)=>W[w]>ie[w]?-1:1:(W,ie)=>W[w]>ie[w]?1:-1)}sortDescByKey(P,w){return P.sort((Z,j)=>{const W=+Z[w],ie=+j[w];return W>ie?-1:W<ie?1:0})}sortAscByKey(P,w){return P.sort((Z,j)=>{const W=+Z[w],ie=+j[w];return W<ie?-1:W>ie?1:0})}camelCase(P){return P.replace(/(?:^\w|[A-Z]|\b\w)/g,(w,Z)=>w.toUpperCase()).replace(/\s+/g,"").replace(/-/g," ")}titleCase(P,w,Z){return w&&Z&&""!==w&&""!==Z&&(P=P.replace(new RegExp(w,"g"),Z)),P.indexOf("!\n")>0||P.indexOf(".\n")>0?P.split("\n").reduce((j,W)=>j+W.charAt(0).toUpperCase()+W.substring(1).toLowerCase()+"\n",""):P.indexOf(" ")>0?P.split(" ").reduce((j,W)=>j+W.charAt(0).toUpperCase()+W.substring(1).toLowerCase()+" ",""):P.charAt(0).toUpperCase()+P.substring(1).toLowerCase()}convertCurrency(P,w,Z,j,W){const ie=(new Date).valueOf();return W&&j&&this.ratesAPIStatus!==l.Bn.INITIATED&&(w===l.NT.OTHER||Z===l.NT.OTHER)?this.conversionData.data&&this.conversionData.last_fetched&&ie<this.conversionData.last_fetched.valueOf()+3e5?(0,t.of)(this.convertWithFiat(P,w,j)):(this.ratesAPIStatus=l.Bn.INITIATED,this.dataService.getFiatRates().pipe((0,C.q)(1),(0,o.U)(ee=>(this.ratesAPIStatus=l.Bn.COMPLETED,this.conversionData.data=ee&&"object"==typeof ee?ee:ee&&"string"==typeof ee?JSON.parse(ee):{},this.conversionData.last_fetched=ie,this.convertWithFiat(P,w,j))),(0,M.K)(ee=>(this.ratesAPIStatus=l.Bn.ERROR,(0,y._)(()=>this.extractErrorMessage(ee,"Currency Conversion Error.")))))):(0,t.of)(this.convertWithoutFiat(P,w))}convertWithoutFiat(P,w){const Z={};switch(Z[l.NT.SATS]=0,Z[l.NT.BTC]=0,w){case l.NT.SATS:Z[l.NT.SATS]=P,Z[l.NT.BTC]=1e-8*P;break;case l.NT.BTC:Z[l.NT.SATS]=1e8*P,Z[l.NT.BTC]=P}return Z}convertWithFiat(P,w,Z){const j={unit:Z,symbol:this.conversionData.data[Z].symbol};switch(j[l.NT.SATS]=0,j[l.NT.BTC]=0,j[l.NT.OTHER]=0,w){case l.NT.SATS:j[l.NT.SATS]=P,j[l.NT.BTC]=1e-8*P,j[l.NT.OTHER]=1e-8*P*this.conversionData.data[Z].last;break;case l.NT.BTC:j[l.NT.SATS]=1e8*P,j[l.NT.BTC]=P,j[l.NT.OTHER]=P*this.conversionData.data[Z].last;break;case l.NT.OTHER:j[l.NT.SATS]=P/this.conversionData.data[Z].last*1e8,j[l.NT.BTC]=P/this.conversionData.data[Z].last,j[l.NT.OTHER]=P}return j}convertTime(P,w,Z){switch(w){case l.Qk.SECS:switch(Z){case l.Qk.MINS:P/=60;break;case l.Qk.HOURS:P/=3600;break;case l.Qk.DAYS:P/=86400}break;case l.Qk.MINS:switch(Z){case l.Qk.SECS:P*=60;break;case l.Qk.HOURS:P/=60;break;case l.Qk.DAYS:P/=1440}break;case l.Qk.HOURS:switch(Z){case l.Qk.SECS:P*=3600;break;case l.Qk.MINS:P*=60;break;case l.Qk.DAYS:P/=24}break;case l.Qk.DAYS:switch(Z){case l.Qk.SECS:P=3600*P*24;break;case l.Qk.MINS:P=60*P*24;break;case l.Qk.HOURS:P*=24}}return P}downloadFile(P,w,Z=".json",j=".csv"){let W=new Blob;W=".json"===Z?new Blob(["\ufeff"+this.convertToCSV(P)],{type:"text/csv;charset=utf-8;"}):new Blob([P.toString()],{type:"text/plain;charset=utf-8"});const ie=document.createElement("a"),ee=URL.createObjectURL(W);-1!==navigator.userAgent.indexOf("Safari")&&-1===navigator.userAgent.indexOf("Chrome")&&ie.setAttribute("target","_blank"),ie.setAttribute("href",ee),ie.setAttribute("download",w+j),ie.style.visibility="hidden",document.body.appendChild(ie),ie.click(),document.body.removeChild(ie)}convertToCSV(P){const w=[];let Z="",j="",W="";return"object"!=typeof P&&(P=JSON.parse(P)),P.forEach((ee,_e)=>{for(const ce in ee)w.findIndex(re=>re===ce)<0&&w.push(ce)}),W=w.join(",")+"\r\n",P.forEach(ee=>{Z="",w.forEach(_e=>{ee.hasOwnProperty(_e)?Array.isArray(ee[_e])?(j="",ee[_e].forEach((ce,re)=>{j+="object"==typeof ce?"("+JSON.stringify(ce).replace(/\,/g,";")+")":"("+ce+")"}),Z+=j+","):Z+="object"==typeof ee[_e]?JSON.stringify(ee[_e]).replace(/\,/g,";")+",":ee[_e]+",":Z+=","}),W+=Z.slice(0,-1)+"\r\n"}),W}isVersionCompatible(P,w){if(P){const Z=P.trim().replace("v","").split("-")[0].split(".")||[],j=w.split(".");return+Z[0]>+j[0]||+Z[0]==+j[0]&&+Z[1]>+j[1]||+Z[0]==+j[0]&&+Z[1]==+j[1]&&+Z[2]>=+j[2]}return!1}extractErrorMessage(P,w="Unknown Error."){const Z=this.titleCase(P.error.text&&"string"==typeof P.error.text&&P.error.text.includes('<!DOCTYPE html><html lang="en">')?"API Route Does Not Exist.":P.error&&P.error.error&&P.error.error.error&&P.error.error.error.error&&P.error.error.error.error.error&&"string"==typeof P.error.error.error.error.error?P.error.error.error.error.error:P.error&&P.error.error&&P.error.error.error&&P.error.error.error.error&&"string"==typeof P.error.error.error.error?P.error.error.error.error:P.error&&P.error.error&&P.error.error.error&&"string"==typeof P.error.error.error?P.error.error.error:P.error&&P.error.error&&"string"==typeof P.error.error?P.error.error:P.error&&"string"==typeof P.error?P.error:P.error&&P.error.error&&P.error.error.error&&P.error.error.error.error&&P.error.error.error.error.message&&"string"==typeof P.error.error.error.error.message?P.error.error.error.error.message:P.error&&P.error.error&&P.error.error.error&&P.error.error.error.message&&"string"==typeof P.error.error.error.message?P.error.error.error.message:P.error&&P.error.error&&P.error.error.message&&"string"==typeof P.error.error.message?P.error.error.message:P.error&&P.error.message&&"string"==typeof P.error.message?P.error.message:P.message&&"string"==typeof P.message?P.message:w);return this.logger.info("Error Message: "+Z),Z}extractErrorCode(P,w=500){const Z=P.error&&P.error.error&&P.error.error.message&&P.error.error.message.code?P.error.error.message.code:P.error&&P.error.error&&P.error.error.code?P.error.error.code:P.error&&P.error.code?P.error.code:P.code?P.code:P.status?P.status:w;return this.logger.info("Error Code: "+Z),Z}extractErrorNumber(P,w=500){const Z=P.error&&P.error.error&&P.error.error.errno?P.error.error.errno:P.error&&P.error.errno?P.error.errno:P.errno?P.errno:P.status?P.status:w;return this.logger.info("Error Number: "+Z),Z}ngOnDestroy(){this.containerSizeUpdated.next(null),this.containerSizeUpdated.complete()}}return O.\u0275fac=function(P){return new(P||O)(N.LFG(s.D),N.LFG(D.mQ))},O.\u0275prov=N.Yz7({token:O,factory:O.\u0275fac}),O})()},7731:(Ve,Q,m)=>{"use strict";m.d(Q,{pt:()=>t,uA:()=>y,Xz:()=>C,Er:()=>o,LO:()=>M,IV:()=>l,TJ:()=>N,_t:()=>s,Dr:()=>D,Vc:()=>A,vn:()=>O,wZ:()=>E,$v:()=>P,nM:()=>w,g8:()=>Z,ol:()=>j,n_:()=>W,OJ:()=>ie,Qk:()=>ee,NT:()=>_e,Gi:()=>ce,cu:()=>re,HW:()=>de,x$:()=>oe,p7:()=>ae,Zs:()=>b,Fq:()=>i,$I:()=>a,hc:()=>p,Qw:()=>u,gg:()=>_,op:()=>L,JX:()=>I,kO:()=>x,Bn:()=>r,m6:()=>v,IX:()=>G,Xr:()=>F,pg:()=>U,uR:()=>ye,AB:()=>Ce,lr:()=>Be,Df:()=>ze,H_:()=>Ie,hZ:()=>K,gB:()=>Me,OO:()=>we});var e=m(6087);function t(z){const Ge=new e.ye;return Ge.itemsPerPageLabel=z+" per page:",Ge}const y=["Sats","BTC"],C={Sats:"1.0-0",BTC:"1.6-6",OTHER:"1.2-2"},o=[{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"}],M=["SECS","MINS","HOURS","DAYS"],l=10,N=[5,10,25,100],s=[{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)"}],D=[{id:"0",name:"Priority (Default)"},{id:"1",name:"Target Confirmation Blocks"},{id:"2",name:"Fee"}],A=[{id:"none",name:"No Fee Limit",placeholder:"No Limit"},{id:"fixed",name:"Fixed Limit (Sats)",placeholder:"Fixed Limit in Sats"},{id:"percent",name:"Percentage of Payment Amount",placeholder:"Percentage Limit"}],O=[{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 P=(()=>{return(z=P||(P={})).PAYMENT_RECEIVED="payment-received",z.PAYMENT_RELAYED="payment-relayed",z.PAYMENT_SENT="payment-sent",z.PAYMENT_SETTLING_ONCHAIN="payment-settling-onchain",z.PAYMENT_FAILED="payment-failed",z.CHANNEL_OPENED="channel-opened",z.CHANNEL_STATE_CHANGED="channel-state-changed",z.CHANNEL_CLOSED="channel-closed",P;var z})(),w=(()=>{return(z=w||(w={})).INVOICE="invoice",z.BLOCK_HEIGHT="block-height",z.SEND_PAYMENT="send-payment",w;var z})(),Z=(()=>((Z||(Z={})).INVOICE="invoice",Z))(),j=(()=>{return(z=j||(j={})).OPERATOR="OPERATOR",z.MERCHANT="MERCHANT",z.ALL="ALL",j;var z})(),W=(()=>{return(z=W||(W={})).INFORMATION="Information",z.WARNING="Warning",z.ERROR="Error",z.SUCCESS="Success",z.CONFIRM="Confirm",W;var z})(),ie=(()=>{return(z=ie||(ie={})).JWT="JWT",z.PASSWORD="PASSWORD",ie;var z})(),ee=(()=>{return(z=ee||(ee={})).SECS="SECS",z.MINS="MINS",z.HOURS="HOURS",z.DAYS="DAYS",ee;var z})(),_e=(()=>{return(z=_e||(_e={})).SATS="Sats",z.BTC="BTC",z.OTHER="OTHER",_e;var z})(),ce=(()=>{return(z=ce||(ce={})).ARRAY="ARRAY",z.NUMBER="NUMBER",z.STRING="STRING",z.BOOLEAN="BOOLEAN",z.PASSWORD="PASSWORD",z.DATE="DATE",z.DATE_TIME="DATE_TIME",ce;var z})(),re=(()=>{return(z=re||(re={})).XS="XS",z.SM="SM",z.MD="MD",z.LG="LG",z.XL="XL",re;var z})();const de={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"}},oe={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 ae=(()=>{return(z=ae||(ae={})).WIRE_INVALID_ONION_VERSION="Invalid Onion Version",z.WIRE_INVALID_ONION_HMAC="Invalid Onion HMAC",z.WIRE_INVALID_ONION_KEY="Invalid Onion Key",z.WIRE_TEMPORARY_CHANNEL_FAILURE="Temporary Channel Failure",z.WIRE_PERMANENT_CHANNEL_FAILURE="Permanent Channel Failure",z.WIRE_REQUIRED_CHANNEL_FEATURE_MISSING="Missing Required Channel Feature",z.WIRE_UNKNOWN_NEXT_PEER="Unknown Next Peer",z.WIRE_AMOUNT_BELOW_MINIMUM="Amount Below Minimum",z.WIRE_FEE_INSUFFICIENT="Insufficient Fee",z.WIRE_INCORRECT_CLTV_EXPIRY="Incorrect CLTV Expiry",z.WIRE_EXPIRY_TOO_FAR="Expiry Too Far",z.WIRE_EXPIRY_TOO_SOON="Expiry Too Soon",z.WIRE_CHANNEL_DISABLED="Channel Disabled",z.WIRE_INVALID_ONION_PAYLOAD="Invalid Onion Payload",z.WIRE_INVALID_REALM="Invalid Realm",z.WIRE_PERMANENT_NODE_FAILURE="Permanent Node Failure",z.WIRE_TEMPORARY_NODE_FAILURE="Temporary Node Failure",z.WIRE_REQUIRED_NODE_FEATURE_MISSING="Missing Required Node Feature",z.WIRE_INVALID_ONION_BLINDING="Invalid Onion Binding",z.WIRE_INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS="Incorrect or Unknow Payment Details",z.WIRE_MPP_TIMEOUT="MPP Timeout",z.WIRE_FINAL_INCORRECT_CLTV_EXPIRY="Incorrect CLTV Expiry",z.WIRE_FINAL_INCORRECT_HTLC_AMOUNT="Incorrect HTLC Amount",ae;var z})(),b=(()=>{return(z=b||(b={})).CHANNELD_NORMAL="Active",z.OPENINGD="Opening",z.CHANNELD_AWAITING_LOCKIN="Pending Open",z.CHANNELD_SHUTTING_DOWN="Shutting Down",z.CLOSINGD_SIGEXCHANGE="Closing: Sig Exchange",z.CLOSINGD_COMPLETE="Closed",z.AWAITING_UNILATERAL="Awaiting Unilateral Close",z.FUNDING_SPEND_SEEN="Funding Spend Seen",z.ONCHAIN="Onchain",z.DUALOPEND_OPEN_INIT="Dual Open Initialized",z.DUALOPEND_AWAITING_LOCKIN="Dual Pending Open",b;var z})(),i=(()=>{return(z=i||(i={})).INITIATED="Initiated",z.PREIMAGE_REVEALED="Preimage Revealed",z.HTLC_PUBLISHED="HTLC Published",z.SUCCESS="Successful",z.FAILED="Failed",z.INVOICE_SETTLED="Invoice Settled",i;var z})(),a=(()=>{return(z=a||(a={})).LOOP_OUT="LOOP_OUT",z.LOOP_IN="LOOP_IN",a;var z})(),p=(()=>{return(z=p||(p={})).SWAP_OUT="SWAP_OUT",z.SWAP_IN="SWAP_IN",p;var z})(),u=(()=>{return(z=u||(u={}))["swap.created"]="Swap Created",z["swap.expired"]="Swap Expired",z["invoice.set"]="Invoice Set",z["invoice.paid"]="Invoice Paid",z["invoice.pending"]="Invoice Pending",z["invoice.settled"]="Invoice Settled",z["invoice.failedToPay"]="Invoice Failed To Pay",z["channel.created"]="Channel Created",z["transaction.failed"]="Transaction Failed",z["transaction.mempool"]="Transaction Mempool",z["transaction.claimed"]="Transaction Claimed",z["transaction.refunded"]="Transaction Refunded",z["transaction.confirmed"]="Transaction Confirmed",z["swap.refunded"]="Swap Refunded",z["swap.abandoned"]="Swap Abandoned",u;var z})();const _=[{name:"Jan",days:31},{name:"Feb",days:28},{name:"Mar",days:31},{name:"Apr",days:30},{name:"May",days:31},{name:"Jun",days:30},{name:"Jul",days:31},{name:"Aug",days:31},{name:"Sep",days:30},{name:"Oct",days:31},{name:"Nov",days:30},{name:"Dec",days:31}],L=["MONTHLY","YEARLY"];var I=(()=>{return(z=I||(I={})).LOOP="LOOP",z.BOLTZ="BOLTZ",z.OFFERS="OFFERS",I;var z})();const x=["password","changeme","moneyprintergobrrr"];var r=(()=>{return(z=r||(r={})).UN_INITIATED="UN_INITIATED",z.INITIATED="INITIATED",z.COMPLETED="COMPLETED",z.ERROR="ERROR",r;var z})();const v={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_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...",LOG_OUT:"Logging Out..."};var G=(()=>{return(z=G||(G={})).INVOICE="INVOICE",z.OFFER="OFFER",z.KEYSEND="KEYSEND",G;var z})(),F=(()=>{return(z=F||(F={})).FEES="FEES",z.EVENTS="EVENTS",F;var z})(),U=(()=>{return(z=U||(U={})).VOID="VOID",z.SET_API_URL_ECL="SET_API_URL_ECL",z.UPDATE_SELECTED_NODE_OPTIONS="UPDATE_SELECTED_NODE_OPTIONS",z.UPDATE_API_CALL_STATUS_ROOT="UPDATE_API_CALL_STATUS_ROOT",z.RESET_ROOT_STORE="RESET_ROOT_STORE",z.CLOSE_ALL_DIALOGS="CLOSE_ALL_DIALOGS",z.OPEN_SNACK_BAR="OPEN_SNACKBAR",z.OPEN_SPINNER="OPEN_SPINNER",z.CLOSE_SPINNER="CLOSE_SPINNER",z.OPEN_ALERT="OPEN_ALERT",z.CLOSE_ALERT="CLOSE_ALERT",z.OPEN_CONFIRMATION="OPEN_CONFIRMATION",z.CLOSE_CONFIRMATION="CLOSE_CONFIRMATION",z.SHOW_PUBKEY="SHOW_PUBKEY",z.FETCH_CONFIG="FETCH_CONFIG",z.SHOW_CONFIG="SHOW_CONFIG",z.FETCH_STORE="FETCH_STORE",z.SET_STORE="SET_STORE",z.FETCH_RTL_CONFIG="FETCH_RTL_CONFIG",z.SET_RTL_CONFIG="SET_RTL_CONFIG",z.SAVE_SSO="SAVE_SSO",z.SAVE_SETTINGS="SAVE_SETTINGS",z.TWO_FA_SAVE_SETTINGS="TWO_FA_SAVE_SETTINGS",z.SET_SELECTED_NODE="SET_SELECTED_NODE",z.UPDATE_ROOT_NODE_SETTINGS="UPDATE_ROOT_NODE_SETTINGS",z.UPDATE_SERVICE_SETTINGS="UPDATE_SERVICE_SETTINGS",z.SET_NODE_DATA="SET_NODE_DATA",z.IS_AUTHORIZED="IS_AUTHORIZED",z.IS_AUTHORIZED_RES="IS_AUTHORIZED_RES",z.LOGIN="LOGIN",z.VERIFY_TWO_FA="VERIFY_TWO_FA",z.LOGOUT="LOGOUT",z.RESET_PASSWORD="RESET_PASSWORD",z.RESET_PASSWORD_RES="RESET_PASSWORD_RES",z.FETCH_FILE="FETCH_FILE",z.SHOW_FILE="SHOW_FILE",U;var z})(),ye=(()=>{return(z=ye||(ye={})).RESET_LND_STORE="RESET_LND_STORE",z.UPDATE_API_CALL_STATUS_LND="UPDATE_API_CALL_STATUS_LND",z.SET_CHILD_NODE_SETTINGS_LND="SET_CHILD_NODE_SETTINGS_LND",z.FETCH_INFO_LND="FETCH_INFO_LND",z.SET_INFO_LND="SET_INFO_LND",z.FETCH_PEERS_LND="FETCH_PEERS_LND",z.SET_PEERS_LND="SET_PEERS_LND",z.SAVE_NEW_PEER_LND="SAVE_NEW_PEER_LND",z.NEWLY_ADDED_PEER_LND="NEWLY_ADDED_PEER_LND",z.DETACH_PEER_LND="DETACH_PEER_LND",z.REMOVE_PEER_LND="REMOVE_PEER_LND",z.SAVE_NEW_INVOICE_LND="SAVE_NEW_INVOICE_LND",z.NEWLY_SAVED_INVOICE_LND="NEWLY_SAVED_INVOICE_LND",z.ADD_INVOICE_LND="ADD_INVOICE_LND",z.FETCH_FEES_LND="FETCH_FEES_LND",z.SET_FEES_LND="SET_FEES_LND",z.FETCH_BLOCKCHAIN_BALANCE_LND="FETCH_BLOCKCHAIN_BALANCE_LND",z.SET_BLOCKCHAIN_BALANCE_LND="SET_BLOCKCHAIN_BALANCE_LND",z.FETCH_NETWORK_LND="FETCH_NETWORK_LND",z.SET_NETWORK_LND="SET_NETWORK_LND",z.FETCH_CHANNELS_LND="FETCH_CHANNELS_LND",z.FETCH_PENDING_CHANNELS_LND="FETCH_PENDING_CHANNELS_LND",z.FETCH_CLOSED_CHANNELS_LND="FETCH_CLOSED_CHANNELS_LND",z.SET_CHANNELS_LND="SET_CHANNELS_LND",z.SET_PENDING_CHANNELS_LND="SET_PENDING_CHANNELS_LND",z.SET_CLOSED_CHANNELS_LND="SET_CLOSED_CHANNELS_LND",z.UPDATE_CHANNEL_LND="UPDATE_CHANNEL_LND",z.SAVE_NEW_CHANNEL_LND="SAVE_NEW_CHANNEL_LND",z.CLOSE_CHANNEL_LND="CLOSE_CHANNEL_LND",z.REMOVE_CHANNEL_LND="REMOVE_CHANNEL_LND",z.BACKUP_CHANNELS_LND="BACKUP_CHANNELS_LND",z.VERIFY_CHANNEL_LND="VERIFY_CHANNEL_LND",z.BACKUP_CHANNELS_RES_LND="BACKUP_CHANNELS_RES_LND",z.VERIFY_CHANNEL_RES_LND="VERIFY_CHANNEL_RES_LND",z.RESTORE_CHANNELS_LIST_LND="RESTORE_CHANNELS_LIST_LND",z.SET_RESTORE_CHANNELS_LIST_LND="SET_RESTORE_CHANNELS_LIST_LND",z.RESTORE_CHANNELS_LND="RESTORE_CHANNELS_LND",z.RESTORE_CHANNELS_RES_LND="RESTORE_CHANNELS_RES_LND",z.FETCH_INVOICES_LND="FETCH_INVOICES_LND",z.SET_INVOICES_LND="SET_INVOICES_LND",z.UPDATE_INVOICE_LND="UPDATE_INVOICE_LND",z.UPDATE_PAYMENT_LND="UPDATE_PAYMENT_LND",z.SET_TOTAL_INVOICES_LND="SET_TOTAL_INVOICES_LND",z.FETCH_TRANSACTIONS_LND="FETCH_TRANSACTIONS_LND",z.SET_TRANSACTIONS_LND="SET_TRANSACTIONS_LND",z.FETCH_UTXOS_LND="FETCH_UTXOS_LND",z.SET_UTXOS_LND="SET_UTXOS_LND",z.FETCH_PAYMENTS_LND="FETCH_PAYMENTS_LND",z.SET_PAYMENTS_LND="SET_PAYMENTS_LND",z.SEND_PAYMENT_LND="SEND_PAYMENT_LND",z.SEND_PAYMENT_STATUS_LND="SEND_PAYMENT_STATUS_LND",z.FETCH_GRAPH_NODE_LND="FETCH_GRAPH_NODE_LND",z.SET_GRAPH_NODE_LND="SET_GRAPH_NODE_LND",z.GET_NEW_ADDRESS_LND="GET_NEW_ADDRESS_LND",z.SET_NEW_ADDRESS_LND="SET_NEW_ADDRESS_LND",z.SET_CHANNEL_TRANSACTION_LND="SET_CHANNEL_TRANSACTION_LND",z.SET_CHANNEL_TRANSACTION_RES_LND="SET_CHANNEL_TRANSACTION_RES_LND",z.GEN_SEED_LND="GEN_SEED_LND",z.GEN_SEED_RESPONSE_LND="GEN_SEED_RESPONSE_LND",z.INIT_WALLET_LND="INIT_WALLET_LND",z.INIT_WALLET_RESPONSE_LND="INIT_WALLET_RESPONSE_LND",z.UNLOCK_WALLET_LND="UNLOCK_WALLET_LND",z.PEER_LOOKUP_LND="PEER_LOOKUP_LND",z.CHANNEL_LOOKUP_LND="CHANNEL_LOOKUP_LND",z.INVOICE_LOOKUP_LND="INVOICE_LOOKUP_LND",z.PAYMENT_LOOKUP_LND="PAYMENT_LOOKUP_LND",z.SET_LOOKUP_LND="SET_LOOKUP_LND",z.GET_FORWARDING_HISTORY_LND="GET_FORWARDING_HISTORY_LND",z.SET_FORWARDING_HISTORY_LND="SET_FORWARDING_HISTORY_LND",z.GET_QUERY_ROUTES_LND="GET_QUERY_ROUTES_LND",z.SET_QUERY_ROUTES_LND="SET_QUERY_ROUTES_LND",z.GET_ALL_LIGHTNING_TRANSATIONS_LND="GET_ALL_LIGHTNING_TRANSATIONS_LND",z.SET_ALL_LIGHTNING_TRANSATIONS_LND="SET_ALL_LIGHTNING_TRANSATIONS_LND",ye;var z})(),Ce=(()=>{return(z=Ce||(Ce={})).RESET_CLN_STORE="RESET_CLN_STORE",z.UPDATE_API_CALL_STATUS_CLN="UPDATE_API_CALL_STATUS_CLN",z.SET_CHILD_NODE_SETTINGS_CLN="SET_CHILD_NODE_SETTINGS_CLN",z.FETCH_INFO_CLN="FETCH_INFO_CL_CLN",z.SET_INFO_CLN="SET_INFO_CLN",z.FETCH_FEES_CLN="FETCH_FEES_CLN",z.SET_FEES_CLN="SET_FEES_CLN",z.FETCH_FEE_RATES_CLN="FETCH_FEE_RATES_CLN",z.SET_FEE_RATES_CLN="SET_FEE_RATES_CLN",z.FETCH_BALANCE_CLN="FETCH_BALANCE_CLN",z.SET_BALANCE_CLN="SET_BALANCE_CLN",z.FETCH_LOCAL_REMOTE_BALANCE_CLN="FETCH_LOCAL_REMOTE_BALANCE_CLN",z.SET_LOCAL_REMOTE_BALANCE_CLN="SET_LOCAL_REMOTE_BALANCE_CLN",z.GET_NEW_ADDRESS_CLN="GET_NEW_ADDRESS_CLN",z.SET_NEW_ADDRESS_CLN="SET_NEW_ADDRESS_CLN",z.FETCH_UTXOS_CLN="FETCH_UTXOS_CLN",z.SET_UTXOS_CLN="SET_UTXOS_CLN",z.FETCH_PEERS_CLN="FETCH_PEERS_CLN",z.SET_PEERS_CLN="SET_PEERS_CLN",z.SAVE_NEW_PEER_CLN="SAVE_NEW_PEER_CLN",z.NEWLY_ADDED_PEER_CLN="NEWLY_ADDED_PEER_CLN",z.ADD_PEER_CLN="ADD_PEER_CLN",z.DETACH_PEER_CLN="DETACH_PEER_CLN",z.REMOVE_PEER_CLN="REMOVE_PEER_CLN",z.FETCH_CHANNELS_CLN="FETCH_CHANNELS_CLN",z.SET_CHANNELS_CLN="SET_CHANNELS_CLN",z.UPDATE_CHANNEL_CLN="UPDATE_CHANNEL_CLN",z.SAVE_NEW_CHANNEL_CLN="SAVE_NEW_CHANNEL_CLN",z.CLOSE_CHANNEL_CLN="CLOSE_CHANNEL_CLN",z.REMOVE_CHANNEL_CLN="REMOVE_CHANNEL_CLN",z.FETCH_PAYMENTS_CLN="FETCH_PAYMENTS_CLN",z.SET_PAYMENTS_CLN="SET_PAYMENTS_CLN",z.SEND_PAYMENT_CLN="SEND_PAYMENT_CLN",z.SEND_PAYMENT_STATUS_CLN="SEND_PAYMENT_STATUS_CLN",z.GET_QUERY_ROUTES_CLN="GET_QUERY_ROUTES_CLN",z.SET_QUERY_ROUTES_CLN="SET_QUERY_ROUTES_CLN",z.PEER_LOOKUP_CLN="PEER_LOOKUP_CLN",z.CHANNEL_LOOKUP_CLN="CHANNEL_LOOKUP_CLN",z.INVOICE_LOOKUP_CLN="INVOICE_LOOKUP_CLN",z.SET_LOOKUP_CLN="SET_LOOKUP_CLN",z.GET_FORWARDING_HISTORY_CLN="GET_FORWARDING_HISTORY_CLN",z.SET_FORWARDING_HISTORY_CLN="SET_FORWARDING_HISTORY_CLN",z.GET_FAILED_FORWARDING_HISTORY_CLN="GET_FAILED_FORWARDING_HISTORY_CLN",z.SET_FAILED_FORWARDING_HISTORY_CLN="SET_FAILED_FORWARDING_HISTORY_CLN",z.GET_LOCAL_FAILED_FORWARDING_HISTORY_CLN="GET_LOCAL_FAILED_FORWARDING_HISTORY_CLN",z.SET_LOCAL_FAILED_FORWARDING_HISTORY_CLN="SET_LOCAL_FAILED_FORWARDING_HISTORY_CLN",z.FETCH_INVOICES_CLN="FETCH_INVOICES_CLN",z.SET_INVOICES_CLN="SET_INVOICES_CLN",z.SAVE_NEW_INVOICE_CLN="SAVE_NEW_INVOICE_CLN",z.ADD_INVOICE_CLN="ADD_INVOICE_CLN",z.UPDATE_INVOICE_CLN="UPDATE_INVOICE_CLN",z.DELETE_EXPIRED_INVOICE_CLN="DELETE_EXPIRED_INVOICE_CLN",z.SET_CHANNEL_TRANSACTION_CLN="SET_CHANNEL_TRANSACTION_CLN",z.SET_CHANNEL_TRANSACTION_RES_CLN="SET_CHANNEL_TRANSACTION_RES_CLN",z.FETCH_OFFER_INVOICE_CLN="FETCH_OFFER_INVOICE_CLN",z.SET_OFFER_INVOICE_CLN="SET_OFFER_INVOICE_CLN",z.FETCH_OFFERS_CLN="FETCH_OFFERS_CLN",z.SET_OFFERS_CLN="SET_OFFERS_CLN",z.SAVE_NEW_OFFER_CLN="SAVE_NEW_OFFER_CLN",z.ADD_OFFER_CLN="ADD_OFFER_CLN",z.DISABLE_OFFER_CLN="DISABLE_OFFER_CLN",z.UPDATE_OFFER_CLN="UPDATE_OFFER_CLN",z.FETCH_OFFER_BOOKMARKS_CLN="FETCH_OFFER_BOOKMARKS_CLN",z.SET_OFFER_BOOKMARKS_CLN="SET_OFFER_BOOKMARKS_CLN",z.ADD_UPDATE_OFFER_BOOKMARK_CLN="ADD_UPDATE_OFFER_BOOKMARK_CLN",z.DELETE_OFFER_BOOKMARK_CLN="DELETE_OFFER_BOOKMARK_CLN",z.REMOVE_OFFER_BOOKMARK_CLN="REMOVE_OFFER_BOOKMARK_CL",Ce;var z})(),Be=(()=>{return(z=Be||(Be={})).RESET_ECL_STORE="RESET_ECL_STORE",z.UPDATE_API_CALL_STATUS_ECL="UPDATE_API_CALL_STATUS_ECL",z.SET_CHILD_NODE_SETTINGS_ECL="SET_CHILD_NODE_SETTINGS_ECL",z.FETCH_INFO_ECL="FETCH_INFO_ECL",z.SET_INFO_ECL="SET_INFO_ECL",z.FETCH_FEES_ECL="FETCH_FEES_ECL",z.SET_FEES_ECL="SET_FEES_ECL",z.FETCH_CHANNELS_ECL="FETCH_CHANNELS_ECL",z.SET_ACTIVE_CHANNELS_ECL="SET_ACTIVE_CHANNELS_ECL",z.SET_PENDING_CHANNELS_ECL="SET_PENDING_CHANNELS_ECL",z.SET_INACTIVE_CHANNELS_ECL="SET_INACTIVE_CHANNELS_ECL",z.FETCH_ONCHAIN_BALANCE_ECL="FETCH_ONCHAIN_BALANCE_ECL",z.SET_ONCHAIN_BALANCE_ECL="SET_ONCHAIN_BALANCE_ECL",z.FETCH_LIGHTNING_BALANCE_ECL="FETCH_LIGHTNING_BALANCE_ECL",z.SET_LIGHTNING_BALANCE_ECL="SET_LIGHTNING_BALANCE_ECL",z.SET_CHANNELS_STATUS_ECL="SET_CHANNELS_STATUS_ECL",z.FETCH_PEERS_ECL="FETCH_PEERS_ECL",z.SET_PEERS_ECL="SET_PEERS_ECL",z.SAVE_NEW_PEER_ECL="SAVE_NEW_PEER_ECL",z.NEWLY_ADDED_PEER_ECL="NEWLY_ADDED_PEER_ECL",z.ADD_PEER_ECL="ADD_PEER_ECL",z.DETACH_PEER_ECL="DETACH_PEER_ECL",z.REMOVE_PEER_ECL="REMOVE_PEER_ECL",z.GET_NEW_ADDRESS_ECL="GET_NEW_ADDRESS_ECL",z.SET_NEW_ADDRESS_ECL="SET_NEW_ADDRESS_ECL",z.SAVE_NEW_CHANNEL_ECL="SAVE_NEW_CHANNEL_ECL",z.UPDATE_CHANNEL_ECL="UPDATE_CHANNEL_ECL",z.CLOSE_CHANNEL_ECL="CLOSE_CHANNEL_ECL",z.REMOVE_CHANNEL_ECL="REMOVE_CHANNEL_ECL",z.FETCH_PAYMENTS_ECL="FETCH_PAYMENTS_ECL",z.SET_PAYMENTS_ECL="SET_PAYMENTS_ECL",z.GET_QUERY_ROUTES_ECL="GET_QUERY_ROUTES_ECL",z.SET_QUERY_ROUTES_ECL="SET_QUERY_ROUTES_ECL",z.SEND_PAYMENT_ECL="SEND_PAYMENT_ECL",z.SEND_PAYMENT_STATUS_ECL="SEND_PAYMENT_STATUS_ECL",z.FETCH_TRANSACTIONS_ECL="FETCH_TRANSACTIONS_ECL",z.SET_TRANSACTIONS_ECL="SET_TRANSACTIONS_ECL",z.SEND_ONCHAIN_FUNDS_ECL="SEND_ONCHAIN_FUNDS_ECL",z.SEND_ONCHAIN_FUNDS_RES_ECL="SEND_ONCHAIN_FUNDS_RES_ECL",z.FETCH_INVOICES_ECL="FETCH_INVOICES_ECL",z.SET_INVOICES_ECL="SET_INVOICES_ECL",z.SET_TOTAL_INVOICES_ECL="SET_TOTAL_INVOICES_ECL",z.CREATE_INVOICE_ECL="CREATE_INVOICE_ECL",z.ADD_INVOICE_ECL="ADD_INVOICE_ECL",z.UPDATE_INVOICE_ECL="UPDATE_INVOICE_ECL",z.PEER_LOOKUP_ECL="PEER_LOOKUP_ECL",z.INVOICE_LOOKUP_ECL="INVOICE_LOOKUP_ECL",z.SET_LOOKUP_ECL="SET_LOOKUP_ECL",z.UPDATE_CHANNEL_STATE_ECL="UPDATE_CHANNEL_STATE_ECL",z.UPDATE_RELAYED_PAYMENT_ECL="UPDATE_RELAYED_PAYMENT_ECL",Be;var z})();const ze=[{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 Ie=(()=>{return(z=Ie||(Ie={})).gossip_queries_ex="Gossip queries including additional information",z.option_anchor_outputs="Anchor outputs",z.option_data_loss_protect="Extra channel re-establish fields",z.var_onion_optin="Variable-length routing onion payloads",z.option_static_remotekey="Static key for remote output",z.option_support_large_channel="Create large channels",z.option_anchors_zero_fee_htlc_tx="Anchor commitment type with zero fee HTLC transactions",z.payment_secret="Payment secret field",z.option_shutdown_anysegwit="Future segwit versions allowed in shutdown",z.basic_mpp="Basic multi-part payments",z.gossip_queries="More sophisticated gossip control",z.option_upfront_shutdown_script="Shutdown script pubkey when opening channel",z.anchors_zero_fee_htlc_tx="Anchor commitment type with zero fee HTLC transactions",z.amp="AMP",Ie;var z})(),K=(()=>{return(z=K||(K={}))["data-loss-protect"]="Extra channel re-establish fields",z["upfront-shutdown-script"]="Shutdown script pubkey when opening channel",z["gossip-queries"]="More sophisticated gossip control",z["tlv-onion"]="Variable-length routing onion payloads",z["ext-gossip-queries"]="Gossip queries can include additional information",z["static-remote-key"]="Static key for remote output",z["payment-addr"]="Payment secret field",z["multi-path-payments"]="Basic multi-part payments",z["wumbo-channels"]="Wumbo Channels",z.anchors="Anchor outputs",z["anchors-zero-fee-htlc-tx"]="Anchor commitment type with zero fee HTLC transactions",z.amp="AMP",K;var z})();const Me=[{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 we=(()=>{return(z=we||(we={})).OFFERED="offered",z.SETTLED="settled",z.FAILED="failed",z.LOCAL_FAILED="local_failed",we;var z})()},8104:(Ve,Q,m)=>{"use strict";m.d(Q,{D:()=>re});var e=m(8138),t=m(1135),y=m(7579),C=m(2843),o=m(9646),M=m(590),l=m(5577),N=m(2722),s=m(4004),D=m(262),A=m(1365),O=m(2340),E=m(7731),P=m(1786),w=m(7861),Z=m(6523),j=m(6529),W=m(5e3),ie=m(5620),ee=m(5043),_e=m(7261),ce=m(9808);let re=(()=>{class de{constructor(ae,b,i,a,p){this.httpClient=ae,this.store=b,this.logger=i,this.snackBar=a,this.titleCasePipe=p,this.APIUrl=O.T5,this.lnImplementation="",this.lnImplementationUpdated=new t.X(null),this.unSubs=[new y.x,new y.x,new y.x,new y.x,new y.x,new y.x,new y.x,new y.x,new y.x,new y.x,new y.x,new y.x,new y.x]}setLnImplementation(ae){this.lnImplementation=ae.toLowerCase(),this.lnImplementationUpdated.next(this.lnImplementation)}getFiatRates(){return this.httpClient.get(O.NZ.CONF_API+"/rates")}decodePayment(ae,b){return this.lnImplementationUpdated.pipe((0,M.P)(i=>null!==i),(0,l.z)(i=>{let a=this.APIUrl+"/"+i+O.NZ.PAYMENTS_API+"/decode/"+ae;return"cln"===i&&(a=this.APIUrl+"/"+i+O.NZ.UTILITY_API+"/decode/"+ae),this.store.dispatch((0,w.ac)({payload:E.m6.DECODE_PAYMENT})),this.httpClient.get(a).pipe((0,N.R)(this.unSubs[0]),(0,s.U)(p=>(this.store.dispatch((0,w.uO)({payload:E.m6.DECODE_PAYMENT})),p)),(0,D.K)(p=>(b?this.handleErrorWithoutAlert("Decode Payment",E.m6.DECODE_PAYMENT,p):this.handleErrorWithAlert("decodePaymentData",E.m6.DECODE_PAYMENT,"Decode Payment Failed",a,p),(0,C._)(()=>new Error(this.extractErrorMessage(p))))))}))}decodePayments(ae){return this.lnImplementationUpdated.pipe((0,M.P)(b=>null!==b),(0,l.z)(b=>{let i="",a="";return"ecl"===b?(i=this.APIUrl+"/"+b+O.NZ.PAYMENTS_API+"/getsentinfos",a=E.m6.GET_SENT_PAYMENTS):"cln"===b?(i=this.APIUrl+"/"+b+O.NZ.UTILITY_API,a=E.m6.DECODE_PAYMENTS):(i=this.APIUrl+"/"+b+O.NZ.PAYMENTS_API,a=E.m6.DECODE_PAYMENTS),this.store.dispatch((0,w.ac)({payload:a})),this.httpClient.post(i,{payments:ae}).pipe((0,N.R)(this.unSubs[1]),(0,s.U)(p=>(this.store.dispatch((0,w.uO)({payload:a})),p)),(0,D.K)(p=>(this.handleErrorWithAlert("decodePaymentsData",a,a+" Failed",i,p),(0,C._)(()=>new Error(this.extractErrorMessage(p))))))}))}getAliasesFromPubkeys(ae,b){return this.lnImplementationUpdated.pipe((0,M.P)(i=>null!==i),(0,l.z)(i=>{if(b){const a=(new e.LE).set("pubkeys",ae);return this.httpClient.get(this.APIUrl+"/"+i+O.NZ.NETWORK_API+"/nodes",{params:a})}return this.httpClient.get(this.APIUrl+"/"+i+O.NZ.NETWORK_API+"/node/"+ae)}))}signMessage(ae){return this.lnImplementationUpdated.pipe((0,M.P)(b=>null!==b),(0,l.z)(b=>{let i=this.APIUrl+"/"+b+O.NZ.MESSAGE_API+"/sign";return"cln"===b&&(i=this.APIUrl+"/"+b+O.NZ.UTILITY_API+"/sign"),this.store.dispatch((0,w.ac)({payload:E.m6.SIGN_MESSAGE})),this.httpClient.post(i,{message:ae}).pipe((0,N.R)(this.unSubs[2]),(0,s.U)(a=>(this.store.dispatch((0,w.uO)({payload:E.m6.SIGN_MESSAGE})),a)),(0,D.K)(a=>(this.handleErrorWithAlert("signMessageData",E.m6.SIGN_MESSAGE,"Sign Message Failed",i,a),(0,C._)(()=>new Error(this.extractErrorMessage(a))))))}))}verifyMessage(ae,b){return this.lnImplementationUpdated.pipe((0,M.P)(i=>null!==i),(0,l.z)(i=>{let a=this.APIUrl+"/"+i+O.NZ.MESSAGE_API+"/verify";return"cln"===i&&(a=this.APIUrl+"/"+i+O.NZ.UTILITY_API+"/verify"),this.store.dispatch((0,w.ac)({payload:E.m6.VERIFY_MESSAGE})),this.httpClient.post(a,{message:ae,signature:b}).pipe((0,N.R)(this.unSubs[3]),(0,s.U)(p=>(this.store.dispatch((0,w.uO)({payload:E.m6.VERIFY_MESSAGE})),p)),(0,D.K)(p=>(this.handleErrorWithAlert("verifyMessageData",E.m6.VERIFY_MESSAGE,"Verify Message Failed",a,p),(0,C._)(()=>new Error(this.extractErrorMessage(p))))))}))}bumpFee(ae,b,i,a){return this.lnImplementationUpdated.pipe((0,M.P)(p=>null!==p),(0,l.z)(p=>{const u={txid:ae,outputIndex:b};return i&&(u.targetConf=i),a&&(u.satPerByte=a),this.store.dispatch((0,w.ac)({payload:E.m6.BUMP_FEE})),this.httpClient.post(this.APIUrl+"/"+p+O.NZ.WALLET_API+"/bumpfee",u).pipe((0,N.R)(this.unSubs[4]),(0,s.U)(_=>(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."),_)),(0,D.K)(_=>(this.handleErrorWithoutAlert("Bump Fee",E.m6.BUMP_FEE,_),(0,C._)(()=>new Error(this.extractErrorMessage(_))))))}))}labelUTXO(ae,b,i=!0){return this.lnImplementationUpdated.pipe((0,M.P)(a=>null!==a),(0,l.z)(a=>{const p={txid:ae,label:b,overwrite:i};return this.store.dispatch((0,w.ac)({payload:E.m6.LABEL_UTXO})),this.httpClient.post(this.APIUrl+"/"+a+O.NZ.WALLET_API+"/label",p).pipe((0,N.R)(this.unSubs[5]),(0,s.U)(u=>(this.store.dispatch((0,w.uO)({payload:E.m6.LABEL_UTXO})),u)),(0,D.K)(u=>(this.handleErrorWithoutAlert("Lease UTXO",E.m6.LABEL_UTXO,u),(0,C._)(()=>new Error(this.extractErrorMessage(u))))))}))}leaseUTXO(ae,b){return this.lnImplementationUpdated.pipe((0,M.P)(i=>null!==i),(0,l.z)(i=>{const a={txid:ae,outputIndex:b};return this.store.dispatch((0,w.ac)({payload:E.m6.LEASE_UTXO})),this.httpClient.post(this.APIUrl+"/"+i+O.NZ.WALLET_API+"/lease",a).pipe((0,N.R)(this.unSubs[6]),(0,s.U)(p=>{this.store.dispatch((0,w.uO)({payload:E.m6.LEASE_UTXO})),this.store.dispatch((0,Z.mC)()),this.store.dispatch((0,Z.Ly)());const u=new Date(1e3*p.expiration),_=Math.round(u.getTime())-60*u.getTimezoneOffset();this.snackBar.open("The UTXO has been leased till "+new Date(_).toString().substring(4,21).replace(" ","/").replace(" ","/").toUpperCase()+".")}),(0,D.K)(p=>(this.handleErrorWithoutAlert("Lease UTXO",E.m6.LEASE_UTXO,p),(0,C._)(()=>new Error(this.extractErrorMessage(p))))))}))}getForwardingHistory(ae,b){return this.lnImplementationUpdated.pipe((0,M.P)(i=>null!==i),(0,l.z)(i=>{const a={end_time:b,start_time:ae};return this.store.dispatch((0,w.ac)({payload:E.m6.GET_FORWARDING_HISTORY})),this.httpClient.post(this.APIUrl+"/"+i+O.NZ.SWITCH_API,a).pipe((0,N.R)(this.unSubs[7]),(0,A.M)(this.store.select(j._f)),(0,l.z)(([p,u])=>{if(p.forwarding_events){const _=[...u.channels,...u.closedChannels];p.forwarding_events.forEach(L=>{if(_&&_.length>0)for(let I=0;I<_.length;I++){if(_[I].chan_id.toString()===L.chan_id_in&&(L.alias_in=_[I].remote_alias?_[I].remote_alias:L.chan_id_in,L.alias_out)||_[I].chan_id.toString()===L.chan_id_out&&(L.alias_out=_[I].remote_alias?_[I].remote_alias:L.chan_id_out,L.alias_in))return;I===_.length-1&&(L.alias_in||(L.alias_in=L.chan_id_in),L.alias_out||(L.alias_out=L.chan_id_out))}else L.alias_in=L.chan_id_in,L.alias_out=L.chan_id_out})}else p={};return this.store.dispatch((0,w.uO)({payload:E.m6.GET_FORWARDING_HISTORY})),(0,o.of)(p)}),(0,D.K)(p=>(this.handleErrorWithAlert("getForwardingHistoryData",E.m6.GET_FORWARDING_HISTORY,"Forwarding History Failed",this.APIUrl+"/"+i+O.NZ.SWITCH_API,p),(0,C._)(()=>new Error(this.extractErrorMessage(p))))))}))}listNetworkNodes(ae=""){return this.lnImplementationUpdated.pipe((0,M.P)(b=>null!==b),(0,l.z)(b=>(this.store.dispatch((0,w.ac)({payload:E.m6.LIST_NETWORK_NODES})),this.httpClient.get(this.APIUrl+"/"+b+O.NZ.NETWORK_API+"/listNodes"+ae).pipe((0,N.R)(this.unSubs[8]),(0,l.z)(i=>(this.store.dispatch((0,w.uO)({payload:E.m6.LIST_NETWORK_NODES})),(0,o.of)(i))),(0,D.K)(i=>(this.handleErrorWithoutAlert("List Network Nodes",E.m6.LIST_NETWORK_NODES,i),(0,C._)(()=>this.extractErrorMessage(i))))))))}listConfigs(){return this.lnImplementationUpdated.pipe((0,M.P)(ae=>null!==ae),(0,l.z)(ae=>(this.store.dispatch((0,w.ac)({payload:E.m6.GET_LIST_CONFIGS})),this.httpClient.get(this.APIUrl+"/"+ae+O.NZ.UTILITY_API+"/listConfigs").pipe((0,N.R)(this.unSubs[9]),(0,l.z)(b=>(this.store.dispatch((0,w.uO)({payload:E.m6.GET_LIST_CONFIGS})),(0,o.of)(b))),(0,D.K)(b=>(this.handleErrorWithoutAlert("List Configurations",E.m6.GET_LIST_CONFIGS,b),(0,C._)(()=>this.extractErrorMessage(b))))))))}getOrUpdateFunderPolicy(ae,b,i,a,p,u){return this.lnImplementationUpdated.pipe((0,M.P)(_=>null!==_),(0,l.z)(_=>{const L=ae?{policy:ae,policy_mod:b,lease_fee_base_msat:i,lease_fee_basis:a,channel_fee_max_base_msat:p,channel_fee_max_proportional_thousandths:u}:null;return this.store.dispatch((0,w.ac)({payload:E.m6.GET_FUNDER_POLICY})),this.httpClient.post(this.APIUrl+"/"+_+O.NZ.CHANNELS_API+"/funderUpdate",L).pipe((0,N.R)(this.unSubs[10]),(0,s.U)(I=>(this.store.dispatch((0,w.uO)({payload:E.m6.GET_FUNDER_POLICY})),L&&this.store.dispatch((0,w.jW)({payload:"Funder Policy Updated Successfully!"})),I)),(0,D.K)(I=>(this.handleErrorWithoutAlert("Funder Policy",E.m6.GET_FUNDER_POLICY,I),(0,C._)(()=>new Error(this.extractErrorMessage(I))))))}))}extractErrorMessage(ae,b="Unknown Error."){return this.titleCasePipe.transform(ae.error.text&&"string"==typeof ae.error.text&&ae.error.text.includes('<!DOCTYPE html><html lang="en">')?"API Route Does Not Exist.":ae.error&&ae.error.error&&ae.error.error.error&&ae.error.error.error.error&&ae.error.error.error.error.error&&"string"==typeof ae.error.error.error.error.error?ae.error.error.error.error.error:ae.error&&ae.error.error&&ae.error.error.error&&ae.error.error.error.error&&"string"==typeof ae.error.error.error.error?ae.error.error.error.error:ae.error&&ae.error.error&&ae.error.error.error&&"string"==typeof ae.error.error.error?ae.error.error.error:ae.error&&ae.error.error&&"string"==typeof ae.error.error?ae.error.error:ae.error&&"string"==typeof ae.error?ae.error:ae.error&&ae.error.error&&ae.error.error.error&&ae.error.error.error.error&&ae.error.error.error.error.message&&"string"==typeof ae.error.error.error.error.message?ae.error.error.error.error.message:ae.error&&ae.error.error&&ae.error.error.error&&ae.error.error.error.message&&"string"==typeof ae.error.error.error.message?ae.error.error.error.message:ae.error&&ae.error.error&&ae.error.error.message&&"string"==typeof ae.error.error.message?ae.error.error.message:ae.error&&ae.error.message&&"string"==typeof ae.error.message?ae.error.message:ae.message&&"string"==typeof ae.message?ae.message:b)}handleErrorWithoutAlert(ae,b,i){i.error.text&&"string"==typeof i.error.text&&i.error.text.includes('<!DOCTYPE html><html lang="en">')&&(i={status:403,error:{message:"API Route Does Not Exist."}}),this.logger.error("ERROR IN: "+ae+"\n"+JSON.stringify(i)),401===i.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:b})),this.store.dispatch((0,w.qi)({payload:{action:ae,status:E.Bn.ERROR,statusCode:i.status.toString(),message:this.extractErrorMessage(i)}})))}handleErrorWithAlert(ae,b,i,a,p){if(this.logger.error(p),401===p.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:b}));const u=this.extractErrorMessage(p);this.store.dispatch((0,w.qR)({payload:{data:{type:"ERROR",alertTitle:i,message:{code:p.status?p.status:"Unknown Error",message:u,URL:a},component:P.H}}})),this.store.dispatch((0,w.qi)({payload:{action:ae,status:E.Bn.ERROR,statusCode:p.status.toString(),message:u,URL:a}}))}}ngOnDestroy(){this.unSubs.forEach(ae=>{ae.next(null),ae.complete()})}}return de.\u0275fac=function(ae){return new(ae||de)(W.LFG(e.eN),W.LFG(ie.yh),W.LFG(ee.mQ),W.LFG(_e.ux),W.LFG(ce.rS))},de.\u0275prov=W.Yz7({token:de,factory:de.\u0275fac}),de})()},5043:(Ve,Q,m)=>{"use strict";m.d(Q,{mQ:()=>M,LG:()=>l});var e=m(2340),t=m(5e3);const{isDebugMode:y}=e.NZ,C=()=>null;let M=(()=>{class N{invokeConsoleMethod(D,A){}}return N.\u0275fac=function(D){return new(D||N)},N.\u0275prov=t.Yz7({token:N,factory:N.\u0275fac}),N})(),l=(()=>{class N{get info(){return y?console.log.bind(console):C}get warn(){return y?console.warn.bind(console):C}get error(){return y?console.error.bind(console):C}invokeConsoleMethod(D,A){(console[D]||console.log||C).apply(console,[A])}}return N.\u0275fac=function(D){return new(D||N)},N.\u0275prov=t.Yz7({token:N,factory:N.\u0275fac}),N})()},9107:(Ve,Q,m)=>{"use strict";m.d(Q,{W:()=>j});var e=m(8138),t=m(1135),y=m(7579),C=m(9646),o=m(2843),M=m(2722),l=m(262),N=m(4004),s=m(2340),D=m(7731),A=m(1786),O=m(7861),E=m(5e3),P=m(5043),w=m(5620),Z=m(62);let j=(()=>{class W{constructor(ee,_e,ce,re){this.httpClient=ee,this.logger=_e,this.store=ce,this.commonService=re,this.loopUrl="",this.swaps=[],this.swapsChanged=new t.X([]),this.unSubs=[new y.x,new y.x,new y.x,new y.x,new y.x]}getSwapsList(){return this.swaps}listSwaps(){this.store.dispatch((0,O.ac)({payload:D.m6.GET_LOOP_SWAPS})),this.loopUrl=s.T5+s.NZ.LOOP_API+"/swaps",this.httpClient.get(this.loopUrl).pipe((0,M.R)(this.unSubs[0])).subscribe({next:ee=>{this.store.dispatch((0,O.uO)({payload:D.m6.GET_LOOP_SWAPS})),this.swaps=ee,this.swapsChanged.next(this.swaps)},error:ee=>this.swapsChanged.error(this.handleErrorWithAlert(D.m6.GET_LOOP_SWAPS,this.loopUrl,ee))})}loopOut(ee,_e,ce,re,de,oe,ae,b,i,a){const p={amount:ee,targetConf:ce,swapRoutingFee:re,minerFee:de,prepayRoutingFee:oe,prepayAmt:ae,swapFee:b,swapPublicationDeadline:i,destAddress:a};return""!==_e&&(p.chanId=_e),this.loopUrl=s.T5+s.NZ.LOOP_API+"/out",this.httpClient.post(this.loopUrl,p).pipe((0,l.K)(u=>this.handleErrorWithoutAlert("Loop Out for Channel: "+_e,D.m6.NO_SPINNER,u)))}getLoopOutTerms(){return this.loopUrl=s.T5+s.NZ.LOOP_API+"/out/terms",this.httpClient.get(this.loopUrl).pipe((0,l.K)(ee=>this.handleErrorWithoutAlert("Loop Out Terms",D.m6.NO_SPINNER,ee)))}getLoopOutQuote(ee,_e,ce){let re=new e.LE;return re=re.append("targetConf",_e.toString()),re=re.append("swapPublicationDeadline",ce.toString()),this.loopUrl=s.T5+s.NZ.LOOP_API+"/out/quote/"+ee,this.store.dispatch((0,O.ac)({payload:D.m6.GET_QUOTE})),this.httpClient.get(this.loopUrl,{params:re}).pipe((0,M.R)(this.unSubs[1]),(0,N.U)(de=>(this.store.dispatch((0,O.uO)({payload:D.m6.GET_QUOTE})),de)),(0,l.K)(de=>this.handleErrorWithoutAlert("Loop Out Quote",D.m6.GET_QUOTE,de)))}getLoopOutTermsAndQuotes(ee){let _e=new e.LE;return _e=_e.append("targetConf",ee.toString()),_e=_e.append("swapPublicationDeadline",((new Date).getTime()+18e5).toString()),this.loopUrl=s.T5+s.NZ.LOOP_API+"/out/termsAndQuotes",this.store.dispatch((0,O.ac)({payload:D.m6.GET_TERMS_QUOTES})),this.httpClient.get(this.loopUrl,{params:_e}).pipe((0,M.R)(this.unSubs[2]),(0,N.U)(ce=>(this.store.dispatch((0,O.uO)({payload:D.m6.GET_TERMS_QUOTES})),ce)),(0,l.K)(ce=>(0,C.of)(this.handleErrorWithAlert(D.m6.GET_TERMS_QUOTES,this.loopUrl,ce))))}loopIn(ee,_e,ce,re,de){const oe={amount:ee,swapFee:_e,minerFee:ce,lastHop:re,externalHtlc:de};return this.loopUrl=s.T5+s.NZ.LOOP_API+"/in",this.httpClient.post(this.loopUrl,oe).pipe((0,l.K)(ae=>this.handleErrorWithoutAlert("Loop In",D.m6.NO_SPINNER,ae)))}getLoopInTerms(){return this.loopUrl=s.T5+s.NZ.LOOP_API+"/in/terms",this.httpClient.get(this.loopUrl).pipe((0,l.K)(ee=>this.handleErrorWithoutAlert("Loop In Terms",D.m6.NO_SPINNER,ee)))}getLoopInQuote(ee,_e,ce){let re=new e.LE;return re=re.append("targetConf",_e.toString()),re=re.append("swapPublicationDeadline",ce.toString()),this.loopUrl=s.T5+s.NZ.LOOP_API+"/in/quote/"+ee,this.store.dispatch((0,O.ac)({payload:D.m6.GET_QUOTE})),this.httpClient.get(this.loopUrl,{params:re}).pipe((0,M.R)(this.unSubs[3]),(0,N.U)(de=>(this.store.dispatch((0,O.uO)({payload:D.m6.GET_QUOTE})),de)),(0,l.K)(de=>this.handleErrorWithoutAlert("Loop In Qoute",D.m6.GET_QUOTE,de)))}getLoopInTermsAndQuotes(ee){let _e=new e.LE;return _e=_e.append("targetConf",ee.toString()),_e=_e.append("swapPublicationDeadline",((new Date).getTime()+18e5).toString()),this.loopUrl=s.T5+s.NZ.LOOP_API+"/in/termsAndQuotes",this.store.dispatch((0,O.ac)({payload:D.m6.GET_TERMS_QUOTES})),this.httpClient.get(this.loopUrl,{params:_e}).pipe((0,M.R)(this.unSubs[4]),(0,N.U)(ce=>(this.store.dispatch((0,O.uO)({payload:D.m6.GET_TERMS_QUOTES})),ce)),(0,l.K)(ce=>(0,C.of)(this.handleErrorWithAlert(D.m6.GET_TERMS_QUOTES,this.loopUrl,ce))))}getSwap(ee){return this.loopUrl=s.T5+s.NZ.LOOP_API+"/swap/"+ee,this.httpClient.get(this.loopUrl).pipe((0,l.K)(_e=>this.handleErrorWithoutAlert("Loop Get Swap for ID: "+ee,D.m6.NO_SPINNER,_e)))}handleErrorWithoutAlert(ee,_e,ce){let re="";return this.logger.error("ERROR IN: "+ee+"\n"+JSON.stringify(ce)),this.store.dispatch((0,O.uO)({payload:_e})),401===ce.status?(re="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,O.kS)())):503===ce.status?(re="Unable to Connect to Loop Server.",this.store.dispatch((0,O.qR)({payload:{data:{type:"ERROR",alertTitle:"Loop Not Connected",message:{code:ce.status,message:"Unable to Connect to Loop Server",URL:ee},component:A.H}}}))):re=this.commonService.extractErrorMessage(ce),(0,o._)(()=>new Error(re))}handleErrorWithAlert(ee,_e,ce){let re="";if(this.logger.error(ce),this.store.dispatch((0,O.uO)({payload:ee})),401===ce.status)re="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,O.kS)());else if(503===ce.status)re="Unable to Connect to Loop Server.",setTimeout(()=>{this.store.dispatch((0,O.qR)({payload:{data:{type:"ERROR",alertTitle:"Loop Not Connected",message:{code:ce.status,message:"Unable to Connect to Loop Server",URL:_e},component:A.H}}}))},100);else{re=this.commonService.extractErrorMessage(ce);const de=ce.error&&ce.error.error&&ce.error.error.code?ce.error.error.code:ce.error&&ce.error.code?ce.error.code:ce.code?ce.code:ce.status;setTimeout(()=>{this.store.dispatch((0,O.qR)({payload:{data:{type:D.n_.ERROR,alertTitle:"ERROR",message:{code:de,message:re,URL:_e},component:A.H}}}))},100)}return{message:re}}ngOnDestroy(){this.unSubs.forEach(ee=>{ee.next(null),ee.complete()})}}return W.\u0275fac=function(ee){return new(ee||W)(E.LFG(e.eN),E.LFG(P.mQ),E.LFG(w.yh),E.LFG(Z.v))},W.\u0275prov=E.Yz7({token:W,factory:W.\u0275fac}),W})()},5986:(Ve,Q,m)=>{"use strict";m.d(Q,{m:()=>y});var e=m(7579),t=m(5e3);let y=(()=>{class C{constructor(){this.sessionSub=new e.x}watchSession(){return this.sessionSub.asObservable()}getItem(M){return sessionStorage.getItem(M)}getAllItems(){return sessionStorage}setItem(M,l){sessionStorage.setItem(M,l),this.sessionSub.next(sessionStorage)}removeItem(M){sessionStorage.removeItem(M),this.sessionSub.next(sessionStorage)}clearAll(){sessionStorage.clear(),this.sessionSub.next(sessionStorage)}}return C.\u0275fac=function(M){return new(M||C)},C.\u0275prov=t.Yz7({token:C,factory:C.\u0275fac}),C})()},7998:(Ve,Q,m)=>{"use strict";m.d(Q,{d:()=>P});var e=m(1135),t=m(7579),y=m(2722),C=m(930),o=m(8306),M=m(727),l=m(4707);const N={url:"",deserializer:w=>JSON.parse(w.data),serializer:w=>JSON.stringify(w)};class D extends t.u{constructor(Z,j){if(super(),this._socket=null,Z instanceof o.y)this.destination=j,this.source=Z;else{const W=this._config=Object.assign({},N);if(this._output=new t.x,"string"==typeof Z)W.url=Z;else for(const ie in Z)Z.hasOwnProperty(ie)&&(W[ie]=Z[ie]);if(!W.WebSocketCtor&&WebSocket)W.WebSocketCtor=WebSocket;else if(!W.WebSocketCtor)throw new Error("no WebSocket constructor can be found");this.destination=new l.t}}lift(Z){const j=new D(this._config,this.destination);return j.operator=Z,j.source=this,j}_resetState(){this._socket=null,this.source||(this.destination=new l.t),this._output=new t.x}multiplex(Z,j,W){const ie=this;return new o.y(ee=>{try{ie.next(Z())}catch(ce){ee.error(ce)}const _e=ie.subscribe(ce=>{try{W(ce)&&ee.next(ce)}catch(re){ee.error(re)}},ce=>ee.error(ce),()=>ee.complete());return()=>{try{ie.next(j())}catch(ce){ee.error(ce)}_e.unsubscribe()}})}_connectSocket(){const{WebSocketCtor:Z,protocol:j,url:W,binaryType:ie}=this._config,ee=this._output;let _e=null;try{_e=j?new Z(W,j):new Z(W),this._socket=_e,ie&&(this._socket.binaryType=ie)}catch(re){return void ee.error(re)}const ce=new M.w0(()=>{this._socket=null,_e&&1===_e.readyState&&_e.close()});_e.onopen=re=>{const{_socket:de}=this;if(!de)return _e.close(),void this._resetState();const{openObserver:oe}=this._config;oe&&oe.next(re);const ae=this.destination;this.destination=C.Lv.create(b=>{if(1===_e.readyState)try{const{serializer:i}=this._config;_e.send(i(b))}catch(i){this.destination.error(i)}},b=>{const{closingObserver:i}=this._config;i&&i.next(void 0),b&&b.code?_e.close(b.code,b.reason):ee.error(new TypeError("WebSocketSubject.error must be called with an object with an error code, and an optional reason: { code: number, reason: string }")),this._resetState()},()=>{const{closingObserver:b}=this._config;b&&b.next(void 0),_e.close(),this._resetState()}),ae&&ae instanceof l.t&&ce.add(ae.subscribe(this.destination))},_e.onerror=re=>{this._resetState(),ee.error(re)},_e.onclose=re=>{this._resetState();const{closeObserver:de}=this._config;de&&de.next(re),re.wasClean?ee.complete():ee.error(re)},_e.onmessage=re=>{try{const{deserializer:de}=this._config;ee.next(de(re))}catch(de){ee.error(de)}}}_subscribe(Z){const{source:j}=this;return j?j.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 A=m(5e3),O=m(5043),E=m(5986);let P=(()=>{class w{constructor(j,W){this.logger=j,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 t.x,new t.x,new t.x,new t.x,new t.x,new t.x,new t.x,new t.x,new t.x,new t.x,new t.x,new t.x,new t.x]}connectWebSocket(j,W){(!this.socket||this.socket.closed)&&(this.wsUrl=j,this.nodeIndex=W,this.logger.info("Websocket Url: "+this.wsUrl),this.socket=new D({url:j,protocol:[this.sessionService.getItem("token"),W]}),this.subscribeToMessages())}reconnectOnError(){this.RECONNECT_TIMEOUT||this.socket&&!this.socket.closed||(this.RETRY_SECONDS=this.RETRY_SECONDS>=160?160:2*this.RETRY_SECONDS,this.RECONNECT_TIMEOUT=setTimeout(()=>{this.logger.info("Reconnecting Web Socket."),this.connectWebSocket(this.wsUrl,this.nodeIndex),this.RECONNECT_TIMEOUT=null},1e3*this.RETRY_SECONDS))}closeConnection(){this.socket&&(this.socket.complete(),this.socket=null)}subscribeToMessages(){this.socket.pipe((0,y.R)(this.unSubs[1])).subscribe({next:j=>{if((j="string"==typeof j?JSON.parse(j):j).error)this.handleError(j.error);else switch(this.logger.info("Next Message from WS:"+JSON.stringify(j)),j.source){case"LND":this.lndWSMessages.next(j);break;case"CLN":this.clWSMessages.next(j);break;case"ECL":this.eclWSMessages.next(j)}},error:j=>this.handleError(j),complete:()=>{this.logger.info("Web Socket Closed")}})}handleError(j){this.logger.error(j),this.clWSMessages.error(j),this.eclWSMessages.error(j),this.lndWSMessages.error(j),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(j){return new(j||w)(A.LFG(O.mQ),A.LFG(E.m))},w.\u0275prov=A.Yz7({token:w,factory:w.\u0275fac}),w})()},8750:(Ve,Q,m)=>{"use strict";m.d(Q,{m:()=>mi});var e=m(9808),t=m(1402),y=m(3075),C=m(8138),o=m(9444),M=m(5e3),l=m(3270),N=m(3322),s=m(7093);m(3191);let qe=(()=>{class Ct{}return Ct.\u0275fac=function(bt){return new(bt||Ct)},Ct.\u0275mod=M.oAB({type:Ct}),Ct.\u0275inj=M.cJS({imports:[[l.IR]]}),Ct})(),fe=(()=>{class Ct{constructor(bt,Yt){(0,e.PM)(Yt)&&!bt&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(bt,Yt=[]){return{ngModule:Ct,providers:bt.serverLoaded?[{provide:l.WU,useValue:Object.assign(Object.assign({},l.g5),bt)},{provide:l.Bs,useValue:Yt,multi:!0},{provide:l.wY,useValue:!0}]:[{provide:l.WU,useValue:Object.assign(Object.assign({},l.g5),bt)},{provide:l.Bs,useValue:Yt,multi:!0}]}}}return Ct.\u0275fac=function(bt){return new(bt||Ct)(M.LFG(l.wY),M.LFG(M.Lbi))},Ct.\u0275mod=M.oAB({type:Ct}),Ct.\u0275inj=M.cJS({imports:[[s.ae,N.aT,qe],s.ae,N.aT,qe]}),Ct})();var Je=m(5113),St=m(508),Pt=m(8966),yi=m(1079),Ni=m(7544),Si=m(7423);m(449),m(5664);let Pn=(()=>{class Ct{}return Ct.\u0275fac=function(bt){return new(bt||Ct)},Ct.\u0275mod=M.oAB({type:Ct}),Ct.\u0275inj=M.cJS({imports:[[St.BQ,St.si],St.BQ]}),Ct})();var dr=m(9224),wi=m(7446),Fi=m(6856),dn=m(1125),Lr=m(3954),La=m(5245),Gn=m(7531),Or=m(4623),Ra=m(2181),Ma=m(6087),Fa=m(5899),xr=m(773),hs=m(9814),ur=m(4107),pa=m(2638),ma=m(2368);m(1159),m(6360),m(925),m(727),m(226);let Aa=(()=>{class Ct{}return Ct.\u0275fac=function(bt){return new(bt||Ct)},Ct.\u0275mod=M.oAB({type:Ct}),Ct.\u0275inj=M.cJS({imports:[[e.ez,St.BQ],St.BQ]}),Ct})();var Vr=m(7261),ha=m(4847),pr=m(5615),Sr=m(2075),is=m(3251),Oa=m(4594),ra=m(7238),Gr=m(149),Ha=m(6046),Zn=m(159),ns=m(644),ja=m(9776);let Xe=(()=>{class Ct extends ja.Xj{_createContainer(){const bt=document.createElement("div");bt.classList.add("cdk-overlay-container"),document.getElementById("rtl-container").appendChild(bt),this._containerElement=bt}}return Ct.\u0275fac=function(){let ti;return function(Yt){return(ti||(ti=M.n5z(Ct)))(Yt||Ct)}}(),Ct.\u0275prov=M.Yz7({token:Ct,factory:Ct.\u0275fac}),Ct})();var ge=m(5043),J=m(7731);const ne={suppressScrollX:!1,suppressScrollY:!1};let Qe=(()=>{class Ct extends St.LF{format(bt,Yt){if("input"===Yt){let xi=bt.getDate().toString();return xi=+xi<10?"0"+xi:xi,xi+"/"+J.gg[bt.getMonth()].name.toUpperCase()+"/"+bt.getFullYear()}return J.gg[bt.getMonth()].name.toUpperCase()+" "+bt.getFullYear()}}return Ct.\u0275fac=function(){let ti;return function(Yt){return(ti||(ti=M.n5z(Ct)))(Yt||Ct)}}(),Ct.\u0275prov=M.Yz7({token:Ct,factory:Ct.\u0275fac}),Ct})();const Wt={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 mi=(()=>{class Ct{}return Ct.\u0275fac=function(bt){return new(bt||Ct)},Ct.\u0275mod=M.oAB({type:Ct}),Ct.\u0275inj=M.cJS({providers:[{provide:ge.mQ,useClass:ge.LG},{provide:ns.op,useValue:ne},{provide:Vr.Ve,useValue:{duration:2e3,verticalPosition:"bottom",panelClass:"rtl-snack-bar"}},{provide:Pt.Bq,useValue:{hasBackdrop:!0,autoFocus:!0,disableClose:!0,role:"dialog",width:"45%"}},{provide:St._A,useClass:Qe},{provide:St.sG,useValue:Wt},{provide:ja.Xj,useClass:Xe},e.JJ,e.rS,e.uU],imports:[[e.ez,y.u5,y.UX,o.uH,fe,Je.xu,Pt.Is,Si.ot,Pn,dr.QW,wi.p9,dn.To,Lr.N6,Fi.FA,St.XK,La.Ps,Gn.c,Or.ie,Ra.Tx,Fa.Cv,xr.Cq,hs.Fk,Gr.dp,ur.LD,pa.SJ,ma.rP,ha.JX,Sr.p0,Oa.g0,ra.AV,Ni.g,Ma.TU,pr.T5,Aa,is.Nh,Vr.ZX,yi.Bb,Ha.a4,Zn.OF,t.Bz,C.JF,ns.Xd],y.u5,y.UX,o.uH,fe,Je.xu,Pt.Is,Si.ot,Pn,dr.QW,wi.p9,dn.To,Lr.N6,Fi.FA,St.XK,La.Ps,Gn.c,Or.ie,Ra.Tx,Fa.Cv,xr.Cq,hs.Fk,Gr.dp,ur.LD,pa.SJ,ma.rP,ha.JX,Sr.p0,Oa.g0,ra.AV,Ni.g,Ma.TU,pr.T5,Aa,is.Nh,Vr.ZX,yi.Bb,Ha.a4,Zn.OF,ns.Xd]}),Ct})()},7861:(Ve,Q,m)=>{"use strict";m.d(Q,{lC:()=>C,qi:()=>o,ts:()=>M,jW:()=>l,ac:()=>N,uO:()=>s,qR:()=>D,M6:()=>A,c1:()=>O,yb:()=>E,tj:()=>P,Q2:()=>w,tw:()=>j,vI:()=>W,ey:()=>ie,XT:()=>ee,zQ:()=>_e,Uy:()=>ce,fk:()=>re,Tm:()=>de,jS:()=>oe,_V:()=>ae,kS:()=>i,c0:()=>a,QO:()=>u,x4:()=>L,dc:()=>x});var e=m(5620),t=m(7731);(0,e.PH)(t.pg.VOID);const C=(0,e.PH)(t.pg.SET_API_URL_ECL,(0,e.Ky)()),o=(0,e.PH)(t.pg.UPDATE_API_CALL_STATUS_ROOT,(0,e.Ky)()),M=(0,e.PH)(t.pg.CLOSE_ALL_DIALOGS),l=(0,e.PH)(t.pg.OPEN_SNACK_BAR,(0,e.Ky)()),N=(0,e.PH)(t.pg.OPEN_SPINNER,(0,e.Ky)()),s=(0,e.PH)(t.pg.CLOSE_SPINNER,(0,e.Ky)()),D=(0,e.PH)(t.pg.OPEN_ALERT,(0,e.Ky)()),A=(0,e.PH)(t.pg.CLOSE_ALERT,(0,e.Ky)()),O=(0,e.PH)(t.pg.OPEN_CONFIRMATION,(0,e.Ky)()),E=(0,e.PH)(t.pg.CLOSE_CONFIRMATION,(0,e.Ky)()),P=(0,e.PH)(t.pg.SHOW_PUBKEY),w=(0,e.PH)(t.pg.FETCH_CONFIG,(0,e.Ky)()),j=((0,e.PH)(t.pg.SHOW_CONFIG,(0,e.Ky)()),(0,e.PH)(t.pg.UPDATE_SELECTED_NODE_OPTIONS)),W=(0,e.PH)(t.pg.RESET_ROOT_STORE,(0,e.Ky)()),ie=(0,e.PH)(t.pg.FETCH_RTL_CONFIG),ee=(0,e.PH)(t.pg.SET_RTL_CONFIG,(0,e.Ky)()),_e=(0,e.PH)(t.pg.SAVE_SETTINGS,(0,e.Ky)()),ce=(0,e.PH)(t.pg.TWO_FA_SAVE_SETTINGS,(0,e.Ky)()),re=(0,e.PH)(t.pg.SET_SELECTED_NODE,(0,e.Ky)()),de=(0,e.PH)(t.pg.UPDATE_ROOT_NODE_SETTINGS,(0,e.Ky)()),oe=(0,e.PH)(t.pg.UPDATE_SERVICE_SETTINGS,(0,e.Ky)()),ae=(0,e.PH)(t.pg.SET_NODE_DATA,(0,e.Ky)()),i=((0,e.PH)(t.pg.SAVE_SSO,(0,e.Ky)()),(0,e.PH)(t.pg.LOGOUT)),a=(0,e.PH)(t.pg.RESET_PASSWORD,(0,e.Ky)()),u=((0,e.PH)(t.pg.RESET_PASSWORD_RES,(0,e.Ky)()),(0,e.PH)(t.pg.IS_AUTHORIZED,(0,e.Ky)())),L=((0,e.PH)(t.pg.IS_AUTHORIZED_RES,(0,e.Ky)()),(0,e.PH)(t.pg.LOGIN,(0,e.Ky)())),x=((0,e.PH)(t.pg.VERIFY_TWO_FA,(0,e.Ky)()),(0,e.PH)(t.pg.FETCH_FILE,(0,e.Ky)()));(0,e.PH)(t.pg.SHOW_FILE,(0,e.Ky)())},3093:(Ve,Q,m)=>{"use strict";m.d(Q,{V:()=>qi});var e=m(6642),t=m(7579),y=m(9646),C=m(8306),o=m(4128),M=m(4004),l=m(5698),N=m(1365),s=m(5577),D=m(262),A=m(2722),O=m(2340),E=m(7731),P=m(8966),w=m(5e3),Z=m(7093),j=m(773);let W=(()=>{class ot{constructor(gt,Lt){this.dialogRef=gt,this.data=Lt}}return ot.\u0275fac=function(gt){return new(gt||ot)(w.Y36(P.so),w.Y36(P.WI))},ot.\u0275cmp=w.Xpm({type:ot,selectors:[["rtl-spinner-dialog"]],decls:5,vars:1,consts:[[1,"spinner-container"],["fxLayout","column","fxLayoutAlign","center center",1,"spinner-circle"]],template:function(gt,Lt){1&gt&&(w.TgZ(0,"div",0),w.TgZ(1,"div",1),w._UZ(2,"mat-spinner"),w.TgZ(3,"h1"),w._uU(4),w.qZA(),w.qZA(),w.qZA()),2&gt&&(w.xp6(4),w.Oqu(Lt.data.titleMessage))},directives:[Z.xw,Z.Wh,j.$g],styles:[".spinner-container[_ngcontent-%COMP%]{position:absolute;left:40%;top:35%}"]}),ot})();var ie=m(5043),ee=m(7261),_e=m(62),ce=m(9808),re=m(3322),de=m(9224),oe=m(7423),ae=m(159),b=m(644),i=m(5245),a=m(3390),p=m(6895),u=m(4834);const _=["scrollContainer"];function L(ot,Kt){if(1&ot&&w._UZ(0,"qr-code",15),2&ot){const gt=w.oxw();w.Q6J("value",gt.showQRField)("size",200)("errorCorrectionLevel","L")}}function I(ot,Kt){1&ot&&w.GkF(0)}const x=function(ot){return{"h-40":ot}};function r(ot,Kt){if(1&ot&&(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&ot){const gt=w.oxw(),Lt=w.MAs(20);w.xp6(1),w.Q6J("ngClass",w.VKq(2,x,gt.data.scrollable)),w.xp6(2),w.Q6J("ngTemplateOutlet",Lt)}}function v(ot,Kt){1&ot&&w.GkF(0)}function G(ot,Kt){if(1&ot&&(w.ynx(0),w.TgZ(1,"mat-card-content",19),w.YNc(2,v,1,0,"ng-container",18),w.qZA(),w.BQk()),2&ot){w.oxw();const gt=w.MAs(20);w.xp6(2),w.Q6J("ngTemplateOutlet",gt)}}function F(ot,Kt){1&ot&&(w.TgZ(0,"mat-icon",23),w._uU(1,"arrow_downward"),w.qZA())}function U(ot,Kt){1&ot&&(w.TgZ(0,"mat-icon",23),w._uU(1,"arrow_upward"),w.qZA())}function ye(ot,Kt){if(1&ot){const gt=w.EpF();w.TgZ(0,"div",20),w.TgZ(1,"button",21),w.NdJ("click",function(){return w.CHM(gt),w.oxw().onScroll()}),w.YNc(2,F,2,0,"mat-icon",22),w.YNc(3,U,2,0,"mat-icon",22),w.qZA(),w.qZA()}if(2&ot){const gt=w.oxw();w.xp6(2),w.Q6J("ngIf","DOWN"===gt.scrollDirection),w.xp6(1),w.Q6J("ngIf","UP"===gt.scrollDirection)}}function Ce(ot,Kt){1&ot&&(w.TgZ(0,"button",24),w._uU(1,"OK"),w.qZA()),2&ot&&w.Q6J("mat-dialog-close",!1)}function Be(ot,Kt){1&ot&&(w.TgZ(0,"button",25),w._uU(1,"Close"),w.qZA()),2&ot&&w.Q6J("mat-dialog-close",!1)}function ze(ot,Kt){if(1&ot){const gt=w.EpF();w.TgZ(0,"button",26),w.NdJ("copied",function(ui){return w.CHM(gt),w.oxw().onCopyField(ui)}),w._uU(1),w.qZA()}if(2&ot){const gt=w.oxw();w.Q6J("payload",gt.showCopyField),w.xp6(1),w.hij("Copy ",gt.showCopyName,"")}}function Ie(ot,Kt){1&ot&&(w.TgZ(0,"button",25),w._uU(1,"Close"),w.qZA()),2&ot&&w.Q6J("mat-dialog-close",!1)}function K(ot,Kt){if(1&ot){const gt=w.EpF();w.TgZ(0,"button",26),w.NdJ("copied",function(ui){return w.CHM(gt),w.oxw().onCopyField(ui)}),w._uU(1),w.qZA()}if(2&ot){const gt=w.oxw();w.Q6J("payload",gt.showQRField),w.xp6(1),w.hij("Copy ",gt.showQRName,"")}}function Me(ot,Kt){if(1&ot&&w._UZ(0,"qr-code",15),2&ot){const gt=w.oxw(2);w.Q6J("value",gt.showQRField)("size",200)("errorCorrectionLevel","L")}}function we(ot,Kt){if(1&ot&&(w.TgZ(0,"p",32),w._uU(1),w.qZA()),2&ot){const gt=w.oxw(2);w.xp6(1),w.Oqu(gt.data.titleMessage)}}function z(ot,Kt){1&ot&&w._UZ(0,"span",46),2&ot&&w.Q6J("innerHTML",Kt.$implicit,w.oJD)}function Ge(ot,Kt){if(1&ot&&(w.ynx(0),w.YNc(1,z,1,1,"span",45),w.BQk()),2&ot){const gt=w.oxw(2).$implicit;w.xp6(1),w.Q6J("ngForOf",gt.value)}}function vt(ot,Kt){if(1&ot&&(w.ynx(0),w._uU(1),w.ALo(2,"date"),w.BQk()),2&ot){const gt=w.oxw(2).$implicit;w.xp6(1),w.Oqu(w.xi3(2,1,1e3*gt.value,"dd/MMM/y HH:mm"))}}function Re(ot,Kt){if(1&ot&&(w.ynx(0),w._uU(1),w.ALo(2,"number"),w.BQk()),2&ot){const gt=w.oxw(2).$implicit;w.xp6(1),w.Oqu(w.xi3(2,1,gt.value,gt.digitsInfo?gt.digitsInfo:"1.0-3"))}}function Ne(ot,Kt){if(1&ot&&(w.ynx(0),w._uU(1),w.BQk()),2&ot){const gt=w.oxw(2).$implicit;w.xp6(1),w.Oqu(gt.value?"True":"False")}}function he(ot,Kt){1&ot&&(w.TgZ(0,"mat-icon",51),w._uU(1,"info"),w.qZA())}const Le=function(ot){return{"failed-status":ot}};function ke(ot,Kt){if(1&ot&&(w.TgZ(0,"p",49),w._uU(1),w.YNc(2,he,2,0,"mat-icon",50),w.qZA()),2&ot){const gt=w.oxw(3).$implicit,Lt=w.oxw(4);w.Q6J("ngClass",w.VKq(3,Le,gt.value===Lt.LoopStateEnum.FAILED)),w.xp6(1),w.hij(" ",gt.value," "),w.xp6(1),w.Q6J("ngIf",gt.value===Lt.LoopStateEnum.FAILED)}}function q(ot,Kt){if(1&ot&&w._uU(0),2&ot){const gt=w.oxw(3).$implicit;w.Oqu(gt.value)}}function $(ot,Kt){if(1&ot&&(w.ynx(0),w.YNc(1,ke,3,5,"p",47),w.YNc(2,q,1,1,"ng-template",null,48,w.W1O),w.BQk()),2&ot){const gt=w.MAs(3),Lt=w.oxw(2).$implicit,ui=w.oxw(4);w.xp6(1),w.Q6J("ngIf","SWAP"===ui.data.openedBy&&"state"===Lt.key)("ngIfElse",gt)}}function le(ot,Kt){if(1&ot&&(w.TgZ(0,"span"),w.TgZ(1,"span",42),w.YNc(2,Ge,2,1,"ng-container",43),w.YNc(3,vt,3,4,"ng-container",43),w.YNc(4,Re,3,4,"ng-container",43),w.YNc(5,Ne,2,1,"ng-container",43),w.YNc(6,$,4,2,"ng-container",44),w.qZA(),w.qZA()),2&ot){const gt=w.oxw().$implicit,Lt=w.oxw(4);w.xp6(1),w.Q6J("ngSwitch",gt.type),w.xp6(1),w.Q6J("ngSwitchCase",Lt.dataTypeEnum.ARRAY),w.xp6(1),w.Q6J("ngSwitchCase",Lt.dataTypeEnum.DATE_TIME),w.xp6(1),w.Q6J("ngSwitchCase",Lt.dataTypeEnum.NUMBER),w.xp6(1),w.Q6J("ngSwitchCase",Lt.dataTypeEnum.BOOLEAN)}}function xe(ot,Kt){1&ot&&(w.TgZ(0,"span",52),w._uU(1,"\xa0"),w.qZA())}function Ue(ot,Kt){if(1&ot&&(w.TgZ(0,"div",37),w.TgZ(1,"h4",38),w._uU(2),w.qZA(),w.YNc(3,le,7,5,"span",39),w.YNc(4,xe,2,0,"ng-template",null,40,w.W1O),w._UZ(6,"mat-divider",41),w.qZA()),2&ot){const gt=Kt.$implicit,Lt=w.MAs(5);w.s9C("fxFlex.gt-md",gt.width),w.xp6(2),w.Oqu(gt.title),w.xp6(1),w.Q6J("ngIf",gt&&(!!gt.value||0===gt.value))("ngIfElse",Lt)}}function lt(ot,Kt){if(1&ot&&(w.TgZ(0,"div"),w.TgZ(1,"div",35),w.YNc(2,Ue,7,4,"div",36),w.qZA(),w.qZA()),2&ot){const gt=Kt.$implicit;w.xp6(2),w.Q6J("ngForOf",gt)}}function nt(ot,Kt){if(1&ot&&(w.TgZ(0,"div",33),w.YNc(1,lt,3,1,"div",34),w.qZA()),2&ot){const gt=w.oxw(2);w.xp6(1),w.Q6J("ngForOf",gt.messageObjs)}}const ft=function(ot){return{"display-none":ot}};function it(ot,Kt){if(1&ot&&(w.TgZ(0,"div",27),w.TgZ(1,"div",28),w.YNc(2,Me,1,3,"qr-code",2),w.qZA(),w.TgZ(3,"div",29),w.YNc(4,we,2,1,"p",30),w.YNc(5,nt,2,1,"div",31),w.qZA(),w.qZA()),2&ot){const gt=w.oxw();w.xp6(1),w.Q6J("ngClass",w.VKq(4,ft,""===gt.showQRField||gt.screenSize!==gt.screenSizeEnum.XS&&gt.screenSize!==gt.screenSizeEnum.SM)),w.xp6(1),w.Q6J("ngIf",""!==gt.showQRField),w.xp6(2),w.Q6J("ngIf",gt.data.titleMessage),w.xp6(1),w.Q6J("ngIf",(null==gt.messageObjs?null:gt.messageObjs.length)>0)}}let rt=(()=>{class ot{constructor(gt,Lt,ui,Ci,Yi,$i){this.dialogRef=gt,this.data=Lt,this.logger=ui,this.snackBar=Ci,this.commonService=Yi,this.renderer=$i,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(gt){gt&&(this.scrollContainer=gt,this.scrollContainer&&this.scrollContainer.nativeElement&&(this.unlistenEnd=this.renderer.listen(this.scrollContainer.nativeElement,"ps-y-reach-end",Lt=>{this.scrollDirection="UP"}),this.unlistenStart=this.renderer.listen(this.scrollContainer.nativeElement,"ps-y-reach-start",Lt=>{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(gt){this.snackBar.open((this.showQRName?this.showQRName:this.showCopyName)+" copied."),this.logger.info("Copied Text: "+gt)}onClose(){this.dialogRef.close(!1)}ngOnDestroy(){this.unlistenStart&&this.unlistenStart(),this.unlistenEnd&&this.unlistenEnd()}}return ot.\u0275fac=function(gt){return new(gt||ot)(w.Y36(P.so),w.Y36(P.WI),w.Y36(ie.mQ),w.Y36(ee.ux),w.Y36(_e.v),w.Y36(w.Qsj))},ot.\u0275cmp=w.Xpm({type:ot,selectors:[["rtl-alert-message"]],viewQuery:function(gt,Lt){if(1&gt&&w.Gf(_,5),2&gt){let ui;w.iGM(ui=w.CRH())&&(Lt.container=ui.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(gt,Lt){1&gt&&(w.TgZ(0,"div",0),w.TgZ(1,"div",1),w.YNc(2,L,1,3,"qr-code",2),w.qZA(),w.TgZ(3,"div",3),w.TgZ(4,"mat-card-header",4),w.TgZ(5,"div",5),w.TgZ(6,"span",6),w._uU(7),w.qZA(),w.qZA(),w.TgZ(8,"button",7),w.NdJ("click",function(){return Lt.onClose()}),w._uU(9,"X"),w.qZA(),w.qZA(),w.YNc(10,r,4,4,"ng-container",8),w.YNc(11,G,3,1,"ng-container",8),w.YNc(12,ye,4,2,"div",9),w.TgZ(13,"div",10),w.YNc(14,Ce,2,1,"button",11),w.YNc(15,Be,2,1,"button",12),w.YNc(16,ze,2,2,"button",13),w.YNc(17,Ie,2,1,"button",12),w.YNc(18,K,2,2,"button",13),w.qZA(),w.qZA(),w.qZA(),w.YNc(19,it,6,6,"ng-template",null,14,w.W1O)),2&gt&&(w.xp6(1),w.Q6J("ngClass",w.VKq(12,ft,""===Lt.showQRField||Lt.screenSize===Lt.screenSizeEnum.XS||Lt.screenSize===Lt.screenSizeEnum.SM)),w.xp6(1),w.Q6J("ngIf",""!==Lt.showQRField),w.xp6(1),w.Q6J("fxFlex",""===Lt.showQRField||Lt.screenSize===Lt.screenSizeEnum.XS||Lt.screenSize===Lt.screenSizeEnum.SM?"100":"70"),w.xp6(4),w.Oqu(Lt.data.alertTitle||Lt.alertTypeEnum[Lt.data.type]),w.xp6(3),w.Q6J("ngIf",Lt.data.scrollable),w.xp6(1),w.Q6J("ngIf",!Lt.data.scrollable),w.xp6(1),w.Q6J("ngIf",Lt.data.scrollable&&Lt.shouldScroll),w.xp6(2),w.Q6J("ngIf",(!Lt.showQRField||""===Lt.showQRField)&&""===Lt.showCopyName),w.xp6(1),w.Q6J("ngIf",""!==Lt.showCopyName),w.xp6(1),w.Q6J("ngIf",""!==Lt.showCopyName),w.xp6(1),w.Q6J("ngIf",""!==Lt.showQRField),w.xp6(1),w.Q6J("ngIf",""!==Lt.showQRField))},directives:[Z.xw,Z.Wh,Z.yH,ce.mk,re.oO,ce.O5,de.dk,oe.lW,ae.uU,de.dn,b.$V,ce.tP,i.Hw,a.h,P.ZT,p.y,ce.sg,u.d,ce.RF,ce.n9,ce.ED],pipes:[ce.uU,ce.JJ],styles:[".display-block[_ngcontent-%COMP%]{display:block}"]}),ot})();var Mt=m(801),Zt=m(7861),Ft=m(5620),Vt=m(3075),Ii=m(9444),jt=m(7322),ei=m(7531),Pi=m(6534);function ai(ot,Kt){if(1&ot&&(w.TgZ(0,"div",17),w._UZ(1,"fa-icon",18),w.TgZ(2,"span"),w._uU(3),w.qZA(),w.qZA()),2&ot){const gt=w.oxw();w.xp6(1),w.Q6J("icon",gt.faExclamationTriangle),w.xp6(2),w.Oqu(gt.warningMessage)}}function hi(ot,Kt){if(1&ot&&(w.TgZ(0,"div",19),w._UZ(1,"fa-icon",18),w.TgZ(2,"span"),w._uU(3),w.qZA(),w.qZA()),2&ot){const gt=w.oxw();w.xp6(1),w.Q6J("icon",gt.faInfoCircle),w.xp6(2),w.Oqu(gt.informationMessage)}}function Ze(ot,Kt){if(1&ot&&(w.TgZ(0,"p",20),w._uU(1),w.qZA()),2&ot){const gt=w.oxw();w.xp6(1),w.Oqu(gt.data.titleMessage)}}function Ee(ot,Kt){1&ot&&w._UZ(0,"span",33),2&ot&&w.Q6J("innerHTML",Kt.$implicit,w.oJD)}function Y(ot,Kt){if(1&ot&&(w.ynx(0),w.YNc(1,Ee,1,1,"span",32),w.BQk()),2&ot){const gt=w.oxw(2).$implicit;w.xp6(1),w.Q6J("ngForOf",gt.value)}}function me(ot,Kt){if(1&ot&&(w.ynx(0),w._uU(1),w.ALo(2,"date"),w.BQk()),2&ot){const gt=w.oxw(2).$implicit;w.xp6(1),w.Oqu(w.xi3(2,1,1e3*gt.value,"dd/MMM/y HH:mm"))}}function De(ot,Kt){if(1&ot&&(w.ynx(0),w._uU(1),w.ALo(2,"number"),w.BQk()),2&ot){const gt=w.oxw(2).$implicit;w.xp6(1),w.Oqu(w.xi3(2,1,gt.value,"1.0-3"))}}function et(ot,Kt){if(1&ot&&(w.ynx(0),w._uU(1),w.BQk()),2&ot){const gt=w.oxw(2).$implicit;w.xp6(1),w.Oqu(!0===gt.value?"True":"False")}}function $t(ot,Kt){if(1&ot&&(w.ynx(0),w._uU(1),w.BQk()),2&ot){const gt=w.oxw(2).$implicit;w.xp6(1),w.Oqu(gt.value)}}function Nt(ot,Kt){if(1&ot&&(w.TgZ(0,"span"),w.TgZ(1,"span",29),w.YNc(2,Y,2,1,"ng-container",30),w.YNc(3,me,3,4,"ng-container",30),w.YNc(4,De,3,4,"ng-container",30),w.YNc(5,et,2,1,"ng-container",30),w.YNc(6,$t,2,1,"ng-container",31),w.qZA(),w.qZA()),2&ot){const gt=w.oxw().$implicit,Lt=w.oxw(3);w.xp6(1),w.Q6J("ngSwitch",gt.type),w.xp6(1),w.Q6J("ngSwitchCase",Lt.dataTypeEnum.ARRAY),w.xp6(1),w.Q6J("ngSwitchCase",Lt.dataTypeEnum.DATE_TIME),w.xp6(1),w.Q6J("ngSwitchCase",Lt.dataTypeEnum.NUMBER),w.xp6(1),w.Q6J("ngSwitchCase",Lt.dataTypeEnum.BOOLEAN)}}function Jt(ot,Kt){1&ot&&(w.TgZ(0,"span",34),w._uU(1,"\xa0"),w.qZA())}function ct(ot,Kt){if(1&ot&&(w.TgZ(0,"div",24),w.TgZ(1,"h4",25),w._uU(2),w.qZA(),w.YNc(3,Nt,7,5,"span",26),w.YNc(4,Jt,2,0,"ng-template",null,27,w.W1O),w._UZ(6,"mat-divider",28),w.qZA()),2&ot){const gt=Kt.$implicit,Lt=w.MAs(5);w.s9C("fxFlex.gt-md",gt.width),w.xp6(2),w.Oqu(gt.title),w.xp6(1),w.Q6J("ngIf",gt&&(!!gt.value||0===gt.value))("ngIfElse",Lt)}}function Pe(ot,Kt){if(1&ot&&(w.TgZ(0,"div"),w.TgZ(1,"div",22),w.YNc(2,ct,7,4,"div",23),w.qZA(),w.qZA()),2&ot){const gt=Kt.$implicit;w.xp6(2),w.Q6J("ngForOf",gt)}}function Fe(ot,Kt){if(1&ot&&(w.TgZ(0,"div"),w.YNc(1,Pe,3,1,"div",21),w.qZA()),2&ot){const gt=w.oxw();w.xp6(1),w.Q6J("ngForOf",gt.messageObjs)}}function at(ot,Kt){if(1&ot&&(w.TgZ(0,"p",20),w._uU(1),w.qZA()),2&ot){const gt=w.oxw(2);w.xp6(1),w.Oqu(gt.data.titleMessage)}}function st(ot,Kt){if(1&ot){const gt=w.EpF();w.TgZ(0,"input",41),w.NdJ("ngModelChange",function(ui){return w.CHM(gt),w.oxw().$implicit.inputValue=ui}),w.ALo(1,"lowercase"),w.qZA()}if(2&ot){const gt=w.oxw(),Lt=gt.index,ui=gt.$implicit;w.MGl("name","input",Lt,""),w.Q6J("placeholder",ui.placeholder)("min",ui.min)("step",ui.step)("type",w.lcZ(1,7,ui.inputType))("ngModel",ui.inputValue)("tabindex",Lt+1)}}function At(ot,Kt){if(1&ot){const gt=w.EpF();w.TgZ(0,"input",42),w.NdJ("ngModelChange",function(ui){return w.CHM(gt),w.oxw().$implicit.inputValue=ui}),w.ALo(1,"lowercase"),w.qZA()}if(2&ot){const gt=w.oxw(),Lt=gt.index,ui=gt.$implicit;w.MGl("name","input",Lt,""),w.Q6J("placeholder",ui.placeholder)("min",ui.min)("step",ui.step)("type",w.lcZ(1,7,ui.inputType))("ngModel",ui.inputValue)("tabindex",Lt+1)}}function li(ot,Kt){if(1&ot&&(w.TgZ(0,"mat-error"),w._uU(1),w.qZA()),2&ot){const gt=w.oxw().$implicit;w.xp6(1),w.hij("",gt.placeholder," is required.")}}function Bt(ot,Kt){if(1&ot&&(w.TgZ(0,"mat-form-field",38),w.YNc(1,st,2,9,"input",39),w.YNc(2,At,2,9,"input",40),w.YNc(3,li,2,1,"mat-error",11),w.TgZ(4,"mat-hint"),w._uU(5),w.qZA(),w.qZA()),2&ot){const gt=Kt.$implicit,Lt=Kt.index;w.Q6J("fxFlex",gt.width),w.xp6(1),w.Q6J("ngIf",0===Lt),w.xp6(1),w.Q6J("ngIf",0!==Lt),w.xp6(1),w.Q6J("ngIf",!gt.inputValue),w.xp6(2),w.Oqu(gt.hintFunction?gt.hintFunction(gt.inputValue):gt.hintText)}}function Rt(ot,Kt){if(1&ot&&(w.TgZ(0,"div",35),w.YNc(1,at,2,1,"p",10),w.TgZ(2,"div",36),w.YNc(3,Bt,6,5,"mat-form-field",37),w.qZA(),w.qZA()),2&ot){const gt=w.oxw();w.xp6(1),w.Q6J("ngIf",gt.data.titleMessage),w.xp6(2),w.Q6J("ngForOf",gt.getInputs)}}function Li(ot,Kt){if(1&ot){const gt=w.EpF();w.TgZ(0,"button",43),w.NdJ("click",function(){w.CHM(gt);const ui=w.oxw();return ui.onClose(ui.getInputs)}),w._uU(1),w.qZA()}if(2&ot){const gt=w.oxw();w.xp6(1),w.Oqu(gt.yesBtnText)}}function si(ot,Kt){if(1&ot){const gt=w.EpF();w.TgZ(0,"button",44),w.NdJ("click",function(){return w.CHM(gt),w.oxw().onClose(!0)}),w._uU(1),w.qZA()}if(2&ot){const gt=w.oxw();w.xp6(1),w.Oqu(gt.yesBtnText)}}let ci=(()=>{class ot{constructor(gt,Lt,ui,Ci){this.dialogRef=gt,this.data=Lt,this.logger=ui,this.store=Ci,this.faInfoCircle=Mt.sqG,this.faExclamationTriangle=Mt.eHv,this.informationMessage="",this.warningMessage="",this.noBtnText="No",this.yesBtnText="Yes",this.messageObjs=[],this.flgShowInput=!1,this.alertTypeEnum=E.n_,this.dataTypeEnum=E.Gi,this.getInputs=[{placeholder:"",inputType:"text",inputValue:"",hintText:"",hintFunction:null}]}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.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")}onClose(gt){if(gt&&this.getInputs&&this.getInputs.some(Lt=>void 0===Lt.inputValue))return!0;this.store.dispatch((0,Zt.yb)({payload:gt}))}}return ot.\u0275fac=function(gt){return new(gt||ot)(w.Y36(P.so),w.Y36(P.WI),w.Y36(ie.mQ),w.Y36(Ft.yh))},ot.\u0275cmp=w.Xpm({type:ot,selectors:[["rtl-confirmation-message"]],decls:20,vars:9,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","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","2",1,"mr-1",3,"click"],["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"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["class","display-block w-100",3,"innerHTML",4,"ngFor","ngForOf"],[1,"display-block","w-100",3,"innerHTML"],["fxFlex","100",1,"foreground-secondary-text"],["fxLayout","column",1,"bordered-box","my-2","p-2"],["fxLayoutAlign","space-between center"],[3,"fxFlex",4,"ngFor","ngForOf"],[3,"fxFlex"],["autoFocus","","matInput","","required","",3,"placeholder","name","min","step","type","ngModel","tabindex","ngModelChange",4,"ngIf"],["matInput","","required","",3,"placeholder","name","min","step","type","ngModel","tabindex","ngModelChange",4,"ngIf"],["autoFocus","","matInput","","required","",3,"placeholder","name","min","step","type","ngModel","tabindex","ngModelChange"],["matInput","","required","",3,"placeholder","name","min","step","type","ngModel","tabindex","ngModelChange"],["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(gt,Lt){1&gt&&(w.TgZ(0,"div",0),w.TgZ(1,"div",1),w.TgZ(2,"mat-card-header",2),w.TgZ(3,"div",3),w.TgZ(4,"span",4),w._uU(5),w.qZA(),w.qZA(),w.TgZ(6,"button",5),w.NdJ("click",function(){return Lt.onClose(!1)}),w._uU(7,"X"),w.qZA(),w.qZA(),w.TgZ(8,"mat-card-content",6),w.TgZ(9,"form",7),w.YNc(10,ai,4,2,"div",8),w.YNc(11,hi,4,2,"div",9),w.YNc(12,Ze,2,1,"p",10),w.YNc(13,Fe,2,1,"div",11),w.YNc(14,Rt,4,2,"div",12),w.TgZ(15,"div",13),w.TgZ(16,"button",14),w.NdJ("click",function(){return Lt.onClose(!1)}),w._uU(17),w.qZA(),w.YNc(18,Li,2,1,"button",15),w.YNc(19,si,2,1,"button",16),w.qZA(),w.qZA(),w.qZA(),w.qZA(),w.qZA()),2&gt&&(w.xp6(5),w.Oqu(Lt.data.alertTitle||Lt.alertTypeEnum[Lt.data.type]),w.xp6(5),w.Q6J("ngIf",Lt.warningMessage&&""!==Lt.warningMessage),w.xp6(1),w.Q6J("ngIf",Lt.informationMessage&&""!==Lt.informationMessage),w.xp6(1),w.Q6J("ngIf",Lt.data.titleMessage&&!Lt.flgShowInput),w.xp6(1),w.Q6J("ngIf",(null==Lt.messageObjs?null:Lt.messageObjs.length)>0),w.xp6(1),w.Q6J("ngIf",Lt.flgShowInput),w.xp6(3),w.Oqu(Lt.noBtnText),w.xp6(1),w.Q6J("ngIf",Lt.flgShowInput),w.xp6(1),w.Q6J("ngIf",!Lt.flgShowInput))},directives:[Z.xw,Z.yH,de.dk,Z.Wh,oe.lW,de.dn,Vt._Y,Vt.JL,Vt.F,ce.O5,Ii.BN,ce.sg,u.d,ce.RF,ce.n9,ce.ED,jt.KE,jt.bx,ei.Nt,Pi.q,Vt.Fj,a.h,Vt.Q7,Vt.JJ,Vt.On,jt.TO],pipes:[ce.uU,ce.JJ,ce.i8],styles:[""]}),ot})();var sn=m(1786),Ui=m(4107),Di=m(508);function Xi(ot,Kt){if(1&ot&&(w.TgZ(0,"mat-option",23),w._uU(1),w.qZA()),2&ot){const gt=Kt.$implicit;w.Q6J("value",gt),w.xp6(1),w.hij(" ",gt.infoName," ")}}function Ke(ot,Kt){if(1&ot){const gt=w.EpF();w.TgZ(0,"div",13),w.TgZ(1,"mat-form-field",20),w.TgZ(2,"mat-select",21),w.NdJ("valueChange",function(ui){return w.CHM(gt),w.oxw().selInfoType=ui}),w.YNc(3,Xi,2,2,"mat-option",22),w.qZA(),w.qZA(),w.qZA()}if(2&ot){const gt=w.oxw();w.xp6(2),w.Q6J("value",gt.selInfoType),w.xp6(1),w.Q6J("ngForOf",gt.infoTypes)}}const _t=function(ot){return{"display-none":ot}};let ve=(()=>{class ot{constructor(gt,Lt,ui,Ci,Yi){this.dialogRef=gt,this.data=Lt,this.logger=ui,this.snackBar=Ci,this.commonService=Yi,this.faReceipt=Mt.dLy,this.infoTypes=[{infoID:0,infoKey:"node pubkey",infoName:"Node pubkey"}],this.selInfoType=this.infoTypes[0],this.qrWidth=210,this.screenSize="",this.screenSizeEnum=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((gt,Lt)=>{this.infoTypes.push({infoID:Lt+1,infoKey:"node URI "+(Lt+1),infoName:"Node URI "+(Lt+1)})})),this.screenSize=this.commonService.getScreenSize()}onClose(){this.dialogRef.close(!1)}onCopyPubkey(gt){this.snackBar.open(this.selInfoType.infoName+" copied."),this.logger.info("Copied Text: "+gt)}}return ot.\u0275fac=function(gt){return new(gt||ot)(w.Y36(P.so),w.Y36(P.WI),w.Y36(ie.mQ),w.Y36(ee.ux),w.Y36(_e.v))},ot.\u0275cmp=w.Xpm({type:ot,selectors:[["rtl-show-pubkey"]],decls:26,vars:19,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","30","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap-large",3,"ngClass"],[3,"value","size","errorCorrectionLevel"],["fxFlex","100","fxFlex.gt-sm","70"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","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(gt,Lt){1&gt&&(w.TgZ(0,"div",0),w.TgZ(1,"div",1),w._UZ(2,"qr-code",2),w.qZA(),w.TgZ(3,"div",3),w.TgZ(4,"mat-card-header",4),w.TgZ(5,"div",5),w._UZ(6,"fa-icon",6),w.TgZ(7,"span",7),w._uU(8),w.qZA(),w.qZA(),w.TgZ(9,"button",8),w.NdJ("click",function(){return Lt.onClose()}),w._uU(10,"X"),w.qZA(),w.qZA(),w.TgZ(11,"mat-card-content",9),w.TgZ(12,"div",10),w.TgZ(13,"div",11),w._UZ(14,"qr-code",2),w.qZA(),w.YNc(15,Ke,4,2,"div",12),w.TgZ(16,"div",13),w.TgZ(17,"div",14),w.TgZ(18,"h4",15),w._uU(19),w.qZA(),w.TgZ(20,"span",16),w._uU(21),w.qZA(),w.qZA(),w.qZA(),w._UZ(22,"mat-divider",17),w.TgZ(23,"div",18),w.TgZ(24,"button",19),w.NdJ("copied",function(Ci){return Lt.onCopyPubkey(Ci)}),w._uU(25),w.qZA(),w.qZA(),w.qZA(),w.qZA(),w.qZA(),w.qZA()),2&gt&&(w.xp6(1),w.Q6J("ngClass",w.VKq(15,_t,Lt.screenSize===Lt.screenSizeEnum.XS||Lt.screenSize===Lt.screenSizeEnum.SM)),w.xp6(1),w.s9C("value",0===Lt.selInfoType.infoID?Lt.information.identity_pubkey:Lt.information.uris[Lt.selInfoType.infoID-1]),w.Q6J("size",Lt.qrWidth)("errorCorrectionLevel","L"),w.xp6(4),w.Q6J("icon",Lt.faReceipt),w.xp6(2),w.Oqu(Lt.selInfoType.infoName),w.xp6(5),w.Q6J("ngClass",w.VKq(17,_t,Lt.screenSize!==Lt.screenSizeEnum.XS&&Lt.screenSize!==Lt.screenSizeEnum.SM)),w.xp6(1),w.s9C("value",0===Lt.selInfoType.infoID?Lt.information.identity_pubkey:Lt.information.uris[Lt.selInfoType.infoID-1]),w.Q6J("size",Lt.qrWidth)("errorCorrectionLevel","L"),w.xp6(1),w.Q6J("ngIf",Lt.information.uris&&Lt.information.uris.length>0),w.xp6(4),w.Oqu(Lt.selInfoType.infoName),w.xp6(2),w.Oqu(0===Lt.selInfoType.infoID?Lt.information.identity_pubkey:Lt.information.uris[Lt.selInfoType.infoID-1]),w.xp6(3),w.s9C("payload",0===Lt.selInfoType.infoID?Lt.information.identity_pubkey:Lt.information.uris[Lt.selInfoType.infoID-1]),w.xp6(1),w.hij("Copy ",Lt.selInfoType.infoKey,""))},directives:[Z.xw,Z.Wh,Z.yH,ce.mk,re.oO,ae.uU,de.dk,Ii.BN,oe.lW,de.dn,ce.O5,u.d,a.h,p.y,jt.KE,Ui.gD,ce.sg,Di.ey],styles:[""]}),ot})();var qe=m(6523),yt=m(429),fe=m(2994),Je=m(8377),St=m(8138),Pt=m(7998),yi=m(5986),Ni=m(8104),Si=m(1402);let qi=(()=>{class ot{constructor(gt,Lt,ui,Ci,Yi,$i,Cn,Ln,_n,Pn,dr){this.actions=gt,this.httpClient=Lt,this.store=ui,this.logger=Ci,this.wsService=Yi,this.sessionService=$i,this.commonService=Cn,this.dataService=Ln,this.dialog=_n,this.snackBar=Pn,this.router=dr,this.screenSize="",this.alertWidth="55%",this.confirmWidth="70%",this.unSubs=[new t.x,new t.x],this.closeAllDialogs=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.CLOSE_ALL_DIALOGS),(0,M.U)(()=>{this.dialog.closeAll()})),{dispatch:!1}),this.openSnackBar=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.OPEN_SNACK_BAR),(0,M.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,M.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,M.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(Fi=>{Fi.componentInstance&&Fi.componentInstance.data&&Fi.componentInstance.data.titleMessage&&Fi.componentInstance.data.titleMessage===wi.payload&&Fi.close()})}catch(Fi){this.logger.error(Fi)}})),{dispatch:!1}),this.openAlert=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.OPEN_ALERT),(0,M.U)(wi=>{const Fi=JSON.parse(JSON.stringify(wi.payload));Fi.width||(Fi.width=this.alertWidth),this.dialogRef=this.dialog.open(wi.payload.data.component?wi.payload.data.component:rt,Fi)})),{dispatch:!1}),this.closeAlert=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.CLOSE_ALERT),(0,M.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,M.U)(wi=>{const Fi=JSON.parse(JSON.stringify(wi.payload));Fi.width||(Fi.width=this.confirmWidth),this.dialogRef=this.dialog.open(ci,Fi)})),{dispatch:!1}),this.closeConfirm=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.CLOSE_CONFIRMATION),(0,l.q)(1),(0,M.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,N.M)(this.store.select(Je.R4)),(0,s.z)(([wi,Fi])=>(this.sessionService.getItem("token")&&Fi.identity_pubkey?this.store.dispatch((0,Zt.qR)({payload:{data:{information:Fi,component:ve}}})):this.snackBar.open("Node Pubkey does not exist."),(0,y.of)({type:E.pg.VOID}))))),this.appConfigFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.FETCH_RTL_CONFIG),(0,s.z)(()=>(this.screenSize=this.commonService.getScreenSize(),this.screenSize===E.cu.XS||this.screenSize===E.cu.SM?(this.alertWidth="95%",this.confirmWidth="95%"):this.screenSize===E.cu.MD?(this.alertWidth="80%",this.confirmWidth="80%"):(this.alertWidth="45%",this.confirmWidth="50%"),this.store.dispatch((0,Zt.ac)({payload:E.m6.GET_RTL_CONFIG})),this.store.dispatch((0,Zt.qi)({payload:{action:"FetchRTLConfig",status:E.Bn.INITIATED}})),this.sessionService.getItem("token")?this.httpClient.get(O.NZ.CONF_API+"/rtlconf"):this.httpClient.get(O.NZ.CONF_API+"/rtlconfinit"))),(0,M.U)(wi=>{let Fi;return this.logger.info(wi),this.store.dispatch((0,Zt.uO)({payload:E.m6.GET_RTL_CONFIG})),this.store.dispatch((0,Zt.qi)({payload:{action:"FetchRTLConfig",status:E.Bn.COMPLETED}})),wi.nodes.forEach(dn=>{dn.settings.currencyUnits=[...E.uA,dn.settings.currencyUnit],+dn.index===wi.selectedNodeIndex&&(Fi=dn)}),Fi?(this.store.dispatch((0,Zt.fk)({payload:{uiMessage:E.m6.NO_SPINNER,prevLnNodeIndex:-1,currentLnNode:Fi,isInitialSetup:!0}})),{type:E.pg.SET_RTL_CONFIG,payload:wi}):{type:E.pg.VOID}}),(0,D.K)(wi=>(this.handleErrorWithAlert("FetchRTLConfig",E.m6.GET_RTL_CONFIG,"Fetch RTL Config Failed!",O.NZ.CONF_API,wi),(0,y.of)({type:E.pg.VOID}))))),this.settingSave=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.SAVE_SETTINGS),(0,s.z)(wi=>{this.store.dispatch((0,Zt.ac)({payload:wi.payload.uiMessage})),this.store.dispatch((0,Zt.qi)({payload:{action:"UpdateSettings",status:E.Bn.INITIATED}}));let Fi=new C.y;if(wi.payload.settings&&wi.payload.defaultNodeIndex){const dn=this.httpClient.post(O.NZ.CONF_API,{updatedSettings:wi.payload.settings}),Lr=this.httpClient.post(O.NZ.CONF_API+"/updateDefaultNode",{defaultNodeIndex:wi.payload.defaultNodeIndex});Fi=(0,o.D)([dn,Lr])}else wi.payload.settings&&!wi.payload.defaultNodeIndex?Fi=this.httpClient.post(O.NZ.CONF_API,{updatedSettings:wi.payload.settings}):!wi.payload.settings&&wi.payload.defaultNodeIndex&&(Fi=this.httpClient.post(O.NZ.CONF_API+"/updateDefaultNode",{defaultNodeIndex:wi.payload.defaultNodeIndex}));return Fi.pipe((0,M.U)(dn=>(this.logger.info(dn),this.store.dispatch((0,Zt.qi)({payload:{action:"UpdateSettings",status:E.Bn.COMPLETED}})),this.store.dispatch((0,Zt.uO)({payload:wi.payload.uiMessage})),{type:E.pg.OPEN_SNACK_BAR,payload:dn.length?dn[0].message+".":dn.message+"."})),(0,D.K)(dn=>(this.handleErrorWithAlert("UpdateSettings",wi.payload.uiMessage,"Update Settings Failed!",O.NZ.CONF_API,dn.length?dn[0]:dn),(0,y.of)({type:E.pg.VOID}))))}))),this.updateServicesettings=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.UPDATE_SERVICE_SETTINGS),(0,s.z)(wi=>(this.store.dispatch((0,Zt.ac)({payload:wi.payload.uiMessage})),this.store.dispatch((0,Zt.qi)({payload:{action:"UpdateServiceSettings",status:E.Bn.INITIATED}})),this.httpClient.post(O.NZ.CONF_API+"/updateServiceSettings",wi.payload).pipe((0,M.U)(Fi=>(this.logger.info(Fi),this.store.dispatch((0,Zt.qi)({payload:{action:"UpdateServiceSettings",status:E.Bn.COMPLETED}})),this.store.dispatch((0,Zt.uO)({payload:wi.payload.uiMessage})),this.store.dispatch((0,Zt.Tm)({payload:wi.payload})),{type:E.pg.OPEN_SNACK_BAR,payload:Fi.message+"."})),(0,D.K)(Fi=>(this.handleErrorWithAlert("UpdateServiceSettings",wi.payload.uiMessage,"Update Service Settings Failed!",O.NZ.CONF_API,Fi),(0,y.of)({type:E.pg.VOID})))))))),this.twoFASettingSave=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.TWO_FA_SAVE_SETTINGS),(0,s.z)(wi=>(this.store.dispatch((0,Zt.ac)({payload:E.m6.UPDATE_UI_SETTINGS})),this.store.dispatch((0,Zt.qi)({payload:{action:"Update2FASettings",status:E.Bn.INITIATED}})),this.httpClient.post(O.NZ.CONF_API+"/update2FA",{secret2fa:wi.payload.secret2fa}))),(0,N.M)(this.store.select(Je.Yj)),(0,M.U)(([wi,Fi])=>{this.logger.info(wi),Fi.enable2FA=!Fi.enable2FA,this.store.dispatch((0,Zt.qi)({payload:{action:"Update2FASettings",status:E.Bn.COMPLETED}})),this.store.dispatch((0,Zt.uO)({payload:E.m6.UPDATE_UI_SETTINGS})),this.store.dispatch((0,Zt.XT)({payload:Fi}))}),(0,D.K)(wi=>(this.handleErrorWithAlert("Update2FASettings",E.m6.UPDATE_UI_SETTINGS,"Update 2FA Settings Failed!",O.NZ.CONF_API,wi),(0,y.of)({type:E.pg.VOID})))),{dispatch:!1}),this.configFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.FETCH_CONFIG),(0,s.z)(wi=>(this.store.dispatch((0,Zt.ac)({payload:E.m6.OPEN_CONFIG_FILE})),this.store.dispatch((0,Zt.qi)({payload:{action:"fetchConfig",status:E.Bn.INITIATED}})),this.httpClient.get(O.NZ.CONF_API+"/config/"+wi.payload).pipe((0,M.U)(Fi=>(this.store.dispatch((0,Zt.qi)({payload:{action:"fetchConfig",status:E.Bn.COMPLETED}})),this.store.dispatch((0,Zt.uO)({payload:E.m6.OPEN_CONFIG_FILE})),{type:E.pg.SHOW_CONFIG,payload:Fi})),(0,D.K)(Fi=>(this.handleErrorWithAlert("fetchConfig",E.m6.OPEN_CONFIG_FILE,"Fetch Config Failed!",O.NZ.CONF_API+"/config/"+wi.payload,Fi),(0,y.of)({type:E.pg.VOID})))))))),this.showLnConfig=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.SHOW_CONFIG),(0,M.U)(wi=>wi.payload)),{dispatch:!1}),this.isAuthorized=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.IS_AUTHORIZED),(0,s.z)(wi=>(this.store.dispatch((0,Zt.qi)({payload:{action:"IsAuthorized",status:E.Bn.INITIATED}})),this.httpClient.post(O.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,M.U)(Fi=>(this.logger.info(Fi),this.store.dispatch((0,Zt.qi)({payload:{action:"IsAuthorized",status:E.Bn.COMPLETED}})),this.logger.info("Successfully Authorized!"),{type:E.pg.IS_AUTHORIZED_RES,payload:Fi})),(0,D.K)(Fi=>(this.handleErrorWithAlert("IsAuthorized",E.m6.NO_SPINNER,"Authorization Failed",O.NZ.AUTHENTICATE_API,Fi),(0,y.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,M.U)(wi=>wi.payload)),{dispatch:!1}),this.authLogin=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.LOGIN),(0,N.M)(this.store.select(Je.Yj)),(0,s.z)(([wi,Fi])=>(this.store.dispatch((0,qe.Ll)({payload:null})),this.store.dispatch((0,yt.xH)({payload:null})),this.store.dispatch((0,fe.Fd)({payload:null})),this.store.dispatch((0,Zt.qi)({payload:{action:"Login",status:E.Bn.INITIATED}})),this.httpClient.post(O.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,M.U)(dn=>{this.logger.info(dn),this.store.dispatch((0,Zt.qi)({payload:{action:"Login",status:E.Bn.COMPLETED}})),this.setLoggedInDetails(wi.payload.defaultPassword,dn)}),(0,D.K)(dn=>(this.logger.info("Redirecting to Login Error Page"),this.handleErrorWithoutAlert("Login",E.m6.NO_SPINNER,dn),+Fi.sso.rtlSSO?this.router.navigate(["/error"],{state:{errorCode:"406",errorMessage:dn.error&&dn.error.error?dn.error.error:"Single Sign On Failed!"}}):this.router.navigate(["./login"]),(0,y.of)({type:E.pg.VOID}))))))),{dispatch:!1}),this.tokenVerify=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.VERIFY_TWO_FA),(0,s.z)(wi=>(this.store.dispatch((0,Zt.ac)({payload:E.m6.VERIFY_TOKEN})),this.store.dispatch((0,Zt.qi)({payload:{action:"VerifyToken",status:E.Bn.INITIATED}})),this.httpClient.post(O.NZ.AUTHENTICATE_API+"/token",{authentication2FA:wi.payload.token}).pipe((0,M.U)(Fi=>{this.logger.info(Fi),this.store.dispatch((0,Zt.uO)({payload:E.m6.VERIFY_TOKEN})),this.store.dispatch((0,Zt.qi)({payload:{action:"VerifyToken",status:E.Bn.COMPLETED}})),this.logger.info("Token Successfully Verified!"),this.setLoggedInDetails(!1,wi.payload.authResponse)}),(0,D.K)(Fi=>(this.handleErrorWithAlert("VerifyToken",E.m6.VERIFY_TOKEN,"Authorization Failed!",O.NZ.AUTHENTICATE_API+"/token",Fi),(0,y.of)({type:E.pg.VOID}))))))),{dispatch:!1}),this.logOut=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.LOGOUT),(0,N.M)(this.store.select(Je.Yj)),(0,s.z)(([wi,Fi])=>(this.store.dispatch((0,Zt.ac)({payload:E.m6.LOG_OUT})),this.httpClient.get(O.NZ.AUTHENTICATE_API+"/logout").pipe((0,M.U)(dn=>{this.logger.info(dn),this.store.dispatch((0,Zt.uO)({payload:E.m6.LOG_OUT})),+Fi.sso.rtlSSO?window.location.href=Fi.sso.logoutRedirectLink:this.router.navigate(["./login"]),this.sessionService.clearAll(),this.store.dispatch((0,Zt._V)({payload:{}})),this.logger.warn("LOGGED OUT")}))))),{dispatch:!1}),this.resetPassword=(0,e.GW)(()=>this.actions.pipe((0,A.R)(this.unSubs[1]),(0,e.l4)(E.pg.RESET_PASSWORD),(0,s.z)(wi=>(this.store.dispatch((0,Zt.qi)({payload:{action:"ResetPassword",status:E.Bn.INITIATED}})),this.httpClient.post(O.NZ.AUTHENTICATE_API+"/reset",{currPassword:wi.payload.currPassword,newPassword:wi.payload.newPassword}).pipe((0,A.R)(this.unSubs[0]),(0,M.U)(Fi=>(this.logger.info(Fi),this.store.dispatch((0,Zt.qi)({payload:{action:"ResetPassword",status:E.Bn.COMPLETED}})),this.sessionService.setItem("defaultPassword",!1),this.logger.info("Password Reset Successful!"),this.store.dispatch((0,Zt.jW)({payload:"Password Reset Successful!"})),this.SetToken(Fi.token),{type:E.pg.RESET_PASSWORD_RES,payload:Fi.token})),(0,D.K)(Fi=>(this.handleErrorWithAlert("ResetPassword",E.m6.NO_SPINNER,"Password Reset Failed!",O.NZ.AUTHENTICATE_API+"/reset",Fi),(0,y.of)({type:E.pg.VOID})))))))),this.setSelectedNode=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.SET_SELECTED_NODE),(0,s.z)(wi=>(this.store.dispatch((0,Zt.ac)({payload:wi.payload.uiMessage})),this.store.dispatch((0,Zt.qi)({payload:{action:"UpdateSelNode",status:E.Bn.INITIATED}})),this.httpClient.post(O.NZ.CONF_API+"/updateSelNode",{prevNodeIndex:wi.payload.prevLnNodeIndex,currNodeIndex:wi.payload.currentLnNode.index}).pipe((0,M.U)(Fi=>(this.logger.info(Fi),this.store.dispatch((0,Zt.qi)({payload:{action:"UpdateSelNode",status:E.Bn.COMPLETED}})),this.store.dispatch((0,Zt.uO)({payload:wi.payload.uiMessage})),this.initializeNode(wi.payload.currentLnNode,wi.payload.isInitialSetup),{type:E.pg.VOID})),(0,D.K)(Fi=>(this.handleErrorWithAlert("UpdateSelNode",wi.payload.uiMessage,"Update Selected Node Failed!",O.NZ.CONF_API+"/updateSelNode",Fi),(0,y.of)({type:E.pg.VOID})))))))),this.fetchFile=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.FETCH_FILE),(0,s.z)(wi=>{this.store.dispatch((0,Zt.ac)({payload:E.m6.DOWNLOAD_BACKUP_FILE})),this.store.dispatch((0,Zt.qi)({payload:{action:"FetchFile",status:E.Bn.INITIATED}}));const Fi="?channel="+wi.payload.channelPoint+(wi.payload.path?"&path="+wi.payload.path:"");return this.httpClient.get(O.NZ.CONF_API+"/file"+Fi).pipe((0,M.U)(dn=>(this.store.dispatch((0,Zt.qi)({payload:{action:"FetchFile",status:E.Bn.COMPLETED}})),this.store.dispatch((0,Zt.uO)({payload:E.m6.DOWNLOAD_BACKUP_FILE})),{type:E.pg.SHOW_FILE,payload:dn})),(0,D.K)(dn=>(this.handleErrorWithAlert("fetchFile",E.m6.DOWNLOAD_BACKUP_FILE,"Download Backup File Failed!",O.NZ.CONF_API+"/file"+Fi,{status:this.commonService.extractErrorNumber(dn),error:{error:this.commonService.extractErrorCode(dn)}}),(0,y.of)({type:E.pg.VOID}))))}))),this.showFile=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.SHOW_FILE),(0,M.U)(wi=>wi.payload)),{dispatch:!1})}initializeNode(gt,Lt){this.logger.info("Initializing node from RTL Effects.");const ui=Lt?"":"HOME";let Ci={};if(Ci=gt.settings.fiatConversion&&gt.settings.currencyUnit?{userPersona:gt.settings.userPersona,channelBackupPath:gt.settings.channelBackupPath,selCurrencyUnit:gt.settings.currencyUnit,currencyUnits:[...E.uA,gt.settings.currencyUnit],fiatConversion:gt.settings.fiatConversion,lnImplementation:gt.lnImplementation,swapServerUrl:gt.settings.swapServerUrl,boltzServerUrl:gt.settings.boltzServerUrl,enableOffers:gt.settings.enableOffers}:{userPersona:gt.settings.userPersona,channelBackupPath:gt.settings.channelBackupPath,selCurrencyUnit:gt.settings.currencyUnit,currencyUnits:E.uA,fiatConversion:gt.settings.fiatConversion,lnImplementation:gt.lnImplementation,swapServerUrl:gt.settings.swapServerUrl,boltzServerUrl:gt.settings.boltzServerUrl,enableOffers:gt.settings.enableOffers},this.sessionService.removeItem("lndUnlocked"),this.sessionService.removeItem("clUnlocked"),this.sessionService.removeItem("eclUnlocked"),this.store.dispatch((0,Zt.vI)({payload:gt})),this.store.dispatch((0,qe.Ll)({payload:Ci})),this.store.dispatch((0,yt.xH)({payload:Ci})),this.store.dispatch((0,fe.Fd)({payload:Ci})),this.sessionService.getItem("token")){const Yi=gt.lnImplementation?gt.lnImplementation.toUpperCase():"LND";this.dataService.setLnImplementation(Yi);const $i=O.NZ.production&&window.location.origin?window.location.origin+"/rtl/api":O.T5;switch(this.wsService.connectWebSocket($i.replace(/^http/,"ws")+O.NZ.Web_SOCKET_API,gt.index.toString()),Yi){case"CLN":this.store.dispatch((0,yt.CN)({payload:{loadPage:ui}}));break;case"ECL":this.store.dispatch((0,fe.iz)({payload:{loadPage:ui}}));break;default:this.store.dispatch((0,qe.sQ)({payload:{loadPage:ui}}))}}}SetToken(gt){gt?(this.sessionService.setItem("lndUnlocked","true"),this.sessionService.setItem("token",gt)):(this.sessionService.removeItem("lndUnlocked"),this.sessionService.removeItem("token"))}setLoggedInDetails(gt,Lt){this.logger.info("Successfully Authorized!"),this.SetToken(Lt.token),this.sessionService.setItem("defaultPassword",gt),gt?(this.store.dispatch((0,Zt.jW)({payload:"Reset your password."})),this.router.navigate(["/settings/auth"])):this.store.dispatch((0,Zt.ey)())}handleErrorWithoutAlert(gt,Lt,ui){this.logger.error("ERROR IN: "+gt+"\n"+JSON.stringify(ui)),401===ui.status&&"Login"!==gt?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,Zt.ts)()),this.store.dispatch((0,Zt.kS)()),this.store.dispatch((0,Zt.jW)({payload:"Authentication Failed. Redirecting to Login."}))):(this.store.dispatch((0,Zt.uO)({payload:Lt})),this.store.dispatch((0,Zt.qi)({payload:{action:gt,status:E.Bn.ERROR,statusCode:ui.status?ui.status.toString():"",message:this.commonService.extractErrorMessage(ui)}})))}handleErrorWithAlert(gt,Lt,ui,Ci,Yi){if(this.logger.error(Yi),0===Yi.status&&Yi.statusText&&"Unknown Error"===Yi.statusText&&(Yi={status:400,error:{message:"Unknown Error / CORS Origin Not Allowed"}}),401===Yi.status&&"Login"!==gt)this.logger.info("Redirecting to Login"),this.store.dispatch((0,Zt.ts)()),this.store.dispatch((0,Zt.kS)()),this.store.dispatch((0,Zt.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,Zt.uO)({payload:Lt}));const $i=this.commonService.extractErrorMessage(Yi);this.store.dispatch((0,Zt.qR)({payload:{data:{type:"ERROR",alertTitle:ui,message:{code:Yi.status?Yi.status:"Unknown Error",message:$i,URL:Ci},component:sn.H}}})),this.store.dispatch((0,Zt.qi)({payload:{action:gt,status:E.Bn.ERROR,statusCode:Yi.status?Yi.status.toString():"",message:$i,URL:Ci}}))}}ngOnDestroy(){this.unSubs.forEach(gt=>{gt.next(null),gt.complete()})}}return ot.\u0275fac=function(gt){return new(gt||ot)(w.LFG(e.eX),w.LFG(St.eN),w.LFG(Ft.yh),w.LFG(ie.mQ),w.LFG(Pt.d),w.LFG(yi.m),w.LFG(_e.v),w.LFG(Ni.D),w.LFG(P.uw),w.LFG(ee.ux),w.LFG(Si.F0))},ot.\u0275prov=w.Yz7({token:ot,factory:ot.\u0275fac}),ot})()},8377:(Ve,Q,m)=>{"use strict";m.d(Q,{dT:()=>C,Yj:()=>o,R4:()=>M,ul:()=>l,Sr:()=>N,gW:()=>s});var e=m(5620);const t=(0,e.ZF)("root"),C=((0,e.P1)(t,D=>D.apiURL),(0,e.P1)(t,D=>D.selNode)),o=(0,e.P1)(t,D=>D.appConfig),M=(0,e.P1)(t,D=>D.nodeData),l=(0,e.P1)(t,D=>D.apisCallStatus.Login),N=(0,e.P1)(t,D=>D.apisCallStatus.IsAuthorized),s=(0,e.P1)(t,D=>({nodeDate:D.nodeData,selNode:D.selNode}))},2340:(Ve,Q,m)=>{"use strict";m.d(Q,{T5:()=>e,NZ:()=>t,q4:()=>y});const e="./api",t={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",UTILITY_API:"/utility",LOOP_API:"/loop",BOLTZ_API:"/boltz",Web_SOCKET_API:"/ws"},y="0.12.4-beta"},8864:(Ve,Q,m)=>{"use strict";var e=m(2313),t=m(5e3),y=m(6360),C=m(8138),o=m(5113),M=m(5620),l=m(6642),N=m(9565),s=m(7579),D=m(6451),A=m(4968),O=m(457),E=m(4986),P=m(2805);function w(X=0,He=E.z){return X<0&&(X=0),(0,P.H)(X,X,He)}var Z=m(9646),j=m(727),W=m(4482),ie=m(5403),ee=m(8737),_e=m(3269),ce=m(9672),de=m(9300),oe=m(8505),ae=m(3900),b=m(2722),i=m(8746),a=m(1884),p=m(4004);class u{}class _{constructor(He,B){this._ngZone=B,this.timerStart$=new s.x,this.idleDetected$=new s.x,this.timeout$=new s.x,this.idleMillisec=6e5,this.idleSensitivityMillisec=1e3,this.timeout=300,this.pingMillisec=12e4,He&&this.setConfig(He)}startWatching(){this.activityEvents$||(this.activityEvents$=(0,D.T)((0,A.R)(window,"mousemove"),(0,A.R)(window,"resize"),(0,A.R)(document,"keydown"))),this.idle$=(0,O.D)(this.activityEvents$),this.idleSubscription&&this.idleSubscription.unsubscribe(),this.idleSubscription=this.idle$.pipe(function re(X,...He){var B,Ae;const pt=null!==(B=(0,_e.yG)(He))&&void 0!==B?B:E.z,fi=null!==(Ae=He[0])&&void 0!==Ae?Ae:null,In=He[1]||1/0;return(0,W.e)((tr,Fn)=>{let Br=[],ya=!1;const sr=fo=>{const{buffer:xc,subs:jo}=fo;jo.unsubscribe(),(0,ee.P)(Br,fo),Fn.next(xc),ya&&Na()},Na=()=>{if(Br){const fo=new j.w0;Fn.add(fo);const jo={buffer:[],subs:fo};Br.push(jo),(0,ce.f)(fo,pt,()=>sr(jo),X)}};null!==fi&&fi>=0?(0,ce.f)(Fn,pt,Na,fi,!0):ya=!0,Na();const Wo=new ie.Q(Fn,fo=>{const xc=Br.slice();for(const jo of xc){const{buffer:w0}=jo;w0.push(fo),In<=w0.length&&sr(jo)}},()=>{for(;null==Br?void 0:Br.length;)Fn.next(Br.shift().buffer);null==Wo||Wo.unsubscribe(),Fn.complete(),Fn.unsubscribe()},void 0,()=>Br=null);tr.subscribe(Wo)})}(this.idleSensitivityMillisec),(0,de.h)(He=>!He.length&&!this.isIdleDetected&&!this.isInactivityTimer),(0,oe.b)(()=>{this.isIdleDetected=!0,this.idleDetected$.next(!0)}),(0,ae.w)(()=>this._ngZone.runOutsideAngular(()=>w(1e3).pipe((0,b.R)((0,D.T)(this.activityEvents$,(0,P.H)(this.idleMillisec).pipe((0,oe.b)(()=>{this.isInactivityTimer=!0,this.timerStart$.next(!0)})))),(0,i.x)(()=>{this.isIdleDetected=!1,this.idleDetected$.next(!1)}))))).subscribe(),this.setupTimer(this.timeout),this.setupPing(this.pingMillisec)}stopWatching(){this.stopTimer(),this.idleSubscription&&this.idleSubscription.unsubscribe()}stopTimer(){this.isInactivityTimer=!1,this.timerStart$.next(!1)}resetTimer(){this.stopTimer(),this.isTimeout=!1}onTimerStart(){return this.timerStart$.pipe((0,a.x)(),(0,ae.w)(He=>He?this.timer$:(0,Z.of)(null)))}onIdleStatusChanged(){return this.idleDetected$.asObservable()}onTimeout(){return this.timeout$.pipe((0,de.h)(He=>!!He),(0,oe.b)(()=>this.isTimeout=!0),(0,p.U)(()=>!0))}getConfigValue(){return{idle:this.idleMillisec/1e3,idleSensitivity:this.idleSensitivityMillisec/1e3,timeout:this.timeout,ping:this.pingMillisec/1e3}}setConfigValues(He){!this.idleSubscription||this.idleSubscription.closed?this.setConfig(He):console.error("Call stopWatching() before set config values")}setConfig(He){He.idle&&(this.idleMillisec=1e3*He.idle),He.ping&&(this.pingMillisec=1e3*He.ping),He.idleSensitivity&&(this.idleSensitivityMillisec=1e3*He.idleSensitivity),He.timeout&&(this.timeout=He.timeout)}setCustomActivityEvents(He){!this.idleSubscription||this.idleSubscription.closed?this.activityEvents$=He:console.error("Call stopWatching() before set custom activity events")}setupTimer(He){this._ngZone.runOutsideAngular(()=>{this.timer$=(0,Z.of)(()=>new Date).pipe((0,p.U)(B=>B()),(0,ae.w)(B=>w(1e3).pipe((0,p.U)(()=>Math.round(((new Date).valueOf()-B.valueOf())/1e3)),(0,oe.b)(Ae=>{Ae>=He&&this.timeout$.next(!0)}))))})}setupPing(He){this.ping$=w(He).pipe((0,de.h)(()=>!this.isTimeout))}}_.\u0275fac=function(He){return new(He||_)(t.LFG(u,8),t.LFG(t.R0b))},_.\u0275prov=t.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"}),_.ngInjectableDef=(0,t.Ez6)({factory:function(){return new _((0,t.f3M)(u,8),(0,t.f3M)(t.R0b))},token:_,providedIn:"root"});let L=(()=>{class X{static forRoot(B){return{ngModule:X,providers:[{provide:u,useValue:B}]}}}return X.\u0275fac=function(B){return new(B||X)},X.\u0275mod=t.oAB({type:X}),X.\u0275inj=t.cJS({imports:[[]]}),X})();var I=m(1402),x=m(801),r=m(8377),v=m(7093),G=m(9444),F=m(9224),U=m(3251),ye=m(9808);const Ce=function(){return{initial:!1}};function Be(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",10),t.NdJ("click",function(){t.CHM(B);const pt=t.oxw();return pt.activeLink=pt.links[1].link}),t._uU(1),t.qZA()}if(2&X){const B=t.oxw();t.s9C("routerLink",B.links[1].link),t.Q6J("active",B.activeLink===B.links[1].link)("state",t.DdM(4,Ce)),t.xp6(1),t.Oqu(B.links[1].name)}}function ze(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",6),t.NdJ("click",function(){t.CHM(B);const pt=t.oxw();return pt.activeLink=pt.links[2].link}),t._uU(1),t.qZA()}if(2&X){const B=t.oxw();t.s9C("routerLink",B.links[2].link),t.Q6J("active",B.activeLink===B.links[2].link),t.xp6(1),t.Oqu(B.links[2].name)}}let Ie=(()=>{class X{constructor(B,Ae){this.store=B,this.router=Ae,this.faUserCog=x.gNZ,this.showBitcoind=!1,this.links=[{link:"app",name:"Application"},{link:"auth",name:"Authentication"},{link:"bconfig",name:"BitcoinD Config"}],this.activeLink="",this.unSubs=[new s.x,new s.x,new s.x]}ngOnInit(){const B=this.links.find(Ae=>this.router.url.includes(Ae.link));this.activeLink=B?B.link:this.links[0].link,this.router.events.pipe((0,b.R)(this.unSubs[0]),(0,de.h)(Ae=>Ae instanceof I.Av)).subscribe({next:Ae=>{const pt=this.links.find(fi=>Ae.urlAfterRedirects.includes(fi.link));this.activeLink=pt?pt.link:this.links[0].link}}),this.store.select(r.Yj).pipe((0,b.R)(this.unSubs[1])).subscribe(Ae=>{this.appConfig=Ae}),this.store.select(r.dT).pipe((0,b.R)(this.unSubs[2])).subscribe(Ae=>{this.showBitcoind=!1,this.selNode=Ae,this.selNode.settings&&this.selNode.settings.bitcoindConfigPath&&""!==this.selNode.settings.bitcoindConfigPath.trim()&&(this.showBitcoind=!0)})}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(M.yh),t.Y36(I.F0))},X.\u0275cmp=t.Xpm({type:X,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(B,Ae){1&B&&(t.TgZ(0,"div",0),t._UZ(1,"fa-icon",1),t.TgZ(2,"span",2),t._uU(3,"Settings"),t.qZA(),t.qZA(),t.TgZ(4,"div",3),t.TgZ(5,"mat-card"),t.TgZ(6,"mat-card-content",4),t.TgZ(7,"nav",5),t.TgZ(8,"div",6),t.NdJ("click",function(){return Ae.activeLink=Ae.links[0].link}),t._uU(9),t.qZA(),t.YNc(10,Be,2,5,"div",7),t.YNc(11,ze,2,3,"div",8),t.qZA(),t.TgZ(12,"div",9),t._UZ(13,"router-outlet"),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&B&&(t.xp6(1),t.Q6J("icon",Ae.faUserCog),t.xp6(7),t.s9C("routerLink",Ae.links[0].link),t.Q6J("active",Ae.activeLink===Ae.links[0].link),t.xp6(1),t.Oqu(Ae.links[0].name),t.xp6(1),t.Q6J("ngIf",!+Ae.appConfig.sso.rtlSSO),t.xp6(1),t.Q6J("ngIf",Ae.showBitcoind))},directives:[v.xw,v.Wh,G.BN,F.a8,F.dn,U.BU,U.Nj,I.rH,ye.O5,v.yH,I.lC],styles:[""]}),X})();var K=m(7731),Me=m(7861),we=m(5043),z=m(644),Ge=m(3075),vt=m(7322),Re=m(4107),Ne=m(3390),he=m(7423),Le=m(508);function ke(X,He){if(1&X&&(t.TgZ(0,"mat-option",16),t._uU(1),t.qZA()),2&X){const B=He.$implicit;t.Q6J("value",B.index),t.xp6(1),t.AsE(" ",B.lnNode," (",B.lnImplementation,") ")}}function q(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"form",2,3),t.TgZ(2,"div",4),t._UZ(3,"fa-icon",5),t.TgZ(4,"span",6),t._uU(5,"Default Node"),t.qZA(),t.qZA(),t.TgZ(6,"div",7),t.TgZ(7,"div",8),t._UZ(8,"fa-icon",9),t.TgZ(9,"span"),t._uU(10,"The setting will apply after RTL server restarts."),t.qZA(),t.qZA(),t.TgZ(11,"div",10),t.TgZ(12,"mat-form-field",10),t.TgZ(13,"mat-select",11),t.NdJ("ngModelChange",function(pt){return t.CHM(B),t.oxw().appConfig.defaultNodeIndex=pt}),t.YNc(14,ke,2,3,"mat-option",12),t.qZA(),t.qZA(),t.qZA(),t.TgZ(15,"div",13),t.TgZ(16,"div",10),t.TgZ(17,"button",14),t.NdJ("click",function(){return t.CHM(B),t.oxw().onResetSettings()}),t._uU(18,"Reset"),t.qZA(),t.TgZ(19,"button",15),t.NdJ("click",function(){return t.CHM(B),t.oxw().onUpdateSettings()}),t._uU(20,"Update"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.xp6(3),t.Q6J("icon",B.faWindowRestore),t.xp6(5),t.Q6J("icon",B.faInfoCircle),t.xp6(5),t.Q6J("ngModel",B.appConfig.defaultNodeIndex),t.xp6(1),t.Q6J("ngForOf",B.appConfig.nodes)}}let $=(()=>{class X{constructor(B,Ae){this.logger=B,this.store=Ae,this.faInfoCircle=x.sqG,this.faWindowRestore=x.wyP,this.faPlus=x.r8p,this.previousDefaultNode=0,this.unSubs=[new s.x,new s.x]}ngOnInit(){this.store.select(r.Yj).pipe((0,b.R)(this.unSubs[0])).subscribe(B=>{this.appConfig=B,this.previousDefaultNode=this.appConfig.defaultNodeIndex,this.logger.info(B)})}onAddNewNode(){this.logger.warn("ADD NEW NODE")}onUpdateSettings(){this.store.dispatch((0,Me.zQ)({payload:{uiMessage:K.m6.UPDATE_DEFAULT_NODE_SETTING,defaultNodeIndex:this.appConfig.defaultNodeIndex?this.appConfig.defaultNodeIndex:+this.appConfig.nodes[0].index}}))}onResetSettings(){this.appConfig.defaultNodeIndex=this.previousDefaultNode}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(we.mQ),t.Y36(M.yh))},X.\u0275cmp=t.Xpm({type:X,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(B,Ae){1&B&&(t.TgZ(0,"div",0),t.YNc(1,q,21,4,"form",1),t.qZA()),2&B&&(t.xp6(1),t.Q6J("ngIf",Ae.appConfig.nodes&&Ae.appConfig.nodes.length&&Ae.appConfig.nodes.length>0))},directives:[v.xw,v.yH,z.$V,ye.O5,Ge._Y,Ge.JL,Ge.F,v.Wh,G.BN,vt.KE,Re.gD,Ne.h,Ge.JJ,Ge.On,ye.sg,he.lW,Le.ey],styles:[""]}),X})();var le=m(8012),xe=m(5698),Ue=m(8966),lt=m(5768),nt=m(3093),ft=m(7261),it=m(5615),rt=m(7531),Mt=m(6895),Zt=m(159);const Ft=["stepper"];function Vt(X,He){if(1&X&&t._uU(0),2&X){const B=t.oxw();t.Oqu(B.passwordFormLabel)}}function Ii(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Password is required."),t.qZA())}function jt(X,He){if(1&X&&t._uU(0),2&X){const B=t.oxw(2);t.Oqu(B.secretFormLabel)}}function ei(X,He){if(1&X&&t._UZ(0,"qr-code",32),2&X){const B=t.oxw(2);t.Q6J("value",B.otpauth)("size",180)("errorCorrectionLevel","L")}}function Pi(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Secret Code is required."),t.qZA())}function ai(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"mat-step",10),t.TgZ(1,"form",21),t.YNc(2,jt,1,1,"ng-template",22),t.TgZ(3,"div",23),t.YNc(4,ei,1,3,"qr-code",24),t.qZA(),t.TgZ(5,"div",25),t._UZ(6,"fa-icon",26),t.TgZ(7,"span"),t._uU(8,"You can use a compatible authentication app to get an authentication code when you log in to RTL. e.g.: Google Authenticator."),t.qZA(),t.qZA(),t.TgZ(9,"div",27),t.TgZ(10,"mat-form-field",1),t._UZ(11,"input",28),t.TgZ(12,"fa-icon",29),t.NdJ("copied",function(pt){return t.CHM(B),t.oxw().onCopySecret(pt)}),t.qZA(),t.YNc(13,Pi,2,0,"mat-error",14),t.qZA(),t.qZA(),t.TgZ(14,"div",30),t.TgZ(15,"button",31),t._uU(16,"Next"),t.qZA(),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.Q6J("stepControl",B.secretFormGroup)("editable",B.flgEditable),t.xp6(1),t.Q6J("formGroup",B.secretFormGroup),t.xp6(3),t.Q6J("ngIf",B.otpauth),t.xp6(2),t.Q6J("icon",B.faInfoCircle),t.xp6(6),t.Q6J("icon",B.faCopy)("payload",null==B.secretFormGroup||null==B.secretFormGroup.controls||null==B.secretFormGroup.controls.secret?null:B.secretFormGroup.controls.secret.value),t.xp6(1),t.Q6J("ngIf",null==B.secretFormGroup||null==B.secretFormGroup.controls||null==B.secretFormGroup.controls.secret||null==B.secretFormGroup.controls.secret.errors?null:B.secretFormGroup.controls.secret.errors.required)}}function hi(X,He){if(1&X&&t._uU(0),2&X){const B=t.oxw(2);t.Oqu(B.tokenFormLabel)}}function Ze(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Token is required."),t.qZA())}function Ee(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Token is invalid."),t.qZA())}function Y(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",7),t.TgZ(1,"div",27),t.TgZ(2,"mat-form-field",1),t._UZ(3,"input",36),t.YNc(4,Ze,2,0,"mat-error",14),t.YNc(5,Ee,2,0,"mat-error",14),t.qZA(),t.qZA(),t.TgZ(6,"div",30),t.TgZ(7,"button",37),t.NdJ("click",function(){return t.CHM(B),t.oxw(2).onVerifyToken()}),t._uU(8),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw(2);t.xp6(4),t.Q6J("ngIf",null==B.tokenFormGroup||null==B.tokenFormGroup.controls||null==B.tokenFormGroup.controls.token||null==B.tokenFormGroup.controls.token.errors?null:B.tokenFormGroup.controls.token.errors.required),t.xp6(1),t.Q6J("ngIf",null==B.tokenFormGroup||null==B.tokenFormGroup.controls||null==B.tokenFormGroup.controls.token||null==B.tokenFormGroup.controls.token.errors?null:B.tokenFormGroup.controls.token.errors.notValid),t.xp6(3),t.Oqu(null!=B.tokenFormGroup&&null!=B.tokenFormGroup.controls&&null!=B.tokenFormGroup.controls.token&&null!=B.tokenFormGroup.controls.token.errors&&B.tokenFormGroup.controls.token.errors.notValid?"Retry":"Verify")}}function me(X,He){1&X&&(t.TgZ(0,"div"),t.TgZ(1,"strong"),t._uU(2,"Success! You are all set."),t.qZA(),t.qZA())}function De(X,He){if(1&X&&(t.TgZ(0,"mat-step",33),t.TgZ(1,"form",34),t.YNc(2,hi,1,1,"ng-template",12),t.YNc(3,Y,9,3,"div",35),t.YNc(4,me,3,0,"div",14),t.qZA(),t.qZA()),2&X){const B=t.oxw();t.Q6J("stepControl",B.tokenFormGroup),t.xp6(1),t.Q6J("formGroup",B.tokenFormGroup),t.xp6(2),t.Q6J("ngIf",!B.flgValidated||!B.isTokenValid),t.xp6(1),t.Q6J("ngIf",B.flgValidated&&B.isTokenValid)}}function et(X,He){if(1&X&&t._uU(0),2&X){const B=t.oxw(2);t.Oqu(B.disableFormLabel)}}function $t(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",7),t.TgZ(1,"div",38),t._UZ(2,"fa-icon",26),t.TgZ(3,"span"),t._uU(4,"You are about to disable two-factor authentication security from RTL. Are you sure you want to turn it off?"),t.qZA(),t.qZA(),t.TgZ(5,"div",30),t.TgZ(6,"button",37),t.NdJ("click",function(){return t.CHM(B),t.oxw(2).onVerifyToken()}),t._uU(7,"Disable"),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw(2);t.xp6(2),t.Q6J("icon",B.faExclamationTriangle)}}function Nt(X,He){1&X&&(t.TgZ(0,"div"),t.TgZ(1,"strong"),t._uU(2,"Two factor authentication removed from RTL."),t.qZA(),t.qZA())}function Jt(X,He){if(1&X&&(t.TgZ(0,"mat-step",33),t.TgZ(1,"form",34),t.YNc(2,et,1,1,"ng-template",12),t.YNc(3,$t,8,1,"div",35),t.YNc(4,Nt,3,0,"div",14),t.qZA(),t.qZA()),2&X){const B=t.oxw();t.Q6J("stepControl",B.disableFormGroup),t.xp6(1),t.Q6J("formGroup",B.disableFormGroup),t.xp6(2),t.Q6J("ngIf",!B.flgValidated||!B.isTokenValid),t.xp6(1),t.Q6J("ngIf",B.flgValidated&&B.isTokenValid)}}let ct=(()=>{class X{constructor(B,Ae,pt,fi,In,tr){this.dialogRef=B,this.data=Ae,this.store=pt,this.formBuilder=fi,this.rtlEffects=In,this.snackBar=tr,this.faExclamationTriangle=x.eHv,this.faCopy=x.kZ_,this.faInfoCircle=x.sqG,this.flgValidated=!1,this.isTokenValid=!0,this.otpauth="",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:["",[Ge.kI.required]],password:["",[Ge.kI.required]]}),this.secretFormGroup=this.formBuilder.group({secret:[{value:"",disabled:!0},Ge.kI.required]}),this.tokenFormGroup=this.formBuilder.group({token:["",Ge.kI.required]}),this.disableFormGroup=this.formBuilder.group({}),this.unSubs=[new s.x,new s.x]}ngOnInit(){this.appConfig=this.data.appConfig,this.showDisableStepper=!!this.appConfig.enable2FA,this.secretFormGroup=this.formBuilder.group({secret:[{value:this.appConfig.enable2FA?"":this.generateSecret(),disabled:!0},Ge.kI.required]})}generateSecret(){const B=lt.authenticator.generateSecret();return this.otpauth=lt.authenticator.keyuri("","Ride The Lightning (RTL)",B),B}onAuthenticate(){if(!this.passwordFormGroup.controls.password.value)return!0;this.flgValidated=!1,this.store.dispatch((0,Me.QO)({payload:le(this.passwordFormGroup.controls.password.value).toString()})),this.rtlEffects.isAuthorizedRes.pipe((0,xe.q)(1)).subscribe(B=>{"ERROR"!==B?(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(B){this.snackBar.open("Secret code "+this.secretFormGroup.controls.secret.value+" copied.")}onVerifyToken(){if(this.appConfig.enable2FA)this.store.dispatch((0,Me.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,Me.Uy)({payload:{secret2fa:this.secretFormGroup.controls.secret.value}})),this.tokenFormGroup.controls.token.setValue("")}this.flgValidated=!0,this.appConfig.enable2FA=!this.appConfig.enable2FA}stepSelectionChanged(B){switch(B.selectedIndex){case 0:default:this.passwordFormLabel="Authenticate with your RTL password";break;case 1:case 2:this.passwordFormLabel="User authenticated successfully"}B.selectedIndex<B.previouslySelectedIndex&&0===B.selectedIndex&&this.passwordFormGroup.controls.hiddenPassword.setValue("")}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(Ue.so),t.Y36(Ue.WI),t.Y36(M.yh),t.Y36(Ge.qu),t.Y36(nt.V),t.Y36(ft.ux))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-two-factor-auth"]],viewQuery:function(B,Ae){if(1&B&&t.Gf(Ft,5),2&B){let pt;t.iGM(pt=t.CRH())&&(Ae.stepper=pt.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(B,Ae){1&B&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.TgZ(2,"mat-card-header",2),t.TgZ(3,"div",3),t.TgZ(4,"span",4),t._uU(5,"Setup Two Factor Authentication"),t.qZA(),t.qZA(),t.TgZ(6,"button",5),t._uU(7,"X"),t.qZA(),t.qZA(),t.TgZ(8,"mat-card-content",6),t.TgZ(9,"div",7),t.TgZ(10,"mat-vertical-stepper",8,9),t.NdJ("selectionChange",function(fi){return Ae.stepSelectionChanged(fi)}),t.TgZ(12,"mat-step",10),t.TgZ(13,"form",11),t.YNc(14,Vt,1,1,"ng-template",12),t.TgZ(15,"div",0),t.TgZ(16,"mat-form-field",1),t._UZ(17,"input",13),t.YNc(18,Ii,2,0,"mat-error",14),t.qZA(),t.qZA(),t.TgZ(19,"div",15),t.TgZ(20,"button",16),t.NdJ("click",function(){return Ae.onAuthenticate()}),t._uU(21,"Confirm"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.YNc(22,ai,17,8,"mat-step",17),t.YNc(23,De,5,4,"mat-step",18),t.YNc(24,Jt,5,4,"mat-step",18),t.qZA(),t.TgZ(25,"div",19),t.TgZ(26,"button",20),t._uU(27),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&B&&(t.xp6(6),t.Q6J("mat-dialog-close",!1),t.xp6(4),t.Q6J("linear",!0),t.xp6(2),t.Q6J("stepControl",Ae.passwordFormGroup)("editable",Ae.flgEditable),t.xp6(1),t.Q6J("formGroup",Ae.passwordFormGroup),t.xp6(5),t.Q6J("ngIf",null==Ae.passwordFormGroup||null==Ae.passwordFormGroup.controls||null==Ae.passwordFormGroup.controls.password||null==Ae.passwordFormGroup.controls.password.errors?null:Ae.passwordFormGroup.controls.password.errors.required),t.xp6(4),t.Q6J("ngIf",!Ae.showDisableStepper),t.xp6(1),t.Q6J("ngIf",!Ae.showDisableStepper),t.xp6(1),t.Q6J("ngIf",Ae.showDisableStepper),t.xp6(2),t.Q6J("mat-dialog-close",!1),t.xp6(1),t.Oqu(Ae.flgValidated&&Ae.isTokenValid?"Close":"Cancel"))},directives:[v.xw,v.yH,F.dk,v.Wh,he.lW,Ue.ZT,F.dn,it.Vq,it.C0,Ge._Y,Ge.JL,Ge.sg,it.VY,vt.KE,rt.Nt,Ge.Fj,Ne.h,Ge.JJ,Ge.u,Ge.Q7,ye.O5,vt.TO,G.BN,vt.R9,Mt.y,it.Ic,Zt.uU],styles:[""]}),X})();var Pe=m(5986),Fe=m(4834);const at=["authForm"];function st(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Current password is required."),t.qZA())}function At(X,He){if(1&X&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&X){const B=t.oxw(2);t.xp6(1),t.Oqu(B.errorMsg)}}function li(X,He){if(1&X&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&X){const B=t.oxw(2);t.xp6(1),t.Oqu(B.errorConfirmMsg)}}function Bt(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"form",10,11),t.TgZ(2,"div",12),t._UZ(3,"fa-icon",4),t.TgZ(4,"span",5),t._uU(5,"Password"),t.qZA(),t.qZA(),t.TgZ(6,"mat-form-field"),t.TgZ(7,"input",13),t.NdJ("ngModelChange",function(pt){return t.CHM(B),t.oxw().currPassword=pt}),t.qZA(),t.YNc(8,st,2,0,"mat-error",14),t.qZA(),t.TgZ(9,"mat-form-field"),t.TgZ(10,"input",15),t.NdJ("ngModelChange",function(pt){return t.CHM(B),t.oxw().newPassword=pt}),t.qZA(),t.YNc(11,At,2,1,"mat-error",14),t.qZA(),t.TgZ(12,"mat-form-field"),t.TgZ(13,"input",16),t.NdJ("ngModelChange",function(pt){return t.CHM(B),t.oxw().confirmPassword=pt}),t.qZA(),t.YNc(14,li,2,1,"mat-error",14),t.qZA(),t.TgZ(15,"div",17),t.TgZ(16,"button",18),t.NdJ("click",function(){return t.CHM(B),t.oxw().onResetPassword()}),t._uU(17,"Reset"),t.qZA(),t.TgZ(18,"button",19),t.NdJ("click",function(){return t.CHM(B),t.oxw().onChangePassword()}),t._uU(19,"Change Password"),t.qZA(),t.qZA(),t.TgZ(20,"div",20),t._UZ(21,"mat-divider",21),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.xp6(3),t.Q6J("icon",B.faLock),t.xp6(4),t.Q6J("ngModel",B.currPassword),t.xp6(1),t.Q6J("ngIf",!B.currPassword),t.xp6(2),t.Q6J("ngModel",B.newPassword),t.xp6(1),t.Q6J("ngIf",B.matchOldAndNewPasswords()),t.xp6(2),t.Q6J("ngModel",B.confirmPassword),t.xp6(1),t.Q6J("ngIf",B.matchNewPasswords()),t.xp6(7),t.Q6J("inset",!0)}}let Rt=(()=>{class X{constructor(B,Ae,pt,fi,In){this.logger=B,this.store=Ae,this.actions=pt,this.router=fi,this.sessionService=In,this.faInfoCircle=x.sqG,this.faUserLock=x.FJU,this.faUserClock=x.hnx,this.faLock=x.byT,this.currPassword="",this.newPassword="",this.confirmPassword="",this.errorMsg="",this.errorConfirmMsg="",this.initializeNodeData=!1,this.unSubs=[new s.x,new s.x,new s.x]}ngOnInit(){this.initializeNodeData="true"===this.sessionService.getItem("defaultPassword"),this.store.select(r.Yj).pipe((0,b.R)(this.unSubs[0])).subscribe(B=>{this.appConfig=B,this.logger.info(this.appConfig)}),this.store.select(r.dT).pipe((0,b.R)(this.unSubs[1])).subscribe(B=>{this.selNode=B}),this.actions.pipe((0,b.R)(this.unSubs[2]),(0,de.h)(B=>B.type===K.pg.RESET_PASSWORD_RES)).subscribe(B=>{if(K.kO.includes(this.currPassword.toLowerCase()))switch(this.selNode.lnImplementation.toUpperCase()){case"CLN":this.router.navigate(["/cln/home"]);break;case"ECL":this.router.navigate(["/ecl/home"]);break;default:this.router.navigate(["/lnd/home"])}this.form&&this.form.resetForm()})}onChangePassword(){if(!this.currPassword||!this.newPassword||!this.confirmPassword||this.currPassword===this.newPassword||this.newPassword!==this.confirmPassword||K.kO.includes(this.newPassword.toLowerCase()))return!0;this.store.dispatch((0,Me.c0)({payload:{currPassword:le(this.currPassword).toString(),newPassword:le(this.newPassword).toString()}}))}matchOldAndNewPasswords(){let B=!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.",B=!0):K.kO.includes(this.newPassword.toLowerCase())?(this.form.controls.newpassword.setErrors({invalid:!0}),this.errorMsg=K.kO.reduce((Ae,pt,fi)=>fi<K.kO.length-1?Ae+pt+'" / "':Ae+pt+'".','Password cannot be "'),B=!0):(this.form.controls.newpassword.setErrors(null),this.errorMsg="",B=!1):(this.form.controls.newpassword.setErrors({invalid:!0}),this.errorMsg="New password is required.",B=!0)),B}matchNewPasswords(){let B=!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.",B=!0):(this.form.controls.confirmpassword.setErrors(null),this.errorConfirmMsg="",B=!1):(this.form.controls.confirmpassword.setErrors({invalid:!0}),this.errorConfirmMsg="Confirm password is required.",B=!0)),B}on2FAuth(){this.store.dispatch((0,Me.qR)({payload:{data:{appConfig:this.appConfig,component:ct}}}))}onResetPassword(){this.form.resetForm()}ngOnDestroy(){this.initializeNodeData&&this.store.dispatch((0,Me.fk)({payload:{uiMessage:K.m6.NO_SPINNER,prevLnNodeIndex:-1,currentLnNode:this.selNode,isInitialSetup:!0}})),this.unSubs.forEach(B=>{B.next(),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(we.mQ),t.Y36(M.yh),t.Y36(l.eX),t.Y36(I.F0),t.Y36(Pe.m))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-auth-settings"]],viewQuery:function(B,Ae){if(1&B&&t.Gf(at,5),2&B){let pt;t.iGM(pt=t.CRH())&&(Ae.form=pt.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(B,Ae){1&B&&(t.TgZ(0,"div",0),t.YNc(1,Bt,22,8,"form",1),t.TgZ(2,"div",2),t.TgZ(3,"div",3),t._UZ(4,"fa-icon",4),t.TgZ(5,"span",5),t._uU(6,"Two Factor Authentication"),t.qZA(),t.qZA(),t.TgZ(7,"div",6),t._UZ(8,"fa-icon",7),t.TgZ(9,"span"),t._uU(10,"Protect your account from unauthorized access by requiring a second authentication method in addition to your password."),t.qZA(),t.qZA(),t.TgZ(11,"div",8),t.TgZ(12,"button",9),t.NdJ("click",function(){return Ae.on2FAuth()}),t._uU(13),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&B&&(t.xp6(1),t.Q6J("ngIf",null==Ae.appConfig?null:Ae.appConfig.allowPasswordUpdate),t.xp6(3),t.Q6J("icon",Ae.faUserClock),t.xp6(4),t.Q6J("icon",Ae.faInfoCircle),t.xp6(5),t.Oqu(Ae.appConfig.enable2FA?"Disable 2FA":"Enable 2FA"))},directives:[v.xw,v.yH,v.Wh,ye.O5,G.BN,he.lW,Ge._Y,Ge.JL,Ge.F,vt.KE,rt.Nt,Ge.Fj,Ne.h,Ge.Q7,Ge.JJ,Ge.On,Fe.d,vt.TO],styles:[""]}),X})();var Li=m(4623);function si(X,He){1&X&&t._UZ(0,"mat-divider",7)}function ci(X,He){if(1&X&&(t.TgZ(0,"div",4),t.TgZ(1,"pre",5),t._uU(2),t.ALo(3,"json"),t.qZA(),t.YNc(4,si,1,0,"mat-divider",6),t.qZA()),2&X){const B=t.oxw();t.xp6(2),t.Oqu(t.lcZ(3,2,B.configData)),t.xp6(2),t.Q6J("ngIf",""!==B.configData)}}function sn(X,He){if(1&X&&(t.TgZ(0,"h2"),t._uU(1),t.qZA()),2&X){const B=t.oxw().$implicit;t.xp6(1),t.Oqu(B)}}function Ui(X,He){if(1&X&&(t.TgZ(0,"h4",14),t._uU(1),t.qZA()),2&X){const B=t.oxw().$implicit;t.xp6(1),t.Oqu(B)}}function Di(X,He){1&X&&t._UZ(0,"mat-divider",15),2&X&&t.Q6J("inset",!0)}function Xi(X,He){if(1&X&&(t.TgZ(0,"mat-list-item"),t.TgZ(1,"mat-card-subtitle",7),t.YNc(2,sn,2,1,"h2",10),t.qZA(),t.TgZ(3,"mat-card-subtitle",11),t.YNc(4,Ui,2,1,"h4",12),t.qZA(),t.YNc(5,Di,1,1,"mat-divider",13),t.qZA()),2&X){const B=He.$implicit;t.xp6(2),t.Q6J("ngIf",B.indexOf("[")>=0),t.xp6(2),t.Q6J("ngIf",B.indexOf("[")<0),t.xp6(1),t.Q6J("ngIf",B.indexOf("[")<0)}}function Ke(X,He){if(1&X&&(t.TgZ(0,"div",8),t.TgZ(1,"mat-list"),t.YNc(2,Xi,6,3,"mat-list-item",9),t.qZA(),t.qZA()),2&X){const B=t.oxw();t.xp6(2),t.Q6J("ngForOf",B.configData)}}let _t=(()=>{class X{constructor(B,Ae,pt){this.store=B,this.rtlEffects=Ae,this.router=pt,this.selectedNodeType="",this.configData="",this.fileFormat="INI",this.faCog=x.b7W,this.unSubs=[new s.x,new s.x]}ngOnInit(){this.selectedNodeType=this.router.url.includes("bconfig")?"bitcoind":"ln",this.router.events.pipe((0,b.R)(this.unSubs[0]),(0,de.h)(B=>B instanceof I.Av)).subscribe({next:B=>{this.selectedNodeType=B.urlAfterRedirects.includes("bconfig")?"bitcoind":"ln"}}),this.store.dispatch((0,Me.Q2)({payload:this.selectedNodeType})),this.rtlEffects.showLnConfig.pipe((0,b.R)(this.unSubs[1])).subscribe(B=>{const Ae=B.data;this.fileFormat=B.format,this.configData=""===Ae||!Ae||"INI"!==this.fileFormat&&"HOCON"!==this.fileFormat?""!==Ae&&Ae&&"JSON"===this.fileFormat?Ae:"":Ae.split("\n")})}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(M.yh),t.Y36(nt.V),t.Y36(I.F0))},X.\u0275cmp=t.Xpm({type:X,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(B,Ae){1&B&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.YNc(2,ci,5,4,"div",2),t.YNc(3,Ke,3,1,"div",3),t.qZA(),t.qZA()),2&B&&(t.xp6(2),t.Q6J("ngIf",""!==Ae.configData&&"JSON"===Ae.fileFormat),t.xp6(1),t.Q6J("ngIf",""!==Ae.configData&&("INI"===Ae.fileFormat||"HOCON"===Ae.fileFormat)))},directives:[v.xw,v.yH,v.Wh,ye.O5,Fe.d,Li.i$,ye.sg,Li.Tg,F.$j],pipes:[ye.Ts],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),X})();const ve=function(){return{initial:!1}};function qe(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",10),t.NdJ("click",function(){t.CHM(B);const pt=t.oxw();return pt.activeLink=pt.links[1].link}),t._uU(1),t.qZA()}if(2&X){const B=t.oxw();t.s9C("routerLink",B.links[1].link),t.Q6J("active",B.activeLink===B.links[1].link)("state",t.DdM(4,ve)),t.xp6(1),t.Oqu(B.links[1].name)}}function yt(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",6),t.NdJ("click",function(){t.CHM(B);const pt=t.oxw();return pt.activeLink=pt.links[2].link}),t._uU(1),t.qZA()}if(2&X){const B=t.oxw();t.s9C("routerLink",B.links[2].link),t.Q6J("active",B.activeLink===B.links[2].link),t.xp6(1),t.Oqu(B.links[2].name)}}function fe(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",6),t.NdJ("click",function(){t.CHM(B);const pt=t.oxw();return pt.activeLink=pt.links[3].link}),t._uU(1),t.qZA()}if(2&X){const B=t.oxw();t.s9C("routerLink",B.links[3].link),t.Q6J("active",B.activeLink===B.links[3].link),t.xp6(1),t.Oqu(B.links[3].name)}}let Je=(()=>{class X{constructor(B,Ae){this.store=B,this.router=Ae,this.faTools=x.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 s.x,new s.x,new s.x]}ngOnInit(){const B=this.links.find(Ae=>this.router.url.includes(Ae.link));this.activeLink=B?B.link:this.links[0].link,this.router.events.pipe((0,b.R)(this.unSubs[0]),(0,de.h)(Ae=>Ae instanceof I.Av)).subscribe({next:Ae=>{const pt=this.links.find(fi=>Ae.urlAfterRedirects.includes(fi.link));this.activeLink=pt?pt.link:this.links[0].link}}),this.store.select(r.dT).pipe((0,b.R)(this.unSubs[1])).subscribe(Ae=>{switch(this.showLnConfig=!1,this.selNode=Ae,this.selNode.lnImplementation.toUpperCase()){case"CLN":this.lnImplementationStr="Core Lightning Config";break;case"ECL":this.lnImplementationStr="Eclair Config";break;default:this.lnImplementationStr="LND Config"}this.selNode.authentication&&this.selNode.authentication.configPath&&""!==this.selNode.authentication.configPath.trim()&&(this.links[3].name=this.lnImplementationStr,this.showLnConfig=!0)})}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(M.yh),t.Y36(I.F0))},X.\u0275cmp=t.Xpm({type:X,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"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","state","click"]],template:function(B,Ae){1&B&&(t.TgZ(0,"div",0),t._UZ(1,"fa-icon",1),t.TgZ(2,"span",2),t._uU(3,"Node Config"),t.qZA(),t.qZA(),t.TgZ(4,"div",3),t.TgZ(5,"mat-card"),t.TgZ(6,"mat-card-content",4),t.TgZ(7,"nav",5),t.TgZ(8,"div",6),t.NdJ("click",function(){return Ae.activeLink=Ae.links[0].link}),t._uU(9),t.qZA(),t.YNc(10,qe,2,5,"div",7),t.YNc(11,yt,2,3,"div",8),t.YNc(12,fe,2,3,"div",8),t.qZA(),t.TgZ(13,"div",9),t._UZ(14,"router-outlet"),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&B&&(t.xp6(1),t.Q6J("icon",Ae.faTools),t.xp6(7),t.s9C("routerLink",Ae.links[0].link),t.Q6J("active",Ae.activeLink===Ae.links[0].link),t.xp6(1),t.Oqu(Ae.links[0].name),t.xp6(1),t.Q6J("ngIf","LND"===(null==Ae.selNode||null==Ae.selNode.lnImplementation?null:Ae.selNode.lnImplementation.toUpperCase())),t.xp6(1),t.Q6J("ngIf","CLN"===(null==Ae.selNode||null==Ae.selNode.lnImplementation?null:Ae.selNode.lnImplementation.toUpperCase())),t.xp6(1),t.Q6J("ngIf",Ae.showLnConfig))},directives:[v.xw,v.Wh,G.BN,F.a8,F.dn,U.BU,U.Nj,I.rH,ye.O5,v.yH,I.lC],styles:[""]}),X})();function St(X,He){1&X&&t._UZ(0,"mat-divider",7)}function Pt(X,He){if(1&X&&(t.TgZ(0,"div",4),t.TgZ(1,"pre",5),t._uU(2),t.ALo(3,"json"),t.qZA(),t.YNc(4,St,1,0,"mat-divider",6),t.qZA()),2&X){const B=t.oxw();t.xp6(2),t.Oqu(t.lcZ(3,2,B.configData)),t.xp6(2),t.Q6J("ngIf",""!==B.configData)}}function yi(X,He){if(1&X&&(t.TgZ(0,"h2"),t._uU(1),t.qZA()),2&X){const B=t.oxw().$implicit;t.xp6(1),t.Oqu(B)}}function Ni(X,He){if(1&X&&(t.TgZ(0,"h4",14),t._uU(1),t.qZA()),2&X){const B=t.oxw().$implicit;t.xp6(1),t.Oqu(B)}}function Si(X,He){1&X&&t._UZ(0,"mat-divider",15),2&X&&t.Q6J("inset",!0)}function qi(X,He){if(1&X&&(t.TgZ(0,"mat-list-item"),t.TgZ(1,"mat-card-subtitle",7),t.YNc(2,yi,2,1,"h2",10),t.qZA(),t.TgZ(3,"mat-card-subtitle",11),t.YNc(4,Ni,2,1,"h4",12),t.qZA(),t.YNc(5,Si,1,1,"mat-divider",13),t.qZA()),2&X){const B=He.$implicit;t.xp6(2),t.Q6J("ngIf",B.indexOf("[")>=0),t.xp6(2),t.Q6J("ngIf",B.indexOf("[")<0),t.xp6(1),t.Q6J("ngIf",B.indexOf("[")<0)}}function ot(X,He){if(1&X&&(t.TgZ(0,"div",8),t.TgZ(1,"mat-list"),t.YNc(2,qi,6,3,"mat-list-item",9),t.qZA(),t.qZA()),2&X){const B=t.oxw();t.xp6(2),t.Q6J("ngForOf",B.configData)}}let Kt=(()=>{class X{constructor(B,Ae,pt){this.store=B,this.rtlEffects=Ae,this.router=pt,this.selectedNodeType="",this.configData="",this.fileFormat="INI",this.faCog=x.b7W,this.unSubs=[new s.x,new s.x]}ngOnInit(){this.selectedNodeType=this.router.url.includes("bconfig")?"bitcoind":"ln",this.router.events.pipe((0,b.R)(this.unSubs[0]),(0,de.h)(B=>B instanceof I.Av)).subscribe({next:B=>{this.selectedNodeType=B.urlAfterRedirects.includes("bconfig")?"bitcoind":"ln"}}),this.store.dispatch((0,Me.Q2)({payload:this.selectedNodeType})),this.rtlEffects.showLnConfig.pipe((0,b.R)(this.unSubs[1])).subscribe(B=>{const Ae=B.data;this.fileFormat=B.format,this.configData=""===Ae||!Ae||"INI"!==this.fileFormat&&"HOCON"!==this.fileFormat?""!==Ae&&Ae&&"JSON"===this.fileFormat?Ae:"":Ae.split("\n")})}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(M.yh),t.Y36(nt.V),t.Y36(I.F0))},X.\u0275cmp=t.Xpm({type:X,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(B,Ae){1&B&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.YNc(2,Pt,5,4,"div",2),t.YNc(3,ot,3,1,"div",3),t.qZA(),t.qZA()),2&B&&(t.xp6(2),t.Q6J("ngIf",""!==Ae.configData&&"JSON"===Ae.fileFormat),t.xp6(1),t.Q6J("ngIf",""!==Ae.configData&&("INI"===Ae.fileFormat||"HOCON"===Ae.fileFormat)))},directives:[v.xw,v.yH,v.Wh,ye.O5,Fe.d,Li.i$,ye.sg,Li.Tg,F.$j],pipes:[ye.Ts],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),X})();var gt=m(2994),Lt=m(429),ui=m(6523),Ci=m(62),Yi=m(2368),$i=m(9814),Cn=m(3322);function Ln(X,He){if(1&X&&(t.TgZ(0,"mat-option",35),t._uU(1),t.qZA()),2&X){const B=He.$implicit;t.Q6J("value",B.id),t.xp6(1),t.hij(" ",B.id," ")}}function _n(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Currency unit is required."),t.qZA())}function Pn(X,He){if(1&X&&(t.TgZ(0,"mat-radio-button",36),t._uU(1),t.ALo(2,"titlecase"),t.qZA()),2&X){const B=He.$implicit,Ae=t.oxw();t.Q6J("value",B)("checked",Ae.selNode.settings.userPersona===B),t.xp6(1),t.hij(" ",t.lcZ(2,3,B)," ")}}const dr=function(X){return{"mr-4":X}};function wi(X,He){if(1&X&&(t.TgZ(0,"mat-radio-button",37),t._uU(1),t.qZA()),2&X){const B=He.$implicit,Ae=t.oxw();t.Q6J("value",B)("ngClass",t.VKq(3,dr,Ae.screenSize===Ae.screenSizeEnum.XS||Ae.screenSize===Ae.screenSizeEnum.SM)),t.xp6(1),t.hij("",B.name," ")}}const Fi=function(X){return{skin:!0,"selected-color":X}};function dn(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"span",38),t.TgZ(1,"div",39),t.NdJ("click",function(){const fi=t.CHM(B).$implicit;return t.oxw().changeThemeColor(fi.id)}),t.ALo(2,"lowercase"),t.qZA(),t._uU(3),t.qZA()}if(2&X){const B=He.$implicit,Ae=t.oxw();t.xp6(1),t.Tol(t.lcZ(2,4,B.id)),t.Q6J("ngClass",t.VKq(6,Fi,Ae.selectedThemeColor===B.id)),t.xp6(2),t.hij(" ",B.name," ")}}let Lr=(()=>{class X{constructor(B,Ae,pt){this.logger=B,this.commonService=Ae,this.store=pt,this.faExclamationTriangle=x.eHv,this.faMoneyBillAlt=x.co4,this.faPaintBrush=x.XsY,this.faInfoCircle=x.sqG,this.userPersonas=[K.ol.OPERATOR,K.ol.MERCHANT],this.currencyUnits=K.Er,this.themeModes=K.wZ.modes,this.themeColors=K.wZ.themes,this.selectedThemeMode=K.wZ.modes[0],this.selectedThemeColor=K.wZ.themes[0].id,this.currencyUnit="BTC",this.smallerCurrencyUnit="Sats",this.showSettingOption=!0,this.screenSize="",this.screenSizeEnum=K.cu,this.unSubs=[new s.x,new s.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(r.dT).pipe((0,b.R)(this.unSubs[0])).subscribe(B=>{this.selNode=B,this.selectedThemeMode=this.themeModes.find(Ae=>this.selNode.settings.themeMode===Ae.id),this.selectedThemeColor=this.selNode.settings.themeColor,this.selNode.settings.fiatConversion||(this.selNode.settings.currencyUnit=null),this.previousSettings=JSON.parse(JSON.stringify(this.selNode.settings)),this.logger.info(B)})}onCurrencyChange(B){this.selNode.settings.currencyUnits=[...K.uA,B.value],this.store.dispatch((0,ui.JT)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:B.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,Lt.oo)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:B.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,gt.Zr)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:B.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(B,Ae){this.selNode.settings[B]=!this.selNode.settings[B]}changeThemeColor(B){this.selectedThemeColor=B,this.selNode.settings.themeColor=B}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,Me.zQ)({payload:{uiMessage:K.m6.UPDATE_NODE_SETTINGS,settings:this.selNode.settings}})),this.store.dispatch((0,ui.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,Lt.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,gt.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 B=this.selNode.index;this.selNode.settings=this.previousSettings,this.selectedThemeMode=this.themeModes.find(Ae=>Ae.id===this.previousSettings.themeMode),this.selectedThemeColor=this.previousSettings.themeColor,this.store.dispatch((0,Me.fk)({payload:{uiMessage:K.m6.NO_SPINNER,prevLnNodeIndex:+B,currentLnNode:this.selNode,isInitialSetup:!0}}))}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(we.mQ),t.Y36(Ci.v),t.Y36(M.yh))},X.\u0275cmp=t.Xpm({type:X,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(B,Ae){1&B&&(t.TgZ(0,"div",0),t.TgZ(1,"form",1,2),t.TgZ(3,"div",3),t._UZ(4,"fa-icon",4),t.TgZ(5,"span",5),t._uU(6,"Balance Display"),t.qZA(),t.qZA(),t.TgZ(7,"div",6),t.TgZ(8,"div",7),t._UZ(9,"fa-icon",8),t.TgZ(10,"span"),t._uU(11,"Fiat conversion calls "),t.TgZ(12,"strong"),t.TgZ(13,"a",9),t._uU(14,"Blockchain.com"),t.qZA(),t.qZA(),t._uU(15," API to get conversion rates."),t.qZA(),t.qZA(),t.TgZ(16,"div",10),t.TgZ(17,"mat-slide-toggle",11),t.NdJ("ngModelChange",function(fi){return Ae.selNode.settings.fiatConversion=fi})("change",function(fi){return Ae.selNode.settings.currencyUnit=fi.checked?Ae.selNode.settings.currencyUnit:null}),t._uU(18,"Enable Fiat Conversion"),t.qZA(),t.TgZ(19,"mat-form-field"),t.TgZ(20,"mat-select",12,13),t.NdJ("ngModelChange",function(fi){return Ae.selNode.settings.currencyUnit=fi})("selectionChange",function(fi){return Ae.onCurrencyChange(fi)}),t.YNc(22,Ln,2,2,"mat-option",14),t.qZA(),t.YNc(23,_n,2,0,"mat-error",15),t.qZA(),t.qZA(),t.qZA(),t.TgZ(24,"div",16),t.TgZ(25,"div",17),t.TgZ(26,"div",18),t._UZ(27,"fa-icon",4),t.TgZ(28,"span",5),t._uU(29,"Customization"),t.qZA(),t.qZA(),t.TgZ(30,"div",6),t.TgZ(31,"div",19),t.TgZ(32,"div",20),t._UZ(33,"fa-icon",8),t.TgZ(34,"span"),t._uU(35,"Dashboard layout will be tailored based on the role selected to better serve its needs."),t.qZA(),t.qZA(),t.TgZ(36,"div",21),t.TgZ(37,"h4"),t._uU(38,"Dashboard Layout"),t.qZA(),t.TgZ(39,"mat-radio-group",22),t.NdJ("ngModelChange",function(fi){return Ae.selNode.settings.userPersona=fi}),t.YNc(40,Pn,3,5,"mat-radio-button",23),t.qZA(),t.qZA(),t.qZA(),t._UZ(41,"mat-divider",24),t.TgZ(42,"div",25),t.TgZ(43,"div",26),t.TgZ(44,"h4"),t._uU(45,"Mode"),t.qZA(),t.TgZ(46,"mat-radio-group",27),t.NdJ("ngModelChange",function(fi){return Ae.selectedThemeMode=fi})("change",function(){return Ae.chooseThemeMode()}),t.YNc(47,wi,2,5,"mat-radio-button",28),t.qZA(),t.qZA(),t.qZA(),t._UZ(48,"mat-divider",24),t.TgZ(49,"div",25),t.TgZ(50,"div",29),t.TgZ(51,"h4"),t._uU(52,"Themes"),t.qZA(),t.TgZ(53,"div",30),t.YNc(54,dn,4,8,"span",31),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(55,"div",32),t.TgZ(56,"button",33),t.NdJ("click",function(){return Ae.onResetSettings()}),t._uU(57,"Reset"),t.qZA(),t.TgZ(58,"button",34),t.NdJ("click",function(){return Ae.onUpdateSettings()}),t._uU(59,"Update"),t.qZA(),t.qZA(),t.qZA()),2&B&&(t.xp6(4),t.Q6J("icon",Ae.faMoneyBillAlt),t.xp6(5),t.Q6J("icon",Ae.faExclamationTriangle),t.xp6(8),t.Q6J("ngModel",Ae.selNode.settings.fiatConversion),t.xp6(3),t.Q6J("ngModel",Ae.selNode.settings.currencyUnit)("disabled",!Ae.selNode.settings.fiatConversion)("required",Ae.selNode.settings.fiatConversion),t.xp6(2),t.Q6J("ngForOf",Ae.currencyUnits),t.xp6(1),t.Q6J("ngIf",Ae.selNode.settings.fiatConversion&&!Ae.selNode.settings.currencyUnit),t.xp6(4),t.Q6J("icon",Ae.faPaintBrush),t.xp6(6),t.Q6J("icon",Ae.faInfoCircle),t.xp6(6),t.Q6J("ngModel",Ae.selNode.settings.userPersona),t.xp6(1),t.Q6J("ngForOf",Ae.userPersonas),t.xp6(1),t.Q6J("inset",!0),t.xp6(5),t.Q6J("ngModel",Ae.selectedThemeMode),t.xp6(1),t.Q6J("ngForOf",Ae.themeModes),t.xp6(1),t.Q6J("inset",!0),t.xp6(6),t.Q6J("ngForOf",Ae.themeColors))},directives:[v.xw,v.yH,z.$V,Ge._Y,Ge.JL,Ge.F,v.Wh,G.BN,Yi.Rr,Ge.JJ,Ge.On,vt.KE,Re.gD,Ne.h,Ge.Q7,ye.sg,ye.O5,$i.VQ,Fe.d,he.lW,Le.ey,vt.TO,$i.U0,ye.mk,Cn.oO],pipes:[ye.rS,ye.i8],styles:[""]}),X})();const La=function(){return{initial:!1}};let Gn=(()=>{class X{constructor(B){this.router=B,this.faLayerGroup=x.Krp,this.links=[{link:"loop",name:"Loop"},{link:"boltz",name:"Boltz"}],this.activeLink="",this.unSubs=[new s.x,new s.x,new s.x]}ngOnInit(){const B=this.links.find(Ae=>this.router.url.includes(Ae.link));this.activeLink=B?B.link:this.links[0].link,this.router.events.pipe((0,b.R)(this.unSubs[0]),(0,de.h)(Ae=>Ae instanceof I.Av)).subscribe({next:Ae=>{const pt=this.links.find(fi=>Ae.urlAfterRedirects.includes(fi.link));this.activeLink=pt?pt.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(I.F0))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-services-settings"]],decls:14,vars:9,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","",1,"mat-tab-label",3,"active","routerLink","click"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","state","click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"]],template:function(B,Ae){1&B&&(t.TgZ(0,"div",0),t._UZ(1,"fa-icon",1),t.TgZ(2,"span",2),t._uU(3,"Services"),t.qZA(),t.qZA(),t.TgZ(4,"div",3),t.TgZ(5,"mat-card"),t.TgZ(6,"mat-card-content",4),t.TgZ(7,"nav",5),t.TgZ(8,"div",6),t.NdJ("click",function(){return Ae.activeLink=Ae.links[0].link}),t._uU(9),t.qZA(),t.TgZ(10,"div",7),t.NdJ("click",function(){return Ae.activeLink=Ae.links[1].link}),t._uU(11),t.qZA(),t.qZA(),t.TgZ(12,"div",8),t._UZ(13,"router-outlet"),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&B&&(t.xp6(1),t.Q6J("icon",Ae.faLayerGroup),t.xp6(7),t.s9C("routerLink",Ae.links[0].link),t.Q6J("active",Ae.activeLink===Ae.links[0].link),t.xp6(1),t.Oqu(Ae.links[0].name),t.xp6(1),t.s9C("routerLink",Ae.links[1].link),t.Q6J("active",Ae.activeLink===Ae.links[1].link)("state",t.DdM(8,La)),t.xp6(1),t.Oqu(Ae.links[1].name))},directives:[v.xw,v.Wh,G.BN,F.a8,F.dn,U.BU,U.Nj,I.rH,v.yH,I.lC],styles:[""]}),X})();const Or=["form"];function Ra(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Loop server URL is required."),t.qZA())}function Ma(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Specify the loop server url with 'https://'."),t.qZA())}function Fa(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Loop macaroon path is required."),t.qZA())}let xr=(()=>{class X{constructor(B,Ae){this.logger=B,this.store=Ae,this.faInfoCircle=x.sqG,this.enableLoop=!1,this.unSubs=[new s.x,new s.x]}ngOnInit(){this.store.select(r.dT).pipe((0,b.R)(this.unSubs[0])).subscribe(B=>{this.selNode=B,this.enableLoop=B.settings.swapServerUrl&&""!==B.settings.swapServerUrl.trim(),this.previousSelNode=JSON.parse(JSON.stringify(this.selNode)),this.logger.info(B)})}onEnableServiceChanged(B){this.enableLoop=B.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,Me.jS)({payload:{uiMessage:K.m6.UPDATE_LOOP_SETTINGS,service:K.JX.LOOP,settings:{enable:this.enableLoop,serverUrl:this.selNode.settings.swapServerUrl,macaroonPath:this.selNode.authentication.swapMacaroonPath}}})),this.store.dispatch((0,ui.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,Lt.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,gt.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(B=>{B.next(),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(we.mQ),t.Y36(M.yh))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-loop-service-settings"]],viewQuery:function(B,Ae){if(1&B&&t.Gf(Or,7),2&B){let pt;t.iGM(pt=t.CRH())&&(Ae.form=pt.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(B,Ae){if(1&B&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t._UZ(2,"fa-icon",2),t.TgZ(3,"span"),t._uU(4,"Please ensure that "),t.TgZ(5,"strong"),t._uU(6,"loopd"),t.qZA(),t._uU(7," is running and accessible to RTL before enabling this service. Click "),t.TgZ(8,"strong"),t.TgZ(9,"a",3),t._uU(10,"here"),t.qZA(),t.qZA(),t._uU(11," to learn more about the installation."),t.qZA(),t.qZA(),t.TgZ(12,"form",4,5),t.TgZ(14,"div",6),t.TgZ(15,"mat-slide-toggle",7),t.NdJ("ngModelChange",function(fi){return Ae.enableLoop=fi})("change",function(fi){return Ae.onEnableServiceChanged(fi)}),t._uU(16,"Enable Loop Service"),t.qZA(),t.TgZ(17,"mat-form-field",8),t.TgZ(18,"input",9,10),t.NdJ("ngModelChange",function(fi){return Ae.selNode.settings.swapServerUrl=fi}),t.qZA(),t.TgZ(20,"mat-hint"),t._uU(21,"Service url for loop server REST APIs, eg. https://localhost:8081"),t.qZA(),t.YNc(22,Ra,2,0,"mat-error",11),t.YNc(23,Ma,2,0,"mat-error",11),t.qZA(),t.TgZ(24,"mat-form-field"),t.TgZ(25,"input",12),t.NdJ("ngModelChange",function(fi){return Ae.selNode.authentication.swapMacaroonPath=fi}),t.qZA(),t.TgZ(26,"mat-hint"),t._uU(27,"Path for the folder containing service 'loop.macaroon', eg. D:\\\\xyz\\\\AppData\\\\Local\\\\Loop\\\\testnet"),t.qZA(),t.YNc(28,Fa,2,0,"mat-error",11),t.qZA(),t.qZA(),t.qZA(),t.TgZ(29,"div",13),t.TgZ(30,"button",14),t.NdJ("click",function(){return Ae.onReset()}),t._uU(31,"Reset"),t.qZA(),t.TgZ(32,"button",15),t.NdJ("click",function(){return Ae.onUpdateService()}),t._uU(33,"Update"),t.qZA(),t.qZA(),t.qZA()),2&B){const pt=t.MAs(19);t.xp6(2),t.Q6J("icon",Ae.faInfoCircle),t.xp6(13),t.Q6J("ngModel",Ae.enableLoop),t.xp6(3),t.Q6J("ngModel",Ae.selNode.settings.swapServerUrl)("required",Ae.enableLoop)("disabled",!Ae.enableLoop),t.xp6(4),t.Q6J("ngIf",!Ae.selNode.settings.swapServerUrl&&Ae.enableLoop),t.xp6(1),t.Q6J("ngIf",(null==pt||null==pt.errors?null:pt.errors.invalid)&&Ae.enableLoop),t.xp6(2),t.Q6J("ngModel",Ae.selNode.authentication.swapMacaroonPath)("required",Ae.enableLoop)("disabled",!Ae.enableLoop),t.xp6(3),t.Q6J("ngIf",!Ae.selNode.authentication.swapMacaroonPath&&Ae.enableLoop)}},directives:[v.xw,v.yH,z.$V,G.BN,Ge._Y,Ge.JL,Ge.F,v.Wh,Yi.Rr,Ne.h,Ge.JJ,Ge.On,vt.KE,rt.Nt,Ge.Fj,Ge.Q7,vt.bx,ye.O5,he.lW,vt.TO],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),X})();const hs=["form"];function ur(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Boltz server URL is required."),t.qZA())}function pa(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Specify the boltz server url with 'https://'."),t.qZA())}function ma(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Boltz macaroon path is required."),t.qZA())}let Ir=(()=>{class X{constructor(B,Ae){this.logger=B,this.store=Ae,this.faInfoCircle=x.sqG,this.enableBoltz=!1,this.serverUrl="",this.macaroonPath="",this.unSubs=[new s.x,new s.x]}ngOnInit(){this.store.select(r.dT).pipe((0,b.R)(this.unSubs[0])).subscribe(B=>{this.selNode=B,this.enableBoltz=B.settings.boltzServerUrl&&""!==B.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(B)})}onEnableServiceChanged(B){this.enableBoltz=B.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,Me.jS)({payload:{uiMessage:K.m6.UPDATE_BOLTZ_SETTINGS,service:K.JX.BOLTZ,settings:{enable:this.enableBoltz,serverUrl:this.serverUrl,macaroonPath:this.macaroonPath}}})),this.store.dispatch((0,ui.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,Lt.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,gt.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(B=>{B.next(),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(we.mQ),t.Y36(M.yh))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-boltz-service-settings"]],viewQuery:function(B,Ae){if(1&B&&t.Gf(hs,7),2&B){let pt;t.iGM(pt=t.CRH())&&(Ae.form=pt.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(B,Ae){if(1&B&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t._UZ(2,"fa-icon",2),t.TgZ(3,"span"),t._uU(4,"Please ensure that "),t.TgZ(5,"strong"),t._uU(6,"boltzd"),t.qZA(),t._uU(7," is running and accessible to RTL before enabling this service. Click "),t.TgZ(8,"strong"),t.TgZ(9,"a",3),t._uU(10,"here"),t.qZA(),t.qZA(),t._uU(11," to learn more about the installation."),t.qZA(),t.qZA(),t.TgZ(12,"form",4,5),t.TgZ(14,"div",6),t.TgZ(15,"mat-slide-toggle",7),t.NdJ("ngModelChange",function(fi){return Ae.enableBoltz=fi})("change",function(fi){return Ae.onEnableServiceChanged(fi)}),t._uU(16,"Enable Boltz Service"),t.qZA(),t.TgZ(17,"mat-form-field",8),t.TgZ(18,"input",9,10),t.NdJ("ngModelChange",function(fi){return Ae.serverUrl=fi}),t.qZA(),t.TgZ(20,"mat-hint"),t._uU(21,"Service url for boltz server REST APIs, eg. https://localhost:9003"),t.qZA(),t.YNc(22,ur,2,0,"mat-error",11),t.YNc(23,pa,2,0,"mat-error",11),t.qZA(),t.TgZ(24,"mat-form-field"),t.TgZ(25,"input",12),t.NdJ("ngModelChange",function(fi){return Ae.macaroonPath=fi}),t.qZA(),t.TgZ(26,"mat-hint"),t._uU(27,"Path for the folder containing boltz 'admin.macaroon', eg. D:\\\\xyz\\\\AppData\\\\Boltz\\\\testnet"),t.qZA(),t.YNc(28,ma,2,0,"mat-error",11),t.qZA(),t.qZA(),t.qZA(),t.TgZ(29,"div",13),t.TgZ(30,"button",14),t.NdJ("click",function(){return Ae.onReset()}),t._uU(31,"Reset"),t.qZA(),t.TgZ(32,"button",15),t.NdJ("click",function(){return Ae.onUpdateService()}),t._uU(33,"Update"),t.qZA(),t.qZA(),t.qZA()),2&B){const pt=t.MAs(19);t.xp6(2),t.Q6J("icon",Ae.faInfoCircle),t.xp6(13),t.Q6J("ngModel",Ae.enableBoltz),t.xp6(3),t.Q6J("ngModel",Ae.serverUrl)("required",Ae.enableBoltz)("disabled",!Ae.enableBoltz),t.xp6(4),t.Q6J("ngIf",(!Ae.serverUrl||""===Ae.serverUrl.trim())&&Ae.enableBoltz),t.xp6(1),t.Q6J("ngIf",(null==pt||null==pt.errors?null:pt.errors.invalid)&&Ae.enableBoltz),t.xp6(2),t.Q6J("ngModel",Ae.macaroonPath)("required",Ae.enableBoltz)("disabled",!Ae.enableBoltz),t.xp6(3),t.Q6J("ngIf",!Ae.macaroonPath&&Ae.enableBoltz)}},directives:[v.xw,v.yH,z.$V,G.BN,Ge._Y,Ge.JL,Ge.F,v.Wh,Yi.Rr,Ne.h,Ge.JJ,Ge.On,vt.KE,rt.Nt,Ge.Fj,Ge.Q7,vt.bx,ye.O5,he.lW,vt.TO],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),X})(),Ga=(()=>{class X{constructor(B,Ae){this.store=B,this.router=Ae,this.faLayerGroup=x.Krp,this.showLnConfig=!1,this.showBitcoind=!1,this.lnImplementationStr="",this.links=[{link:"layout",name:"Layout"},{link:"auth",name:"Authentication"},{link:"lnconfig",name:this.lnImplementationStr},{link:"bconfig",name:"BitcoinD Config"}],this.activeLink="",this.unSubs=[new s.x,new s.x,new s.x]}ngOnInit(){const B=this.links.find(Ae=>this.router.url.includes(Ae.link));this.activeLink=B?B.link:this.links[0].link,this.router.events.pipe((0,b.R)(this.unSubs[0]),(0,de.h)(Ae=>Ae instanceof I.Av)).subscribe({next:Ae=>{const pt=this.links.find(fi=>Ae.urlAfterRedirects.includes(fi.link));this.activeLink=pt?pt.link:this.links[0].link}}),this.store.select(r.dT).pipe((0,b.R)(this.unSubs[1])).subscribe(Ae=>{switch(this.showLnConfig=!1,this.showBitcoind=!1,this.selNode=Ae,this.selNode.lnImplementation.toUpperCase()){case"CLN":this.lnImplementationStr="Core Lightning Config";break;case"ECL":this.lnImplementationStr="Eclair Config";break;default:this.lnImplementationStr="LND Config"}this.selNode.authentication&&this.selNode.authentication.configPath&&""!==this.selNode.authentication.configPath.trim()&&(this.links[2].name=this.lnImplementationStr,this.showLnConfig=!0),this.selNode.settings&&this.selNode.settings.bitcoindConfigPath&&""!==this.selNode.settings.bitcoindConfigPath.trim()&&(this.showBitcoind=!0)})}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(M.yh),t.Y36(I.F0))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-services"]],decls:1,vars:0,template:function(B,Ae){1&B&&t._UZ(0,"router-outlet")},directives:[I.lC],styles:[""]}),X})();var Ya=m(8213),Zr=m(9107),kr=m(6087),Kn=m(4847),vn=m(2075),Qn=m(5899);function Tr(X,He){1&X&&t._UZ(0,"mat-progress-bar",34)}function Ba(X,He){1&X&&(t.TgZ(0,"th",35),t._uU(1," Initiation Time "),t.qZA())}function Wa(X,He){if(1&X&&(t.TgZ(0,"td",36),t._uU(1),t.ALo(2,"date"),t.qZA()),2&X){const B=He.$implicit;t.xp6(1),t.Oqu(t.xi3(2,1,B.initiation_time/1e6,"dd/MMM/y HH:mm"))}}function Pr(X,He){1&X&&(t.TgZ(0,"th",35),t._uU(1," Last Update Time "),t.qZA())}function la(X,He){if(1&X&&(t.TgZ(0,"td",36),t._uU(1),t.ALo(2,"date"),t.qZA()),2&X){const B=He.$implicit;t.xp6(1),t.Oqu(t.xi3(2,1,B.last_update_time/1e6,"dd/MMM/y HH:mm"))}}function Jr(X,He){1&X&&(t.TgZ(0,"th",35),t._uU(1," ID "),t.qZA())}function ga(X,He){if(1&X&&(t.TgZ(0,"td",36),t._uU(1),t.qZA()),2&X){const B=He.$implicit;t.xp6(1),t.Oqu(B.id)}}function $n(X,He){1&X&&(t.TgZ(0,"th",35),t._uU(1," ID (Bytes) "),t.qZA())}function wa(X,He){if(1&X&&(t.TgZ(0,"td",36),t._uU(1),t.qZA()),2&X){const B=He.$implicit;t.xp6(1),t.Oqu(B.id_bytes)}}function Nr(X,He){1&X&&(t.TgZ(0,"th",35),t._uU(1," State "),t.qZA())}function ca(X,He){if(1&X&&(t.TgZ(0,"td",36),t._uU(1),t.qZA()),2&X){const B=He.$implicit,Ae=t.oxw();t.xp6(1),t.Oqu(Ae.LoopStateEnum[B.state])}}function Aa(X,He){1&X&&(t.TgZ(0,"th",35),t._uU(1," HTLC Address "),t.qZA())}function Vr(X,He){if(1&X&&(t.TgZ(0,"td",36),t._uU(1),t.qZA()),2&X){const B=He.$implicit;t.xp6(1),t.Oqu(B.htlc_address)}}function ha(X,He){1&X&&(t.TgZ(0,"th",37),t._uU(1," Amount (Sats) "),t.qZA())}function pr(X,He){if(1&X&&(t.TgZ(0,"td",36),t.TgZ(1,"span",38),t._uU(2),t.ALo(3,"number"),t.qZA(),t.qZA()),2&X){const B=He.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,B.amt))}}function Sr(X,He){1&X&&(t.TgZ(0,"th",37),t._uU(1," Cost Server (Sats) "),t.qZA())}function is(X,He){if(1&X&&(t.TgZ(0,"td",36),t.TgZ(1,"span",38),t._uU(2),t.ALo(3,"number"),t.qZA(),t.qZA()),2&X){const B=He.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,B.cost_server))}}function Oa(X,He){1&X&&(t.TgZ(0,"th",37),t._uU(1," Cost Offchain (Sats) "),t.qZA())}function ra(X,He){if(1&X&&(t.TgZ(0,"td",36),t.TgZ(1,"span",38),t._uU(2),t.ALo(3,"number"),t.qZA(),t.qZA()),2&X){const B=He.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,B.cost_offchain))}}function Gr(X,He){1&X&&(t.TgZ(0,"th",37),t._uU(1," Cost Onchain (Sats) "),t.qZA())}function Ha(X,He){if(1&X&&(t.TgZ(0,"td",36),t.TgZ(1,"span",38),t._uU(2),t.ALo(3,"number"),t.qZA(),t.qZA()),2&X){const B=He.$implicit;t.xp6(2),t.hij(" ",t.lcZ(3,1,null==B?null:B.cost_onchain)," ")}}function Zn(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"th",39),t.TgZ(1,"div",40),t.TgZ(2,"mat-select",41),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",42),t.NdJ("click",function(){return t.CHM(B),t.oxw().onDownloadCSV()}),t._uU(5,"Download CSV"),t.qZA(),t.qZA(),t.qZA(),t.qZA()}}function ns(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"td",43),t.TgZ(1,"button",44),t.NdJ("click",function(pt){const In=t.CHM(B).$implicit;return t.oxw().onSwapClick(In,pt)}),t._uU(2,"View Info"),t.qZA(),t.qZA()}}function ja(X,He){if(1&X&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&X){const B=t.oxw(2);t.xp6(1),t.Oqu(B.emptyTableMessage)}}function Xe(X,He){if(1&X&&(t.TgZ(0,"td",45),t.YNc(1,ja,2,1,"p",46),t.qZA()),2&X){const B=t.oxw();t.xp6(1),t.Q6J("ngIf",!(null!=B.listSwaps&&B.listSwaps.data)||(null==B.listSwaps||null==B.listSwaps.data?null:B.listSwaps.data.length)<1)}}const ge=function(X){return{"display-none":X}};function J(X,He){if(1&X&&t._UZ(0,"tr",47),2&X){const B=t.oxw();t.Q6J("ngClass",t.VKq(1,ge,(null==B.listSwaps?null:B.listSwaps.data)&&(null==B.listSwaps||null==B.listSwaps.data?null:B.listSwaps.data.length)>0))}}function ne(X,He){1&X&&t._UZ(0,"tr",48)}function Qe(X,He){1&X&&t._UZ(0,"tr",49)}const Wt=function(X){return{"overflow-auto error-border":X,"overflow-auto":!0}},mi=function(){return["no_swap"]};let Ct=(()=>{class X{constructor(B,Ae,pt,fi){this.logger=B,this.commonService=Ae,this.store=pt,this.loopService=fi,this.selectedSwapType=K.$I.LOOP_OUT,this.swapsData=[],this.flgLoading=[!0],this.emptyTableMessage="No swaps available.",this.LoopStateEnum=K.Fq,this.faHistory=x.qO$,this.swapCaption="Loop Out",this.displayedColumns=[],this.selFilter="",this.flgSticky=!1,this.pageSize=K.IV,this.pageSizeOptions=K.TJ,this.screenSize="",this.screenSizeEnum=K.cu,this.unSubs=[new s.x,new s.x,new s.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===K.cu.XS||this.screenSize===K.cu.SM?(this.flgSticky=!1,this.displayedColumns=["state","amt","actions"]):this.screenSize===K.cu.MD?(this.flgSticky=!1,this.displayedColumns=["state","initiation_time","amt","actions"]):(this.flgSticky=!0,this.displayedColumns=["state","initiation_time","amt","cost_server","cost_offchain","cost_onchain","actions"])}ngAfterViewInit(){this.swapsData&&this.swapsData.length>0&&this.loadSwapsTable(this.swapsData)}ngOnChanges(B){this.swapCaption=this.selectedSwapType===K.$I.LOOP_IN?"Loop In":"Loop Out",this.loadSwapsTable(this.swapsData)}applyFilter(){this.listSwaps.filter=this.selFilter.trim().toLowerCase()}onSwapClick(B,Ae){this.loopService.getSwap(B.id_bytes.replace(/\//g,"_").replace(/\+/g,"-")).pipe((0,b.R)(this.unSubs[2])).subscribe(pt=>{this.store.dispatch((0,Me.qR)({payload:{data:{type:K.n_.INFORMATION,alertTitle:this.swapCaption+" Status",message:[[{key:"state",value:K.Fq[pt.state],title:"Status",width:50,type:K.Gi.STRING},{key:"amt",value:pt.amt,title:"Amount (Sats)",width:50,type:K.Gi.NUMBER}],[{key:"initiation_time",value:pt.initiation_time/1e9,title:"Initiation Time",width:50,type:K.Gi.DATE_TIME},{key:"last_update_time",value:pt.last_update_time/1e9,title:"Last Update Time",width:50,type:K.Gi.DATE_TIME}],[{key:"cost_server",value:pt.cost_server,title:"Server Cost (Sats)",width:33,type:K.Gi.NUMBER},{key:"cost_offchain",value:pt.cost_offchain,title:"Offchain Cost (Sats)",width:33,type:K.Gi.NUMBER},{key:"cost_onchain",value:pt.cost_onchain,title:"Onchain Cost (Sats)",width:34,type:K.Gi.NUMBER}],[{key:"id_bytes",value:pt.id_bytes,title:"ID",width:100,type:K.Gi.STRING}],[{key:"htlc_address",value:pt.htlc_address,title:"HTLC Address",width:100,type:K.Gi.STRING}]],openedBy:"SWAP"}}}))})}loadSwapsTable(B){this.listSwaps=new vn.by([...B]),this.listSwaps.sort=this.sort,this.listSwaps.sortingDataAccessor=(Ae,pt)=>Ae[pt]&&isNaN(Ae[pt])?Ae[pt].toLocaleLowerCase():Ae[pt]?+Ae[pt]:null,this.listSwaps.filterPredicate=(Ae,pt)=>JSON.stringify(Ae).toLowerCase().includes(pt),this.listSwaps.paginator=this.paginator,this.applyFilter(),this.logger.info(this.listSwaps)}onDownloadCSV(){this.listSwaps.data&&this.listSwaps.data.length>0&&this.commonService.downloadFile(this.listSwaps.data,this.selectedSwapType===K.$I.LOOP_IN?"Loop in":"Loop out")}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(we.mQ),t.Y36(Ci.v),t.Y36(M.yh),t.Y36(Zr.W))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-swaps"]],viewQuery:function(B,Ae){if(1&B&&(t.Gf(Kn.YE,5),t.Gf(kr.NW,5)),2&B){let pt;t.iGM(pt=t.CRH())&&(Ae.sort=pt.first),t.iGM(pt=t.CRH())&&(Ae.paginator=pt.first)}},inputs:{selectedSwapType:"selectedSwapType",swapsData:"swapsData",flgLoading:"flgLoading",emptyTableMessage:"emptyTableMessage"},features:[t._Bn([{provide:kr.ye,useValue:(0,K.pt)("Swaps")}]),t.TTD],decls:52,vars:17,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start start",1,"card-content-gap"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch","fxFlex","100",1,"page-sub-title-container","w-100"],["fxFlex","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","row","fxLayoutAlign","start center",1,"w-100"],["fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","initiation_time"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","last_update_time"],["matColumnDef","id"],["matColumnDef","id_bytes"],["matColumnDef","state"],["matColumnDef","htlc_address"],["matColumnDef","amt"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","cost_server"],["matColumnDef","cost_offchain"],["matColumnDef","cost_onchain"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-3","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_swap"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(B,Ae){1&B&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.TgZ(2,"div",2),t._UZ(3,"fa-icon",3),t.TgZ(4,"span",4),t._uU(5),t.qZA(),t.qZA(),t.TgZ(6,"mat-form-field",5),t.TgZ(7,"input",6),t.NdJ("keyup",function(){return Ae.applyFilter()})("ngModelChange",function(fi){return Ae.selFilter=fi}),t.qZA(),t.qZA(),t.qZA(),t.TgZ(8,"div",7),t.TgZ(9,"div",8),t.YNc(10,Tr,1,0,"mat-progress-bar",9),t.TgZ(11,"table",10,11),t.ynx(13,12),t.YNc(14,Ba,2,0,"th",13),t.YNc(15,Wa,3,4,"td",14),t.BQk(),t.ynx(16,15),t.YNc(17,Pr,2,0,"th",13),t.YNc(18,la,3,4,"td",14),t.BQk(),t.ynx(19,16),t.YNc(20,Jr,2,0,"th",13),t.YNc(21,ga,2,1,"td",14),t.BQk(),t.ynx(22,17),t.YNc(23,$n,2,0,"th",13),t.YNc(24,wa,2,1,"td",14),t.BQk(),t.ynx(25,18),t.YNc(26,Nr,2,0,"th",13),t.YNc(27,ca,2,1,"td",14),t.BQk(),t.ynx(28,19),t.YNc(29,Aa,2,0,"th",13),t.YNc(30,Vr,2,1,"td",14),t.BQk(),t.ynx(31,20),t.YNc(32,ha,2,0,"th",21),t.YNc(33,pr,4,3,"td",14),t.BQk(),t.ynx(34,22),t.YNc(35,Sr,2,0,"th",21),t.YNc(36,is,4,3,"td",14),t.BQk(),t.ynx(37,23),t.YNc(38,Oa,2,0,"th",21),t.YNc(39,ra,4,3,"td",14),t.BQk(),t.ynx(40,24),t.YNc(41,Gr,2,0,"th",21),t.YNc(42,Ha,4,3,"td",14),t.BQk(),t.ynx(43,25),t.YNc(44,Zn,6,0,"th",26),t.YNc(45,ns,3,0,"td",27),t.BQk(),t.ynx(46,28),t.YNc(47,Xe,2,1,"td",29),t.BQk(),t.YNc(48,J,1,3,"tr",30),t.YNc(49,ne,1,0,"tr",31),t.YNc(50,Qe,1,0,"tr",32),t.qZA(),t._UZ(51,"mat-paginator",33),t.qZA(),t.qZA(),t.qZA()),2&B&&(t.xp6(3),t.Q6J("icon",Ae.faHistory),t.xp6(2),t.AsE("",Ae.swapCaption," History, ",Ae.flgLoading,""),t.xp6(2),t.Q6J("ngModel",Ae.selFilter),t.xp6(3),t.Q6J("ngIf",!0===Ae.flgLoading[0]),t.xp6(1),t.Q6J("dataSource",Ae.listSwaps)("ngClass",t.VKq(14,Wt,"error"===Ae.flgLoading[0])),t.xp6(37),t.Q6J("matFooterRowDef",t.DdM(16,mi)),t.xp6(1),t.Q6J("matHeaderRowDef",Ae.displayedColumns)("matHeaderRowDefSticky",Ae.flgSticky),t.xp6(1),t.Q6J("matRowDefColumns",Ae.displayedColumns),t.xp6(1),t.Q6J("pageSize",Ae.pageSize)("pageSizeOptions",Ae.pageSizeOptions)("showFirstLastButtons",Ae.screenSize!==Ae.screenSizeEnum.XS))},directives:[v.xw,v.yH,v.Wh,G.BN,vt.KE,rt.Nt,Ge.Fj,Ge.JJ,Ge.On,z.$V,ye.O5,vn.BZ,Kn.YE,ye.mk,Cn.oO,vn.w1,vn.fO,vn.Dz,vn.mD,vn.Ke,vn.as,vn.nj,kr.NW,Qn.pW,vn.ge,Kn.nU,vn.ev,Re.gD,Re.$L,Le.ey,he.lW,vn.yh,vn.Q2,vn.XQ,vn.Gk],pipes:[ye.uU,ye.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),X})();const ti=function(X){return["../",X]};function bt(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",10),t.NdJ("click",function(){const fi=t.CHM(B).$implicit;return t.oxw().onSelectedIndexChange(fi)}),t._uU(1),t.qZA()}if(2&X){const B=He.$implicit,Ae=t.oxw();t.Q6J("active",Ae.activeTab.link===B.link)("routerLink",t.VKq(3,ti,B.link)),t.xp6(1),t.Oqu(B.name)}}let Yt=(()=>{class X{constructor(B,Ae,pt){this.router=B,this.loopService=Ae,this.store=pt,this.faInfinity=x.vqe,this.targetConf=2,this.inAmount=25e4,this.quotes=[],this.LoopTypeEnum=K.$I,this.selectedSwapType=K.$I.LOOP_OUT,this.storedSwaps=[],this.filteredSwaps=[],this.emptyTableMessage="No swap data available.",this.flgLoading=[!0],this.links=[{link:"loopout",name:"Loop Out"},{link:"loopin",name:"Loop In"}],this.activeTab=this.links[0],this.unSubs=[new s.x,new s.x,new s.x,new s.x]}ngOnInit(){this.loopService.listSwaps();const B=this.links.find(Ae=>this.router.url.includes(Ae.link));this.activeTab=B||this.links[0],this.selectedSwapType=B&&"loopin"===B.link?K.$I.LOOP_IN:K.$I.LOOP_OUT,this.router.events.pipe((0,b.R)(this.unSubs[0]),(0,de.h)(Ae=>Ae instanceof I.Av)).subscribe({next:Ae=>{const pt=this.links.find(fi=>Ae.urlAfterRedirects.includes(fi.link));this.activeTab=pt||this.links[0],this.selectedSwapType=pt&&"loopin"===pt.link?K.$I.LOOP_IN:K.$I.LOOP_OUT}}),this.loopService.swapsChanged.pipe((0,b.R)(this.unSubs[1])).subscribe({next:Ae=>{this.flgLoading[0]=!1,this.storedSwaps=Ae,this.filteredSwaps=this.storedSwaps.filter(pt=>pt.type===this.selectedSwapType)},error:Ae=>{this.flgLoading[0]="error",this.emptyTableMessage=Ae.message?Ae.message:"No loop "+(this.selectedSwapType===K.$I.LOOP_IN?"in":"out")+" available."}})}onSelectedIndexChange(B){this.selectedSwapType="loopin"===B.link?K.$I.LOOP_IN:K.$I.LOOP_OUT,this.filteredSwaps=this.storedSwaps.filter(Ae=>Ae.type===this.selectedSwapType)}onLoop(B){B===K.$I.LOOP_IN?this.loopService.getLoopInTermsAndQuotes(this.targetConf).pipe((0,b.R)(this.unSubs[2])).subscribe({next:Ae=>{this.store.dispatch((0,Me.qR)({payload:{data:{minQuote:Ae[0],maxQuote:Ae[1],direction:B,component:Ya.a}}}))}}):this.loopService.getLoopOutTermsAndQuotes(this.targetConf).pipe((0,b.R)(this.unSubs[3])).subscribe({next:Ae=>{this.store.dispatch((0,Me.qR)({payload:{data:{minQuote:Ae[0],maxQuote:Ae[1],direction:B,component:Ya.a}}}))}})}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(I.F0),t.Y36(Zr.W),t.Y36(M.yh))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-loop"]],decls:13,vars:7,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start start",1,"padding-gap-x-large","mt-1"],["mat-flat-button","","color","primary","type","button","tabindex","1",3,"click"],["fxLayout","row","fxFlex","100",3,"selectedSwapType","swapsData","flgLoading","emptyTableMessage"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(B,Ae){1&B&&(t.TgZ(0,"div",0),t._UZ(1,"fa-icon",1),t.TgZ(2,"span",2),t._uU(3,"Loop"),t.qZA(),t.qZA(),t.TgZ(4,"div",3),t.TgZ(5,"mat-card"),t.TgZ(6,"mat-card-content",4),t.TgZ(7,"nav",5),t.YNc(8,bt,2,5,"div",6),t.qZA(),t.TgZ(9,"div",7),t.TgZ(10,"button",8),t.NdJ("click",function(){return Ae.onLoop(Ae.selectedSwapType)}),t._uU(11),t.qZA(),t.qZA(),t._UZ(12,"rtl-swaps",9),t.qZA(),t.qZA(),t.qZA()),2&B&&(t.xp6(1),t.Q6J("icon",Ae.faInfinity),t.xp6(7),t.Q6J("ngForOf",Ae.links),t.xp6(3),t.hij("Start ",Ae.activeTab.name,""),t.xp6(1),t.Q6J("selectedSwapType",Ae.selectedSwapType)("swapsData",Ae.filteredSwaps)("flgLoading",Ae.flgLoading)("emptyTableMessage",Ae.emptyTableMessage))},directives:[v.xw,v.Wh,G.BN,F.a8,F.dn,U.BU,ye.sg,he.lW,Ct,v.yH,U.Nj,I.rH],styles:[""]}),X})();var xi=m(7772),Bi=m(1135),yn=m(2843),An=m(262),Wi=m(2340),Cr=m(1786);let Un=(()=>{class X{constructor(B,Ae,pt,fi){this.httpClient=B,this.logger=Ae,this.store=pt,this.commonService=fi,this.swapUrl="",this.swaps={},this.swapsChanged=new Bi.X({}),this.unSubs=[new s.x,new s.x,new s.x]}getSwapsList(){return this.swaps}listSwaps(){this.store.dispatch((0,Me.ac)({payload:K.m6.GET_BOLTZ_SWAPS})),this.swapUrl=Wi.T5+Wi.NZ.BOLTZ_API+"/listSwaps",this.httpClient.get(this.swapUrl).pipe((0,b.R)(this.unSubs[0])).subscribe({next:B=>{this.store.dispatch((0,Me.uO)({payload:K.m6.GET_BOLTZ_SWAPS})),this.swaps=B,this.swapsChanged.next(this.swaps)},error:B=>this.swapsChanged.error(this.handleErrorWithAlert(K.m6.GET_BOLTZ_SWAPS,this.swapUrl,B))})}swapInfo(B){return this.swapUrl=Wi.T5+Wi.NZ.BOLTZ_API+"/swapInfo/"+B,this.httpClient.get(this.swapUrl).pipe((0,An.K)(Ae=>(0,Z.of)(this.handleErrorWithAlert(K.m6.NO_SPINNER,this.swapUrl,Ae))))}serviceInfo(){return this.store.dispatch((0,Me.ac)({payload:K.m6.GET_SERVICE_INFO})),this.swapUrl=Wi.T5+Wi.NZ.BOLTZ_API+"/serviceInfo",this.httpClient.get(this.swapUrl).pipe((0,b.R)(this.unSubs[1]),(0,p.U)(B=>(this.store.dispatch((0,Me.uO)({payload:K.m6.GET_SERVICE_INFO})),B)),(0,An.K)(B=>(0,Z.of)(this.handleErrorWithAlert(K.m6.GET_SERVICE_INFO,this.swapUrl,B))))}swapOut(B,Ae){const pt={amount:B,address:Ae};return this.swapUrl=Wi.T5+Wi.NZ.BOLTZ_API+"/createreverseswap",this.httpClient.post(this.swapUrl,pt).pipe((0,An.K)(fi=>this.handleErrorWithoutAlert("Swap Out for Address: "+Ae,K.m6.NO_SPINNER,fi)))}swapIn(B){const Ae={amount:B};return this.swapUrl=Wi.T5+Wi.NZ.BOLTZ_API+"/createswap",this.httpClient.post(this.swapUrl,Ae).pipe((0,An.K)(pt=>this.handleErrorWithoutAlert("Swap In for Amount: "+B,K.m6.NO_SPINNER,pt)))}handleErrorWithoutAlert(B,Ae,pt){let fi="";return this.logger.error("ERROR IN: "+B+"\n"+JSON.stringify(pt)),this.store.dispatch((0,Me.uO)({payload:Ae})),401===pt.status?(fi="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,Me.kS)())):503===pt.status?(fi="Unable to Connect to Boltz Server.",this.store.dispatch((0,Me.qR)({payload:{data:{type:"ERROR",alertTitle:"Boltz Not Connected",message:{code:pt.status,message:"Unable to Connect to Boltz Server",URL:B},component:Cr.H}}}))):fi=this.commonService.extractErrorMessage(pt),(0,yn._)(()=>new Error(fi))}handleErrorWithAlert(B,Ae,pt){let fi="";if(401===pt.status&&(this.logger.info("Redirecting to Login"),this.store.dispatch((0,Me.kS)())),this.logger.error(pt),this.store.dispatch((0,Me.uO)({payload:B})),401===pt.status)fi="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,Me.kS)());else if(503===pt.status)fi="Unable to Connect to Boltz Server.",setTimeout(()=>{this.store.dispatch((0,Me.qR)({payload:{data:{type:"ERROR",alertTitle:"Boltz Not Connected",message:{code:pt.status,message:"Unable to Connect to Boltz Server",URL:Ae},component:Cr.H}}}))},100);else{fi=this.commonService.extractErrorMessage(pt);const In=pt.error&&pt.error.error&&pt.error.error.code?pt.error.error.code:pt.error&&pt.error.code?pt.error.code:pt.code?pt.code:pt.status;setTimeout(()=>{this.store.dispatch((0,Me.qR)({payload:{data:{type:K.n_.ERROR,alertTitle:"ERROR",message:{code:In,message:fi,URL:Ae},component:Cr.H}}}))},100)}return{message:fi}}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.LFG(C.eN),t.LFG(we.mQ),t.LFG(M.yh),t.LFG(Ci.v))},X.\u0275prov=t.Yz7({token:X,factory:X.\u0275fac}),X})();var Rn=m(1125);let _a=(()=>{class X{constructor(){this.serviceInfo={},this.direction=K.hc.SWAP_OUT,this.swapTypeEnum=K.hc}}return X.\u0275fac=function(B){return new(B||X)},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-boltz-service-info"]],inputs:{serviceInfo:"serviceInfo",direction:"direction"},decls:33,vars:13,consts:[["fxFlex","100",1,"flat-expansion-panel","mb-1",3,"expanded"],["fxLayoutAlign","start center","fxFlex","100"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"w-100","my-1"]],template:function(B,Ae){1&B&&(t.TgZ(0,"mat-expansion-panel",0),t.TgZ(1,"mat-expansion-panel-header"),t.TgZ(2,"mat-panel-title"),t.TgZ(3,"span",1),t._uU(4,"Service Information"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(5,"div",2),t.TgZ(6,"div",3),t.TgZ(7,"div",4),t.TgZ(8,"h4",5),t._uU(9,"Minimum Amount (Sats)"),t.qZA(),t.TgZ(10,"span",6),t._uU(11),t.ALo(12,"number"),t.qZA(),t.qZA(),t.TgZ(13,"div",4),t.TgZ(14,"h4",5),t._uU(15,"Maximum Amount (Sats)"),t.qZA(),t.TgZ(16,"span",6),t._uU(17),t.ALo(18,"number"),t.qZA(),t.qZA(),t.qZA(),t._UZ(19,"mat-divider",7),t.TgZ(20,"div",3),t.TgZ(21,"div",4),t.TgZ(22,"h4",5),t._uU(23,"Fee Percentage"),t.qZA(),t.TgZ(24,"span",6),t._uU(25),t.ALo(26,"number"),t.qZA(),t.qZA(),t.TgZ(27,"div",4),t.TgZ(28,"h4",5),t._uU(29,"Miner Fee (Sats)"),t.qZA(),t.TgZ(30,"span",6),t._uU(31),t.ALo(32,"number"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&B&&(t.Q6J("expanded",!0),t.xp6(11),t.Oqu(t.lcZ(12,5,null==Ae.serviceInfo||null==Ae.serviceInfo.limits?null:Ae.serviceInfo.limits.minimal)),t.xp6(6),t.Oqu(t.lcZ(18,7,null==Ae.serviceInfo||null==Ae.serviceInfo.limits?null:Ae.serviceInfo.limits.maximal)),t.xp6(8),t.Oqu(t.lcZ(26,9,null==Ae.serviceInfo||null==Ae.serviceInfo.fees?null:Ae.serviceInfo.fees.percentage)),t.xp6(6),t.Oqu(t.lcZ(32,11,Ae.direction===Ae.swapTypeEnum.SWAP_OUT?null==Ae.serviceInfo||null==Ae.serviceInfo.fees||null==Ae.serviceInfo.fees.miner?null:Ae.serviceInfo.fees.miner.reverse:null==Ae.serviceInfo||null==Ae.serviceInfo.fees||null==Ae.serviceInfo.fees.miner?null:Ae.serviceInfo.fees.miner.normal)))},directives:[Rn.ib,v.yH,Rn.yz,Rn.yK,v.Wh,v.xw,Fe.d],pipes:[ye.JJ],styles:[""]}),X})();var Mr=m(5245);function ds(X,He){1&X&&t.GkF(0)}function vs(X,He){if(1&X&&(t.TgZ(0,"div",4),t.TgZ(1,"span",5),t._uU(2),t.qZA(),t.qZA()),2&X){const B=t.oxw();t.xp6(2),t.Oqu(null!=B.swapStatus&&B.swapStatus.error?null==B.swapStatus?null:B.swapStatus.error:"Unknown Error.")}}function ki(X,He){if(1&X&&(t.TgZ(0,"div",4),t.TgZ(1,"div",6),t.TgZ(2,"div",7),t.TgZ(3,"h4",8),t._uU(4,"ID"),t.qZA(),t.TgZ(5,"span",5),t._uU(6),t.qZA(),t.qZA(),t.TgZ(7,"div",7),t.TgZ(8,"h4",8),t._uU(9,"Routing Fee (mSats)"),t.qZA(),t.TgZ(10,"span",5),t._uU(11),t.ALo(12,"number"),t.qZA(),t.qZA(),t.qZA(),t._UZ(13,"mat-divider",9),t.TgZ(14,"div",6),t.TgZ(15,"div",7),t.TgZ(16,"h4",8),t._uU(17,"Claim Transaction ID"),t.qZA(),t.TgZ(18,"span",5),t._uU(19),t.qZA(),t.qZA(),t.TgZ(20,"div",7),t.TgZ(21,"h4",8),t._uU(22,"Lockup Address"),t.qZA(),t.TgZ(23,"span",5),t._uU(24),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&X){const B=t.oxw();t.xp6(6),t.Oqu(null==B.swapStatus?null:B.swapStatus.id),t.xp6(5),t.Oqu(t.lcZ(12,4,null==B.swapStatus?null:B.swapStatus.routingFeeMilliSat)),t.xp6(8),t.Oqu(null==B.swapStatus?null:B.swapStatus.claimTransactionId),t.xp6(5),t.Oqu(null==B.swapStatus?null:B.swapStatus.lockupAddress)}}function Nn(X,He){if(1&X&&(t.TgZ(0,"div",4),t.TgZ(1,"div",6),t.TgZ(2,"div",7),t.TgZ(3,"h4",8),t._uU(4,"ID"),t.qZA(),t.TgZ(5,"span",5),t._uU(6),t.qZA(),t.qZA(),t.TgZ(7,"div",7),t.TgZ(8,"h4",8),t._uU(9,"Expected Amount (Sats)"),t.qZA(),t.TgZ(10,"span",5),t._uU(11),t.ALo(12,"number"),t.qZA(),t.qZA(),t.qZA(),t._UZ(13,"mat-divider",9),t.TgZ(14,"div",6),t.TgZ(15,"div",10),t.TgZ(16,"h4",8),t._uU(17,"Address"),t.qZA(),t.TgZ(18,"span",5),t._uU(19),t.qZA(),t.qZA(),t.qZA(),t._UZ(20,"mat-divider",9),t.TgZ(21,"div",6),t.TgZ(22,"div",10),t.TgZ(23,"h4",8),t._uU(24,"BIP 21"),t.qZA(),t.TgZ(25,"span",5),t._uU(26),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&X){const B=t.oxw();t.xp6(6),t.Oqu(null==B.swapStatus?null:B.swapStatus.id),t.xp6(5),t.Oqu(t.lcZ(12,4,null==B.swapStatus?null:B.swapStatus.expectedAmount)),t.xp6(8),t.Oqu(null==B.swapStatus?null:B.swapStatus.address),t.xp6(7),t.Oqu(null==B.swapStatus?null:B.swapStatus.bip21)}}let zs=(()=>{class X{constructor(){this.swapStatus=null,this.direction=K.hc.SWAP_OUT,this.swapTypeEnum=K.hc}}return X.\u0275fac=function(B){return new(B||X)},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-boltz-swap-status"]],inputs:{swapStatus:"swapStatus",direction:"direction"},decls:7,vars:1,consts:[[4,"ngTemplateOutlet"],["swapFailedBlock",""],["swapOutBlock",""],["swapInBlock",""],["fxLayout","column"],[1,"foreground-secondary-text"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"w-100","my-1"],["fxFlex","100"]],template:function(B,Ae){if(1&B&&(t.YNc(0,ds,1,0,"ng-container",0),t.YNc(1,vs,3,1,"ng-template",null,1,t.W1O),t.YNc(3,ki,25,6,"ng-template",null,2,t.W1O),t.YNc(5,Nn,27,6,"ng-template",null,3,t.W1O)),2&B){const pt=t.MAs(2),fi=t.MAs(4),In=t.MAs(6);t.Q6J("ngTemplateOutlet",null!=Ae.swapStatus&&Ae.swapStatus.error?pt:Ae.direction===Ae.swapTypeEnum.SWAP_OUT?fi:In)}},directives:[ye.tP,v.xw,v.yH,v.Wh,Fe.d],pipes:[ye.JJ],styles:[""]}),X})();var fr=m(113);function Us(X,He){1&X&&t.GkF(0)}const rs=function(X,He){return{"small-svg":X,"large-svg":He}};function xt(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(pt){return t.CHM(B),t.oxw().onSwipe(pt)}),t.O4$(),t.TgZ(1,"svg",7),t._UZ(2,"path",8),t._UZ(3,"path",9),t._UZ(4,"path",10),t._UZ(5,"path",11),t._UZ(6,"path",12),t._UZ(7,"path",13),t._UZ(8,"path",14),t._UZ(9,"path",15),t._UZ(10,"path",16),t._UZ(11,"path",17),t.qZA(),t.kcU(),t.TgZ(12,"div",18),t.TgZ(13,"mat-card-title"),t._uU(14,"Boltz Reverse Submarine Swap explained."),t.qZA(),t.qZA(),t.TgZ(15,"div",19),t.TgZ(16,"mat-card-subtitle",20),t._uU(17," Boltz is a privacy-first account free exchange and a Lightning Service Provider. By doing a Reverse Submarine Swap on Boltz, you can swap your Lightning Bitcoin for on-chain Bitcoin. "),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.Q6J("@sliderAnimation",B.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,rs,B.screenSize===B.screenSizeEnum.XS,B.screenSize!==B.screenSizeEnum.XS))}}function te(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(pt){return t.CHM(B),t.oxw().onSwipe(pt)}),t.O4$(),t.TgZ(1,"svg",21),t.TgZ(2,"g",22),t._UZ(3,"path",23),t._UZ(4,"path",24),t._UZ(5,"path",25),t._UZ(6,"path",26),t._UZ(7,"path",27),t._UZ(8,"path",28),t.qZA(),t._UZ(9,"path",29),t.TgZ(10,"defs"),t.TgZ(11,"clipPath",30),t._UZ(12,"rect",31),t.qZA(),t.qZA(),t.qZA(),t.kcU(),t.TgZ(13,"div",18),t.TgZ(14,"mat-card-title"),t._uU(15,"Step 1: Deciding to Reverse Submarine Swap"),t.qZA(),t.qZA(),t.TgZ(16,"div",19),t.TgZ(17,"mat-card-subtitle",20),t._uU(18," You have one or more channels that are running low on inbound capacity or you want to move some of your Lightning Bitcoin to your onchain wallet. "),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.Q6J("@sliderAnimation",B.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,rs,B.screenSize===B.screenSizeEnum.XS,B.screenSize!==B.screenSizeEnum.XS))}}function ue(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(pt){return t.CHM(B),t.oxw().onSwipe(pt)}),t.O4$(),t.TgZ(1,"svg",32),t._UZ(2,"path",33),t._UZ(3,"path",34),t._UZ(4,"path",35),t._UZ(5,"path",36),t._UZ(6,"path",37),t._UZ(7,"circle",38),t._UZ(8,"rect",39),t.TgZ(9,"defs"),t.TgZ(10,"pattern",40),t._UZ(11,"use",41),t.qZA(),t._UZ(12,"image",42),t.qZA(),t.qZA(),t.kcU(),t.TgZ(13,"div",18),t.TgZ(14,"mat-card-title"),t._uU(15,"Step 2: Paying the Lightning Invoice"),t.qZA(),t.qZA(),t.TgZ(16,"div",19),t.TgZ(17,"mat-card-subtitle",20),t._uU(18," Your Boltz client generates a secret which is sent to Boltz. In return Boltz sends a Lightning invoice based on that secret. Your Lightning node pays that invoice which moves some of your local balance to the other side of the channel. "),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.Q6J("@sliderAnimation",B.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,rs,B.screenSize===B.screenSizeEnum.XS,B.screenSize!==B.screenSizeEnum.XS))}}function je(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(pt){return t.CHM(B),t.oxw().onSwipe(pt)}),t.O4$(),t.TgZ(1,"svg",43),t.TgZ(2,"g",22),t._UZ(3,"path",44),t._UZ(4,"path",45),t._UZ(5,"path",46),t._UZ(6,"path",47),t._UZ(7,"path",48),t.qZA(),t.TgZ(8,"defs"),t.TgZ(9,"clipPath",30),t._UZ(10,"rect",49),t.qZA(),t.qZA(),t.qZA(),t.kcU(),t.TgZ(11,"div",18),t.TgZ(12,"mat-card-title"),t._uU(13,"Step 3: Receiving the funds on-chain"),t.qZA(),t.qZA(),t.TgZ(14,"div",19),t.TgZ(15,"mat-card-subtitle",20),t._uU(16," In return for paying the invoice, Boltz locks on-chain BTC. Your node claims that onchain BTC to your wallet and by doing that, reveals the secret. With that secret Boltz can settle the Lightning invoice paid by your node. "),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.Q6J("@sliderAnimation",B.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,rs,B.screenSize===B.screenSizeEnum.XS,B.screenSize!==B.screenSizeEnum.XS))}}function wt(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(pt){return t.CHM(B),t.oxw().onSwipe(pt)}),t.O4$(),t.TgZ(1,"svg",50),t._UZ(2,"path",51),t._UZ(3,"path",52),t._UZ(4,"path",53),t._UZ(5,"path",54),t._UZ(6,"path",55),t.qZA(),t.kcU(),t.TgZ(7,"div",18),t.TgZ(8,"mat-card-title"),t._uU(9,"Done!"),t.qZA(),t.qZA(),t.TgZ(10,"div",19),t.TgZ(11,"mat-card-subtitle",20),t._uU(12," You have now successfully received your funds in your on-chain wallet and also spent your local balance to increase the inbound capacity of your node - all in a non-custodial manner. "),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.Q6J("@sliderAnimation",B.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,rs,B.screenSize===B.screenSizeEnum.XS,B.screenSize!==B.screenSizeEnum.XS))}}let kt=(()=>{class X{constructor(B){this.commonService=B,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new t.vpe,this.screenSize="",this.screenSizeEnum=K.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(B){2===B.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===B.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(Ci.v))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-boltz-swapout-info-graphics"]],inputs:{animationDirection:"animationDirection",stepNumber:"stepNumber"},outputs:{stepNumberChange:"stepNumberChange"},decls:11,vars:1,consts:[[4,"ngTemplateOutlet"],["swapStepBlock1",""],["swapStepBlock2",""],["swapStepBlock3",""],["swapStepBlock4",""],["swapStepBlock5",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between center",3,"swipe"],["fxFlex","30","width","368","height","368","viewBox","0 0 368 368","fill","none","xmlns","http://www.w3.org/2000/svg",3,"ngClass"],["d","M306.667 153.333H276L260.667 184L233.797 153.763C229.441 148.861 224.595 144.24 218.529 141.746C212.54 139.284 206.099 138 199.561 138H92C41.19 138 1.52588e-05 179.19 1.52588e-05 230C1.52588e-05 280.81 41.19 322 92 322H199.561C206.099 322 212.54 320.715 218.529 318.254C224.595 315.761 229.441 311.139 233.797 306.237L260.667 276L276 306.667H306.667L291.333 260.667L306.667 230L291.333 199.333L306.667 153.333Z",1,"fill-color-0"],["d","M337.333 122.667H306.667L291.333 153.333L264.464 123.097C260.107 118.194 255.261 113.573 249.195 111.079C243.206 108.618 236.766 107.333 230.228 107.333H122.667C71.8566 107.333 30.6667 148.523 30.6667 199.333C30.6667 250.143 71.8566 291.333 122.667 291.333H230.228C236.766 291.333 243.206 290.048 249.195 287.587C255.261 285.094 260.107 280.473 264.464 275.571L291.333 245.333L306.667 276H337.333L322 230L337.333 199.333L322 168.667L337.333 122.667Z",1,"stroke-color-thicker"],["d","M214.667 245.333C206.198 245.333 199.333 238.468 199.333 230C199.333 221.532 206.198 214.667 214.667 214.667C223.135 214.667 230 221.532 230 230C230 238.468 223.135 245.333 214.667 245.333Z",1,"fill-color-15"],["d","M245.333 214.667C236.865 214.667 230 207.802 230 199.333C230 190.865 236.865 184 245.333 184C253.802 184 260.667 190.865 260.667 199.333C260.667 207.802 253.802 214.667 245.333 214.667Z",1,"stroke-color-thicker"],["d","M138 245.333C129.532 245.333 122.667 238.468 122.667 230C122.667 221.532 129.532 214.667 138 214.667C146.468 214.667 153.333 221.532 153.333 230C153.333 238.468 146.468 245.333 138 245.333Z",1,"fill-color-15"],["d","M168.667 214.667C160.198 214.667 153.333 207.802 153.333 199.333C153.333 190.865 160.198 184 168.667 184C177.135 184 184 190.865 184 199.333C184 207.802 177.135 214.667 168.667 214.667Z",1,"stroke-color-thicker"],["d","M61.3334 245.333C52.865 245.333 46 238.468 46 230C46 221.532 52.865 214.667 61.3334 214.667C69.8017 214.667 76.6667 221.532 76.6667 230C76.6667 238.468 69.8017 245.333 61.3334 245.333Z",1,"fill-color-15"],["d","M92 214.667C83.5316 214.667 76.6666 207.802 76.6666 199.333C76.6666 190.865 83.5316 184 92 184C100.468 184 107.333 190.865 107.333 199.333C107.333 207.802 100.468 214.667 92 214.667Z",1,"stroke-color-thicker"],["d","M239.077 111C241.796 111 244 113.204 244 115.923V126.077C244 128.796 241.796 131 239.077 131H191.923C189.204 131 187 128.796 187 126.077V115.923C187 113.204 189.204 111 191.923 111H239.077Z",1,"fill-color-15"],["d","M184 76.6666V107.333H122.667V76.6666H184Z",1,"stroke-color-thicker"],["fxFlex","20","fxLayoutAlign","center end"],["fxFlex","40"],[1,"font-size-120"],["fxFlex","30","width","383","height","279","viewBox","0 0 383 279","fill","none","xmlns","http://www.w3.org/2000/svg",3,"ngClass"],["clip-path","url(#clip0)"],["d","M267.882 220.417V104.583C267.882 98.2125 263.809 93 258.832 93H114.029C109.051 93 104.978 98.2125 104.978 104.583V220.417C104.978 226.787 109.051 232 114.029 232H258.832C263.809 232 267.882 226.787 267.882 220.417Z",1,"fill-color-0"],["d","M357.75 197.625V81.375C357.75 74.9812 352.069 69.75 345.125 69.75H143.125C136.181 69.75 130.5 74.9812 130.5 81.375V197.625C130.5 204.019 136.181 209.25 143.125 209.25H345.125C352.069 209.25 357.75 204.019 357.75 197.625Z",1,"stroke-color-thin"],["d","M86.3125 186H105.25V139.5H86.3125C82.7775 139.5 80 142.057 80 145.312V180.188C80 183.443 82.7775 186 86.3125 186Z",1,"fill-color-15"],["d","M111.562 162.75H130.5V116.25H111.562C108.027 116.25 105.25 118.807 105.25 122.062V156.938C105.25 160.193 108.027 162.75 111.562 162.75Z",1,"stroke-color-thin"],["d","M205.979 116V150.875",1,"stroke-color-thin"],["d","M205.979 185.634V185.749",1,"stroke-color-thin"],["d","M2.44963 159.45C0.488815 161.41 0.488815 164.59 2.44963 166.55L34.403 198.504C36.3638 200.465 39.5429 200.465 41.5037 198.504C43.4645 196.543 43.4645 193.364 41.5037 191.403L13.1007 163L41.5037 134.597C43.4645 132.636 43.4645 129.457 41.5037 127.496C39.5429 125.535 36.3638 125.535 34.403 127.496L2.44963 159.45ZM65 157.979H6V168.021H65V157.979Z",1,"fill-color-15"],["id","clip0"],["width","303","height","279","transform","matrix(-1 0 0 1 383 0)",1,"fill-color-30"],["fxFlex","30","width","454","height","243","viewBox","0 0 454 243","fill","none","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["d","M141.75 172.125C178.098 172.125 207.562 142.66 207.562 106.312C207.562 69.9653 178.098 40.5 141.75 40.5C105.403 40.5 75.9375 69.9653 75.9375 106.312C75.9375 142.66 105.403 172.125 141.75 172.125Z",1,"fill-color-0"],["d","M121.5 151.875C157.848 151.875 187.312 122.41 187.312 86.0625C187.312 49.7153 157.848 20.25 121.5 20.25C85.1528 20.25 55.6875 49.7153 55.6875 86.0625C55.6875 122.41 85.1528 151.875 121.5 151.875Z",1,"stroke-color-thiner"],["d","M20.25 192.375H222.75",1,"stroke-color-thiner"],["d","M192.375 222.75L222.75 192.375L192.375 162",1,"stroke-color-thiner"],["d","M138.762 67C136.099 73.913 133.436 81.3578 130.24 88.8025C130.24 88.8025 130.24 89.8661 131.305 89.8661H153.143C153.143 89.8661 153.143 90.3979 153.676 90.9296L121.718 126.558C121.185 126.026 121.185 125.495 121.185 124.963L132.371 101.033V98.9062H110V96.7791L137.164 67H138.762Z",1,"fill-color-15"],["cx","371.815","cy","95.815","r","81.815",1,"fill-color-boltz-bk"],["x","317","y","81","width","110.745","height","30.1472","fill","url(#pattern0)"],["id","pattern0","patternContentUnits","objectBoundingBox","width","1","height","1"],[0,"xlink","href","#image0","transform","scale(0.00185185 0.00680272)"],["id","image0","width","540","height","147",0,"xlink","href","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAACTCAYAAADFh8BYAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAACHKADAAQAAAABAAAAkwAAAABS37hiAABAAElEQVR4Aex9CaAkVXV2VfebfWWG1QWQRYddNgmCO6CiIGrAKC6gUWOIUROz/CYm+OdP/P9f82viEmNUcCFRUVFQlMUIgpIoCgwO2ww7IjLMMMub5b3XXfWf75z7Vd2urn69vK5+/d7Ufa/qnDr33HPPdm/drqquDoNdvMTxhSPBE5vODuL6BUEcHiDumBcE8Y+DYORT4V4fu3YXd09pfumB0gOlB0oPlB7oiwfCvkiZoULiDe9eGtSCH8RxfCJMCOUvlj/AIAyjoBL/abjHJz4+Q80r1S49UHqg9EDpgdIDQ+OBXXbBEW/8i2XB+ParZYHxHDohlrAAB0QJw2AiCOccGu75sXVGKfelB0oPlB4oPVB6oPRALx6o9NJopreJ469Xg4ltX8NiA8sLLDD8xQYWHbrwiOM5QVC7YKbbW+pfeqD0QOmB0gOlB6bbAyPTrcC09P/bH39EbqO8NF1mRKoGbqbYAgRQCkAU47mOspQeKD1QeqD0QOmB0gNT8MAud4UjfvyCt8Rx9D5dbMg9kwT6OK95xHrtY/EU/Fs2LT1QeqD0QOmB0gOlB8QDu9SCI37sghPievyvSeR1QSFHgD7uGPRmSxj8POEvkdIDpQdKD5QeKD1QeqAnD+wyt1TiJ9731Hhi52WytJinFzDy3OUueOitFNTjAkcU3ZDHWtJKD5QeKD3QLw/Ej55/TL0e7tcveamcmqCY5gGDoFqdf0P4lM8+oQflrvTAgD2wSyw45F0b84PHHr9MntvYJ5RbJ/aYqHgat1FwZUNvp7gHRYWEdQdKWAk3BXvt+UM7KvelB0oPlB4oxgMT9VjeAxS9FXMTv56vPeFDDz8IAW2cspLpixdos/XWGIsNm9XiaOeL5eBHspWl9MDAPbBLLDii3zz2OfHs8fCuLDpSJxN3kDUpjP+9Gl64M21QYqUHSg+UHijAA3Gkc5N+IBIcEAVzkbfeUJq/c2z8zJSzAJEljAgJQ85qfusSLz0wWA/M+gVH/Ngf/GW9Hp8Lt+av/jmkwUHcBmclnnMRqGUpPVB6oPRAoR6QVYVe2ZDVgS06bA5Cn/xcZP1z+eEWJBl+tk0WLNl6d6WjUFtK4aUHWnhgVi844t+883T5sPD3/BQAH/i4fFvFDW77WqwNVqMJfke4zydvbuG3klx6oPRA6YH+eUDWF7z6Sgjh7RYQ4PH5iRNm24O/LKUHpssDs/ZbKvGj71glnxX+I4qj1EZ+VAD0ced9DlLAOIi+MF1BKfstPVB6YNfzgLtmwactxAG4HYIrHQZ9HDRsfhvDcaUkLfhQhQJIPK0tsdIDg/VAejIebL+F9hY/+d7lcRxeHkX1pRh8HGxYRigO6AYrIQcpoFwFqVeqI5cUqmQpvPRA6YHSA4kHbE7CIbC0ELcFhtFJw9xmuH5I8hYnkGKbzoCC68yWii2x0gPT4IFZd0sFry2v/+bar8lgOxj+bBi8GIMcf6jDg1T45wNVimuj74d7fvoxwcrSgwfih9940EQU/lleU/mcJS9/CQNAFOKARRR8vsOq2j7npThX2j3rE8by6H+4Qz447qxUgh0y4T8hv/b368pI8Os54fyHy68eFhHNXVAmhok3ZyV4h8MFCxF7ds3GmwnbBf1YmjwUHph1C47oNz/8R3l3xmnwbu5YFWIyVjkGCW1kBtVK9aKhiM4MVaIWB/vIQu8deerb3MlLwRKjzHM0CEXD/CoxsUkziVqDWNYBorAtubP3sPP5PX2kYSiyYiegiZ/6JD3JzTcwY2IP6kFcC4PxeFsw/uCbHpeF7K2ShLdVK+F/VaPFPwr3+5cnG5QvD0oP0AO6IraPR0i9dErKyX+Xm2iKFv7XaN1nKMlhE4z819wELEvpgWn2wKxacNQeeft5UVR7j/68vDhWx5gMPH+sNQw7DEoQ3ODEya8ShhuCffb57jTHZeZ37xYAGRc32WXzoUyaLjCMD6Gd8DFnWpAYLtarQFfXJFwI2t7BpN7jt/7THMntT/iT/og7GWqf4C6FbLGCjuJoTyGeJvTT5FtSQT3cUh974I03i6Dvz60El4RP/8q6RJ8SKT2AS26SLMwzwtx8FFbWq+NcLuY5MTf/8xhLWumBAXhg1iw44kfeeWI9qH/GX+0nZwF3NsAgBcrBqrjsXLW6Wz5oXCLv3hgfgO/LLsQDmBAREYNwSWOU9EhY0phlPtGhrfxxkWnS/JhaLSnMD/Ij+CobDbUIopc3SGjUh32lSwxKZvtGflLFzKpwniD9nTBWDy4ce+Dcm8KwctGcfatfDsOLy3e90FG7KIwj3NxDzjXmjx4JGRAlm3/ZfPYl+C2yWWp15b70wGA9wFvZg+21z73FG37/aVFY+5YMxnkNA4srf0DZ9KTmoL/yx2DmgB4JRi7us3q7pDhMjPiz5YBB4IgDIXAthDggDigb/ggVBwtorUqmvbKRJgdsC6h/rg/kAxc9hGgLHkIfV6LsmDfMIfAABzQ8hbRbfRLHJ8pDzZ8de3Di/rEHz/3zeP1bl1BmCXdhDzBXAV1uEiKTUAhzvZRpbw388YK3jpal9MD0eGDGLzji+H0Lajvib0dRvLcORR1wGGCy6XV6B5Nr9jxFpAPXTgloE94ePvUzt0xPKGZnrzx5Jyd0cb/S3BlaoyE7d6gIaQ1n8xbuwW0wFP32keISTQc1B6xW9z3tMhO46iY06qtZg/7dhj6As7S3P95beP7PxLaxdeMPveE8wbULti/hruEB5hMSSxMgIYj9Ssj3Q+H5n99tSS090JMHZvyCo/7o5s/LGeZYWN80ucuJR2k4AelJCEx2gsrjr5Tv3oBbBlqyMcOxv8mBi6Gcxj2cPFCWMlRxf2HpP6AhbdG+adOn7IQO6OPk9WUIrn05SB182KSPKtV6R93lfTF7RvX4op0PnnvD2P2vX9W6RVkzGz0gjx5rbvm5pLnh5Txy16cxdwjVL8hXFEBsyGNC4OUFDvNPuZ8WD8zoZzgmHnnrB+Iofr0MIy0YajIkGz4QuOGn9awDRPH55WnuWmVk7r9rRbnrgwfMx00+F7LSGDT0hInQFcaLEEHSJ+4dgXRChFLnWIqgLELI9XF21ClkW8K28hJFtIeu7Y/jk8Tmn8szHu+ct/8lZT52GqdZwse8Jpz2/J9mv8oPb86dePjeI+WL7cfJkuy4MIqPkxl+N3m4/6Nz97vkE9OsXtl9lx6YsQuO2iPnv1Im878zeznJY5gCt+GKlT+/Fgk+4vpVMRCkJAM7Dr4b7v2Zx41a7qfqAX7q0ofaEAfGROLDB93QB/FW9RpOMDLEwLPFq2snrzFDbC2iNCdD20+ib7brqcrL01ceWl0s32u5ZOcDb3juvP2e+cdheGF6WS6rQHk8qzxgC1R9ysfsYm4T5lnr1eXlE2nWNJnx8iRNKw3vUBp/5LLDwnrluCiMj5c55LixB+46UsybS8XMVHgpWEZaCWeOB2bkgiP+zfmH1iaiS+TUJbeEkIJuEOklcRxaWloYUtzud+KyOOfv9HQRVoOLjb/c98MDnNZs0YcTu8XBru5iIWi9NF0BEDJpnejB6HtRds1SiuVIvjTqSZjVF6mlujsGAPZJiWyLY+KEWXld2R9HF4w/ePfKOH7Hm8PwsxPsr4Sz0wPMe8JOrGQuptlOjBBSfLwTqcXzyJWLyvgDdz8zrITHy92k4+phdNzYg986WlRdEMn7bDCFcwwRFq9V2UPRHphxC45407t2m9i6/TvimKXpQLIB5c5p3hV0d889Sd2sO62dnATWV58y58psbXncuwe4wMDKwk7Y3rSRg5JkJ2jGLad/O2PLbORaSNBj0oSd32jlo5f8dAeIgogDs8gDEcxrn70KppO/1AOiaI6JAOZa0tbTJ6GhAdqyDxyjONV9lKSs/XL8e2MPbFkon/5eE4bn1LV9uZuVHtC8lFxhDuYayVz18q2b/J+uRzh2PvSWA8OgJrdEouPltTTHyWLjGBlTS+SWuJrJz4jZ/G/ygbPfv0rdxFMShtYDM2rBgUtuEw999+syIg+CR/VkILM3TwbZkws4rPBkYZ+s9QQgFRzYMtC/Un6CdK7qC5BpLT2DGu7O0I0RyelM2ml8kvYIlGyuIdGkWhClJYRG/uzr67M5ArHaXmBPhSsPQhUmUhN9HD4F+yW/zxy7/5v/LPpd0JOOZaPh94DkB/OeUJXOJChzNUkvQZSWEKSVEszkbP4PYsKXH85cOD6++WVRGB4X1oPj5LcFjotrO3eDKSy8xszjBIrundif8JfIjPLAIPKvbw6pP/Ldj8kq4ZTk7KODUXbM5MwtFczx/EBAJTSZeeDgSDjn4gypPJyqB5KYiCDgLSbEpm7YjhCNedkCopSOyZktudx0BAY8+QTo+nbV+DYAlDEIGbgCYTQcEfdvu7EN6pPJvJU91IsQfMBb8UOmX9iO0NkvVv7hzvted9f8A75WPijn+2u24Yw7YZ/zvxYWf41jorbtMHmP2TeR+Dp00+GVjoXEvkwASSdsYX8QcUBl2peHQ+2BGfO12PGH3vzWehS/GycCLBq4cCCEl4m3quc5CNDOSxGucvwyfPrnVg91lGagclgG4E+CkkDgWgjlQHkcNNzxoy02DZqDPs56E6h7Q70+0I+e8B3kHEWYtmqJNenXZI/IVnvQb6q7YVanMsCjfGADr5Um+Z4MyGu0P/jo2MPnHsG2JZw9HojwtVjEe9L4azKnOaH88EGaT0luMd/y8r9wt9WcFaKX6NG//Pftb3mNpHDryg5698CMWHBM/Pr858oPav0LzGw8V3Cg2UA1N5CGcWk4IDYsRAi5OJGnky7q3X1lyzwP4DMU4uSmhwRaNGxatUlS4qECDOby64QlTG4C1biB5jY0T2Kpshp3eGU0ir46Wl8f7XDQrCaBoJh2BrE3nVL90MR01saurcmCPN8GH0ddXn8mK5Xvy1B+z36xc259fOJieeBuRl2ZNE+V+8k8gIk4N1+8+GMMTDX/J9Ohn3WwJdceN8I4YrrJf9/+crnRz2gNTtbQLzjiX5//9Hhi4luRTLZ6QpBBx2RFAioOqDgOdZpWD/JEBJi3SbKPzwmD/1Dmctc3D/hnQ5tQbPLRCUhiQagxwQSE+Lg/rRMc0MeTernKARzP3yTP4IDmYgwjgLOAB4X8yBejudzR2pRfDyfZUTb7Ux2dTdaT6U0RPs3nZXu1qyv7g2N2PHjHeyi/hLPDAziBal57UPMF+epozHvC3vJ/sP7qf/7b+B/6E9dg3TxjehvquMUPv2/BRG3i23I62CvXo9lslsGpoxNQN7TyTybErV72V4RP+9KGXNklsWcP1OQSR3JCdQsBHkMo8NaFdRYjC5/gyaHheqJ2sQWeFuLWwPoSDqeHTt6CA/o46yFK21hzE0uROMrknPIKje3bQYjQNkByCztzCuih7JJDQerBX8aPn704t3lJnOEe0ICLDUnADU8OBdF/GwEwtpv8B3/hRb7A3WocoO8p57/YX17hKDyKhXQw1AuOiejxi+TKxjE6wjCs9ESVnjyyyctEbpXs/gnG4RcV4tVSqJ2Yxcl6gcFB4NkNk6fyCNSJFDHGv1sgZGOMuKEAGm6LhzRHUIscgQyTTYh+iLNeuYWPRXWRA+qJZ4asHZ4dElzqCPP6N6XQMYSYHELK9GFv9se7j28P/5g6l3CWeEBzFjvkGOc7w2mh5VySXkLuLv8pp3BYaP4H8sWXssxEDwxt3MYeOvev5Cvar8OAkvGnG3IYuMvlZOK3B0ndvXr9xoGFonlwWltX+9i8/Q66yvBy33cPuDO6LgLd5MlJ1IcaX/C6KPN2R6tbICpPeCkDehuNFkAWisls5udEnvZJXsBm/kb57AvQx61PdOv6BySPg2zjQ79P4J3aX69H7ymf5Ui8PgsQu6nSafyZQzCceWhOcPnXMv8H5KqC8x8P2ZZl5nlgKBcctYfeeKY8JCqvLc+u3u0k0fFg46ATmP2Th0W/LK+MLv47YjMvJ6ZVY06erWM8repJ540TumlD2tR168L+PcfuX3P61HssJQyTB7qI/zCp3TdddnX7++bIIRU0dAuOsQffclg9ir4it1L0AgUWCmkhDujjKUcDhlU2ilttN8Bg5ItWWe6L8ECrBUO7CaW5nlcSGPMshPbMBYTa8LT/ydsbv/H4uMnM9sV+CJs919x/qpNq2qRfu/rW+ssYOa9Zg5Iykz3QnD+t4285CmvTfGzffjDegR6+LuzVp/l463rKyY5FtijhTPLAUC044offtiKOJy6XRFyCMYRbJYSKi2cJ4WQ/YRVnkmNSx4YlC6F3f0W+3/Czeft9cQ1klKUID9S82152lQrxwWbPQxgELgFSGqCP8zkHcBgfsObSlAPCQlozd/cUpA8KoI8bVWsc6vTXI7PZ0s/wIuwXv7w8jt89L9WlxGa2B9KxMCz536s/kftF53+vupXtps8D/jcYp08L6Rn3o8cevPtSQQ7gkxZ6PpI6QijYiGOSt5dVo86ODOJYCR60AYAHjsKLQS5LgR5wgdJXoQjuXomiHfoxtEWIfa21F200+ljIMDM0yCKJnaAOs7dbLWRzBHXUAf0TB0RpV69M3i7LX6T9ouP8nQ/85kTp/jpPhRKdgR6I8JsiLue6Ub/b/A+C4u8i41cGMeRQisp/ueVuHZT7GeWBoVlwjD14z8fl5Uwv1kz1HvxMVw2WxHZCMB8Tb3VyyEYCfJUwHJtTCb6arSuP++0BmxCw5xpAe+A84aDWSVzc/NS0aGRb1ifChCAn97rE9F91cvMnoITZdQ6pjsYqQsyIirsVEfGkXtpCvkxwc+VHslbIBL+b4PuKxAPzPdZoII4gi9QEcQSt69F+7T+WMVMuONQVM3mHS81IiWy+MHcAtWQJyB1LIq3GMPAOHZ6OLydlAMASPGtP3/J/qK7ND8Cds6SLoVhw7Hjg9b8fx/ULbOZ3IwYObsrWyb0uF+2VgbCpvYxEuUnz7XC/f39yckll7VQ94J//fbw5qE0zqHRNmnFDF4ushxhhYuGB35qWHzSL7z977x1x/WR51Oj8MIjk1oZO+8mHVN9mH++z/dJf+Bz4pyyzxQONkx7znjAZCAlB7PZwveIhBF7xw1xIGjxEetHe8nPex/uV/2H5WypFh7AQ+dO+4Jh48PUny0Oin9Ixg8zEvJ1kKHGcgGSxoO9BkOndXQEBVR6c09OTMigGScZvNG8P3rBysUcp0cI84GZBhsMdWojkwIWIi0NCqOPjWfU4eQIOavLM6oDj8BmXPibgG9jG1r3u8CisfVqutjwvO8HryQC2FmC/SIUfn6mw3M1oD/hf8+w0/2FwNt/YlhB5x1+MHZSD5khHE0x45H0B+T8oW8p++uuBab0wFT/65n0narVvykQ9N1lkJIsNGMpZGpALC4NcUhAqt2uLWyfYdDg6qLLC8NF5+7/6GvCWpWAPmPvTyQaBYrAI81RoDLmETQgqCxDTaAqTSTVPzgBp8w762q/mH3AEbm18QtWznekNW6F/QfZLnu8Xx2fLa//LMis8gFxBAdRNdglszn+d64RBoRsrwJP2efmnHRS3m5DlxqT992H8F6d9KblID0zbgiN+9B0Lx8Z2fkeM25MG6kCRAw6eLAQfeXycfPqWfRlsgNhQCPUgir4UhufUFS93xXqAJ1hMfjrpYRK0iZGQcfMheDXGbA8tgQ95wTtdFh70rT+W50q+1qB/8fZXxu6L9hty95TqtfMAvpDncoUwyftJ8h8PKaMAYsOShBC4jjUHgQ+scPwWn/8DM6nsaOoemLZbKmM7N10st0OebXdQ0oGgg83ZZXUYTEawwSRjCAPIFR8njRBfodXB527ByAOjF7OuhAV7gJMbYsdJR9C8p9Z9TRB/a5LG2J8o8XQ6aob1KfUFixe9bcfW0ZPEjqepXQXbD1/Uw2CZ78OZiss31So7fr36KSPj8cpaVF1UqdQX1aPKokoYLZKoy53UyrZKpbItrkTbqlF129xKsN7d2pqpJjfozbwnTCo5loSQzX8dC0LnaGFbQJRs/QC+pOI6dhqZQqK4kfs1/stfUzF/zrT9tCw4xu4754PyyxRn5wyHBv9xnBGikgMrYfQI5CNUfncgC4+b5h9w6d1JuxIp1APJQpDxSeYf+RQmMeHzF+ADTn7irNeJCm3dhKVt8UlO40rhhZrSlfBw7y9v237vWR+V0+PHtSFVLMR+U60S1WfUD7lJ7MLxB1+zKqoFJ8s8cKRYcYDE/8Dt627ZXwI9b1xzIg7quBYZ1oMIb7FG/MMoqEd1OemGwURcDyaEvm3dq7ZLBt0nGXGfpMS91aB6SzCneuOC/S+9X1rMoIIRkI6FzvLfzGOK2ZGe4QW1AaMf1oSBH9oG5RCOZzHJioM6vvsw/pESZZl5Hhj4gmPs/nPOiuL6h/R8If6yEwcd1zhYSE0hspY8oBK3wdW8gPHrw4tSOSVWrAcmJDIWk8YFgkQIH3Hwn3wN1RYbCb836UJHx65QdUYKqAA9GsrdgiVzPr9jc+0jMunOKdp+nEiiOBz6BceO+16zX1yPXytxf/62ta8+WQK6EsHTE5CLOY79k67WW7pMFv+FMokcLoIOR8bV5S+cqAfb1r7qUfni0I3ybYYfLawE3woPuuxxyBveYiOgW/sRf8ylXFBYe/Oj2srFGs/QHd5E37b2LDyPdHpWftZ/GI7wuw5LxWU8R/V5yXjG4kKEcJ7v1/iX/v5k2z1nnZ/VL6uPKtaooCkLmuqbHoqm/2/RwZd9ymo63+9Yd9YH5TUq56FFUz5n7E+clfTfZv4TmbQJ8hlrQJR+2g957eSDxy/UzamTb381+OeFB377n9BuoAuOsYded3h9vP5l1crXOsGptsF845HA1sAmczjJ+M35ab15TwfEjvlx/PWkmxIp3AOY+FA0JoI3xsybgBwf+cGob5N1DRozAgJtAOrAdXmgHQ3RLtzz0tFt6866WfLyxELtF5t1DFT1GsAQecBUGZWvDlfqE2dLDF8vJ6HfERjKlR8JcZ/i7+y3nHGZQtlh+BRxzjlygjtnexB+cnTtWf8ZVsKvLqzE3wqf8e1NQ+csGQfMe0LoOGn+T26/mcgxQmjUTvZ7ie/kypMUjjngOZOyzr/JeG3UuLD8D4LdRL/d2LdC1dXlltNH5wmlY+dKxhfUuBIGu5GlG1iP4t2lnwPQhvMYIdSQq3iTzH/WE3Xoav5Dfy4e/bBf9Xe+sR8WcfnXQ/x9++WJhhVm5QAXHPEjb165c2z75TLlLOYoglJcEUIhTkSAVhAG4AwH8U7rnZggviw88BubeVTCAXjALQIZOUL0nAyOTtTITnCdtBkCHrH3Z2LoibSbEKr12/5KUNkyBCYnKoze9+qjglr0l2Ft/Gx5TquqNie1/bdfHOpJz6BSJ7VV4TlV7sKcKvdfPiW3YS6uzhn5yPz9vnlfhnv4DjvJ/zb269mOPGGnbxqVSyLiuOycDE9zFlZnUS5hxoOMDCGq+53/7eLfaD8UkM2dQlRtwQEjd9UVOnZdZoH9tNmPVT/in57P8ZbvARS8tnzHztFL5amvZ2D1jinAFhuIPRYdLonxkKfgyuMe9NTVvtORiQqIzXj99ilNebC2NL6LBmBm2UWeBxAkFAY5C1mnTBZ7oK1yQOWwDWW7tsME5OE+u4RPHbN285i2OOWZ753aj/FTCYdjwbHj3lefvG3tmVcGtfqtEsHfk7FXbYoX7Sbsg/3oA37AnyROAoFr/4TgiwK52Bn/QX28ds/oPWf++9h9r8UzJENTeol/N/Z3ZSj85XwH6OPqV8QQhdCOGvesA8zbwE0eQQu3H2dT9AeIDYXQjrrfT3YWpW15tvt1rtdpt9/XSXA/5j6exBJ6s02e5zJ1A7mlsuO+1bh/8yJE1r+iwTgTQl+dNBLFWUMI7YGbFeaA9PIsyBgfqQO0t4fnHXDkfwbBNxOpJTIID1jMONdrXHK61QhJJSCKroalKVfFiDFX2VovdRpiE69thnMXy9tsMUlbOhZpfxTWp/UKx7aHznxKPBZ8rFavndM4Qm08Kq1FvPoS/1bOlcTQ/JHc0rmCiSK6SGRw5eX1ovPrtq494zOLR6p/NQy3WnrK/y7sryVXj+mMfKiPfIhcxs5Gp/DqtXY40CiYr/EQL+dt5Rc28kM1pQ1Z/Gm15h9sSDRmTRdQLwaZgTPd/ux4YewYz57i7105mmxt1oXHW7PKvex3iBF/iISEMQlEJuLfQeBaCPNEuqse+Jiim3pDcEDFPQg5wiep9EV5R4KOnzyRJa1YDzBRGaIsRD5Y6Cw3JCGEoomB5LBpwEHjS0M9WaoUa1V76TKvLwQXdEbJ2s3jqdoPOfNrizZqJwPeyQvHqqNrz3hvtCO4S8bxOXndD8J+5AH9KUnjfK4TgFMpzZSsPvKJsiLz4R9uq0V37Vh75hvzbBgELdY7/aJnl/kPe7qxf6qfMHW+Rp/QUzYUQj3I7LL+ZpwI+5H/3dif1QfeM5rZklG/w8PWp5dsf7SbcLjspw8Im81nrLuNPyUVuuCQJ9OfL6vfT7IzLq4BsamzHQSeHWzgAE0hcC2E7tAHXEkBygbO6rzqF32WEh+MB1olZDZhJfw6YQH6ONtnIXLBZCC6k+TCYMxs2YvcPlzp20pGnwbct9nHUZe3Ze2XNr8OD75k4Fc4tq99zdO2rxu7UULwsTCMl0D3PP1hN232cdrmt/Fx1mdh1n7I9POAfbGdL1NxUZgQM4TyAUbRXrUo+rIsoC6P7z9ruckd3B46+bpS/yycqv2dPsFBy+EjFPWV7P15W+dxqUsg+LycBo5C6OO0y7fZx1mfhVO1H3ZoP7QI4wx/0HUKz15DZp7+vs0+Trv8Nj7O+iws0n71gShJqPqKbwjVd6IkYRJ3oUH3PP3R1ndrYQsOfA0uqsffkN8ImCMWwAozxEEY5SuouJhCCKPU2YSQIaXBGe6KB+576b0v7QZXP8AoD6iEwQ3zn37pOm1Y7qbFA4yXxjInhk1KIQFQAGVDUhMqjkPyCD6sJY7CQ6Fb0faLS28ftA+2rjvjxVEw8UuxTb554sYlxqmHU6fi7Xf9iyP8vti/TQY4sknBUsfmGaYRobaJ4zNGJ+o364OvqZDBYVQGULZ2+e/b7OOpwuYf2t/pFY6K+As3SvBPqC6EYIpU1A4s+inO/n2dfJz1TbBg+038JPFvUqgzwmyxX2MtJgMy7oRJ3HuIP71YyIIjfuxNi6J69B25TLgHAtwyGM4C1pMX0BIjhaYwLQX0cVebWYDI9/AvtppyP1APTMjnqFZB9AMruC4UHbRFo2QD4ojFiZ5ERHMHQSLO+oHa1WFnMrHKLeH4eblJ3G/7w3CgC47Re854v1w8vFq+3rqHnkA0NhYrjQnsQ6AAfVvpO58meF/ir4lhHXAxCohNVXEQOHROIRLKaNba4XF8YFCbuElsfQPpRUP4gXlPCEWhK6GPa4USrJ76tbO/0ysc+IFMja/6Lo2nT5uN8acfu4aIBTbxVwKBoxD6OGiyDWX+i2o2Tswextz0TWkdx99bZXgovDH1IkqE27du/aIMlaPgeFHPApAzODQwXr1vgI8rnycLMimXUHm8GUa+c7994dLdLoX4skynBzRCooCLmuaB4IB5OdFWVY5eN2Lb8g+eYdu6M0+VXt13z4u2P75lUBbKw5V/LxPkR+T2gzxw6eKpndPGPE1Y5/j7Hn/IRS6YfJ03BAf0cdabhtTJNQXRTyfBpe0CuRj8lW33vOId1mZY9lAUhQr3Yr9J6Gjvj1E/drMx/j2fDb18anIq6wBl833o+7apXStCP+JPnaSPrDh0SxpwX0df967jD2EFfC12+7pX/Y1MSq9tUNT6EuXdwzX6CdbDWU9DAX2c9WokDlzwlO45r8E5wTfCPb6wNWlaIoP1AGLhx8P17pagEkH7A5m0fAUZX4s5Hq6zFngg2OVQfsPpo8bx/1DbC7ZfrqLUFy2Yf9UgDB295xUfkZuxH2CsWsbPt9nHnZJt2zcZ0z7+k+WBLTqQitKz04dQu/J19HGplEM8DfaZrXe/8o+a1BoYof/2T0X1tvHzfejjrtO27ZuU67/9LePf43RCDVV132Yfnwn25+ibDUfb+PkyiHsPcfS8pssqguPt9575GgF/C6VMsRSmpxXWmAQ/WEwEQMNTqO3VAKMpD3oBb9Jf2os8en6x9VDup9MDFkdM3hYrrCOBp2tKwxE526CtnxU4Tgu/vgZIPK2dfmzb2jPeJva9kJoUbP8N4dMvLfwbKlvufsVHxY73Iy7mc4P0PyFt9mHB9ktXqU5p3rTOH1+3PDyrrxzLK1WiTxS/6Og1//trf+ITOfmaL2zcmm/TvhBzxp0waeshWX/2f/ynOvUj/p7qHaP8bJzXYKbZn9UXPmUeALdYG2TcCSezn3WdPkNE/pZw9L4zj4xr8ZfkzYLyVfI0BCkmTbFg4G0PHFr28SvdYoyapxAdYQgaDUcp3iDTqnSP+2H2Pfb4gfkHXn5depnEYyrRgXiAiWvhlgT1gubjWWXQjm2ydTi2OoN59dNJ27H2jBfUorr+FgNSHYW2+Db7uHGl++7sD7+dtiwG23L3K98eBtGf0h4blejLDMzGIzPEC7ZftMjNF+d80TLr/3z+1HfN/My1+OOjd52+bvGqK3+Qcvcf60w/6tS9/fi1mY6KfBTF5Z1sPBl3wtkU/17fNKoX7uEsKVl/ZfMJPKC1KkXHvzP56XydtYdxJ+wk/r6tfbnCET/6+t3ljbnfkcXGIpzwYZRubnUkR/qHjoGlhTigtSFEe0SPEDjqEpjHDw600XdvuAxIOyuxAXlgQvpBIloypgsIjY2LaSvcbwMcMSfU+KsNyIXhKqP3nP4eeYnUNaLVPNgGnX1bWtmbpfttaDehb7/QxoKRyleL9MKOe05/fiWIdAEFHagHIfSB/oS0mxB8xAE72fw27IfQt59288MNoOHwPRKHeoETfUMXxsQg5RLmy2dPcTWuBF/ded+ZzyKlnzCSy86+r6AT9SLM1w+2grcz+7vV2fpu7S/obP61+IKfdvh4J7FnO0Lre/Lxb7Hu3H7TqZU93XqH/BY76k048+xHLFEIzU+gwJa8eMDWdvFHe5YpX+GI43fMGV376Dcky/aHRrjK4DRD5hmuSqFLzUaDOFQ6aSBISW0VMbZ4YVI1idOJRNqzkfCjRXVu/EWVVe6mzQOWiAh/NoZ2QmB9VkHSCVGfh/u0rIxBHcuLr+Zuu3v7OfJR8M+jKD5C+3W5Tv0KtP+LSw64/LdF2brj3jP2rdXq3xQ75vh9tLOHdhO24/dlA2c7Qp/m43496H5prOOEYpBTESHa+fzECX25Ms0sm5ioXR6vPff4ot59wn4Ju9LPKeu3TeZGzpHJ9eMGy5oP5Ef28Jct7eLJvgnb8Wflsx0h6vNwn9ZKhtFpQ2fxz8rq5DisyJeII7tyRL0IZ5r91Jswa387e9iOEPzy8HUiZsoLDlls/LMsMl4AiXoJTpK04dqCP7KTBGbwbfXqKwfclEwTjfUG7QSm/enJzN1GAQF9heH1C/a/4n4clmU6PcAYQwf7hEltGE87Bp+3aExw0NIaO4KklCb34iryfMHzlLHFDmdLXHHhWZM4YDelEtTnxpVwtyCurJCHJ/eVtieN3rPtBLFsQZLWKrBBQ03JfttfCcNoZKTy0W7075ZXFhuflzjtnvF41/bY8C8o/h0YxczKzZ8O2ufY/8zRaCN8X8C3V/zc6SD/O9A/a38HTTIsvk7iDRx2MZ675U9HdzH2N1qTMbXHQ/nWlteysYeZb//U7IH9uuZwHprSgmPb2le8Sz7Z/QEHM2T6eM5g1c4tCKZB48nHadUjUFmVcK3odaaKkKWn5EJVf66yA5lYo4KXdzmJd9q+XRe+fFmkPb5k4cI1g3jor51exdS7TGDGMeggM4e14wwhwy9PBOkspxBNXT2g/M2Va1o/Bs5Faiocnchiw/WlEAQRRxoOmwp1s+Y2WkR+BD00MbBzOkOXpuLqOBLA42xQ1kx1IqsFf579ssT+4vwDv7u2qes+EbbcffrvyyR6iukrCtMGJWQdlO00YyDb0leZ6l7shz81D6Tr7CeubPy1W2eC2WPm0N1Z7ZPcZGgZO0AtWDyFb5dv7Xx98TO/d21T+ykRnKLsU2TlxX8q9tOK9mrKSVRD7emkjWZz/Dv3TqP//AUHZNBHQAX34smpI82/yfn7HX/0yzHRaIM7ouqAKNTdy/90zBpL476FPY6p5wWHfCf/BVG99k/UK+3UpxAn5EQBpZptsRMHHEJ+QBoAfrRPr2gQBzR5Ul+vv11ODm/HcSy/Rw0/1SguSQQjZCcrdFsXfnZPHNDk2Ykt1c/o6Z66ugaZ/mBLLaEFwej2bcHWu1/x9cqC6vsW7Xv5o6mc2YA5p6srBG/lEvUH7PX4EQDyg04ZwmV5b1fGtJXwgsaYEDc+NACXFEJ0A9x1l+CsB29DIaNBVU0u4TFHrD/qhYaN/Nav0Cgf1X7/efyT2F+phOsXL5r3Zw0q9vFg+92vfGotqHlXTxrtmW77La7TH/96VP+3+PGzjwj3vHS0b+5n3AlVMHPH4jBl+zt981di1K4e/8QRHSKN/ur3+J9y/KGeP/8Q5/zUZGWjPb2N/1RoTw+N7rj/rP2DqP4NUYVXqp1EXzlOCgYbHQU+TNop9HGbtH1ZqcKTYTzpAPYmz++zUYYvu7UOje19m32c9pme0Tn17RM/ie89e1lruTOtRpZVjIEHcZbGH6HiSoHfuMFW+hGshreSp7zK02F7GVgqEwPMwylfNXR6mn7oIdVHlrRQUJpKXqNGeAkTGWjvNkGsP4GKoz1o7s+kQyY3SAduBXJQKE/WOu8Ln3bZBqvt/34invhHeYvoslQ/05A9Tbf96jvnS+DqK8LEb63958fcx+lftVvk8Q92A2dJ7Jdn1rZt2PpXpE8d4kMT+yEUitpmUHHoBho3tFEetGE7QmsH3Whf0OFHTJNmcnLtl76Y94Tsw4fQzddXZYHm/qCz0mTfkf4ZedqmG/u9MZ+Nf8OPfsBpXRTfZh+fSfar3ohGQ3wsQnRFkv/Cx7gT+nYTh/14IJql6wUHXlteGxu/XAS6+7sQxWRphOhU1YUBHp7ysy2gFOVx0Me1EtWmOKCPu2o0JKfhrk+V2w95Kp194IC42WnHKe7b7OMpXyJj/9Hatn9Q8bNk587nelIHjsGNjbg7VA8CT7wmcVIcUDatc9BvS3kQbUIV0zbA0FbbSyNCLPqIJ/WOF7LzNuX35IEJtIRZ6vz+IQOFsoAozRGIu8Pu7A+DLyxe9f1LrIf+70fvfuVRMiHoT8wn+nkxoN2Eid1qlOlDlO37aj+6EMHaR9KB0ax3Fxs5gI7Y/Jj7eFLveCkuC1WGJw+dg6YwDP5YXgewF/ueKkzy3usP+lAH4FO1Xy6xdlToB/YNmNjt7LdAmE4Uqjo6Up6+Pg04bCYchP1qj3RIe7Rv5AkNmCKkHEDFZUcIhDggtmGynzr5UP0FPacQf3+R4eMidvIinYajm5/4sqxZ5Il8uAqF0I6627MtoI9Tik/zcav3Fx0+ztYWXTmiB9EHcO0rT57REueCE4MrKcQBfTxh6BLxZUQv7rLxULPTQ+pL0ZQ+lWnLcED5QzgINUyyS6AgWuegthDBCVT3yZGDqEFbQuDol9BiCf5EO+UGPwtko2gfHs76hJUiQNAmRlBUCHZk/SsufaoPUAfc/aluggPqJrsECgI+vToWxj9Z8qyl70r0KACJ4trf4T06EE39iCfdmYFms+KyI9RWaQuQzVYHaTchbAOPg4ndQoPNukBAneDUR5oaDuj6JUQNZBACR/+EwFFHCNwKodYqif3hAHhSiAoUOQvj8Z0fSOqmiEBPtZtQCOi7v/Z3tuLoxH5zCxwBw7GjpwwqRXyeQMXlmFBqNDYODsZ+65/6QnNngKE972eH/RYti6SPJ26BmShmriFKa21/en0j6PQCm3YRyLsGLpRkebUdSZ+SOHwOgjQfWjLZBAo6VCINx8QBtejIEi5AFJFvow0tc9oLH3UwBtNH2+XxS49wIr48i0KcjlV90KXWYqdfs1WYkDyEfQPmFZUnFZQHLtLAT9zBfUCbLaWVzVn76HtCTRIwOZeqb5BnrqHFzGKXykr9TzmEJiqtt4i2zoFm/jTvtC6b86KYxt8pqPoKY6pvGme0zxbqSUi7CVVOHKwJ5yx6TRheOp5t36/jzfecfkJcr50BeYkugjfZMwD7ZU65TZT4mSx9HpdPRL+Vr709XonDqiizRxQGe1biYC+ZxE4Sv68y+9P4UnfCZnsmnwOa+dvFP3zn9nWnfXThQVc/bLr0vledaYqD6v8+5n+XU/60xF89WJD9k41/nhe6jqC78o52TePFo+XJZZ4SctwT9jv+k9lP/RJdPN2hB0rTOU8q2s1/Fe97qx3e0QuCrXee/to4rn3QPgBZNqjy4mwGClQ6XLXjgdNWvy4rOL8228QvA0uLg9rcG2xW6e8dP6NjjT2Gxh7oSEJz/iT6Z/RJpx7rt5/2i6yB/QiX56DCUF5xwoJR8RaLyGRB2aLelhqIGJMICS5qu8MmA1AJWYwdcSefsScEH994q7La8UM08s3v38Npax/tvzWszj11yUGXPdFkax8JYX3C3iY6TfbLF8puFDdeUh2Jv7fwoKs6OnnvvOcVB0zEtdPlm3LniSuOVXcMOP4y2c6r1cI/kr7/Qvuf6i6jf7/zXx6h70jDyrzqH4/U6+7qjZfgSeL7tFTk+ER8thz9Qx/zX8RhxLn+BMBF8vD0x+eMBPpSurT3TjFfd+JhMG9Otbdno0aq/2teGH0i7Z0yQSFOmHINCpOYnCQuuxj9cd4jLHr+kx9R/fXI3MpFtLWjBcfo3S89qh7VvmhRF9VdodKEIKe1lhhKIzELJQZIniQmYPYK6xSCnuEnnVCbsg9ln/zTDPUmtAUIUtuSA3TSVHamA7YjRLXXvdkGGolZ6NsTB9eo+Nm2o/GEsM/Hs/aa61vmhHpYFw/OmQBoQ99C3mTyUd9NgSyehNGOuOoAQq4CqLBCXQhB9XHHloAG+8Nrls5feE74jG9vSuoLQLaue/We8fjoWbmii7Y/DO6vBJU/W7Lqqm/m9j8Jcf4zv3efVH9STvqf2nLPy94YRtGHJRpPndS/k8jLrerI/uA8eQncB/tyBaoh/nkauXxkwuemH4hTK4ufceVjvUjYctdpv23wP3OdEEJ9PNtJ5/ZvmH/Q1euyzafjeMnB318v/WIbuhLff9by8Yntf9KzYh3lf9MErN3JFLkhrMw5dcEB33uQ/bd9hmPr2pfvUY+C70iDRUmiQAkmDaEw+Lni4+zMJmccYUBwUBCmXAnmC/HxhCGDUBenn66yBQfkiptQWzbxm124RKSXiYSJMI+/gSYHvoo+rnzG7NCM/TLpLlm89GMp3yzGfMcIrv51kH73oTAYD2Ll4eSBp1QGXZaRjza2IGF7uRivcvJzgvmR5IzqJm0gF1uTPMptkTPUizCjn+qufVh7s0WvI3546arnvqzoxQbUqo+Pni9W6DfOBmm/vKDxn5ZWq4csOaT7xQbdCSi3YOJlz7rqy0uWzX+m4F/UOvgZW1O8+h9/+VbPnpvvfjJ/wabKtN/JVRpRtXmzXLUc83HyQrLljOsDNqO0sN8qi9036JPtKqOf8gqN9mShb7OPSxTL0sYD8aNnLNy6c/uVklVHwnfmv/7nP+PCuFtMw63VcM7Lljzze3f6ak664MBry6OJ+jflva37qcJIFg5glyRI7CRJZBGhOKCPu4FE3laDQRX1Bh36Ig249GT9Azr5hMrn6ZT0AZ25QQZwQMW1gdAEygadCRUXHkLjd22dPL9P4PpHiCPigLKhb0LqEcpbcQW/QF4AtkOkz7oCn6Cob3J8AlfCJ86lTRBtUcfCq0+APs569a8cAPo469tB9kV9oL7SYIaZksJ2wrRJ9/bLPZ4nlyyc+5EwvLDweVV8hMx/O00ZlP0SnP+1ZNU17w0P/v4Y+54qDJ9yxXa5UnJ+UAk/PfD4R+GU3jyKiZg550P4hDEx3I6Kyn/00c9S1Pif9MTVTwNmqCz87MKWzTsvk3FwIufBTkxhrjEHe5n/ZNE/Jm9DftWiVVfenO1z0rhtvuu+T8rs+rxOTxYyibjJWSZZD6fyMBx4q8kgayz6VX6BmrgQK3/4x4YlAqGPs14dDZZWJx+hawF0uhGyX0LVAHLwB+j4CVV3TwblEKocrw3aoch8/z+XPevq7+vBLNo5TyXxg/3qIw+auS4GLmjOKwyh+VsYKU99jyPxXwPuONTPgrM/8CjN8aNP0FggF4XyiSvR0UlTHsjBX4fysvpAFmhpoS6AkIwSrdiybXzd5jtOex8mDiUVtNt892nHSp8HOqu0F2qBA+Ksb/C58+Nk/syzX57+/Jtlh177wSJM0qsdq66+oFqpfJxxJ6SehHn2+TQfb2e/rNpehKvBvduEtaXvbRwZJYVSn8k/1Ys0aZH1N/iz9veuY+ct6a+sPpAAWlos41NrUWN+SO2mH1L7vVc7pKJKTD0QxxdWtt616RJJltPy4l9E/ieuD+XdmWHldbLw/1FC85CWC47Nd5x6QRDF79DQY2LBhkJoB7pHOlhK4LB1sqS1wFCcTLZX2S6pBOdAATQcD3hKK3eLRHsFnkiyvk2uL1sYwCO8hCoDump7tGv+g634A9TNGqsM2/l9KKeQDaLGtXbQeMmF9rJI+vbSVVd9CPhsK2nM0jgy0Qlhc6MHXZyFzvbgAc6Ci1EogD5u1GZ5jIfV+L1ZC8oGxNZugPp9qg5oB11c+yxsJ8/XCLjqIFA0WSELj/+3+a5Nd2258zT99oiS+7yrxvErIJJ6t9N3qvbLguCaJYde83d9NqNJ3OJnLXu/PAz8y0HFXxKnEtfqpzcp0iHBlhtp/BkPNAfOkvU/6KQBz+ZTvv3gLK5Qd8B2+ZTVV9tIO8qAlsBZaKvcjitLCw9svuunn5Gvt/+u+ZZnHBz53rbG9C393S5e9D+gbiKGsIJP/XHlrXJOwyMYuSU3bFvveumLpO3HIUkVUomC4cQL3J2AoRxwQMXRH2hqmJ1ogEOGypE6Qm0HPrR1fyoa/MJk3RieyBe6yocQFeRB9Kp9GwQOFsIcdtTKhmI6G4+1U1yUIEzsNsUg2Ppz0Pruwv4guH3J7ru9CZ/ITIfZtYc/zCcWA1rnxwF4dmO8kvaUI1B9jliB5v6IA+Zt4l+lA/o4eVVH14fiyi6yqBjkAnfys/yqB9rzjzgg2mhTg8AhCoXisxBtrDvXPoqeEUX1yzff8ZKPF3G1Qx4deCVsQ7+qr3ROmNhtCqkPtM7jl1bWthP7w2DHvOrcPzAPFLuXBzjrc6Lg9yuVSl0U1NgXHf8oiHTx1otlmIgZd0Lf17ABG/4IfZz1WejbrHgvynXTRh74Uy1djqCp2uFkwDYUwLwNvJ3YL75WOeWu0QOb7jjlf8tbwN/OPGiKP/w72TlMnK/xYnCE3wXE8g7HsoFHN0QbOP7C8H3LDr3qS40aNR41LTh23HWaTHC1S6M4GpFnN0SYBJabZoIcO2WgN3BAxaVjQmmoihCqEU45ESgNoTiUcRBA+zGouNQROmbjRzMU8BP6uFGtf8HpHMigHiqvXf8iswj7xUcb5lUqr+rr7zA4m4cC1OSrdy43VB/grlg8ERPzbRainfK0aE85CaTshF+CqjQEN413kgNSpzmQ8Aub8icSGxHWJfyN8kWY9qMQOPgI/bZOaq/2i8j3bL7zyZ9uuueUAxoV7P1o9P7T9xZljx2U/fJtlAvdN0t6V7qLlosOu/YWyTJ5GNvygHEnTOxmnPJksw5Q8Unj/1I895Ynph1N9JS0sbmVsB/6qa2+/e0UmWo9fumygPyfqlq7QvtNd57yl3JO/IskTwc4/4Vx+KFlq675p3Z+blhwyI8RLR6LIry2fGVuQyQSCqBsmswOWmKD7HiMUfdCRSMPd2gDLa8+M9pVttAA2Q8hRXpQNNQjQB/3WLpD2Zfrvxf75cpRTR6o+d0Fq66+v7vOZxi385FqTb91YgJ5k/aMNWLp4a6+OQbiYZXBMwTaAbf2VifZIDw+znrLK9cPdfAhVtQ4BtTVNcRDviuoQ2Eb4krsYNfU3umitkfHhrX4xi13vuSZHUhqy1LfOf5i8UFIP6gPtP8i7JcHYeeMtJ2Q2irdJUN1ZM7/lWtbE4wvbQX0cdZPKf5xvHTrXfce16WKjeyTxb8P+S8/zNfYX7+P9BeVRSjs8G3ptB+/jeKUI9C3333W7FTsbOfbdOdL3im/8PxhzHWW15iTsMFvhI0536/8l3fofGLZYddeKB21LcmCQzoPNz+x8ctxVD+crUwh5A0VNbxVvXAZL6AaCnNhcH5pJ1/uYbuGgPhEDFkG/bapdPYFaJfmCHlKIESb7KdNn2a4yeur/WH4niWHXHsd5M/mkvrMcgJxsA1WM06IweQ+bucjxhPQ8DTuaT9pf838bJffU5N+HAvQ2+meQFjWZE9/7Rf5+0gXP9q87qUH5WvcBTWO9ORIn+S1bLJHOlca7HS2JnAS+8Mw+mo/v5GSp2seTd+REAZXso62Avo467Owa/ujuLcFh7rT8pR9ZnXJO/ZtMHzy/O/oxUt5HXVIqwe24oANZkcK88YjbU350zHUYZe7PNumNaecIzfmP91J/JvzJR0HeY5sig/j6sa/3J75ytJV17wnr20eLVlwbFrzkv8pKyT9Lnnr4NuAsMQRXLV3UHA9dFBx76SPNqa8Qd+QVLGMfK0gLeVKMdYB5slPaYnOerIzfpNDGcLhJtCi7Jf+/mXZoT/8dKr/7MVwnxAbfEno+5eWow6lU35fho9TnkRcUUD9wwDBH2DOBmbK8XHyUnfqBx7q3Ak/5FAG+yH0ZVF+O37Uy/aUaOf4j7avffnTIKPXIs9v6Ns5fX2Iu34S3akf+urFfgnBxb3qOdV28nHlYtqThZBNm32cfIxdp/aLc3pbcGDe7GC8UFfq5+usuDiaMMl7L/8Lvr4RVOUPutFfxFvpCz6UTvkhxwo/jLrDXRRsvuslLwvi+lfEL3ouR8xRNPaMO6HNHRqfVvGgf1nv56QfK/QhM/wVSw953vlCZ1BAnrSokpvXvPjlouJfQ00rgEgaHBkEDiUIVTFngFSgUusJqbAPIUvbaT/t5fttrZ3pYDqmOPmoG6CPsz4L1TronhTiBdgfBNcvO/SgjleCiUozFunMh9mY+HHzcfL5NB9nPdwFnAU8KIA+blTsyWv6Gp205nqTbXkM3NfB5Kd5Ddk+zeelvlno8/g4+Tza08YndspEc2HyocF072xv7eJjBmG/uP7OZYf9588606z/XMsPOfB78q2GJ+A7FEI7Yqz7Fn97xboJ73wv3eflk0/zcdjg5YK2RT0KIXDaSn7Qii31JOeLzP9ibZgZ0rfc+eLnRrX4m3Lmn4OYM+6EsCIv/qSZlT3mfxBfv3Th08+RdwV1tYatxA+fvUB+/VXeSc8Bl0JTPJ1coaBvjCnc+56yAH28tcTJnePL8PHO5aW2wx8mow/2h+GDI3Pnnx2Gn5V7ybtGge9ss5zBXIjN/GoQuBVCd9gAWAcImag06OMmS07w2tYgcOhAaPE0mrK5euDUF3KMz/ozPupgR/7el0kZjZCyAdEytQG4FUJ32ABYB5i2hSx5xvAFm++4vqff8Nh69/UHi7jFWf2tD+urE/2y7RttN33lJui0vrYf4070utHXlS72aYZPOf6HYE6l/KnDSeKvVWlOIF6d5P/UdWotATdU4Md04zEg2jXqa5Joox017lkH6Ldt5NrVjkbvftFRUT3+njxisJB+hX86iT9zHj4jzniZj83XwK0QusMw+MXy6pIzwmdcvNNROgaVzVvX/4l0HVEB2gAAPCxJREFU9ow84c3KpAqih+Z6SzSTleKJMS4RNfPMSxCSKNtOnvEKP9qwHaEpZLJcvcoTPOlfExb9tdpUiMkAl5Odtk9pytlUn9qMPlz7bXG1cqZ7334ie1dBuJr2P2GRZj5ALFAsJuYzP2aNPmfbVvKaYiaMSksaSD8qhDnAvlWJpl2TPGjq4t7EnEPQroSedO/wlHWK9sfxhzbd+aKuP1XH9fAA8zk0oQ6pVsRoK6CPs74dNPun/4cJw0r1liTuBcZffFQZ3fHk/u380lyPWwT0cZH539xzkZSi8r9InYdd9uY1Lz2oXguvktXFcuhKHwP3x6jiUknYj/yXBc1dleril4WrLt+K/rotFXkG8xQ2yioLQ0AD9HHQSCdEPQqhj7O9TwOeTnSc/LPQ5xHc9aFQdZNB6qD/AChaoVCX1v0bH/ewBaWVfbS1VT3ask/gchlXflQ7fMuKVT9cjeNdsWR9ipgbjbGGV8zv+f5hnfGzLWPQVh6+aogCqLjIIUz6ZR/KqOyQa5tP83HWZ6HPIxIyOQWZtCFfPtr7hbpZP2xL+0XanKAef8Rv0QkuVzX3ze+/sT+TRRqOiJs+duzjPo/Uiv1zRuJbTM707WXavSWJe8Hxr9ejp/fP0kZ/Z+MP/5PWGBungdoqOCDx/inXQhJ1li4Lyv8WHc968va7X/zUOBi7Rl5bsRfjTthZ/CU2veZ/GD40d978U5c+64qef7m6Im8kOxoK+4nRKmp8NgQQG9oQUsak0A0OaWl/6Jc0lZU+ZOg/rNJKJtYfqoNAxUUWYSLXk99KDumwG3ir0rX9QXDh8kN+1PWvYLbqf2bS6U9AH6c1Po08PrSIWoR9nDw+zcdZj36As4AHBdDHldh2x/zoNGfSvlvpQ91Yn4W+TT5OPhkzQfyiLWtOObmt8g0MoSw4irdfFuBji5558B0NXU/DwchI5BY9vs0+3plSHcU/xmKu2yILAs1TxpXQj7mPd1oPPcA7XYV9U1/oQZqPsz4LfZt9HP7atYp8HX7lWK1+tZyi9k9zxfeJj9OP8JHvb/CgAPq4Elvu5AHRx+XnAk5dePD3H2nJ1EGFfEsq/o3wLTNeKEalpcadfAlVbzyQSv1lNpFfSpQmVLyxvSgprFgEWH1jLXpspFh30gJkKaqJHKTSTRZkWlEOx+lIDaBRfkOVHmTbN/LTbkJTV3iS7lvbLwumby0/9Dp5hTO1b+59NlPoM6QGcKaI4eI3F2R/YQl/gGxt6B0626BFzHJC8kqeUAsu8n0MLkYVErI5aFLTmDA/mVPt+MNKuESU3COoBHsI7x5ix960DbJpa2pfSkvr+2O/2uLGYxRO/I0cn6a0DnYybuWkCKsbx5TFQ35CgEZpQERgEi/DWY2ufDzH/juG4dmlhQdf98imX73gSdFvN0sQy6ci7Jdrm+Lb3ko3+a89cD4GlNLsf8u1JJ5dPeKnInvaFZ3/QZSO4Z4UnGGN4jUvXLypVv+BqH2o5awzoNv4Z8ZzR/lfCTcL30uXHvLDe6bqthF5//l/ylWOVakgS9z02MMYY8KM8saZtpdXCmFOk/sKjqa4cLnDZOC3kEc2QvBrIjt+4kxuqxf5lKcKJa1NvYY96whR6eMNzKlcym9hv0zAty3fff6bZZBPIiwje9YdmulwEQqh4a3dQtcSWo5Iq4TgoWEwsfyw65JfOoXsQZcda07ZdyysnSYGnio2vlIsXWgaDsB+MRa5j5OJ/Lz5qXiWQ66o/aITH8ivFON9Hpbu8G2LkDRNSBII0vL7gaBUoHweWZ/PNw3UMMCl4N20Z+ZTo7pNStFWQJT8BanfTOIRxfv4lG5wqkWYuDIhePkvghn/ZA50tJZ9Fv0iDn0PB5Q1f3HcE0IvX9esnjSTsKX9PX03K9vbzDiO17583uax7ZeLL5rem9N1/OlYwvb5v2MkGDlj6WE/vLUf3hqJFsz9QLBt7HQZUPtDB/avwvHRBZniPsJkjVN+VFOTDH/StiHbyJwDtZ+0v+b2WQ2pLaBT1UEcZ7lB80tj6xz+jD2d2C99PhGMVM8K9756m9/XroTjbYbMiXY+Vp+KcwCT4qFu3rLETBgM8dkyVQM7XHDYtQ9JZ5/DNrrmhXtPBPFfibLvEPv1V16LtJ9G0ndRPTpHaB0tOGSBIgsj8yDbQx5xQhsCWNRYb6CTZpTGPdiUJyGHWxJ0mhG5dY1Pak1a0FZUECekrd3YL9/KEd92V3BbPdHNV5E4YY5Y6ooqLD5xzCsaxMkT4mcHCi7ap+sDamtOuGPiLp2SXKF+yubbSpzQyYl2kSsc8vtJ1U2/evyrkhsvcqY3Ad937eLf1FgIfnvigBKjiWo1+N2lh/7whrx2vdAqKw68dvO8ufNPkjz9OhJeB5imvkRYOtVBIBC4DjoHyUdIPkK/rUkRGWKB1iPbgCOJHLQu8BZR0AFlk+oEwjqpBA3Q8BSihroAYkMhBK5tHQRu/AYNT2VoT9qf9YH+VJaDefzyjuiJoBq+drdDrntAxJdFPdDodYsg9vYHFqN15i4XVqSN3NUYrrL4sOse2+3wH79bHhY+XD4J323aFWe/7wv0Jcev7tQj8uZPXXCYDMlta6/NKRcHGGqEPm5UrXEoGH1bHTmMNzts+kEYy+LH19HsBq2f9ocxfFtMYWxa6ysrFymcQ4krcWA7+lh7d71afthY5+g3vl7G/7CN/SJcKyf9cNOa335e/KMv5EQfU48/Y2PxMHnN+S/nt0h+guMtyw79cfKW3n7YqBfYFq265lER9jr5us276sHOw6pxtGcqnCY6in+oZ2ChEypLA0NzI5+XrIQN7nRNE5oMokiu11XkC31yI12uIZ8pE+DbyAXor84SOv0rBHSDQ3aHCVRpjkcvlwoREAUDgZdQHUGBChHM2lqwUCH8715x6I9/bEy79t6fRHxcfaeOc/4hbi5HEMWxcgCIkqlXsqt2HMY3RHsZpGs3PfiKE4MtWy4TtV5QlP1qMl2lMD546x0vPHzJodf9qgN36LsiqBshHG44HI8CLwN33s4cukFgLMplfJQnNxWH5gqH5JTpojkmyubo2xf7w7D393CobgyqKEjXu3D4+a8GkNXV5zZoGE8JozYvasf4Q76PZ9Mpa1+n439X+LVYeeboY+K7tyQ+gy/d+FMI53YdfyfEpQFjQ5jkf1z5o2VHXP8f6KKfpeGO3rLDrtoowvt2+aSfimZlbVx90vvh/dRR4ioZWHopyC1qsnOjLkgcD+XZ9GhHMYIAmRyTxBldDlwnnzIAZWHyqd2OvPFffVqJw52yIPN8ThzQikRAURcJ4qwGUx4Omk83YUOzX77f956Ue69nPrljK97/cAAXw321n9Z6fqjZzxO0XXDIh6fklgrFAOKTselon5SJJ/FiX4Ro5OM49koUD88tFZksNqe5lq90P+wXyT1c4UD+e2PBVy8Pz6Op39040rMUCNljZRrYrrDxPzALpqejJ9c8/2/lwe73aO95sc6jKXM23tljNATNF6ANrbWO/+pfrTji+n9Jqf3DGhYc/RNbrKRNq08+QFa4J6vPPN/ZggKTpnOy+FTRBt8yAKJjk++lTnnT9hoctocwbWP1jkto4XXLjxh5b7FWzzDpLgbmzvQqEKygO3MtUh8Lh2sPH6vLHTPxSWXkCh48UX6sbMum21/4ujiu/VR6T362fFLdu7S/2T/xczqyNI70qnRTe7c4TBYYoo/iLh5NsrMByQisVMLiHxpoUqoFIZRvNcmEKga1zq8+2C8fWKotNGhPnnL8dcZKxxhtBRxE0XWqJAHyQIr2ihyyw5TmHTegndo/KHsalBvMwZNrXvDuuF6/EL1lhlMyF9Kf7eqTXKe/2vi3Elb+cbcjrv+HoiydkbfC6kF0PnKYCwtAw1OoodKklx2gAsNxVQR/Pk1xBAP/Tl4WagKAh0WiLlc27h+ZN0deW37d8Eys1G86IUaEbOotB4GrTwnVz3heB3Gz53agMnAWiEFx4hRRWkKw+mHdLz/iupuDSniJ2i5K9tt+nUfEF4DY5MpF8mvPk/lEvqWyQ50KJvgyKcxvaowK0lKMtRgOigMCUR0MGh4vhYShKHG0RG2ForCZdhOqkjACBdDHldhAUQ7ZJRAI7I/i7cbd+R63CJj3hGhN1QAVlx0hkKb4g0/oqhMEYGw5aAHCQYFFzijMA+infXv69C3/CzRhOkVvvP15b4yj2j9RB3GdFkDFZUfYU/zRuFX+h+FFyw+//s+sx2L2M27BIQmLL5u+yaUyvNfSMxy4gD6eNmBbQK7CDSIu2Q1DV+Ml0A3j0SCsvmrps67r+c1rqS6zDDOX2uAQnL70/Wy4eRTPyuDPfGzQvNy4FwbzvZM/E7w2Uqn+Y1H2YwJXn+DEIpsMjv3xnf12fpGT4g7lF0ZCjQRkOJrKdjjloQ6llT3QxRQyIMLdO35An94ShfEy2KR/9Jeo1G/75YS/o1tLMRH3kv8aI6RAK3vEWo2nWd2tWt3z+1c4RC/NFwctd0wfzRHVzbTrevx3r9nQt9j4qxecIYG8SO7pyyku/0/IWgOouMSdkHlMyLgTJnkPCZl8kaciv7Xi8L3fLlczIbmwMuMWHBtuP/El8lrX/eAwdb2DPk5nItuVDx6XDYAQOOoITZ7jB58Un+bzoo0ESJY+8ZtXHPnj25W53DV4AP7SjckNKH/qbwfpe0Lf3xSGiQil1YREvmGG+hBnGN9alP2QyyLv1JGHJuqH8rgVlDnNfQpnWxtPxk9a8xjQKCK27g/8fv9+DBUPg6G5whHGoerCnGq0tZ/293CFQ7r3fWe6Wd4Dnyz/G/zvcoHxQTvgbE+5xUG7OglbdEPvXr70a/zLj5YVZ8I0SH5y9fNeEEd1fFN0hHkANZirjB9jCYg/FEIfZ31e/ClTG6uM8Nrl85e8IQwvxW/vFVpm3IJDTvXntfYIJ0qbPOxUZSc5TXRJfEIGlRAy/asgPp72l8qXoP3N7kfchG8hlCXrAfmuPy7r6uVe+NycDgfbEHEQ3kQdIfkIjV9qld+GEHFA3bJ9D+mxaH+96S4K9tF+uBbyABUXKFNx2wWHfHVzB/UgRByIA2JjLAAVRz/syPEDtOQfoiscEoOlah9u2Tn7fJt9nPW92C+iu7/CQf96PlddMTqExj/iiX7O9wgJw0JoVVwA8CrvAO78Oht831Ff38fAwUOYz9/C/lm03pBnEo+Nw+gKWRrOh5/oBz/WfYs/cqkh/8P/XlEdebU8bzaGfCm6zKiHRuO7TlqyYWctfdeAZq+4iBDeEoeycDGRQK1P2TEwwe0P0LTWMQO4DjzR31h+xE/+PttSWctdEIyMBHF9wjwhoweDJTlLwYk6y1icbE8PSxNMQMrjHEmcztegQYbxOq6hB2E88vNYnlnU/OyX/WI1fcUch1/kpV4r2zlELoRs8Lzekl1jh37cGACwb3O5JrQFkHyCk18u0eovWjru6Qami+ZQZ6rQDsJO7A/Date3WOWqrYVDdGNMVcPJ8l8YyOvHX4eKhcPGCZTmcWdmT43Liz/GuvrO5Uff8r86SIOm5o7JWm9Z/cJVtXjiBxK/JcpXdPwx4cJ1mhLhmmp10enhYVeNTqZjP+tm1BWOjeP13xNPeV85g/dQAH1cic07nrQAfdxxctACGp5Cypfhc+uKPfZ8S9H3upqVn0EUvM2QIVFfi+7O5zr5wL/uD1YprVPz/DAT77TtNPJVwvrj8IHa2m/7s36IApu8JrM3DB5CtX8lz8cna+rX+W3sk5OTmcQ/8H42wW85WHzjvacsk7G7j/bq+atJf2EgrRMNyQuouMiW1wU93EnbnnioO/0LIaTlCWSdz5/H10ca/aB66biHjqJAP/N/Flzh2Ljm5H0ngvFr5IHh3Tt2f148ScsTwjpAD5cr9PfPmxec5l6FkdeyENqMWnDE9eg8eCFdEBhOz2QXDOQjZNtW/FiEgxfQ8BRivEjt+nDO3FeFT7mi66fQ2eeuDnn/ENBw3A5wS26cjtXRBg1vjLGywologm2GlDAc2QRVzVaDtJtQLO3afl3AiB8AFYf/Qvk2RtsSy0kRvkcxSHcSao0lfssxR15AH0dbFInhbpvuev4z7Gj69uG2sWeLKaKiN+sWZH81jnUx1721EsEu819jrlal8U/ywMVOhHavyhRaMA/yRPQt/2fUmavZE1vXnbZnXIuuldg8rd/jf/L4Y34IH6tU4lMXrfoJXvg50DJjbqlsvuOEgyfG4+diQOp7AcRNxG2Qmt/8sQU+8uR6FeMQo8ONR+UVQp48YZuQV72+dsVhN/Y4meRqMIuJ5tSMi5vsNffzxNd80sLgIQ8a4xlqlWnim+QNKyEOJ5boRJBRkLYBomRhW/vVD84pFBB38qBm/DDGir+wRvOm/jwa6sFhOloATIa0skORZzgfdldyrXaMNLxfm0/TTm5ZHA3bkuRJ9BWS4PADSj/sl9dw9HyFo0/xTxIpa09SYeYWsJdXnag/zcHYwyY7au7O6phTqXb0Q1Z/jn+5b9gsbIZQcLVtfHT0KrHt4F7thx+0KJQdj+ls58Am/wXhk5Kfpy0/4sf3Toe7Zsw6cWIM796wJEsuX4rHSMtzHhcOgLkbphfUuT/IAM7CpAeU7YIVR/3sBtaVsDcPZHyq/gaNMYD3DQdMJysXgyb+3rQYfKt6LViBXvttvy4YxCuAhmsfba9wjFSrD/EkS6hewdkCBdDHjarjxaolSqjXBYZBXQ2iMpkNrVFUj481bPr28lsIRyOjzNbUX9Co3/ZX5o082L2lHAHQEn+AGssEIndQQ6i4HBDCDm3jIHCrNWi1Six2l4m/3xl0RwHElrXH7AbV2eJBn7/wr1NIv0WU+OGzF8Sj278r1j3btwcW25/5pJ395LaYp/mMdswD4CbNoODbxOmvmM5vVs6IBUccX1gRL75J/TfpzlwMJ+umE6bgnDyzUOPANnrgpFt7nVAhK44/ufLon/+bqyxBBx7gAk+uF+mJCdDHWQ9R5mcnVGOmRI2b1gkt4ddwYAce12YGAPmxtAMKs9/3A3zVwZsul9YWyuvP5W0cnm/V1zILEuKMQJx8Pg04Jk1C4OAjNDzGt2aeO90hkicsToQOao+DtMmHUF55YISHk8enAQcbIXAx/9EpvZdHBGgBlE11cdBwpx/YGHdCNMy0T2QpUvwukpWA+SEd99C77+O/eFP63kMcv2POxo0Pf0Oe8jk5ySfpRePK3jLxs5i3mf86iL8sQsbDSuU1K4/86U3sajrgjFhwbLztylOjqP40OMi/okG85RUPnQ2kEaCPQ5AWRgrQx121AAnUj1Yevfh9KaXEuvEAB1OrAeaHxceTPnyijycMMwOJ4uAk3xfU2jfJx1nfkLc5DM1jQPI4jrYl7Vsg4VFX49PO3Zr3KrfVGPDHhS0m0AZNsGF+JPTnSnYLm+Vk8/wn73jufqQNGj6x5kS87v1g7VdtFYwGYNwrDXZiQyH0cau35pPYHwa/UBE97HzVkuY+0ccdQ178jdbKnkRyYQjzAB34Oe/j7Nw3ycdZb7GRI1R6DJJTyU8FJLxDjOBD88bVq78kvjmdfoC6nkkNeGJKG4ZO4i+3N2W9XTl35RE/vTqRO03IjFhwRFF0nvmHE0H+YGIgAfM2TCTGY+2J5/FqXRjcN3depXxteYHJaTGwiUnj4GIkkdI/nNHwB6gbcUDdClSuT6LxyUbmjZPzxPXHfvjCFVkhy1HbBQe4ZRqykyN8y0I88bdorjTMfCLb4RorwfWP0MVD40V5AqU6jCY4hr2KQaG14Hy1AbpnN+gAGgtx8uE0oLTO7BcP9bjgwLdccvzpaIne8LHqA52pN6GQcD0dBRAbeAm1nVUXuc/Gf7K+es7/OBqaF8pNZh/rNqz+wafEVvmWZWPp2X6NPeNOKLLz4h+E71x51E/lysr0l6FfcGy899hlksBnYXDZeDHo4zbw7FMHcJsaxPfwv7dhIOAY0MfJw7YqL4xHq5XgVUsP+dmG6Q/TTNQAg8D8TIgj4upjPYZt6YBBLFDSmBhu1Jm537D69tfLQ4srBmK/DAw56XW04JCHqjs4OTI2FjuLAGlpbNJ4pePQj7VMrOfJxvAOLJDx/S+cLx/wmib6zhWgrZ3ZL28z7cCnrXung1J/pj5u3cqr4aIC0Mc9lqJRs8H85ee8j095/Mfh0Lwyv50/N972O38vVyL+oK/2t+rUj7ng8mNsf77yqP/6XCv2QdOHfsFR3xq8XpJzPhwjE6n6B9DH6TQLKKc5ORKH6x+gCwQh2qCO0MdlkRhXgsobVxx1s9znLkv3HsBLv2zC4Ve+APEH/xMyFoTohzig4SnUiGkcjUbe7vUbXAtcSpUHFt9flP30EyEsk9s3v+3EwmqlcqPvY/qTEDKIA+ZtfkyAZzfYbbRg/w2/eq58cBhseWLz9reIVsupe1Zfsy+1DdoZzfQkzvZZ6MsTS+vVOQF+Gbjnku3Pl+/jWT14jI4pw8fTenlHTqEFD/anecD49z3/g2jfQs3ok/ANt534fvmw8YG+299yPHrxr1T+94qjbvpIn0zpi5ihX3DI15/OZwLLE25itDyEJlBxD8ooM4cQ6pGjuQFgA9GbXIRXaWjjbXL017sfffN3+uLhXVwIJz9OeHZ1VxYdMjv7eKt6uA98LMTZnvRhhRtXX/lBse2IVvaBTj/4uG8fbYaNxFvVY3yEQeW+Tvyx7PAbfxFWQl2cUJ6vg4+zPgt9nfL6hAwUhfXoExvWnjCwS+Gja164t0z0H4ZPWhXYg0K7fJt9nPVZyLYqJAj+a9lhN210eFcAX8DL6y8jv6P4W8ewmXYTdqVSX5g17tBE8iDPPp/m4/QzlADOQlxIxwq/V0OO4YEbbj3hrfLsoZ7wYVuefT7Nx9vaL5YnvmjwgsVaSP+6+5E3/Y/h8YZpMtQLjidWH7tK3Pcct17Qz0rA4V/6mBDmND1AI5VKcw2UV3buUD2gNMVkp3Xh1/c8+pf/QFIJe/MABxhaA29V/EED3B90lNEIjQciJxHbqruB0jeu/p2Xi45/U6z9mMhgFnY2qVWq0b2dGKpvy42D75svO5sQG2NhfRvN4pHiJk81c4GSuqfK0yUD+8S1c3z7J0Sr3aATJ3CoYnmWr6+fgz5udplNjTjkOD+Ewfc68XseTygzcdf9ubibe9P4i0ZOp3QxC9nY8BLgogv0oY/QF/BWBTqhUD/wAmf7Zmh1chVv+cbbTm77m0EmffD7Dbed8FrR/bPoGTa0Kr3abz5W6SLfoPRkfYXx11Yc9fI/bNXndNKHesERT9Tf6idc4lBOrh4UV6sfCe3ABdpFR+sE55/KczKAS7Ru2X2f8PzpDMhs6RvziM0l+MSNgliI53V0GPRjS1w5bQQBbSrZAdrEMCSEjbcd/664Xv+O2CW3VFCKsV/9LDuF0ov4J96tsqCjKxzQSvi/x9uTOO6+uDHm7KOt1Ad2k6bxD6K3r7/td87svp/uWjxx23PeLFn2u5Zv0jPGvWywlZB2E3bXA7lT+yuV3hcc8gVlNzZMV0rPwmz+q59ll/rbcLbL2l/0mx7lF7Tli7EWc8adUOPfx/EfhLXfp53DBDfcfsKp8kT2v4u9VfoCsN/2Ixc07oRwQhj+YPejjn5TGF4o18yGrwztgiOOz5ZghW+UUagrXjgXISPUYY5JBD5FEoPP4RoEJRuNkw14dAA6frBrW8AweLw6d468tvwX5WvL4Y8pFsRFY+PB3kT6UjgpG+Rk2pvcYlqtv+2kZ62/9fiv1qPg0zLi9at7tKC3HtkasNl+oWhOK4TH4/DO8LDrRjvua2FwtbRKft206SohenUv3OtEZqO21oI0HGGYhlH9Gxtuec7ZncjrhWfDrce9VTq6KK8t/ISS+MvhSgTubAX0cdZPAu9dccR/r56kvscqeg/QYk2o85qjtbIn22nRFzjkMcUn0adpa73TgqwunR2zdZ790Xmb15yoL9TrTFbxXHJl43eienSZrB/n+pr33rMvpU38w/gnu++512vD8LPulzN777WolkO74HjiF2tfJg/b7APDO1owOL4Gfo8Guq1IHMQCBgsPXcjE43I38DUrj/h5z68kVvnlLvFAEjNvkrRpCCwcREAdniwC5VhpoGPD8pHQx1kv1dNcnrzlhcs33vqcVz5x6/HfCKKxO0T/1w3WfvjCinzCvJF4J3Dlwf+9Rbz69Va8OkaksrU9jINB47eJ0ccthqan1M4R7D823Pact7Xqt1f6hluOe6/I/pz0LXOb9ZfC7qWaDe3tlw9CU/smAD6PMu8Jk7yHHcj9VvlPO2EfcUAfR13xpRoF8q2+yeOf6iX6qK0O0m7CNvZLbJZPjE98oXirOuth423HHS6vcLhSbFqEvLHcSWFqN+MyNfsb5YW3jcSLXznsv/NV9BW2ziKVwyUhOa+ZjEBx0KGWOCBKpl4vhwgNMKda+WWlEVbiP9zz6Nt+Ykzlvh8eSFwuA4+/aQO5FhLQXC8KESM7xlxjPHbc9NscKk8iBxjH1fWrn/OGoC5XcatyQQxF0AAooJYsgZWOP3OYyIJMFMj15FfqMpmEoXyqimSr7C56HFsPR4+QD8S2eIcdfsoVaD/Uo28B9TgIblCki10lqP5bPai9BU3UryLKJstm+eBJYqcNQJBNbEbRug7slzdzVMVnn5NF2tmVMH7/VL8Rtn71CccG9egf5WHyF6giTh+85xTfEND3nUI/hwNqwWu4wetex92L/eL72vw5wcUmsMc9sgeqyNZp/qOnbPzNFpOF+ib78bBIgSWqhhsCuYzCHDF/iv9hmBSzrT/j3wl81eO3HPfJPZ69+L1heF3RF3C0y7zdptXHHzBRi6+WPNoNMRiU/S7+6xbOqb508RHX6Q9E5uk3LLShXHDgMtnOndvOwH1NDig4zHCZQFw0ccmTtPx6aS8VTHYdzaAkyY+JKP7nvY5Z/Xm0L0v/PcBYEWYnoGyPFk+Lu9a5E7YfM+BO3py4Vr9E29RsgaAnlBrizhMK4i0fH5Ocqbuccfx1mwxDgdaf7OV+iE7cINTw0TOF8tNUMqdo3gjRZEUuT5UPOydKUddvQfaLK8wXBoNowdwFP0z06BBZcfR//eSJW46/Q8bCoVSdUCdPyLHzhQDzLSBKU7yUqFW6o92Evr5gkOOXisRT1t963MVBFH5596MX/aTTE0e85uy5G8YeeL4s9d4S12vnqivE+dqHC4L2qycAsyjbvy1AzCboQ7sJYabik9gvi5zLFx9282No33ORHyNT30q+UEeVxVwXiGL2WMxxTF5AFLUHbZwlWfsloZWvqN28BSMbdo6mV/QZd8Ksvlk9wEcerevM/gvW3zr67A23HP/n8hMUXX0tGeeasfHxl4Rh5Qj5APNb+Xbip7I6tTtef8ex+0yMB9eIy/WKvHO9NqPdhLSN8crK7sX+kcrI+YsOf/n6OH55savJrLIdH/+tfEazFf1QLjjGdm5/g2TdPLPHjfQ84zgrEGZmB5IJIYmnChUXBj/c65gVf5onuqT17gGd0twE2CxFplUNKeOK6FhkjJd0g1bD05vETxorzZfv402fWDFJY2I26dqbHCQ54fCGCYDM0iR7hcV1bipDc8dLaL1Mti/U/usXHXrDbybrfZI6vAnRJtsB2y+fwquy2HibePNtG24d3fL4L4+7RmL233Ll8fGoHj4ezqmsD+tRRZ4P2LMSxHvEUbSXROa5T4zf92IJ66LQWx/qlQpLEDUVphQdf5lM5dsw/SouUTXRLM38OWvK+c/E75e6GTmLD9p7485b78NwaNFTYfl/knwYkIXzcT+X24o/qFbCm+TK2T2VkeqmJavqWzbfvmDxRLxzz5Ew3GuiHu1ViStHSq6cNj4+fpxMGRV9ZicIbhdzul5wBGPBp6X9ARlXtDjsv/31qHbD+luu0P6Y64AoufkvdAZHhwr4wJxT2snLadJECoMr7hLiIagYygWHBO88m8BttUv3ICmAG8REYjggima50lq6T3kgQ9junT9/0TmdfprSDspdhx6owcMteEl3MZNU109lnGBd6NJzXmMONAttHDL21XwMapOPvQ4617CR24h+tii/kK21yyk5snzUzFGc9klPDfrTFta7bj1AyQaz7Wk3IXrkWPCEeGiDRf/hVXSFrpy7/+eeGLvvL6TRvpQIATqmEh2Kt1+uFuA9HfKVQtnsIlQQT9TUy7iihBnA9JM9EHfkDkRfi+Cg4i8K/OceR998HTSZWrEraYw7YZfxb2v/1HRs3zoML62v/+Wxj0gUnp7PXWj+46V3x4sTjueFyXCiHuy8BV6056InXCZFyCTNn3wtu6HKFc8ljbfsbE7Il1Gs/YPO/+z8lTf/0WL4Y+guwWy87cjDZZI71oLFjAD0cVfrRiUmRZuUhSsdqcbk753lstjYKpehzuz1JT2+yBLP9wASMfcPscJfi5jxRA1oOAev5QDaIhf4h0OlGVnrQLN8Ma5GfkdDnmiueBCSHK2VftqXp0G2f62HyFZ/sBt/gNoX1FCFobSz2WB39ofb51QX9vx7CeFhl45L539nurTWD7qjACrubFWyh7O+CRZmvyplO1URO6ejg6avo8Hn6ncPgs/RABkXQhGokgghSZ5/+Wsc96tYzHuJv2hAuwlVWxyYzdgPqNyQ9pjB4Ff8tfBv4fa7/jX2gqvTCHt0ji42KAo+1v+M3Wa12T209ltcNF9axAdWodA6HCoNZA9nvUFtoruhW3BMTNTPT9Uz49QSmOUSo1WyGh9aO+uzUNrjl/MqYXjuymNuuSPtp8QG5gEudwGxIVSEOQkLvTShgaA0pkTalvLAA5ylW/6mDiCIQoA6HNDH2V87SN2oL8QBB4RI2ymk3YQqGnwojp9tK9Xgc8uPvFG/kmgM3e93f/aSi0XeOmvJDnDEToE6fMjsVz/4vjUjUtVpDn1N/4OP7bQNbWUDEEkD6nCBcu3pypXH/OwmbdaPnYjuNf4d298PPdvJiOPrW7LQ1/Q/3AkccBD2sy/2D0WBD6qwL/Y/dPZDIRQXkARXRMiuvsfxP1QLjjh+4Ugchee2NNbZnILJnZP1jS5UovCv9zh2td3wSgWVWL890CIhbdGIvJWpFTwy8Ah9PKknXyJP2gBvMSBUFmrZTm7Qmnz05doSksdBv23iDu1LBVq/mChA44SRhawD9Ns6gX4fppfpSnk+TXGRQWjyKFeg+kBVmQirlY+6LnoGuL0orvkT7Y9SfBuAD6H99ANUpu6AihcV/0owFo5U/pRu6gsU35rOBhWnHfA9Nj0rM/aAKITWTilsl7Vf+YvdhXPCH6uuqi/Um0w/p7MbR4XbD13ajP+evMN5QOU7m2k3oZLNF7DTt3Uq47+r+Kt+ogMgdXBQ9fF0VD+AD8XxT3X8D9WC47c3rz9dkmEvBiML5ROFBgnQx8nnOxC4PtrhIHDZvrr3c371YfNguR+IBzIJi3GpsRGguMZSiahooGk94oZq7BTxoKD+IPFxqcovvgzB9dBBv4qN3XATzaCdFUI9ytjXQMNBpl77QE5KlfWX2tyz/WHwhX69Q2aPY395hbwaVd6SaIW2DrX9omoyBzjcqd8M/CALrocO+lVs2Mp++XHHD+1+5C/wMFwfS5oL0MXXzUsYJo726+e8j/dRqa5FqV9C9wOCg8h/0bCf8e/aYDSAnb6tFOLTBNeYOmj5lsZcBFi9g4XE3zq1HBLc78OvStR3yJTHv5MzVA+NysLzPHw5jIbDSOAc9E7nlkCWI9rCIBsKTcnhL/bee+lbWzYuKwrygMUkjSIjalHGRIH7tpwsVQk0YSFOCLqHN0qTOqwsMch1tQlekU+aa8o2cpj0zXvHyB3Vx3VCPKlvo2+W35Rt7DGlQb0p2h+G6+fOm/cB2NKvMm9R5T07tkXyeuZ4j6w97fTN8qe2Mmj0BWAf7IcM2UwaEMEKjr8sNn658tlL+vqbMPqlWOiNQlf5eB5N6hu9CcLk9kPkIIpo8UNR+Q1pdGhAo8bt8inxBZtDeQ9vlCZ1bexHU7aBKM1XNwZx3EtB7KjUrpD/9Fniq4Z46KUA9avV0+N2NDRXOLbcfOzuMtm/EoFDEmLDxEGoOAILmvsjDqgbUgm4phTTCu4Jfjt3bvWs8Ok3Ja9wTpxVIgV5AHFA/CDeoIaJuIuhRQknXYsauIGzEGd9FoKPPMA1Xxz0cdTlF1VQqkxf4yENR8St3vpqrW+Wv2j7ZQC/v98PPy991i+eEMPf1eiL4bQfOg42/uEOeRXc+f3+dhsmYtpB6NsGWt7m8wD3c97HUTfIUqniq8Izdfx356nGk2jjfFH0+Iemfr74Mffx1hY16mt8pOGIOKDNe4Tsl7CxrfHTfqsbom+pbI+2nyvpqb89kYwsGKvWmPKNBuEIdBTWZyCsDYNx+bnu16w8avUjxlvuB+EBiaX+IX7AkphaTIQoNMvGFEIxnya4tnVQj4gD5mxIF9ABfZy81gXyxIo/KNmOMK895RBCCnAW1Rc091ek/dLLFbsfc8uX2Hc/4V7H3PJNuTL0YfqC9mYh+pwu+7O64NiPmY+Tt0lfFzvW+218PKkPg7euOPb/t3etMXZVVfieM3f6VCxtZ4YpD1tUhLRAOzNtobwMglhNeBiRYtSUABHjDxOj+E78YQw+0R8S+SMxEiQSFDUgjxgaUAq10047FJGBQqEPoEUstPIovcfvW2uvc/Y9c2/n0XvPnal7z9zzrbPPfq1vrb3Pvvuex4YmvDPFWc98iYiP+JND2TOZWOPjt9mXLa2rpekw5/QNj8IYDzXT/00nH32dfdnSHNr+emvyWMnBKzjSLGIv7ImtsJ1c+o/cf4xHw2F8Uudh+mf8VE/OJGnLNquphJjKdSS2ROO0TSabspKaaSWXpE7VZTkSktJ1XcseH9PT5zRj2DaEAbEpSiLyo6NAOgERmyLObCod1NIxLYMhRS6ZOvRlicRmWIf34jSN8wvzGinOtQvysPYwv+nAAlz9gpAlu0NtWVVzmdlVCzS9DGvV58WlelvBUr3uxHE8VJ5V/qwW3pxtx5JLvg3V/jwR9afti7Y/6vt+R8/G25vBNk9avu+J7c3uhp79x69/c5806nMDE/2wWf4/fv0P3f/99o9axuPiaSIzk6Hkb1L/b5b+vg9avzcUfWDUFNkHuePQ9DaUdKa/7EyQFY6X1y1cjA63mA2lckSRcVIwtGmFIVKqsg79vCxDyomin3Uve+IWp2uAohjgmMZ+7fftenXTcAxENXaGUgY2KapdOYiZjekPIhOZUP4tT67MUZTPprD8usGOEV07DNkOqd8hZQmGtQodh/542uTrcVy5bPb7+vfWKrJRcXzFdTTzXbhrTJ7AqMVSNwbRUbkvWn+/PrE62mJ/TbN/FP0Bk42GPnNDiXTbovy/uPlGae7ijfegM29J+0GVwp7eFIvSn+5r4wDltK9ix3yb7RlLcJPFovp/S/zf+DCOhLex9/8JscLxTkmfvSEGg2JyAskpRJJlbHYoPgNDG9rTRw0x63qga+mirxhPAVvFgDtByahjndohbKmdVNG3/2hb6+bY8AP9g/eIRJQP/YgyUWTuMq5OECfDMaIvu+Q8sTEQVc6QsRoMNWUWh/hce8aqP75M7Eva4pVzFm/a4iprKnSc/PfXZ8Qx3jURbVJtWqt/Xtli7B/d1TntA6vAgW/YfFMOax9PyIRrOG4P5Z+5Wsalf66MZu2SL7z78FtaPnUTJTOEnmP1/3xbx6X/GPjN11d73+lWQP/P199w/f0xz5ddxTrm0ZLZuKdxxgETUrbgyxNghSNZ39sOr+O7U9BCfAwpy/KNQ8iimENVUhU31QxhhKdnTGu/go/ZtbiARTPg7CnVUq4dfJ+mTLsaUtZSDFmGykSRnb9w4Ko1YFvNmho5+G2EOeVbif62mE5SJV5zZOVZuVqCtlfb6LcdWV3Q/NY+jbQ4S5OhX4bpbUhNtVZFELMviaOPdi0ZKPTNxu/u2bh76rTp5+P80a/tbY3+yqLjwphpsv2h7x2dPbMulyexZmZruMRvfmZ3w7z9G6F/wxs+QoFzlwz8EX7z83rJ1J+y+T11bqb+I/X/eu0cfbz1de25ms/ihpcy0fT3x1CVYRHvnKztHX//b/kKx64K3gqbVHiHiljDUHecoaiwnVAc+sSkZsQxzEdeS8rli2edNnhYT11MywzCuBigfeQDu6ZYw8a+HSnLYOOQcv7DE7k5vZzU5Usn/INoX0ANXX4qkJYDQWQiBR5zKLJrI6e3MsWVtjgdqBP/DF1axlnI6zPW9GyK8UDZ+zwfJ+3nFT3ZML14J0w5af8wGvRwi/QXLoq0P17+9auO3pOubPQdKcapjxW+Ldb5vaFn+9QPDld/v86i5I6k/avoIY9ZPzFk/dTV0PQ2bIb+7OtSLpECgqHuHd42r08D+3/h/t+o8U+/4imvLZ9wJMnB1ZmJbeAm1vowpaXxZZcWjy3H8U/P6338nzwaQqsYwMvb0Iv5obkMKctg45CyJlEUmYMus/GkLoNRhpKbpmYpLAMfjhmGKnOiwDjNNxztmObDVvITfTktX9qigxLbxbJTdPX49VFX1tlQ/UulB6eX2ns7+vo3oMqWhdl9/Xs7e2afH8XxjcIDWiK6OjS9Dc3uhqQYbAvVRP6JrR2KLNxpuSxHcjhUmeojJ4vBR7l3dnHt8O3BMqo/zJflt7KIqRwlb2Px9wudvYNXF7VKGmMkLkJ/sld0iPr6D0wptX8KFL9Cm+s/pYlm//EzYz7WlP5PRydpZIzgkHJT/N8vHxVIPUD6J+tLkS3BQcYdSn+9pBaJEFo64XhpcFEX3rS3UpRAY8QBHYo7QpkUPcXS9F6cKh5/s3v50N1ULITWMpA5oHNKGI2OSu81pMx0hiIjjSE9mYcNfVk9P0tr9VFryU8BQepyqLKrH56FlEyCYKh7/lbqZAok0Q/bTFnbzjIpE3253nFmlnZoIZKXcZZedUUFKA8J38At3d/o6p39kaP65NkYftNaIvPbflfvpi+jeTiBJK/7Ovuy6ePHmd6Gprch81Trr5xrXLWs/Cj3lkfyi61QjgtSF2SiyiPYPyo939YWn9PVt+mXVkYRiAUO8QHTJdOPjVfdSY/J2fGMs9HpX4Q2w+vAZPX59nLblVDyzQlt/+FNHzkGF+CYf9EGlIm+bMcRqX5IY7o0hmI/lzezL6pvqP1H8P+ctmwmg2sucOzj34RZ4ajsf/szeNNe2YyjijkNRc38xo4RfZk2iW7rXv6vH+RzhP1WMaA2kk4EW43axr5ZRcbGkIL0AId+b6ijptbPbNoGJrM4X86OWzpWmnXOdMBALGULVla9/Hp87PpjIv7XqNR+amffphuKWNI3fUaLnX2Dd5SiqUtA0b3M02j9xeZmd8Mm2h8a8Ar0m6dNKS2eu3jTutHy0PB0oisJdR/RmbW4iAb4P0trRZizZOCBtlJ5JZzl9br1F6C/9Vm2wWTrp3XbNcKBye7/9dqvY52OgzbuGeb5Mw4N6bMqZ+S1dIUD126sRouy1phM9DuW62ymCFFkNxvEbdDru4859uqsoCBNXgb0Qs5SiejLtTUyh059InVyN0BLNs/HahdTN9YuKJWLzfiLHYLF1c10GAfwg8wjUdR2UdfSzRd09fU/cxhFNT0r29e1dHAlXhz3SVT2QmMq9G3uy7VLb4T98WVlY1spXtHVO3hd66/98nX25ebpX7vk5sR2LB1YE5XL5+KkNVS7Bl9nX66duhH2r11yq2J9nX25dnuarb+NdY0a/1o24dj52Af7MG1YpDTqyQH72OVW/3hM4zRVfptgHRKO++KUg/Gl0YI1b+aPh/1WMuBO+P7E0SaKDv3OkrXUlg+Iej2EoaaHR1iZ8A4NhlkpqSRpsUd09RrWqt+P8+W0vJzgp1E51z5r6yHqhxrv4KT3p6gturBr6eNnYTn//lw1E3q3q2fznaUp8Sm4aPc7MNlu44G9V3g3HAX/tLWG5tsfbRvCe1Gu6ew7eencvs2PTQySm6v/O6UCH8RRh9DOJQMD0fS5PfCO3zCJ9SFN3lz9pS7nh1avYZ3mjiqaZWg5GU50/ze9DamoyURfrkeCn0Zly8cx2ev/roCWvbwtOXhgNZvkB/+CG43HUo4MQJoSHLjfx/Qo0r+FC1Ium7viqR1+OUGeQAz44wealdsVp+YSnTmuympnasF9Oq6iiCo755F45xdMmaV1PoMYudpajml55kcaZWW7AiXSl11GB5zpq5/atw9OiiibZtXp02h32FLhjaxsNS8C/W1pWunWrlMHX8rlnFS7x5y+eT8a/L3khTN/8vKu164Cq3gGTrKgnv7GA+2uNlfOVVY7kQC1u9kIEWSNmZ2JTNZ0zGFpNQG3w+xfivqxonFDR98nfs+Hm5VKzXtSOVs0uqADNfXw/VP1Mp1Q0mHq37IBP0dC58I1+xD1uV3rF94SR9GNlUpyOpM0W/98+Xl/yTVzVLu48YEtr53Woh3mdv9/xj/HTkv8Lxl6/9Sdeyq8gAgOxgHbDQ4C7HjaOnUOr7PJKEOTaYI4jj5/zPKnH61t6RDbSgbMpmZfIoOeYDKbj3S8pg7OP3iME1J4jCD3h5XP4/Qz/KXHXZxE5DZS3iHS549LsQnK1uKH1+/8G77Ka6eextntMTyW/L4ZUfl+Pt8iV/2k33UvSLwpSS6/eff6Jy+CbVZhQnYJOvpRVG6YfRw/9fyjJiHjsD++mLwIL/gdVpFuP6ZncK2WOxEmGpmG2XiX9Y/sqCeNQ3/z/9avb3h6QOzu2/Jgkny356X+O1fhJ9QvJZVkmY0J1Sm9vcPQ38YCYqOCcDtC/6/n36ZrveM12+g1XcajSTD+mR4tmXDs2H3wYjRgNhtRbXhjUtF8wtBPj1nxT7uXP/NrxoUwcRkw+xqypb48Ust1ENZvPpKWrsHO7VyFZcmu5yTV5Vf7FMtDA/RbsorptyrsMkYhRT8OstVNlIDljTh+Az/v4Se96A0Utg9ZdwJ3YBDZjju1t0Xlts1JW7TZrQJYxiMa3e2keLR16Z7k2Q9Ne/nfe1biW+ylGCDPgX0WjFb58dof+WjILcCHYIs7O3suX6OrGaOtufB0qUf5NY9X/6yMan8u28w4S9ByydnlNjTkthf7TzsjqhzEzQTRJeiLxzVaf5ZX1f9L0au4ruBhfBG4v9xevmtcZKBMf8ypJdeKG01dTdcf7mF1aHuq/aU6DnvCn0MA9bJJk6atwYWQrkdrOrllbBZuXzv/bgwHHxvW+mEVUnnTkAdVxqB137wz+z5e1D3yw5oVIgIDgYFxM7B7fW837o48C9357EqSLER/PhED1wlYDSnLNKGqy2OHk8l00Ko5JrxZiuLnkHBrFMWb4iT6G27BfOToJQP/GXcjQ8aWMgB/iF75x6K+g3FyLqb0y9CYZbD8fNgYYpWDYN/isiNMwWBHkijCs1VKz+ILwBB85IlSnGzGz2ob5vQMPokTJpOFUAADZpcCqtIqdq8/pfvtt994ARZuy7xBj9nSOJEhv1xEP8Ptgk/NmPGe5WEwUc7CNjBwJDCAn2DaXhwYOj6qHDgRPz4dDZ1morPPEMQr5JK4UsEzSf6Lycd+DA/7S23xfuzviduirXNOH9gZThpHghccWgeulO3Z++oJlQMH34s5wjxMRGZiSgEfiWbgiVI8acA3nH/QV+LSPlwUvKcytbKjc9Hgy8FHDs1vEUcLn3DsWDv/eiytyvMyWDm9JG2Ere24bzP55Ro84XBvnCRnzFvx3JNFkBPqCAwEBgIDgYHAQGCgMQwUflssVkdX6zRDVzFUVmX0an/EYOrqyzyKOQie51a5Mkw2lKuwDQwEBgIDgYHAwGRioNAJxwtr5y/HTOIUWdbAfEN+OnGoP6doHFc8dNVDLwhkLPa/fvyZ2/4ymcgNbQ0MBAYCA4GBwEBgQBko9C6V6GDlKt5ByAmEBu5QdtMLd3EYf0qxIEej6NZjV2z7kcUFDAwEBgIDgYHAQGBgcjFQ2ApH8uz8aZg8XIEVjowhk4m+bCk4D4lK646dF19rUQEDA4GBwEBgIDAQGJh8DBQ24dixq3IBZhWz7A4UUmUrGUSVM+TKB6J3YZZyWbTgufDY8snnW6HFgYHAQGAgMBAYSBko7CcV3P/Me+7dQ0L4KGgGPlGPsv6kIlHpJnqrPU4u7VixfWcaFYTAQGAgMBAYCAwEBiYlA4WtcOAWk6VkyFY1KNuzfIj88FiGlWu7V2xv3Wui2cAQAgOBgcBAYCAwEBhoCAOFTTiSKOHLeqoWM/xbX30ZD2j58XFn7ZA3CTZEy1BIYCAwEBgIDAQGAgMtZaCwCQcuydjK6zfkeg0i/hgMReYKR6l073FnXfM1ORg2gYHAQGAgMBAYCAwcEQwUNuGIytFNmE0c0Ks1ONmwu1UMufiRrJs5fdqqCf6SpSPC8EGJwEBgIDAQGAgMFMlAYROO48/YPoRJxvX48DGiAF3tMMTu2plTZl44u2/r3iIJCHUFBgIDgYHAQGAgMNB8BnTBofn1pDVse3jeBaj0i5hynIe5x1t4y+Mz2P/F8WefdEcUrXknTRiEwEBgIDAQGAgMBAaOGAb+B5nwCpLPLNx7AAAAAElFTkSuQmCC"],["fxFlex","30","width","295","height","295","viewBox","0 0 295 295","fill","none","xmlns","http://www.w3.org/2000/svg",3,"ngClass"],["d","M182.629 183.635C213.842 170.774 228.719 135.046 215.857 103.833C202.996 72.6204 167.268 57.7435 136.055 70.6048C104.843 83.4659 89.966 119.195 102.827 150.407C115.688 181.62 151.417 196.496 182.629 183.635Z",1,"fill-color-0"],["fill-rule","evenodd","clip-rule","evenodd","d","M169.522 122.093C171.059 115.241 166.054 111.136 159.022 108.13L162.04 98.916L156.431 97.0797L153.493 106.051C152.019 105.569 150.502 105.104 148.995 104.643L151.953 95.613L146.348 93.7769L143.329 102.988C142.106 102.615 140.906 102.247 139.743 101.867L139.752 101.838L132.017 99.3019L130.057 105.293C130.057 105.293 134.224 106.57 134.131 106.624C136.402 107.369 136.71 108.93 136.552 110.138L133.115 120.635C133.271 120.687 133.473 120.761 133.695 120.869C133.66 120.857 133.626 120.846 133.591 120.834C133.562 120.825 133.534 120.816 133.505 120.806C133.375 120.763 133.24 120.719 133.102 120.675L128.284 135.38C127.95 136.062 127.157 137.065 125.569 136.548C125.62 136.635 121.492 135.211 121.492 135.211L118.184 141.544L125.483 143.935C126.298 144.203 127.103 144.476 127.899 144.746L127.901 144.747C128.431 144.927 128.956 145.105 129.479 145.28L126.429 154.6L132.031 156.436L135.051 147.215C136.579 147.75 138.064 148.25 139.517 148.725L136.509 157.902L142.118 159.739L145.166 150.437C154.773 152.984 162.15 152.77 165.87 144.183C168.867 137.27 166.555 132.99 161.623 129.952C165.417 129.361 168.406 127.109 169.522 122.093ZM155.149 139.449C153.059 145.84 143.068 142.413 138.496 140.845L138.496 140.845C138.085 140.704 137.718 140.578 137.404 140.476L141.449 128.129C141.831 128.254 142.299 128.395 142.829 128.555L142.829 128.555C147.571 129.985 157.289 132.916 155.149 139.449ZM144.22 122.79C148.031 124.108 156.343 126.982 158.247 121.175C160.192 115.234 152.086 112.815 148.127 111.634C147.682 111.501 147.289 111.383 146.969 111.279L143.301 122.477C143.565 122.563 143.874 122.67 144.22 122.79Z",1,"fill-color-15"],["d","M158.075 173.411C189.288 160.55 204.164 124.822 191.303 93.6088C178.442 62.3964 142.714 47.5195 111.501 60.3808C80.2885 73.2419 65.4118 108.971 78.2729 140.183C91.1342 171.396 126.863 186.272 158.075 173.411Z",1,"stroke-color-thinest"],["d","M259.352 172.363L85.4595 244.016",1,"stroke-color-thinest"],["d","M122.291 259.352L85.4593 244.016L100.795 207.184",1,"stroke-color-thinest"],["width","225.692","height","225.692","transform","translate(0 85.983) rotate(-22.3941)",1,"fill-color-30"],["fxFlex","30","width","298","height","300","viewBox","0 0 298 300","fill","none","xmlns","http://www.w3.org/2000/svg",3,"ngClass"],["d","M248.333 237.5V112.5C248.333 105.625 242.746 100 235.917 100H37.2501C30.421 100 24.8335 105.625 24.8335 112.5V237.5C24.8335 244.375 30.421 250 37.2501 250H235.917C242.746 250 248.333 244.375 248.333 237.5Z",1,"fill-color-0"],["d","M273.167 212.5V87.5C273.167 80.625 267.579 75 260.75 75H62.0832C55.254 75 49.6665 80.625 49.6665 87.5V212.5C49.6665 219.375 55.254 225 62.0832 225H260.75C267.579 225 273.167 219.375 273.167 212.5Z",1,"stroke-color"],["d","M6.20851 200H24.8335V150H6.20851C2.73185 150 0.000183105 152.75 0.000183105 156.25V193.75C0.000183105 197.25 2.73185 200 6.20851 200Z",1,"fill-color-0"],["d","M31.0415 175H49.6665V125H31.0415C27.5648 125 24.8331 127.75 24.8331 131.25V168.75C24.8331 172.25 27.5648 175 31.0415 175Z",1,"stroke-color"],["d","M161.417 187.5L142.792 150H180.042L161.417 112.5",1,"stroke-color"]],template:function(B,Ae){if(1&B&&(t.YNc(0,Us,1,0,"ng-container",0),t.YNc(1,xt,18,5,"ng-template",null,1,t.W1O),t.YNc(3,te,19,5,"ng-template",null,2,t.W1O),t.YNc(5,ue,19,5,"ng-template",null,3,t.W1O),t.YNc(7,je,17,5,"ng-template",null,4,t.W1O),t.YNc(9,wt,13,5,"ng-template",null,5,t.W1O)),2&B){const pt=t.MAs(2),fi=t.MAs(4),In=t.MAs(6),tr=t.MAs(8),Fn=t.MAs(10);t.Q6J("ngTemplateOutlet",1===Ae.stepNumber?pt:2===Ae.stepNumber?fi:3===Ae.stepNumber?In:4===Ae.stepNumber?tr:Fn)}},directives:[ye.tP,v.xw,v.yH,v.Wh,ye.mk,Cn.oO,F.n5,F.$j],styles:["svg.small-svg[_ngcontent-%COMP%]{height:50%;min-height:50%;max-width:100%}svg.large-svg[_ngcontent-%COMP%]{height:60%;min-height:60%;max-width:100%}"],data:{animation:[fr.l]}}),X})();function Qt(X,He){1&X&&t.GkF(0)}const Xt=function(X,He){return{"small-svg":X,"large-svg":He}};function pi(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(pt){return t.CHM(B),t.oxw().onSwipe(pt)}),t.O4$(),t.TgZ(1,"svg",7),t._UZ(2,"path",8),t._UZ(3,"path",9),t._UZ(4,"path",10),t._UZ(5,"path",11),t._UZ(6,"path",12),t._UZ(7,"path",13),t._UZ(8,"path",14),t._UZ(9,"path",15),t._UZ(10,"path",16),t._UZ(11,"path",17),t.qZA(),t.kcU(),t.TgZ(12,"div",18),t.TgZ(13,"mat-card-title"),t._uU(14,"Boltz Submarine Swaps explained."),t.qZA(),t.qZA(),t.TgZ(15,"div",19),t.TgZ(16,"mat-card-subtitle",20),t._uU(17," Boltz is a privacy-first account free exchange and a Lightning service provider. By doing a Submarine Swap on Boltz, you can swap your on-chain Bitcoin for Lightning Bitcoin. "),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.Q6J("@sliderAnimation",B.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,Xt,B.screenSize===B.screenSizeEnum.XS,B.screenSize!==B.screenSizeEnum.XS))}}function Ti(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(pt){return t.CHM(B),t.oxw().onSwipe(pt)}),t.O4$(),t.TgZ(1,"svg",21),t._UZ(2,"path",22),t._UZ(3,"path",23),t._UZ(4,"path",24),t._UZ(5,"path",25),t._UZ(6,"path",26),t._UZ(7,"path",27),t._UZ(8,"path",28),t.qZA(),t.kcU(),t.TgZ(9,"div",18),t.TgZ(10,"mat-card-title"),t._uU(11,"Step 1: Deciding to Submarine Swap"),t.qZA(),t.qZA(),t.TgZ(12,"div",19),t.TgZ(13,"mat-card-subtitle",20),t._uU(14," You have one or more Lightning channels that are running low on outbound liquidity and you want to fund it using your on-chain Bitcoin. "),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.Q6J("@sliderAnimation",B.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,Xt,B.screenSize===B.screenSizeEnum.XS,B.screenSize!==B.screenSizeEnum.XS))}}function Zi(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(pt){return t.CHM(B),t.oxw().onSwipe(pt)}),t.O4$(),t.TgZ(1,"svg",29),t._UZ(2,"path",30),t._UZ(3,"path",31),t._UZ(4,"path",32),t._UZ(5,"path",33),t._UZ(6,"path",34),t._UZ(7,"circle",35),t._UZ(8,"rect",36),t.TgZ(9,"defs"),t.TgZ(10,"pattern",37),t._UZ(11,"use",38),t.qZA(),t._UZ(12,"image",39),t.qZA(),t.qZA(),t.kcU(),t.TgZ(13,"div",18),t.TgZ(14,"mat-card-title"),t._uU(15,"Step 2: Sending the on-chain funds"),t.qZA(),t.qZA(),t.TgZ(16,"div",19),t.TgZ(17,"mat-card-subtitle",20),t._uU(18," You send the on-chain funds to an address which can only be spent by Boltz when it pays a Lightning invoice to your node. "),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.Q6J("@sliderAnimation",B.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,Xt,B.screenSize===B.screenSizeEnum.XS,B.screenSize!==B.screenSizeEnum.XS))}}function tn(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(pt){return t.CHM(B),t.oxw().onSwipe(pt)}),t.O4$(),t.TgZ(1,"svg",40),t.TgZ(2,"g",41),t._UZ(3,"path",42),t._UZ(4,"path",43),t._UZ(5,"path",44),t._UZ(6,"path",45),t._UZ(7,"path",46),t.qZA(),t.TgZ(8,"defs"),t.TgZ(9,"clipPath",47),t._UZ(10,"rect",48),t.qZA(),t.qZA(),t.qZA(),t.kcU(),t.TgZ(11,"div",18),t.TgZ(12,"mat-card-title"),t._uU(13,"Step 3: Receiving the funds on Lightning"),t.qZA(),t.qZA(),t.TgZ(14,"div",19),t.TgZ(15,"mat-card-subtitle",20),t._uU(16," Boltz pays the Lightning invoice to your node and claims the on-chain funds locked in the previous step. "),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.Q6J("@sliderAnimation",B.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,Xt,B.screenSize===B.screenSizeEnum.XS,B.screenSize!==B.screenSizeEnum.XS))}}function Mn(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(pt){return t.CHM(B),t.oxw().onSwipe(pt)}),t.O4$(),t.TgZ(1,"svg",49),t._UZ(2,"path",50),t._UZ(3,"path",51),t._UZ(4,"path",52),t._UZ(5,"path",53),t._UZ(6,"path",54),t.qZA(),t.kcU(),t.TgZ(7,"div",18),t.TgZ(8,"mat-card-title"),t._uU(9,"Done!"),t.qZA(),t.qZA(),t.TgZ(10,"div",19),t.TgZ(11,"mat-card-subtitle",20),t._uU(12," You swapped your on-chain Bitcoin for Lightning Bitcoin, while also adding outbound capacity for your channels in the process - all in a non-custodial manner. "),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.Q6J("@sliderAnimation",B.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,Xt,B.screenSize===B.screenSizeEnum.XS,B.screenSize!==B.screenSizeEnum.XS))}}let On=(()=>{class X{constructor(B){this.commonService=B,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new t.vpe,this.screenSize="",this.screenSizeEnum=K.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(B){2===B.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===B.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(Ci.v))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-boltz-swapin-info-graphics"]],inputs:{animationDirection:"animationDirection",stepNumber:"stepNumber"},outputs:{stepNumberChange:"stepNumberChange"},decls:11,vars:1,consts:[[4,"ngTemplateOutlet"],["swapStepBlock1",""],["swapStepBlock2",""],["swapStepBlock3",""],["swapStepBlock4",""],["swapStepBlock5",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between center",3,"swipe"],["fxFlex","30","width","323","height","323","viewBox","0 0 323 323","fill","none","xmlns","http://www.w3.org/2000/svg",3,"ngClass"],["d","M53.8333 134.583H80.75L94.2083 161.5L117.792 134.961C121.616 130.658 125.869 126.602 131.194 124.413C136.45 122.252 142.103 121.125 147.842 121.125H242.25C286.847 121.125 323 157.278 323 201.875C323 246.472 286.847 282.625 242.25 282.625H147.842C142.103 282.625 136.45 281.497 131.194 279.337C125.869 277.149 121.616 273.092 117.792 268.79L94.2083 242.25L80.75 269.167H53.8333L67.2917 228.792L53.8333 201.875L67.2917 174.958L53.8333 134.583Z",1,"fill-color-0"],["d","M26.9167 107.667H53.8333L67.2917 134.583L90.8755 108.044C94.6993 103.741 98.9527 99.6849 104.277 97.4963C109.534 95.3357 115.187 94.2083 120.925 94.2083H215.333C259.93 94.2083 296.083 130.361 296.083 174.958C296.083 219.555 259.93 255.708 215.333 255.708H120.925C115.187 255.708 109.534 254.581 104.277 252.42C98.9527 250.232 94.6993 246.176 90.8755 241.873L67.2917 215.333L53.8333 242.25H26.9167L40.375 201.875L26.9167 174.958L40.375 148.042L26.9167 107.667Z",1,"stroke-color-thick"],["d","M134.583 215.333C142.016 215.333 148.042 209.308 148.042 201.875C148.042 194.442 142.016 188.417 134.583 188.417C127.151 188.417 121.125 194.442 121.125 201.875C121.125 209.308 127.151 215.333 134.583 215.333Z",1,"fill-color-15"],["d","M107.667 188.417C115.1 188.417 121.125 182.391 121.125 174.958C121.125 167.526 115.1 161.5 107.667 161.5C100.234 161.5 94.2083 167.526 94.2083 174.958C94.2083 182.391 100.234 188.417 107.667 188.417Z",1,"stroke-color-thick"],["d","M201.875 215.333C209.308 215.333 215.333 209.308 215.333 201.875C215.333 194.442 209.308 188.417 201.875 188.417C194.442 188.417 188.417 194.442 188.417 201.875C188.417 209.308 194.442 215.333 201.875 215.333Z",1,"fill-color-15"],["d","M174.958 188.417C182.391 188.417 188.417 182.391 188.417 174.958C188.417 167.526 182.391 161.5 174.958 161.5C167.526 161.5 161.5 167.526 161.5 174.958C161.5 182.391 167.526 188.417 174.958 188.417Z",1,"stroke-color-thick"],["d","M269.167 215.333C276.599 215.333 282.625 209.308 282.625 201.875C282.625 194.442 276.599 188.417 269.167 188.417C261.734 188.417 255.708 194.442 255.708 201.875C255.708 209.308 261.734 215.333 269.167 215.333Z",1,"fill-color-15"],["d","M242.25 188.417C249.683 188.417 255.708 182.391 255.708 174.958C255.708 167.526 249.683 161.5 242.25 161.5C234.817 161.5 228.792 167.526 228.792 174.958C228.792 182.391 234.817 188.417 242.25 188.417Z",1,"stroke-color-thick"],["d","M189.321 97C186.935 97 185 98.9345 185 101.321V112.679C185 115.065 186.935 117 189.321 117H237.679C240.065 117 242 115.065 242 112.679V101.321C242 98.9345 240.065 97 237.679 97H189.321Z",1,"fill-color-15"],["d","M161.5 67.2917V94.2083H215.333V67.2917H161.5Z",1,"stroke-color-thick"],["fxFlex","20","fxLayoutAlign","center end"],["fxFlex","40"],[1,"font-size-120"],["fxFlex","30","width","347","height","169","viewBox","0 0 347 169","fill","none","xmlns","http://www.w3.org/2000/svg",3,"ngClass"],["d","M89 157.417V41.5833C89 35.2125 92.75 30 97.3333 30H230.667C235.25 30 239 35.2125 239 41.5833V157.417C239 163.787 235.25 169 230.667 169H97.3333C92.75 169 89 163.787 89 157.417Z",1,"fill-color-0"],["d","M6.25 134.625V18.375C6.25 11.9812 11.4812 6.75 17.875 6.75H203.875C210.269 6.75 215.5 11.9812 215.5 18.375V134.625C215.5 141.019 210.269 146.25 203.875 146.25H17.875C11.4812 146.25 6.25 141.019 6.25 134.625Z",1,"stroke-color-thin"],["d","M256.188 123H238.75V76.5H256.188C259.442 76.5 262 79.0575 262 82.3125V117.188C262 120.443 259.442 123 256.188 123Z",1,"fill-color-15"],["d","M232.938 99.75H215.5V53.25H232.938C236.193 53.25 238.75 55.8075 238.75 59.0625V93.9375C238.75 97.1925 236.193 99.75 232.938 99.75Z",1,"stroke-color-thin"],["d","M146 53V87.875",1,"stroke-color-thin"],["d","M146 122.634V122.749",1,"stroke-color-thin"],["d","M344.698 95.3022C346.74 97.3445 346.74 100.656 344.698 102.698L311.418 135.978C309.376 138.02 306.065 138.02 304.022 135.978C301.98 133.935 301.98 130.624 304.022 128.582L333.604 99L304.022 69.418C301.98 67.3758 301.98 64.0647 304.022 62.0225C306.065 59.9803 309.376 59.9803 311.418 62.0225L344.698 95.3022ZM277 93.7706L341 93.7706V104.229L277 104.229V93.7706Z",1,"fill-color-15"],["fxFlex","30","width","454","height","243","viewBox","0 0 454 243","fill","none","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["d","M141.75 172.125C178.098 172.125 207.562 142.66 207.562 106.312C207.562 69.9653 178.098 40.5 141.75 40.5C105.403 40.5 75.9375 69.9653 75.9375 106.312C75.9375 142.66 105.403 172.125 141.75 172.125Z",1,"fill-color-0"],["d","M121.5 151.875C157.848 151.875 187.312 122.41 187.312 86.0625C187.312 49.7153 157.848 20.25 121.5 20.25C85.1528 20.25 55.6875 49.7153 55.6875 86.0625C55.6875 122.41 85.1528 151.875 121.5 151.875Z",1,"stroke-color-thiner"],["d","M20.25 192.375H222.75",1,"stroke-color-thiner"],["d","M192.375 222.75L222.75 192.375L192.375 162",1,"stroke-color-thiner"],["fill-rule","evenodd","clip-rule","evenodd","d","M161.033 82.5635C162.307 74.0523 155.826 69.4769 146.965 66.4247L149.84 54.8952L142.822 53.1462L140.023 64.3718C138.178 63.9121 136.283 63.4783 134.4 63.0486L137.219 51.749L130.205 50L127.328 61.5255C125.801 61.1777 124.302 60.8338 122.847 60.4721L122.855 60.4361L113.177 58.0194L111.31 65.5152C111.31 65.5152 116.517 66.7085 116.407 66.7825C119.249 67.4921 119.763 69.373 119.677 70.8641L116.403 83.9987C116.599 84.0487 116.852 84.1206 117.132 84.2326C117.096 84.2236 117.06 84.2146 117.023 84.2054C116.981 84.1948 116.938 84.184 116.894 84.1731C116.732 84.1323 116.563 84.09 116.391 84.0487L111.801 102.448C111.453 103.312 110.572 104.607 108.585 104.115C108.655 104.217 103.484 102.842 103.484 102.842L100 110.875L109.133 113.152C110.152 113.408 111.16 113.67 112.156 113.93L112.158 113.931L112.159 113.931C112.823 114.104 113.481 114.276 114.136 114.443L111.232 126.105L118.242 127.854L121.118 116.316C123.033 116.836 124.892 117.316 126.711 117.768L123.844 129.251L130.862 131L133.767 119.361C145.734 121.625 154.733 120.712 158.521 109.888C161.573 101.173 158.369 96.1458 152.072 92.8677C156.658 91.8103 160.112 88.794 161.033 82.5635ZM144.998 105.049C143.008 113.044 130.493 109.739 124.766 108.226L124.766 108.226C124.251 108.09 123.791 107.969 123.398 107.871L127.252 92.4219C127.73 92.5412 128.314 92.6723 128.976 92.8208L128.976 92.8208C134.899 94.1498 147.037 96.8734 144.998 105.049ZM130.167 85.6513C134.942 86.9255 145.356 89.7047 147.17 82.4376C149.022 75.0044 138.901 72.7637 133.957 71.6694C133.401 71.5463 132.911 71.4377 132.51 71.3379L129.016 85.3499C129.346 85.4322 129.733 85.5356 130.167 85.6513Z",1,"fill-color-15"],["cx","371.815","cy","95.815","r","81.815",1,"fill-color-boltz-bk"],["x","313.615","y","82.836","width","110.745","height","30.1472","fill","url(#pattern0)"],["id","pattern0","patternContentUnits","objectBoundingBox","width","1","height","1"],[0,"xlink","href","#image0","transform","scale(0.00185185 0.00680272)"],["id","image0","width","540","height","147",0,"xlink","href","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAACTCAYAAADFh8BYAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAACHKADAAQAAAABAAAAkwAAAABS37hiAABAAElEQVR4Aex9CaAkVXV2VfebfWWG1QWQRYddNgmCO6CiIGrAKC6gUWOIUROz/CYm+OdP/P9f82viEmNUcCFRUVFQlMUIgpIoCgwO2ww7IjLMMMub5b3XXfWf75z7Vd2urn69vK5+/d7Ufa/qnDr33HPPdm/drqquDoNdvMTxhSPBE5vODuL6BUEcHiDumBcE8Y+DYORT4V4fu3YXd09pfumB0gOlB0oPlB7oiwfCvkiZoULiDe9eGtSCH8RxfCJMCOUvlj/AIAyjoBL/abjHJz4+Q80r1S49UHqg9EDpgdIDQ+OBXXbBEW/8i2XB+ParZYHxHDohlrAAB0QJw2AiCOccGu75sXVGKfelB0oPlB4oPVB6oPRALx6o9NJopreJ469Xg4ltX8NiA8sLLDD8xQYWHbrwiOM5QVC7YKbbW+pfeqD0QOmB0gOlB6bbAyPTrcC09P/bH39EbqO8NF1mRKoGbqbYAgRQCkAU47mOspQeKD1QeqD0QOmB0gNT8MAud4UjfvyCt8Rx9D5dbMg9kwT6OK95xHrtY/EU/Fs2LT1QeqD0QOmB0gOlB8QDu9SCI37sghPievyvSeR1QSFHgD7uGPRmSxj8POEvkdIDpQdKD5QeKD1QeqAnD+wyt1TiJ9731Hhi52WytJinFzDy3OUueOitFNTjAkcU3ZDHWtJKD5QeKD3QLw/Ej55/TL0e7tcveamcmqCY5gGDoFqdf0P4lM8+oQflrvTAgD2wSyw45F0b84PHHr9MntvYJ5RbJ/aYqHgat1FwZUNvp7gHRYWEdQdKWAk3BXvt+UM7KvelB0oPlB4oxgMT9VjeAxS9FXMTv56vPeFDDz8IAW2cspLpixdos/XWGIsNm9XiaOeL5eBHspWl9MDAPbBLLDii3zz2OfHs8fCuLDpSJxN3kDUpjP+9Gl64M21QYqUHSg+UHijAA3Gkc5N+IBIcEAVzkbfeUJq/c2z8zJSzAJEljAgJQ85qfusSLz0wWA/M+gVH/Ngf/GW9Hp8Lt+av/jmkwUHcBmclnnMRqGUpPVB6oPRAoR6QVYVe2ZDVgS06bA5Cn/xcZP1z+eEWJBl+tk0WLNl6d6WjUFtK4aUHWnhgVi844t+883T5sPD3/BQAH/i4fFvFDW77WqwNVqMJfke4zydvbuG3klx6oPRA6YH+eUDWF7z6Sgjh7RYQ4PH5iRNm24O/LKUHpssDs/ZbKvGj71glnxX+I4qj1EZ+VAD0ced9DlLAOIi+MF1BKfstPVB6YNfzgLtmwactxAG4HYIrHQZ9HDRsfhvDcaUkLfhQhQJIPK0tsdIDg/VAejIebL+F9hY/+d7lcRxeHkX1pRh8HGxYRigO6AYrIQcpoFwFqVeqI5cUqmQpvPRA6YHSA4kHbE7CIbC0ELcFhtFJw9xmuH5I8hYnkGKbzoCC68yWii2x0gPT4IFZd0sFry2v/+bar8lgOxj+bBi8GIMcf6jDg1T45wNVimuj74d7fvoxwcrSgwfih9940EQU/lleU/mcJS9/CQNAFOKARRR8vsOq2j7npThX2j3rE8by6H+4Qz447qxUgh0y4T8hv/b368pI8Os54fyHy68eFhHNXVAmhok3ZyV4h8MFCxF7ds3GmwnbBf1YmjwUHph1C47oNz/8R3l3xmnwbu5YFWIyVjkGCW1kBtVK9aKhiM4MVaIWB/vIQu8deerb3MlLwRKjzHM0CEXD/CoxsUkziVqDWNYBorAtubP3sPP5PX2kYSiyYiegiZ/6JD3JzTcwY2IP6kFcC4PxeFsw/uCbHpeF7K2ShLdVK+F/VaPFPwr3+5cnG5QvD0oP0AO6IraPR0i9dErKyX+Xm2iKFv7XaN1nKMlhE4z819wELEvpgWn2wKxacNQeeft5UVR7j/68vDhWx5gMPH+sNQw7DEoQ3ODEya8ShhuCffb57jTHZeZ37xYAGRc32WXzoUyaLjCMD6Gd8DFnWpAYLtarQFfXJFwI2t7BpN7jt/7THMntT/iT/og7GWqf4C6FbLGCjuJoTyGeJvTT5FtSQT3cUh974I03i6Dvz60El4RP/8q6RJ8SKT2AS26SLMwzwtx8FFbWq+NcLuY5MTf/8xhLWumBAXhg1iw44kfeeWI9qH/GX+0nZwF3NsAgBcrBqrjsXLW6Wz5oXCLv3hgfgO/LLsQDmBAREYNwSWOU9EhY0phlPtGhrfxxkWnS/JhaLSnMD/Ij+CobDbUIopc3SGjUh32lSwxKZvtGflLFzKpwniD9nTBWDy4ce+Dcm8KwctGcfatfDsOLy3e90FG7KIwj3NxDzjXmjx4JGRAlm3/ZfPYl+C2yWWp15b70wGA9wFvZg+21z73FG37/aVFY+5YMxnkNA4srf0DZ9KTmoL/yx2DmgB4JRi7us3q7pDhMjPiz5YBB4IgDIXAthDggDigb/ggVBwtorUqmvbKRJgdsC6h/rg/kAxc9hGgLHkIfV6LsmDfMIfAABzQ8hbRbfRLHJ8pDzZ8de3Di/rEHz/3zeP1bl1BmCXdhDzBXAV1uEiKTUAhzvZRpbw388YK3jpal9MD0eGDGLzji+H0Lajvib0dRvLcORR1wGGCy6XV6B5Nr9jxFpAPXTgloE94ePvUzt0xPKGZnrzx5Jyd0cb/S3BlaoyE7d6gIaQ1n8xbuwW0wFP32keISTQc1B6xW9z3tMhO46iY06qtZg/7dhj6As7S3P95beP7PxLaxdeMPveE8wbULti/hruEB5hMSSxMgIYj9Ssj3Q+H5n99tSS090JMHZvyCo/7o5s/LGeZYWN80ucuJR2k4AelJCEx2gsrjr5Tv3oBbBlqyMcOxv8mBi6Gcxj2cPFCWMlRxf2HpP6AhbdG+adOn7IQO6OPk9WUIrn05SB182KSPKtV6R93lfTF7RvX4op0PnnvD2P2vX9W6RVkzGz0gjx5rbvm5pLnh5Txy16cxdwjVL8hXFEBsyGNC4OUFDvNPuZ8WD8zoZzgmHnnrB+Iofr0MIy0YajIkGz4QuOGn9awDRPH55WnuWmVk7r9rRbnrgwfMx00+F7LSGDT0hInQFcaLEEHSJ+4dgXRChFLnWIqgLELI9XF21ClkW8K28hJFtIeu7Y/jk8Tmn8szHu+ct/8lZT52GqdZwse8Jpz2/J9mv8oPb86dePjeI+WL7cfJkuy4MIqPkxl+N3m4/6Nz97vkE9OsXtl9lx6YsQuO2iPnv1Im878zeznJY5gCt+GKlT+/Fgk+4vpVMRCkJAM7Dr4b7v2Zx41a7qfqAX7q0ofaEAfGROLDB93QB/FW9RpOMDLEwLPFq2snrzFDbC2iNCdD20+ib7brqcrL01ceWl0s32u5ZOcDb3juvP2e+cdheGF6WS6rQHk8qzxgC1R9ysfsYm4T5lnr1eXlE2nWNJnx8iRNKw3vUBp/5LLDwnrluCiMj5c55LixB+46UsybS8XMVHgpWEZaCWeOB2bkgiP+zfmH1iaiS+TUJbeEkIJuEOklcRxaWloYUtzud+KyOOfv9HQRVoOLjb/c98MDnNZs0YcTu8XBru5iIWi9NF0BEDJpnejB6HtRds1SiuVIvjTqSZjVF6mlujsGAPZJiWyLY+KEWXld2R9HF4w/ePfKOH7Hm8PwsxPsr4Sz0wPMe8JOrGQuptlOjBBSfLwTqcXzyJWLyvgDdz8zrITHy92k4+phdNzYg986WlRdEMn7bDCFcwwRFq9V2UPRHphxC45407t2m9i6/TvimKXpQLIB5c5p3hV0d889Sd2sO62dnATWV58y58psbXncuwe4wMDKwk7Y3rSRg5JkJ2jGLad/O2PLbORaSNBj0oSd32jlo5f8dAeIgogDs8gDEcxrn70KppO/1AOiaI6JAOZa0tbTJ6GhAdqyDxyjONV9lKSs/XL8e2MPbFkon/5eE4bn1LV9uZuVHtC8lFxhDuYayVz18q2b/J+uRzh2PvSWA8OgJrdEouPltTTHyWLjGBlTS+SWuJrJz4jZ/G/ygbPfv0rdxFMShtYDM2rBgUtuEw999+syIg+CR/VkILM3TwbZkws4rPBkYZ+s9QQgFRzYMtC/Un6CdK7qC5BpLT2DGu7O0I0RyelM2ml8kvYIlGyuIdGkWhClJYRG/uzr67M5ArHaXmBPhSsPQhUmUhN9HD4F+yW/zxy7/5v/LPpd0JOOZaPh94DkB/OeUJXOJChzNUkvQZSWEKSVEszkbP4PYsKXH85cOD6++WVRGB4X1oPj5LcFjotrO3eDKSy8xszjBIrundif8JfIjPLAIPKvbw6pP/Ldj8kq4ZTk7KODUXbM5MwtFczx/EBAJTSZeeDgSDjn4gypPJyqB5KYiCDgLSbEpm7YjhCNedkCopSOyZktudx0BAY8+QTo+nbV+DYAlDEIGbgCYTQcEfdvu7EN6pPJvJU91IsQfMBb8UOmX9iO0NkvVv7hzvted9f8A75WPijn+2u24Yw7YZ/zvxYWf41jorbtMHmP2TeR+Dp00+GVjoXEvkwASSdsYX8QcUBl2peHQ+2BGfO12PGH3vzWehS/GycCLBq4cCCEl4m3quc5CNDOSxGucvwyfPrnVg91lGagclgG4E+CkkDgWgjlQHkcNNzxoy02DZqDPs56E6h7Q70+0I+e8B3kHEWYtmqJNenXZI/IVnvQb6q7YVanMsCjfGADr5Um+Z4MyGu0P/jo2MPnHsG2JZw9HojwtVjEe9L4azKnOaH88EGaT0luMd/y8r9wt9WcFaKX6NG//Pftb3mNpHDryg5698CMWHBM/Pr858oPav0LzGw8V3Cg2UA1N5CGcWk4IDYsRAi5OJGnky7q3X1lyzwP4DMU4uSmhwRaNGxatUlS4qECDOby64QlTG4C1biB5jY0T2Kpshp3eGU0ir46Wl8f7XDQrCaBoJh2BrE3nVL90MR01saurcmCPN8GH0ddXn8mK5Xvy1B+z36xc259fOJieeBuRl2ZNE+V+8k8gIk4N1+8+GMMTDX/J9Ohn3WwJdceN8I4YrrJf9/+crnRz2gNTtbQLzjiX5//9Hhi4luRTLZ6QpBBx2RFAioOqDgOdZpWD/JEBJi3SbKPzwmD/1Dmctc3D/hnQ5tQbPLRCUhiQagxwQSE+Lg/rRMc0MeTernKARzP3yTP4IDmYgwjgLOAB4X8yBejudzR2pRfDyfZUTb7Ux2dTdaT6U0RPs3nZXu1qyv7g2N2PHjHeyi/hLPDAziBal57UPMF+epozHvC3vJ/sP7qf/7b+B/6E9dg3TxjehvquMUPv2/BRG3i23I62CvXo9lslsGpoxNQN7TyTybErV72V4RP+9KGXNklsWcP1OQSR3JCdQsBHkMo8NaFdRYjC5/gyaHheqJ2sQWeFuLWwPoSDqeHTt6CA/o46yFK21hzE0uROMrknPIKje3bQYjQNkByCztzCuih7JJDQerBX8aPn704t3lJnOEe0ICLDUnADU8OBdF/GwEwtpv8B3/hRb7A3WocoO8p57/YX17hKDyKhXQw1AuOiejxi+TKxjE6wjCs9ESVnjyyyctEbpXs/gnG4RcV4tVSqJ2Yxcl6gcFB4NkNk6fyCNSJFDHGv1sgZGOMuKEAGm6LhzRHUIscgQyTTYh+iLNeuYWPRXWRA+qJZ4asHZ4dElzqCPP6N6XQMYSYHELK9GFv9se7j28P/5g6l3CWeEBzFjvkGOc7w2mh5VySXkLuLv8pp3BYaP4H8sWXssxEDwxt3MYeOvev5Cvar8OAkvGnG3IYuMvlZOK3B0ndvXr9xoGFonlwWltX+9i8/Q66yvBy33cPuDO6LgLd5MlJ1IcaX/C6KPN2R6tbICpPeCkDehuNFkAWisls5udEnvZJXsBm/kb57AvQx61PdOv6BySPg2zjQ79P4J3aX69H7ymf5Ui8PgsQu6nSafyZQzCceWhOcPnXMv8H5KqC8x8P2ZZl5nlgKBcctYfeeKY8JCqvLc+u3u0k0fFg46ATmP2Th0W/LK+MLv47YjMvJ6ZVY06erWM8repJ540TumlD2tR168L+PcfuX3P61HssJQyTB7qI/zCp3TdddnX7++bIIRU0dAuOsQffclg9ir4it1L0AgUWCmkhDujjKUcDhlU2ilttN8Bg5ItWWe6L8ECrBUO7CaW5nlcSGPMshPbMBYTa8LT/ydsbv/H4uMnM9sV+CJs919x/qpNq2qRfu/rW+ssYOa9Zg5Iykz3QnD+t4285CmvTfGzffjDegR6+LuzVp/l463rKyY5FtijhTPLAUC044offtiKOJy6XRFyCMYRbJYSKi2cJ4WQ/YRVnkmNSx4YlC6F3f0W+3/Czeft9cQ1klKUID9S82152lQrxwWbPQxgELgFSGqCP8zkHcBgfsObSlAPCQlozd/cUpA8KoI8bVWsc6vTXI7PZ0s/wIuwXv7w8jt89L9WlxGa2B9KxMCz536s/kftF53+vupXtps8D/jcYp08L6Rn3o8cevPtSQQ7gkxZ6PpI6QijYiGOSt5dVo86ODOJYCR60AYAHjsKLQS5LgR5wgdJXoQjuXomiHfoxtEWIfa21F200+ljIMDM0yCKJnaAOs7dbLWRzBHXUAf0TB0RpV69M3i7LX6T9ouP8nQ/85kTp/jpPhRKdgR6I8JsiLue6Ub/b/A+C4u8i41cGMeRQisp/ueVuHZT7GeWBoVlwjD14z8fl5Uwv1kz1HvxMVw2WxHZCMB8Tb3VyyEYCfJUwHJtTCb6arSuP++0BmxCw5xpAe+A84aDWSVzc/NS0aGRb1ifChCAn97rE9F91cvMnoITZdQ6pjsYqQsyIirsVEfGkXtpCvkxwc+VHslbIBL+b4PuKxAPzPdZoII4gi9QEcQSt69F+7T+WMVMuONQVM3mHS81IiWy+MHcAtWQJyB1LIq3GMPAOHZ6OLydlAMASPGtP3/J/qK7ND8Cds6SLoVhw7Hjg9b8fx/ULbOZ3IwYObsrWyb0uF+2VgbCpvYxEuUnz7XC/f39yckll7VQ94J//fbw5qE0zqHRNmnFDF4ushxhhYuGB35qWHzSL7z977x1x/WR51Oj8MIjk1oZO+8mHVN9mH++z/dJf+Bz4pyyzxQONkx7znjAZCAlB7PZwveIhBF7xw1xIGjxEetHe8nPex/uV/2H5WypFh7AQ+dO+4Jh48PUny0Oin9Ixg8zEvJ1kKHGcgGSxoO9BkOndXQEBVR6c09OTMigGScZvNG8P3rBysUcp0cI84GZBhsMdWojkwIWIi0NCqOPjWfU4eQIOavLM6oDj8BmXPibgG9jG1r3u8CisfVqutjwvO8HryQC2FmC/SIUfn6mw3M1oD/hf8+w0/2FwNt/YlhB5x1+MHZSD5khHE0x45H0B+T8oW8p++uuBab0wFT/65n0narVvykQ9N1lkJIsNGMpZGpALC4NcUhAqt2uLWyfYdDg6qLLC8NF5+7/6GvCWpWAPmPvTyQaBYrAI81RoDLmETQgqCxDTaAqTSTVPzgBp8w762q/mH3AEbm18QtWznekNW6F/QfZLnu8Xx2fLa//LMis8gFxBAdRNdglszn+d64RBoRsrwJP2efmnHRS3m5DlxqT992H8F6d9KblID0zbgiN+9B0Lx8Z2fkeM25MG6kCRAw6eLAQfeXycfPqWfRlsgNhQCPUgir4UhufUFS93xXqAJ1hMfjrpYRK0iZGQcfMheDXGbA8tgQ95wTtdFh70rT+W50q+1qB/8fZXxu6L9hty95TqtfMAvpDncoUwyftJ8h8PKaMAYsOShBC4jjUHgQ+scPwWn/8DM6nsaOoemLZbKmM7N10st0OebXdQ0oGgg83ZZXUYTEawwSRjCAPIFR8njRBfodXB527ByAOjF7OuhAV7gJMbYsdJR9C8p9Z9TRB/a5LG2J8o8XQ6aob1KfUFixe9bcfW0ZPEjqepXQXbD1/Uw2CZ78OZiss31So7fr36KSPj8cpaVF1UqdQX1aPKokoYLZKoy53UyrZKpbItrkTbqlF129xKsN7d2pqpJjfozbwnTCo5loSQzX8dC0LnaGFbQJRs/QC+pOI6dhqZQqK4kfs1/stfUzF/zrT9tCw4xu4754PyyxRn5wyHBv9xnBGikgMrYfQI5CNUfncgC4+b5h9w6d1JuxIp1APJQpDxSeYf+RQmMeHzF+ADTn7irNeJCm3dhKVt8UlO40rhhZrSlfBw7y9v237vWR+V0+PHtSFVLMR+U60S1WfUD7lJ7MLxB1+zKqoFJ8s8cKRYcYDE/8Dt627ZXwI9b1xzIg7quBYZ1oMIb7FG/MMoqEd1OemGwURcDyaEvm3dq7ZLBt0nGXGfpMS91aB6SzCneuOC/S+9X1rMoIIRkI6FzvLfzGOK2ZGe4QW1AaMf1oSBH9oG5RCOZzHJioM6vvsw/pESZZl5Hhj4gmPs/nPOiuL6h/R8If6yEwcd1zhYSE0hspY8oBK3wdW8gPHrw4tSOSVWrAcmJDIWk8YFgkQIH3Hwn3wN1RYbCb836UJHx65QdUYKqAA9GsrdgiVzPr9jc+0jMunOKdp+nEiiOBz6BceO+16zX1yPXytxf/62ta8+WQK6EsHTE5CLOY79k67WW7pMFv+FMokcLoIOR8bV5S+cqAfb1r7qUfni0I3ybYYfLawE3woPuuxxyBveYiOgW/sRf8ylXFBYe/Oj2srFGs/QHd5E37b2LDyPdHpWftZ/GI7wuw5LxWU8R/V5yXjG4kKEcJ7v1/iX/v5k2z1nnZ/VL6uPKtaooCkLmuqbHoqm/2/RwZd9ymo63+9Yd9YH5TUq56FFUz5n7E+clfTfZv4TmbQJ8hlrQJR+2g957eSDxy/UzamTb381+OeFB377n9BuoAuOsYded3h9vP5l1crXOsGptsF845HA1sAmczjJ+M35ab15TwfEjvlx/PWkmxIp3AOY+FA0JoI3xsybgBwf+cGob5N1DRozAgJtAOrAdXmgHQ3RLtzz0tFt6866WfLyxELtF5t1DFT1GsAQecBUGZWvDlfqE2dLDF8vJ6HfERjKlR8JcZ/i7+y3nHGZQtlh+BRxzjlygjtnexB+cnTtWf8ZVsKvLqzE3wqf8e1NQ+csGQfMe0LoOGn+T26/mcgxQmjUTvZ7ie/kypMUjjngOZOyzr/JeG3UuLD8D4LdRL/d2LdC1dXlltNH5wmlY+dKxhfUuBIGu5GlG1iP4t2lnwPQhvMYIdSQq3iTzH/WE3Xoav5Dfy4e/bBf9Xe+sR8WcfnXQ/x9++WJhhVm5QAXHPEjb165c2z75TLlLOYoglJcEUIhTkSAVhAG4AwH8U7rnZggviw88BubeVTCAXjALQIZOUL0nAyOTtTITnCdtBkCHrH3Z2LoibSbEKr12/5KUNkyBCYnKoze9+qjglr0l2Ft/Gx5TquqNie1/bdfHOpJz6BSJ7VV4TlV7sKcKvdfPiW3YS6uzhn5yPz9vnlfhnv4DjvJ/zb269mOPGGnbxqVSyLiuOycDE9zFlZnUS5hxoOMDCGq+53/7eLfaD8UkM2dQlRtwQEjd9UVOnZdZoH9tNmPVT/in57P8ZbvARS8tnzHztFL5amvZ2D1jinAFhuIPRYdLonxkKfgyuMe9NTVvtORiQqIzXj99ilNebC2NL6LBmBm2UWeBxAkFAY5C1mnTBZ7oK1yQOWwDWW7tsME5OE+u4RPHbN285i2OOWZ753aj/FTCYdjwbHj3lefvG3tmVcGtfqtEsHfk7FXbYoX7Sbsg/3oA37AnyROAoFr/4TgiwK52Bn/QX28ds/oPWf++9h9r8UzJENTeol/N/Z3ZSj85XwH6OPqV8QQhdCOGvesA8zbwE0eQQu3H2dT9AeIDYXQjrrfT3YWpW15tvt1rtdpt9/XSXA/5j6exBJ6s02e5zJ1A7mlsuO+1bh/8yJE1r+iwTgTQl+dNBLFWUMI7YGbFeaA9PIsyBgfqQO0t4fnHXDkfwbBNxOpJTIID1jMONdrXHK61QhJJSCKroalKVfFiDFX2VovdRpiE69thnMXy9tsMUlbOhZpfxTWp/UKx7aHznxKPBZ8rFavndM4Qm08Kq1FvPoS/1bOlcTQ/JHc0rmCiSK6SGRw5eX1ovPrtq494zOLR6p/NQy3WnrK/y7sryVXj+mMfKiPfIhcxs5Gp/DqtXY40CiYr/EQL+dt5Rc28kM1pQ1Z/Gm15h9sSDRmTRdQLwaZgTPd/ux4YewYz57i7105mmxt1oXHW7PKvex3iBF/iISEMQlEJuLfQeBaCPNEuqse+Jiim3pDcEDFPQg5wiep9EV5R4KOnzyRJa1YDzBRGaIsRD5Y6Cw3JCGEoomB5LBpwEHjS0M9WaoUa1V76TKvLwQXdEbJ2s3jqdoPOfNrizZqJwPeyQvHqqNrz3hvtCO4S8bxOXndD8J+5AH9KUnjfK4TgFMpzZSsPvKJsiLz4R9uq0V37Vh75hvzbBgELdY7/aJnl/kPe7qxf6qfMHW+Rp/QUzYUQj3I7LL+ZpwI+5H/3dif1QfeM5rZklG/w8PWp5dsf7SbcLjspw8Im81nrLuNPyUVuuCQJ9OfL6vfT7IzLq4BsamzHQSeHWzgAE0hcC2E7tAHXEkBygbO6rzqF32WEh+MB1olZDZhJfw6YQH6ONtnIXLBZCC6k+TCYMxs2YvcPlzp20pGnwbct9nHUZe3Ze2XNr8OD75k4Fc4tq99zdO2rxu7UULwsTCMl0D3PP1hN232cdrmt/Fx1mdh1n7I9POAfbGdL1NxUZgQM4TyAUbRXrUo+rIsoC6P7z9ruckd3B46+bpS/yycqv2dPsFBy+EjFPWV7P15W+dxqUsg+LycBo5C6OO0y7fZx1mfhVO1H3ZoP7QI4wx/0HUKz15DZp7+vs0+Trv8Nj7O+iws0n71gShJqPqKbwjVd6IkYRJ3oUH3PP3R1ndrYQsOfA0uqsffkN8ImCMWwAozxEEY5SuouJhCCKPU2YSQIaXBGe6KB+576b0v7QZXP8AoD6iEwQ3zn37pOm1Y7qbFA4yXxjInhk1KIQFQAGVDUhMqjkPyCD6sJY7CQ6Fb0faLS28ftA+2rjvjxVEw8UuxTb554sYlxqmHU6fi7Xf9iyP8vti/TQY4sknBUsfmGaYRobaJ4zNGJ+o364OvqZDBYVQGULZ2+e/b7OOpwuYf2t/pFY6K+As3SvBPqC6EYIpU1A4s+inO/n2dfJz1TbBg+038JPFvUqgzwmyxX2MtJgMy7oRJ3HuIP71YyIIjfuxNi6J69B25TLgHAtwyGM4C1pMX0BIjhaYwLQX0cVebWYDI9/AvtppyP1APTMjnqFZB9AMruC4UHbRFo2QD4ojFiZ5ERHMHQSLO+oHa1WFnMrHKLeH4eblJ3G/7w3CgC47Re854v1w8vFq+3rqHnkA0NhYrjQnsQ6AAfVvpO58meF/ir4lhHXAxCohNVXEQOHROIRLKaNba4XF8YFCbuElsfQPpRUP4gXlPCEWhK6GPa4USrJ76tbO/0ysc+IFMja/6Lo2nT5uN8acfu4aIBTbxVwKBoxD6OGiyDWX+i2o2Tswextz0TWkdx99bZXgovDH1IkqE27du/aIMlaPgeFHPApAzODQwXr1vgI8rnycLMimXUHm8GUa+c7994dLdLoX4skynBzRCooCLmuaB4IB5OdFWVY5eN2Lb8g+eYdu6M0+VXt13z4u2P75lUBbKw5V/LxPkR+T2gzxw6eKpndPGPE1Y5/j7Hn/IRS6YfJ03BAf0cdabhtTJNQXRTyfBpe0CuRj8lW33vOId1mZY9lAUhQr3Yr9J6Gjvj1E/drMx/j2fDb18anIq6wBl833o+7apXStCP+JPnaSPrDh0SxpwX0df967jD2EFfC12+7pX/Y1MSq9tUNT6EuXdwzX6CdbDWU9DAX2c9WokDlzwlO45r8E5wTfCPb6wNWlaIoP1AGLhx8P17pagEkH7A5m0fAUZX4s5Hq6zFngg2OVQfsPpo8bx/1DbC7ZfrqLUFy2Yf9UgDB295xUfkZuxH2CsWsbPt9nHnZJt2zcZ0z7+k+WBLTqQitKz04dQu/J19HGplEM8DfaZrXe/8o+a1BoYof/2T0X1tvHzfejjrtO27ZuU67/9LePf43RCDVV132Yfnwn25+ibDUfb+PkyiHsPcfS8pssqguPt9575GgF/C6VMsRSmpxXWmAQ/WEwEQMNTqO3VAKMpD3oBb9Jf2os8en6x9VDup9MDFkdM3hYrrCOBp2tKwxE526CtnxU4Tgu/vgZIPK2dfmzb2jPeJva9kJoUbP8N4dMvLfwbKlvufsVHxY73Iy7mc4P0PyFt9mHB9ktXqU5p3rTOH1+3PDyrrxzLK1WiTxS/6Og1//trf+ITOfmaL2zcmm/TvhBzxp0waeshWX/2f/ynOvUj/p7qHaP8bJzXYKbZn9UXPmUeALdYG2TcCSezn3WdPkNE/pZw9L4zj4xr8ZfkzYLyVfI0BCkmTbFg4G0PHFr28SvdYoyapxAdYQgaDUcp3iDTqnSP+2H2Pfb4gfkHXn5depnEYyrRgXiAiWvhlgT1gubjWWXQjm2ydTi2OoN59dNJ27H2jBfUorr+FgNSHYW2+Db7uHGl++7sD7+dtiwG23L3K98eBtGf0h4blejLDMzGIzPEC7ZftMjNF+d80TLr/3z+1HfN/My1+OOjd52+bvGqK3+Qcvcf60w/6tS9/fi1mY6KfBTF5Z1sPBl3wtkU/17fNKoX7uEsKVl/ZfMJPKC1KkXHvzP56XydtYdxJ+wk/r6tfbnCET/6+t3ljbnfkcXGIpzwYZRubnUkR/qHjoGlhTigtSFEe0SPEDjqEpjHDw600XdvuAxIOyuxAXlgQvpBIloypgsIjY2LaSvcbwMcMSfU+KsNyIXhKqP3nP4eeYnUNaLVPNgGnX1bWtmbpfttaDehb7/QxoKRyleL9MKOe05/fiWIdAEFHagHIfSB/oS0mxB8xAE72fw27IfQt59288MNoOHwPRKHeoETfUMXxsQg5RLmy2dPcTWuBF/ded+ZzyKlnzCSy86+r6AT9SLM1w+2grcz+7vV2fpu7S/obP61+IKfdvh4J7FnO0Lre/Lxb7Hu3H7TqZU93XqH/BY76k048+xHLFEIzU+gwJa8eMDWdvFHe5YpX+GI43fMGV376Dcky/aHRrjK4DRD5hmuSqFLzUaDOFQ6aSBISW0VMbZ4YVI1idOJRNqzkfCjRXVu/EWVVe6mzQOWiAh/NoZ2QmB9VkHSCVGfh/u0rIxBHcuLr+Zuu3v7OfJR8M+jKD5C+3W5Tv0KtP+LSw64/LdF2brj3jP2rdXq3xQ75vh9tLOHdhO24/dlA2c7Qp/m43496H5prOOEYpBTESHa+fzECX25Ms0sm5ioXR6vPff4ot59wn4Ju9LPKeu3TeZGzpHJ9eMGy5oP5Ef28Jct7eLJvgnb8Wflsx0h6vNwn9ZKhtFpQ2fxz8rq5DisyJeII7tyRL0IZ5r91Jswa387e9iOEPzy8HUiZsoLDlls/LMsMl4AiXoJTpK04dqCP7KTBGbwbfXqKwfclEwTjfUG7QSm/enJzN1GAQF9heH1C/a/4n4clmU6PcAYQwf7hEltGE87Bp+3aExw0NIaO4KklCb34iryfMHzlLHFDmdLXHHhWZM4YDelEtTnxpVwtyCurJCHJ/eVtieN3rPtBLFsQZLWKrBBQ03JfttfCcNoZKTy0W7075ZXFhuflzjtnvF41/bY8C8o/h0YxczKzZ8O2ufY/8zRaCN8X8C3V/zc6SD/O9A/a38HTTIsvk7iDRx2MZ675U9HdzH2N1qTMbXHQ/nWlteysYeZb//U7IH9uuZwHprSgmPb2le8Sz7Z/QEHM2T6eM5g1c4tCKZB48nHadUjUFmVcK3odaaKkKWn5EJVf66yA5lYo4KXdzmJd9q+XRe+fFmkPb5k4cI1g3jor51exdS7TGDGMeggM4e14wwhwy9PBOkspxBNXT2g/M2Va1o/Bs5Faiocnchiw/WlEAQRRxoOmwp1s+Y2WkR+BD00MbBzOkOXpuLqOBLA42xQ1kx1IqsFf579ssT+4vwDv7u2qes+EbbcffrvyyR6iukrCtMGJWQdlO00YyDb0leZ6l7shz81D6Tr7CeubPy1W2eC2WPm0N1Z7ZPcZGgZO0AtWDyFb5dv7Xx98TO/d21T+ykRnKLsU2TlxX8q9tOK9mrKSVRD7emkjWZz/Dv3TqP//AUHZNBHQAX34smpI82/yfn7HX/0yzHRaIM7ouqAKNTdy/90zBpL476FPY6p5wWHfCf/BVG99k/UK+3UpxAn5EQBpZptsRMHHEJ+QBoAfrRPr2gQBzR5Ul+vv11ODm/HcSy/Rw0/1SguSQQjZCcrdFsXfnZPHNDk2Ykt1c/o6Z66ugaZ/mBLLaEFwej2bcHWu1/x9cqC6vsW7Xv5o6mc2YA5p6srBG/lEvUH7PX4EQDyg04ZwmV5b1fGtJXwgsaYEDc+NACXFEJ0A9x1l+CsB29DIaNBVU0u4TFHrD/qhYaN/Nav0Cgf1X7/efyT2F+phOsXL5r3Zw0q9vFg+92vfGotqHlXTxrtmW77La7TH/96VP+3+PGzjwj3vHS0b+5n3AlVMHPH4jBl+zt981di1K4e/8QRHSKN/ur3+J9y/KGeP/8Q5/zUZGWjPb2N/1RoTw+N7rj/rP2DqP4NUYVXqp1EXzlOCgYbHQU+TNop9HGbtH1ZqcKTYTzpAPYmz++zUYYvu7UOje19m32c9pme0Tn17RM/ie89e1lruTOtRpZVjIEHcZbGH6HiSoHfuMFW+hGshreSp7zK02F7GVgqEwPMwylfNXR6mn7oIdVHlrRQUJpKXqNGeAkTGWjvNkGsP4GKoz1o7s+kQyY3SAduBXJQKE/WOu8Ln3bZBqvt/34invhHeYvoslQ/05A9Tbf96jvnS+DqK8LEb63958fcx+lftVvk8Q92A2dJ7Jdn1rZt2PpXpE8d4kMT+yEUitpmUHHoBho3tFEetGE7QmsH3Whf0OFHTJNmcnLtl76Y94Tsw4fQzddXZYHm/qCz0mTfkf4ZedqmG/u9MZ+Nf8OPfsBpXRTfZh+fSfar3ohGQ3wsQnRFkv/Cx7gT+nYTh/14IJql6wUHXlteGxu/XAS6+7sQxWRphOhU1YUBHp7ysy2gFOVx0Me1EtWmOKCPu2o0JKfhrk+V2w95Kp194IC42WnHKe7b7OMpXyJj/9Hatn9Q8bNk587nelIHjsGNjbg7VA8CT7wmcVIcUDatc9BvS3kQbUIV0zbA0FbbSyNCLPqIJ/WOF7LzNuX35IEJtIRZ6vz+IQOFsoAozRGIu8Pu7A+DLyxe9f1LrIf+70fvfuVRMiHoT8wn+nkxoN2Eid1qlOlDlO37aj+6EMHaR9KB0ax3Fxs5gI7Y/Jj7eFLveCkuC1WGJw+dg6YwDP5YXgewF/ueKkzy3usP+lAH4FO1Xy6xdlToB/YNmNjt7LdAmE4Uqjo6Up6+Pg04bCYchP1qj3RIe7Rv5AkNmCKkHEDFZUcIhDggtmGynzr5UP0FPacQf3+R4eMidvIinYajm5/4sqxZ5Il8uAqF0I6627MtoI9Tik/zcav3Fx0+ztYWXTmiB9EHcO0rT57REueCE4MrKcQBfTxh6BLxZUQv7rLxULPTQ+pL0ZQ+lWnLcED5QzgINUyyS6AgWuegthDBCVT3yZGDqEFbQuDol9BiCf5EO+UGPwtko2gfHs76hJUiQNAmRlBUCHZk/SsufaoPUAfc/aluggPqJrsECgI+vToWxj9Z8qyl70r0KACJ4trf4T06EE39iCfdmYFms+KyI9RWaQuQzVYHaTchbAOPg4ndQoPNukBAneDUR5oaDuj6JUQNZBACR/+EwFFHCNwKodYqif3hAHhSiAoUOQvj8Z0fSOqmiEBPtZtQCOi7v/Z3tuLoxH5zCxwBw7GjpwwqRXyeQMXlmFBqNDYODsZ+65/6QnNngKE972eH/RYti6SPJ26BmShmriFKa21/en0j6PQCm3YRyLsGLpRkebUdSZ+SOHwOgjQfWjLZBAo6VCINx8QBtejIEi5AFJFvow0tc9oLH3UwBtNH2+XxS49wIr48i0KcjlV90KXWYqdfs1WYkDyEfQPmFZUnFZQHLtLAT9zBfUCbLaWVzVn76HtCTRIwOZeqb5BnrqHFzGKXykr9TzmEJiqtt4i2zoFm/jTvtC6b86KYxt8pqPoKY6pvGme0zxbqSUi7CVVOHKwJ5yx6TRheOp5t36/jzfecfkJcr50BeYkugjfZMwD7ZU65TZT4mSx9HpdPRL+Vr709XonDqiizRxQGe1biYC+ZxE4Sv68y+9P4UnfCZnsmnwOa+dvFP3zn9nWnfXThQVc/bLr0vledaYqD6v8+5n+XU/60xF89WJD9k41/nhe6jqC78o52TePFo+XJZZ4SctwT9jv+k9lP/RJdPN2hB0rTOU8q2s1/Fe97qx3e0QuCrXee/to4rn3QPgBZNqjy4mwGClQ6XLXjgdNWvy4rOL8228QvA0uLg9rcG2xW6e8dP6NjjT2Gxh7oSEJz/iT6Z/RJpx7rt5/2i6yB/QiX56DCUF5xwoJR8RaLyGRB2aLelhqIGJMICS5qu8MmA1AJWYwdcSefsScEH994q7La8UM08s3v38Npax/tvzWszj11yUGXPdFkax8JYX3C3iY6TfbLF8puFDdeUh2Jv7fwoKs6OnnvvOcVB0zEtdPlm3LniSuOVXcMOP4y2c6r1cI/kr7/Qvuf6i6jf7/zXx6h70jDyrzqH4/U6+7qjZfgSeL7tFTk+ER8thz9Qx/zX8RhxLn+BMBF8vD0x+eMBPpSurT3TjFfd+JhMG9Otbdno0aq/2teGH0i7Z0yQSFOmHINCpOYnCQuuxj9cd4jLHr+kx9R/fXI3MpFtLWjBcfo3S89qh7VvmhRF9VdodKEIKe1lhhKIzELJQZIniQmYPYK6xSCnuEnnVCbsg9ln/zTDPUmtAUIUtuSA3TSVHamA7YjRLXXvdkGGolZ6NsTB9eo+Nm2o/GEsM/Hs/aa61vmhHpYFw/OmQBoQ99C3mTyUd9NgSyehNGOuOoAQq4CqLBCXQhB9XHHloAG+8Nrls5feE74jG9vSuoLQLaue/We8fjoWbmii7Y/DO6vBJU/W7Lqqm/m9j8Jcf4zv3efVH9STvqf2nLPy94YRtGHJRpPndS/k8jLrerI/uA8eQncB/tyBaoh/nkauXxkwuemH4hTK4ufceVjvUjYctdpv23wP3OdEEJ9PNtJ5/ZvmH/Q1euyzafjeMnB318v/WIbuhLff9by8Yntf9KzYh3lf9MErN3JFLkhrMw5dcEB33uQ/bd9hmPr2pfvUY+C70iDRUmiQAkmDaEw+Lni4+zMJmccYUBwUBCmXAnmC/HxhCGDUBenn66yBQfkiptQWzbxm124RKSXiYSJMI+/gSYHvoo+rnzG7NCM/TLpLlm89GMp3yzGfMcIrv51kH73oTAYD2Ll4eSBp1QGXZaRjza2IGF7uRivcvJzgvmR5IzqJm0gF1uTPMptkTPUizCjn+qufVh7s0WvI3546arnvqzoxQbUqo+Pni9W6DfOBmm/vKDxn5ZWq4csOaT7xQbdCSi3YOJlz7rqy0uWzX+m4F/UOvgZW1O8+h9/+VbPnpvvfjJ/wabKtN/JVRpRtXmzXLUc83HyQrLljOsDNqO0sN8qi9036JPtKqOf8gqN9mShb7OPSxTL0sYD8aNnLNy6c/uVklVHwnfmv/7nP+PCuFtMw63VcM7Lljzze3f6ak664MBry6OJ+jflva37qcJIFg5glyRI7CRJZBGhOKCPu4FE3laDQRX1Bh36Ig249GT9Azr5hMrn6ZT0AZ25QQZwQMW1gdAEygadCRUXHkLjd22dPL9P4PpHiCPigLKhb0LqEcpbcQW/QF4AtkOkz7oCn6Cob3J8AlfCJ86lTRBtUcfCq0+APs569a8cAPo469tB9kV9oL7SYIaZksJ2wrRJ9/bLPZ4nlyyc+5EwvLDweVV8hMx/O00ZlP0SnP+1ZNU17w0P/v4Y+54qDJ9yxXa5UnJ+UAk/PfD4R+GU3jyKiZg550P4hDEx3I6Kyn/00c9S1Pif9MTVTwNmqCz87MKWzTsvk3FwIufBTkxhrjEHe5n/ZNE/Jm9DftWiVVfenO1z0rhtvuu+T8rs+rxOTxYyibjJWSZZD6fyMBx4q8kgayz6VX6BmrgQK3/4x4YlAqGPs14dDZZWJx+hawF0uhGyX0LVAHLwB+j4CVV3TwblEKocrw3aoch8/z+XPevq7+vBLNo5TyXxg/3qIw+auS4GLmjOKwyh+VsYKU99jyPxXwPuONTPgrM/8CjN8aNP0FggF4XyiSvR0UlTHsjBX4fysvpAFmhpoS6AkIwSrdiybXzd5jtOex8mDiUVtNt892nHSp8HOqu0F2qBA+Ksb/C58+Nk/syzX57+/Jtlh177wSJM0qsdq66+oFqpfJxxJ6SehHn2+TQfb2e/rNpehKvBvduEtaXvbRwZJYVSn8k/1Ys0aZH1N/iz9veuY+ct6a+sPpAAWlos41NrUWN+SO2mH1L7vVc7pKJKTD0QxxdWtt616RJJltPy4l9E/ieuD+XdmWHldbLw/1FC85CWC47Nd5x6QRDF79DQY2LBhkJoB7pHOlhK4LB1sqS1wFCcTLZX2S6pBOdAATQcD3hKK3eLRHsFnkiyvk2uL1sYwCO8hCoDump7tGv+g634A9TNGqsM2/l9KKeQDaLGtXbQeMmF9rJI+vbSVVd9CPhsK2nM0jgy0Qlhc6MHXZyFzvbgAc6Ci1EogD5u1GZ5jIfV+L1ZC8oGxNZugPp9qg5oB11c+yxsJ8/XCLjqIFA0WSELj/+3+a5Nd2258zT99oiS+7yrxvErIJJ6t9N3qvbLguCaJYde83d9NqNJ3OJnLXu/PAz8y0HFXxKnEtfqpzcp0iHBlhtp/BkPNAfOkvU/6KQBz+ZTvv3gLK5Qd8B2+ZTVV9tIO8qAlsBZaKvcjitLCw9svuunn5Gvt/+u+ZZnHBz53rbG9C393S5e9D+gbiKGsIJP/XHlrXJOwyMYuSU3bFvveumLpO3HIUkVUomC4cQL3J2AoRxwQMXRH2hqmJ1ogEOGypE6Qm0HPrR1fyoa/MJk3RieyBe6yocQFeRB9Kp9GwQOFsIcdtTKhmI6G4+1U1yUIEzsNsUg2Ppz0Pruwv4guH3J7ru9CZ/ITIfZtYc/zCcWA1rnxwF4dmO8kvaUI1B9jliB5v6IA+Zt4l+lA/o4eVVH14fiyi6yqBjkAnfys/yqB9rzjzgg2mhTg8AhCoXisxBtrDvXPoqeEUX1yzff8ZKPF3G1Qx4deCVsQ7+qr3ROmNhtCqkPtM7jl1bWthP7w2DHvOrcPzAPFLuXBzjrc6Lg9yuVSl0U1NgXHf8oiHTx1otlmIgZd0Lf17ABG/4IfZz1WejbrHgvynXTRh74Uy1djqCp2uFkwDYUwLwNvJ3YL75WOeWu0QOb7jjlf8tbwN/OPGiKP/w72TlMnK/xYnCE3wXE8g7HsoFHN0QbOP7C8H3LDr3qS40aNR41LTh23HWaTHC1S6M4GpFnN0SYBJabZoIcO2WgN3BAxaVjQmmoihCqEU45ESgNoTiUcRBA+zGouNQROmbjRzMU8BP6uFGtf8HpHMigHiqvXf8iswj7xUcb5lUqr+rr7zA4m4cC1OSrdy43VB/grlg8ERPzbRainfK0aE85CaTshF+CqjQEN413kgNSpzmQ8Aub8icSGxHWJfyN8kWY9qMQOPgI/bZOaq/2i8j3bL7zyZ9uuueUAxoV7P1o9P7T9xZljx2U/fJtlAvdN0t6V7qLlosOu/YWyTJ5GNvygHEnTOxmnPJksw5Q8Unj/1I895Ynph1N9JS0sbmVsB/6qa2+/e0UmWo9fumygPyfqlq7QvtNd57yl3JO/IskTwc4/4Vx+KFlq675p3Z+blhwyI8RLR6LIry2fGVuQyQSCqBsmswOWmKD7HiMUfdCRSMPd2gDLa8+M9pVttAA2Q8hRXpQNNQjQB/3WLpD2Zfrvxf75cpRTR6o+d0Fq66+v7vOZxi385FqTb91YgJ5k/aMNWLp4a6+OQbiYZXBMwTaAbf2VifZIDw+znrLK9cPdfAhVtQ4BtTVNcRDviuoQ2Eb4krsYNfU3umitkfHhrX4xi13vuSZHUhqy1LfOf5i8UFIP6gPtP8i7JcHYeeMtJ2Q2irdJUN1ZM7/lWtbE4wvbQX0cdZPKf5xvHTrXfce16WKjeyTxb8P+S8/zNfYX7+P9BeVRSjs8G3ptB+/jeKUI9C3333W7FTsbOfbdOdL3im/8PxhzHWW15iTsMFvhI0536/8l3fofGLZYddeKB21LcmCQzoPNz+x8ctxVD+crUwh5A0VNbxVvXAZL6AaCnNhcH5pJ1/uYbuGgPhEDFkG/bapdPYFaJfmCHlKIESb7KdNn2a4yeur/WH4niWHXHsd5M/mkvrMcgJxsA1WM06IweQ+bucjxhPQ8DTuaT9pf838bJffU5N+HAvQ2+meQFjWZE9/7Rf5+0gXP9q87qUH5WvcBTWO9ORIn+S1bLJHOlca7HS2JnAS+8Mw+mo/v5GSp2seTd+REAZXso62Avo467Owa/ujuLcFh7rT8pR9ZnXJO/ZtMHzy/O/oxUt5HXVIqwe24oANZkcK88YjbU350zHUYZe7PNumNaecIzfmP91J/JvzJR0HeY5sig/j6sa/3J75ytJV17wnr20eLVlwbFrzkv8pKyT9Lnnr4NuAsMQRXLV3UHA9dFBx76SPNqa8Qd+QVLGMfK0gLeVKMdYB5slPaYnOerIzfpNDGcLhJtCi7Jf+/mXZoT/8dKr/7MVwnxAbfEno+5eWow6lU35fho9TnkRcUUD9wwDBH2DOBmbK8XHyUnfqBx7q3Ak/5FAG+yH0ZVF+O37Uy/aUaOf4j7avffnTIKPXIs9v6Ns5fX2Iu34S3akf+urFfgnBxb3qOdV28nHlYtqThZBNm32cfIxdp/aLc3pbcGDe7GC8UFfq5+usuDiaMMl7L/8Lvr4RVOUPutFfxFvpCz6UTvkhxwo/jLrDXRRsvuslLwvi+lfEL3ouR8xRNPaMO6HNHRqfVvGgf1nv56QfK/QhM/wVSw953vlCZ1BAnrSokpvXvPjlouJfQ00rgEgaHBkEDiUIVTFngFSgUusJqbAPIUvbaT/t5fttrZ3pYDqmOPmoG6CPsz4L1TronhTiBdgfBNcvO/SgjleCiUozFunMh9mY+HHzcfL5NB9nPdwFnAU8KIA+blTsyWv6Gp205nqTbXkM3NfB5Kd5Ddk+zeelvlno8/g4+Tza08YndspEc2HyocF072xv7eJjBmG/uP7OZYf9588606z/XMsPOfB78q2GJ+A7FEI7Yqz7Fn97xboJ73wv3eflk0/zcdjg5YK2RT0KIXDaSn7Qii31JOeLzP9ibZgZ0rfc+eLnRrX4m3Lmn4OYM+6EsCIv/qSZlT3mfxBfv3Th08+RdwV1tYatxA+fvUB+/VXeSc8Bl0JTPJ1coaBvjCnc+56yAH28tcTJnePL8PHO5aW2wx8mow/2h+GDI3Pnnx2Gn5V7ybtGge9ss5zBXIjN/GoQuBVCd9gAWAcImag06OMmS07w2tYgcOhAaPE0mrK5euDUF3KMz/ozPupgR/7el0kZjZCyAdEytQG4FUJ32ABYB5i2hSx5xvAFm++4vqff8Nh69/UHi7jFWf2tD+urE/2y7RttN33lJui0vrYf4070utHXlS72aYZPOf6HYE6l/KnDSeKvVWlOIF6d5P/UdWotATdU4Md04zEg2jXqa5Joox017lkH6Ldt5NrVjkbvftFRUT3+njxisJB+hX86iT9zHj4jzniZj83XwK0QusMw+MXy6pIzwmdcvNNROgaVzVvX/4l0HVEB2gAAPCxJREFU9ow84c3KpAqih+Z6SzSTleKJMS4RNfPMSxCSKNtOnvEKP9qwHaEpZLJcvcoTPOlfExb9tdpUiMkAl5Odtk9pytlUn9qMPlz7bXG1cqZ7334ie1dBuJr2P2GRZj5ALFAsJuYzP2aNPmfbVvKaYiaMSksaSD8qhDnAvlWJpl2TPGjq4t7EnEPQroSedO/wlHWK9sfxhzbd+aKuP1XH9fAA8zk0oQ6pVsRoK6CPs74dNPun/4cJw0r1liTuBcZffFQZ3fHk/u380lyPWwT0cZH539xzkZSi8r9InYdd9uY1Lz2oXguvktXFcuhKHwP3x6jiUknYj/yXBc1dleril4WrLt+K/rotFXkG8xQ2yioLQ0AD9HHQSCdEPQqhj7O9TwOeTnSc/LPQ5xHc9aFQdZNB6qD/AChaoVCX1v0bH/ewBaWVfbS1VT3ask/gchlXflQ7fMuKVT9cjeNdsWR9ipgbjbGGV8zv+f5hnfGzLWPQVh6+aogCqLjIIUz6ZR/KqOyQa5tP83HWZ6HPIxIyOQWZtCFfPtr7hbpZP2xL+0XanKAef8Rv0QkuVzX3ze+/sT+TRRqOiJs+duzjPo/Uiv1zRuJbTM707WXavSWJe8Hxr9ejp/fP0kZ/Z+MP/5PWGBungdoqOCDx/inXQhJ1li4Lyv8WHc968va7X/zUOBi7Rl5bsRfjTthZ/CU2veZ/GD40d978U5c+64qef7m6Im8kOxoK+4nRKmp8NgQQG9oQUsak0A0OaWl/6Jc0lZU+ZOg/rNJKJtYfqoNAxUUWYSLXk99KDumwG3ir0rX9QXDh8kN+1PWvYLbqf2bS6U9AH6c1Po08PrSIWoR9nDw+zcdZj36As4AHBdDHldh2x/zoNGfSvlvpQ91Yn4W+TT5OPhkzQfyiLWtOObmt8g0MoSw4irdfFuBji5558B0NXU/DwchI5BY9vs0+3plSHcU/xmKu2yILAs1TxpXQj7mPd1oPPcA7XYV9U1/oQZqPsz4LfZt9HP7atYp8HX7lWK1+tZyi9k9zxfeJj9OP8JHvb/CgAPq4Elvu5AHRx+XnAk5dePD3H2nJ1EGFfEsq/o3wLTNeKEalpcadfAlVbzyQSv1lNpFfSpQmVLyxvSgprFgEWH1jLXpspFh30gJkKaqJHKTSTRZkWlEOx+lIDaBRfkOVHmTbN/LTbkJTV3iS7lvbLwumby0/9Dp5hTO1b+59NlPoM6QGcKaI4eI3F2R/YQl/gGxt6B0626BFzHJC8kqeUAsu8n0MLkYVErI5aFLTmDA/mVPt+MNKuESU3COoBHsI7x5ix960DbJpa2pfSkvr+2O/2uLGYxRO/I0cn6a0DnYybuWkCKsbx5TFQ35CgEZpQERgEi/DWY2ufDzH/juG4dmlhQdf98imX73gSdFvN0sQy6ci7Jdrm+Lb3ko3+a89cD4GlNLsf8u1JJ5dPeKnInvaFZ3/QZSO4Z4UnGGN4jUvXLypVv+BqH2o5awzoNv4Z8ZzR/lfCTcL30uXHvLDe6bqthF5//l/ylWOVakgS9z02MMYY8KM8saZtpdXCmFOk/sKjqa4cLnDZOC3kEc2QvBrIjt+4kxuqxf5lKcKJa1NvYY96whR6eMNzKlcym9hv0zAty3fff6bZZBPIiwje9YdmulwEQqh4a3dQtcSWo5Iq4TgoWEwsfyw65JfOoXsQZcda07ZdyysnSYGnio2vlIsXWgaDsB+MRa5j5OJ/Lz5qXiWQ66o/aITH8ivFON9Hpbu8G2LkDRNSBII0vL7gaBUoHweWZ/PNw3UMMCl4N20Z+ZTo7pNStFWQJT8BanfTOIRxfv4lG5wqkWYuDIhePkvghn/ZA50tJZ9Fv0iDn0PB5Q1f3HcE0IvX9esnjSTsKX9PX03K9vbzDiO17583uax7ZeLL5rem9N1/OlYwvb5v2MkGDlj6WE/vLUf3hqJFsz9QLBt7HQZUPtDB/avwvHRBZniPsJkjVN+VFOTDH/StiHbyJwDtZ+0v+b2WQ2pLaBT1UEcZ7lB80tj6xz+jD2d2C99PhGMVM8K9756m9/XroTjbYbMiXY+Vp+KcwCT4qFu3rLETBgM8dkyVQM7XHDYtQ9JZ5/DNrrmhXtPBPFfibLvEPv1V16LtJ9G0ndRPTpHaB0tOGSBIgsj8yDbQx5xQhsCWNRYb6CTZpTGPdiUJyGHWxJ0mhG5dY1Pak1a0FZUECekrd3YL9/KEd92V3BbPdHNV5E4YY5Y6ooqLD5xzCsaxMkT4mcHCi7ap+sDamtOuGPiLp2SXKF+yubbSpzQyYl2kSsc8vtJ1U2/evyrkhsvcqY3Ad937eLf1FgIfnvigBKjiWo1+N2lh/7whrx2vdAqKw68dvO8ufNPkjz9OhJeB5imvkRYOtVBIBC4DjoHyUdIPkK/rUkRGWKB1iPbgCOJHLQu8BZR0AFlk+oEwjqpBA3Q8BSihroAYkMhBK5tHQRu/AYNT2VoT9qf9YH+VJaDefzyjuiJoBq+drdDrntAxJdFPdDodYsg9vYHFqN15i4XVqSN3NUYrrL4sOse2+3wH79bHhY+XD4J323aFWe/7wv0Jcev7tQj8uZPXXCYDMlta6/NKRcHGGqEPm5UrXEoGH1bHTmMNzts+kEYy+LH19HsBq2f9ocxfFtMYWxa6ysrFymcQ4krcWA7+lh7d71afthY5+g3vl7G/7CN/SJcKyf9cNOa335e/KMv5EQfU48/Y2PxMHnN+S/nt0h+guMtyw79cfKW3n7YqBfYFq265lER9jr5us276sHOw6pxtGcqnCY6in+oZ2ChEypLA0NzI5+XrIQN7nRNE5oMokiu11XkC31yI12uIZ8pE+DbyAXor84SOv0rBHSDQ3aHCVRpjkcvlwoREAUDgZdQHUGBChHM2lqwUCH8715x6I9/bEy79t6fRHxcfaeOc/4hbi5HEMWxcgCIkqlXsqt2HMY3RHsZpGs3PfiKE4MtWy4TtV5QlP1qMl2lMD546x0vPHzJodf9qgN36LsiqBshHG44HI8CLwN33s4cukFgLMplfJQnNxWH5gqH5JTpojkmyubo2xf7w7D393CobgyqKEjXu3D4+a8GkNXV5zZoGE8JozYvasf4Q76PZ9Mpa1+n439X+LVYeeboY+K7tyQ+gy/d+FMI53YdfyfEpQFjQ5jkf1z5o2VHXP8f6KKfpeGO3rLDrtoowvt2+aSfimZlbVx90vvh/dRR4ioZWHopyC1qsnOjLkgcD+XZ9GhHMYIAmRyTxBldDlwnnzIAZWHyqd2OvPFffVqJw52yIPN8ThzQikRAURcJ4qwGUx4Omk83YUOzX77f956Ue69nPrljK97/cAAXw321n9Z6fqjZzxO0XXDIh6fklgrFAOKTselon5SJJ/FiX4Ro5OM49koUD88tFZksNqe5lq90P+wXyT1c4UD+e2PBVy8Pz6Op39040rMUCNljZRrYrrDxPzALpqejJ9c8/2/lwe73aO95sc6jKXM23tljNATNF6ANrbWO/+pfrTji+n9Jqf3DGhYc/RNbrKRNq08+QFa4J6vPPN/ZggKTpnOy+FTRBt8yAKJjk++lTnnT9hoctocwbWP1jkto4XXLjxh5b7FWzzDpLgbmzvQqEKygO3MtUh8Lh2sPH6vLHTPxSWXkCh48UX6sbMum21/4ujiu/VR6T362fFLdu7S/2T/xczqyNI70qnRTe7c4TBYYoo/iLh5NsrMByQisVMLiHxpoUqoFIZRvNcmEKga1zq8+2C8fWKotNGhPnnL8dcZKxxhtBRxE0XWqJAHyQIr2ihyyw5TmHTegndo/KHsalBvMwZNrXvDuuF6/EL1lhlMyF9Kf7eqTXKe/2vi3Elb+cbcjrv+HoiydkbfC6kF0PnKYCwtAw1OoodKklx2gAsNxVQR/Pk1xBAP/Tl4WagKAh0WiLlc27h+ZN0deW37d8Eys1G86IUaEbOotB4GrTwnVz3heB3Gz53agMnAWiEFx4hRRWkKw+mHdLz/iupuDSniJ2i5K9tt+nUfEF4DY5MpF8mvPk/lEvqWyQ50KJvgyKcxvaowK0lKMtRgOigMCUR0MGh4vhYShKHG0RG2ForCZdhOqkjACBdDHldhAUQ7ZJRAI7I/i7cbd+R63CJj3hGhN1QAVlx0hkKb4g0/oqhMEYGw5aAHCQYFFzijMA+infXv69C3/CzRhOkVvvP15b4yj2j9RB3GdFkDFZUfYU/zRuFX+h+FFyw+//s+sx2L2M27BIQmLL5u+yaUyvNfSMxy4gD6eNmBbQK7CDSIu2Q1DV+Ml0A3j0SCsvmrps67r+c1rqS6zDDOX2uAQnL70/Wy4eRTPyuDPfGzQvNy4FwbzvZM/E7w2Uqn+Y1H2YwJXn+DEIpsMjv3xnf12fpGT4g7lF0ZCjQRkOJrKdjjloQ6llT3QxRQyIMLdO35An94ShfEy2KR/9Jeo1G/75YS/o1tLMRH3kv8aI6RAK3vEWo2nWd2tWt3z+1c4RC/NFwctd0wfzRHVzbTrevx3r9nQt9j4qxecIYG8SO7pyyku/0/IWgOouMSdkHlMyLgTJnkPCZl8kaciv7Xi8L3fLlczIbmwMuMWHBtuP/El8lrX/eAwdb2DPk5nItuVDx6XDYAQOOoITZ7jB58Un+bzoo0ESJY+8ZtXHPnj25W53DV4AP7SjckNKH/qbwfpe0Lf3xSGiQil1YREvmGG+hBnGN9alP2QyyLv1JGHJuqH8rgVlDnNfQpnWxtPxk9a8xjQKCK27g/8fv9+DBUPg6G5whHGoerCnGq0tZ/293CFQ7r3fWe6Wd4Dnyz/G/zvcoHxQTvgbE+5xUG7OglbdEPvXr70a/zLj5YVZ8I0SH5y9fNeEEd1fFN0hHkANZirjB9jCYg/FEIfZ31e/ClTG6uM8Nrl85e8IQwvxW/vFVpm3IJDTvXntfYIJ0qbPOxUZSc5TXRJfEIGlRAy/asgPp72l8qXoP3N7kfchG8hlCXrAfmuPy7r6uVe+NycDgfbEHEQ3kQdIfkIjV9qld+GEHFA3bJ9D+mxaH+96S4K9tF+uBbyABUXKFNx2wWHfHVzB/UgRByIA2JjLAAVRz/syPEDtOQfoiscEoOlah9u2Tn7fJt9nPW92C+iu7/CQf96PlddMTqExj/iiX7O9wgJw0JoVVwA8CrvAO78Oht831Ff38fAwUOYz9/C/lm03pBnEo+Nw+gKWRrOh5/oBz/WfYs/cqkh/8P/XlEdebU8bzaGfCm6zKiHRuO7TlqyYWctfdeAZq+4iBDeEoeycDGRQK1P2TEwwe0P0LTWMQO4DjzR31h+xE/+PttSWctdEIyMBHF9wjwhoweDJTlLwYk6y1icbE8PSxNMQMrjHEmcztegQYbxOq6hB2E88vNYnlnU/OyX/WI1fcUch1/kpV4r2zlELoRs8Lzekl1jh37cGACwb3O5JrQFkHyCk18u0eovWjru6Qami+ZQZ6rQDsJO7A/Date3WOWqrYVDdGNMVcPJ8l8YyOvHX4eKhcPGCZTmcWdmT43Liz/GuvrO5Uff8r86SIOm5o7JWm9Z/cJVtXjiBxK/JcpXdPwx4cJ1mhLhmmp10enhYVeNTqZjP+tm1BWOjeP13xNPeV85g/dQAH1cic07nrQAfdxxctACGp5Cypfhc+uKPfZ8S9H3upqVn0EUvM2QIVFfi+7O5zr5wL/uD1YprVPz/DAT77TtNPJVwvrj8IHa2m/7s36IApu8JrM3DB5CtX8lz8cna+rX+W3sk5OTmcQ/8H42wW85WHzjvacsk7G7j/bq+atJf2EgrRMNyQuouMiW1wU93EnbnnioO/0LIaTlCWSdz5/H10ca/aB66biHjqJAP/N/Flzh2Ljm5H0ngvFr5IHh3Tt2f148ScsTwjpAD5cr9PfPmxec5l6FkdeyENqMWnDE9eg8eCFdEBhOz2QXDOQjZNtW/FiEgxfQ8BRivEjt+nDO3FeFT7mi66fQ2eeuDnn/ENBw3A5wS26cjtXRBg1vjLGywologm2GlDAc2QRVzVaDtJtQLO3afl3AiB8AFYf/Qvk2RtsSy0kRvkcxSHcSao0lfssxR15AH0dbFInhbpvuev4z7Gj69uG2sWeLKaKiN+sWZH81jnUx1721EsEu819jrlal8U/ywMVOhHavyhRaMA/yRPQt/2fUmavZE1vXnbZnXIuuldg8rd/jf/L4Y34IH6tU4lMXrfoJXvg50DJjbqlsvuOEgyfG4+diQOp7AcRNxG2Qmt/8sQU+8uR6FeMQo8ONR+UVQp48YZuQV72+dsVhN/Y4meRqMIuJ5tSMi5vsNffzxNd80sLgIQ8a4xlqlWnim+QNKyEOJ5boRJBRkLYBomRhW/vVD84pFBB38qBm/DDGir+wRvOm/jwa6sFhOloATIa0skORZzgfdldyrXaMNLxfm0/TTm5ZHA3bkuRJ9BWS4PADSj/sl9dw9HyFo0/xTxIpa09SYeYWsJdXnag/zcHYwyY7au7O6phTqXb0Q1Z/jn+5b9gsbIZQcLVtfHT0KrHt4F7thx+0KJQdj+ls58Am/wXhk5Kfpy0/4sf3Toe7Zsw6cWIM796wJEsuX4rHSMtzHhcOgLkbphfUuT/IAM7CpAeU7YIVR/3sBtaVsDcPZHyq/gaNMYD3DQdMJysXgyb+3rQYfKt6LViBXvttvy4YxCuAhmsfba9wjFSrD/EkS6hewdkCBdDHjarjxaolSqjXBYZBXQ2iMpkNrVFUj481bPr28lsIRyOjzNbUX9Co3/ZX5o082L2lHAHQEn+AGssEIndQQ6i4HBDCDm3jIHCrNWi1Six2l4m/3xl0RwHElrXH7AbV2eJBn7/wr1NIv0WU+OGzF8Sj278r1j3btwcW25/5pJ395LaYp/mMdswD4CbNoODbxOmvmM5vVs6IBUccX1gRL75J/TfpzlwMJ+umE6bgnDyzUOPANnrgpFt7nVAhK44/ufLon/+bqyxBBx7gAk+uF+mJCdDHWQ9R5mcnVGOmRI2b1gkt4ddwYAce12YGAPmxtAMKs9/3A3zVwZsul9YWyuvP5W0cnm/V1zILEuKMQJx8Pg04Jk1C4OAjNDzGt2aeO90hkicsToQOao+DtMmHUF55YISHk8enAQcbIXAx/9EpvZdHBGgBlE11cdBwpx/YGHdCNMy0T2QpUvwukpWA+SEd99C77+O/eFP63kMcv2POxo0Pf0Oe8jk5ySfpRePK3jLxs5i3mf86iL8sQsbDSuU1K4/86U3sajrgjFhwbLztylOjqP40OMi/okG85RUPnQ2kEaCPQ5AWRgrQx121AAnUj1Yevfh9KaXEuvEAB1OrAeaHxceTPnyijycMMwOJ4uAk3xfU2jfJx1nfkLc5DM1jQPI4jrYl7Vsg4VFX49PO3Zr3KrfVGPDHhS0m0AZNsGF+JPTnSnYLm+Vk8/wn73jufqQNGj6x5kS87v1g7VdtFYwGYNwrDXZiQyH0cau35pPYHwa/UBE97HzVkuY+0ccdQ178jdbKnkRyYQjzAB34Oe/j7Nw3ycdZb7GRI1R6DJJTyU8FJLxDjOBD88bVq78kvjmdfoC6nkkNeGJKG4ZO4i+3N2W9XTl35RE/vTqRO03IjFhwRFF0nvmHE0H+YGIgAfM2TCTGY+2J5/FqXRjcN3depXxteYHJaTGwiUnj4GIkkdI/nNHwB6gbcUDdClSuT6LxyUbmjZPzxPXHfvjCFVkhy1HbBQe4ZRqykyN8y0I88bdorjTMfCLb4RorwfWP0MVD40V5AqU6jCY4hr2KQaG14Hy1AbpnN+gAGgtx8uE0oLTO7BcP9bjgwLdccvzpaIne8LHqA52pN6GQcD0dBRAbeAm1nVUXuc/Gf7K+es7/OBqaF8pNZh/rNqz+wafEVvmWZWPp2X6NPeNOKLLz4h+E71x51E/lysr0l6FfcGy899hlksBnYXDZeDHo4zbw7FMHcJsaxPfwv7dhIOAY0MfJw7YqL4xHq5XgVUsP+dmG6Q/TTNQAg8D8TIgj4upjPYZt6YBBLFDSmBhu1Jm537D69tfLQ4srBmK/DAw56XW04JCHqjs4OTI2FjuLAGlpbNJ4pePQj7VMrOfJxvAOLJDx/S+cLx/wmib6zhWgrZ3ZL28z7cCnrXung1J/pj5u3cqr4aIC0Mc9lqJRs8H85ee8j095/Mfh0Lwyv50/N972O38vVyL+oK/2t+rUj7ng8mNsf77yqP/6XCv2QdOHfsFR3xq8XpJzPhwjE6n6B9DH6TQLKKc5ORKH6x+gCwQh2qCO0MdlkRhXgsobVxx1s9znLkv3HsBLv2zC4Ve+APEH/xMyFoTohzig4SnUiGkcjUbe7vUbXAtcSpUHFt9flP30EyEsk9s3v+3EwmqlcqPvY/qTEDKIA+ZtfkyAZzfYbbRg/w2/eq58cBhseWLz9reIVsupe1Zfsy+1DdoZzfQkzvZZ6MsTS+vVOQF+Gbjnku3Pl+/jWT14jI4pw8fTenlHTqEFD/anecD49z3/g2jfQs3ok/ANt534fvmw8YG+299yPHrxr1T+94qjbvpIn0zpi5ihX3DI15/OZwLLE25itDyEJlBxD8ooM4cQ6pGjuQFgA9GbXIRXaWjjbXL017sfffN3+uLhXVwIJz9OeHZ1VxYdMjv7eKt6uA98LMTZnvRhhRtXX/lBse2IVvaBTj/4uG8fbYaNxFvVY3yEQeW+Tvyx7PAbfxFWQl2cUJ6vg4+zPgt9nfL6hAwUhfXoExvWnjCwS+Gja164t0z0H4ZPWhXYg0K7fJt9nPVZyLYqJAj+a9lhN210eFcAX8DL6y8jv6P4W8ewmXYTdqVSX5g17tBE8iDPPp/m4/QzlADOQlxIxwq/V0OO4YEbbj3hrfLsoZ7wYVuefT7Nx9vaL5YnvmjwgsVaSP+6+5E3/Y/h8YZpMtQLjidWH7tK3Pcct17Qz0rA4V/6mBDmND1AI5VKcw2UV3buUD2gNMVkp3Xh1/c8+pf/QFIJe/MABxhaA29V/EED3B90lNEIjQciJxHbqruB0jeu/p2Xi45/U6z9mMhgFnY2qVWq0b2dGKpvy42D75svO5sQG2NhfRvN4pHiJk81c4GSuqfK0yUD+8S1c3z7J0Sr3aATJ3CoYnmWr6+fgz5udplNjTjkOD+Ewfc68XseTygzcdf9ubibe9P4i0ZOp3QxC9nY8BLgogv0oY/QF/BWBTqhUD/wAmf7Zmh1chVv+cbbTm77m0EmffD7Dbed8FrR/bPoGTa0Kr3abz5W6SLfoPRkfYXx11Yc9fI/bNXndNKHesERT9Tf6idc4lBOrh4UV6sfCe3ABdpFR+sE55/KczKAS7Ru2X2f8PzpDMhs6RvziM0l+MSNgliI53V0GPRjS1w5bQQBbSrZAdrEMCSEjbcd/664Xv+O2CW3VFCKsV/9LDuF0ov4J96tsqCjKxzQSvi/x9uTOO6+uDHm7KOt1Ad2k6bxD6K3r7/td87svp/uWjxx23PeLFn2u5Zv0jPGvWywlZB2E3bXA7lT+yuV3hcc8gVlNzZMV0rPwmz+q59ll/rbcLbL2l/0mx7lF7Tli7EWc8adUOPfx/EfhLXfp53DBDfcfsKp8kT2v4u9VfoCsN/2Ixc07oRwQhj+YPejjn5TGF4o18yGrwztgiOOz5ZghW+UUagrXjgXISPUYY5JBD5FEoPP4RoEJRuNkw14dAA6frBrW8AweLw6d468tvwX5WvL4Y8pFsRFY+PB3kT6UjgpG+Rk2pvcYlqtv+2kZ62/9fiv1qPg0zLi9at7tKC3HtkasNl+oWhOK4TH4/DO8LDrRjvua2FwtbRKft206SohenUv3OtEZqO21oI0HGGYhlH9Gxtuec7ZncjrhWfDrce9VTq6KK8t/ISS+MvhSgTubAX0cdZPAu9dccR/r56kvscqeg/QYk2o85qjtbIn22nRFzjkMcUn0adpa73TgqwunR2zdZ790Xmb15yoL9TrTFbxXHJl43eienSZrB/n+pr33rMvpU38w/gnu++512vD8LPulzN777WolkO74HjiF2tfJg/b7APDO1owOL4Gfo8Guq1IHMQCBgsPXcjE43I38DUrj/h5z68kVvnlLvFAEjNvkrRpCCwcREAdniwC5VhpoGPD8pHQx1kv1dNcnrzlhcs33vqcVz5x6/HfCKKxO0T/1w3WfvjCinzCvJF4J3Dlwf+9Rbz69Va8OkaksrU9jINB47eJ0ccthqan1M4R7D823Pact7Xqt1f6hluOe6/I/pz0LXOb9ZfC7qWaDe3tlw9CU/smAD6PMu8Jk7yHHcj9VvlPO2EfcUAfR13xpRoF8q2+yeOf6iX6qK0O0m7CNvZLbJZPjE98oXirOuth423HHS6vcLhSbFqEvLHcSWFqN+MyNfsb5YW3jcSLXznsv/NV9BW2ziKVwyUhOa+ZjEBx0KGWOCBKpl4vhwgNMKda+WWlEVbiP9zz6Nt+Ykzlvh8eSFwuA4+/aQO5FhLQXC8KESM7xlxjPHbc9NscKk8iBxjH1fWrn/OGoC5XcatyQQxF0AAooJYsgZWOP3OYyIJMFMj15FfqMpmEoXyqimSr7C56HFsPR4+QD8S2eIcdfsoVaD/Uo28B9TgIblCki10lqP5bPai9BU3UryLKJstm+eBJYqcNQJBNbEbRug7slzdzVMVnn5NF2tmVMH7/VL8Rtn71CccG9egf5WHyF6giTh+85xTfEND3nUI/hwNqwWu4wetex92L/eL72vw5wcUmsMc9sgeqyNZp/qOnbPzNFpOF+ib78bBIgSWqhhsCuYzCHDF/iv9hmBSzrT/j3wl81eO3HPfJPZ69+L1heF3RF3C0y7zdptXHHzBRi6+WPNoNMRiU/S7+6xbOqb508RHX6Q9E5uk3LLShXHDgMtnOndvOwH1NDig4zHCZQFw0ccmTtPx6aS8VTHYdzaAkyY+JKP7nvY5Z/Xm0L0v/PcBYEWYnoGyPFk+Lu9a5E7YfM+BO3py4Vr9E29RsgaAnlBrizhMK4i0fH5Ocqbuccfx1mwxDgdaf7OV+iE7cINTw0TOF8tNUMqdo3gjRZEUuT5UPOydKUddvQfaLK8wXBoNowdwFP0z06BBZcfR//eSJW46/Q8bCoVSdUCdPyLHzhQDzLSBKU7yUqFW6o92Evr5gkOOXisRT1t963MVBFH5596MX/aTTE0e85uy5G8YeeL4s9d4S12vnqivE+dqHC4L2qycAsyjbvy1AzCboQ7sJYabik9gvi5zLFx9282No33ORHyNT30q+UEeVxVwXiGL2WMxxTF5AFLUHbZwlWfsloZWvqN28BSMbdo6mV/QZd8Ksvlk9wEcerevM/gvW3zr67A23HP/n8hMUXX0tGeeasfHxl4Rh5Qj5APNb+Xbip7I6tTtef8ex+0yMB9eIy/WKvHO9NqPdhLSN8crK7sX+kcrI+YsOf/n6OH55savJrLIdH/+tfEazFf1QLjjGdm5/g2TdPLPHjfQ84zgrEGZmB5IJIYmnChUXBj/c65gVf5onuqT17gGd0twE2CxFplUNKeOK6FhkjJd0g1bD05vETxorzZfv402fWDFJY2I26dqbHCQ54fCGCYDM0iR7hcV1bipDc8dLaL1Mti/U/usXHXrDbybrfZI6vAnRJtsB2y+fwquy2HibePNtG24d3fL4L4+7RmL233Ll8fGoHj4ezqmsD+tRRZ4P2LMSxHvEUbSXROa5T4zf92IJ66LQWx/qlQpLEDUVphQdf5lM5dsw/SouUTXRLM38OWvK+c/E75e6GTmLD9p7485b78NwaNFTYfl/knwYkIXzcT+X24o/qFbCm+TK2T2VkeqmJavqWzbfvmDxRLxzz5Ew3GuiHu1ViStHSq6cNj4+fpxMGRV9ZicIbhdzul5wBGPBp6X9ARlXtDjsv/31qHbD+luu0P6Y64AoufkvdAZHhwr4wJxT2snLadJECoMr7hLiIagYygWHBO88m8BttUv3ICmAG8REYjggima50lq6T3kgQ9junT9/0TmdfprSDspdhx6owcMteEl3MZNU109lnGBd6NJzXmMONAttHDL21XwMapOPvQ4617CR24h+tii/kK21yyk5snzUzFGc9klPDfrTFta7bj1AyQaz7Wk3IXrkWPCEeGiDRf/hVXSFrpy7/+eeGLvvL6TRvpQIATqmEh2Kt1+uFuA9HfKVQtnsIlQQT9TUy7iihBnA9JM9EHfkDkRfi+Cg4i8K/OceR998HTSZWrEraYw7YZfxb2v/1HRs3zoML62v/+Wxj0gUnp7PXWj+46V3x4sTjueFyXCiHuy8BV6056InXCZFyCTNn3wtu6HKFc8ljbfsbE7Il1Gs/YPO/+z8lTf/0WL4Y+guwWy87cjDZZI71oLFjAD0cVfrRiUmRZuUhSsdqcbk753lstjYKpehzuz1JT2+yBLP9wASMfcPscJfi5jxRA1oOAev5QDaIhf4h0OlGVnrQLN8Ma5GfkdDnmiueBCSHK2VftqXp0G2f62HyFZ/sBt/gNoX1FCFobSz2WB39ofb51QX9vx7CeFhl45L539nurTWD7qjACrubFWyh7O+CRZmvyplO1URO6ejg6avo8Hn6ncPgs/RABkXQhGokgghSZ5/+Wsc96tYzHuJv2hAuwlVWxyYzdgPqNyQ9pjB4Ff8tfBv4fa7/jX2gqvTCHt0ji42KAo+1v+M3Wa12T209ltcNF9axAdWodA6HCoNZA9nvUFtoruhW3BMTNTPT9Uz49QSmOUSo1WyGh9aO+uzUNrjl/MqYXjuymNuuSPtp8QG5gEudwGxIVSEOQkLvTShgaA0pkTalvLAA5ylW/6mDiCIQoA6HNDH2V87SN2oL8QBB4RI2ymk3YQqGnwojp9tK9Xgc8uPvFG/kmgM3e93f/aSi0XeOmvJDnDEToE6fMjsVz/4vjUjUtVpDn1N/4OP7bQNbWUDEEkD6nCBcu3pypXH/OwmbdaPnYjuNf4d298PPdvJiOPrW7LQ1/Q/3AkccBD2sy/2D0WBD6qwL/Y/dPZDIRQXkARXRMiuvsfxP1QLjjh+4Ugchee2NNbZnILJnZP1jS5UovCv9zh2td3wSgWVWL890CIhbdGIvJWpFTwy8Ah9PKknXyJP2gBvMSBUFmrZTm7Qmnz05doSksdBv23iDu1LBVq/mChA44SRhawD9Ns6gX4fppfpSnk+TXGRQWjyKFeg+kBVmQirlY+6LnoGuL0orvkT7Y9SfBuAD6H99ANUpu6AihcV/0owFo5U/pRu6gsU35rOBhWnHfA9Nj0rM/aAKITWTilsl7Vf+YvdhXPCH6uuqi/Um0w/p7MbR4XbD13ajP+evMN5QOU7m2k3oZLNF7DTt3Uq47+r+Kt+ogMgdXBQ9fF0VD+AD8XxT3X8D9WC47c3rz9dkmEvBiML5ROFBgnQx8nnOxC4PtrhIHDZvrr3c371YfNguR+IBzIJi3GpsRGguMZSiahooGk94oZq7BTxoKD+IPFxqcovvgzB9dBBv4qN3XATzaCdFUI9ytjXQMNBpl77QE5KlfWX2tyz/WHwhX69Q2aPY395hbwaVd6SaIW2DrX9omoyBzjcqd8M/CALrocO+lVs2Mp++XHHD+1+5C/wMFwfS5oL0MXXzUsYJo726+e8j/dRqa5FqV9C9wOCg8h/0bCf8e/aYDSAnb6tFOLTBNeYOmj5lsZcBFi9g4XE3zq1HBLc78OvStR3yJTHv5MzVA+NysLzPHw5jIbDSOAc9E7nlkCWI9rCIBsKTcnhL/bee+lbWzYuKwrygMUkjSIjalHGRIH7tpwsVQk0YSFOCLqHN0qTOqwsMch1tQlekU+aa8o2cpj0zXvHyB3Vx3VCPKlvo2+W35Rt7DGlQb0p2h+G6+fOm/cB2NKvMm9R5T07tkXyeuZ4j6w97fTN8qe2Mmj0BWAf7IcM2UwaEMEKjr8sNn658tlL+vqbMPqlWOiNQlf5eB5N6hu9CcLk9kPkIIpo8UNR+Q1pdGhAo8bt8inxBZtDeQ9vlCZ1bexHU7aBKM1XNwZx3EtB7KjUrpD/9Fniq4Z46KUA9avV0+N2NDRXOLbcfOzuMtm/EoFDEmLDxEGoOAILmvsjDqgbUgm4phTTCu4Jfjt3bvWs8Ok3Ja9wTpxVIgV5AHFA/CDeoIaJuIuhRQknXYsauIGzEGd9FoKPPMA1Xxz0cdTlF1VQqkxf4yENR8St3vpqrW+Wv2j7ZQC/v98PPy991i+eEMPf1eiL4bQfOg42/uEOeRXc+f3+dhsmYtpB6NsGWt7m8wD3c97HUTfIUqniq8Izdfx356nGk2jjfFH0+Iemfr74Mffx1hY16mt8pOGIOKDNe4Tsl7CxrfHTfqsbom+pbI+2nyvpqb89kYwsGKvWmPKNBuEIdBTWZyCsDYNx+bnu16w8avUjxlvuB+EBiaX+IX7AkphaTIQoNMvGFEIxnya4tnVQj4gD5mxIF9ABfZy81gXyxIo/KNmOMK895RBCCnAW1Rc091ek/dLLFbsfc8uX2Hc/4V7H3PJNuTL0YfqC9mYh+pwu+7O64NiPmY+Tt0lfFzvW+218PKkPg7euOPb/t3etMXZVVfieM3f6VCxtZ4YpD1tUhLRAOzNtobwMglhNeBiRYtSUABHjDxOj+E78YQw+0R8S+SMxEiQSFDUgjxgaUAq10047FJGBQqEPoEUstPIovcfvW2uvc/Y9c2/n0XvPnal7z9zzrbPPfq1vrb3Pvvuex4YmvDPFWc98iYiP+JND2TOZWOPjt9mXLa2rpekw5/QNj8IYDzXT/00nH32dfdnSHNr+emvyWMnBKzjSLGIv7ImtsJ1c+o/cf4xHw2F8Uudh+mf8VE/OJGnLNquphJjKdSS2ROO0TSabspKaaSWXpE7VZTkSktJ1XcseH9PT5zRj2DaEAbEpSiLyo6NAOgERmyLObCod1NIxLYMhRS6ZOvRlicRmWIf34jSN8wvzGinOtQvysPYwv+nAAlz9gpAlu0NtWVVzmdlVCzS9DGvV58WlelvBUr3uxHE8VJ5V/qwW3pxtx5JLvg3V/jwR9afti7Y/6vt+R8/G25vBNk9avu+J7c3uhp79x69/c5806nMDE/2wWf4/fv0P3f/99o9axuPiaSIzk6Hkb1L/b5b+vg9avzcUfWDUFNkHuePQ9DaUdKa/7EyQFY6X1y1cjA63mA2lckSRcVIwtGmFIVKqsg79vCxDyomin3Uve+IWp2uAohjgmMZ+7fftenXTcAxENXaGUgY2KapdOYiZjekPIhOZUP4tT67MUZTPprD8usGOEV07DNkOqd8hZQmGtQodh/542uTrcVy5bPb7+vfWKrJRcXzFdTTzXbhrTJ7AqMVSNwbRUbkvWn+/PrE62mJ/TbN/FP0Bk42GPnNDiXTbovy/uPlGae7ijfegM29J+0GVwp7eFIvSn+5r4wDltK9ix3yb7RlLcJPFovp/S/zf+DCOhLex9/8JscLxTkmfvSEGg2JyAskpRJJlbHYoPgNDG9rTRw0x63qga+mirxhPAVvFgDtByahjndohbKmdVNG3/2hb6+bY8AP9g/eIRJQP/YgyUWTuMq5OECfDMaIvu+Q8sTEQVc6QsRoMNWUWh/hce8aqP75M7Eva4pVzFm/a4iprKnSc/PfXZ8Qx3jURbVJtWqt/Xtli7B/d1TntA6vAgW/YfFMOax9PyIRrOG4P5Z+5Wsalf66MZu2SL7z78FtaPnUTJTOEnmP1/3xbx6X/GPjN11d73+lWQP/P199w/f0xz5ddxTrm0ZLZuKdxxgETUrbgyxNghSNZ39sOr+O7U9BCfAwpy/KNQ8iimENVUhU31QxhhKdnTGu/go/ZtbiARTPg7CnVUq4dfJ+mTLsaUtZSDFmGykSRnb9w4Ko1YFvNmho5+G2EOeVbif62mE5SJV5zZOVZuVqCtlfb6LcdWV3Q/NY+jbQ4S5OhX4bpbUhNtVZFELMviaOPdi0ZKPTNxu/u2bh76rTp5+P80a/tbY3+yqLjwphpsv2h7x2dPbMulyexZmZruMRvfmZ3w7z9G6F/wxs+QoFzlwz8EX7z83rJ1J+y+T11bqb+I/X/eu0cfbz1de25ms/ihpcy0fT3x1CVYRHvnKztHX//b/kKx64K3gqbVHiHiljDUHecoaiwnVAc+sSkZsQxzEdeS8rli2edNnhYT11MywzCuBigfeQDu6ZYw8a+HSnLYOOQcv7DE7k5vZzU5Usn/INoX0ANXX4qkJYDQWQiBR5zKLJrI6e3MsWVtjgdqBP/DF1axlnI6zPW9GyK8UDZ+zwfJ+3nFT3ZML14J0w5af8wGvRwi/QXLoq0P17+9auO3pOubPQdKcapjxW+Ldb5vaFn+9QPDld/v86i5I6k/avoIY9ZPzFk/dTV0PQ2bIb+7OtSLpECgqHuHd42r08D+3/h/t+o8U+/4imvLZ9wJMnB1ZmJbeAm1vowpaXxZZcWjy3H8U/P6338nzwaQqsYwMvb0Iv5obkMKctg45CyJlEUmYMus/GkLoNRhpKbpmYpLAMfjhmGKnOiwDjNNxztmObDVvITfTktX9qigxLbxbJTdPX49VFX1tlQ/UulB6eX2ns7+vo3oMqWhdl9/Xs7e2afH8XxjcIDWiK6OjS9Dc3uhqQYbAvVRP6JrR2KLNxpuSxHcjhUmeojJ4vBR7l3dnHt8O3BMqo/zJflt7KIqRwlb2Px9wudvYNXF7VKGmMkLkJ/sld0iPr6D0wptX8KFL9Cm+s/pYlm//EzYz7WlP5PRydpZIzgkHJT/N8vHxVIPUD6J+tLkS3BQcYdSn+9pBaJEFo64XhpcFEX3rS3UpRAY8QBHYo7QpkUPcXS9F6cKh5/s3v50N1ULITWMpA5oHNKGI2OSu81pMx0hiIjjSE9mYcNfVk9P0tr9VFryU8BQepyqLKrH56FlEyCYKh7/lbqZAok0Q/bTFnbzjIpE3253nFmlnZoIZKXcZZedUUFKA8J38At3d/o6p39kaP65NkYftNaIvPbflfvpi+jeTiBJK/7Ovuy6ePHmd6Gprch81Trr5xrXLWs/Cj3lkfyi61QjgtSF2SiyiPYPyo939YWn9PVt+mXVkYRiAUO8QHTJdOPjVfdSY/J2fGMs9HpX4Q2w+vAZPX59nLblVDyzQlt/+FNHzkGF+CYf9EGlIm+bMcRqX5IY7o0hmI/lzezL6pvqP1H8P+ctmwmg2sucOzj34RZ4ajsf/szeNNe2YyjijkNRc38xo4RfZk2iW7rXv6vH+RzhP1WMaA2kk4EW43axr5ZRcbGkIL0AId+b6ijptbPbNoGJrM4X86OWzpWmnXOdMBALGULVla9/Hp87PpjIv7XqNR+amffphuKWNI3fUaLnX2Dd5SiqUtA0b3M02j9xeZmd8Mm2h8a8Ar0m6dNKS2eu3jTutHy0PB0oisJdR/RmbW4iAb4P0trRZizZOCBtlJ5JZzl9br1F6C/9Vm2wWTrp3XbNcKBye7/9dqvY52OgzbuGeb5Mw4N6bMqZ+S1dIUD126sRouy1phM9DuW62ymCFFkNxvEbdDru4859uqsoCBNXgb0Qs5SiejLtTUyh059InVyN0BLNs/HahdTN9YuKJWLzfiLHYLF1c10GAfwg8wjUdR2UdfSzRd09fU/cxhFNT0r29e1dHAlXhz3SVT2QmMq9G3uy7VLb4T98WVlY1spXtHVO3hd66/98nX25ebpX7vk5sR2LB1YE5XL5+KkNVS7Bl9nX66duhH2r11yq2J9nX25dnuarb+NdY0a/1o24dj52Af7MG1YpDTqyQH72OVW/3hM4zRVfptgHRKO++KUg/Gl0YI1b+aPh/1WMuBO+P7E0SaKDv3OkrXUlg+Iej2EoaaHR1iZ8A4NhlkpqSRpsUd09RrWqt+P8+W0vJzgp1E51z5r6yHqhxrv4KT3p6gturBr6eNnYTn//lw1E3q3q2fznaUp8Sm4aPc7MNlu44G9V3g3HAX/tLWG5tsfbRvCe1Gu6ew7eencvs2PTQySm6v/O6UCH8RRh9DOJQMD0fS5PfCO3zCJ9SFN3lz9pS7nh1avYZ3mjiqaZWg5GU50/ze9DamoyURfrkeCn0Zly8cx2ev/roCWvbwtOXhgNZvkB/+CG43HUo4MQJoSHLjfx/Qo0r+FC1Ium7viqR1+OUGeQAz44wealdsVp+YSnTmuympnasF9Oq6iiCo755F45xdMmaV1PoMYudpajml55kcaZWW7AiXSl11GB5zpq5/atw9OiiibZtXp02h32FLhjaxsNS8C/W1pWunWrlMHX8rlnFS7x5y+eT8a/L3khTN/8vKu164Cq3gGTrKgnv7GA+2uNlfOVVY7kQC1u9kIEWSNmZ2JTNZ0zGFpNQG3w+xfivqxonFDR98nfs+Hm5VKzXtSOVs0uqADNfXw/VP1Mp1Q0mHq37IBP0dC58I1+xD1uV3rF94SR9GNlUpyOpM0W/98+Xl/yTVzVLu48YEtr53Woh3mdv9/xj/HTkv8Lxl6/9Sdeyq8gAgOxgHbDQ4C7HjaOnUOr7PJKEOTaYI4jj5/zPKnH61t6RDbSgbMpmZfIoOeYDKbj3S8pg7OP3iME1J4jCD3h5XP4/Qz/KXHXZxE5DZS3iHS549LsQnK1uKH1+/8G77Ka6eextntMTyW/L4ZUfl+Pt8iV/2k33UvSLwpSS6/eff6Jy+CbVZhQnYJOvpRVG6YfRw/9fyjJiHjsD++mLwIL/gdVpFuP6ZncK2WOxEmGpmG2XiX9Y/sqCeNQ3/z/9avb3h6QOzu2/Jgkny356X+O1fhJ9QvJZVkmY0J1Sm9vcPQ38YCYqOCcDtC/6/n36ZrveM12+g1XcajSTD+mR4tmXDs2H3wYjRgNhtRbXhjUtF8wtBPj1nxT7uXP/NrxoUwcRkw+xqypb48Ust1ENZvPpKWrsHO7VyFZcmu5yTV5Vf7FMtDA/RbsorptyrsMkYhRT8OstVNlIDljTh+Az/v4Se96A0Utg9ZdwJ3YBDZjju1t0Xlts1JW7TZrQJYxiMa3e2keLR16Z7k2Q9Ne/nfe1biW+ylGCDPgX0WjFb58dof+WjILcCHYIs7O3suX6OrGaOtufB0qUf5NY9X/6yMan8u28w4S9ByydnlNjTkthf7TzsjqhzEzQTRJeiLxzVaf5ZX1f9L0au4ruBhfBG4v9xevmtcZKBMf8ypJdeKG01dTdcf7mF1aHuq/aU6DnvCn0MA9bJJk6atwYWQrkdrOrllbBZuXzv/bgwHHxvW+mEVUnnTkAdVxqB137wz+z5e1D3yw5oVIgIDgYFxM7B7fW837o48C9357EqSLER/PhED1wlYDSnLNKGqy2OHk8l00Ko5JrxZiuLnkHBrFMWb4iT6G27BfOToJQP/GXcjQ8aWMgB/iF75x6K+g3FyLqb0y9CYZbD8fNgYYpWDYN/isiNMwWBHkijCs1VKz+ILwBB85IlSnGzGz2ob5vQMPokTJpOFUAADZpcCqtIqdq8/pfvtt994ARZuy7xBj9nSOJEhv1xEP8Ptgk/NmPGe5WEwUc7CNjBwJDCAn2DaXhwYOj6qHDgRPz4dDZ1morPPEMQr5JK4UsEzSf6Lycd+DA/7S23xfuzviduirXNOH9gZThpHghccWgeulO3Z++oJlQMH34s5wjxMRGZiSgEfiWbgiVI8acA3nH/QV+LSPlwUvKcytbKjc9Hgy8FHDs1vEUcLn3DsWDv/eiytyvMyWDm9JG2Ere24bzP55Ro84XBvnCRnzFvx3JNFkBPqCAwEBgIDgYHAQGCgMQwUflssVkdX6zRDVzFUVmX0an/EYOrqyzyKOQie51a5Mkw2lKuwDQwEBgIDgYHAwGRioNAJxwtr5y/HTOIUWdbAfEN+OnGoP6doHFc8dNVDLwhkLPa/fvyZ2/4ymcgNbQ0MBAYCA4GBwEBgQBko9C6V6GDlKt5ByAmEBu5QdtMLd3EYf0qxIEej6NZjV2z7kcUFDAwEBgIDgYHAQGBgcjFQ2ApH8uz8aZg8XIEVjowhk4m+bCk4D4lK646dF19rUQEDA4GBwEBgIDAQGJh8DBQ24dixq3IBZhWz7A4UUmUrGUSVM+TKB6J3YZZyWbTgufDY8snnW6HFgYHAQGAgMBAYSBko7CcV3P/Me+7dQ0L4KGgGPlGPsv6kIlHpJnqrPU4u7VixfWcaFYTAQGAgMBAYCAwEBiYlA4WtcOAWk6VkyFY1KNuzfIj88FiGlWu7V2xv3Wui2cAQAgOBgcBAYCAwEBhoCAOFTTiSKOHLeqoWM/xbX30ZD2j58XFn7ZA3CTZEy1BIYCAwEBgIDAQGAgMtZaCwCQcuydjK6zfkeg0i/hgMReYKR6l073FnXfM1ORg2gYHAQGAgMBAYCAwcEQwUNuGIytFNmE0c0Ks1ONmwu1UMufiRrJs5fdqqCf6SpSPC8EGJwEBgIDAQGAgMFMlAYROO48/YPoRJxvX48DGiAF3tMMTu2plTZl44u2/r3iIJCHUFBgIDgYHAQGAgMNB8BnTBofn1pDVse3jeBaj0i5hynIe5x1t4y+Mz2P/F8WefdEcUrXknTRiEwEBgIDAQGAgMBAaOGAb+B5nwCpLPLNx7AAAAAElFTkSuQmCC"],["fxFlex","30","width","295","height","295","viewBox","0 0 295 295","fill","none","xmlns","http://www.w3.org/2000/svg",3,"ngClass"],["clip-path","url(#clip0)"],["d","M182.629 183.635C213.842 170.774 228.719 135.046 215.857 103.833C202.996 72.6204 167.268 57.7435 136.055 70.6048C104.843 83.4659 89.966 119.195 102.827 150.407C115.688 181.62 151.417 196.496 182.629 183.635Z",1,"fill-color-0"],["d","M154.81 93.8059C152.146 100.719 149.483 108.164 146.287 115.608C146.287 115.608 146.287 116.672 147.353 116.672H169.191C169.191 116.672 169.191 117.204 169.723 117.736L137.765 153.364C137.233 152.832 137.233 152.301 137.233 151.769L148.418 127.839V125.712H126.047V123.585L153.212 93.8059H154.81Z",1,"fill-color-15"],["d","M158.075 173.411C189.288 160.55 204.164 124.822 191.303 93.6088C178.442 62.3964 142.714 47.5195 111.501 60.3808C80.2885 73.2419 65.4118 108.971 78.2729 140.183C91.1342 171.396 126.863 186.272 158.075 173.411Z",1,"stroke-color-thinest"],["d","M259.352 172.363L85.4595 244.016",1,"stroke-color-thinest"],["d","M122.291 259.352L85.4593 244.016L100.795 207.184",1,"stroke-color-thinest"],["id","clip0"],["width","225.692","height","225.692","transform","translate(0 85.9831) rotate(-22.3941)",1,"fill-color-30"],["fxFlex","30","width","300","height","300","viewBox","0 0 300 300","fill","none","xmlns","http://www.w3.org/2000/svg",3,"ngClass"],["d","M50 237.5V112.5C50 105.625 55.625 100 62.5 100H262.5C269.375 100 275 105.625 275 112.5V237.5C275 244.375 269.375 250 262.5 250H62.5C55.625 250 50 244.375 50 237.5Z",1,"fill-color-0"],["d","M25 212.5V87.5C25 80.625 30.625 75 37.5 75H237.5C244.375 75 250 80.625 250 87.5V212.5C250 219.375 244.375 225 237.5 225H37.5C30.625 225 25 219.375 25 212.5Z",1,"stroke-color"],["d","M293.75 200H275V150H293.75C297.25 150 300 152.75 300 156.25V193.75C300 197.25 297.25 200 293.75 200Z",1,"fill-color-0"],["d","M268.75 175H250V125H268.75C272.25 125 275 127.75 275 131.25V168.75C275 172.25 272.25 175 268.75 175Z",1,"stroke-color"],["d","M137.5 187.5L156.25 150H118.75L137.5 112.5",1,"stroke-color"]],template:function(B,Ae){if(1&B&&(t.YNc(0,Qt,1,0,"ng-container",0),t.YNc(1,pi,18,5,"ng-template",null,1,t.W1O),t.YNc(3,Ti,15,5,"ng-template",null,2,t.W1O),t.YNc(5,Zi,19,5,"ng-template",null,3,t.W1O),t.YNc(7,tn,17,5,"ng-template",null,4,t.W1O),t.YNc(9,Mn,13,5,"ng-template",null,5,t.W1O)),2&B){const pt=t.MAs(2),fi=t.MAs(4),In=t.MAs(6),tr=t.MAs(8),Fn=t.MAs(10);t.Q6J("ngTemplateOutlet",1===Ae.stepNumber?pt:2===Ae.stepNumber?fi:3===Ae.stepNumber?In:4===Ae.stepNumber?tr:Fn)}},directives:[ye.tP,v.xw,v.yH,v.Wh,ye.mk,Cn.oO,F.n5,F.$j],styles:["svg.small-svg[_ngcontent-%COMP%]{height:50%;min-height:50%;max-width:100%}svg.large-svg[_ngcontent-%COMP%]{height:60%;min-height:60%;max-width:100%}"],data:{animation:[fr.l]}}),X})();const tt=["stepper"];function Et(X,He){if(1&X&&t._uU(0),2&X){const B=t.oxw(2);t.Oqu(B.inputFormLabel)}}function It(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Amount is required."),t.qZA())}function zt(X,He){if(1&X&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"number"),t.qZA()),2&X){const B=t.oxw(2);t.xp6(1),t.hij("Amount must be greater than or equal to ",t.lcZ(2,1,null==B.serviceInfo||null==B.serviceInfo.limits?null:B.serviceInfo.limits.minimal),".")}}function ri(X,He){if(1&X&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"number"),t.qZA()),2&X){const B=t.oxw(2);t.xp6(1),t.hij("Amount must be less than or equal to ",t.lcZ(2,1,null==B.serviceInfo||null==B.serviceInfo.limits?null:B.serviceInfo.limits.maximal),".")}}function vi(X,He){1&X&&(t.TgZ(0,"button",40),t._uU(1,"Next"),t.qZA())}function Mi(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"button",41),t.NdJ("click",function(){return t.CHM(B),t.oxw(2).onSwap()}),t._uU(1),t.qZA()}if(2&X){const B=t.oxw(2);t.xp6(1),t.hij("Initiate ",B.swapDirectionCaption,"")}}function Ai(X,He){if(1&X&&t._uU(0),2&X){const B=t.oxw(3);t.Oqu(B.addressFormLabel)}}function Ki(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Address is required."),t.qZA())}function un(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"mat-step",15),t.TgZ(1,"form",16),t.YNc(2,Ai,1,1,"ng-template",17),t.TgZ(3,"div",42),t.TgZ(4,"mat-radio-group",43),t.NdJ("change",function(pt){return t.CHM(B),t.oxw(2).onAddressTypeChange(pt)}),t.TgZ(5,"mat-radio-button",44),t._uU(6,"Node Local Address"),t.qZA(),t.TgZ(7,"mat-radio-button",45),t._uU(8,"External Address"),t.qZA(),t.qZA(),t.TgZ(9,"mat-form-field",46),t._UZ(10,"input",47),t.YNc(11,Ki,2,0,"mat-error",24),t.qZA(),t.qZA(),t.TgZ(12,"div",25),t.TgZ(13,"button",48),t.NdJ("click",function(){return t.CHM(B),t.oxw(2).onSwap()}),t._uU(14),t.qZA(),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw(2);t.Q6J("stepControl",B.addressFormGroup)("editable",B.flgEditable),t.xp6(1),t.Q6J("formGroup",B.addressFormGroup),t.xp6(9),t.Q6J("required","external"===B.addressFormGroup.controls.addressType.value),t.xp6(1),t.Q6J("ngIf",null==B.addressFormGroup.controls.address.errors?null:B.addressFormGroup.controls.address.errors.required),t.xp6(3),t.hij("Initiate ",B.swapDirectionCaption,"")}}function gn(X,He){if(1&X&&t._uU(0),2&X){const B=t.oxw(2);t.hij("",B.swapDirectionCaption," Status")}}function En(X,He){if(1&X&&(t.TgZ(0,"mat-icon",49),t._uU(1),t.qZA()),2&X){const B=t.oxw(2);t.xp6(1),t.Oqu(B.swapStatus&&null!=B.swapStatus&&B.swapStatus.id?"check":"close")}}function zn(X,He){1&X&&t._UZ(0,"div")}function Rr(X,He){1&X&&t._UZ(0,"mat-progress-bar",50)}function Fr(X,He){if(1&X&&(t.TgZ(0,"h4",51),t._uU(1),t.qZA()),2&X){const B=t.oxw(2);t.xp6(1),t.Oqu(B.swapStatus&&B.swapStatus.error?B.swapDirectionCaption+" failed.":B.swapStatus&&B.swapStatus.id?B.swapDirectionCaption+" request placed successfully. You can check the status of the request on the 'Boltz' menu.":B.swapDirectionCaption+" request placed successfully.")}}function wr(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"button",52),t.NdJ("click",function(){return t.CHM(B),t.oxw(2).onRestart()}),t._uU(1,"Start Again"),t.qZA()}}function Vn(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",3),t.TgZ(1,"div",4),t.TgZ(2,"mat-card-header",5),t.TgZ(3,"div",6),t.TgZ(4,"span",7),t._uU(5),t.qZA(),t.qZA(),t.TgZ(6,"div",8),t.TgZ(7,"button",9),t.NdJ("click",function(){return t.CHM(B),t.oxw().showInfo()}),t._uU(8,"?"),t.qZA(),t.TgZ(9,"button",10),t.NdJ("click",function(){return t.CHM(B),t.oxw().onClose()}),t._uU(10,"X"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(11,"mat-card-content",11),t.TgZ(12,"div",12),t.TgZ(13,"mat-vertical-stepper",13,14),t.NdJ("selectionChange",function(pt){return t.CHM(B),t.oxw().stepSelectionChanged(pt)}),t.TgZ(15,"mat-step",15),t.TgZ(16,"form",16),t.YNc(17,Et,1,1,"ng-template",17),t.TgZ(18,"div",18),t._UZ(19,"rtl-boltz-service-info",19),t.qZA(),t.TgZ(20,"div",20),t.TgZ(21,"mat-form-field",21),t._UZ(22,"input",22),t.TgZ(23,"mat-hint"),t._uU(24),t.ALo(25,"number"),t.ALo(26,"number"),t.qZA(),t.TgZ(27,"span",23),t._uU(28,"Sats"),t.qZA(),t.YNc(29,It,2,0,"mat-error",24),t.YNc(30,zt,3,3,"mat-error",24),t.YNc(31,ri,3,3,"mat-error",24),t.qZA(),t.qZA(),t.TgZ(32,"div",25),t.YNc(33,vi,2,0,"button",26),t.YNc(34,Mi,2,1,"button",27),t.qZA(),t.qZA(),t.qZA(),t.YNc(35,un,15,6,"mat-step",28),t.TgZ(36,"mat-step",29),t.TgZ(37,"form",16),t.YNc(38,gn,1,1,"ng-template",17),t.TgZ(39,"div",30),t.TgZ(40,"mat-expansion-panel",31),t.TgZ(41,"mat-expansion-panel-header"),t.TgZ(42,"mat-panel-title"),t.TgZ(43,"span",32),t._uU(44),t.YNc(45,En,2,1,"mat-icon",33),t.qZA(),t.qZA(),t.qZA(),t.YNc(46,zn,1,0,"div",34),t.qZA(),t.YNc(47,Rr,1,0,"mat-progress-bar",35),t.qZA(),t.YNc(48,Fr,2,1,"h4",36),t.TgZ(49,"div",25),t.YNc(50,wr,2,0,"button",37),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(51,"div",38),t.TgZ(52,"button",39),t._uU(53,"Close"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw(),Ae=t.MAs(2);t.Q6J("@opacityAnimation",void 0),t.xp6(3),t.Q6J("fxFlex",B.screenSize===B.screenSizeEnum.XS||B.screenSize===B.screenSizeEnum.SM?"83":"91"),t.xp6(2),t.Oqu(B.swapDirectionCaption),t.xp6(1),t.Q6J("fxFlex",B.screenSize===B.screenSizeEnum.XS||B.screenSize===B.screenSizeEnum.SM?"17":"9"),t.xp6(7),t.Q6J("linear",!0),t.xp6(2),t.Q6J("stepControl",B.inputFormGroup)("editable",B.flgEditable),t.xp6(1),t.Q6J("formGroup",B.inputFormGroup),t.xp6(3),t.Q6J("serviceInfo",B.serviceInfo)("direction",B.direction),t.xp6(3),t.Q6J("step",1e3),t.xp6(2),t.AsE("Range: ",t.lcZ(25,30,null==B.serviceInfo||null==B.serviceInfo.limits?null:B.serviceInfo.limits.minimal),"-",t.lcZ(26,32,null==B.serviceInfo||null==B.serviceInfo.limits?null:B.serviceInfo.limits.maximal),""),t.xp6(5),t.Q6J("ngIf",null==B.inputFormGroup||null==B.inputFormGroup.controls||null==B.inputFormGroup.controls.amount||null==B.inputFormGroup.controls.amount.errors?null:B.inputFormGroup.controls.amount.errors.required),t.xp6(1),t.Q6J("ngIf",null==B.inputFormGroup||null==B.inputFormGroup.controls||null==B.inputFormGroup.controls.amount||null==B.inputFormGroup.controls.amount.errors?null:B.inputFormGroup.controls.amount.errors.min),t.xp6(1),t.Q6J("ngIf",null==B.inputFormGroup||null==B.inputFormGroup.controls||null==B.inputFormGroup.controls.amount||null==B.inputFormGroup.controls.amount.errors?null:B.inputFormGroup.controls.amount.errors.max),t.xp6(2),t.Q6J("ngIf",B.direction===B.swapTypeEnum.SWAP_OUT),t.xp6(1),t.Q6J("ngIf",B.direction===B.swapTypeEnum.SWAP_IN),t.xp6(1),t.Q6J("ngIf",B.direction===B.swapTypeEnum.SWAP_OUT),t.xp6(1),t.Q6J("stepControl",B.statusFormGroup),t.xp6(1),t.Q6J("formGroup",B.statusFormGroup),t.xp6(3),t.Q6J("expanded",!!B.swapStatus),t.xp6(4),t.Oqu(B.swapStatus?B.swapStatus.id?B.swapDirectionCaption+" request details":B.swapDirectionCaption+" error details":"Waiting for "+B.swapDirectionCaption+" request..."),t.xp6(1),t.Q6J("ngIf",B.swapStatus),t.xp6(1),t.Q6J("ngIf",!B.swapStatus)("ngIfElse",Ae),t.xp6(1),t.Q6J("ngIf",!B.swapStatus),t.xp6(1),t.Q6J("ngIf",B.swapStatus),t.xp6(2),t.Q6J("ngIf",B.swapStatus&&(B.swapStatus.error||!B.swapStatus.id)),t.xp6(2),t.Q6J("mat-dialog-close",!1)}}function mr(X,He){if(1&X&&t._UZ(0,"rtl-boltz-swap-status",53),2&X){const B=t.oxw();t.Q6J("swapStatus",B.swapStatus)("direction",B.direction)}}function Hi(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"rtl-boltz-swapout-info-graphics",70),t.NdJ("stepNumberChange",function(pt){return t.CHM(B),t.oxw(2).stepNumber=pt}),t.qZA()}if(2&X){const B=t.oxw(2);t.Q6J("stepNumber",B.stepNumber)("animationDirection",B.animationDirection)}}function on(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"rtl-boltz-swapin-info-graphics",70),t.NdJ("stepNumberChange",function(pt){return t.CHM(B),t.oxw(2).stepNumber=pt}),t.qZA()}if(2&X){const B=t.oxw(2);t.Q6J("stepNumber",B.stepNumber)("animationDirection",B.animationDirection)}}const nn=function(X,He){return{"dot-primary":X,"dot-primary-lighter":He}};function kn(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"span",71),t.NdJ("click",function(){const fi=t.CHM(B).$implicit;return t.oxw(2).onStepChanged(fi)}),t._UZ(1,"p",72),t.qZA()}if(2&X){const B=He.$implicit,Ae=t.oxw(2);t.xp6(1),t.Q6J("ngClass",t.WLB(1,nn,Ae.stepNumber===B,Ae.stepNumber!==B))}}function jn(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"button",73),t.NdJ("click",function(){return t.CHM(B),t.oxw(2).onReadMore()}),t._uU(1,"Read More"),t.qZA()}}function da(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"button",74),t.NdJ("click",function(){return t.CHM(B),t.oxw(2).onStepChanged(4)}),t._uU(1,"Back"),t.qZA()}}function Xr(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"button",75),t.NdJ("click",function(){t.CHM(B);const pt=t.oxw(2);return pt.flgShowInfo=!1,pt.stepNumber=1}),t._uU(1,"Close"),t.qZA()}}function $r(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"button",76),t.NdJ("click",function(){t.CHM(B);const pt=t.oxw(2);return pt.flgShowInfo=!1,pt.stepNumber=1}),t._uU(1,"Close"),t.qZA()}}function Yn(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"button",77),t.NdJ("click",function(){t.CHM(B);const pt=t.oxw(2);return pt.onStepChanged(pt.stepNumber-1)}),t._uU(1,"Back"),t.qZA()}}function io(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"button",78),t.NdJ("click",function(){t.CHM(B);const pt=t.oxw(2);return pt.onStepChanged(pt.stepNumber+1)}),t._uU(1,"Next"),t.qZA()}}const Ia=function(){return[1,2,3,4,5]};function ks(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",54),t.TgZ(1,"div",18),t.TgZ(2,"mat-card-header",55),t.TgZ(3,"div",56),t._UZ(4,"span",7),t.qZA(),t.TgZ(5,"div",57),t.TgZ(6,"button",58),t.NdJ("click",function(){t.CHM(B);const pt=t.oxw();return pt.flgShowInfo=!1,pt.stepNumber=1}),t._uU(7,"X"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(8,"mat-card-content",59),t.YNc(9,Hi,1,2,"rtl-boltz-swapout-info-graphics",60),t.YNc(10,on,1,2,"rtl-boltz-swapin-info-graphics",60),t.qZA(),t.TgZ(11,"div",61),t.YNc(12,kn,2,4,"span",62),t.qZA(),t.TgZ(13,"div",63),t.YNc(14,jn,2,0,"button",64),t.YNc(15,da,2,0,"button",65),t.YNc(16,Xr,2,0,"button",66),t.YNc(17,$r,2,0,"button",67),t.YNc(18,Yn,2,0,"button",68),t.YNc(19,io,2,0,"button",69),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.Q6J("@opacityAnimation",void 0),t.xp6(9),t.Q6J("ngIf",B.direction===B.swapTypeEnum.SWAP_OUT),t.xp6(1),t.Q6J("ngIf",B.direction===B.swapTypeEnum.SWAP_IN),t.xp6(2),t.Q6J("ngForOf",t.DdM(10,Ia)),t.xp6(2),t.Q6J("ngIf",5===B.stepNumber),t.xp6(1),t.Q6J("ngIf",5===B.stepNumber),t.xp6(1),t.Q6J("ngIf",5===B.stepNumber),t.xp6(1),t.Q6J("ngIf",B.stepNumber<5),t.xp6(1),t.Q6J("ngIf",B.stepNumber>1&&B.stepNumber<5),t.xp6(1),t.Q6J("ngIf",B.stepNumber<5)}}let Zs=(()=>{class X{constructor(B,Ae,pt,fi,In,tr,Fn,Br,ya){this.dialogRef=B,this.data=Ae,this.store=pt,this.boltzService=fi,this.formBuilder=In,this.decimalPipe=tr,this.logger=Fn,this.router=Br,this.commonService=ya,this.faInfoCircle=x.sqG,this.serviceInfo={fees:{percentage:null,miner:{normal:null,reverse:null}},limits:{minimal:1e4,maximal:5e7}},this.swapTypeEnum=K.hc,this.direction=K.hc.SWAP_OUT,this.swapDirectionCaption="Swap out",this.swapStatus=null,this.inputFormLabel="Amount to swap out",this.addressFormLabel="Withdrawal Address",this.flgShowInfo=!1,this.stepNumber=1,this.screenSize="",this.screenSizeEnum=K.cu,this.animationDirection="forward",this.flgEditable=!0,this.unSubs=[new s.x,new s.x,new s.x,new s.x,new s.x,new s.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.serviceInfo=this.data.serviceInfo,this.direction=this.data.direction,this.swapDirectionCaption=this.direction===K.hc.SWAP_OUT?"Swap Out":"Swap in",this.inputFormLabel="Amount to "+this.swapDirectionCaption,this.inputFormGroup=this.formBuilder.group({amount:[this.serviceInfo.limits.minimal,[Ge.kI.required,Ge.kI.min(this.serviceInfo.limits.minimal),Ge.kI.max(this.serviceInfo.limits.maximal)]]}),this.addressFormGroup=this.formBuilder.group({addressType:["local",[Ge.kI.required]],address:[{value:"",disabled:!0}]}),this.statusFormGroup=this.formBuilder.group({}),this.onFormValueChanges()}ngAfterViewInit(){this.direction===K.hc.SWAP_OUT&&this.addressFormGroup.setErrors({Invalid:!0})}onFormValueChanges(){this.direction===K.hc.SWAP_OUT&&this.addressFormGroup.valueChanges.pipe((0,b.R)(this.unSubs[2])).subscribe(B=>{this.addressFormGroup.setErrors({Invalid:!0})})}onAddressTypeChange(B){"external"===B.value?(this.addressFormGroup.controls.address.setValidators([Ge.kI.required]),this.addressFormGroup.controls.address.markAsTouched(),this.addressFormGroup.controls.address.enable()):(this.addressFormGroup.controls.address.setValidators(null),this.addressFormGroup.controls.address.markAsPristine(),this.addressFormGroup.controls.address.disable(),this.addressFormGroup.controls.address.setValue("")),this.addressFormGroup.setErrors({Invalid:!0})}onSwap(){if(!this.inputFormGroup.controls.amount.value||this.inputFormGroup.controls.amount.value<+this.serviceInfo.limits.minimal||this.inputFormGroup.controls.amount.value>+this.serviceInfo.limits.maximal||this.direction===K.hc.SWAP_OUT&&"external"===this.addressFormGroup.controls.addressType.value&&(!this.addressFormGroup.controls.address.value||""===this.addressFormGroup.controls.address.value.trim()))return!0;this.flgEditable=!1,this.stepper.selected.stepControl.setErrors(null),this.stepper.next(),this.direction===K.hc.SWAP_IN?this.boltzService.swapIn(this.inputFormGroup.controls.amount.value).pipe((0,b.R)(this.unSubs[3])).subscribe({next:B=>{this.swapStatus=B,this.boltzService.listSwaps(),this.flgEditable=!0},error:B=>{this.swapStatus={error:B},this.flgEditable=!0,this.logger.error(B)}}):this.boltzService.swapOut(this.inputFormGroup.controls.amount.value,"external"===this.addressFormGroup.controls.addressType.value?this.addressFormGroup.controls.address.value:"").pipe((0,b.R)(this.unSubs[4])).subscribe({next:Ae=>{this.swapStatus=Ae,this.boltzService.listSwaps(),this.flgEditable=!0},error:Ae=>{this.swapStatus={error:Ae},this.flgEditable=!0,this.logger.error(Ae)}})}stepSelectionChanged(B){switch(B.selectedIndex){case 0:default:this.inputFormLabel="Amount to "+this.swapDirectionCaption,this.addressFormLabel="Withdrawal Address";break;case 1:this.inputFormLabel=this.inputFormGroup.controls.amount.value?this.swapDirectionCaption+" Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.amount.value?this.inputFormGroup.controls.amount.value:0)+" Sats":"Amount to "+this.swapDirectionCaption,this.addressFormLabel="Withdrawal Address"}B.selectedIndex<B.previouslySelectedIndex&&B.selectedStep.stepControl.setErrors({Invalid:!0})}onClose(){this.dialogRef.close(!0)}showInfo(){this.flgShowInfo=!0}onReadMore(){this.direction===K.hc.SWAP_IN?window.open("https://docs.boltz.exchange/en/latest/lifecycle/#normal-submarine-swaps","_blank"):window.open("https://docs.boltz.exchange/en/latest/lifecycle/#reverse-submarine-swaps","_blank"),this.onClose()}onStepChanged(B){this.animationDirection=B<this.stepNumber?"backward":"forward",this.stepNumber=B}onRestart(){this.stepper.reset(),this.flgEditable=!0,this.inputFormGroup.reset({amount:this.serviceInfo.limits.minimal}),this.statusFormGroup.reset(),this.addressFormGroup.reset({addressType:"local",address:""}),this.addressFormGroup.controls.address.disable()}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(Ue.so),t.Y36(Ue.WI),t.Y36(M.yh),t.Y36(Un),t.Y36(Ge.qu),t.Y36(ye.JJ),t.Y36(we.mQ),t.Y36(I.F0),t.Y36(Ci.v))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-boltz-swap-modal"]],viewQuery:function(B,Ae){if(1&B&&t.Gf(tt,5),2&B){let pt;t.iGM(pt=t.CRH())&&(Ae.stepper=pt.first)}},decls:4,vars:2,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf"],["swapStatusBlock",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch","class","info-graphics-container",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxLayoutAlign","start start",3,"fxFlex"],[1,"page-title"],["fxLayoutAlign","space-between end",3,"fxFlex"],["tabindex","21","mat-button","",1,"btn-close-x","p-0",3,"click"],["tabindex","22","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],[3,"linear","selectionChange"],["stepper",""],[3,"stepControl","editable"],["fxLayout","column","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"my-1",3,"formGroup"],["matStepLabel",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],[3,"serviceInfo","direction"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between center",1,"mt-1"],["fxFlex","48"],["autoFocus","","matInput","","placeholder","Amount","type","number","tabindex","1","formControlName","amount","required","",3,"step"],["matSuffix",""],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-button","","color","primary","tabindex","2","type","button","matStepperNext","",4,"ngIf"],["mat-button","","color","primary","tabindex","3","type","button",3,"click",4,"ngIf"],[3,"stepControl","editable",4,"ngIf"],[3,"stepControl"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100",1,"flat-expansion-panel",3,"expanded"],["fxLayoutAlign","start center","fxFlex","100"],["class","ml-1 icon-small",4,"ngIf"],[4,"ngIf","ngIfElse"],["fxFlex","100","color","primary","mode","indeterminate",4,"ngIf"],["fxLayoutAlign","start","class","font-bold-500 mt-2",4,"ngIf"],["mat-button","","color","primary","tabindex","13","type","button",3,"click",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end end"],["mat-button","","color","primary","tabindex","14","type","button","default","",3,"mat-dialog-close"],["mat-button","","color","primary","tabindex","2","type","button","matStepperNext",""],["mat-button","","color","primary","tabindex","3","type","button",3,"click"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mt-1"],["color","primary","name","addressType","formControlName","addressType","fxFlex","100","fxLayoutAlign","space-between stretch",3,"change"],["fxFlex","48","tabindex","8","value","local"],["fxFlex","48","tabindex","9","value","external"],["fxFlex","100",1,"mt-1"],["matInput","","placeholder","Address","tabindex","10","formControlName","address",3,"required"],["mat-button","","color","primary","tabindex","11","type","button",3,"click"],[1,"ml-1","icon-small"],["fxFlex","100","color","primary","mode","indeterminate"],["fxLayoutAlign","start",1,"font-bold-500","mt-2"],["mat-button","","color","primary","tabindex","13","type","button",3,"click"],["fxLayout","column",3,"swapStatus","direction"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"info-graphics-container"],["fxLayout","row","fxFlex","8","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],["fxFlex","5","fxLayoutAlign","end center"],["tabindex","19","mat-button","",1,"btn-close-x","p-0",3,"click"],["fxLayout","column","fxFlex","70","fxLayoutAlign","space-between center",1,"padding-gap-x-large"],["fxFlex","100",3,"stepNumber","animationDirection","stepNumberChange",4,"ngIf"],["fxLayout","row","fxFlex","10","fxLayoutAlign","center end",1,"padding-gap-x-large","padding-gap-bottom-large"],["fxLayoutAlign","center center","class","dots-stepper-block",3,"click",4,"ngFor","ngForOf"],["fxLayout","row","fxFlex","10","fxLayoutAlign","end end",1,"padding-gap-x-large","padding-gap-bottom-large"],["mat-button","","class","mr-1","color","primary","tabindex","15","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","16","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","17","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","18","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","19","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","20","type","button",3,"click",4,"ngIf"],["fxFlex","100",3,"stepNumber","animationDirection","stepNumberChange"],["fxLayoutAlign","center center",1,"dots-stepper-block",3,"click"],[1,"dot","tiny-dot","mr-0",3,"ngClass"],["mat-button","","color","primary","tabindex","15","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","16","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","17","type","button",3,"click"],["mat-button","","color","primary","tabindex","18","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","19","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","20","type","button",3,"click"]],template:function(B,Ae){1&B&&(t.YNc(0,Vn,54,34,"div",0),t.YNc(1,mr,1,2,"ng-template",null,1,t.W1O),t.YNc(3,ks,20,11,"div",2)),2&B&&(t.Q6J("ngIf",!Ae.flgShowInfo),t.xp6(3),t.Q6J("ngIf",Ae.flgShowInfo))},directives:[ye.O5,v.xw,v.yH,v.Wh,F.dk,he.lW,F.dn,it.Vq,it.C0,Ge._Y,Ge.JL,Ge.sg,it.VY,_a,vt.KE,rt.Nt,Ge.wV,Ge.Fj,Ne.h,Ge.JJ,Ge.u,Ge.Q7,vt.bx,vt.R9,Rn.ib,Rn.yz,Rn.yK,Ue.ZT,vt.TO,it.Ic,$i.VQ,$i.U0,Mr.Hw,Qn.pW,zs,ye.sg,kt,On,ye.mk,Cn.oO],pipes:[ye.JJ],styles:[".dots-stepper-block[_ngcontent-%COMP%]{width:3rem}.info-graphics-container[_ngcontent-%COMP%]{max-height:60rem;min-height:60rem}"],data:{animation:[xi._]}}),X})();function va(X,He){1&X&&t._UZ(0,"mat-progress-bar",32)}function us(X,He){1&X&&(t.TgZ(0,"th",33),t._uU(1," Status "),t.qZA())}function Jc(X,He){if(1&X&&(t.TgZ(0,"td",34),t._uU(1),t.qZA()),2&X){const B=He.$implicit,Ae=t.oxw();t.xp6(1),t.Oqu(Ae.swapStateEnum[B.status])}}function Vs(X,He){1&X&&(t.TgZ(0,"th",33),t._uU(1," Swap ID "),t.qZA())}function no(X,He){if(1&X&&(t.TgZ(0,"td",34),t._uU(1),t.qZA()),2&X){const B=He.$implicit;t.xp6(1),t.Oqu(B.id)}}function tl(X,He){1&X&&(t.TgZ(0,"th",33),t._uU(1," Claim Address "),t.qZA())}function cc(X,He){if(1&X&&(t.TgZ(0,"td",34),t._uU(1),t.qZA()),2&X){const B=He.$implicit;t.xp6(1),t.Oqu(B.claimAddress)}}function hc(X,He){1&X&&(t.TgZ(0,"th",35),t._uU(1," Onchain Amount (Sats) "),t.qZA())}function Xc(X,He){if(1&X&&(t.TgZ(0,"td",34),t.TgZ(1,"span",36),t._uU(2),t.ALo(3,"number"),t.qZA(),t.qZA()),2&X){const B=He.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,B.onchainAmount))}}function $c(X,He){1&X&&(t.TgZ(0,"th",33),t._uU(1," Lockup Address "),t.qZA())}function Lo(X,He){if(1&X&&(t.TgZ(0,"td",34),t._uU(1),t.qZA()),2&X){const B=He.$implicit;t.xp6(1),t.Oqu(B.lockupAddress)}}function il(X,He){1&X&&(t.TgZ(0,"th",35),t._uU(1," Expected Amount (Sats) "),t.qZA())}function nl(X,He){if(1&X&&(t.TgZ(0,"td",34),t.TgZ(1,"span",36),t._uU(2),t.ALo(3,"number"),t.qZA(),t.qZA()),2&X){const B=He.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,B.expectedAmount))}}function Oo(X,He){1&X&&(t.TgZ(0,"th",35),t._uU(1," Timeout Block Height "),t.qZA())}function Ll(X,He){if(1&X&&(t.TgZ(0,"td",34),t.TgZ(1,"span",36),t._uU(2),t.ALo(3,"number"),t.qZA(),t.qZA()),2&X){const B=He.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,B.timeoutBlockHeight))}}function Io(X,He){1&X&&(t.TgZ(0,"th",35),t._uU(1," Amount (Sats) "),t.qZA())}function ro(X,He){if(1&X&&(t.TgZ(0,"td",34),t.TgZ(1,"span",36),t._uU(2),t.ALo(3,"number"),t.qZA(),t.qZA()),2&X){const B=He.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,B.amt))}}function dc(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"th",37),t.TgZ(1,"div",38),t.TgZ(2,"mat-select",39),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",40),t.NdJ("click",function(){return t.CHM(B),t.oxw().onDownloadCSV()}),t._uU(5,"Download CSV"),t.qZA(),t.qZA(),t.qZA(),t.qZA()}}function Gs(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"td",41),t.TgZ(1,"button",42),t.NdJ("click",function(pt){const In=t.CHM(B).$implicit;return t.oxw().onSwapClick(In,pt)}),t._uU(2,"View Info"),t.qZA(),t.qZA()}}function rl(X,He){if(1&X&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&X){const B=t.oxw(2);t.xp6(1),t.Oqu(B.emptyTableMessage)}}function al(X,He){if(1&X&&(t.TgZ(0,"td",43),t.YNc(1,rl,2,1,"p",44),t.qZA()),2&X){const B=t.oxw();t.xp6(1),t.Q6J("ngIf",!(null!=B.listSwaps&&B.listSwaps.data)||(null==B.listSwaps||null==B.listSwaps.data?null:B.listSwaps.data.length)<1)}}const Ye=function(X){return{"display-none":X}};function Te(X,He){if(1&X&&t._UZ(0,"tr",45),2&X){const B=t.oxw();t.Q6J("ngClass",t.VKq(1,Ye,(null==B.listSwaps?null:B.listSwaps.data)&&(null==B.listSwaps||null==B.listSwaps.data?null:B.listSwaps.data.length)>0))}}function be(X,He){1&X&&t._UZ(0,"tr",46)}function $e(X,He){1&X&&t._UZ(0,"tr",47)}const dt=function(X){return{"overflow-auto error-border":X,"overflow-auto":!0}},Ot=function(){return["no_swap"]};let qt=(()=>{class X{constructor(B,Ae,pt,fi){this.logger=B,this.commonService=Ae,this.store=pt,this.boltzService=fi,this.selectedSwapType=K.hc.SWAP_OUT,this.swapsData=[],this.flgLoading=[!0],this.emptyTableMessage="No swaps available.",this.swapStateEnum=K.Qw,this.faHistory=x.qO$,this.swapCaption="Swap Out",this.displayedColumns=[],this.selFilter="",this.flgSticky=!1,this.pageSize=K.IV,this.pageSizeOptions=K.TJ,this.screenSize="",this.screenSizeEnum=K.cu,this.unSubs=[new s.x,new s.x,new s.x],this.screenSize=this.commonService.getScreenSize(),this.setTableColumns()}ngAfterViewInit(){this.swapsData&&this.swapsData.length>0&&this.loadSwapsTable(this.swapsData)}ngOnChanges(B){B.selectedSwapType&&!B.selectedSwapType.firstChange&&this.setTableColumns(),this.swapCaption=this.selectedSwapType===K.hc.SWAP_IN?"Swap In":"Swap Out",this.loadSwapsTable(this.swapsData)}setTableColumns(){this.screenSize===K.cu.XS||this.screenSize===K.cu.SM?(this.flgSticky=!1,this.displayedColumns=this.selectedSwapType===K.hc.SWAP_IN?["status","id","expectedAmount","actions"]:["status","id","onchainAmount","actions"]):this.screenSize===K.cu.MD?(this.flgSticky=!1,this.displayedColumns=this.selectedSwapType===K.hc.SWAP_IN?["status","id","expectedAmount","timeoutBlockHeight","actions"]:["status","id","onchainAmount","timeoutBlockHeight","actions"]):(this.flgSticky=!0,this.displayedColumns=this.selectedSwapType===K.hc.SWAP_IN?["status","id","lockupAddress","expectedAmount","timeoutBlockHeight","actions"]:["status","id","claimAddress","onchainAmount","timeoutBlockHeight","actions"])}applyFilter(){this.listSwaps&&""!==this.selFilter&&(this.listSwaps.filter=this.selFilter.trim().toLowerCase())}onSwapClick(B,Ae){this.boltzService.swapInfo(B.id).pipe((0,b.R)(this.unSubs[1])).subscribe(pt=>{this.store.dispatch((0,Me.qR)({payload:{data:{type:K.n_.INFORMATION,alertTitle:this.swapCaption+" Status",message:[[{key:"status",value:K.Qw[(pt=this.selectedSwapType===K.hc.SWAP_IN?pt.swap:pt.reverseSwap).status],title:"Status",width:50,type:K.Gi.STRING},{key:"id",value:pt.id,title:"ID",width:50,type:K.Gi.STRING}],[{key:"amount",value:pt.onchainAmount?pt.onchainAmount:pt.expectedAmount?pt.expectedAmount:0,title:pt.onchainAmount?"Onchain Amount (Sats)":pt.expectedAmount?"Expected Amount (Sats)":"Amount (Sats)",width:50,type:K.Gi.NUMBER},{key:"timeoutBlockHeight",value:pt.timeoutBlockHeight,title:"Timeout Block Height",width:50,type:K.Gi.NUMBER}],[{key:"address",value:pt.claimAddress?pt.claimAddress:pt.lockupAddress?pt.lockupAddress:"",title:pt.claimAddress?"Claim Address":pt.lockupAddress?"Lockup Address":"Address",width:100,type:K.Gi.STRING}],[{key:"invoice",value:pt.invoice,title:"Invoice",width:100,type:K.Gi.STRING}],[{key:"privateKey",value:pt.privateKey,title:"Private Key",width:100,type:K.Gi.STRING}],[{key:"preimage",value:pt.preimage,title:"Preimage",width:100,type:K.Gi.STRING}],[{key:"redeemScript",value:pt.redeemScript,title:"Redeem Script",width:100,type:K.Gi.STRING}],[{key:"lockupTransactionId",value:pt.lockupTransactionId,title:"Lockup Transaction ID",width:50,type:K.Gi.STRING},{key:"transactionId",value:pt.claimTransactionId?pt.claimTransactionId:pt.refundTransactionId?pt.refundTransactionId:"",title:pt.claimTransactionId?"Claim Transaction ID":pt.refundTransactionId?"Refund Transaction ID":"Transaction ID",width:50,type:K.Gi.STRING}]],openedBy:"SWAP"}}}))})}loadSwapsTable(B){this.listSwaps=new vn.by(B?[...B]:[]),this.listSwaps.sort=this.sort,this.listSwaps.sortingDataAccessor=(Ae,pt)=>Ae[pt]&&isNaN(Ae[pt])?Ae[pt].toLocaleLowerCase():Ae[pt]?+Ae[pt]:null,this.listSwaps.filterPredicate=(Ae,pt)=>JSON.stringify(Ae).toLowerCase().includes(pt),this.paginator&&this.paginator.firstPage(),this.listSwaps.paginator=this.paginator,this.applyFilter(),this.logger.info(this.listSwaps)}onDownloadCSV(){this.listSwaps.data&&this.listSwaps.data.length>0&&this.commonService.downloadFile(this.listSwaps.data,this.selectedSwapType===K.hc.SWAP_IN?"Swap in":"Swap out")}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(we.mQ),t.Y36(Ci.v),t.Y36(M.yh),t.Y36(Un))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-boltz-swaps"]],viewQuery:function(B,Ae){if(1&B&&(t.Gf(Kn.YE,5),t.Gf(kr.NW,5)),2&B){let pt;t.iGM(pt=t.CRH())&&(Ae.sort=pt.first),t.iGM(pt=t.CRH())&&(Ae.paginator=pt.first)}},inputs:{selectedSwapType:"selectedSwapType",swapsData:"swapsData",flgLoading:"flgLoading",emptyTableMessage:"emptyTableMessage"},features:[t._Bn([{provide:kr.ye,useValue:(0,K.pt)("Swaps")}]),t.TTD],decls:46,vars:16,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start start",1,"card-content-gap"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch","fxFlex","100",1,"page-sub-title-container","w-100"],["fxFlex","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","row","fxLayoutAlign","start center",1,"w-100"],["fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","status"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","id"],["matColumnDef","claimAddress"],["matColumnDef","onchainAmount"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","lockupAddress"],["matColumnDef","expectedAmount"],["matColumnDef","timeoutBlockHeight"],["matColumnDef","amt"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-3","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_swap"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(B,Ae){1&B&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.TgZ(2,"div",2),t._UZ(3,"fa-icon",3),t.TgZ(4,"span",4),t._uU(5),t.qZA(),t.qZA(),t.TgZ(6,"mat-form-field",5),t.TgZ(7,"input",6),t.NdJ("keyup",function(){return Ae.applyFilter()})("ngModelChange",function(fi){return Ae.selFilter=fi}),t.qZA(),t.qZA(),t.qZA(),t.TgZ(8,"div",7),t.TgZ(9,"div",8),t.YNc(10,va,1,0,"mat-progress-bar",9),t.TgZ(11,"table",10,11),t.ynx(13,12),t.YNc(14,us,2,0,"th",13),t.YNc(15,Jc,2,1,"td",14),t.BQk(),t.ynx(16,15),t.YNc(17,Vs,2,0,"th",13),t.YNc(18,no,2,1,"td",14),t.BQk(),t.ynx(19,16),t.YNc(20,tl,2,0,"th",13),t.YNc(21,cc,2,1,"td",14),t.BQk(),t.ynx(22,17),t.YNc(23,hc,2,0,"th",18),t.YNc(24,Xc,4,3,"td",14),t.BQk(),t.ynx(25,19),t.YNc(26,$c,2,0,"th",13),t.YNc(27,Lo,2,1,"td",14),t.BQk(),t.ynx(28,20),t.YNc(29,il,2,0,"th",18),t.YNc(30,nl,4,3,"td",14),t.BQk(),t.ynx(31,21),t.YNc(32,Oo,2,0,"th",18),t.YNc(33,Ll,4,3,"td",14),t.BQk(),t.ynx(34,22),t.YNc(35,Io,2,0,"th",18),t.YNc(36,ro,4,3,"td",14),t.BQk(),t.ynx(37,23),t.YNc(38,dc,6,0,"th",24),t.YNc(39,Gs,3,0,"td",25),t.BQk(),t.ynx(40,26),t.YNc(41,al,2,1,"td",27),t.BQk(),t.YNc(42,Te,1,3,"tr",28),t.YNc(43,be,1,0,"tr",29),t.YNc(44,$e,1,0,"tr",30),t.qZA(),t._UZ(45,"mat-paginator",31),t.qZA(),t.qZA(),t.qZA()),2&B&&(t.xp6(3),t.Q6J("icon",Ae.faHistory),t.xp6(2),t.hij("",Ae.swapCaption," History"),t.xp6(2),t.Q6J("ngModel",Ae.selFilter),t.xp6(3),t.Q6J("ngIf",!0===Ae.flgLoading[0]),t.xp6(1),t.Q6J("dataSource",Ae.listSwaps)("ngClass",t.VKq(13,dt,"error"===Ae.flgLoading[0])),t.xp6(31),t.Q6J("matFooterRowDef",t.DdM(15,Ot)),t.xp6(1),t.Q6J("matHeaderRowDef",Ae.displayedColumns)("matHeaderRowDefSticky",Ae.flgSticky),t.xp6(1),t.Q6J("matRowDefColumns",Ae.displayedColumns),t.xp6(1),t.Q6J("pageSize",Ae.pageSize)("pageSizeOptions",Ae.pageSizeOptions)("showFirstLastButtons",Ae.screenSize!==Ae.screenSizeEnum.XS))},directives:[v.xw,v.yH,v.Wh,G.BN,vt.KE,rt.Nt,Ge.Fj,Ge.JJ,Ge.On,z.$V,ye.O5,vn.BZ,Kn.YE,ye.mk,Cn.oO,vn.w1,vn.fO,vn.Dz,vn.mD,vn.Ke,vn.as,vn.nj,kr.NW,Qn.pW,vn.ge,Kn.nU,vn.ev,Re.gD,Re.$L,Le.ey,he.lW,vn.yh,vn.Q2,vn.XQ,vn.Gk],pipes:[ye.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),X})();const ii=function(X){return["../",X]};function Ei(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",15),t.NdJ("click",function(){const fi=t.CHM(B).$implicit;return t.oxw().onSelectedIndexChange(fi)}),t._uU(1),t.qZA()}if(2&X){const B=He.$implicit,Ae=t.oxw();t.Q6J("active",Ae.activeTab.link===B.link)("routerLink",t.VKq(3,ii,B.link)),t.xp6(1),t.Oqu(B.name)}}let an=(()=>{class X{constructor(B,Ae,pt){this.router=B,this.store=Ae,this.boltzService=pt,this.swapTypeEnum=K.hc,this.selectedSwapType=K.hc.SWAP_OUT,this.swaps={},this.swapsData=[],this.emptyTableMessage="No swap data available.",this.flgLoading=[!0],this.links=[{link:"swapout",name:"Swap Out"},{link:"swapin",name:"Swap In"}],this.activeTab=this.links[0],this.unSubs=[new s.x,new s.x,new s.x,new s.x]}ngOnInit(){this.boltzService.listSwaps();const B=this.links.find(Ae=>this.router.url.includes(Ae.link));this.activeTab=B||this.links[0],this.selectedSwapType=B&&"swapin"===B.link?K.hc.SWAP_IN:K.hc.SWAP_OUT,this.router.events.pipe((0,b.R)(this.unSubs[0]),(0,de.h)(Ae=>Ae instanceof I.Av)).subscribe({next:Ae=>{const pt=this.links.find(fi=>Ae.urlAfterRedirects.includes(fi.link));this.activeTab=pt||this.links[0],this.selectedSwapType=pt&&"swapin"===pt.link?K.hc.SWAP_IN:K.hc.SWAP_OUT}}),this.boltzService.swapsChanged.pipe((0,b.R)(this.unSubs[1])).subscribe({next:Ae=>{this.swaps=Ae,this.swapsData=this.selectedSwapType===K.hc.SWAP_IN?Ae.swaps:Ae.reverseSwaps,this.flgLoading[0]=!1},error:Ae=>{this.flgLoading[0]="error",this.emptyTableMessage=Ae.message?Ae.message:"No swap "+(this.selectedSwapType===K.hc.SWAP_IN?"in":"out")+" available."}})}onSelectedIndexChange(B){"swapin"===B.link?(this.selectedSwapType=K.hc.SWAP_IN,this.swapsData=this.swaps.swaps):(this.selectedSwapType=K.hc.SWAP_OUT,this.swapsData=this.swaps.reverseSwaps)}onSwap(B){this.boltzService.serviceInfo().pipe((0,b.R)(this.unSubs[2])).subscribe({next:Ae=>{this.store.dispatch((0,Me.qR)({payload:{data:{serviceInfo:Ae,direction:B,component:Zs}}}))}})}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(I.F0),t.Y36(M.yh),t.Y36(Un))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-boltz-root"]],decls:18,vars:6,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],["viewBox","0 0 78 78","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",1,"botlz-icon-sm","mr-1"],["id","Logo","stroke","none","stroke-width","1","fill","none","fill-rule","evenodd"],["id","Group"],["id","Oval","cx","39","cy","39","r","37.5",1,"boltz-icon"],["d","M36.4583326,43.7755404 L40.53965,35.2316544 L39.4324865,35.2316544 L46.0754873,17.6071752 C46.292579,17.0204094 46.3287609,16.5159331 46.1840331,16.0937464 C46.0393053,15.671561 45.7860319,15.3674444 45.4242131,15.1813966 C45.0623942,14.9953487 44.6535376,14.9524146 44.1976433,15.0525945 C43.7417511,15.1527743 43.3256596,15.4461573 42.9493689,15.9327433 L22.6078557,40.7701025 C22.2026186,41.2710003 22,41.7575877 22,42.2298646 C22,42.6735173 22.1592003,43.0420366 22.477601,43.3354226 C22.7960017,43.6288058 23.1940025,43.7755404 23.6716036,43.7755404 L36.4583326,43.7755404 Z","id","Path",1,"boltz-icon-fill"],["d","M44.4883879,63.7755404 L48.8604707,55.165009 L47.6744296,55.165009 L54.7906978,37.4030526 C55.0232558,36.8117097 55.0620155,36.3032983 54.9069768,35.8778185 C54.7519381,35.4523399 54.4806208,35.1458511 54.0930248,34.958352 C53.7054289,34.7708528 53.2674441,34.7275839 52.7790706,34.8285452 C52.2906992,34.9295065 51.8449641,35.2251779 51.4418653,35.7155595 L29.6511611,60.746659 C29.2170537,61.251464 29,61.7418469 29,62.2178078 C29,62.6649211 29.1705423,63.036315 29.5116268,63.3319895 C29.8527113,63.6276613 30.2790669,63.7755404 30.7906936,63.7755404 L44.4883879,63.7755404 Z","id","Path-Copy","transform","translate(42.000000, 49.275540) rotate(-180.000000) translate(-42.000000, -49.275540) ",1,"boltz-icon-fill"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start start",1,"padding-gap-x-large","mt-1"],["mat-flat-button","","color","primary","type","button","tabindex","1",3,"click"],["fxLayout","row","fxFlex","100",3,"selectedSwapType","swapsData","flgLoading","emptyTableMessage"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(B,Ae){1&B&&(t.TgZ(0,"div",0),t.O4$(),t.TgZ(1,"svg",1),t.TgZ(2,"g",2),t.TgZ(3,"g",3),t._UZ(4,"circle",4),t._UZ(5,"path",5),t._UZ(6,"path",6),t.qZA(),t.qZA(),t.qZA(),t.kcU(),t.TgZ(7,"span",7),t._uU(8,"Boltz"),t.qZA(),t.qZA(),t.TgZ(9,"div",8),t.TgZ(10,"mat-card"),t.TgZ(11,"mat-card-content",9),t.TgZ(12,"nav",10),t.YNc(13,Ei,2,5,"div",11),t.qZA(),t.TgZ(14,"div",12),t.TgZ(15,"button",13),t.NdJ("click",function(){return Ae.onSwap(Ae.selectedSwapType)}),t._uU(16),t.qZA(),t.qZA(),t._UZ(17,"rtl-boltz-swaps",14),t.qZA(),t.qZA(),t.qZA()),2&B&&(t.xp6(13),t.Q6J("ngForOf",Ae.links),t.xp6(3),t.hij("Start ",Ae.activeTab.name,""),t.xp6(1),t.Q6J("selectedSwapType",Ae.selectedSwapType)("swapsData",Ae.swapsData)("flgLoading",Ae.flgLoading)("emptyTableMessage",Ae.emptyTableMessage))},directives:[v.xw,v.Wh,F.a8,F.dn,v.yH,U.BU,ye.sg,he.lW,qt,U.Nj,I.rH],styles:[""]}),X})();class ea{constructor(He){this.help=He}}function ys(X,He){if(1&X&&(t.TgZ(0,"mat-expansion-panel",8),t.TgZ(1,"mat-expansion-panel-header"),t.TgZ(2,"mat-panel-title"),t._uU(3),t.qZA(),t.qZA(),t.TgZ(4,"mat-panel-description",9),t._UZ(5,"span",10),t.TgZ(6,"a",11),t._uU(7),t.qZA(),t.qZA(),t.qZA()),2&X){const B=t.oxw().$implicit,Ae=t.oxw();t.xp6(3),t.Oqu(B.help.question),t.xp6(2),t.Q6J("innerHTML",B.help.answer,t.oJD),t.xp6(1),t.Q6J("routerLink",Ae.flgLoggedIn?Ae.LNPLink+B.help.link:"/login"),t.xp6(1),t.Oqu(Ae.flgLoggedIn?B.help.linkCaption:"Login to go to the page")}}function fs(X,He){if(1&X&&(t.TgZ(0,"div",6),t.YNc(1,ys,8,4,"mat-expansion-panel",7),t.qZA()),2&X){const B=He.$implicit,Ae=t.oxw();t.xp6(1),t.Q6J("ngIf","ALL"===B.help.lnImplementation||B.help.lnImplementation===Ae.selNode.lnImplementation)}}let Ps=(()=>{class X{constructor(B,Ae){this.store=B,this.sessionService=Ae,this.helpTopics=[],this.faQuestion=x.Psp,this.LNPLink="/lnd/",this.flgLoggedIn=!1,this.unSubs=[new s.x,new s.x,new s.x,new s.x],this.helpTopics.push(new ea({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 ea({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 ea({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 ea({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 ea({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 ea({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 ea({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 ea({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 ea({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 ea({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 ea({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 ea({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(r.dT).pipe((0,b.R)(this.unSubs[0])).subscribe(B=>{switch(this.selNode=B,this.selNode.lnImplementation.toUpperCase()){case"CLN":this.LNPLink="/cln/";break;case"ECL":this.LNPLink="/ecl/";break;default:this.LNPLink="/lnd/"}}),this.sessionService.watchSession().pipe((0,b.R)(this.unSubs[1])).subscribe(B=>{this.flgLoggedIn=!!B.token}),this.sessionService.getItem("token")&&(this.flgLoggedIn=!0)}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(M.yh),t.Y36(Pe.m))},X.\u0275cmp=t.Xpm({type:X,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(B,Ae){1&B&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t._UZ(2,"fa-icon",2),t.TgZ(3,"span",3),t._uU(4,"Help"),t.qZA(),t.qZA(),t.TgZ(5,"div",4),t.TgZ(6,"div",0),t.YNc(7,fs,2,1,"div",5),t.qZA(),t.qZA(),t.qZA()),2&B&&(t.xp6(2),t.Q6J("icon",Ae.faQuestion),t.xp6(5),t.Q6J("ngForOf",Ae.helpTopics))},directives:[v.xw,v.yH,v.Wh,G.BN,ye.sg,ye.O5,Rn.ib,Rn.yz,Rn.yK,Rn.u4,I.yS],styles:[".mat-card-content[_ngcontent-%COMP%]{margin-bottom:4px}"]}),X})();var bs=m(9841);function Ea(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Token is required."),t.qZA())}let Ol=(()=>{class X{constructor(B,Ae){this.dialogRef=B,this.store=Ae,this.faUserClock=x.hnx,this.token=""}onClose(){this.dialogRef.close(null)}onVerifyToken(){if(!this.token)return!0;this.dialogRef.close(),this.store.dispatch((0,Me.M6)({payload:{twoFAToken:this.token}}))}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(Ue.so),t.Y36(M.yh))},X.\u0275cmp=t.Xpm({type:X,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(B,Ae){1&B&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.TgZ(2,"mat-card-header",2),t.TgZ(3,"div",3),t.TgZ(4,"span",4),t._uU(5,"Two Factor Token"),t.qZA(),t.qZA(),t.TgZ(6,"button",5),t.NdJ("click",function(){return Ae.onClose()}),t._uU(7,"X"),t.qZA(),t.qZA(),t.TgZ(8,"mat-card-content",6),t.TgZ(9,"form",7,8),t.NdJ("ngSubmit",function(){return Ae.onVerifyToken()}),t.TgZ(11,"mat-form-field"),t.TgZ(12,"input",9),t.NdJ("ngModelChange",function(fi){return Ae.token=fi}),t.qZA(),t.YNc(13,Ea,2,0,"mat-error",10),t.qZA(),t.TgZ(14,"div",11),t.TgZ(15,"button",12),t._uU(16,"Verify Token"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&B&&(t.xp6(12),t.Q6J("ngModel",Ae.token),t.xp6(1),t.Q6J("ngIf",!Ae.token))},directives:[v.xw,v.Wh,v.yH,F.dk,he.lW,F.dn,Ge._Y,Ge.JL,Ge.F,vt.KE,rt.Nt,Ge.Fj,Ne.h,Ge.Q7,Ge.JJ,Ge.On,ye.O5,vt.TO],styles:[""]}),X})();function yo(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Password is required."),t.qZA())}function so(X,He){if(1&X&&(t.TgZ(0,"p",21),t.TgZ(1,"mat-icon",22),t._uU(2,"close"),t.qZA(),t._uU(3),t.qZA()),2&X){const B=t.oxw();t.xp6(3),t.hij(" ",B.loginErrorMessage," ")}}const e1=function(X){return{"padding-gap-large":X}},t1=function(X,He){return{"font-size-200":X,"font-size-300":He}};let ko=(()=>{class X{constructor(B,Ae,pt,fi){this.logger=B,this.store=Ae,this.rtlEffects=pt,this.commonService=fi,this.faUnlockAlt=x.B$L,this.password="",this.rtlSSO=0,this.rtlCookiePath="",this.accessKey="",this.flgShow=!1,this.screenSize="",this.screenSizeEnum=K.cu,this.loginErrorMessage="",this.apiCallStatusEnum=K.Bn,this.unSubs=[new s.x,new s.x,new s.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),(0,bs.a)([this.store.select(r.ul),this.store.select(r.Sr)]).pipe((0,b.R)(this.unSubs[0])).subscribe(([B,Ae])=>{this.loginErrorMessage="",B.status===K.Bn.ERROR&&(this.loginErrorMessage=this.loginErrorMessage+("object"==typeof B.message?JSON.stringify(B.message):B.message),this.logger.error(B.message)),Ae.status===K.Bn.ERROR&&(this.loginErrorMessage=this.loginErrorMessage+("object"==typeof Ae.message?JSON.stringify(Ae.message):Ae.message),this.logger.error(Ae.message))}),this.store.select(r.Yj).pipe((0,b.R)(this.unSubs[1])).subscribe(B=>{this.appConfig=B,this.logger.info(B)})}onLogin(){if(!this.password)return!0;this.loginErrorMessage="",this.appConfig.enable2FA?(this.store.dispatch((0,Me.qR)({payload:{maxWidth:"35rem",data:{component:Ol}}})),this.rtlEffects.closeAlert.pipe((0,xe.q)(1)).subscribe(B=>{B&&this.store.dispatch((0,Me.x4)({payload:{password:le(this.password),defaultPassword:K.kO.includes(this.password.toLowerCase()),twoFAToken:B.twoFAToken}}))})):this.store.dispatch((0,Me.x4)({payload:{password:le(this.password),defaultPassword:K.kO.includes(this.password.toLowerCase())}}))}resetData(){this.password="",this.loginErrorMessage="",this.flgShow=!1}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(we.mQ),t.Y36(M.yh),t.Y36(nt.V),t.Y36(Ci.v))},X.\u0275cmp=t.Xpm({type:X,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(B,Ae){1&B&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.TgZ(2,"mat-card",2),t.TgZ(3,"div",3),t.TgZ(4,"div",4),t._UZ(5,"img",5),t.qZA(),t.TgZ(6,"div",6),t.TgZ(7,"mat-card-header",7),t.TgZ(8,"mat-card-title",8),t.TgZ(9,"span",9),t._uU(10,"Welcome"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(11,"mat-card-content",10),t.TgZ(12,"form",11,12),t.TgZ(14,"mat-form-field",13),t.TgZ(15,"input",14),t.NdJ("ngModelChange",function(fi){return Ae.password=fi}),t.qZA(),t.TgZ(16,"mat-icon",15),t.NdJ("click",function(){return Ae.flgShow=!Ae.flgShow}),t._uU(17),t.qZA(),t.YNc(18,yo,2,0,"mat-error",16),t.qZA(),t.YNc(19,so,4,1,"p",17),t.TgZ(20,"div",18),t.TgZ(21,"button",19),t.NdJ("click",function(){return Ae.resetData()}),t._uU(22,"Clear"),t.qZA(),t.TgZ(23,"button",20),t.NdJ("click",function(){return Ae.onLogin()}),t._uU(24,"Login"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&B&&(t.xp6(6),t.Q6J("ngClass",t.VKq(7,e1,Ae.screenSize===Ae.screenSizeEnum.XS)),t.xp6(2),t.Q6J("ngClass",t.WLB(9,t1,Ae.screenSize===Ae.screenSizeEnum.XS,Ae.screenSize!==Ae.screenSizeEnum.XS)),t.xp6(7),t.Q6J("type",Ae.flgShow?"text":"password")("ngModel",Ae.password),t.xp6(2),t.Oqu(Ae.flgShow?"visibility_off":"visibility"),t.xp6(1),t.Q6J("ngIf",!Ae.password),t.xp6(1),t.Q6J("ngIf",""!==Ae.loginErrorMessage))},directives:[v.xw,v.yH,v.Wh,F.a8,ye.mk,Cn.oO,F.dk,F.n5,F.dn,Ge._Y,Ge.JL,Ge.F,vt.KE,rt.Nt,Ge.Fj,Ne.h,Ge.Q7,Ge.JJ,Ge.On,Mr.Hw,vt.R9,ye.O5,he.lW,vt.TO],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}"]}),X})();var Po=m(9442);let No=(()=>{class X{constructor(B,Ae){this.activatedRoute=B,this.router=Ae,this.error={errorCode:"",errorMessage:""},this.faTimes=x.NBC,this.unsubs=[new s.x,new s.x]}ngOnInit(){this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.activatedRoute.paramMap.pipe((0,b.R)(this.unsubs[0])).subscribe(B=>{this.error=window.history.state})}goToHelp(){this.router.navigate(["/help"])}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(I.gz),t.Y36(I.F0))},X.\u0275cmp=t.Xpm({type:X,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(B,Ae){1&B&&(t.TgZ(0,"div",0),t.TgZ(1,"mat-card",1),t.TgZ(2,"mat-card-header",2),t.TgZ(3,"mat-card-title",3),t._UZ(4,"fa-icon",4),t.TgZ(5,"span",5),t._uU(6),t.qZA(),t.qZA(),t.qZA(),t.TgZ(7,"mat-card-content",6),t.TgZ(8,"div",7),t._uU(9),t.qZA(),t.TgZ(10,"span",8),t.TgZ(11,"button",9),t.NdJ("click",function(){return Ae.goToHelp()}),t._uU(12,"Go To Help"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&B&&(t.xp6(4),t.Q6J("icon",Ae.faTimes),t.xp6(2),t.hij("Error ",Ae.error.errorCode,""),t.xp6(3),t.Oqu(Ae.error.errorMessage))},directives:[v.xw,v.yH,v.Wh,F.a8,F.dk,F.n5,G.BN,F.dn,he.lW],encapsulation:2}),X})();var ka=m(1643),uc=m(9828),bo=m(8104),n1=m(6534),d0=m(9843);function Yr(X,He){1&X&&t._UZ(0,"span",16)}function fc(X,He){1&X&&t._UZ(0,"span",17)}function u0(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"form",18,4),t.TgZ(2,"div",19),t._UZ(3,"fa-icon",2),t.TgZ(4,"span"),t._uU(5,"Please ensure that "),t.TgZ(6,"strong"),t._uU(7,"experimental-offers"),t.qZA(),t._uU(8," flag is set to true in the Core Lightning config before enabling it in RTL. Click "),t.TgZ(9,"strong"),t.TgZ(10,"a",20),t._uU(11,"here"),t.qZA(),t.qZA(),t._uU(12," to learn more about Core Lightning offers."),t.qZA(),t.qZA(),t.TgZ(13,"h4",21),t._uU(14,"Description"),t.qZA(),t.TgZ(15,"span"),t._uU(16,"Offers is a draft specification (also referred as BOLT12) for Lightning nodes and wallets, with experimental support in Core Lightning."),t.qZA(),t.TgZ(17,"h4",21),t._uU(18,"Links"),t.qZA(),t.TgZ(19,"span"),t.TgZ(20,"a",22),t._uU(21,"Core lightning Bolt12"),t.qZA(),t.qZA(),t._UZ(22,"mat-divider",23),t.TgZ(23,"div",24),t._UZ(24,"fa-icon",2),t.TgZ(25,"span"),t._uU(26,"Do not get an Offer tattoo until spec is fully ratified!"),t.qZA(),t.qZA(),t.TgZ(27,"mat-slide-toggle",25),t.NdJ("ngModelChange",function(pt){return t.CHM(B),t.oxw(2).enableOffers=pt})("change",function(){return t.CHM(B),t.oxw(2).onUpdateFeature()}),t._uU(28),t.qZA(),t.qZA()}if(2&X){const B=t.oxw(2);t.xp6(3),t.Q6J("icon",B.faInfoCircle),t.xp6(19),t.Q6J("inset",!0),t.xp6(2),t.Q6J("icon",B.faExclamationTriangle),t.xp6(3),t.Q6J("ngModel",B.enableOffers),t.xp6(1),t.hij("Enable Offers ",B.enableOffers?"(You can find Offers under Lightning -> Transactions -> Offers)":"","")}}function r1(X,He){if(1&X&&(t.TgZ(0,"mat-option",43),t._uU(1),t.ALo(2,"titlecase"),t.qZA()),2&X){const B=He.$implicit;t.Q6J("value",B),t.xp6(1),t.hij(" ",t.lcZ(2,2,B.id)," ")}}function sl(X,He){if(1&X&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&X){const B=t.oxw(3);t.xp6(1),t.hij("",B.selPolicyType.placeholder," is required.")}}function ol(X,He){if(1&X&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&X){const B=t.oxw(3);t.xp6(1),t.AsE("",B.selPolicyType.placeholder," must be greater than or equal to ",B.selPolicyType.min,".")}}function a1(X,He){if(1&X&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&X){const B=t.oxw(3);t.xp6(1),t.AsE("",B.selPolicyType.placeholder," must be less than or equal to ",B.selPolicyType.max,".")}}function qa(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Lease base fee is required."),t.qZA())}function aa(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Lease base basis is required."),t.qZA())}function f0(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Max channel routing base fee is required."),t.qZA())}function sa(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Max channel routing fee rate is required."),t.qZA())}function Ro(X,He){if(1&X&&(t.TgZ(0,"h4",44),t._uU(1),t.qZA()),2&X){const B=t.oxw(3);t.xp6(1),t.Oqu(B.updateMsg.error&&""!==B.updateMsg.error?"Error: "+B.updateMsg.error||0:B.updateMsg||"Successfully Updated the Funding Policy!")}}function oo(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"form",18,4),t.TgZ(2,"div",26),t._UZ(3,"fa-icon",2),t.TgZ(4,"span"),t._uU(5,"These config changes should be configured permanently via the config file on your CLN node otherwise the policy would need to be configured again, if your node restarts."),t.qZA(),t.qZA(),t.TgZ(6,"div",27),t.TgZ(7,"mat-form-field",28),t.TgZ(8,"mat-select",29),t.NdJ("ngModelChange",function(pt){return t.CHM(B),t.oxw(2).selPolicyType=pt})("selectionChange",function(){return t.CHM(B),t.oxw(2).policyMod=null}),t.YNc(9,r1,3,4,"mat-option",30),t.qZA(),t.qZA(),t.TgZ(10,"mat-form-field",31),t.TgZ(11,"input",32,33),t.NdJ("ngModelChange",function(pt){return t.CHM(B),t.oxw(2).policyMod=pt}),t.qZA(),t.TgZ(13,"mat-hint"),t._uU(14),t.qZA(),t.YNc(15,sl,2,1,"mat-error",34),t.YNc(16,ol,2,2,"mat-error",34),t.YNc(17,a1,2,2,"mat-error",34),t.qZA(),t.qZA(),t.TgZ(18,"div",27),t.TgZ(19,"mat-form-field",31),t.TgZ(20,"input",35),t.NdJ("ngModelChange",function(pt){return t.CHM(B),t.oxw(2).leaseFeeBaseSat=pt}),t.qZA(),t.YNc(21,qa,2,0,"mat-error",34),t.qZA(),t.TgZ(22,"mat-form-field",31),t.TgZ(23,"input",36),t.NdJ("ngModelChange",function(pt){return t.CHM(B),t.oxw(2).leaseFeeBasis=pt}),t.qZA(),t.YNc(24,aa,2,0,"mat-error",34),t.qZA(),t.qZA(),t.TgZ(25,"div",27),t.TgZ(26,"mat-form-field",31),t.TgZ(27,"input",37),t.NdJ("ngModelChange",function(pt){return t.CHM(B),t.oxw(2).channelFeeMaxBaseSat=pt}),t.qZA(),t.YNc(28,f0,2,0,"mat-error",34),t.qZA(),t.TgZ(29,"mat-form-field",31),t.TgZ(30,"input",38),t.NdJ("ngModelChange",function(pt){return t.CHM(B),t.oxw(2).channelFeeMaxProportional=pt}),t.qZA(),t.YNc(31,sa,2,0,"mat-error",34),t.qZA(),t.qZA(),t.YNc(32,Ro,2,1,"h4",39),t.TgZ(33,"div",40),t.TgZ(34,"button",41),t.NdJ("click",function(){return t.CHM(B),t.oxw(2).onResetPolicy()}),t._uU(35,"Reset"),t.qZA(),t.TgZ(36,"button",42),t.NdJ("click",function(){return t.CHM(B),t.oxw(2).onUpdateFundingPolicy()}),t._uU(37,"Update"),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw(2);t.xp6(3),t.Q6J("icon",B.faExclamationTriangle),t.xp6(5),t.Q6J("ngModel",B.selPolicyType),t.xp6(1),t.Q6J("ngForOf",B.policyTypes),t.xp6(2),t.Q6J("ngModel",B.policyMod)("placeholder",B.selPolicyType.placeholder)("step","fixed"===B.selPolicyType.id?1e3:10)("min",B.selPolicyType.min)("max",B.selPolicyType.max),t.xp6(3),t.lnq("",B.selPolicyType.placeholder," should be between ",B.selPolicyType.min," and ",B.selPolicyType.max,""),t.xp6(1),t.Q6J("ngIf",!B.policyMod),t.xp6(1),t.Q6J("ngIf",B.policyMod<B.selPolicyType.min),t.xp6(1),t.Q6J("ngIf",B.policyMod>B.selPolicyType.max),t.xp6(3),t.Q6J("ngModel",B.leaseFeeBaseSat),t.xp6(1),t.Q6J("ngIf",!B.leaseFeeBaseSat),t.xp6(2),t.Q6J("ngModel",B.leaseFeeBasis),t.xp6(1),t.Q6J("ngIf",!B.leaseFeeBasis),t.xp6(3),t.Q6J("ngModel",B.channelFeeMaxBaseSat),t.xp6(1),t.Q6J("ngIf",!B.channelFeeMaxBaseSat),t.xp6(2),t.Q6J("ngModel",B.channelFeeMaxProportional),t.xp6(1),t.Q6J("ngIf",!B.channelFeeMaxProportional),t.xp6(1),t.Q6J("ngIf",B.flgUpdateCalled)}}function uh(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"mat-expansion-panel",9),t.NdJ("opened",function(){const fi=t.CHM(B).index;return t.oxw().onPanelExpanded(fi)}),t.TgZ(1,"mat-expansion-panel-header"),t.TgZ(2,"mat-panel-title",10),t.TgZ(3,"h4",11),t._uU(4),t.qZA(),t.TgZ(5,"h4",11),t.YNc(6,Yr,1,0,"span",12),t.YNc(7,fc,1,0,"span",13),t._uU(8),t.qZA(),t.qZA(),t.qZA(),t.TgZ(9,"div",14),t.YNc(10,u0,29,5,"form",15),t.YNc(11,oo,38,23,"form",15),t.qZA(),t.qZA()}if(2&X){const B=He.$implicit,Ae=He.index;t.Q6J("expanded",!1),t.xp6(4),t.Oqu(B.name),t.xp6(2),t.Q6J("ngIf",B.enabled),t.xp6(1),t.Q6J("ngIf",!B.enabled),t.xp6(1),t.hij(" ",B.enabled?"Enabled":"Disabled"," "),t.xp6(2),t.Q6J("ngIf",0===Ae),t.xp6(1),t.Q6J("ngIf",1===Ae)}}const xs=I.Bz.forRoot([{path:"",pathMatch:"full",redirectTo:"login"},{path:"lnd",loadChildren:()=>Promise.all([m.e(893),m.e(636)]).then(m.bind(m,1636)).then(X=>X.LNDModule),canActivate:[ka.a1]},{path:"cln",loadChildren:()=>Promise.all([m.e(893),m.e(564)]).then(m.bind(m,9564)).then(X=>X.CLNModule),canActivate:[ka.a1]},{path:"ecl",loadChildren:()=>Promise.all([m.e(893),m.e(924)]).then(m.bind(m,7924)).then(X=>X.ECLModule),canActivate:[ka.a1]},{path:"settings",component:Ie,canActivate:[ka.a1],children:[{path:"",pathMatch:"full",redirectTo:"app"},{path:"app",component:$,canActivate:[ka.a1]},{path:"auth",component:Rt,canActivate:[ka.a1]},{path:"bconfig",component:_t,canActivate:[ka.a1]}]},{path:"config",component:Je,canActivate:[ka.a1],children:[{path:"",pathMatch:"full",redirectTo:"layout"},{path:"layout",component:Lr,canActivate:[ka.a1]},{path:"services",component:Gn,canActivate:[ka.a1],children:[{path:"",pathMatch:"full",redirectTo:"loop"},{path:"loop",component:xr,canActivate:[ka.a1]},{path:"boltz",component:Ir,canActivate:[ka.a1]}]},{path:"experimental",component:(()=>{class X{constructor(B,Ae,pt){this.logger=B,this.store=Ae,this.dataService=pt,this.faInfoCircle=x.sqG,this.faExclamationTriangle=x.eHv,this.faCode=x.dT$,this.features=[{name:"Offers",enabled:!1},{name:"Channel Funding Policy",enabled:!1}],this.enableOffers=!1,this.fundingPolicy=null,this.policyTypes=K.gB,this.selPolicyType=K.gB[0],this.flgUpdateCalled=!1,this.updateMsg="",this.unSubs=[new s.x,new s.x,new s.x,new s.x,new s.x]}ngOnInit(){this.dataService.listConfigs().pipe((0,b.R)(this.unSubs[0])).subscribe({next:B=>{this.logger.info("Received List Configs: "+JSON.stringify(B)),this.features[1].enabled=!!B["experimental-dual-fund"]},error:B=>{this.logger.error("List Configs Error: "+JSON.stringify(B)),this.features[1].enabled=!1}}),this.store.select(r.dT).pipe((0,b.R)(this.unSubs[1])).subscribe(B=>{this.selNode=B,this.enableOffers=this.selNode.settings.enableOffers,this.features[0].enabled=this.enableOffers,this.logger.info(this.selNode)}),this.store.select(uc.Rn).pipe((0,b.R)(this.unSubs[2])).subscribe(B=>{this.policyTypes[2].max=B.balance.totalBalance||1e3})}onPanelExpanded(B){1===B&&!this.fundingPolicy&&this.dataService.getOrUpdateFunderPolicy().pipe((0,b.R)(this.unSubs[3])).subscribe(Ae=>{this.logger.info("Received Funder Update Policy: "+JSON.stringify(Ae)),this.fundingPolicy=Ae,this.fundingPolicy.policy&&(this.selPolicyType=K.gB.find(pt=>pt.id===this.fundingPolicy.policy)),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,Me.jS)({payload:{uiMessage:K.m6.UPDATE_SETTING,service:K.JX.OFFERS,settings:{enableOffers:this.enableOffers}}})),this.store.dispatch((0,ui.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,Lt.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,gt.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=!1,this.updateMsg="",this.dataService.getOrUpdateFunderPolicy(this.selPolicyType.id,this.policyMod,this.leaseFeeBaseSat,this.leaseFeeBasis,1e3*this.channelFeeMaxBaseSat,this.channelFeeMaxProportional/1e3).pipe((0,b.R)(this.unSubs[4])).subscribe({next:B=>{this.logger.info(B),this.fundingPolicy=B,this.onResetPolicy(),this.updateMsg="Compact Lease: "+B.compact_lease},error:B=>{this.logger.error(B),this.updateMsg=JSON.stringify(B.error.error.message)}})}onResetPolicy(){this.flgUpdateCalled=!1,this.updateMsg="",this.selPolicyType=this.fundingPolicy.policy?K.gB.find(B=>B.id===this.fundingPolicy.policy):K.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(B=>{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(we.mQ),t.Y36(M.yh),t.Y36(bo.D))},X.\u0275cmp=t.Xpm({type:X,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"],["fxFlex","100","fxLayout","row",1,"alert","alert-warn"],["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"],[4,"ngIf"],["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","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",1,"font-bold-500","mt-2"]],template:function(B,Ae){1&B&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t._UZ(2,"fa-icon",2),t.TgZ(3,"span"),t._uU(4,"Experimental features should be enabled with caution. Many such features may be implementation specific and not ratified for the BOLT spec. Enabling these may still result in a broken experience. Referencing relevant feature documentation is highly advised before enabling."),t.qZA(),t.qZA(),t.TgZ(5,"form",3,4),t.TgZ(7,"div",5),t._UZ(8,"fa-icon",6),t.TgZ(9,"span",7),t._uU(10,"Features"),t.qZA(),t.qZA(),t.TgZ(11,"mat-accordion"),t.YNc(12,uh,12,7,"mat-expansion-panel",8),t.qZA(),t.qZA(),t.qZA()),2&B&&(t.xp6(2),t.Q6J("icon",Ae.faInfoCircle),t.xp6(6),t.Q6J("icon",Ae.faCode),t.xp6(4),t.Q6J("ngForOf",Ae.features))},directives:[v.xw,v.yH,z.$V,G.BN,Ge._Y,Ge.JL,Ge.F,v.Wh,Rn.pp,ye.sg,Rn.ib,Rn.yz,Rn.yK,ye.O5,Fe.d,Yi.Rr,Ne.h,Ge.JJ,Ge.On,vt.KE,Re.gD,rt.Nt,Ge.wV,Ge.qQ,Ge.Fd,Ge.Fj,n1.q,d0.F,Ge.Q7,vt.bx,he.lW,Le.ey,vt.TO],pipes:[ye.rS],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),X})(),canActivate:[ka.a1]},{path:"lnconfig",component:Kt,canActivate:[ka.a1]}]},{path:"services",component:Ga,canActivate:[ka.a1],children:[{path:"",pathMatch:"full",redirectTo:"loop"},{path:"loop",pathMatch:"full",redirectTo:"loop/loopout"},{path:"loop/:selTab",component:Yt},{path:"boltz",pathMatch:"full",redirectTo:"boltz/swapout"},{path:"boltz/:selTab",component:an}]},{path:"help",component:Ps},{path:"login",component:ko},{path:"error",component:No},{path:"**",component:Po.w}]);var s1=m(8750),Il=m(8878),Ws=m(4594),kl=m(2181);function p0(X,He){if(1&X&&(t.TgZ(0,"p",2),t._UZ(1,"fa-icon",3),t.TgZ(2,"span"),t._uU(3),t.qZA(),t.qZA()),2&X){const B=t.oxw();t.xp6(1),t.Q6J("icon",B.faCode),t.xp6(2),t.hij("API Version: ",null==B.information?null:B.information.api_version,"")}}function m0(X,He){if(1&X&&(t.TgZ(0,"a",11),t._UZ(1,"fa-icon",3),t.TgZ(2,"span",12),t._uU(3,"Settings"),t.qZA(),t.qZA()),2&X){const B=t.oxw();t.xp6(1),t.Q6J("icon",B.faUserCog)}}function o1(X,He){if(1&X&&(t.TgZ(0,"a",13),t._UZ(1,"fa-icon",3),t.TgZ(2,"span",14),t._uU(3,"Help"),t.qZA(),t.qZA()),2&X){const B=t.oxw();t.xp6(1),t.Q6J("icon",B.faLifeRing)}}function fh(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"a",15),t.NdJ("click",function(){return t.CHM(B),t.oxw().onClick()}),t._UZ(1,"fa-icon",3),t.TgZ(2,"span"),t._uU(3,"Logout"),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.xp6(1),t.Q6J("icon",B.faEject)}}let g0=(()=>{class X{constructor(B,Ae,pt,fi,In){this.logger=B,this.sessionService=Ae,this.store=pt,this.rtlEffects=fi,this.actions=In,this.faUserCog=x.gNZ,this.faCodeBranch=x.mh3,this.faCode=x.dT$,this.faCog=x.b7W,this.faLifeRing=x.uli,this.faEject=x.KOR,this.version="",this.information={},this.informationChain={},this.flgLoading=!0,this.showLogout=!1,this.unSubs=[new s.x,new s.x,new s.x,new s.x],this.version=Wi.q4}ngOnInit(){this.store.select(r.R4).pipe((0,b.R)(this.unSubs[0])).subscribe(B=>{if(this.information=B,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("object"==typeof this.information.chains[0]&&this.information.chains[0].hasOwnProperty("chain")){const Ae=this.information.chains[0];this.informationChain.chain=Ae.chain,this.informationChain.network=Ae.network}}else this.informationChain.chain="",this.informationChain.network="";this.logger.info(B)}),this.sessionService.watchSession().pipe((0,b.R)(this.unSubs[1])).subscribe(B=>{this.showLogout=!!B.token,this.flgLoading=!!B.token}),this.actions.pipe((0,b.R)(this.unSubs[2]),(0,de.h)(B=>B.type===K.pg.LOGOUT)).subscribe(()=>{this.showLogout=!1})}onClick(){this.store.dispatch((0,Me.c1)({payload:{data:{type:K.n_.CONFIRM,alertTitle:"Logout",titleMessage:"Logout from this device?",noBtnText:"Cancel",yesBtnText:"Logout"}}})),this.rtlEffects.closeConfirm.pipe((0,b.R)(this.unSubs[3])).subscribe(B=>{B&&(this.showLogout=!1,this.store.dispatch((0,Me.kS)()))})}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(we.mQ),t.Y36(Pe.m),t.Y36(M.yh),t.Y36(nt.V),t.Y36(l.eX))},X.\u0275cmp=t.Xpm({type:X,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(B,Ae){if(1&B&&(t.TgZ(0,"mat-menu",0,1),t.TgZ(2,"p",2),t._UZ(3,"fa-icon",3),t.TgZ(4,"span"),t._uU(5),t.qZA(),t.qZA(),t.YNc(6,p0,4,2,"p",4),t.YNc(7,m0,4,1,"a",5),t.YNc(8,o1,4,1,"a",6),t.YNc(9,fh,4,1,"a",7),t.qZA(),t.TgZ(10,"button",8),t._UZ(11,"img",9),t.TgZ(12,"mat-icon",10),t._uU(13,"arrow_drop_down"),t.qZA(),t.qZA()),2&B){const pt=t.MAs(1);t.Q6J("overlapTrigger",!1),t.xp6(3),t.Q6J("icon",Ae.faCodeBranch),t.xp6(2),t.hij("Version: ",Ae.version,""),t.xp6(1),t.Q6J("ngIf",null==Ae.information?null:Ae.information.api_version),t.xp6(1),t.Q6J("ngIf",Ae.showLogout),t.xp6(1),t.Q6J("ngIf",Ae.showLogout),t.xp6(1),t.Q6J("ngIf",Ae.showLogout),t.xp6(1),t.Q6J("matMenuTriggerFor",pt)}},directives:[kl.VK,kl.OP,G.BN,ye.O5,he.lW,kl.p6,Mr.Hw,I.yS,I.rH],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}),X})();var Ka=m(2638),Pl=m(8258),as=m(149);const js={LNDChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:x.HLz,link:"/lnd/home",userPersona:K.ol.ALL},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:x.nNP,link:"/lnd/onchain",userPersona:K.ol.ALL},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:x.BDt,link:"/lnd/connections",userPersona:K.ol.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:x.FVb,link:"/lnd/connections",userPersona:K.ol.ALL},{id:32,parentId:3,name:"Transactions",iconType:"FA",icon:x.Ssp,link:"/lnd/transactions",userPersona:K.ol.ALL},{id:33,parentId:3,name:"Routing",iconType:"FA",icon:x.SuH,link:"/lnd/routing",userPersona:K.ol.ALL},{id:34,parentId:3,name:"Reports",iconType:"FA",icon:x.koM,link:"/lnd/reports",userPersona:K.ol.ALL},{id:35,parentId:3,name:"Graph Lookup",iconType:"FA",icon:x.wn1,link:"/lnd/graph",userPersona:K.ol.ALL},{id:36,parentId:3,name:"Sign/Verify",iconType:"FA",icon:x.hkK,link:"/lnd/messages",userPersona:K.ol.ALL},{id:37,parentId:3,name:"Backup",iconType:"FA",icon:x.q7m,link:"/lnd/channelbackup",userPersona:K.ol.ALL},{id:38,parentId:3,name:"Network",iconType:"FA",icon:x.o4t,link:"/lnd/network",userPersona:K.ol.OPERATOR},{id:39,parentId:3,name:"Node/Network",iconType:"FA",icon:x.xf3,link:"/lnd/network",userPersona:K.ol.MERCHANT}]},{id:4,parentId:0,name:"Services",iconType:"FA",icon:x.Krp,link:"/services/loop",userPersona:K.ol.ALL,children:[{id:41,parentId:4,name:"Loop",iconType:"FA",icon:x.vqe,link:"/services/loop",userPersona:K.ol.ALL},{id:42,parentId:4,name:"Boltz",iconType:"SVG",icon:"boltzIconBlock",link:"/services/boltz",userPersona:K.ol.ALL}]},{id:5,parentId:0,name:"Node Config",iconType:"FA",icon:x.CgH,link:"/config",userPersona:K.ol.ALL},{id:6,parentId:0,name:"Help",iconType:"FA",icon:x.Psp,link:"/help",userPersona:K.ol.ALL}],CLNChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:x.HLz,link:"/cln/home",userPersona:K.ol.ALL},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:x.nNP,link:"/cln/onchain",userPersona:K.ol.ALL},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:x.BDt,link:"/cln/connections",userPersona:K.ol.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:x.FVb,link:"/cln/connections",userPersona:K.ol.ALL},{id:32,parentId:3,name:"Liquidity Ads",iconType:"FA",icon:x.Acd,link:"/cln/liquidityads",userPersona:K.ol.ALL},{id:33,parentId:3,name:"Transactions",iconType:"FA",icon:x.Ssp,link:"/cln/transactions",userPersona:K.ol.ALL},{id:34,parentId:3,name:"Routing",iconType:"FA",icon:x.SuH,link:"/cln/routing",userPersona:K.ol.ALL},{id:35,parentId:3,name:"Reports",iconType:"FA",icon:x.koM,link:"/cln/reports",userPersona:K.ol.ALL},{id:36,parentId:3,name:"Graph Lookup",iconType:"FA",icon:x.wn1,link:"/cln/graph",userPersona:K.ol.ALL},{id:37,parentId:3,name:"Sign/Verify",iconType:"FA",icon:x.hkK,link:"/cln/messages",userPersona:K.ol.ALL},{id:38,parentId:3,name:"Fee Rates",iconType:"FA",icon:x.USL,link:"/cln/rates",userPersona:K.ol.OPERATOR},{id:39,parentId:3,name:"Node/Fee Rates",iconType:"FA",icon:x.xf3,link:"/cln/rates",userPersona:K.ol.MERCHANT}]},{id:4,parentId:0,name:"Node Config",iconType:"FA",icon:x.CgH,link:"/config",userPersona:K.ol.ALL},{id:5,parentId:0,name:"Help",iconType:"FA",icon:x.Psp,link:"/help",userPersona:K.ol.ALL}],ECLChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:x.HLz,link:"/ecl/home",userPersona:K.ol.ALL},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:x.nNP,link:"/ecl/onchain",userPersona:K.ol.ALL},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:x.BDt,link:"/ecl/connections",userPersona:K.ol.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:x.FVb,link:"/ecl/connections",userPersona:K.ol.ALL},{id:32,parentId:3,name:"Transactions",iconType:"FA",icon:x.Ssp,link:"/ecl/transactions",userPersona:K.ol.ALL},{id:33,parentId:3,name:"Routing",iconType:"FA",icon:x.SuH,link:"/ecl/routing",userPersona:K.ol.ALL},{id:34,parentId:3,name:"Reports",iconType:"FA",icon:x.koM,link:"/ecl/reports",userPersona:K.ol.ALL},{id:35,parentId:3,name:"Graph Lookup",iconType:"FA",icon:x.wn1,link:"/ecl/graph",userPersona:K.ol.ALL}]},{id:4,parentId:0,name:"Node Config",iconType:"FA",icon:x.CgH,link:"/config",userPersona:K.ol.ALL},{id:5,parentId:0,name:"Help",iconType:"FA",icon:x.Psp,link:"/help",userPersona:K.ol.ALL}]};var l1=m(7238);function pc(X,He){if(1&X&&(t.TgZ(0,"mat-option",11),t._uU(1),t.qZA()),2&X){const B=He.$implicit;t.Q6J("value",B.index),t.xp6(1),t.AsE(" ",B.lnNode," (",B.lnImplementation,") ")}}function mc(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"mat-select",9),t.NdJ("selectionChange",function(pt){return t.CHM(B),t.oxw().onNodeSelectionChange(pt.value)}),t.YNc(1,pc,2,3,"mat-option",10),t.qZA()}if(2&X){const B=t.oxw();t.Q6J("value",B.selConfigNodeIndex),t.xp6(1),t.Q6J("ngForOf",B.appConfig.nodes)}}function gc(X,He){if(1&X&&(t.TgZ(0,"span",21),t.GkF(1,22),t.qZA()),2&X){const B=t.oxw().$implicit;t.oxw(2);const Ae=t.MAs(11);t.xp6(1),t.Q6J("ngTemplateOutlet","boltzIconBlock"===B.icon?Ae:null)}}function c1(X,He){if(1&X&&t._UZ(0,"fa-icon",23),2&X){const B=t.oxw().$implicit;t.Q6J("icon",B.icon)}}function Rl(X,He){if(1&X&&(t.TgZ(0,"mat-icon",24),t._uU(1),t.qZA()),2&X){const B=t.oxw().$implicit;t.xp6(1),t.Oqu(B.icon)}}function Fo(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"mat-tree-node",15),t.TgZ(1,"div",16),t.NdJ("click",function(){const fi=t.CHM(B).$implicit;return t.oxw(2).onChildNavClicked(fi)}),t.TgZ(2,"div",17),t.YNc(3,gc,2,1,"span",18),t.YNc(4,c1,1,1,"fa-icon",19),t.YNc(5,Rl,2,1,"mat-icon",20),t.TgZ(6,"span"),t._uU(7),t.qZA(),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=He.$implicit;t.s9C("routerLink",B.link),t.xp6(3),t.Q6J("ngIf","SVG"===B.iconType),t.xp6(1),t.Q6J("ngIf","FA"===B.iconType),t.xp6(1),t.Q6J("ngIf",!B.iconType),t.xp6(2),t.Oqu(B.name)}}function lo(X,He){if(1&X&&(t.TgZ(0,"span",33),t.GkF(1,22),t.qZA()),2&X){const B=t.oxw().$implicit;t.xp6(1),t.Q6J("ngTemplateOutlet",B.icon)}}function za(X,He){if(1&X&&t._UZ(0,"fa-icon",23),2&X){const B=t.oxw().$implicit;t.Q6J("icon",B.icon)}}function Cs(X,He){if(1&X&&(t.TgZ(0,"mat-icon",24),t._uU(1),t.qZA()),2&X){const B=t.oxw().$implicit;t.xp6(1),t.Oqu(B.icon)}}function Ns(X,He){if(1&X&&(t.TgZ(0,"mat-nested-tree-node",25),t.TgZ(1,"div",26),t.TgZ(2,"div",27),t.YNc(3,lo,2,1,"span",28),t.YNc(4,za,1,1,"fa-icon",19),t.YNc(5,Cs,2,1,"mat-icon",20),t.TgZ(6,"span"),t._uU(7),t.qZA(),t.qZA(),t.TgZ(8,"button",29),t.TgZ(9,"mat-icon",30),t._uU(10),t.qZA(),t.qZA(),t.qZA(),t.TgZ(11,"div",31),t.GkF(12,32),t.qZA(),t.qZA()),2&X){const B=He.$implicit,Ae=t.oxw(2);t.xp6(3),t.Q6J("ngIf","SVG"===B.iconType),t.xp6(1),t.Q6J("ngIf","FA"===B.iconType),t.xp6(1),t.Q6J("ngIf",!B.iconType),t.xp6(2),t.Oqu(B.name),t.xp6(1),t.uIk("aria-label","toggle "+B.name),t.xp6(2),t.Oqu(Ae.treeControlNested.isExpanded(B)?"arrow_drop_up":"arrow_drop_down"),t.xp6(1),t.ekj("tree-children-invisible",!Ae.treeControlNested.isExpanded(B))}}function _c(X,He){if(1&X&&(t.TgZ(0,"mat-tree",5,12),t.YNc(2,Fo,8,5,"mat-tree-node",13),t.YNc(3,Ns,13,8,"mat-nested-tree-node",14),t.qZA()),2&X){const B=t.oxw();t.Q6J("dataSource",B.navMenus)("treeControl",B.treeControlNested),t.xp6(3),t.Q6J("matTreeNodeDefWhen",B.hasChild)}}function h1(X,He){if(1&X&&(t.TgZ(0,"span",21),t.GkF(1,22),t.qZA()),2&X){const B=t.oxw().$implicit;t.xp6(1),t.Q6J("ngTemplateOutlet",B.icon)}}function vc(X,He){if(1&X&&t._UZ(0,"fa-icon",36),2&X){const B=t.oxw().$implicit;t.s9C("matTooltip",B.name),t.Q6J("icon",B.icon)}}function Fl(X,He){if(1&X&&(t.TgZ(0,"mat-icon",37),t._uU(1),t.qZA()),2&X){const B=t.oxw().$implicit;t.s9C("matTooltip",B.name),t.xp6(1),t.Oqu(B.icon)}}function yc(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"mat-tree-node",16),t.NdJ("click",function(){const fi=t.CHM(B).$implicit;return t.oxw().onShowData(fi)}),t.YNc(1,h1,2,1,"span",18),t.YNc(2,vc,1,2,"fa-icon",34),t.YNc(3,Fl,2,2,"mat-icon",35),t.TgZ(4,"span"),t._uU(5),t.qZA(),t.qZA()}if(2&X){const B=He.$implicit;t.xp6(1),t.Q6J("ngIf","SVG"===B.iconType),t.xp6(1),t.Q6J("ngIf","FA"===B.iconType),t.xp6(1),t.Q6J("ngIf",!B.iconType),t.xp6(2),t.Oqu(B.name)}}function ta(X,He){if(1&X&&(t.TgZ(0,"span",33),t.GkF(1,22),t.qZA()),2&X){const B=t.oxw().$implicit;t.xp6(1),t.Q6J("ngTemplateOutlet",B.icon)}}function ll(X,He){if(1&X&&t._UZ(0,"fa-icon",36),2&X){const B=t.oxw().$implicit;t.s9C("matTooltip",B.name),t.Q6J("icon",B.icon)}}function v0(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"mat-tree-node",16),t.NdJ("click",function(){const fi=t.CHM(B).$implicit;return t.oxw(2).onClick(fi)}),t.YNc(1,ta,2,1,"span",28),t.YNc(2,ll,1,2,"fa-icon",34),t.TgZ(3,"span"),t._uU(4),t.qZA(),t.qZA()}if(2&X){const B=He.$implicit;t.xp6(1),t.Q6J("ngIf","SVG"===B.iconType),t.xp6(1),t.Q6J("ngIf","FA"===B.iconType),t.xp6(2),t.Oqu(B.name)}}function Pa(X,He){if(1&X&&(t.TgZ(0,"mat-tree",5),t.YNc(1,v0,5,3,"mat-tree-node",6),t.qZA()),2&X){const B=t.oxw();t.Q6J("dataSource",B.navMenusLogout)("treeControl",B.treeControlLogout)}}function bc(X,He){1&X&&(t.O4$(),t.TgZ(0,"svg",38),t.TgZ(1,"g",39),t.TgZ(2,"g",40),t._UZ(3,"circle",41),t._UZ(4,"path",42),t._UZ(5,"path",43),t.qZA(),t.qZA(),t.qZA())}let cl=(()=>{class X{constructor(B,Ae,pt,fi,In,tr){this.logger=B,this.commonService=Ae,this.sessionService=pt,this.store=fi,this.actions=In,this.rtlEffects=tr,this.ChildNavClicked=new t.vpe,this.faEject=x.KOR,this.faEye=x.Mdf,this.version="",this.information={},this.informationChain={},this.flgLoading=!0,this.logoutNode=[{id:200,parentId:0,name:"Logout",iconType:"FA",icon:x.KOR}],this.showDataNodes=[{id:1e3,parentId:0,name:"Public Key",iconType:"FA",icon:x.Mdf}],this.showLogout=!1,this.numPendingChannels=0,this.smallScreen=!1,this.childRootRoute="",this.userPersonaEnum=K.ol,this.unSubs=[new s.x,new s.x,new s.x,new s.x,new s.x,new s.x],this.treeControlNested=new Pl.VY(Fn=>Fn.children),this.treeControlLogout=new Pl.VY(Fn=>Fn.children),this.treeControlShowData=new Pl.VY(Fn=>Fn.children),this.navMenus=new as.WX,this.navMenusLogout=new as.WX,this.navMenusShowData=new as.WX,this.hasChild=(Fn,Br)=>!!Br.children&&Br.children.length>0,this.version=Wi.q4,200===js.LNDChildren[js.LNDChildren.length-1].id&&js.LNDChildren.pop(),this.navMenus.data=js.LNDChildren,this.navMenusLogout.data=this.logoutNode,this.navMenusShowData.data=this.showDataNodes}ngOnInit(){const B=this.sessionService.getItem("token");this.showLogout=!!B,this.flgLoading=!!B,this.store.select(r.Yj).pipe((0,b.R)(this.unSubs[0])).subscribe(Ae=>{this.appConfig=Ae}),this.store.select(r.gW).pipe((0,b.R)(this.unSubs[1])).subscribe(Ae=>{if(this.information=Ae.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("object"==typeof this.information.chains[0]&&this.information.chains[0].hasOwnProperty("chain")){const pt=this.information.chains[0];this.informationChain.chain=pt.chain,this.informationChain.network=pt.network}}else this.informationChain.chain="",this.informationChain.network="";this.flgLoading=!this.information.identity_pubkey,window.innerWidth<=414&&(this.smallScreen=!0),this.selNode=Ae.selNode,this.settings=this.selNode.settings,this.selConfigNodeIndex=+Ae.selNode.index,this.selNode&&this.selNode.lnImplementation&&this.filterSideMenuNodes(),this.logger.info(Ae)}),this.sessionService.watchSession().pipe((0,b.R)(this.unSubs[2])).subscribe(Ae=>{this.showLogout=!!Ae.token,this.flgLoading=!!Ae.token}),this.actions.pipe((0,b.R)(this.unSubs[3]),(0,de.h)(Ae=>Ae.type===K.pg.LOGOUT)).subscribe(Ae=>{this.showLogout=!1})}onClick(B){"Logout"===B.name&&(this.store.dispatch((0,Me.c1)({payload:{data:{type:K.n_.CONFIRM,alertTitle:"Logout",titleMessage:"Logout from this device?",noBtnText:"Cancel",yesBtnText:"Logout"}}})),this.rtlEffects.closeConfirm.pipe((0,b.R)(this.unSubs[4])).subscribe(Ae=>{Ae&&(this.showLogout=!1,this.store.dispatch((0,Me.kS)()))})),this.ChildNavClicked.emit(B)}onChildNavClicked(B){this.ChildNavClicked.emit(B)}filterSideMenuNodes(){switch(this.selNode.lnImplementation.toUpperCase()){case"CLN":this.loadCLNMenu();break;case"ECL":this.loadECLMenu();break;default:this.loadLNDMenu()}}loadLNDMenu(){let B=[];B=JSON.parse(JSON.stringify(js.LNDChildren)),this.navMenus.data=B.filter(Ae=>Ae.children&&Ae.children.length?(Ae.children=Ae.children.filter(pt=>(pt.userPersona===K.ol.ALL||pt.userPersona===this.settings.userPersona)&&"/services/loop"!==pt.link&&"/services/boltz"!==pt.link||"/services/loop"===pt.link&&this.settings.swapServerUrl&&""!==this.settings.swapServerUrl.trim()||"/services/boltz"===pt.link&&this.settings.boltzServerUrl&&""!==this.settings.boltzServerUrl.trim()),Ae.children.length>0):Ae.userPersona===K.ol.ALL||Ae.userPersona===this.settings.userPersona)}loadCLNMenu(){let B=[];B=JSON.parse(JSON.stringify(js.CLNChildren)),this.navMenus.data=B.filter(Ae=>(Ae.children&&Ae.children.length&&(Ae.children=Ae.children.filter(pt=>(pt.userPersona===K.ol.ALL||pt.userPersona===this.settings.userPersona)&&"/cln/messages"!==pt.link||"/cln/messages"===pt.link&&this.information.api_version&&this.commonService.isVersionCompatible(this.information.api_version,"0.2.2"))),Ae.userPersona===K.ol.ALL||Ae.userPersona===this.settings.userPersona))}loadECLMenu(){this.navMenus.data=JSON.parse(JSON.stringify(js.ECLChildren))}onShowData(B){this.store.dispatch((0,Me.tj)()),this.ChildNavClicked.emit("showData")}onNodeSelectionChange(B){const Ae=this.selConfigNodeIndex;this.selConfigNodeIndex=B;const pt=this.appConfig.nodes.find(fi=>+fi.index===B);this.store.dispatch((0,Me.fk)({payload:{uiMessage:K.m6.UPDATE_SELECTED_NODE,prevLnNodeIndex:+Ae,currentLnNode:pt,isInitialSetup:!1}})),this.ChildNavClicked.emit("selectNode")}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(we.mQ),t.Y36(Ci.v),t.Y36(Pe.m),t.Y36(M.yh),t.Y36(l.eX),t.Y36(nt.V))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-side-navigation"]],viewQuery:function(B,Ae){if(1&B&&t.Gf(as.gi,5),2&B){let pt;t.iGM(pt=t.CRH())&&(Ae.tree=pt.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(B,Ae){1&B&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.YNc(2,mc,2,2,"mat-select",2),t._UZ(3,"mat-divider",3),t.YNc(4,_c,4,3,"mat-tree",4),t._UZ(5,"mat-divider",3),t.TgZ(6,"mat-tree",5),t.YNc(7,yc,6,4,"mat-tree-node",6),t.qZA(),t.qZA(),t.TgZ(8,"div",7),t.YNc(9,Pa,2,2,"mat-tree",4),t.qZA(),t.qZA(),t.YNc(10,bc,6,0,"ng-template",null,8,t.W1O)),2&B&&(t.xp6(2),t.Q6J("ngIf",Ae.appConfig.nodes.length>1),t.xp6(2),t.Q6J("ngIf",null==Ae.settings?null:Ae.settings.lnServerUrl),t.xp6(2),t.Q6J("dataSource",Ae.navMenusShowData)("treeControl",Ae.treeControlShowData),t.xp6(3),t.Q6J("ngIf",Ae.showLogout))},directives:[v.xw,v.yH,v.Wh,z.$V,ye.O5,Fe.d,as.gi,as.fQ,Re.gD,ye.sg,Le.ey,as.uo,as.eu,I.Od,I.rH,ye.tP,G.BN,Mr.Hw,as.GZ,he.lW,as.Ar,l1.gM],styles:[".tree-children-invisible[_ngcontent-%COMP%]{display:none}"]}),X})();var d1=m(773);const Bo=["sideNavigation"],u1=["sideNavContent"];function ph(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"button",13),t.NdJ("click",function(){return t.CHM(B),t.oxw().sideNavToggle()}),t.TgZ(1,"mat-icon"),t._uU(2,"menu"),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.Q6J("matTooltip",B.flgSideNavOpened?"Hide Navigation Menu":"Show Navigation Menu")("matTooltipDisabled",B.smallScreen)}}function f1(X,He){1&X&&(t.O4$(),t._UZ(0,"path",18))}function Ho(X,He){1&X&&(t.O4$(),t._UZ(0,"path",19))}function zo(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"button",14),t.NdJ("click",function(){t.CHM(B);const pt=t.oxw();return pt.flgSidenavPinned=!pt.flgSidenavPinned}),t.O4$(),t.TgZ(1,"svg",15),t.YNc(2,f1,1,0,"path",16),t.YNc(3,Ho,1,0,"path",17),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.Q6J("matTooltip",B.flgSidenavPinned?"Unpin Navigation Menu":"Pin Navigation Menu"),t.xp6(2),t.Q6J("ngIf",!B.flgSidenavPinned),t.xp6(1),t.Q6J("ngIf",B.flgSidenavPinned)}}function Bl(X,He){if(1&X&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&X){const B=t.oxw();t.xp6(1),t.Oqu(B.information.alias?"RTL - "+B.information.alias:"RTL")}}function qs(X,He){if(1&X&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&X){const B=t.oxw();t.xp6(1),t.Oqu(B.information.alias?"Ride The Lightning - "+B.information.alias:"Ride The Lightning")}}function mh(X,He){1&X&&(t.TgZ(0,"div",20),t._UZ(1,"mat-spinner",21),t.TgZ(2,"h4"),t._uU(3,"Loading RTL..."),t.qZA(),t.qZA())}const co=function(X,He){return[X,He]};let Uo=(()=>{class X{constructor(B,Ae,pt,fi,In,tr,Fn,Br,ya){this.logger=B,this.commonService=Ae,this.store=pt,this.actions=fi,this.userIdle=In,this.router=tr,this.sessionService=Fn,this.breakpointObserver=Br,this.renderer=ya,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 s.x,new s.x,new s.x,new s.x,new s.x,new s.x,new s.x,new s.x]}ngOnInit(){this.router.events.subscribe(B=>{B instanceof I.m2&&document.getElementsByTagName("mat-sidenav-content")[0].scrollTo(0,0)}),this.breakpointObserver.observe([o.u3.XSmall,o.u3.TabletPortrait,o.u3.Small,o.u3.Medium,o.u3.Large,o.u3.XLarge]).pipe((0,b.R)(this.unSubs[0])).subscribe(B=>{B.breakpoints[o.u3.XSmall]?(this.commonService.setScreenSize(K.cu.XS),this.smallScreen=!0):B.breakpoints[o.u3.TabletPortrait]?(this.commonService.setScreenSize(K.cu.SM),this.smallScreen=!0):B.breakpoints[o.u3.Small]||B.breakpoints[o.u3.Medium]?(this.commonService.setScreenSize(K.cu.MD),this.smallScreen=!1):B.breakpoints[o.u3.Large]?(this.commonService.setScreenSize(K.cu.LG),this.smallScreen=!1):(this.commonService.setScreenSize(K.cu.XL),this.smallScreen=!1)}),this.store.dispatch((0,Me.ey)()),this.accessKey=this.readAccessKey(),this.store.select(r.dT).pipe((0,b.R)(this.unSubs[1])).subscribe(B=>{this.settings=B.settings,this.sessionService.getItem("token")?(this.flgLoggedIn=!0,this.userIdle.startWatching()):(this.flgLoggedIn=!1,this.flgLoading[0]=!1)}),this.store.select(r.Yj).pipe((0,b.R)(this.unSubs[2])).subscribe(B=>{this.appConfig=B}),this.store.select(r.R4).pipe((0,b.R)(this.unSubs[3])).subscribe(B=>{this.information=B,this.flgLoading[0]=!this.information.identity_pubkey,this.logger.info(this.information)}),"true"===this.sessionService.getItem("defaultPassword")&&(this.flgSideNavOpened=!1),this.actions.pipe((0,b.R)(this.unSubs[4]),(0,de.h)(B=>B.type===K.pg.SET_RTL_CONFIG||B.type===K.pg.LOGIN||B.type===K.pg.LOGOUT)).subscribe(B=>{B.type===K.pg.SET_RTL_CONFIG&&(this.sessionService.getItem("token")||(+B.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,Me.x4)({payload:{password:le(this.accessKey).toString(),defaultPassword:!1}})):this.router.navigate(["./login"]))),B.type===K.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)),B.type===K.pg.LOGOUT&&(this.flgLoggedIn=!1,this.userIdle.stopWatching(),this.userIdle.stopTimer())}),this.userIdle.onTimerStart().pipe((0,b.R)(this.unSubs[5])).subscribe(B=>{this.logger.info("Counting Down: "+(11-B))}),this.userIdle.onTimeout().pipe((0,b.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,Me.ts)()),this.store.dispatch((0,Me.qR)({payload:{data:{type:K.n_.WARNING,alertTitle:"Logging out",titleMessage:"Time limit exceeded for session inactivity."}}})),this.store.dispatch((0,Me.kS)()))}),"true"===this.sessionService.getItem("defaultPassword")&&(this.flgSideNavOpened=!1)}readAccessKey(){const B=window.location.href;return B.includes("access-key=")?B.substring(B.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(B){this.smallScreen&&this.sideNavigation.close()}copiedText(B){this.flgCopied=!0,setTimeout(()=>{this.flgCopied=!1},5e3),this.logger.info("Copied Text: "+B)}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(we.mQ),t.Y36(Ci.v),t.Y36(M.yh),t.Y36(l.eX),t.Y36(_),t.Y36(I.F0),t.Y36(Pe.m),t.Y36(o.Yg),t.Y36(t.Qsj))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-app"]],viewQuery:function(B,Ae){if(1&B&&(t.Gf(Bo,5),t.Gf(u1,5)),2&B){let pt;t.iGM(pt=t.CRH())&&(Ae.sideNavigation=pt.first),t.iGM(pt=t.CRH())&&(Ae.sideNavContent=pt.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(B,Ae){1&B&&(t.TgZ(0,"div",0),t.ALo(1,"lowercase"),t.ALo(2,"lowercase"),t.TgZ(3,"mat-toolbar",1),t.TgZ(4,"div"),t.YNc(5,ph,3,2,"button",2),t.YNc(6,zo,4,3,"button",3),t.qZA(),t.TgZ(7,"div"),t.YNc(8,Bl,2,1,"span",4),t.YNc(9,qs,2,1,"span",4),t.qZA(),t.TgZ(10,"div"),t._UZ(11,"rtl-top-menu"),t.qZA(),t.qZA(),t.TgZ(12,"mat-sidenav-container"),t.TgZ(13,"mat-sidenav",5,6),t.TgZ(15,"rtl-side-navigation",7),t.NdJ("ChildNavClicked",function(fi){return Ae.onNavigationClicked(fi)}),t.qZA(),t.qZA(),t.TgZ(16,"mat-sidenav-content",8,9),t.TgZ(18,"div",10),t._UZ(19,"router-outlet",null,11),t.qZA(),t.qZA(),t._uU(21,"> "),t.qZA(),t.YNc(22,mh,4,0,"div",12),t.qZA()),2&B&&(t.Q6J("ngClass",t.WLB(12,co,t.lcZ(1,8,Ae.settings.themeColor),t.lcZ(2,10,Ae.settings.themeMode))),t.xp6(5),t.Q6J("ngIf",Ae.flgLoggedIn),t.xp6(1),t.Q6J("ngIf",!Ae.smallScreen&&Ae.flgLoggedIn),t.xp6(2),t.Q6J("ngIf",Ae.smallScreen),t.xp6(1),t.Q6J("ngIf",!Ae.smallScreen),t.xp6(4),t.Q6J("opened",Ae.flgSideNavOpened&&Ae.flgLoggedIn)("mode",Ae.flgSidenavPinned&&!Ae.smallScreen?"side":"over"),t.xp6(9),t.Q6J("ngIf",!Ae.settings.themeColor))},directives:[v.xw,ye.mk,Cn.oO,Ws.Ye,v.Wh,ye.O5,g0,Ka.TM,Ka.JX,z.$V,cl,v.yH,Ka.Rh,I.lC,he.lW,l1.gM,Mr.Hw,d1.$g],pipes:[ye.i8],styles:[".inline-spinner[_ngcontent-%COMP%]{display:inline-flex!important;top:0!important}"],data:{animation:[Il.g]}}),X})(),xo=(()=>{class X{constructor(B){this.sessionService=B}intercept(B,Ae){if(this.sessionService.getItem("token")){const pt=B.clone({headers:B.headers.set("Authorization","Bearer "+this.sessionService.getItem("token")),withCredentials:!0});return Ae.handle(pt)}return Ae.handle(B)}}return X.\u0275fac=function(B){return new(B||X)(t.LFG(Pe.m))},X.\u0275prov=t.Yz7({token:X,factory:X.\u0275fac}),X})();var p1=m(7998),y0=m(711),Zo=m(4947),Vo=m(3289);const Go={userPersona:"OPERATOR",themeMode:"DAY",themeColor:"PURPLE",channelBackupPath:"",selCurrencyUnit:"USD",fiatConversion:!1,currencyUnits:["Sats","BTC","USD"],bitcoindConfigPath:"",enableOffers:!1},b0={configPath:"",swapMacaroonPath:"",boltzMacaroonPath:""},gh={apiURL:"",apisCallStatus:{Login:{status:K.Bn.UN_INITIATED},IsAuthorized:{status:K.Bn.UN_INITIATED}},selNode:{index:1,lnNode:"Node 1",settings:Go,authentication:b0,lnImplementation:"LND"},appConfig:{defaultNodeIndex:-1,selectedNodeIndex:-1,sso:{rtlSSO:0,logoutRedirectLink:""},enable2FA:!1,allowPasswordUpdate:!0,nodes:[{settings:Go,authentication:b0}]},nodeData:{}},x0=(0,M.Lq)(gh,(0,M.on)(Me.qi,(X,{payload:He})=>{const B=JSON.parse(JSON.stringify(X.apisCallStatus));return B[He.action]={status:He.status,statusCode:He.statusCode,message:He.message,URL:He.URL,filePath:He.filePath},Object.assign(Object.assign({},X),{apisCallStatus:B})}),(0,M.on)(Me.vI,(X,{payload:He})=>Object.assign(Object.assign({},gh),{apisCallStatus:X.apisCallStatus,appConfig:X.appConfig,selNode:He})),(0,M.on)(Me.fk,(X,{payload:He})=>Object.assign(Object.assign({},X),{selNode:He.currentLnNode})),(0,M.on)(Me.Tm,(X,{payload:He})=>{const B=JSON.parse(JSON.stringify(X.selNode));switch(He.service){case K.JX.BOLTZ:B.settings.boltzServerUrl=He.settings.boltzServerUrl;break;case K.JX.LOOP:B.settings.swapServerUrl=He.settings.swapServerUrl;break;case K.JX.OFFERS:B.settings.enableOffers=He.settings.enableOffers}return Object.assign(Object.assign({},X),{selNode:B})}),(0,M.on)(Me._V,(X,{payload:He})=>Object.assign(Object.assign({},X),{nodeData:He})),(0,M.on)(Me.XT,(X,{payload:He})=>Object.assign(Object.assign({},X),{appConfig:He}))),C0={apisCallStatus:{FetchInfo:{status:K.Bn.UN_INITIATED},FetchFees:{status:K.Bn.UN_INITIATED},FetchPeers:{status:K.Bn.UN_INITIATED},FetchClosedChannels:{status:K.Bn.UN_INITIATED},FetchPendingChannels:{status:K.Bn.UN_INITIATED},FetchAllChannels:{status:K.Bn.UN_INITIATED},FetchBalanceBlockchain:{status:K.Bn.UN_INITIATED},FetchInvoices:{status:K.Bn.UN_INITIATED},FetchPayments:{status:K.Bn.UN_INITIATED},FetchForwardingHistory:{status:K.Bn.UN_INITIATED},FetchUTXOs:{status:K.Bn.UN_INITIATED},FetchTransactions:{status:K.Bn.UN_INITIATED},FetchLightningTransactions:{status:K.Bn.UN_INITIATED},FetchNetwork:{status:K.Bn.UN_INITIATED}},nodeSettings:{userPersona:K.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 _h=!1,M0=!1;const vh=(0,M.Lq)(C0,(0,M.on)(ui.PC,(X,{payload:He})=>{const B=JSON.parse(JSON.stringify(X.apisCallStatus));return B[He.action]={status:He.status,statusCode:He.statusCode,message:He.message,URL:He.URL,filePath:He.filePath},Object.assign(Object.assign({},X),{apisCallStatus:B})}),(0,M.on)(ui.JT,(X,{payload:He})=>Object.assign(Object.assign({},X),{nodeSettings:He})),(0,M.on)(ui.Ll,(X,{payload:He})=>Object.assign(Object.assign({},C0),{nodeSettings:He})),(0,M.on)(ui.CX,(X,{payload:He})=>Object.assign(Object.assign({},X),{information:He})),(0,M.on)(ui.Z8,(X,{payload:He})=>Object.assign(Object.assign({},X),{peers:He})),(0,M.on)(ui.EK,(X,{payload:He})=>{const B=[...X.peers],Ae=X.peers.findIndex(pt=>pt.pub_key===He.pubkey);return Ae>-1&&B.splice(Ae,1),Object.assign(Object.assign({},X),{peers:B})}),(0,M.on)(ui.YP,(X,{payload:He})=>{const B=X.listInvoices;return B.invoices.unshift(He),Object.assign(Object.assign({},X),{listInvoices:B})}),(0,M.on)(ui.aL,(X,{payload:He})=>{const B=X.listInvoices;return B.invoices=B.invoices.map(Ae=>Ae.payment_request===He.payment_request?He:Ae),Object.assign(Object.assign({},X),{listInvoices:B})}),(0,M.on)(ui.qY,(X,{payload:He})=>{const B=X.listPayments;return B.payments=B.payments.map(Ae=>Ae.payment_hash===He.payment_hash?He:Ae),Object.assign(Object.assign({},X),{listPayments:B})}),(0,M.on)(ui.RX,(X,{payload:He})=>Object.assign(Object.assign({},X),{fees:He})),(0,M.on)(ui._L,(X,{payload:He})=>Object.assign(Object.assign({},X),{closedChannels:He})),(0,M.on)(ui.TW,(X,{payload:He})=>Object.assign(Object.assign({},X),{pendingChannels:He.pendingChannels,pendingChannelsSummary:He.pendingChannelsSummary})),(0,M.on)(ui.as,(X,{payload:He})=>{let B=0,Ae=0,pt=0,fi=0,In=0,tr=0;return He&&He.forEach(Fn=>{Fn.local_balance||(Fn.local_balance=0),!0===Fn.active?(In+=+Fn.local_balance,pt+=1,Fn.local_balance?B=+B+ +Fn.local_balance:Fn.local_balance=0,Fn.remote_balance?Ae=+Ae+ +Fn.remote_balance:Fn.remote_balance=0):(tr+=+Fn.local_balance,fi+=1)}),Object.assign(Object.assign({},X),{channels:He,channelsSummary:{active:{num_channels:pt,capacity:In},inactive:{num_channels:fi,capacity:tr}},lightningBalance:{local:B,remote:Ae}})}),(0,M.on)(ui.OG,(X,{payload:He})=>{const B=[...X.channels],Ae=X.channels.findIndex(pt=>pt.channel_point===He.channelPoint);return Ae>-1&&B.splice(Ae,1),Object.assign(Object.assign({},X),{channels:B})}),(0,M.on)(ui.Jl,(X,{payload:He})=>Object.assign(Object.assign({},X),{blockchainBalance:He})),(0,M.on)(ui.ks,(X,{payload:He})=>Object.assign(Object.assign({},X),{networkInfo:He})),(0,M.on)(ui.Nr,(X,{payload:He})=>(He.total_invoices||(He.total_invoices=X.listInvoices.total_invoices),Object.assign(Object.assign({},X),{listInvoices:He}))),(0,M.on)(ui.Lf,(X,{payload:He})=>{if(_h=!0,He.length&&M0){const B=[...X.utxos];return B.forEach(Ae=>{const pt=He.find(fi=>fi.tx_hash===Ae.outpoint.txid_str);Ae.label=pt&&pt.label?pt.label:""}),Object.assign(Object.assign({},X),{utxos:B,transactions:He})}return Object.assign(Object.assign({},X),{transactions:He})}),(0,M.on)(ui.UH,(X,{payload:He})=>{if(M0=!0,He.length&&_h){const B=[...X.transactions];He.forEach(Ae=>{const pt=B.find(fi=>fi.tx_hash===Ae.outpoint.txid_str);Ae.label=pt&&pt.label?pt.label:""})}return Object.assign(Object.assign({},X),{utxos:He})}),(0,M.on)(ui.HI,(X,{payload:He})=>{const B={listInvoicesAll:X.allLightningTransactions.listInvoicesAll,listPaymentsAll:He};return Object.assign(Object.assign({},X),{listPayments:He,allLightningTransactions:B})}),(0,M.on)(ui.Fr,(X,{payload:He})=>{const B={listInvoicesAll:He.listInvoicesAll,listPaymentsAll:X.listPayments};return Object.assign(Object.assign({},X),{allLightningTransactions:B})}),(0,M.on)(ui.QJ,(X,{payload:He})=>{const B=[...X.channels,...X.closedChannels];let Ae=He.forwarding_events?JSON.parse(JSON.stringify(He)):{};return Ae.forwarding_events&&(Ae=m1(Ae,B)),Object.assign(Object.assign({},X),{forwardingHistory:Ae})})),m1=(X,He)=>(X.forwarding_events.forEach(B=>{if(He&&He.length>0)for(let Ae=0;Ae<He.length;Ae++){if(He[Ae].chan_id.toString()===B.chan_id_in&&(B.alias_in=He[Ae].remote_alias?He[Ae].remote_alias:B.chan_id_in,B.alias_out)||He[Ae].chan_id.toString()===B.chan_id_out&&(B.alias_out=He[Ae].remote_alias?He[Ae].remote_alias:B.chan_id_out,B.alias_in))return;Ae===He.length-1&&(B.alias_in||(B.alias_in=B.chan_id_in),B.alias_out||(B.alias_out=B.chan_id_out))}else B.alias_in=B.chan_id_in,B.alias_out=B.chan_id_out}),X),Yo={apisCallStatus:{FetchInfo:{status:K.Bn.UN_INITIATED},FetchInvoices:{status:K.Bn.UN_INITIATED},FetchFees:{status:K.Bn.UN_INITIATED},FetchChannels:{status:K.Bn.UN_INITIATED},FetchBalance:{status:K.Bn.UN_INITIATED},FetchLocalRemoteBalance:{status:K.Bn.UN_INITIATED},FetchFeeRatesperkb:{status:K.Bn.UN_INITIATED},FetchFeeRatesperkw:{status:K.Bn.UN_INITIATED},FetchPeers:{status:K.Bn.UN_INITIATED},FetchUTXOs:{status:K.Bn.UN_INITIATED},FetchPayments:{status:K.Bn.UN_INITIATED},FetchForwardingHistoryS:{status:K.Bn.UN_INITIATED},FetchForwardingHistoryF:{status:K.Bn.UN_INITIATED},FetchForwardingHistoryL:{status:K.Bn.UN_INITIATED},FetchOffers:{status:K.Bn.UN_INITIATED},FetchOfferBookmarks:{status:K.Bn.UN_INITIATED}},nodeSettings:{userPersona:K.ol.OPERATOR,selCurrencyUnit:"USD",fiatConversion:!1,channelBackupPath:"",currencyUnits:[],enableOffers:!1},information:{},fees:{},feeRatesPerKB:{},feeRatesPerKW:{},balance:{},localRemoteBalance:{localBalance:-1,remoteBalance:-1},peers:[],activeChannels:[],pendingChannels:[],inactiveChannels:[],payments:[],forwardingHistory:{},failedForwardingHistory:{},localFailedForwardingHistory:{},invoices:{invoices:[]},utxos:[],offers:[],offersBookmarks:[]},g1=(0,M.Lq)(Yo,(0,M.on)(Lt.Ni,(X,{payload:He})=>{const B=JSON.parse(JSON.stringify(X.apisCallStatus));return B[He.action]={status:He.status,statusCode:He.statusCode,message:He.message,URL:He.URL,filePath:He.filePath},Object.assign(Object.assign({},X),{apisCallStatus:B})}),(0,M.on)(Lt.oo,(X,{payload:He})=>Object.assign(Object.assign({},X),{nodeSettings:He})),(0,M.on)(Lt.xH,(X,{payload:He})=>Object.assign(Object.assign({},Yo),{nodeSettings:He})),(0,M.on)(Lt.CX,(X,{payload:He})=>Object.assign(Object.assign({},X),{information:He})),(0,M.on)(Lt.RX,(X,{payload:He})=>Object.assign(Object.assign({},X),{fees:He})),(0,M.on)(Lt.I8,(X,{payload:He})=>He.perkb?Object.assign(Object.assign({},X),{feeRatesPerKB:He}):He.perkw?Object.assign(Object.assign({},X),{feeRatesPerKW:He}):Object.assign({},X)),(0,M.on)(Lt.Lu,(X,{payload:He})=>Object.assign(Object.assign({},X),{balance:He})),(0,M.on)(Lt.xS,(X,{payload:He})=>Object.assign(Object.assign({},X),{localRemoteBalance:He})),(0,M.on)(Lt.Z8,(X,{payload:He})=>Object.assign(Object.assign({},X),{peers:He})),(0,M.on)(Lt.X3,(X,{payload:He})=>Object.assign(Object.assign({},X),{peers:[...X.peers,He]})),(0,M.on)(Lt.EK,(X,{payload:He})=>{const B=[...X.peers],Ae=X.peers.findIndex(pt=>pt.id===He.id);return Ae>-1&&B.splice(Ae,1),Object.assign(Object.assign({},X),{peers:B})}),(0,M.on)(Lt.as,(X,{payload:He})=>Object.assign(Object.assign({},X),{activeChannels:He.activeChannels,pendingChannels:He.pendingChannels,inactiveChannels:He.inactiveChannels})),(0,M.on)(Lt.OG,(X,{payload:He})=>{const B=[...X.peers];return B.forEach(Ae=>{Ae.id===He.id&&(Ae.connected=!1,delete Ae.netaddr)}),Object.assign(Object.assign({},X),{peers:B})}),(0,M.on)(Lt.HI,(X,{payload:He})=>Object.assign(Object.assign({},X),{payments:He})),(0,M.on)(Lt.QJ,(X,{payload:He})=>{const B=[...X.activeChannels,...X.pendingChannels,...X.inactiveChannels],Ae=ho(He.response.listForwards,B);switch(He.response.listForwards=Ae,He.status){case K.OO.SETTLED:const pt=X.fees;return pt.totalTxCount=0|He.response.totalForwards,Object.assign(Object.assign({},X),{fees:pt,forwardingHistory:He.response});case K.OO.FAILED:return Object.assign(Object.assign({},X),{failedForwardingHistory:He.response});case K.OO.LOCAL_FAILED:return Object.assign(Object.assign({},X),{localFailedForwardingHistory:He.response});default:return Object.assign({},X)}}),(0,M.on)(Lt.YP,(X,{payload:He})=>{const B=X.invoices;return B.invoices.unshift(He),Object.assign(Object.assign({},X),{invoices:B})}),(0,M.on)(Lt.Nr,(X,{payload:He})=>Object.assign(Object.assign({},X),{invoices:He})),(0,M.on)(Lt.aL,(X,{payload:He})=>{const B=X.invoices;return B.invoices=B.invoices.map(Ae=>Ae.label===He.label?He:Ae),Object.assign(Object.assign({},X),{invoices:B})}),(0,M.on)(Lt.UH,(X,{payload:He})=>Object.assign(Object.assign({},X),{utxos:He})),(0,M.on)(Lt.Zu,(X,{payload:He})=>Object.assign(Object.assign({},X),{offers:He})),(0,M.on)(Lt.ZH,(X,{payload:He})=>{const B=X.offers;return B.unshift(He),Object.assign(Object.assign({},X),{offers:B})}),(0,M.on)(Lt.JK,(X,{payload:He})=>{const B=[...X.offers],Ae=X.offers.findIndex(pt=>pt.offer_id===He.offer.offer_id);return Ae>-1&&B.splice(Ae,1,He.offer),Object.assign(Object.assign({},X),{offers:B})}),(0,M.on)(Lt.d7,(X,{payload:He})=>Object.assign(Object.assign({},X),{offersBookmarks:He})),(0,M.on)(Lt.e9,(X,{payload:He})=>{const B=[...X.offersBookmarks],Ae=B.findIndex(pt=>pt.bolt12===He.bolt12);if(Ae<0)B.unshift(He);else{const pt=Object.assign({},B[Ae]);pt.title=He.title,pt.amountmSat=He.amountmSat,pt.lastUpdatedAt=He.lastUpdatedAt,pt.description=He.description,pt.vendor=He.vendor,B.splice(Ae,1,pt)}return Object.assign(Object.assign({},X),{offersBookmarks:B})}),(0,M.on)(Lt.en,(X,{payload:He})=>{const B=[...X.offersBookmarks],Ae=X.offersBookmarks.findIndex(pt=>pt.bolt12===He.bolt12);return Ae>-1&&B.splice(Ae,1),Object.assign(Object.assign({},X),{offersBookmarks:B})})),ho=(X,He)=>(X&&X.length>0?X.forEach((B,Ae)=>{if(He&&He.length>0)for(let pt=0;pt<He.length;pt++){if(He[pt].short_channel_id&&He[pt].short_channel_id===B.in_channel&&(B.in_channel_alias=He[pt].alias?He[pt].alias:B.in_channel,B.out_channel_alias)||He[pt].short_channel_id&&He[pt].short_channel_id.toString()===B.out_channel&&(B.out_channel_alias=He[pt].alias?He[pt].alias:B.out_channel,B.in_channel_alias))return;pt===He.length-1&&(B.in_channel_alias||(B.in_channel_alias=B.in_channel?B.in_channel:"-"),B.out_channel_alias||(B.out_channel_alias=B.out_channel?B.out_channel:"-"))}else B.in_channel_alias=B.in_channel?B.in_channel:"-",B.out_channel_alias=B.out_channel?B.out_channel:"-"}):X=[],X),uo={apisCallStatus:{FetchInfo:{status:K.Bn.UN_INITIATED},FetchFees:{status:K.Bn.UN_INITIATED},FetchChannels:{status:K.Bn.UN_INITIATED},FetchOnchainBalance:{status:K.Bn.UN_INITIATED},FetchPeers:{status:K.Bn.UN_INITIATED},FetchPayments:{status:K.Bn.UN_INITIATED},FetchInvoices:{status:K.Bn.UN_INITIATED},FetchTransactions:{status:K.Bn.UN_INITIATED}},nodeSettings:{userPersona:K.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:[]},yh=(0,M.Lq)(uo,(0,M.on)(gt.QZ,(X,{payload:He})=>{const B=JSON.parse(JSON.stringify(X.apisCallStatus));return B[He.action]={status:He.status,statusCode:He.statusCode,message:He.message,URL:He.URL,filePath:He.filePath},Object.assign(Object.assign({},X),{apisCallStatus:B})}),(0,M.on)(gt.Zr,(X,{payload:He})=>Object.assign(Object.assign({},X),{nodeSettings:He})),(0,M.on)(gt.Fd,(X,{payload:He})=>Object.assign(Object.assign({},uo),{nodeSettings:He})),(0,M.on)(gt.CX,(X,{payload:He})=>Object.assign(Object.assign({},X),{information:He})),(0,M.on)(gt.RX,(X,{payload:He})=>Object.assign(Object.assign({},X),{fees:He})),(0,M.on)(gt.eN,(X,{payload:He})=>Object.assign(Object.assign({},X),{activeChannels:He})),(0,M.on)(gt.TW,(X,{payload:He})=>Object.assign(Object.assign({},X),{pendingChannels:He})),(0,M.on)(gt.i,(X,{payload:He})=>Object.assign(Object.assign({},X),{inactiveChannels:He})),(0,M.on)(gt.HG,(X,{payload:He})=>Object.assign(Object.assign({},X),{channelsStatus:He})),(0,M.on)(gt.Bw,(X,{payload:He})=>Object.assign(Object.assign({},X),{onchainBalance:He})),(0,M.on)(gt.On,(X,{payload:He})=>Object.assign(Object.assign({},X),{lightningBalance:He})),(0,M.on)(gt.Z8,(X,{payload:He})=>Object.assign(Object.assign({},X),{peers:He})),(0,M.on)(gt.EK,(X,{payload:He})=>{const B=[...X.peers],Ae=X.peers.findIndex(pt=>pt.nodeId===He.nodeId);return Ae>-1&&B.splice(Ae,1),Object.assign(Object.assign({},X),{peers:B})}),(0,M.on)(gt.OG,(X,{payload:He})=>{const B=[...X.activeChannels],Ae=X.activeChannels.findIndex(pt=>pt.channelId===He.channelId);return Ae>-1&&B.splice(Ae,1),Object.assign(Object.assign({},X),{activeChannels:B})}),(0,M.on)(gt.HI,(X,{payload:He})=>{if(He&&He.sent){const B=[...X.activeChannels,...X.pendingChannels,...X.inactiveChannels];He.sent.map(Ae=>{const pt=X.peers.find(fi=>fi.nodeId===Ae.recipientNodeId);return Ae.recipientNodeAlias=pt?pt.alias:Ae.recipientNodeId,Ae.parts&&Ae.parts.map(fi=>{const In=B.find(tr=>tr.channelId===fi.toChannelId);return fi.toChannelAlias=In?In.alias:fi.toChannelId,Ae.parts}),He.sent})}if(He&&He.relayed){const B=[...X.activeChannels,...X.pendingChannels,...X.inactiveChannels];He.relayed.forEach(Ae=>{Ae=_1(Ae,B)})}return Object.assign(Object.assign({},X),{payments:He})}),(0,M.on)(gt.Lf,(X,{payload:He})=>Object.assign(Object.assign({},X),{transactions:He})),(0,M.on)(gt.YP,(X,{payload:He})=>{const B=X.invoices;return B.unshift(He),Object.assign(Object.assign({},X),{invoices:B})}),(0,M.on)(gt.Nr,(X,{payload:He})=>Object.assign(Object.assign({},X),{invoices:He})),(0,M.on)(gt.aL,(X,{payload:He})=>{let B=X.invoices;return B=B.map(Ae=>{if(Ae.paymentHash===He.paymentHash){if(He.hasOwnProperty("type")){const pt=JSON.parse(JSON.stringify(Ae));return pt.amountSettled=He.parts&&He.parts.length&&He.parts.length>0&&He.parts[0].amount?He.parts[0].amount/1e3:0,pt.receivedAt=He.parts&&He.parts.length&&He.parts.length>0&&He.parts[0].timestamp?Math.round(He.parts[0].timestamp/1e3):0,pt.status="received",pt}return He}return Ae}),Object.assign(Object.assign({},X),{invoices:B})}),(0,M.on)(gt.DJ,(X,{payload:He})=>{let B=X.pendingChannels;return B=B.map(Ae=>(Ae.channelId===He.channelId&&Ae.nodeId===He.remoteNodeId&&(He.currentState=He.currentState.replace(/_/g," "),Ae.state=He.currentState),Ae)),Object.assign(Object.assign({},X),{pendingChannels:B})}),(0,M.on)(gt.ti,(X,{payload:He})=>{const B=X.payments,Ae=_1(He,[...X.activeChannels,...X.pendingChannels,...X.inactiveChannels]);Ae.amountIn=Math.round(He.amountIn/1e3),Ae.amountOut=Math.round(He.amountOut/1e3),B.relayed.unshift(Ae);const pt=He.amountIn-He.amountOut,fi={localBalance:X.lightningBalance.localBalance+pt,remoteBalance:X.lightningBalance.remoteBalance-pt},In=X.channelsStatus;In.active.capacity=X.channelsStatus.active.capacity+pt;const tr={daily_fee:X.fees.daily_fee+pt,daily_txs:X.fees.daily_txs+1,weekly_fee:X.fees.weekly_fee+pt,weekly_txs:X.fees.weekly_txs+1,monthly_fee:X.fees.monthly_fee+pt,monthly_txs:X.fees.monthly_txs+1},Fn=X.activeChannels;let Br=!1,ya=!1;for(const sr of Fn){if(sr.channelId===He.fromChannelId){Br=!0;const Na=sr.toLocal+sr.toRemote;sr.toLocal=sr.toLocal+Ae.amountIn,sr.toRemote=sr.toRemote-Ae.amountIn,sr.balancedness=0===Na?1:+(1-Math.abs((sr.toLocal-sr.toRemote)/Na)).toFixed(3)}if(sr.channelId===He.toChannelId){ya=!0;const Na=sr.toLocal+sr.toRemote;sr.toLocal=sr.toLocal-Ae.amountOut,sr.toRemote=sr.toRemote+Ae.amountOut,sr.balancedness=0===Na?1:+(1-Math.abs((sr.toLocal-sr.toRemote)/Na)).toFixed(3)}if(ya&&Br)break}return Object.assign(Object.assign({},X),{payments:B,lightningBalance:fi,channelStatus:In,fees:tr,activeChannels:Fn})})),_1=(X,He)=>{if("payment-relayed"===X.type)if(He&&He.length>0)for(let B=0;B<He.length;B++){if(He[B].channelId.toString()===X.fromChannelId&&(X.fromChannelAlias=He[B].alias?He[B].alias:X.fromChannelId,X.fromShortChannelId=He[B].shortChannelId?He[B].shortChannelId:"",X.toChannelAlias)||He[B].channelId.toString()===X.toChannelId&&(X.toChannelAlias=He[B].alias?He[B].alias:X.toChannelId,X.toShortChannelId=He[B].shortChannelId?He[B].shortChannelId:"",X.fromChannelAlias))return X;B===He.length-1&&(X.fromChannelAlias||(X.fromChannelAlias=X.fromChannelId.substring(0,17)+"...",X.fromShortChannelId=""),X.toChannelAlias||(X.toChannelAlias=X.toChannelId.substring(0,17)+"...",X.toShortChannelId=""))}else X.fromChannelAlias=X.fromChannelId.substring(0,17)+"...",X.fromShortChannelId="",X.toChannelAlias=X.toChannelId.substring(0,17)+"...",X.toShortChannelId="";else if(X.type="trampoline-payment-relayed"){if(He&&He.length>0)for(let B=0;B<He.length;B++)X.incoming.forEach(Ae=>{He[B].channelId.toString()===Ae.channelId&&(Ae.channelAlias=He[B].alias?He[B].alias:Ae.channelId,Ae.shortChannelId=He[B].shortChannelId?He[B].shortChannelId:"")}),X.outgoing.forEach(Ae=>{He[B].channelId.toString()===Ae.channelId&&(Ae.channelAlias=He[B].alias?He[B].alias:Ae.channelId,Ae.shortChannelId=He[B].shortChannelId?He[B].shortChannelId:"")}),B===He.length-1&&(X.incoming[0].channelAlias||X.incoming.forEach(Ae=>{Ae.channelAlias=Ae.channelId.substring(0,17)+"...",Ae.shortChannelId=""}),X.outgoing[0].channelAlias||X.outgoing.forEach(Ae=>{Ae.channelAlias=Ae.channelId.substring(0,17)+"...",Ae.shortChannelId=""}));else X.incoming.forEach(B=>{B.channelAlias=B.channelId.substring(0,17)+"...",B.shortChannelId=""}),X.outgoing.forEach(B=>{B.channelAlias=B.channelId.substring(0,17)+"...",B.shortChannelId=""});X.amountIn=X.incoming.reduce((B,Ae)=>B+Ae.amount,0),X.fromChannelId=X.incoming[0].channelId,X.fromChannelAlias=X.incoming[0].channelAlias,X.fromShortChannelId=X.incoming[0].shortChannelId,X.amountOut=X.outgoing.reduce((B,Ae)=>B+Ae.amount,0),X.toChannelId=X.outgoing[0].channelId,X.toChannelAlias=X.outgoing[0].channelAlias,X.toShortChannelId=X.outgoing[0].shortChannelId}return X};let Hl=(()=>{class X{}return X.\u0275fac=function(B){return new(B||X)},X.\u0275mod=t.oAB({type:X,bootstrap:[Uo]}),X.\u0275inj=t.cJS({providers:[{provide:C.TP,useClass:xo,multi:!0},ka.a1,Pe.m,bo.D,p1.d,Zr.W,Ci.v,Un],imports:[[y.PW,s1.m,xs,o.xu,e.t6,L.forRoot({idle:3590,timeout:10,ping:12e3}),M.Aw.forRoot({root:x0,lnd:vh,cln:g1,ecl:yh},{runtimeChecks:{strictStateImmutability:!1,strictActionImmutability:!1}}),l.sQ.forRoot([nt.V,y0.l,Zo.J,Vo.o]),Wi.NZ.production?[]:N.FT.instrument()]]}),X})();Wi.NZ.production&&(0,t.G48)(),e.q6().bootstrapModule(Hl).catch(X=>console.log(X))},7854:(Ve,Q)=>{"use strict";function m(K){return Object.keys(K).map(Me=>K[Me])}var K;Object.defineProperty(Q,"__esModule",{value:!0}),(K=Q.HashAlgorithms||(Q.HashAlgorithms={})).SHA1="sha1",K.SHA256="sha256",K.SHA512="sha512";const e=m(Q.HashAlgorithms);!function(K){K.ASCII="ascii",K.BASE64="base64",K.HEX="hex",K.LATIN1="latin1",K.UTF8="utf8"}(Q.KeyEncodings||(Q.KeyEncodings={}));const t=m(Q.KeyEncodings);!function(K){K.HOTP="hotp",K.TOTP="totp"}(Q.Strategy||(Q.Strategy={}));const y=m(Q.Strategy),C=()=>{throw new Error("Please provide an options.createDigest implementation.")};function o(K){return/^(\d+)$/.test(K)}function M(K,Me,we){return K.length>=Me?K:`${Array(Me+1).join(we)}${K}`.slice(-1*Me)}function l(K){const Me=`otpauth://${K.type}/{labelPrefix}:{accountName}?secret={secret}{query}`,we=[];if(y.indexOf(K.type)<0)throw new Error(`Expecting options.type to be one of ${y.join(", ")}. Received ${K.type}.`);if("hotp"===K.type){if(null==K.counter||"number"!=typeof K.counter)throw new Error('Expecting options.counter to be a number when options.type is "hotp".');we.push(`&counter=${K.counter}`)}return"totp"===K.type&&K.step&&we.push(`&period=${K.step}`),K.digits&&we.push(`&digits=${K.digits}`),K.algorithm&&we.push(`&algorithm=${K.algorithm.toUpperCase()}`),K.issuer&&we.push(`&issuer=${encodeURIComponent(K.issuer)}`),Me.replace("{labelPrefix}",encodeURIComponent(K.issuer||K.accountName)).replace("{accountName}",encodeURIComponent(K.accountName)).replace("{secret}",K.secret).replace("{query}",we.join(""))}class N{constructor(Me={}){this._defaultOptions=Object.freeze(to({},Me)),this._options=Object.freeze({})}create(Me={}){return new N(Me)}clone(Me={}){const we=this.create(to(to({},this._defaultOptions),Me));return we.options=this._options,we}get options(){return Object.freeze(to(to({},this._defaultOptions),this._options))}set options(Me){this._options=Object.freeze(to(to({},this._options),Me))}allOptions(){return this.options}resetOptions(){this._options=Object.freeze({})}}function s(K){if("function"!=typeof K.createDigest)throw new Error("Expecting options.createDigest to be a function.");if("function"!=typeof K.createHmacKey)throw new Error("Expecting options.createHmacKey to be a function.");if("number"!=typeof K.digits)throw new Error("Expecting options.digits to be a number.");if(!K.algorithm||e.indexOf(K.algorithm)<0)throw new Error(`Expecting options.algorithm to be one of ${e.join(", ")}. Received ${K.algorithm}.`);if(!K.encoding||t.indexOf(K.encoding)<0)throw new Error(`Expecting options.encoding to be one of ${t.join(", ")}. Received ${K.encoding}.`)}const D=(K,Me,we)=>Buffer.from(Me,we).toString("hex");function A(){return{algorithm:Q.HashAlgorithms.SHA1,createHmacKey:D,createDigest:C,digits:6,encoding:Q.KeyEncodings.ASCII}}function O(K){const Me=to(to({},A()),K);return s(Me),Object.freeze(Me)}function E(K){return M(K.toString(16),16,"0")}function P(K,Me){const we=Buffer.from(K,"hex"),z=15&we[we.length-1],vt=((127&we[z])<<24|(255&we[z+1])<<16|(255&we[z+2])<<8|255&we[z+3])%Math.pow(10,Me);return M(String(vt),Me,"0")}function Z(K,Me,we){const z=we.digest||function w(K,Me,we){const z=E(Me),Ge=we.createHmacKey(we.algorithm,K,we.encoding);return we.createDigest(we.algorithm,Ge,z)}(K,Me,we);return P(z,we.digits)}function j(K,Me,we,z){return!!o(K)&&K===Z(Me,we,z)}function W(K,Me,we,z,Ge){return l({algorithm:Ge.algorithm,digits:Ge.digits,type:Q.Strategy.HOTP,accountName:K,counter:z,issuer:Me,secret:we})}class ie extends N{create(Me={}){return new ie(Me)}allOptions(){return O(this.options)}generate(Me,we){return Z(Me,we,this.allOptions())}check(Me,we,z){return j(Me,we,z,this.allOptions())}verify(Me){if("object"!=typeof Me)throw new Error("Expecting argument 0 of verify to be an object");return this.check(Me.token,Me.secret,Me.counter)}keyuri(Me,we,z,Ge){return W(Me,we,z,Ge,this.allOptions())}}function ee(K){if("number"==typeof K)return[Math.abs(K),Math.abs(K)];if(Array.isArray(K)){const[Me,we]=K;if("number"==typeof Me&&"number"==typeof we)return[Math.abs(Me),Math.abs(we)]}throw new Error("Expecting options.window to be an number or [number, number].")}function _e(K){if(s(K),ee(K.window),"number"!=typeof K.epoch)throw new Error("Expecting options.epoch to be a number.");if("number"!=typeof K.step)throw new Error("Expecting options.step to be a number.")}const ce=(K,Me,we)=>{const z=K.length,Ge=Buffer.from(K,Me).toString("hex");if(z<we){const vt=new Array(we-z+1).join(Ge);return Buffer.from(vt,"hex").slice(0,we).toString("hex")}return Ge},re=(K,Me,we)=>{switch(K){case Q.HashAlgorithms.SHA1:return ce(Me,we,20);case Q.HashAlgorithms.SHA256:return ce(Me,we,32);case Q.HashAlgorithms.SHA512:return ce(Me,we,64);default:throw new Error(`Expecting algorithm to be one of ${e.join(", ")}. Received ${K}.`)}};function de(){return{algorithm:Q.HashAlgorithms.SHA1,createDigest:C,createHmacKey:re,digits:6,encoding:Q.KeyEncodings.ASCII,epoch:Date.now(),step:30,window:0}}function oe(K){const Me=to(to({},de()),K);return _e(Me),Object.freeze(Me)}function ae(K,Me){return Math.floor(K/Me/1e3)}function b(K,Me){return Z(K,ae(Me.epoch,Me.step),Me)}function i(K,Me,we,z){const Ge=[];if(0===z)return Ge;for(let vt=1;vt<=z;vt++)Ge.push(K+Me*vt*we);return Ge}function a(K,Me,we){const z=ee(we),Ge=1e3*Me;return{current:K,past:i(K,-1,Ge,z[0]),future:i(K,1,Ge,z[1])}}function p(K,Me,we){return!!o(K)&&K===b(Me,we)}function u(K,Me,we,z){let Ge=null;return K.some((vt,Re)=>!!p(Me,we,_8(to({},z),{epoch:vt}))&&(Ge=Re+1,!0)),Ge}function _(K,Me,we){if(p(K,Me,we))return 0;const z=a(we.epoch,we.step,we.window),Ge=u(z.past,K,Me,we);return null!==Ge?-1*Ge:u(z.future,K,Me,we)}function L(K,Me){return Math.floor(K/1e3)%Me}function I(K,Me){return Me-L(K,Me)}function x(K,Me,we,z){return l({algorithm:z.algorithm,digits:z.digits,step:z.step,type:Q.Strategy.TOTP,accountName:K,issuer:Me,secret:we})}class r extends ie{create(Me={}){return new r(Me)}allOptions(){return oe(this.options)}generate(Me){return b(Me,this.allOptions())}checkDelta(Me,we){return _(Me,we,this.allOptions())}check(Me,we){return"number"==typeof this.checkDelta(Me,we)}verify(Me){if("object"!=typeof Me)throw new Error("Expecting argument 0 of verify to be an object");return this.check(Me.token,Me.secret)}timeRemaining(){const Me=this.allOptions();return I(Me.epoch,Me.step)}timeUsed(){const Me=this.allOptions();return L(Me.epoch,Me.step)}keyuri(Me,we,z){return x(Me,we,z,this.allOptions())}}function v(K){if(_e(K),"function"!=typeof K.keyDecoder)throw new Error("Expecting options.keyDecoder to be a function.");if(K.keyEncoder&&"function"!=typeof K.keyEncoder)throw new Error("Expecting options.keyEncoder to be a function.")}function G(){return{algorithm:Q.HashAlgorithms.SHA1,createDigest:C,createHmacKey:re,digits:6,encoding:Q.KeyEncodings.HEX,epoch:Date.now(),step:30,window:0}}function F(K){const Me=to(to({},G()),K);return v(Me),Object.freeze(Me)}function U(K,Me){return Me.keyEncoder(K,Me.encoding)}function ye(K,Me){return Me.keyDecoder(K,Me.encoding)}function Ce(K,Me){return U(Me.createRandomBytes(K,Me.encoding),Me)}function Be(K,Me){return b(ye(K,Me),Me)}function ze(K,Me,we){return _(K,ye(Me,we),we)}class Ie extends r{create(Me={}){return new Ie(Me)}allOptions(){return F(this.options)}generate(Me){return Be(Me,this.allOptions())}checkDelta(Me,we){return ze(Me,we,this.allOptions())}encode(Me){return U(Me,this.allOptions())}decode(Me){return ye(Me,this.allOptions())}generateSecret(Me=10){return Ce(Me,this.allOptions())}}Q.Authenticator=Ie,Q.HASH_ALGORITHMS=e,Q.HOTP=ie,Q.KEY_ENCODINGS=t,Q.OTP=N,Q.STRATEGY=y,Q.TOTP=r,Q.authenticatorCheckWithWindow=ze,Q.authenticatorDecoder=ye,Q.authenticatorDefaultOptions=G,Q.authenticatorEncoder=U,Q.authenticatorGenerateSecret=Ce,Q.authenticatorOptionValidator=v,Q.authenticatorOptions=F,Q.authenticatorToken=Be,Q.createDigestPlaceholder=C,Q.hotpCheck=j,Q.hotpCounter=E,Q.hotpCreateHmacKey=D,Q.hotpDefaultOptions=A,Q.hotpDigestToToken=P,Q.hotpKeyuri=W,Q.hotpOptions=O,Q.hotpOptionsValidator=s,Q.hotpToken=Z,Q.isTokenValid=o,Q.keyuri=l,Q.objectValues=m,Q.padStart=M,Q.totpCheck=p,Q.totpCheckByEpoch=u,Q.totpCheckWithWindow=_,Q.totpCounter=ae,Q.totpCreateHmacKey=re,Q.totpDefaultOptions=de,Q.totpEpochAvailable=a,Q.totpKeyuri=x,Q.totpOptions=oe,Q.totpOptionsValidator=_e,Q.totpPadSecret=ce,Q.totpTimeRemaining=I,Q.totpTimeUsed=L,Q.totpToken=b},6098:(Ve,Q,m)=>{"use strict";Object.defineProperty(Q,"__esModule",{value:!0});var t=function e(o){return o&&"object"==typeof o&&"default"in o?o.default:o}(m(1348));Q.createDigest=(o,M,l)=>t.createHmac(o,Buffer.from(M,"hex")).update(Buffer.from(l,"hex")).digest().toString("hex"),Q.createRandomBytes=(o,M)=>t.randomBytes(o).toString(M)},1415:(Ve,Q,m)=>{"use strict";Object.defineProperty(Q,"__esModule",{value:!0});var t=function e(o){return o&&"object"==typeof o&&"default"in o?o.default:o}(m(2167));Q.keyDecoder=(o,M)=>t.decode(o).toString(M),Q.keyEncoder=(o,M)=>t.encode(Buffer.from(o,M).toString("ascii")).toString().replace(/=/g,"")},842:(Ve,Q,m)=>{"use strict";Object.defineProperty(Q,"__esModule",{value:!0});var e=m(6098),t=m(1415),y=m(7854);const C=new y.HOTP({createDigest:e.createDigest}),o=new y.TOTP({createDigest:e.createDigest}),M=new y.Authenticator({createDigest:e.createDigest,createRandomBytes:e.createRandomBytes,keyDecoder:t.keyDecoder,keyEncoder:t.keyEncoder});Q.authenticator=M,Q.hotp=C,Q.totp=o},6046:(Ve,Q,m)=>{"use strict";m.d(Q,{H5:()=>_4,K$:()=>g4,a4:()=>lh});var e=m(5e3),t=m(9808),y=m(7429),C=m(655),o=m(4968),M=m(8372),l=m(1777);function N(){}function s(f){return null==f?N:function(){return this.querySelector(f)}}function A(f){return"object"==typeof f&&"length"in f?f:Array.from(f)}function O(){return[]}function E(f){return null==f?O:function(){return this.querySelectorAll(f)}}function Z(f){return function(){return this.matches(f)}}function j(f){return function(T){return T.matches(f)}}var W=Array.prototype.find;function ee(){return this.firstElementChild}var ce=Array.prototype.filter;function re(){return this.children}function b(f){return new Array(f.length)}function a(f,T){this.ownerDocument=f.ownerDocument,this.namespaceURI=f.namespaceURI,this._next=null,this._parent=f,this.__data__=T}function p(f){return function(){return f}}function u(f,T,n,d,k,H){for(var Se,se=0,ht=T.length,mt=H.length;se<mt;++se)(Se=T[se])?(Se.__data__=H[se],d[se]=Se):n[se]=new a(f,H[se]);for(;se<ht;++se)(Se=T[se])&&(k[se]=Se)}function _(f,T,n,d,k,H,se){var Se,ht,ni,mt=new Map,Dt=T.length,Ht=H.length,Ut=new Array(Dt);for(Se=0;Se<Dt;++Se)(ht=T[Se])&&(Ut[Se]=ni=se.call(ht,ht.__data__,Se,T)+"",mt.has(ni)?k[Se]=ht:mt.set(ni,ht));for(Se=0;Se<Ht;++Se)ni=se.call(f,H[Se],Se,H)+"",(ht=mt.get(ni))?(d[Se]=ht,ht.__data__=H[Se],mt.delete(ni)):n[Se]=new a(f,H[Se]);for(Se=0;Se<Dt;++Se)(ht=T[Se])&&mt.get(Ut[Se])===ht&&(k[Se]=ht)}function L(f){return f.__data__}function U(f,T){return f<T?-1:f>T?1:f>=T?0:NaN}a.prototype={constructor:a,appendChild:function(f){return this._parent.insertBefore(f,this._next)},insertBefore:function(f,T){return this._parent.insertBefore(f,T)},querySelector:function(f){return this._parent.querySelector(f)},querySelectorAll:function(f){return this._parent.querySelectorAll(f)}};var Me="http://www.w3.org/1999/xhtml";const we={svg:"http://www.w3.org/2000/svg",xhtml:Me,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 T=f+="",n=T.indexOf(":");return n>=0&&"xmlns"!==(T=f.slice(0,n))&&(f=f.slice(n+1)),we.hasOwnProperty(T)?{space:we[T],local:f}:f}function Ge(f){return function(){this.removeAttribute(f)}}function vt(f){return function(){this.removeAttributeNS(f.space,f.local)}}function Re(f,T){return function(){this.setAttribute(f,T)}}function Ne(f,T){return function(){this.setAttributeNS(f.space,f.local,T)}}function he(f,T){return function(){var n=T.apply(this,arguments);null==n?this.removeAttribute(f):this.setAttribute(f,n)}}function Le(f,T){return function(){var n=T.apply(this,arguments);null==n?this.removeAttributeNS(f.space,f.local):this.setAttributeNS(f.space,f.local,n)}}function q(f){return f.ownerDocument&&f.ownerDocument.defaultView||f.document&&f||f.defaultView}function $(f){return function(){this.style.removeProperty(f)}}function le(f,T,n){return function(){this.style.setProperty(f,T,n)}}function xe(f,T,n){return function(){var d=T.apply(this,arguments);null==d?this.style.removeProperty(f):this.style.setProperty(f,d,n)}}function lt(f,T){return f.style.getPropertyValue(T)||q(f).getComputedStyle(f,null).getPropertyValue(T)}function nt(f){return function(){delete this[f]}}function ft(f,T){return function(){this[f]=T}}function it(f,T){return function(){var n=T.apply(this,arguments);null==n?delete this[f]:this[f]=n}}function Mt(f){return f.trim().split(/^|\s+/)}function Zt(f){return f.classList||new Ft(f)}function Ft(f){this._node=f,this._names=Mt(f.getAttribute("class")||"")}function Vt(f,T){for(var n=Zt(f),d=-1,k=T.length;++d<k;)n.add(T[d])}function Ii(f,T){for(var n=Zt(f),d=-1,k=T.length;++d<k;)n.remove(T[d])}function jt(f){return function(){Vt(this,f)}}function ei(f){return function(){Ii(this,f)}}function Pi(f,T){return function(){(T.apply(this,arguments)?Vt:Ii)(this,f)}}function hi(){this.textContent=""}function Ze(f){return function(){this.textContent=f}}function Ee(f){return function(){var T=f.apply(this,arguments);this.textContent=null==T?"":T}}function me(){this.innerHTML=""}function De(f){return function(){this.innerHTML=f}}function et(f){return function(){var T=f.apply(this,arguments);this.innerHTML=null==T?"":T}}function Nt(){this.nextSibling&&this.parentNode.appendChild(this)}function ct(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Fe(f){return function(){var T=this.ownerDocument,n=this.namespaceURI;return n===Me&&T.documentElement.namespaceURI===Me?T.createElement(f):T.createElementNS(n,f)}}function at(f){return function(){return this.ownerDocument.createElementNS(f.space,f.local)}}function st(f){var T=z(f);return(T.local?at:Fe)(T)}function li(){return null}function Rt(){var f=this.parentNode;f&&f.removeChild(this)}function si(){var f=this.cloneNode(!1),T=this.parentNode;return T?T.insertBefore(f,this.nextSibling):f}function ci(){var f=this.cloneNode(!0),T=this.parentNode;return T?T.insertBefore(f,this.nextSibling):f}function Xi(f){return f.trim().split(/^|\s+/).map(function(T){var n="",d=T.indexOf(".");return d>=0&&(n=T.slice(d+1),T=T.slice(0,d)),{type:T,name:n}})}function Ke(f){return function(){var T=this.__on;if(T){for(var H,n=0,d=-1,k=T.length;n<k;++n)H=T[n],f.type&&H.type!==f.type||H.name!==f.name?T[++d]=H:this.removeEventListener(H.type,H.listener,H.options);++d?T.length=d:delete this.__on}}}function _t(f,T,n){return function(){var k,d=this.__on,H=function Di(f){return function(T){f.call(this,T,this.__data__)}}(T);if(d)for(var se=0,Se=d.length;se<Se;++se)if((k=d[se]).type===f.type&&k.name===f.name)return this.removeEventListener(k.type,k.listener,k.options),this.addEventListener(k.type,k.listener=H,k.options=n),void(k.value=T);this.addEventListener(f.type,H,n),k={type:f.type,name:f.name,value:T,listener:H,options:n},d?d.push(k):this.__on=[k]}}function qe(f,T,n){var d=q(f),k=d.CustomEvent;"function"==typeof k?k=new k(T,n):(k=d.document.createEvent("Event"),n?(k.initEvent(T,n.bubbles,n.cancelable),k.detail=n.detail):k.initEvent(T,!1,!1)),f.dispatchEvent(k)}function yt(f,T){return function(){return qe(this,f,T)}}function fe(f,T){return function(){return qe(this,f,T.apply(this,arguments))}}Ft.prototype={add:function(f){this._names.indexOf(f)<0&&(this._names.push(f),this._node.setAttribute("class",this._names.join(" ")))},remove:function(f){var T=this._names.indexOf(f);T>=0&&(this._names.splice(T,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(f){return this._names.indexOf(f)>=0}};var Pt=[null];function yi(f,T){this._groups=f,this._parents=T}function Ni(){return new yi([[document.documentElement]],Pt)}yi.prototype=Ni.prototype={constructor:yi,select:function D(f){"function"!=typeof f&&(f=s(f));for(var T=this._groups,n=T.length,d=new Array(n),k=0;k<n;++k)for(var ht,mt,H=T[k],se=H.length,Se=d[k]=new Array(se),Dt=0;Dt<se;++Dt)(ht=H[Dt])&&(mt=f.call(ht,ht.__data__,Dt,H))&&("__data__"in ht&&(mt.__data__=ht.__data__),Se[Dt]=mt);return new yi(d,this._parents)},selectAll:function w(f){f="function"==typeof f?function P(f){return function(){var T=f.apply(this,arguments);return null==T?[]:A(T)}}(f):E(f);for(var T=this._groups,n=T.length,d=[],k=[],H=0;H<n;++H)for(var ht,se=T[H],Se=se.length,mt=0;mt<Se;++mt)(ht=se[mt])&&(d.push(f.call(ht,ht.__data__,mt,se)),k.push(ht));return new yi(d,k)},selectChild:function _e(f){return this.select(null==f?ee:function ie(f){return function(){return W.call(this.children,f)}}("function"==typeof f?f:j(f)))},selectChildren:function oe(f){return this.selectAll(null==f?re:function de(f){return function(){return ce.call(this.children,f)}}("function"==typeof f?f:j(f)))},filter:function ae(f){"function"!=typeof f&&(f=Z(f));for(var T=this._groups,n=T.length,d=new Array(n),k=0;k<n;++k)for(var ht,H=T[k],se=H.length,Se=d[k]=[],mt=0;mt<se;++mt)(ht=H[mt])&&f.call(ht,ht.__data__,mt,H)&&Se.push(ht);return new yi(d,this._parents)},data:function I(f,T){if(!arguments.length)return Array.from(this,L);var n=T?_:u,d=this._parents,k=this._groups;"function"!=typeof f&&(f=p(f));for(var H=k.length,se=new Array(H),Se=new Array(H),ht=new Array(H),mt=0;mt<H;++mt){var Dt=d[mt],Ht=k[mt],Ut=Ht.length,ni=A(f.call(Dt,Dt&&Dt.__data__,mt,d)),bi=ni.length,zi=Se[mt]=new Array(bi),di=se[mt]=new Array(bi),Vi=ht[mt]=new Array(Ut);n(Dt,Ht,zi,di,Vi,ni,T);for(var cn,fn,Gi=0,Qi=0;Gi<bi;++Gi)if(cn=zi[Gi]){for(Gi>=Qi&&(Qi=Gi+1);!(fn=di[Qi])&&++Qi<bi;);cn._next=fn||null}}return(se=new yi(se,d))._enter=Se,se._exit=ht,se},enter:function i(){return new yi(this._enter||this._groups.map(b),this._parents)},exit:function x(){return new yi(this._exit||this._groups.map(b),this._parents)},join:function r(f,T,n){var d=this.enter(),k=this,H=this.exit();return d="function"==typeof f?f(d):d.append(f+""),null!=T&&(k=T(k)),null==n?H.remove():n(H),d&&k?d.merge(k).order():k},merge:function v(f){if(!(f instanceof yi))throw new Error("invalid merge");for(var T=this._groups,n=f._groups,d=T.length,H=Math.min(d,n.length),se=new Array(d),Se=0;Se<H;++Se)for(var Ut,ht=T[Se],mt=n[Se],Dt=ht.length,Ht=se[Se]=new Array(Dt),ni=0;ni<Dt;++ni)(Ut=ht[ni]||mt[ni])&&(Ht[ni]=Ut);for(;Se<d;++Se)se[Se]=T[Se];return new yi(se,this._parents)},selection:function Si(){return this},order:function G(){for(var f=this._groups,T=-1,n=f.length;++T<n;)for(var se,d=f[T],k=d.length-1,H=d[k];--k>=0;)(se=d[k])&&(H&&4^se.compareDocumentPosition(H)&&H.parentNode.insertBefore(se,H),H=se);return this},sort:function F(f){function T(Ht,Ut){return Ht&&Ut?f(Ht.__data__,Ut.__data__):!Ht-!Ut}f||(f=U);for(var n=this._groups,d=n.length,k=new Array(d),H=0;H<d;++H){for(var mt,se=n[H],Se=se.length,ht=k[H]=new Array(Se),Dt=0;Dt<Se;++Dt)(mt=se[Dt])&&(ht[Dt]=mt);ht.sort(T)}return new yi(k,this._parents).order()},call:function ye(){var f=arguments[0];return arguments[0]=this,f.apply(null,arguments),this},nodes:function Ce(){return Array.from(this)},node:function Be(){for(var f=this._groups,T=0,n=f.length;T<n;++T)for(var d=f[T],k=0,H=d.length;k<H;++k){var se=d[k];if(se)return se}return null},size:function ze(){let f=0;for(const T of this)++f;return f},empty:function Ie(){return!this.node()},each:function K(f){for(var T=this._groups,n=0,d=T.length;n<d;++n)for(var Se,k=T[n],H=0,se=k.length;H<se;++H)(Se=k[H])&&f.call(Se,Se.__data__,H,k);return this},attr:function ke(f,T){var n=z(f);if(arguments.length<2){var d=this.node();return n.local?d.getAttributeNS(n.space,n.local):d.getAttribute(n)}return this.each((null==T?n.local?vt:Ge:"function"==typeof T?n.local?Le:he:n.local?Ne:Re)(n,T))},style:function Ue(f,T,n){return arguments.length>1?this.each((null==T?$:"function"==typeof T?xe:le)(f,T,null==n?"":n)):lt(this.node(),f)},property:function rt(f,T){return arguments.length>1?this.each((null==T?nt:"function"==typeof T?it:ft)(f,T)):this.node()[f]},classed:function ai(f,T){var n=Mt(f+"");if(arguments.length<2){for(var d=Zt(this.node()),k=-1,H=n.length;++k<H;)if(!d.contains(n[k]))return!1;return!0}return this.each(("function"==typeof T?Pi:T?jt:ei)(n,T))},text:function Y(f){return arguments.length?this.each(null==f?hi:("function"==typeof f?Ee:Ze)(f)):this.node().textContent},html:function $t(f){return arguments.length?this.each(null==f?me:("function"==typeof f?et:De)(f)):this.node().innerHTML},raise:function Jt(){return this.each(Nt)},lower:function Pe(){return this.each(ct)},append:function At(f){var T="function"==typeof f?f:st(f);return this.select(function(){return this.appendChild(T.apply(this,arguments))})},insert:function Bt(f,T){var n="function"==typeof f?f:st(f),d=null==T?li:"function"==typeof T?T:s(T);return this.select(function(){return this.insertBefore(n.apply(this,arguments),d.apply(this,arguments)||null)})},remove:function Li(){return this.each(Rt)},clone:function sn(f){return this.select(f?ci:si)},datum:function Ui(f){return arguments.length?this.property("__data__",f):this.node().__data__},on:function ve(f,T,n){var k,se,d=Xi(f+""),H=d.length;if(!(arguments.length<2)){for(Se=T?_t:Ke,k=0;k<H;++k)this.each(Se(d[k],T,n));return this}var Se=this.node().__on;if(Se)for(var Dt,ht=0,mt=Se.length;ht<mt;++ht)for(k=0,Dt=Se[ht];k<H;++k)if((se=d[k]).type===Dt.type&&se.name===Dt.name)return Dt.value},dispatch:function Je(f,T){return this.each(("function"==typeof T?fe:yt)(f,T))},[Symbol.iterator]:function*St(){for(var f=this._groups,T=0,n=f.length;T<n;++T)for(var se,d=f[T],k=0,H=d.length;k<H;++k)(se=d[k])&&(yield se)}};const qi=Ni;var Kt={value:()=>{}};function gt(){for(var d,f=0,T=arguments.length,n={};f<T;++f){if(!(d=arguments[f]+"")||d in n||/[\s.]/.test(d))throw new Error("illegal type: "+d);n[d]=[]}return new Lt(n)}function Lt(f){this._=f}function ui(f,T){return f.trim().split(/^|\s+/).map(function(n){var d="",k=n.indexOf(".");if(k>=0&&(d=n.slice(k+1),n=n.slice(0,k)),n&&!T.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:d}})}function Ci(f,T){for(var k,n=0,d=f.length;n<d;++n)if((k=f[n]).name===T)return k.value}function Yi(f,T,n){for(var d=0,k=f.length;d<k;++d)if(f[d].name===T){f[d]=Kt,f=f.slice(0,d).concat(f.slice(d+1));break}return null!=n&&f.push({name:T,value:n}),f}Lt.prototype=gt.prototype={constructor:Lt,on:function(f,T){var k,n=this._,d=ui(f+"",n),H=-1,se=d.length;if(!(arguments.length<2)){if(null!=T&&"function"!=typeof T)throw new Error("invalid callback: "+T);for(;++H<se;)if(k=(f=d[H]).type)n[k]=Yi(n[k],f.name,T);else if(null==T)for(k in n)n[k]=Yi(n[k],f.name,null);return this}for(;++H<se;)if((k=(f=d[H]).type)&&(k=Ci(n[k],f.name)))return k},copy:function(){var f={},T=this._;for(var n in T)f[n]=T[n].slice();return new Lt(f)},call:function(f,T){if((k=arguments.length-2)>0)for(var k,H,n=new Array(k),d=0;d<k;++d)n[d]=arguments[d+2];if(!this._.hasOwnProperty(f))throw new Error("unknown type: "+f);for(d=0,k=(H=this._[f]).length;d<k;++d)H[d].value.apply(T,n)},apply:function(f,T,n){if(!this._.hasOwnProperty(f))throw new Error("unknown type: "+f);for(var d=this._[f],k=0,H=d.length;k<H;++k)d[k].value.apply(T,n)}};const $i=gt;function dr(f,T,n){f.prototype=T.prototype=n,n.constructor=f}function wi(f,T){var n=Object.create(f.prototype);for(var d in T)n[d]=T[d];return n}function Fi(){}var Lr=1/.7,La="\\s*([+-]?\\d+)\\s*",Gn="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Or="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ra=/^#([0-9a-f]{3,8})$/,Ma=new RegExp("^rgb\\("+[La,La,La]+"\\)$"),Fa=new RegExp("^rgb\\("+[Or,Or,Or]+"\\)$"),xr=new RegExp("^rgba\\("+[La,La,La,Gn]+"\\)$"),hs=new RegExp("^rgba\\("+[Or,Or,Or,Gn]+"\\)$"),ur=new RegExp("^hsl\\("+[Gn,Or,Or]+"\\)$"),pa=new RegExp("^hsla\\("+[Gn,Or,Or,Gn]+"\\)$"),ma={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Ir(){return this.rgb().formatHex()}function Ya(){return this.rgb().formatRgb()}function Zr(f){var T,n;return f=(f+"").trim().toLowerCase(),(T=Ra.exec(f))?(n=T[1].length,T=parseInt(T[1],16),6===n?kr(T):3===n?new Tr(T>>8&15|T>>4&240,T>>4&15|240&T,(15&T)<<4|15&T,1):8===n?Kn(T>>24&255,T>>16&255,T>>8&255,(255&T)/255):4===n?Kn(T>>12&15|T>>8&240,T>>8&15|T>>4&240,T>>4&15|240&T,((15&T)<<4|15&T)/255):null):(T=Ma.exec(f))?new Tr(T[1],T[2],T[3],1):(T=Fa.exec(f))?new Tr(255*T[1]/100,255*T[2]/100,255*T[3]/100,1):(T=xr.exec(f))?Kn(T[1],T[2],T[3],T[4]):(T=hs.exec(f))?Kn(255*T[1]/100,255*T[2]/100,255*T[3]/100,T[4]):(T=ur.exec(f))?la(T[1],T[2]/100,T[3]/100,1):(T=pa.exec(f))?la(T[1],T[2]/100,T[3]/100,T[4]):ma.hasOwnProperty(f)?kr(ma[f]):"transparent"===f?new Tr(NaN,NaN,NaN,0):null}function kr(f){return new Tr(f>>16&255,f>>8&255,255&f,1)}function Kn(f,T,n,d){return d<=0&&(f=T=n=NaN),new Tr(f,T,n,d)}function vn(f){return f instanceof Fi||(f=Zr(f)),f?new Tr((f=f.rgb()).r,f.g,f.b,f.opacity):new Tr}function Qn(f,T,n,d){return 1===arguments.length?vn(f):new Tr(f,T,n,null==d?1:d)}function Tr(f,T,n,d){this.r=+f,this.g=+T,this.b=+n,this.opacity=+d}function Ba(){return"#"+Pr(this.r)+Pr(this.g)+Pr(this.b)}function Wa(){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 Pr(f){return((f=Math.max(0,Math.min(255,Math.round(f)||0)))<16?"0":"")+f.toString(16)}function la(f,T,n,d){return d<=0?f=T=n=NaN:n<=0||n>=1?f=T=NaN:T<=0&&(f=NaN),new $n(f,T,n,d)}function Jr(f){if(f instanceof $n)return new $n(f.h,f.s,f.l,f.opacity);if(f instanceof Fi||(f=Zr(f)),!f)return new $n;if(f instanceof $n)return f;var T=(f=f.rgb()).r/255,n=f.g/255,d=f.b/255,k=Math.min(T,n,d),H=Math.max(T,n,d),se=NaN,Se=H-k,ht=(H+k)/2;return Se?(se=T===H?(n-d)/Se+6*(n<d):n===H?(d-T)/Se+2:(T-n)/Se+4,Se/=ht<.5?H+k:2-H-k,se*=60):Se=ht>0&&ht<1?0:se,new $n(se,Se,ht,f.opacity)}function $n(f,T,n,d){this.h=+f,this.s=+T,this.l=+n,this.opacity=+d}function wa(f,T,n){return 255*(f<60?T+(n-T)*f/60:f<180?n:f<240?T+(n-T)*(240-f)/60:T)}function Nr(f,T,n,d,k){var H=f*f,se=H*f;return((1-3*f+3*H-se)*T+(4-6*H+3*se)*n+(1+3*f+3*H-3*se)*d+se*k)/6}dr(Fi,Zr,{copy:function(f){return Object.assign(new this.constructor,this,f)},displayable:function(){return this.rgb().displayable()},hex:Ir,formatHex:Ir,formatHsl:function Ga(){return Jr(this).formatHsl()},formatRgb:Ya,toString:Ya}),dr(Tr,Qn,wi(Fi,{brighter:function(f){return f=null==f?Lr:Math.pow(Lr,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:Ba,formatHex:Ba,formatRgb:Wa,toString:Wa})),dr($n,function ga(f,T,n,d){return 1===arguments.length?Jr(f):new $n(f,T,n,null==d?1:d)},wi(Fi,{brighter:function(f){return f=null==f?Lr:Math.pow(Lr,f),new $n(this.h,this.s,this.l*f,this.opacity)},darker:function(f){return f=null==f?.7:Math.pow(.7,f),new $n(this.h,this.s,this.l*f,this.opacity)},rgb:function(){var f=this.h%360+360*(this.h<0),T=isNaN(f)||isNaN(this.s)?0:this.s,n=this.l,d=n+(n<.5?n:1-n)*T,k=2*n-d;return new Tr(wa(f>=240?f-240:f+120,k,d),wa(f,k,d),wa(f<120?f+240:f-120,k,d),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var f=this.opacity;return(1===(f=isNaN(f)?1:Math.max(0,Math.min(1,f)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===f?")":", "+f+")")}}));const Vr=f=>()=>f;function Oa(f,T){var n=T-f;return n?function ha(f,T){return function(n){return f+n*T}}(f,n):Vr(isNaN(f)?T:f)}const ra=function f(T){var n=function is(f){return 1==(f=+f)?Oa:function(T,n){return n-T?function pr(f,T,n){return f=Math.pow(f,n),T=Math.pow(T,n)-f,n=1/n,function(d){return Math.pow(f+d*T,n)}}(T,n,f):Vr(isNaN(T)?n:T)}}(T);function d(k,H){var se=n((k=Qn(k)).r,(H=Qn(H)).r),Se=n(k.g,H.g),ht=n(k.b,H.b),mt=Oa(k.opacity,H.opacity);return function(Dt){return k.r=se(Dt),k.g=Se(Dt),k.b=ht(Dt),k.opacity=mt(Dt),k+""}}return d.gamma=f,d}(1);function Gr(f){return function(T){var se,Se,n=T.length,d=new Array(n),k=new Array(n),H=new Array(n);for(se=0;se<n;++se)Se=Qn(T[se]),d[se]=Se.r||0,k[se]=Se.g||0,H[se]=Se.b||0;return d=f(d),k=f(k),H=f(H),Se.opacity=1,function(ht){return Se.r=d(ht),Se.g=k(ht),Se.b=H(ht),Se+""}}}function ja(f,T){var se,n=T?T.length:0,d=f?Math.min(n,f.length):0,k=new Array(d),H=new Array(n);for(se=0;se<d;++se)k[se]=Yt(f[se],T[se]);for(;se<n;++se)H[se]=T[se];return function(Se){for(se=0;se<d;++se)H[se]=k[se](Se);return H}}function Xe(f,T){var n=new Date;return f=+f,T=+T,function(d){return n.setTime(f*(1-d)+T*d),n}}function ge(f,T){return f=+f,T=+T,function(n){return f*(1-n)+T*n}}function J(f,T){var k,n={},d={};for(k in(null===f||"object"!=typeof f)&&(f={}),(null===T||"object"!=typeof T)&&(T={}),T)k in f?n[k]=Yt(f[k],T[k]):d[k]=T[k];return function(H){for(k in n)d[k]=n[k](H);return d}}Gr(function ca(f){var T=f.length-1;return function(n){var d=n<=0?n=0:n>=1?(n=1,T-1):Math.floor(n*T),k=f[d],H=f[d+1];return Nr((n-d/T)*T,d>0?f[d-1]:2*k-H,k,H,d<T-1?f[d+2]:2*H-k)}}),Gr(function Aa(f){var T=f.length;return function(n){var d=Math.floor(((n%=1)<0?++n:n)*T);return Nr((n-d/T)*T,f[(d+T-1)%T],f[d%T],f[(d+1)%T],f[(d+2)%T])}});var ne=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Qe=new RegExp(ne.source,"g");function Ct(f,T){var d,k,H,n=ne.lastIndex=Qe.lastIndex=0,se=-1,Se=[],ht=[];for(f+="",T+="";(d=ne.exec(f))&&(k=Qe.exec(T));)(H=k.index)>n&&(H=T.slice(n,H),Se[se]?Se[se]+=H:Se[++se]=H),(d=d[0])===(k=k[0])?Se[se]?Se[se]+=k:Se[++se]=k:(Se[++se]=null,ht.push({i:se,x:ge(d,k)})),n=Qe.lastIndex;return n<T.length&&(H=T.slice(n),Se[se]?Se[se]+=H:Se[++se]=H),Se.length<2?ht[0]?function mi(f){return function(T){return f(T)+""}}(ht[0].x):function Wt(f){return function(){return f}}(T):(T=ht.length,function(mt){for(var Ht,Dt=0;Dt<T;++Dt)Se[(Ht=ht[Dt]).i]=Ht.x(mt);return Se.join("")})}function ti(f,T){T||(T=[]);var k,n=f?Math.min(T.length,f.length):0,d=T.slice();return function(H){for(k=0;k<n;++k)d[k]=f[k]*(1-H)+T[k]*H;return d}}function Yt(f,T){var d,n=typeof T;return null==T||"boolean"===n?Vr(T):("number"===n?ge:"string"===n?(d=Zr(T))?(T=d,ra):Ct:T instanceof Zr?ra:T instanceof Date?Xe:function bt(f){return ArrayBuffer.isView(f)&&!(f instanceof DataView)}(T)?ti:Array.isArray(T)?ja:"function"!=typeof T.valueOf&&"function"!=typeof T.toString||isNaN(T)?J:ge)(f,T)}var Un,Rn,yn=0,An=0,Wi=0,_a=0,Mr=0,ds=0,vs="object"==typeof performance&&performance.now?performance:Date,ki="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(f){setTimeout(f,17)};function Nn(){return Mr||(ki(zs),Mr=vs.now()+ds)}function zs(){Mr=0}function fr(){this._call=this._time=this._next=null}function Us(f,T,n){var d=new fr;return d.restart(f,T,n),d}function xt(){Mr=(_a=vs.now())+ds,yn=An=0;try{!function rs(){Nn(),++yn;for(var T,f=Un;f;)(T=Mr-f._time)>=0&&f._call.call(null,T),f=f._next;--yn}()}finally{yn=0,function ue(){for(var f,n,T=Un,d=1/0;T;)T._call?(d>T._time&&(d=T._time),f=T,T=T._next):(n=T._next,T._next=null,T=f?f._next=n:Un=n);Rn=f,je(d)}(),Mr=0}}function te(){var f=vs.now(),T=f-_a;T>1e3&&(ds-=T,_a=f)}function je(f){yn||(An&&(An=clearTimeout(An)),f-Mr>24?(f<1/0&&(An=setTimeout(xt,f-vs.now()-ds)),Wi&&(Wi=clearInterval(Wi))):(Wi||(_a=vs.now(),Wi=setInterval(te,1e3)),yn=1,ki(xt)))}function wt(f,T,n){var d=new fr;return d.restart(k=>{d.stop(),f(k+T)},T=null==T?0:+T,n),d}fr.prototype=Us.prototype={constructor:fr,restart:function(f,T,n){if("function"!=typeof f)throw new TypeError("callback is not a function");n=(null==n?Nn():+n)+(null==T?0:+T),!this._next&&Rn!==this&&(Rn?Rn._next=this:Un=this,Rn=this),this._call=f,this._time=n,je()},stop:function(){this._call&&(this._call=null,this._time=1/0,je())}};var kt=$i("start","end","cancel","interrupt"),Qt=[];function tt(f,T,n,d,k,H){var se=f.__transition;if(se){if(n in se)return}else f.__transition={};!function ri(f,T,n){var k,d=f.__transition;function se(mt){var Dt,Ht,Ut,ni;if(1!==n.state)return ht();for(Dt in d)if((ni=d[Dt]).name===n.name){if(3===ni.state)return wt(se);4===ni.state?(ni.state=6,ni.timer.stop(),ni.on.call("interrupt",f,f.__data__,ni.index,ni.group),delete d[Dt]):+Dt<T&&(ni.state=6,ni.timer.stop(),ni.on.call("cancel",f,f.__data__,ni.index,ni.group),delete d[Dt])}if(wt(function(){3===n.state&&(n.state=4,n.timer.restart(Se,n.delay,n.time),Se(mt))}),n.state=2,n.on.call("start",f,f.__data__,n.index,n.group),2===n.state){for(n.state=3,k=new Array(Ut=n.tween.length),Dt=0,Ht=-1;Dt<Ut;++Dt)(ni=n.tween[Dt].value.call(f,f.__data__,n.index,n.group))&&(k[++Ht]=ni);k.length=Ht+1}}function Se(mt){for(var Dt=mt<n.duration?n.ease.call(null,mt/n.duration):(n.timer.restart(ht),n.state=5,1),Ht=-1,Ut=k.length;++Ht<Ut;)k[Ht].call(f,Dt);5===n.state&&(n.on.call("end",f,f.__data__,n.index,n.group),ht())}function ht(){for(var mt in n.state=6,n.timer.stop(),delete d[T],d)return;delete f.__transition}d[T]=n,n.timer=Us(function H(mt){n.state=1,n.timer.restart(se,n.delay,n.time),n.delay<=mt&&se(mt-n.delay)},0,n.time)}(f,n,{name:T,index:d,group:k,on:kt,tween:Qt,time:H.time,delay:H.delay,duration:H.duration,ease:H.ease,timer:null,state:0})}function Et(f,T){var n=zt(f,T);if(n.state>0)throw new Error("too late; already scheduled");return n}function It(f,T){var n=zt(f,T);if(n.state>3)throw new Error("too late; already running");return n}function zt(f,T){var n=f.__transition;if(!n||!(n=n[T]))throw new Error("transition not found");return n}var gn,Ai=180/Math.PI,Ki={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function un(f,T,n,d,k,H){var se,Se,ht;return(se=Math.sqrt(f*f+T*T))&&(f/=se,T/=se),(ht=f*n+T*d)&&(n-=f*ht,d-=T*ht),(Se=Math.sqrt(n*n+d*d))&&(n/=Se,d/=Se,ht/=Se),f*d<T*n&&(f=-f,T=-T,ht=-ht,se=-se),{translateX:k,translateY:H,rotate:Math.atan2(T,f)*Ai,skewX:Math.atan(ht)*Ai,scaleX:se,scaleY:Se}}function Rr(f,T,n,d){function k(mt){return mt.length?mt.pop()+" ":""}return function(mt,Dt){var Ht=[],Ut=[];return mt=f(mt),Dt=f(Dt),function H(mt,Dt,Ht,Ut,ni,bi){if(mt!==Ht||Dt!==Ut){var zi=ni.push("translate(",null,T,null,n);bi.push({i:zi-4,x:ge(mt,Ht)},{i:zi-2,x:ge(Dt,Ut)})}else(Ht||Ut)&&ni.push("translate("+Ht+T+Ut+n)}(mt.translateX,mt.translateY,Dt.translateX,Dt.translateY,Ht,Ut),function se(mt,Dt,Ht,Ut){mt!==Dt?(mt-Dt>180?Dt+=360:Dt-mt>180&&(mt+=360),Ut.push({i:Ht.push(k(Ht)+"rotate(",null,d)-2,x:ge(mt,Dt)})):Dt&&Ht.push(k(Ht)+"rotate("+Dt+d)}(mt.rotate,Dt.rotate,Ht,Ut),function Se(mt,Dt,Ht,Ut){mt!==Dt?Ut.push({i:Ht.push(k(Ht)+"skewX(",null,d)-2,x:ge(mt,Dt)}):Dt&&Ht.push(k(Ht)+"skewX("+Dt+d)}(mt.skewX,Dt.skewX,Ht,Ut),function ht(mt,Dt,Ht,Ut,ni,bi){if(mt!==Ht||Dt!==Ut){var zi=ni.push(k(ni)+"scale(",null,",",null,")");bi.push({i:zi-4,x:ge(mt,Ht)},{i:zi-2,x:ge(Dt,Ut)})}else(1!==Ht||1!==Ut)&&ni.push(k(ni)+"scale("+Ht+","+Ut+")")}(mt.scaleX,mt.scaleY,Dt.scaleX,Dt.scaleY,Ht,Ut),mt=Dt=null,function(ni){for(var di,bi=-1,zi=Ut.length;++bi<zi;)Ht[(di=Ut[bi]).i]=di.x(ni);return Ht.join("")}}}var Fr=Rr(function En(f){const T=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(f+"");return T.isIdentity?Ki:un(T.a,T.b,T.c,T.d,T.e,T.f)},"px, ","px)","deg)"),wr=Rr(function zn(f){return null!=f&&(gn||(gn=document.createElementNS("http://www.w3.org/2000/svg","g")),gn.setAttribute("transform",f),f=gn.transform.baseVal.consolidate())?un((f=f.matrix).a,f.b,f.c,f.d,f.e,f.f):Ki},", ",")",")");function Vn(f,T){var n,d;return function(){var k=It(this,f),H=k.tween;if(H!==n)for(var se=0,Se=(d=n=H).length;se<Se;++se)if(d[se].name===T){(d=d.slice()).splice(se,1);break}k.tween=d}}function mr(f,T,n){var d,k;if("function"!=typeof n)throw new Error;return function(){var H=It(this,f),se=H.tween;if(se!==d){k=(d=se).slice();for(var Se={name:T,value:n},ht=0,mt=k.length;ht<mt;++ht)if(k[ht].name===T){k[ht]=Se;break}ht===mt&&k.push(Se)}H.tween=k}}function on(f,T,n){var d=f._id;return f.each(function(){var k=It(this,d);(k.value||(k.value={}))[T]=n.apply(this,arguments)}),function(k){return zt(k,d).value[T]}}function nn(f,T){var n;return("number"==typeof T?ge:T instanceof Zr?ra:(n=Zr(T))?(T=n,ra):Ct)(f,T)}function kn(f){return function(){this.removeAttribute(f)}}function jn(f){return function(){this.removeAttributeNS(f.space,f.local)}}function da(f,T,n){var d,H,k=n+"";return function(){var se=this.getAttribute(f);return se===k?null:se===d?H:H=T(d=se,n)}}function Xr(f,T,n){var d,H,k=n+"";return function(){var se=this.getAttributeNS(f.space,f.local);return se===k?null:se===d?H:H=T(d=se,n)}}function $r(f,T,n){var d,k,H;return function(){var se,ht,Se=n(this);return null==Se?void this.removeAttribute(f):(se=this.getAttribute(f))===(ht=Se+"")?null:se===d&&ht===k?H:(k=ht,H=T(d=se,Se))}}function Yn(f,T,n){var d,k,H;return function(){var se,ht,Se=n(this);return null==Se?void this.removeAttributeNS(f.space,f.local):(se=this.getAttributeNS(f.space,f.local))===(ht=Se+"")?null:se===d&&ht===k?H:(k=ht,H=T(d=se,Se))}}function Ia(f,T){return function(n){this.setAttribute(f,T.call(this,n))}}function ks(f,T){return function(n){this.setAttributeNS(f.space,f.local,T.call(this,n))}}function Zs(f,T){var n,d;function k(){var H=T.apply(this,arguments);return H!==d&&(n=(d=H)&&ks(f,H)),n}return k._value=T,k}function va(f,T){var n,d;function k(){var H=T.apply(this,arguments);return H!==d&&(n=(d=H)&&Ia(f,H)),n}return k._value=T,k}function Jc(f,T){return function(){Et(this,f).delay=+T.apply(this,arguments)}}function Vs(f,T){return T=+T,function(){Et(this,f).delay=T}}function tl(f,T){return function(){It(this,f).duration=+T.apply(this,arguments)}}function cc(f,T){return T=+T,function(){It(this,f).duration=T}}function Xc(f,T){if("function"!=typeof T)throw new Error;return function(){It(this,f).ease=T}}function Io(f,T,n){var d,k,H=function Ll(f){return(f+"").trim().split(/^|\s+/).every(function(T){var n=T.indexOf(".");return n>=0&&(T=T.slice(0,n)),!T||"start"===T})}(T)?Et:It;return function(){var se=H(this,f),Se=se.on;Se!==d&&(k=(d=Se).copy()).on(T,n),se.on=k}}var Ye=qi.prototype.constructor;function $e(f){return function(){this.style.removeProperty(f)}}function Ei(f,T,n){return function(d){this.style.setProperty(f,T.call(this,d),n)}}function an(f,T,n){var d,k;function H(){var se=T.apply(this,arguments);return se!==k&&(d=(k=se)&&Ei(f,se,n)),d}return H._value=T,H}function ao(f){return function(T){this.textContent=f.call(this,T)}}function ea(f){var T,n;function d(){var k=f.apply(this,arguments);return k!==n&&(T=(n=k)&&ao(k)),T}return d._value=f,d}var bs=0;function Ea(f,T,n,d){this._groups=f,this._parents=T,this._name=n,this._id=d}function yo(){return++bs}var so=qi.prototype;Ea.prototype=function Ol(f){return qi().transition(f)}.prototype={constructor:Ea,select:function rl(f){var T=this._name,n=this._id;"function"!=typeof f&&(f=s(f));for(var d=this._groups,k=d.length,H=new Array(k),se=0;se<k;++se)for(var Dt,Ht,Se=d[se],ht=Se.length,mt=H[se]=new Array(ht),Ut=0;Ut<ht;++Ut)(Dt=Se[Ut])&&(Ht=f.call(Dt,Dt.__data__,Ut,Se))&&("__data__"in Dt&&(Ht.__data__=Dt.__data__),mt[Ut]=Ht,tt(mt[Ut],T,n,Ut,mt,zt(Dt,n)));return new Ea(H,this._parents,T,n)},selectAll:function al(f){var T=this._name,n=this._id;"function"!=typeof f&&(f=E(f));for(var d=this._groups,k=d.length,H=[],se=[],Se=0;Se<k;++Se)for(var Dt,ht=d[Se],mt=ht.length,Ht=0;Ht<mt;++Ht)if(Dt=ht[Ht]){for(var ni,Ut=f.call(Dt,Dt.__data__,Ht,ht),bi=zt(Dt,n),zi=0,di=Ut.length;zi<di;++zi)(ni=Ut[zi])&&tt(ni,T,n,zi,Ut,bi);H.push(Ut),se.push(Dt)}return new Ea(H,se,T,n)},filter:function nl(f){"function"!=typeof f&&(f=Z(f));for(var T=this._groups,n=T.length,d=new Array(n),k=0;k<n;++k)for(var ht,H=T[k],se=H.length,Se=d[k]=[],mt=0;mt<se;++mt)(ht=H[mt])&&f.call(ht,ht.__data__,mt,H)&&Se.push(ht);return new Ea(d,this._parents,this._name,this._id)},merge:function Oo(f){if(f._id!==this._id)throw new Error;for(var T=this._groups,n=f._groups,d=T.length,H=Math.min(d,n.length),se=new Array(d),Se=0;Se<H;++Se)for(var Ut,ht=T[Se],mt=n[Se],Dt=ht.length,Ht=se[Se]=new Array(Dt),ni=0;ni<Dt;++ni)(Ut=ht[ni]||mt[ni])&&(Ht[ni]=Ut);for(;Se<d;++Se)se[Se]=T[Se];return new Ea(se,this._parents,this._name,this._id)},selection:function Te(){return new Ye(this._groups,this._parents)},transition:function fs(){for(var f=this._name,T=this._id,n=yo(),d=this._groups,k=d.length,H=0;H<k;++H)for(var ht,se=d[H],Se=se.length,mt=0;mt<Se;++mt)if(ht=se[mt]){var Dt=zt(ht,T);tt(ht,f,n,mt,se,{time:Dt.time+Dt.delay+Dt.duration,delay:0,duration:Dt.duration,ease:Dt.ease})}return new Ea(d,this._parents,f,n)},call:so.call,nodes:so.nodes,node:so.node,size:so.size,empty:so.empty,each:so.each,on:function ro(f,T){var n=this._id;return arguments.length<2?zt(this.node(),n).on.on(f):this.each(Io(n,f,T))},attr:function io(f,T){var n=z(f),d="transform"===n?wr:nn;return this.attrTween(f,"function"==typeof T?(n.local?Yn:$r)(n,d,on(this,"attr."+f,T)):null==T?(n.local?jn:kn)(n):(n.local?Xr:da)(n,d,T))},attrTween:function us(f,T){var n="attr."+f;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==T)return this.tween(n,null);if("function"!=typeof T)throw new Error;var d=z(f);return this.tween(n,(d.local?Zs:va)(d,T))},style:function ii(f,T,n){var d="transform"==(f+="")?Fr:nn;return null==T?this.styleTween(f,function be(f,T){var n,d,k;return function(){var H=lt(this,f),se=(this.style.removeProperty(f),lt(this,f));return H===se?null:H===n&&se===d?k:k=T(n=H,d=se)}}(f,d)).on("end.style."+f,$e(f)):"function"==typeof T?this.styleTween(f,function Ot(f,T,n){var d,k,H;return function(){var se=lt(this,f),Se=n(this),ht=Se+"";return null==Se&&(this.style.removeProperty(f),ht=Se=lt(this,f)),se===ht?null:se===d&&ht===k?H:(k=ht,H=T(d=se,Se))}}(f,d,on(this,"style."+f,T))).each(function qt(f,T){var n,d,k,Se,H="style."+T,se="end."+H;return function(){var ht=It(this,f),mt=ht.on,Dt=null==ht.value[H]?Se||(Se=$e(T)):void 0;(mt!==n||k!==Dt)&&(d=(n=mt).copy()).on(se,k=Dt),ht.on=d}}(this._id,f)):this.styleTween(f,function dt(f,T,n){var d,H,k=n+"";return function(){var se=lt(this,f);return se===k?null:se===d?H:H=T(d=se,n)}}(f,d,T),n).on("end.style."+f,null)},styleTween:function Wn(f,T,n){var d="style."+(f+="");if(arguments.length<2)return(d=this.tween(d))&&d._value;if(null==T)return this.tween(d,null);if("function"!=typeof T)throw new Error;return this.tween(d,an(f,T,null==n?"":n))},text:function ar(f){return this.tween("text","function"==typeof f?function er(f){return function(){var T=f(this);this.textContent=null==T?"":T}}(on(this,"text",f)):function xn(f){return function(){this.textContent=f}}(null==f?"":f+""))},textTween:function ys(f){var T="text";if(arguments.length<1)return(T=this.tween(T))&&T._value;if(null==f)return this.tween(T,null);if("function"!=typeof f)throw new Error;return this.tween(T,ea(f))},remove:function Gs(){return this.on("end.remove",function dc(f){return function(){var T=this.parentNode;for(var n in this.__transition)if(+n!==f)return;T&&T.removeChild(this)}}(this._id))},tween:function Hi(f,T){var n=this._id;if(f+="",arguments.length<2){for(var se,d=zt(this.node(),n).tween,k=0,H=d.length;k<H;++k)if((se=d[k]).name===f)return se.value;return null}return this.each((null==T?Vn:mr)(n,f,T))},delay:function no(f){var T=this._id;return arguments.length?this.each(("function"==typeof f?Jc:Vs)(T,f)):zt(this.node(),T).delay},duration:function hc(f){var T=this._id;return arguments.length?this.each(("function"==typeof f?tl:cc)(T,f)):zt(this.node(),T).duration},ease:function $c(f){var T=this._id;return arguments.length?this.each(Xc(T,f)):zt(this.node(),T).ease},easeVarying:function il(f){if("function"!=typeof f)throw new Error;return this.each(function Lo(f,T){return function(){var n=T.apply(this,arguments);if("function"!=typeof n)throw new Error;It(this,f).ease=n}}(this._id,f))},end:function Ps(){var f,T,n=this,d=n._id,k=n.size();return new Promise(function(H,se){var Se={value:se},ht={value:function(){0==--k&&H()}};n.each(function(){var mt=It(this,d),Dt=mt.on;Dt!==f&&((T=(f=Dt).copy())._.cancel.push(Se),T._.interrupt.push(Se),T._.end.push(ht)),mt.on=T}),0===k&&H()})},[Symbol.iterator]:so[Symbol.iterator]};var Po={time:null,delay:0,duration:250,ease:function ko(f){return((f*=2)<=1?f*f*f:(f-=2)*f*f+2)/2}};function No(f,T){for(var n;!(n=f.__transition)||!(n=n[T]);)if(!(f=f.parentNode))throw new Error(`transition ${T} not found`);return n}qi.prototype.interrupt=function Mi(f){return this.each(function(){!function vi(f,T){var d,k,se,n=f.__transition,H=!0;if(n){for(se in T=null==T?null:T+"",n)(d=n[se]).name===T?(k=d.state>2&&d.state<5,d.state=6,d.timer.stop(),d.on.call(k?"interrupt":"cancel",f,f.__data__,d.index,d.group),delete n[se]):H=!1;H&&delete f.__transition}}(this,f)})},qi.prototype.transition=function ka(f){var T,n;f instanceof Ea?(T=f._id,f=f._name):(T=yo(),(n=Po).time=Nn(),f=null==f?null:f+"");for(var d=this._groups,k=d.length,H=0;H<k;++H)for(var ht,se=d[H],Se=se.length,mt=0;mt<Se;++mt)(ht=se[mt])&&tt(ht,f,T,mt,se,n||No(ht,T));return new Ea(d,this._parents,f,T)};Math;function Ws(f){return{type:f}}function Nl(f,T){return f<T?-1:f>T?1:f>=T?0:NaN}function js(f){let T=f,n=f;function d(se,Se,ht,mt){for(null==ht&&(ht=0),null==mt&&(mt=se.length);ht<mt;){const Dt=ht+mt>>>1;n(se[Dt],Se)<0?ht=Dt+1:mt=Dt}return ht}return 1===f.length&&(T=(se,Se)=>f(se)-Se,n=function l1(f){return(T,n)=>Nl(f(T),n)}(f)),{left:d,center:function H(se,Se,ht,mt){null==ht&&(ht=0),null==mt&&(mt=se.length);const Dt=d(se,Se,ht,mt-1);return Dt>ht&&T(se[Dt-1],Se)>-T(se[Dt],Se)?Dt-1:Dt},right:function k(se,Se,ht,mt){for(null==ht&&(ht=0),null==mt&&(mt=se.length);ht<mt;){const Dt=ht+mt>>>1;n(se[Dt],Se)>0?mt=Dt:ht=Dt+1}return ht}}}["w","e"].map(Ws),["n","s"].map(Ws),["n","w","e","s","nw","ne","sw","se"].map(Ws);var pc=Math.sqrt(50),mc=Math.sqrt(10),gc=Math.sqrt(2);function Rl(f,T,n){var d=(T-f)/Math.max(0,n),k=Math.floor(Math.log(d)/Math.LN10),H=d/Math.pow(10,k);return k>=0?(H>=pc?10:H>=mc?5:H>=gc?2:1)*Math.pow(10,k):-Math.pow(10,-k)/(H>=pc?10:H>=mc?5:H>=gc?2:1)}function Fo(f,T,n){var d=Math.abs(T-f)/Math.max(0,n),k=Math.pow(10,Math.floor(Math.log(d)/Math.LN10)),H=d/k;return H>=pc?k*=10:H>=mc?k*=5:H>=gc&&(k*=2),T<f?-k:k}const lo=1e3,za=6e4,Cs=60*za,Ns=24*Cs,_c=7*Ns,h1=30*Ns,vc=365*Ns;var Fl=new Date,yc=new Date;function ta(f,T,n,d){function k(H){return f(H=0===arguments.length?new Date:new Date(+H)),H}return k.floor=function(H){return f(H=new Date(+H)),H},k.ceil=function(H){return f(H=new Date(H-1)),T(H,1),f(H),H},k.round=function(H){var se=k(H),Se=k.ceil(H);return H-se<Se-H?se:Se},k.offset=function(H,se){return T(H=new Date(+H),null==se?1:Math.floor(se)),H},k.range=function(H,se,Se){var mt,ht=[];if(H=k.ceil(H),Se=null==Se?1:Math.floor(Se),!(H<se&&Se>0))return ht;do{ht.push(mt=new Date(+H)),T(H,Se),f(H)}while(mt<H&&H<se);return ht},k.filter=function(H){return ta(function(se){if(se>=se)for(;f(se),!H(se);)se.setTime(se-1)},function(se,Se){if(se>=se)if(Se<0)for(;++Se<=0;)for(;T(se,-1),!H(se););else for(;--Se>=0;)for(;T(se,1),!H(se););})},n&&(k.count=function(H,se){return Fl.setTime(+H),yc.setTime(+se),f(Fl),f(yc),Math.floor(n(Fl,yc))},k.every=function(H){return H=Math.floor(H),isFinite(H)&&H>0?H>1?k.filter(d?function(se){return d(se)%H==0}:function(se){return k.count(0,se)%H==0}):k:null}),k}var ll=ta(function(){},function(f,T){f.setTime(+f+T)},function(f,T){return T-f});ll.every=function(f){return f=Math.floor(f),isFinite(f)&&f>0?f>1?ta(function(T){T.setTime(Math.floor(T/f)*f)},function(T,n){T.setTime(+T+n*f)},function(T,n){return(n-T)/f}):ll:null};const v0=ll;const cl=ta(function(f){f.setTime(f-f.getMilliseconds())},function(f,T){f.setTime(+f+T*lo)},function(f,T){return(T-f)/lo},function(f){return f.getUTCSeconds()});const u1=ta(function(f){f.setTime(f-f.getMilliseconds()-f.getSeconds()*lo)},function(f,T){f.setTime(+f+T*za)},function(f,T){return(T-f)/za},function(f){return f.getMinutes()});const Ho=ta(function(f){f.setTime(f-f.getMilliseconds()-f.getSeconds()*lo-f.getMinutes()*za)},function(f,T){f.setTime(+f+T*Cs)},function(f,T){return(T-f)/Cs},function(f){return f.getHours()});const qs=ta(f=>f.setHours(0,0,0,0),(f,T)=>f.setDate(f.getDate()+T),(f,T)=>(T-f-(T.getTimezoneOffset()-f.getTimezoneOffset())*za)/Ns,f=>f.getDate()-1);function co(f){return ta(function(T){T.setDate(T.getDate()-(T.getDay()+7-f)%7),T.setHours(0,0,0,0)},function(T,n){T.setDate(T.getDate()+7*n)},function(T,n){return(n-T-(n.getTimezoneOffset()-T.getTimezoneOffset())*za)/_c})}var Uo=co(0),xo=co(1),Zo=(co(2),co(3),co(4));const Yo=(co(5),co(6),ta(function(f){f.setDate(1),f.setHours(0,0,0,0)},function(f,T){f.setMonth(f.getMonth()+T)},function(f,T){return T.getMonth()-f.getMonth()+12*(T.getFullYear()-f.getFullYear())},function(f){return f.getMonth()}));var ho=ta(function(f){f.setMonth(0,1),f.setHours(0,0,0,0)},function(f,T){f.setFullYear(f.getFullYear()+T)},function(f,T){return T.getFullYear()-f.getFullYear()},function(f){return f.getFullYear()});ho.every=function(f){return isFinite(f=Math.floor(f))&&f>0?ta(function(T){T.setFullYear(Math.floor(T.getFullYear()/f)*f),T.setMonth(0,1),T.setHours(0,0,0,0)},function(T,n){T.setFullYear(T.getFullYear()+n*f)}):null};const uo=ho;const Hl=ta(function(f){f.setUTCSeconds(0,0)},function(f,T){f.setTime(+f+T*za)},function(f,T){return(T-f)/za},function(f){return f.getUTCMinutes()});const B=ta(function(f){f.setUTCMinutes(0,0,0)},function(f,T){f.setTime(+f+T*Cs)},function(f,T){return(T-f)/Cs},function(f){return f.getUTCHours()});const fi=ta(function(f){f.setUTCHours(0,0,0,0)},function(f,T){f.setUTCDate(f.getUTCDate()+T)},function(f,T){return(T-f)/Ns},function(f){return f.getUTCDate()-1});function tr(f){return ta(function(T){T.setUTCDate(T.getUTCDate()-(T.getUTCDay()+7-f)%7),T.setUTCHours(0,0,0,0)},function(T,n){T.setUTCDate(T.getUTCDate()+7*n)},function(T,n){return(n-T)/_c})}var Fn=tr(0),Br=tr(1),Na=(tr(2),tr(3),tr(4));const B4=(tr(5),tr(6),ta(function(f){f.setUTCDate(1),f.setUTCHours(0,0,0,0)},function(f,T){f.setUTCMonth(f.getUTCMonth()+T)},function(f,T){return T.getUTCMonth()-f.getUTCMonth()+12*(T.getUTCFullYear()-f.getUTCFullYear())},function(f){return f.getUTCMonth()}));var hl=ta(function(f){f.setUTCMonth(0,1),f.setUTCHours(0,0,0,0)},function(f,T){f.setUTCFullYear(f.getUTCFullYear()+T)},function(f,T){return T.getUTCFullYear()-f.getUTCFullYear()},function(f){return f.getUTCFullYear()});hl.every=function(f){return isFinite(f=Math.floor(f))&&f>0?ta(function(T){T.setUTCFullYear(Math.floor(T.getUTCFullYear()/f)*f),T.setUTCMonth(0,1),T.setUTCHours(0,0,0,0)},function(T,n){T.setUTCFullYear(T.getUTCFullYear()+n*f)}):null};const dl=hl;function zl(f,T,n,d,k,H){const se=[[cl,1,lo],[cl,5,5e3],[cl,15,15e3],[cl,30,3e4],[H,1,za],[H,5,5*za],[H,15,15*za],[H,30,30*za],[k,1,Cs],[k,3,3*Cs],[k,6,6*Cs],[k,12,12*Cs],[d,1,Ns],[d,2,2*Ns],[n,1,_c],[T,1,h1],[T,3,3*h1],[f,1,vc]];function ht(mt,Dt,Ht){const Ut=Math.abs(Dt-mt)/Ht,ni=js(([,,di])=>di).right(se,Ut);if(ni===se.length)return f.every(Fo(mt/vc,Dt/vc,Ht));if(0===ni)return v0.every(Math.max(Fo(mt,Dt,Ht),1));const[bi,zi]=se[Ut/se[ni-1][2]<se[ni][2]/Ut?ni-1:ni];return bi.every(zi)}return[function Se(mt,Dt,Ht){const Ut=Dt<mt;Ut&&([mt,Dt]=[Dt,mt]);const ni=Ht&&"function"==typeof Ht.range?Ht:ht(mt,Dt,Ht),bi=ni?ni.range(mt,+Dt+1):[];return Ut?bi.reverse():bi},ht]}const[tf,nf]=zl(dl,B4,Fn,fi,B,Hl),[xh,z4]=zl(uo,Yo,Uo,qs,Ho,u1);function Ch(f){if(0<=f.y&&f.y<100){var T=new Date(-1,f.m,f.d,f.H,f.M,f.S,f.L);return T.setFullYear(f.y),T}return new Date(f.y,f.m,f.d,f.H,f.M,f.S,f.L)}function Mh(f){if(0<=f.y&&f.y<100){var T=new Date(Date.UTC(-1,f.m,f.d,f.H,f.M,f.S,f.L));return T.setUTCFullYear(f.y),T}return new Date(Date.UTC(f.y,f.m,f.d,f.H,f.M,f.S,f.L))}function ul(f,T,n){return{y:f,m:T,d:n,H:0,M:0,S:0,L:0}}var v1={"-":"",_:" ",0:"0"},Qa=/^\s*\d+/,U4=/^%/,wh=/[\\^$*+?|[\]().{}]/g;function or(f,T,n){var d=f<0?"-":"",k=(d?-f:f)+"",H=k.length;return d+(H<n?new Array(n-H+1).join(T)+k:k)}function rf(f){return f.replace(wh,"\\$&")}function Cc(f){return new RegExp("^(?:"+f.map(rf).join("|")+")","i")}function Mc(f){return new Map(f.map((T,n)=>[T.toLowerCase(),n]))}function Ah(f,T,n){var d=Qa.exec(T.slice(n,n+1));return d?(f.w=+d[0],n+d[0].length):-1}function y1(f,T,n){var d=Qa.exec(T.slice(n,n+1));return d?(f.u=+d[0],n+d[0].length):-1}function Eh(f,T,n){var d=Qa.exec(T.slice(n,n+2));return d?(f.U=+d[0],n+d[0].length):-1}function E0(f,T,n){var d=Qa.exec(T.slice(n,n+2));return d?(f.V=+d[0],n+d[0].length):-1}function af(f,T,n){var d=Qa.exec(T.slice(n,n+2));return d?(f.W=+d[0],n+d[0].length):-1}function ua(f,T,n){var d=Qa.exec(T.slice(n,n+4));return d?(f.y=+d[0],n+d[0].length):-1}function T0(f,T,n){var d=Qa.exec(T.slice(n,n+2));return d?(f.y=+d[0]+(+d[0]>68?1900:2e3),n+d[0].length):-1}function sf(f,T,n){var d=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(T.slice(n,n+6));return d?(f.Z=d[1]?0:-(d[2]+(d[3]||"00")),n+d[0].length):-1}function S0(f,T,n){var d=Qa.exec(T.slice(n,n+1));return d?(f.q=3*d[0]-3,n+d[0].length):-1}function Th(f,T,n){var d=Qa.exec(T.slice(n,n+2));return d?(f.m=d[0]-1,n+d[0].length):-1}function Sh(f,T,n){var d=Qa.exec(T.slice(n,n+2));return d?(f.d=+d[0],n+d[0].length):-1}function lf(f,T,n){var d=Qa.exec(T.slice(n,n+3));return d?(f.m=0,f.d=+d[0],n+d[0].length):-1}function Dh(f,T,n){var d=Qa.exec(T.slice(n,n+2));return d?(f.H=+d[0],n+d[0].length):-1}function cf(f,T,n){var d=Qa.exec(T.slice(n,n+2));return d?(f.M=+d[0],n+d[0].length):-1}function hf(f,T,n){var d=Qa.exec(T.slice(n,n+2));return d?(f.S=+d[0],n+d[0].length):-1}function Z4(f,T,n){var d=Qa.exec(T.slice(n,n+3));return d?(f.L=+d[0],n+d[0].length):-1}function V4(f,T,n){var d=Qa.exec(T.slice(n,n+6));return d?(f.L=Math.floor(d[0]/1e3),n+d[0].length):-1}function wc(f,T,n){var d=U4.exec(T.slice(n,n+1));return d?n+d[0].length:-1}function ms(f,T,n){var d=Qa.exec(T.slice(n));return d?(f.Q=+d[0],n+d[0].length):-1}function D0(f,T,n){var d=Qa.exec(T.slice(n));return d?(f.s=+d[0],n+d[0].length):-1}function L0(f,T){return or(f.getDate(),T,2)}function Lh(f,T){return or(f.getHours(),T,2)}function ss(f,T){return or(f.getHours()%12||12,T,2)}function Ac(f,T){return or(1+qs.count(uo(f),f),T,3)}function b1(f,T){return or(f.getMilliseconds(),T,3)}function df(f,T){return b1(f,T)+"000"}function uf(f,T){return or(f.getMonth()+1,T,2)}function Oh(f,T){return or(f.getMinutes(),T,2)}function ff(f,T){return or(f.getSeconds(),T,2)}function Ih(f){var T=f.getDay();return 0===T?7:T}function kh(f,T){return or(Uo.count(uo(f)-1,f),T,2)}function O0(f){var T=f.getDay();return T>=4||0===T?Zo(f):Zo.ceil(f)}function pf(f,T){return f=O0(f),or(Zo.count(uo(f),f)+(4===uo(f).getDay()),T,2)}function mf(f){return f.getDay()}function gf(f,T){return or(xo.count(uo(f)-1,f),T,2)}function I0(f,T){return or(f.getFullYear()%100,T,2)}function _f(f,T){return or((f=O0(f)).getFullYear()%100,T,2)}function vf(f,T){return or(f.getFullYear()%1e4,T,4)}function G4(f,T){var n=f.getDay();return or((f=n>=4||0===n?Zo(f):Zo.ceil(f)).getFullYear()%1e4,T,4)}function k0(f){var T=f.getTimezoneOffset();return(T>0?"-":(T*=-1,"+"))+or(T/60|0,"0",2)+or(T%60,"0",2)}function Ph(f,T){return or(f.getUTCDate(),T,2)}function yf(f,T){return or(f.getUTCHours(),T,2)}function Ec(f,T){return or(f.getUTCHours()%12||12,T,2)}function bf(f,T){return or(1+fi.count(dl(f),f),T,3)}function Nh(f,T){return or(f.getUTCMilliseconds(),T,3)}function xf(f,T){return Nh(f,T)+"000"}function Cf(f,T){return or(f.getUTCMonth()+1,T,2)}function Mf(f,T){return or(f.getUTCMinutes(),T,2)}function Rh(f,T){return or(f.getUTCSeconds(),T,2)}function wf(f){var T=f.getUTCDay();return 0===T?7:T}function Af(f,T){return or(Fn.count(dl(f)-1,f),T,2)}function Fh(f){var T=f.getUTCDay();return T>=4||0===T?Na(f):Na.ceil(f)}function Ef(f,T){return f=Fh(f),or(Na.count(dl(f),f)+(4===dl(f).getUTCDay()),T,2)}function Bh(f){return f.getUTCDay()}function Hh(f,T){return or(Br.count(dl(f)-1,f),T,2)}function Tf(f,T){return or(f.getUTCFullYear()%100,T,2)}function Sf(f,T){return or((f=Fh(f)).getUTCFullYear()%100,T,2)}function Ul(f,T){return or(f.getUTCFullYear()%1e4,T,4)}function po(f,T){var n=f.getUTCDay();return or((f=n>=4||0===n?Na(f):Na.ceil(f)).getUTCFullYear()%1e4,T,4)}function Y4(){return"+0000"}function Df(){return"%"}function P0(f){return+f}function Lf(f){return Math.floor(+f/1e3)}function N0(f){return null===f?NaN:+f}!function Tc(f){(function A0(f){var T=f.dateTime,n=f.date,d=f.time,k=f.periods,H=f.days,se=f.shortDays,Se=f.months,ht=f.shortMonths,mt=Cc(k),Dt=Mc(k),Ht=Cc(H),Ut=Mc(H),ni=Cc(se),bi=Mc(se),zi=Cc(Se),di=Mc(Se),Vi=Cc(ht),Gi=Mc(ht),Qi={a:function _r(ln){return se[ln.getDay()]},A:function Za(ln){return H[ln.getDay()]},b:function Xn(ln){return ht[ln.getMonth()]},B:function fa(ln){return Se[ln.getMonth()]},c:null,d:L0,e:L0,f:df,g:_f,G:G4,H:Lh,I:ss,j:Ac,L:b1,m:uf,M:Oh,p:function Qr(ln){return k[+(ln.getHours()>=12)]},q:function na(ln){return 1+~~(ln.getMonth()/3)},Q:P0,s:Lf,S:ff,u:Ih,U:kh,V:pf,w:mf,W:gf,x:null,X:null,y:I0,Y:vf,Z:k0,"%":Df},cn={a:function Tl(ln){return se[ln.getUTCDay()]},A:function _s(ln){return H[ln.getUTCDay()]},b:function el(ln){return ht[ln.getUTCMonth()]},B:function vo(ln){return Se[ln.getUTCMonth()]},c:null,d:Ph,e:Ph,f:xf,g:Sf,G:po,H:yf,I:Ec,j:bf,L:Nh,m:Cf,M:Mf,p:function Va(ln){return k[+(ln.getUTCHours()>=12)]},q:function Sl(ln){return 1+~~(ln.getUTCMonth()/3)},Q:P0,s:Lf,S:Rh,u:wf,U:Af,V:Ef,w:Bh,W:Hh,x:null,X:null,y:Tf,Y:Ul,Z:Y4,"%":Df},fn={a:function cr(ln,Bn,nr){var ji=ni.exec(Bn.slice(nr));return ji?(ln.w=bi.get(ji[0].toLowerCase()),nr+ji[0].length):-1},A:function hn(ln,Bn,nr){var ji=Ht.exec(Bn.slice(nr));return ji?(ln.w=Ut.get(ji[0].toLowerCase()),nr+ji[0].length):-1},b:function bn(ln,Bn,nr){var ji=Vi.exec(Bn.slice(nr));return ji?(ln.m=Gi.get(ji[0].toLowerCase()),nr+ji[0].length):-1},B:function mn(ln,Bn,nr){var ji=zi.exec(Bn.slice(nr));return ji?(ln.m=di.get(ji[0].toLowerCase()),nr+ji[0].length):-1},c:function hr(ln,Bn,nr){return qn(ln,T,Bn,nr)},d:Sh,e:Sh,f:V4,g:T0,G:ua,H:Dh,I:Dh,j:lf,L:Z4,m:Th,M:cf,p:function zr(ln,Bn,nr){var ji=mt.exec(Bn.slice(nr));return ji?(ln.p=Dt.get(ji[0].toLowerCase()),nr+ji[0].length):-1},q:S0,Q:ms,s:D0,S:hf,u:y1,U:Eh,V:E0,w:Ah,W:af,x:function Sa(ln,Bn,nr){return qn(ln,n,Bn,nr)},X:function br(ln,Bn,nr){return qn(ln,d,Bn,nr)},y:T0,Y:ua,Z:sf,"%":wc};function en(ln,Bn){return function(nr){var Is,Hn,Ca,ji=[],Da=-1,Dr=0,Os=ln.length;for(nr instanceof Date||(nr=new Date(+nr));++Da<Os;)37===ln.charCodeAt(Da)&&(ji.push(ln.slice(Dr,Da)),null!=(Hn=v1[Is=ln.charAt(++Da)])?Is=ln.charAt(++Da):Hn="e"===Is?" ":"0",(Ca=Bn[Is])&&(Is=Ca(nr,Hn)),ji.push(Is),Dr=Da+1);return ji.push(ln.slice(Dr,Da)),ji.join("")}}function gr(ln,Bn){return function(nr){var Dr,Os,ji=ul(1900,void 0,1);if(qn(ji,ln,nr+="",0)!=nr.length)return null;if("Q"in ji)return new Date(ji.Q);if("s"in ji)return new Date(1e3*ji.s+("L"in ji?ji.L:0));if(Bn&&!("Z"in ji)&&(ji.Z=0),"p"in ji&&(ji.H=ji.H%12+12*ji.p),void 0===ji.m&&(ji.m="q"in ji?ji.q:0),"V"in ji){if(ji.V<1||ji.V>53)return null;"w"in ji||(ji.w=1),"Z"in ji?(Os=(Dr=Mh(ul(ji.y,0,1))).getUTCDay(),Dr=Os>4||0===Os?Br.ceil(Dr):Br(Dr),Dr=fi.offset(Dr,7*(ji.V-1)),ji.y=Dr.getUTCFullYear(),ji.m=Dr.getUTCMonth(),ji.d=Dr.getUTCDate()+(ji.w+6)%7):(Os=(Dr=Ch(ul(ji.y,0,1))).getDay(),Dr=Os>4||0===Os?xo.ceil(Dr):xo(Dr),Dr=qs.offset(Dr,7*(ji.V-1)),ji.y=Dr.getFullYear(),ji.m=Dr.getMonth(),ji.d=Dr.getDate()+(ji.w+6)%7)}else("W"in ji||"U"in ji)&&("w"in ji||(ji.w="u"in ji?ji.u%7:"W"in ji?1:0),Os="Z"in ji?Mh(ul(ji.y,0,1)).getUTCDay():Ch(ul(ji.y,0,1)).getDay(),ji.m=0,ji.d="W"in ji?(ji.w+6)%7+7*ji.W-(Os+5)%7:ji.w+7*ji.U-(Os+6)%7);return"Z"in ji?(ji.H+=ji.Z/100|0,ji.M+=ji.Z%100,Mh(ji)):Ch(ji)}}function qn(ln,Bn,nr,ji){for(var Is,Hn,Da=0,Dr=Bn.length,Os=nr.length;Da<Dr;){if(ji>=Os)return-1;if(37===(Is=Bn.charCodeAt(Da++))){if(Is=Bn.charAt(Da++),!(Hn=fn[Is in v1?Bn.charAt(Da++):Is])||(ji=Hn(ln,nr,ji))<0)return-1}else if(Is!=nr.charCodeAt(ji++))return-1}return ji}return Qi.x=en(n,Qi),Qi.X=en(d,Qi),Qi.c=en(T,Qi),cn.x=en(n,cn),cn.X=en(d,cn),cn.c=en(T,cn),{format:function(ln){var Bn=en(ln+="",Qi);return Bn.toString=function(){return ln},Bn},parse:function(ln){var Bn=gr(ln+="",!1);return Bn.toString=function(){return ln},Bn},utcFormat:function(ln){var Bn=en(ln+="",cn);return Bn.toString=function(){return ln},Bn},utcParse:function(ln){var Bn=gr(ln+="",!0);return Bn.toString=function(){return ln},Bn}}})(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 R0=js(Nl).right,fl=(js(N0),R0);function F0(f,T){return f=+f,T=+T,function(n){return Math.round(f*(1-n)+T*n)}}function kf(f){return+f}var w1=[0,1];function Zl(f){return f}function B0(f,T){return(T-=f=+f)?function(n){return(n-f)/T}:function Zh(f){return function(){return f}}(isNaN(T)?NaN:.5)}function Nf(f,T,n){var d=f[0],k=f[1],H=T[0],se=T[1];return k<d?(d=B0(k,d),H=n(se,H)):(d=B0(d,k),H=n(H,se)),function(Se){return H(d(Se))}}function Rf(f,T,n){var d=Math.min(f.length,T.length)-1,k=new Array(d),H=new Array(d),se=-1;for(f[d]<f[0]&&(f=f.slice().reverse(),T=T.slice().reverse());++se<d;)k[se]=B0(f[se],f[se+1]),H[se]=n(T[se],T[se+1]);return function(Se){var ht=fl(f,Se,1,d)-1;return H[ht](k[ht](Se))}}function Vh(f,T){return T.domain(f.domain()).range(f.range()).interpolate(f.interpolate()).clamp(f.clamp()).unknown(f.unknown())}function A1(){return function Gh(){var d,k,H,Se,ht,mt,f=w1,T=w1,n=Yt,se=Zl;function Dt(){var Ut=Math.min(f.length,T.length);return se!==Zl&&(se=function Pf(f,T){var n;return f>T&&(n=f,f=T,T=n),function(d){return Math.max(f,Math.min(T,d))}}(f[0],f[Ut-1])),Se=Ut>2?Rf:Nf,ht=mt=null,Ht}function Ht(Ut){return null==Ut||isNaN(Ut=+Ut)?H:(ht||(ht=Se(f.map(d),T,n)))(d(se(Ut)))}return Ht.invert=function(Ut){return se(k((mt||(mt=Se(T,f.map(d),ge)))(Ut)))},Ht.domain=function(Ut){return arguments.length?(f=Array.from(Ut,kf),Dt()):f.slice()},Ht.range=function(Ut){return arguments.length?(T=Array.from(Ut),Dt()):T.slice()},Ht.rangeRound=function(Ut){return T=Array.from(Ut),n=F0,Dt()},Ht.clamp=function(Ut){return arguments.length?(se=!!Ut||Zl,Dt()):se!==Zl},Ht.interpolate=function(Ut){return arguments.length?(n=Ut,Dt()):n},Ht.unknown=function(Ut){return arguments.length?(H=Ut,Ht):H},function(Ut,ni){return d=Ut,k=ni,Dt()}}()(Zl,Zl)}function pl(f,T){switch(arguments.length){case 0:break;case 1:this.range(f);break;default:this.range(T).domain(f)}return this}var Dc,z0=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Sc(f){if(!(T=z0.exec(f)))throw new Error("invalid format: "+f);var T;return new E1({fill:T[1],align:T[2],sign:T[3],symbol:T[4],zero:T[5],width:T[6],comma:T[7],precision:T[8]&&T[8].slice(1),trim:T[9],type:T[10]})}function E1(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 S1(f,T){if((n=(f=T?f.toExponential(T-1):f.toExponential()).indexOf("e"))<0)return null;var n,d=f.slice(0,n);return[d.length>1?d[0]+d.slice(2):d,+f.slice(n+1)]}function ml(f){return(f=S1(Math.abs(f)))?f[1]:NaN}function V0(f,T){var n=S1(f,T);if(!n)return f+"";var d=n[0],k=n[1];return k<0?"0."+new Array(-k).join("0")+d:d.length>k+1?d.slice(0,k+1)+"."+d.slice(k+1):d+new Array(k-d.length+2).join("0")}Sc.prototype=E1.prototype,E1.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 L1={"%":(f,T)=>(100*f).toFixed(T),b:f=>Math.round(f).toString(2),c:f=>f+"",d:function T1(f){return Math.abs(f=Math.round(f))>=1e21?f.toLocaleString("en").replace(/,/g,""):f.toString(10)},e:(f,T)=>f.toExponential(T),f:(f,T)=>f.toFixed(T),g:(f,T)=>f.toPrecision(T),o:f=>Math.round(f).toString(8),p:(f,T)=>V0(100*f,T),r:V0,s:function D1(f,T){var n=S1(f,T);if(!n)return f+"";var d=n[0],k=n[1],H=k-(Dc=3*Math.max(-8,Math.min(8,Math.floor(k/3))))+1,se=d.length;return H===se?d:H>se?d+new Array(H-se+1).join("0"):H>0?d.slice(0,H)+"."+d.slice(H):"0."+new Array(1-H).join("0")+S1(f,Math.max(0,T+H-1))[0]},X:f=>Math.round(f).toString(16).toUpperCase(),x:f=>Math.round(f).toString(16)};function G0(f){return f}var Lc,Y0,Kh,O1=Array.prototype.map,Vl=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function Xh(f){var T=f.domain;return f.ticks=function(n){var d=T();return function c1(f,T,n){var d,H,se,Se,k=-1;if(n=+n,(f=+f)==(T=+T)&&n>0)return[f];if((d=T<f)&&(H=f,f=T,T=H),0===(Se=Rl(f,T,n))||!isFinite(Se))return[];if(Se>0){let ht=Math.round(f/Se),mt=Math.round(T/Se);for(ht*Se<f&&++ht,mt*Se>T&&--mt,se=new Array(H=mt-ht+1);++k<H;)se[k]=(ht+k)*Se}else{Se=-Se;let ht=Math.round(f*Se),mt=Math.round(T*Se);for(ht/Se<f&&++ht,mt/Se>T&&--mt,se=new Array(H=mt-ht+1);++k<H;)se[k]=(ht+k)/Se}return d&&se.reverse(),se}(d[0],d[d.length-1],null==n?10:n)},f.tickFormat=function(n,d){var k=T();return function W4(f,T,n,d){var H,k=Fo(f,T,n);switch((d=Sc(null==d?",f":d)).type){case"s":var se=Math.max(Math.abs(f),Math.abs(T));return null==d.precision&&!isNaN(H=function jh(f,T){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(ml(T)/3)))-ml(Math.abs(f)))}(k,se))&&(d.precision=H),Kh(d,se);case"":case"e":case"g":case"p":case"r":null==d.precision&&!isNaN(H=function W0(f,T){return f=Math.abs(f),T=Math.abs(T)-f,Math.max(0,ml(T)-ml(f))+1}(k,Math.max(Math.abs(f),Math.abs(T))))&&(d.precision=H-("e"===d.type));break;case"f":case"%":null==d.precision&&!isNaN(H=function Jh(f){return Math.max(0,-ml(Math.abs(f)))}(k))&&(d.precision=H-2*("%"===d.type))}return Y0(d)}(k[0],k[k.length-1],null==n?10:n,d)},f.nice=function(n){null==n&&(n=10);var ht,mt,d=T(),k=0,H=d.length-1,se=d[k],Se=d[H],Dt=10;for(Se<se&&(mt=se,se=Se,Se=mt,mt=k,k=H,H=mt);Dt-- >0;){if((mt=Rl(se,Se,n))===ht)return d[k]=se,d[H]=Se,T(d);if(mt>0)se=Math.floor(se/mt)*mt,Se=Math.ceil(Se/mt)*mt;else{if(!(mt<0))break;se=Math.ceil(se*mt)/mt,Se=Math.floor(Se*mt)/mt}ht=mt}return f},f}function Ar(){var f=A1();return f.copy=function(){return Vh(f,Ar())},pl.apply(f,arguments),Xh(f)}function j0(f,T,n){f=+f,T=+T,n=(k=arguments.length)<2?(T=f,f=0,1):k<3?1:+n;for(var d=-1,k=0|Math.max(0,Math.ceil((T-f)/n)),H=new Array(k);++d<k;)H[d]=f+d*n;return H}!function Qh(f){Lc=function Hf(f){var T=void 0===f.grouping||void 0===f.thousands?G0:function qh(f,T){return function(n,d){for(var k=n.length,H=[],se=0,Se=f[0],ht=0;k>0&&Se>0&&(ht+Se+1>d&&(Se=Math.max(1,d-ht)),H.push(n.substring(k-=Se,k+Se)),!((ht+=Se+1)>d));)Se=f[se=(se+1)%f.length];return H.reverse().join(T)}}(O1.call(f.grouping,Number),f.thousands+""),n=void 0===f.currency?"":f.currency[0]+"",d=void 0===f.currency?"":f.currency[1]+"",k=void 0===f.decimal?".":f.decimal+"",H=void 0===f.numerals?G0:function U0(f){return function(T){return T.replace(/[0-9]/g,function(n){return f[+n]})}}(O1.call(f.numerals,String)),se=void 0===f.percent?"%":f.percent+"",Se=void 0===f.minus?"\u2212":f.minus+"",ht=void 0===f.nan?"NaN":f.nan+"";function mt(Ht){var Ut=(Ht=Sc(Ht)).fill,ni=Ht.align,bi=Ht.sign,zi=Ht.symbol,di=Ht.zero,Vi=Ht.width,Gi=Ht.comma,Qi=Ht.precision,cn=Ht.trim,fn=Ht.type;"n"===fn?(Gi=!0,fn="g"):L1[fn]||(void 0===Qi&&(Qi=12),cn=!0,fn="g"),(di||"0"===Ut&&"="===ni)&&(di=!0,Ut="0",ni="=");var en="$"===zi?n:"#"===zi&&/[boxX]/.test(fn)?"0"+fn.toLowerCase():"",gr="$"===zi?d:/[%p]/.test(fn)?se:"",qn=L1[fn],zr=/[defgprs%]/.test(fn);function cr(hn){var hr,Sa,br,bn=en,mn=gr;if("c"===fn)mn=qn(hn)+mn,hn="";else{var _r=(hn=+hn)<0||1/hn<0;if(hn=isNaN(hn)?ht:qn(Math.abs(hn),Qi),cn&&(hn=function Z0(f){e:for(var k,T=f.length,n=1,d=-1;n<T;++n)switch(f[n]){case".":d=k=n;break;case"0":0===d&&(d=n),k=n;break;default:if(!+f[n])break e;d>0&&(d=0)}return d>0?f.slice(0,d)+f.slice(k+1):f}(hn)),_r&&0==+hn&&"+"!==bi&&(_r=!1),bn=(_r?"("===bi?bi:Se:"-"===bi||"("===bi?"":bi)+bn,mn=("s"===fn?Vl[8+Dc/3]:"")+mn+(_r&&"("===bi?")":""),zr)for(hr=-1,Sa=hn.length;++hr<Sa;)if(48>(br=hn.charCodeAt(hr))||br>57){mn=(46===br?k+hn.slice(hr+1):hn.slice(hr))+mn,hn=hn.slice(0,hr);break}}Gi&&!di&&(hn=T(hn,1/0));var Za=bn.length+hn.length+mn.length,Xn=Za<Vi?new Array(Vi-Za+1).join(Ut):"";switch(Gi&&di&&(hn=T(Xn+hn,Xn.length?Vi-mn.length:1/0),Xn=""),ni){case"<":hn=bn+hn+mn+Xn;break;case"=":hn=bn+Xn+hn+mn;break;case"^":hn=Xn.slice(0,Za=Xn.length>>1)+bn+hn+mn+Xn.slice(Za);break;default:hn=Xn+bn+hn+mn}return H(hn)}return Qi=void 0===Qi?6:/[gprs]/.test(fn)?Math.max(1,Math.min(21,Qi)):Math.max(0,Math.min(20,Qi)),cr.toString=function(){return Ht+""},cr}return{format:mt,formatPrefix:function Dt(Ht,Ut){var ni=mt(((Ht=Sc(Ht)).type="f",Ht)),bi=3*Math.max(-8,Math.min(8,Math.floor(ml(Ut)/3))),zi=Math.pow(10,-bi),di=Vl[8+bi/3];return function(Vi){return ni(zi*Vi)+di}}}}(f),Y0=Lc.format,Kh=Lc.formatPrefix}({thousands:",",grouping:[3],currency:["$",""]});const $h=Symbol("implicit");function I1(){var f=new Map,T=[],n=[],d=$h;function k(H){var se=H+"",Se=f.get(se);if(!Se){if(d!==$h)return d;f.set(se,Se=T.push(H))}return n[(Se-1)%n.length]}return k.domain=function(H){if(!arguments.length)return T.slice();T=[],f=new Map;for(const se of H){const Se=se+"";f.has(Se)||f.set(Se,T.push(se))}return k},k.range=function(H){return arguments.length?(n=Array.from(H),k):n.slice()},k.unknown=function(H){return arguments.length?(d=H,k):d},k.copy=function(){return I1(T,n).unknown(d)},pl.apply(k,arguments),k}function Er(){var H,se,f=I1().unknown(void 0),T=f.domain,n=f.range,d=0,k=1,Se=!1,ht=0,mt=0,Dt=.5;function Ht(){var Ut=T().length,ni=k<d,bi=ni?k:d,zi=ni?d:k;H=(zi-bi)/Math.max(1,Ut-ht+2*mt),Se&&(H=Math.floor(H)),bi+=(zi-bi-H*(Ut-ht))*Dt,se=H*(1-ht),Se&&(bi=Math.round(bi),se=Math.round(se));var di=j0(Ut).map(function(Vi){return bi+H*Vi});return n(ni?di.reverse():di)}return delete f.unknown,f.domain=function(Ut){return arguments.length?(T(Ut),Ht()):T()},f.range=function(Ut){return arguments.length?([d,k]=Ut,d=+d,k=+k,Ht()):[d,k]},f.rangeRound=function(Ut){return[d,k]=Ut,d=+d,k=+k,Se=!0,Ht()},f.bandwidth=function(){return se},f.step=function(){return H},f.round=function(Ut){return arguments.length?(Se=!!Ut,Ht()):Se},f.padding=function(Ut){return arguments.length?(ht=Math.min(1,mt=+Ut),Ht()):ht},f.paddingInner=function(Ut){return arguments.length?(ht=Math.min(1,Ut),Ht()):ht},f.paddingOuter=function(Ut){return arguments.length?(mt=+Ut,Ht()):mt},f.align=function(Ut){return arguments.length?(Dt=Math.max(0,Math.min(1,Ut)),Ht()):Dt},f.copy=function(){return Er(T(),[d,k]).round(Se).paddingInner(ht).paddingOuter(mt).align(Dt)},pl.apply(Ht(),arguments)}function zf(f,T,n=N0){if(d=f.length){if((T=+T)<=0||d<2)return+n(f[0],0,f);if(T>=1)return+n(f[d-1],d-1,f);var d,k=(d-1)*T,H=Math.floor(k),se=+n(f[H],H,f);return se+(+n(f[H+1],H+1,f)-se)*(k-H)}}function id(){var d,f=[],T=[],n=[];function k(){var se=0,Se=Math.max(1,T.length);for(n=new Array(Se-1);++se<Se;)n[se-1]=zf(f,se/Se);return H}function H(se){return null==se||isNaN(se=+se)?d:T[fl(n,se)]}return H.invertExtent=function(se){var Se=T.indexOf(se);return Se<0?[NaN,NaN]:[Se>0?n[Se-1]:f[0],Se<n.length?n[Se]:f[f.length-1]]},H.domain=function(se){if(!arguments.length)return f.slice();f=[];for(let Se of se)null!=Se&&!isNaN(Se=+Se)&&f.push(Se);return f.sort(Nl),k()},H.range=function(se){return arguments.length?(T=Array.from(se),k()):T.slice()},H.unknown=function(se){return arguments.length?(d=se,H):d},H.quantiles=function(){return n.slice()},H.copy=function(){return id().domain(f).range(T).unknown(d)},pl.apply(H,arguments)}function nd(f){this._context=f}nd.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(f,T){switch(f=+f,T=+T,this._point){case 0:this._point=1,this._line?this._context.lineTo(f,T):this._context.moveTo(f,T);break;case 1:this._point=2;default:this._context.lineTo(f,T)}}};const R1=Math.PI,F1=2*R1,Ko=1e-6,B1=F1-Ko;function ws(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Uf(){}function Gl(f,T,n){f._context.bezierCurveTo(f._x1+f._k*(f._x2-f._x0),f._y1+f._k*(f._y2-f._y0),f._x2+f._k*(f._x1-T),f._y2+f._k*(f._y1-n),f._x2,f._y2)}function Ic(f,T){this._context=f,this._k=(1-T)/6}function kc(f,T){this._context=f,this._k=(1-T)/6}function ad(f){this._curve=f}function jf(f,T,n,d,k){for(var se,H=f.children,Se=-1,ht=H.length,mt=f.value&&(d-T)/f.value;++Se<ht;)(se=H[Se]).y0=n,se.y1=k,se.x0=T,se.x1=T+=se.value*mt}function qf(f,T,n,d,k){for(var se,H=f.children,Se=-1,ht=H.length,mt=f.value&&(k-n)/f.value;++Se<ht;)(se=H[Se]).x0=T,se.x1=d,se.y0=n,se.y1=n+=se.value*mt}function ud(f){var T=0,n=f.children,d=n&&n.length;if(d)for(;--d>=0;)T+=n[d].value;else T=1;f.value=T}function vd(f,T){f instanceof Map?(f=[void 0,f],void 0===T&&(T=n3)):void 0===T&&(T=i3);for(var d,H,se,Se,ht,n=new Bc(f),k=[n];d=k.pop();)if((se=T(d.data))&&(ht=(se=Array.from(se)).length))for(d.children=se,Se=ht-1;Se>=0;--Se)k.push(H=se[Se]=new Bc(se[Se])),H.parent=d,H.depth=d.depth+1;return n.eachBefore(e6)}function i3(f){return f.children}function n3(f){return Array.isArray(f)?f[1]:null}function yd(f){void 0!==f.data.value&&(f.value=f.data.value),f.data=f.data.data}function e6(f){var T=0;do{f.height=T}while((f=f.parent)&&f.height<++T)}function Bc(f){this.data=f,this.depth=this.height=0,this.parent=null}ws.prototype=function q0(){return new ws}.prototype={constructor:ws,moveTo:function(f,T){this._+="M"+(this._x0=this._x1=+f)+","+(this._y0=this._y1=+T)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(f,T){this._+="L"+(this._x1=+f)+","+(this._y1=+T)},quadraticCurveTo:function(f,T,n,d){this._+="Q"+ +f+","+ +T+","+(this._x1=+n)+","+(this._y1=+d)},bezierCurveTo:function(f,T,n,d,k,H){this._+="C"+ +f+","+ +T+","+ +n+","+ +d+","+(this._x1=+k)+","+(this._y1=+H)},arcTo:function(f,T,n,d,k){var H=this._x1,se=this._y1,Se=(n=+n)-(f=+f),ht=(d=+d)-(T=+T),mt=H-f,Dt=se-T,Ht=mt*mt+Dt*Dt;if((k=+k)<0)throw new Error("negative radius: "+k);if(null===this._x1)this._+="M"+(this._x1=f)+","+(this._y1=T);else if(Ht>Ko)if(Math.abs(Dt*Se-ht*mt)>Ko&&k){var Ut=n-H,ni=d-se,bi=Se*Se+ht*ht,zi=Ut*Ut+ni*ni,di=Math.sqrt(bi),Vi=Math.sqrt(Ht),Gi=k*Math.tan((R1-Math.acos((bi+Ht-zi)/(2*di*Vi)))/2),Qi=Gi/Vi,cn=Gi/di;Math.abs(Qi-1)>Ko&&(this._+="L"+(f+Qi*mt)+","+(T+Qi*Dt)),this._+="A"+k+","+k+",0,0,"+ +(Dt*Ut>mt*ni)+","+(this._x1=f+cn*Se)+","+(this._y1=T+cn*ht)}else this._+="L"+(this._x1=f)+","+(this._y1=T)},arc:function(f,T,n,d,k,H){f=+f,T=+T,H=!!H;var se=(n=+n)*Math.cos(d),Se=n*Math.sin(d),ht=f+se,mt=T+Se,Dt=1^H,Ht=H?d-k:k-d;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+ht+","+mt:(Math.abs(this._x1-ht)>Ko||Math.abs(this._y1-mt)>Ko)&&(this._+="L"+ht+","+mt),n&&(Ht<0&&(Ht=Ht%F1+F1),Ht>B1?this._+="A"+n+","+n+",0,1,"+Dt+","+(f-se)+","+(T-Se)+"A"+n+","+n+",0,1,"+Dt+","+(this._x1=ht)+","+(this._y1=mt):Ht>Ko&&(this._+="A"+n+","+n+",0,"+ +(Ht>=R1)+","+Dt+","+(this._x1=f+n*Math.cos(k))+","+(this._y1=T+n*Math.sin(k))))},rect:function(f,T,n,d){this._+="M"+(this._x0=this._x1=+f)+","+(this._y0=this._y1=+T)+"h"+ +n+"v"+ +d+"h"+-n+"Z"},toString:function(){return this._}},Ic.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Gl(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(f,T){switch(f=+f,T=+T,this._point){case 0:this._point=1,this._line?this._context.lineTo(f,T):this._context.moveTo(f,T);break;case 1:this._point=2,this._x1=f,this._y1=T;break;case 2:this._point=3;default:Gl(this,f,T)}this._x0=this._x1,this._x1=this._x2,this._x2=f,this._y0=this._y1,this._y1=this._y2,this._y2=T}},function f(T){function n(d){return new Ic(d,T)}return n.tension=function(d){return f(+d)},n}(0),kc.prototype={areaStart:Uf,areaEnd:Uf,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(f,T){switch(f=+f,T=+T,this._point){case 0:this._point=1,this._x3=f,this._y3=T;break;case 1:this._point=2,this._context.moveTo(this._x4=f,this._y4=T);break;case 2:this._point=3,this._x5=f,this._y5=T;break;default:Gl(this,f,T)}this._x0=this._x1,this._x1=this._x2,this._x2=f,this._y0=this._y1,this._y1=this._y2,this._y2=T}},function f(T){function n(d){return new kc(d,T)}return n.tension=function(d){return f(+d)},n}(0),function sd(f){function T(n){return new ad(f(n))}return T._curve=f,T}(function Sn(f){return new nd(f)}),ad.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(f,T){this._curve.point(T*Math.sin(f),T*-Math.cos(f))}},Math,Math,Math,Math,Math,Math,Math,Math,Math,m(7293),function f(T){function n(d,k,H,se,Se){!function Wl(f,T,n,d,k,H){for(var ht,mt,ni,bi,di,Vi,Gi,Qi,cn,fn,en,se=[],Se=T.children,Dt=0,Ht=0,Ut=Se.length,zi=T.value;Dt<Ut;){ni=k-n,bi=H-d;do{di=Se[Ht++].value}while(!di&&Ht<Ut);for(Vi=Gi=di,en=di*di*(fn=Math.max(bi/ni,ni/bi)/(zi*f)),cn=Math.max(Gi/en,en/Vi);Ht<Ut;++Ht){if(di+=mt=Se[Ht].value,mt<Vi&&(Vi=mt),mt>Gi&&(Gi=mt),en=di*di*fn,(Qi=Math.max(Gi/en,en/Vi))>cn){di-=mt;break}cn=Qi}se.push(ht={value:di,dice:ni<bi,children:Se.slice(Dt,Ht)}),ht.dice?jf(ht,n,d,k,zi?d+=bi*di/zi:H):qf(ht,n,d,zi?n+=ni*di/zi:k,H),zi-=di,Dt=Ht}}(T,d,k,H,se,Se)}return n.ratio=function(d){return f((d=+d)>1?d:1)},n}((1+Math.sqrt(5))/2),Bc.prototype=vd.prototype={constructor:Bc,count:function c2(){return this.eachAfter(ud)},each:function h2(f,T){let n=-1;for(const d of this)f.call(T,d,++n,this);return this},eachAfter:function Fc(f,T){for(var H,se,Se,n=this,d=[n],k=[],ht=-1;n=d.pop();)if(k.push(n),H=n.children)for(se=0,Se=H.length;se<Se;++se)d.push(H[se]);for(;n=k.pop();)f.call(T,n,++ht,this);return this},eachBefore:function fd(f,T){for(var k,H,n=this,d=[n],se=-1;n=d.pop();)if(f.call(T,n,++se,this),k=n.children)for(H=k.length-1;H>=0;--H)d.push(k[H]);return this},find:function Kf(f,T){let n=-1;for(const d of this)if(f.call(T,d,++n,this))return d},sum:function pd(f){return this.eachAfter(function(T){for(var n=+f(T.data)||0,d=T.children,k=d&&d.length;--k>=0;)n+=d[k].value;T.value=n})},sort:function t3(f){return this.eachBefore(function(T){T.children&&T.children.sort(f)})},path:function md(f){for(var T=this,n=function gd(f,T){if(f===T)return f;var n=f.ancestors(),d=T.ancestors(),k=null;for(f=n.pop(),T=d.pop();f===T;)k=f,f=n.pop(),T=d.pop();return k}(T,f),d=[T];T!==n;)d.push(T=T.parent);for(var k=d.length;f!==n;)d.splice(k,0,f),f=f.parent;return d},ancestors:function Qf(){for(var f=this,T=[f];f=f.parent;)T.push(f);return T},descendants:function _d(){return Array.from(this)},leaves:function Jf(){var f=[];return this.eachBefore(function(T){T.children||f.push(T)}),f},links:function Xf(){var f=this,T=[];return f.each(function(n){n!==f&&T.push({source:n.parent,target:n})}),T},copy:function $f(){return vd(this).eachBefore(yd)},[Symbol.iterator]:function*As(){var T,d,k,H,f=this,n=[f];do{for(T=n.reverse(),n=[];f=T.pop();)if(yield f,d=f.children)for(k=0,H=d.length;k<H;++k)n.push(d[k])}while(n.length)}};const xd=["caretElm"];function n6(f,T){}const Cd=function(f){return{model:f}};function r6(f,T){if(1&f&&(e.TgZ(0,"span"),e.YNc(1,n6,0,0,"ng-template",5),e.qZA()),2&f){const n=e.oxw();e.xp6(1),e.Q6J("ngTemplateOutlet",n.template)("ngTemplateOutletContext",e.VKq(2,Cd,n.context))}}function a6(f,T){if(1&f&&e._UZ(0,"span",6),2&f){const n=e.oxw();e.Q6J("innerHTML",n.title,e.oJD)}}function Md(f,T){if(1&f&&(e.O4$(),e.kcU(),e._UZ(0,"ngx-charts-scale-legend",4)),2&f){const n=e.oxw();e.Q6J("horizontal",n.legendOptions&&n.legendOptions.position===n.LegendPosition.Below)("valueRange",n.legendOptions.domain)("colors",n.legendOptions.colors)("height",n.view[1])("width",n.legendWidth)}}function wd(f,T){if(1&f){const n=e.EpF();e.O4$(),e.kcU(),e.TgZ(0,"ngx-charts-legend",5),e.NdJ("labelClick",function(k){return e.CHM(n),e.oxw().legendLabelClick.emit(k)})("labelActivate",function(k){return e.CHM(n),e.oxw().legendLabelActivate.emit(k)})("labelDeactivate",function(k){return e.CHM(n),e.oxw().legendLabelDeactivate.emit(k)}),e.qZA()}if(2&f){const n=e.oxw();e.Q6J("horizontal",n.legendOptions&&n.legendOptions.position===n.LegendPosition.Below)("data",n.legendOptions.domain)("title",n.legendOptions.title)("colors",n.legendOptions.colors)("height",n.view[1])("width",n.legendWidth)("activeEntries",n.activeEntries)}}const Ad=["*"],go=["ngx-charts-axis-label",""],V1=["ticksel"],s6=["ngx-charts-x-axis-ticks",""];function o6(f,T){if(1&f&&(e.O4$(),e.TgZ(0,"g",3),e.TgZ(1,"title"),e._uU(2),e.qZA(),e.TgZ(3,"text",4),e._uU(4),e.qZA(),e.qZA()),2&f){const n=T.$implicit,d=e.oxw();e.uIk("transform",d.tickTransform(n)),e.xp6(2),e.Oqu(d.tickFormat(n)),e.xp6(1),e.Udp("font-size","12px"),e.uIk("text-anchor",d.textAnchor)("transform",d.textTransform),e.xp6(1),e.hij(" ",d.tickTrim(d.tickFormat(n))," ")}}function r3(f,T){if(1&f&&(e.O4$(),e.TgZ(0,"g"),e._UZ(1,"line",6),e.qZA()),2&f){const n=e.oxw(2);e.uIk("transform",n.gridLineTransform()),e.xp6(1),e.uIk("y1",-n.gridLineHeight)}}function Ed(f,T){if(1&f&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,r3,2,2,"g",5),e.qZA()),2&f){const n=T.$implicit,d=e.oxw();e.uIk("transform",d.tickTransform(n)),e.xp6(1),e.Q6J("ngIf",d.showGridLines)}}const l6=["ngx-charts-x-axis",""];function c6(f,T){if(1&f){const n=e.EpF();e.O4$(),e.TgZ(0,"g",2),e.NdJ("dimensionsChanged",function(k){return e.CHM(n),e.oxw().emitTicksHeight(k)}),e.qZA()}if(2&f){const n=e.oxw();e.Q6J("trimTicks",n.trimTicks)("rotateTicks",n.rotateTicks)("maxTickLength",n.maxTickLength)("tickFormatting",n.tickFormatting)("tickArguments",n.tickArguments)("tickStroke",n.tickStroke)("scale",n.xScale)("orient",n.xOrient)("showGridLines",n.showGridLines)("gridLineHeight",n.dims.height)("width",n.dims.width)("tickValues",n.ticks)}}function Td(f,T){if(1&f&&(e.O4$(),e._UZ(0,"g",3)),2&f){const n=e.oxw();e.Q6J("label",n.labelText)("offset",n.labelOffset)("orient",n.orientation.Bottom)("height",n.dims.height)("width",n.dims.width)}}const f2=["ngx-charts-y-axis-ticks",""];function h6(f,T){if(1&f&&(e.O4$(),e.TgZ(0,"g",4),e.TgZ(1,"title"),e._uU(2),e.qZA(),e.TgZ(3,"text",5),e._uU(4),e.qZA(),e.qZA()),2&f){const n=T.$implicit,d=e.oxw();e.uIk("transform",d.transform(n)),e.xp6(2),e.Oqu(d.tickFormat(n)),e.xp6(1),e.Udp("font-size","12px"),e.uIk("dy",d.dy)("x",d.x1)("y",d.y1)("text-anchor",d.textAnchor),e.xp6(1),e.hij(" ",d.tickTrim(d.tickFormat(n))," ")}}function d6(f,T){if(1&f&&(e.O4$(),e._UZ(0,"path",6)),2&f){const n=e.oxw();e.uIk("d",n.referenceAreaPath)("transform",n.gridLineTransform())}}function G1(f,T){if(1&f&&(e.O4$(),e._UZ(0,"line",9)),2&f){const n=e.oxw(3);e.uIk("x2",n.gridLineWidth)}}function Y1(f,T){if(1&f&&(e.O4$(),e._UZ(0,"line",9)),2&f){const n=e.oxw(3);e.uIk("x2",-n.gridLineWidth)}}function u6(f,T){if(1&f&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,G1,1,1,"line",8),e.YNc(2,Y1,1,1,"line",8),e.qZA()),2&f){const n=e.oxw(2);e.uIk("transform",n.gridLineTransform()),e.xp6(1),e.Q6J("ngIf",n.orient===n.Orientation.Left),e.xp6(1),e.Q6J("ngIf",n.orient===n.Orientation.Right)}}function p2(f,T){if(1&f&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,u6,3,3,"g",7),e.qZA()),2&f){const n=T.$implicit,d=e.oxw();e.uIk("transform",d.transform(n)),e.xp6(1),e.Q6J("ngIf",d.showGridLines)}}function m2(f,T){if(1&f&&(e.O4$(),e.TgZ(0,"g"),e.TgZ(1,"title"),e._uU(2),e.qZA(),e.TgZ(3,"text",11),e._uU(4),e.qZA(),e.qZA()),2&f){const n=e.oxw(2).$implicit,d=e.oxw();e.xp6(2),e.Oqu(d.tickTrim(d.tickFormat(n.value))),e.xp6(1),e.uIk("dy",d.dy)("y",-6)("x",d.gridLineWidth)("text-anchor",d.textAnchor),e.xp6(1),e.hij(" ",n.name," ")}}function Sd(f,T){if(1&f&&(e.O4$(),e.TgZ(0,"g"),e._UZ(1,"line",10),e.YNc(2,m2,5,6,"g",7),e.qZA()),2&f){const n=e.oxw().$implicit,d=e.oxw();e.uIk("transform",d.transform(n.value)),e.xp6(1),e.uIk("x2",d.gridLineWidth)("transform",d.gridLineTransform()),e.xp6(1),e.Q6J("ngIf",d.showRefLabels)}}function f6(f,T){if(1&f&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,Sd,3,4,"g",7),e.qZA()),2&f){const n=e.oxw();e.xp6(1),e.Q6J("ngIf",n.showRefLines)}}const p6=["ngx-charts-y-axis",""];function g2(f,T){if(1&f){const n=e.EpF();e.O4$(),e.TgZ(0,"g",2),e.NdJ("dimensionsChanged",function(k){return e.CHM(n),e.oxw().emitTicksWidth(k)}),e.qZA()}if(2&f){const n=e.oxw();e.Q6J("trimTicks",n.trimTicks)("maxTickLength",n.maxTickLength)("tickFormatting",n.tickFormatting)("tickArguments",n.tickArguments)("tickValues",n.ticks)("tickStroke",n.tickStroke)("scale",n.yScale)("orient",n.yOrient)("showGridLines",n.showGridLines)("gridLineWidth",n.dims.width)("referenceLines",n.referenceLines)("showRefLines",n.showRefLines)("showRefLabels",n.showRefLabels)("height",n.dims.height)}}function a3(f,T){if(1&f&&(e.O4$(),e._UZ(0,"g",3)),2&f){const n=e.oxw();e.Q6J("label",n.labelText)("offset",n.labelOffset)("orient",n.yOrient)("height",n.dims.height)("width",n.dims.width)}}const Id=["ngx-charts-grid-panel",""],Mo=["ngx-charts-grid-panel-series",""];function W1(f,T){if(1&f&&(e.O4$(),e._UZ(0,"g",1)),2&f){const n=T.$implicit;e.ekj("grid-panel",!0)("odd","odd"===n.class)("even","even"===n.class),e.Q6J("height",n.height)("width",n.width)("x",n.x)("y",n.y)}}const g6=["ngx-charts-svg-linear-gradient",""];function _6(f,T){if(1&f&&(e.O4$(),e._UZ(0,"stop")),2&f){const n=T.$implicit;e.Udp("stop-color",n.color)("stop-opacity",n.opacity),e.uIk("offset",n.offset+"%")}}function y6(f,T){if(1&f&&(e.TgZ(0,"header",4),e.TgZ(1,"span",5),e._uU(2),e.qZA(),e.qZA()),2&f){const n=e.oxw();e.xp6(2),e.Oqu(n.title)}}function C2(f,T){if(1&f){const n=e.EpF();e.TgZ(0,"li",6),e.TgZ(1,"ngx-charts-legend-entry",7),e.NdJ("select",function(k){return e.CHM(n),e.oxw().labelClick.emit(k)})("activate",function(k){return e.CHM(n),e.oxw().activate(k)})("deactivate",function(k){return e.CHM(n),e.oxw().deactivate(k)}),e.qZA(),e.qZA()}if(2&f){const n=T.$implicit,d=e.oxw();e.xp6(1),e.Q6J("label",n.label)("formattedLabel",n.formattedLabel)("color",n.color)("isActive",d.isActive(n))}}const Hr=["tooltipTemplate"],vr=function(f,T){return[f,T]},oa=".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:normal}.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",h3=["ngx-charts-bar",""];function Js(f,T){if(1&f&&(e.O4$(),e.TgZ(0,"defs"),e._UZ(1,"g",2),e.qZA()),2&f){const n=e.oxw();e.xp6(1),e.Q6J("orientation",n.orientation)("name",n.gradientId)("stops",n.gradientStops)}}function N6(f,T){if(1&f){const n=e.EpF();e.O4$(),e.TgZ(0,"g",5),e.NdJ("dimensionsChanged",function(k){return e.CHM(n),e.oxw().updateXAxisHeight(k)}),e.qZA()}if(2&f){const n=e.oxw();e.Q6J("xScale",n.xScale)("dims",n.dims)("showGridLines",n.showGridLines)("showLabel",n.showXAxisLabel)("labelText",n.xAxisLabel)("trimTicks",n.trimXAxisTicks)("rotateTicks",n.rotateXAxisTicks)("maxTickLength",n.maxXAxisTickLength)("tickFormatting",n.xAxisTickFormatting)("ticks",n.xAxisTicks)("xAxisOffset",n.dataLabelMaxHeight.negative)}}function R6(f,T){if(1&f){const n=e.EpF();e.O4$(),e.TgZ(0,"g",6),e.NdJ("dimensionsChanged",function(k){return e.CHM(n),e.oxw().updateYAxisWidth(k)}),e.qZA()}if(2&f){const n=e.oxw();e.Q6J("yScale",n.yScale)("dims",n.dims)("showGridLines",n.showGridLines)("showLabel",n.showYAxisLabel)("labelText",n.yAxisLabel)("trimTicks",n.trimYAxisTicks)("maxTickLength",n.maxYAxisTickLength)("tickFormatting",n.yAxisTickFormatting)("ticks",n.yAxisTicks)}}function F6(f,T){if(1&f){const n=e.EpF();e.O4$(),e.TgZ(0,"g",6),e.NdJ("dimensionsChanged",function(k){return e.CHM(n),e.oxw().updateXAxisHeight(k)}),e.qZA()}if(2&f){const n=e.oxw();e.Q6J("xScale",n.groupScale)("dims",n.dims)("showLabel",n.showXAxisLabel)("labelText",n.xAxisLabel)("trimTicks",n.trimXAxisTicks)("rotateTicks",n.rotateXAxisTicks)("maxTickLength",n.maxXAxisTickLength)("tickFormatting",n.xAxisTickFormatting)("ticks",n.xAxisTicks)("xAxisOffset",n.dataLabelMaxHeight.negative)}}function B6(f,T){if(1&f){const n=e.EpF();e.O4$(),e.TgZ(0,"g",7),e.NdJ("dimensionsChanged",function(k){return e.CHM(n),e.oxw().updateYAxisWidth(k)}),e.qZA()}if(2&f){const n=e.oxw();e.Q6J("yScale",n.valueScale)("dims",n.dims)("showGridLines",n.showGridLines)("showLabel",n.showYAxisLabel)("labelText",n.yAxisLabel)("trimTicks",n.trimYAxisTicks)("maxTickLength",n.maxYAxisTickLength)("tickFormatting",n.yAxisTickFormatting)("ticks",n.yAxisTicks)}}function H6(f,T){if(1&f){const n=e.EpF();e.O4$(),e.TgZ(0,"g",8),e.NdJ("select",function(k){const se=e.CHM(n).$implicit;return e.oxw().onClick(k,se)})("activate",function(k){const se=e.CHM(n).$implicit;return e.oxw().onActivate(k,se)})("deactivate",function(k){const se=e.CHM(n).$implicit;return e.oxw().onDeactivate(k,se)})("dataLabelHeightChanged",function(k){const se=e.CHM(n).index;return e.oxw().onDataLabelMaxHeightChanged(k,se)}),e.qZA()}if(2&f){const n=T.$implicit,d=e.oxw();e.Q6J("@animationState","active")("activeEntries",d.activeEntries)("xScale",d.innerScale)("yScale",d.valueScale)("colors",d.colors)("series",n.series)("dims",d.dims)("gradient",d.gradient)("tooltipDisabled",d.tooltipDisabled)("tooltipTemplate",d.tooltipTemplate)("showDataLabel",d.showDataLabel)("dataLabelFormatting",d.dataLabelFormatting)("seriesName",n.name)("roundEdges",d.roundEdges)("animations",d.animations)("noBarWhenZero",d.noBarWhenZero),e.uIk("transform",d.groupTransform(n))}}const ls=["ngx-charts-series-vertical",""];function bl(f,T){if(1&f){const n=e.EpF();e.O4$(),e.TgZ(0,"g",2),e.NdJ("select",function(k){return e.CHM(n),e.oxw().onClick(k)})("activate",function(k){return e.CHM(n),e.oxw().activate.emit(k)})("deactivate",function(k){return e.CHM(n),e.oxw().deactivate.emit(k)}),e.qZA()}if(2&f){const n=T.$implicit,d=e.oxw();e.Q6J("@animationState","active")("@.disabled",!d.animations)("width",n.width)("height",n.height)("x",n.x)("y",n.y)("fill",n.color)("stops",n.gradientStops)("data",n.data)("orientation",d.barOrientation.Vertical)("roundEdges",n.roundEdges)("gradient",d.gradient)("ariaLabel",n.ariaLabel)("isActive",d.isActive(n.data))("tooltipDisabled",d.tooltipDisabled)("tooltipPlacement",d.tooltipPlacement)("tooltipType",d.tooltipType)("tooltipTitle",d.tooltipTemplate?void 0:n.tooltipText)("tooltipTemplate",d.tooltipTemplate)("tooltipContext",n.data)("noBarWhenZero",d.noBarWhenZero)("animations",d.animations)}}function K1(f,T){if(1&f){const n=e.EpF();e.O4$(),e.TgZ(0,"g",4),e.NdJ("dimensionsChanged",function(k){const se=e.CHM(n).index;return e.oxw(2).dataLabelHeightChanged.emit({size:k,index:se})}),e.qZA()}if(2&f){const n=T.$implicit,d=e.oxw(2);e.Q6J("barX",n.x)("barY",n.y)("barWidth",n.width)("barHeight",n.height)("value",n.total)("valueFormatting",d.dataLabelFormatting)("orientation",d.barOrientation.Vertical)}}function Fs(f,T){if(1&f&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,K1,1,7,"g",3),e.qZA()),2&f){const n=e.oxw();e.xp6(1),e.Q6J("ngForOf",n.barsForDataLabels)("ngForTrackBy",n.trackDataLabelBy)}}const S2=["ngx-charts-bar-label",""];let X1=(()=>{class f{constructor(n,d,k){this.applicationRef=n,this.componentFactoryResolver=d,this.injector=k}static setGlobalRootViewContainer(n){f.globalRootViewContainer=n}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(n){this._container=n}getComponentRootNode(n){return function xu(f){return f.element}(n)?n.element.nativeElement:n.hostView&&n.hostView.rootNodes.length>0?n.hostView.rootNodes[0]:n.location.nativeElement}getRootViewContainerNode(n){return this.getComponentRootNode(n)}projectComponentBindings(n,d){if(d){if(void 0!==d.inputs){const k=Object.getOwnPropertyNames(d.inputs);for(const H of k)n.instance[H]=d.inputs[H]}if(void 0!==d.outputs){const k=Object.getOwnPropertyNames(d.outputs);for(const H of k)n.instance[H]=d.outputs[H]}}return n}appendComponent(n,d={},k){k||(k=this.getRootViewContainer());const H=this.getComponentRootNode(k),se=new y.u0(H,this.componentFactoryResolver,this.applicationRef,this.injector),Se=new y.C5(n),ht=se.attach(Se);return this.projectComponentBindings(ht,d),ht}}return f.\u0275fac=function(n){return new(n||f)(e.LFG(e.z2F),e.LFG(e._Vd),e.LFG(e.zs3))},f.\u0275prov=e.Yz7({token:f,factory:f.\u0275fac}),f.globalRootViewContainer=null,f})();function z2(f,T,n){n=n||{};let d,k,H,se=null,Se=0;function ht(){Se=!1===n.leading?0:+new Date,se=null,H=f.apply(d,k)}return function(){const mt=+new Date;!Se&&!1===n.leading&&(Se=mt);const Dt=T-(mt-Se);return d=this,k=arguments,Dt<=0?(clearTimeout(se),se=null,Se=mt,H=f.apply(d,k)):!se&&!1!==n.trailing&&(se=setTimeout(ht,Dt)),H}}function f4(f,T){return function(d,k,H){return{configurable:!0,enumerable:H.enumerable,get:function(){return Object.defineProperty(this,k,{configurable:!0,enumerable:H.enumerable,value:z2(H.value,f,T)}),this[k]}}}}var Dn=(()=>{return(f=Dn||(Dn={})).Top="top",f.Bottom="bottom",f.Left="left",f.Right="right",f.Center="center",Dn;var f})();function $1(f,T,n){return n===Dn.Top?f.top-7:n===Dn.Bottom?f.top+f.height-T.height+7:n===Dn.Center?f.top+f.height/2-T.height/2:void 0}function U2(f,T,n){return n===Dn.Left?f.left-7:n===Dn.Right?f.left+f.width-T.width+7:n===Dn.Center?f.left+f.width/2-T.width/2:void 0}class Es{static calculateVerticalAlignment(T,n,d){let k=$1(T,n,d);return k+n.height>window.innerHeight&&(k=window.innerHeight-n.height),k}static calculateVerticalCaret(T,n,d,k){let H;k===Dn.Top&&(H=T.height/2-d.height/2+7),k===Dn.Bottom&&(H=n.height-T.height/2-d.height/2-7),k===Dn.Center&&(H=n.height/2-d.height/2);const se=$1(T,n,k);return se+n.height>window.innerHeight&&(H+=se+n.height-window.innerHeight),H}static calculateHorizontalAlignment(T,n,d){let k=U2(T,n,d);return k+n.width>window.innerWidth&&(k=window.innerWidth-n.width),k}static calculateHorizontalCaret(T,n,d,k){let H;k===Dn.Left&&(H=T.width/2-d.width/2+7),k===Dn.Right&&(H=n.width-T.width/2-d.width/2-7),k===Dn.Center&&(H=n.width/2-d.width/2);const se=U2(T,n,k);return se+n.width>window.innerWidth&&(H+=se+n.width-window.innerWidth),H}static shouldFlip(T,n,d,k){let H=!1;return d===Dn.Right&&T.left+T.width+n.width+k>window.innerWidth&&(H=!0),d===Dn.Left&&T.left-n.width-k<0&&(H=!0),d===Dn.Top&&T.top-n.height-k<0&&(H=!0),d===Dn.Bottom&&T.top+T.height+n.height+k>window.innerHeight&&(H=!0),H}static positionCaret(T,n,d,k,H){let se=0,Se=0;return T===Dn.Right?(Se=-7,se=Es.calculateVerticalCaret(d,n,k,H)):T===Dn.Left?(Se=n.width,se=Es.calculateVerticalCaret(d,n,k,H)):T===Dn.Top?(se=n.height,Se=Es.calculateHorizontalCaret(d,n,k,H)):T===Dn.Bottom&&(se=-7,Se=Es.calculateHorizontalCaret(d,n,k,H)),{top:se,left:Se}}static positionContent(T,n,d,k,H){let se=0,Se=0;return T===Dn.Right?(Se=d.left+d.width+k,se=Es.calculateVerticalAlignment(d,n,H)):T===Dn.Left?(Se=d.left-n.width-k,se=Es.calculateVerticalAlignment(d,n,H)):T===Dn.Top?(se=d.top-n.height-k,Se=Es.calculateHorizontalAlignment(d,n,H)):T===Dn.Bottom&&(se=d.top+d.height+k,Se=Es.calculateHorizontalAlignment(d,n,H)),{top:se,left:Se}}static determinePlacement(T,n,d,k){if(Es.shouldFlip(d,n,T,k)){if(T===Dn.Right)return Dn.Left;if(T===Dn.Left)return Dn.Right;if(T===Dn.Top)return Dn.Bottom;if(T===Dn.Bottom)return Dn.Top}return T}}let Cu=(()=>{class f{constructor(n,d,k){this.element=n,this.renderer=d,this.platformId=k}get cssClasses(){let n="ngx-charts-tooltip-content";return n+=` position-${this.placement}`,n+=` type-${this.type}`,n+=` ${this.cssClass}`,n}ngAfterViewInit(){setTimeout(this.position.bind(this))}position(){if(!(0,t.NF)(this.platformId))return;const n=this.element.nativeElement,d=this.host.nativeElement.getBoundingClientRect();if(!d.height&&!d.width)return;const k=n.getBoundingClientRect();this.checkFlip(d,k),this.positionContent(n,d,k),this.showCaret&&this.positionCaret(d,k),setTimeout(()=>this.renderer.addClass(n,"animate"),1)}positionContent(n,d,k){const{top:H,left:se}=Es.positionContent(this.placement,k,d,this.spacing,this.alignment);this.renderer.setStyle(n,"top",`${H}px`),this.renderer.setStyle(n,"left",`${se}px`)}positionCaret(n,d){const k=this.caretElm.nativeElement,H=k.getBoundingClientRect(),{top:se,left:Se}=Es.positionCaret(this.placement,d,n,H,this.alignment);this.renderer.setStyle(k,"top",`${se}px`),this.renderer.setStyle(k,"left",`${Se}px`)}checkFlip(n,d){this.placement=Es.determinePlacement(this.placement,d,n,this.spacing)}onWindowResize(){this.position()}}return f.\u0275fac=function(n){return new(n||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(n,d){if(1&n&&e.Gf(xd,5),2&n){let k;e.iGM(k=e.CRH())&&(d.caretElm=k.first)}},hostVars:2,hostBindings:function(n,d){1&n&&e.NdJ("resize",function(){return d.onWindowResize()},!1,e.Jf7),2&n&&e.Tol(d.cssClasses)},inputs:{placement:"placement",host:"host",showCaret:"showCaret",type:"type",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(n,d){1&n&&(e.TgZ(0,"div"),e._UZ(1,"span",0,1),e.TgZ(3,"div",2),e.YNc(4,r6,2,4,"span",3),e.YNc(5,a6,1,1,"span",4),e.qZA(),e.qZA()),2&n&&(e.xp6(1),e.Gre("tooltip-caret position-",d.placement,""),e.Q6J("hidden",!d.showCaret),e.xp6(3),e.Q6J("ngIf",!d.title),e.xp6(1),e.Q6J("ngIf",d.title))},directives:[t.O5,t.tP],styles:[".ngx-charts-tooltip-content{position:fixed;border-radius:3px;z-index:5000;display:block;font-weight:normal;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,C.gn)([f4(100)],f.prototype,"onWindowResize",null),f})(),Vc=(()=>{class f extends class Mu{constructor(T){this.injectionService=T,this.defaults={},this.components=new Map}getByType(T=this.type){return this.components.get(T)}create(T){return this.createByType(this.type,T)}createByType(T,n){n=this.assignDefaults(n);const d=this.injectComponent(T,n);return this.register(T,d),d}destroy(T){const n=this.components.get(T.componentType);if(n&&n.length){const d=n.indexOf(T);d>-1&&(n[d].destroy(),n.splice(d,1))}}destroyAll(){this.destroyByType(this.type)}destroyByType(T){const n=this.components.get(T);if(n&&n.length){let d=n.length-1;for(;d>=0;)this.destroy(n[d--])}}injectComponent(T,n){return this.injectionService.appendComponent(T,n)}assignDefaults(T){const n=Object.assign({},this.defaults.inputs),d=Object.assign({},this.defaults.outputs);return!T.inputs&&!T.outputs&&(T={inputs:T}),n&&(T.inputs=Object.assign(Object.assign({},n),T.inputs)),d&&(T.outputs=Object.assign(Object.assign({},d),T.outputs)),T}register(T,n){this.components.has(T)||this.components.set(T,[]),this.components.get(T).push(n)}}{constructor(n){super(n),this.type=Cu}}return f.\u0275fac=function(n){return new(n||f)(e.LFG(X1))},f.\u0275prov=e.Yz7({token:f,factory:f.\u0275fac}),f})();var yr=(()=>{return(f=yr||(yr={})).Right="right",f.Below="below",yr;var f})(),Xo=(()=>{return(f=Xo||(Xo={})).ScaleLegend="scaleLegend",f.Legend="legend",Xo;var f})(),_i=(()=>{return(f=_i||(_i={})).Time="time",f.Linear="linear",f.Ordinal="ordinal",f.Quantile="quantile",_i;var f})();let Wr=(()=>{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=yr,this.LegendType=Xo}ngOnChanges(n){this.update()}update(){let n=0;this.showLegend&&(this.legendType=this.getLegendType(),(!this.legendOptions||this.legendOptions.position===yr.Right)&&(n=this.legendType===Xo.ScaleLegend?1:2)),this.chartWidth=Math.floor(this.view[0]*(12-n)/12),this.legendWidth=this.legendOptions&&this.legendOptions.position!==yr.Right?this.chartWidth:Math.floor(this.view[0]*n/12)}getLegendType(){return this.legendOptions.scaleType===_i.Linear?Xo.ScaleLegend:Xo.Legend}}return f.\u0275fac=function(n){return new(n||f)},f.\u0275cmp=e.Xpm({type:f,selectors:[["ngx-charts-chart"]],inputs:{showLegend:"showLegend",animations:"animations",legendType:"legendType",view:"view",legendOptions:"legendOptions",activeEntries:"activeEntries"},outputs:{legendLabelClick:"legendLabelClick",legendLabelActivate:"legendLabelActivate",legendLabelDeactivate:"legendLabelDeactivate"},features:[e._Bn([Vc]),e.TTD],ngContentSelectors:Ad,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(n,d){1&n&&(e.F$t(),e.TgZ(0,"div",0),e.O4$(),e.TgZ(1,"svg",1),e.Hsn(2),e.qZA(),e.YNc(3,Md,1,5,"ngx-charts-scale-legend",2),e.YNc(4,wd,1,7,"ngx-charts-legend",3),e.qZA()),2&n&&(e.Udp("width",d.view[0],"px"),e.xp6(1),e.uIk("width",d.chartWidth)("height",d.view[1]),e.xp6(2),e.Q6J("ngIf",d.showLegend&&d.legendType===d.LegendType.ScaleLegend),e.xp6(1),e.Q6J("ngIf",d.showLegend&&d.legendType===d.LegendType.Legend))},directives:function(){return[t.O5,K2,q2]},encapsulation:2,changeDetection:0}),f})(),wu=(()=>{class f{constructor(n,d){this.element=n,this.zone=d,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 n=()=>{if(!this.element)return;const{offsetHeight:d,offsetWidth:k}=this.element.nativeElement;d&&k?(clearTimeout(this.timeout),this.onVisibilityChange()):(clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>n(),100)}))};this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>n())})}}return f.\u0275fac=function(n){return new(n||f)(e.Y36(e.SBq),e.Y36(e.R0b))},f.\u0275dir=e.lG2({type:f,selectors:[["visibility-observer"]],outputs:{visible:"visible"}}),f})();function Gc(f){return"[object Date]"===toString.call(f)}let jr=(()=>{class f{constructor(n,d,k,H){this.chartElement=n,this.zone=d,this.cd=k,this.platformId=H,this.scheme="cool",this.schemeType=_i.Ordinal,this.animations=!0,this.select=new e.vpe}ngOnInit(){(0,t.PM)(this.platformId)&&(this.animations=!1)}ngAfterViewInit(){this.bindWindowResizeEvent(),this.visibilityObserver=new wu(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(n){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 n=this.getContainerDims();n&&(this.width=n.width,this.height=n.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 n,d;const k=this.chartElement.nativeElement;if((0,t.NF)(this.platformId)&&null!==k.parentNode){const H=k.parentNode.getBoundingClientRect();n=H.width,d=H.height}return n&&d?{width:n,height:d}:null}formatDates(){for(let n=0;n<this.results.length;n++){const d=this.results[n];if(d.label=d.name,Gc(d.label)&&(d.label=d.label.toLocaleDateString()),d.series)for(let k=0;k<d.series.length;k++){const H=d.series[k];H.label=H.name,Gc(H.label)&&(H.label=H.label.toLocaleDateString())}}}unbindEvents(){this.resizeSubscription&&this.resizeSubscription.unsubscribe()}bindWindowResizeEvent(){if(!(0,t.NF)(this.platformId))return;const d=(0,o.R)(window,"resize").pipe((0,M.b)(200)).subscribe(k=>{this.update(),this.cd&&this.cd.markForCheck()});this.resizeSubscription=d}cloneData(n){const d=[];for(const k of n){const H={name:k.name};if(void 0!==k.value&&(H.value=k.value),void 0!==k.series){H.series=[];for(const se of k.series){const Se=Object.assign({},se);H.series.push(Se)}}void 0!==k.extra&&(H.extra=JSON.parse(JSON.stringify(k.extra))),d.push(H)}return d}}return f.\u0275fac=function(n){return new(n||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:{scheme:"scheme",schemeType:"schemeType",animations:"animations",results:"results",view:"view",customColors:"customColors"},outputs:{select:"select"},features:[e.TTD],decls:1,vars:0,template:function(n,d){1&n&&e._UZ(0,"div")},encapsulation:2}),f})();var ba=(()=>{return(f=ba||(ba={})).Top="top",f.Bottom="bottom",f.Left="left",f.Right="right",ba;var f})();let Au=(()=>{class f{constructor(n){this.textHeight=25,this.margin=5,this.element=n.nativeElement}ngOnChanges(n){this.update()}update(){switch(this.strokeWidth="0.01",this.textAnchor="middle",this.transform="",this.orient){case ba.Top:case ba.Bottom:this.y=this.offset,this.x=this.width/2;break;case ba.Left:this.y=-(this.offset+this.textHeight+this.margin),this.x=-this.height/2,this.transform="rotate(270)";break;case ba.Right:this.y=this.offset+this.margin,this.x=-this.height/2,this.transform="rotate(270)"}}}return f.\u0275fac=function(n){return new(n||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:go,decls:2,vars:6,template:function(n,d){1&n&&(e.O4$(),e.TgZ(0,"text"),e._uU(1),e.qZA()),2&n&&(e.uIk("stroke-width",d.strokeWidth)("x",d.x)("y",d.y)("text-anchor",d.textAnchor)("transform",d.transform),e.xp6(1),e.hij(" ",d.label," "))},encapsulation:2,changeDetection:0}),f})();function $o(f,T=16){return"string"!=typeof f?"number"==typeof f?f+"":"":(f=f.trim()).length<=T?f:`${f.slice(0,T)}...`}function Eu(f,T){if(f.length>T){const n=[],d=Math.floor(f.length/T);for(let k=0;k<f.length;k++)k%d==0&&n.push(f[k]);f=n}return f}var Xa=(()=>{return(f=Xa||(Xa={})).Start="start",f.Middle="middle",f.End="end",Xa;var f})();let Tu=(()=>{class f{constructor(n){this.platformId=n,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=Xa.Middle,this.maxTicksLength=0,this.maxAllowedLength=16,this.height=0,this.approxHeight=10}ngOnChanges(n){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){if(!(0,t.NF)(this.platformId))return void this.dimensionsChanged.emit({height:this.approxHeight});const n=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().height,10);n!==this.height&&(this.height=n,this.dimensionsChanged.emit({height:this.height}),setTimeout(()=>this.updateDims()))}update(){const n=this.scale;this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:n.tickFormat?n.tickFormat.apply(n,this.tickArguments):function(k){return"Date"===k.constructor.name?k.toLocaleDateString():k.toLocaleString()};const d=this.rotateTicks?this.getRotationAngle(this.ticks):null;this.adjustedScale=this.scale.bandwidth?function(k){return this.scale(k)+.5*this.scale.bandwidth()}:this.scale,this.textTransform="",d&&0!==d?(this.textTransform=`rotate(${d})`,this.textAnchor=Xa.End,this.verticalSpacing=10):this.textAnchor=Xa.Middle,setTimeout(()=>this.updateDims())}getRotationAngle(n){let d=0;this.maxTicksLength=0;for(let mt=0;mt<n.length;mt++){const Dt=this.tickFormat(n[mt]).toString();let Ht=Dt.length;this.trimTicks&&(Ht=this.tickTrim(Dt).length),Ht>this.maxTicksLength&&(this.maxTicksLength=Ht)}const se=7*Math.min(this.maxTicksLength,this.maxAllowedLength);let Se=se;const ht=Math.floor(this.width/n.length);for(;Se>ht&&d>-90;)d-=30,Se=Math.cos(d*(Math.PI/180))*se;return this.approxHeight=Math.max(Math.abs(Math.sin(d*(Math.PI/180))*se),10),d}getTicks(){let n;const d=this.getMaxTicks(20),k=this.getMaxTicks(100);return this.tickValues?n=this.tickValues:this.scale.ticks?n=this.scale.ticks.apply(this.scale,[k]):(n=this.scale.domain(),n=Eu(n,d)),n}getMaxTicks(n){return Math.floor(this.width/n)}tickTransform(n){return"translate("+this.adjustedScale(n)+","+this.verticalSpacing+")"}gridLineTransform(){return`translate(0,${-this.verticalSpacing-5})`}tickTrim(n){return this.trimTicks?$o(n,this.maxTickLength):n}}return f.\u0275fac=function(n){return new(n||f)(e.Y36(e.Lbi))},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-x-axis-ticks",""]],viewQuery:function(n,d){if(1&n&&e.Gf(V1,5),2&n){let k;e.iGM(k=e.CRH())&&(d.ticksElement=k.first)}},inputs:{tickArguments:"tickArguments",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",showGridLines:"showGridLines",rotateTicks:"rotateTicks",scale:"scale",orient:"orient",tickValues:"tickValues",tickFormatting:"tickFormatting",gridLineHeight:"gridLineHeight",width:"width"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[e.TTD],attrs:s6,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(n,d){1&n&&(e.O4$(),e.TgZ(0,"g",null,0),e.YNc(2,o6,5,7,"g",1),e.qZA(),e.YNc(3,Ed,2,2,"g",2)),2&n&&(e.xp6(2),e.Q6J("ngForOf",d.ticks),e.xp6(1),e.Q6J("ngForOf",d.ticks))},directives:[t.sg,t.O5],encapsulation:2,changeDetection:0}),f})(),ir=(()=>{class f{constructor(){this.rotateTicks=!0,this.showGridLines=!1,this.xOrient=ba.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=ba}ngOnChanges(n){this.update()}update(){this.transform=`translate(0,${this.xAxisOffset+this.padding+this.dims.height})`,void 0!==this.xAxisTickCount&&(this.tickArguments=[this.xAxisTickCount])}emitTicksHeight({height:n}){const d=n+25+5;d!==this.labelOffset&&(this.labelOffset=d,setTimeout(()=>{this.dimensionsChanged.emit({height:n})},0))}}return f.\u0275fac=function(n){return new(n||f)},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-x-axis",""]],viewQuery:function(n,d){if(1&n&&e.Gf(Tu,5),2&n){let k;e.iGM(k=e.CRH())&&(d.ticksComponent=k.first)}},inputs:{rotateTicks:"rotateTicks",showGridLines:"showGridLines",xOrient:"xOrient",xAxisOffset:"xAxisOffset",xScale:"xScale",dims:"dims",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",showLabel:"showLabel",labelText:"labelText",ticks:"ticks",xAxisTickCount:"xAxisTickCount"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[e.TTD],attrs:l6,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(n,d){1&n&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,c6,1,12,"g",0),e.YNc(2,Td,1,5,"g",1),e.qZA()),2&n&&(e.uIk("class",d.xAxisClassName)("transform",d.transform),e.xp6(1),e.Q6J("ngIf",d.xScale),e.xp6(1),e.Q6J("ngIf",d.showLabel))},directives:[t.O5,Tu,Au],encapsulation:2,changeDetection:0}),f})();function Bs(f,T,n,d,k,[H,se,Se,ht]){let mt="";return mt=`M${[f+k,T]}`,mt+="h"+((n=0===(n=Math.floor(n))?1:n)-2*k),mt+=se?`a${[k,k]} 0 0 1 ${[k,k]}`:`h${k}v${k}`,mt+="v"+((d=0===(d=Math.floor(d))?1:d)-2*k),mt+=ht?`a${[k,k]} 0 0 1 ${[-k,k]}`:`v${k}h${-k}`,mt+="h"+(2*k-n),mt+=Se?`a${[k,k]} 0 0 1 ${[-k,-k]}`:`h${-k}v${-k}`,mt+="v"+(2*k-d),mt+=H?`a${[k,k]} 0 0 1 ${[k,-k]}`:`v${-k}h${k}`,mt+="z",mt}let Su=(()=>{class f{constructor(n){this.platformId=n,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=Xa.Middle,this.width=0,this.outerTickSize=6,this.rotateLabels=!1,this.referenceLineLength=0,this.Orientation=ba}ngOnChanges(n){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){if(!(0,t.NF)(this.platformId))return this.width=this.getApproximateAxisWidth(),void this.dimensionsChanged.emit({width:this.width});const n=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().width,10);n!==this.width&&(this.width=n,this.dimensionsChanged.emit({width:n}),setTimeout(()=>this.updateDims()))}update(){let n;const d=this.orient===ba.Top||this.orient===ba.Right?-1:1;switch(this.tickSpacing=Math.max(this.innerTickSize,0)+this.tickPadding,n=this.scale,this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:n.tickFormat?n.tickFormat.apply(n,this.tickArguments):function(k){return"Date"===k.constructor.name?k.toLocaleDateString():k.toLocaleString()},this.adjustedScale=n.bandwidth?function(k){return n(k)+.5*n.bandwidth()}:n,this.showRefLines&&this.referenceLines&&this.setReferencelines(),this.orient){case ba.Top:case ba.Bottom:this.transform=function(k){return"translate("+this.adjustedScale(k)+",0)"},this.textAnchor=Xa.Middle,this.y2=this.innerTickSize*d,this.y1=this.tickSpacing*d,this.dy=d<0?"0em":".71em";break;case ba.Left:this.transform=function(k){return"translate(0,"+this.adjustedScale(k)+")"},this.textAnchor=Xa.End,this.x2=this.innerTickSize*-d,this.x1=this.tickSpacing*-d,this.dy=".32em";break;case ba.Right:this.transform=function(k){return"translate(0,"+this.adjustedScale(k)+")"},this.textAnchor=Xa.Start,this.x2=this.innerTickSize*-d,this.x1=this.tickSpacing*-d,this.dy=".32em"}setTimeout(()=>this.updateDims())}setReferencelines(){this.refMin=this.adjustedScale(Math.min.apply(null,this.referenceLines.map(n=>n.value))),this.refMax=this.adjustedScale(Math.max.apply(null,this.referenceLines.map(n=>n.value))),this.referenceLineLength=this.referenceLines.length,this.referenceAreaPath=Bs(0,this.refMax,this.gridLineWidth,this.refMin-this.refMax,0,[!1,!1,!1,!1])}getTicks(){let n;const d=this.getMaxTicks(20),k=this.getMaxTicks(50);return this.tickValues?n=this.tickValues:this.scale.ticks?n=this.scale.ticks.apply(this.scale,[k]):(n=this.scale.domain(),n=Eu(n,d)),n}getMaxTicks(n){return Math.floor(this.height/n)}tickTransform(n){return`translate(${this.adjustedScale(n)},${this.verticalSpacing})`}gridLineTransform(){return"translate(5,0)"}tickTrim(n){return this.trimTicks?$o(n,this.maxTickLength):n}getApproximateAxisWidth(){return 7*Math.max(...this.ticks.map(k=>this.tickTrim(this.tickFormat(k)).length))}}return f.\u0275fac=function(n){return new(n||f)(e.Y36(e.Lbi))},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-y-axis-ticks",""]],viewQuery:function(n,d){if(1&n&&e.Gf(V1,5),2&n){let k;e.iGM(k=e.CRH())&&(d.ticksElement=k.first)}},inputs:{tickArguments:"tickArguments",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",showGridLines:"showGridLines",showRefLabels:"showRefLabels",showRefLines:"showRefLines",scale:"scale",orient:"orient",tickValues:"tickValues",tickFormatting:"tickFormatting",gridLineWidth:"gridLineWidth",height:"height",referenceLines:"referenceLines"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[e.TTD],attrs:f2,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(n,d){1&n&&(e.O4$(),e.TgZ(0,"g",null,0),e.YNc(2,h6,5,9,"g",1),e.qZA(),e.YNc(3,d6,1,2,"path",2),e.YNc(4,p2,2,2,"g",3),e.YNc(5,f6,2,1,"g",3)),2&n&&(e.xp6(2),e.Q6J("ngForOf",d.ticks),e.xp6(1),e.Q6J("ngIf",d.referenceLineLength>1&&d.refMax&&d.refMin&&d.showRefLines),e.xp6(1),e.Q6J("ngForOf",d.ticks),e.xp6(1),e.Q6J("ngForOf",d.referenceLines))},directives:[t.sg,t.O5],encapsulation:2,changeDetection:0}),f})(),$a=(()=>{class f{constructor(){this.showGridLines=!1,this.yOrient=ba.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(n){this.update()}update(){this.offset=-(this.yAxisOffset+this.padding),this.yOrient===ba.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:n}){n!==this.labelOffset&&this.yOrient===ba.Right?(this.labelOffset=n+this.labelOffset,setTimeout(()=>{this.dimensionsChanged.emit({width:n})},0)):n!==this.labelOffset&&(this.labelOffset=n,setTimeout(()=>{this.dimensionsChanged.emit({width:n})},0))}}return f.\u0275fac=function(n){return new(n||f)},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-y-axis",""]],viewQuery:function(n,d){if(1&n&&e.Gf(Su,5),2&n){let k;e.iGM(k=e.CRH())&&(d.ticksComponent=k.first)}},inputs:{showGridLines:"showGridLines",yOrient:"yOrient",yAxisOffset:"yAxisOffset",yScale:"yScale",dims:"dims",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",ticks:"ticks",showLabel:"showLabel",labelText:"labelText",yAxisTickCount:"yAxisTickCount",referenceLines:"referenceLines",showRefLines:"showRefLines",showRefLabels:"showRefLabels"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[e.TTD],attrs:p6,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(n,d){1&n&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,g2,1,14,"g",0),e.YNc(2,a3,1,5,"g",1),e.qZA()),2&n&&(e.uIk("class",d.yAxisClassName)("transform",d.transform),e.xp6(1),e.Q6J("ngIf",d.yScale),e.xp6(1),e.Q6J("ngIf",d.showLabel))},directives:[t.O5,Su,Au],encapsulation:2,changeDetection:0}),f})(),V2=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[t.ez]]}),f})();var cs=(()=>{return(f=cs||(cs={})).popover="popover",f.tooltip="tooltip",cs;var f})(),Ao=(()=>{return(f=Ao||(Ao={}))[f.all="all"]="all",f[f.focus="focus"]="focus",f[f.mouseover="mouseover"]="mouseover",Ao;var f})();let Ts=(()=>{class f{constructor(n,d,k){this.tooltipService=n,this.viewContainerRef=d,this.renderer=k,this.tooltipCssClass="",this.tooltipAppendToBody=!0,this.tooltipSpacing=10,this.tooltipDisabled=!1,this.tooltipShowCaret=!0,this.tooltipPlacement=Dn.Top,this.tooltipAlignment=Dn.Center,this.tooltipType=cs.popover,this.tooltipCloseOnClickOutside=!0,this.tooltipCloseOnMouseLeave=!0,this.tooltipHideTimeout=300,this.tooltipShowTimeout=100,this.tooltipShowEvent=Ao.all,this.tooltipImmediateExit=!1,this.show=new e.vpe,this.hide=new e.vpe}get listensForFocus(){return this.tooltipShowEvent===Ao.all||this.tooltipShowEvent===Ao.focus}get listensForHover(){return this.tooltipShowEvent===Ao.all||this.tooltipShowEvent===Ao.mouseover}ngOnDestroy(){this.hideTooltip(!0)}onFocus(){this.listensForFocus&&this.showTooltip()}onBlur(){this.listensForFocus&&this.hideTooltip(!0)}onMouseEnter(){this.listensForHover&&this.showTooltip()}onMouseLeave(n){if(this.listensForHover&&this.tooltipCloseOnMouseLeave){if(clearTimeout(this.timeout),this.component&&this.component.instance.element.nativeElement.contains(n))return;this.hideTooltip(this.tooltipImmediateExit)}}onMouseClick(){this.listensForHover&&this.hideTooltip(!0)}showTooltip(n){if(this.component||this.tooltipDisabled)return;const d=n?0:this.tooltipShowTimeout+(navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)?300:0);clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.tooltipService.destroyAll();const k=this.createBoundOptions();this.component=this.tooltipService.create(k),setTimeout(()=>{this.component&&this.addHideListeners(this.component.instance.element.nativeElement)},10),this.show.emit(!0)},d)}addHideListeners(n){this.mouseEnterContentEvent=this.renderer.listen(n,"mouseenter",()=>{clearTimeout(this.timeout)}),this.tooltipCloseOnMouseLeave&&(this.mouseLeaveContentEvent=this.renderer.listen(n,"mouseleave",()=>{this.hideTooltip(this.tooltipImmediateExit)})),this.tooltipCloseOnClickOutside&&(this.documentClickEvent=this.renderer.listen("window","click",d=>{n.contains(d.target)||this.hideTooltip()}))}hideTooltip(n=!1){if(!this.component)return;const d=()=>{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),n?d():this.timeout=setTimeout(d,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(n){return new(n||f)(e.Y36(Vc),e.Y36(e.s_b),e.Y36(e.Qsj))},f.\u0275dir=e.lG2({type:f,selectors:[["","ngx-tooltip",""]],hostBindings:function(n,d){1&n&&e.NdJ("focusin",function(){return d.onFocus()})("blur",function(){return d.onBlur()})("mouseenter",function(){return d.onMouseEnter()})("mouseleave",function(H){return d.onMouseLeave(H.target)})("click",function(){return d.onMouseClick()})},inputs:{tooltipCssClass:"tooltipCssClass",tooltipAppendToBody:"tooltipAppendToBody",tooltipSpacing:"tooltipSpacing",tooltipDisabled:"tooltipDisabled",tooltipShowCaret:"tooltipShowCaret",tooltipPlacement:"tooltipPlacement",tooltipAlignment:"tooltipAlignment",tooltipType:"tooltipType",tooltipCloseOnClickOutside:"tooltipCloseOnClickOutside",tooltipCloseOnMouseLeave:"tooltipCloseOnMouseLeave",tooltipHideTimeout:"tooltipHideTimeout",tooltipShowTimeout:"tooltipShowTimeout",tooltipShowEvent:"tooltipShowEvent",tooltipImmediateExit:"tooltipImmediateExit",tooltipTitle:"tooltipTitle",tooltipTemplate:"tooltipTemplate",tooltipContext:"tooltipContext"},outputs:{show:"show",hide:"hide"}}),f})(),Cl=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({providers:[X1,Vc],imports:[[t.ez]]}),f})();function Ua(f){return f instanceof Date?f.toLocaleDateString():f.toLocaleString()}const G2={};function es(){let f=("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4);return f=`a${f}`,G2[f]?es():(G2[f]=!0,f)}var lr=(()=>{return(f=lr||(lr={})).Vertical="vertical",f.Horizontal="horizontal",lr;var f})();let Xs=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-grid-panel",""]],inputs:{width:"width",height:"height",x:"x",y:"y"},attrs:Id,decls:1,vars:4,consts:[["stroke","none",1,"gridpanel"]],template:function(n,d){1&n&&(e.O4$(),e._UZ(0,"rect",0)),2&n&&e.uIk("height",d.height)("width",d.width)("x",d.x)("y",d.y)},encapsulation:2,changeDetection:0}),f})();var ac=(()=>{return(f=ac||(ac={})).Odd="odd",f.Even="even",ac;var f})();let j2,e0=(()=>{class f{ngOnChanges(n){this.update()}update(){this.gridPanels=this.getGridPanels()}getGridPanels(){return this.data.map(n=>{let d,k,H,se,Se,ht=ac.Odd;if(this.orient===lr.Vertical){const mt=this.xScale(n.name);Number.parseInt((mt/this.xScale.step()).toString(),10)%2==1&&(ht=ac.Even),d=this.xScale.bandwidth()*this.xScale.paddingInner(),k=this.xScale.bandwidth()+d,H=this.dims.height,se=this.xScale(n.name)-d/2,Se=0}else if(this.orient===lr.Horizontal){const mt=this.yScale(n.name);Number.parseInt((mt/this.yScale.step()).toString(),10)%2==1&&(ht=ac.Even),d=this.yScale.bandwidth()*this.yScale.paddingInner(),k=this.dims.width,H=this.yScale.bandwidth()+d,se=0,Se=this.yScale(n.name)-d/2}return{name:n.name,class:ht,height:H,width:k,x:se,y:Se}})}}return f.\u0275fac=function(n){return new(n||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:Mo,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(n,d){1&n&&e.YNc(0,W1,1,10,"g",0),2&n&&e.Q6J("ngForOf",d.gridPanels)},directives:[t.sg,Xs],encapsulation:2,changeDetection:0}),f})(),ts=(()=>{class f{constructor(){this.orientation=lr.Vertical}ngOnChanges(n){this.x1="0%",this.x2="0%",this.y1="0%",this.y2="0%",this.orientation===lr.Horizontal?this.x2="100%":this.orientation===lr.Vertical&&(this.y1="100%")}}return f.\u0275fac=function(n){return new(n||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:g6,decls:2,vars:6,consts:[[3,"id"],[3,"stop-color","stop-opacity",4,"ngFor","ngForOf"]],template:function(n,d){1&n&&(e.O4$(),e.TgZ(0,"linearGradient",0),e.YNc(1,_6,1,5,"stop",1),e.qZA()),2&n&&(e.Q6J("id",d.name),e.uIk("x1",d.x1)("y1",d.y1)("x2",d.x2)("y2",d.y2),e.xp6(1),e.Q6J("ngForOf",d.stops))},directives:[t.sg],encapsulation:2,changeDetection:0}),f})();"undefined"!=typeof window?j2=window:"undefined"!=typeof global&&(j2=global);let q2=(()=>{class f{constructor(n){this.cd=n,this.horizontal=!1,this.labelClick=new e.vpe,this.labelActivate=new e.vpe,this.labelDeactivate=new e.vpe,this.legendEntries=[]}ngOnChanges(n){this.update()}update(){this.cd.markForCheck(),this.legendEntries=this.getLegendEntries()}getLegendEntries(){const n=[];for(const d of this.data){const k=Ua(d);-1===n.findIndex(se=>se.label===k)&&n.push({label:d,formattedLabel:k,color:this.colors.getColor(d)})}return n}isActive(n){return!!this.activeEntries&&void 0!==this.activeEntries.find(k=>n.label===k.name)}activate(n){this.labelActivate.emit(n)}deactivate(n){this.labelDeactivate.emit(n)}trackBy(n,d){return d.label}}return f.\u0275fac=function(n){return new(n||f)(e.Y36(e.sBO))},f.\u0275cmp=e.Xpm({type:f,selectors:[["ngx-charts-legend"]],inputs:{horizontal:"horizontal",data:"data",title:"title",colors:"colors",height:"height",width:"width",activeEntries:"activeEntries"},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(n,d){1&n&&(e.TgZ(0,"div"),e.YNc(1,y6,3,1,"header",0),e.TgZ(2,"div",1),e.TgZ(3,"ul",2),e.YNc(4,C2,2,4,"li",3),e.qZA(),e.qZA(),e.qZA()),2&n&&(e.Udp("width",d.width,"px"),e.xp6(1),e.Q6J("ngIf",(null==d.title?null:d.title.length)>0),e.xp6(2),e.Udp("max-height",d.height-45,"px"),e.ekj("horizontal-legend",d.horizontal),e.xp6(1),e.Q6J("ngForOf",d.legendEntries)("ngForTrackBy",d.trackBy))},directives:function(){return[t.O5,t.sg,Ou]},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:bold}.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})(),Ou=(()=>{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(n){return new(n||f)},f.\u0275cmp=e.Xpm({type:f,selectors:[["ngx-charts-legend-entry"]],hostBindings:function(n,d){1&n&&e.NdJ("mouseenter",function(){return d.onMouseEnter()})("mouseleave",function(){return d.onMouseLeave()})},inputs:{isActive:"isActive",color:"color",label:"label",formattedLabel:"formattedLabel"},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(n,d){1&n&&(e.TgZ(0,"span",0),e.NdJ("click",function(){return d.select.emit(d.formattedLabel)}),e.TgZ(1,"span",1),e.NdJ("click",function(){return d.toggle.emit(d.formattedLabel)}),e.qZA(),e.TgZ(2,"span",2),e._uU(3),e.qZA(),e.qZA()),2&n&&(e.ekj("active",d.isActive),e.Q6J("title",d.formattedLabel),e.xp6(1),e.Udp("background-color",d.color),e.xp6(2),e.hij(" ",d.trimmedLabel," "))},encapsulation:2,changeDetection:0}),f})(),K2=(()=>{class f{constructor(){this.horizontal=!1}ngOnChanges(n){const d=this.gradientString(this.colors.range(),this.colors.domain());this.gradient=`linear-gradient(to ${this.horizontal?"right":"bottom"}, ${d})`}gradientString(n,d){d.push(1);const k=[];return n.reverse().forEach((H,se)=>{k.push(`${H} ${Math.round(100*d[se])}%`)}),k.join(", ")}}return f.\u0275fac=function(n){return new(n||f)},f.\u0275cmp=e.Xpm({type:f,selectors:[["ngx-charts-scale-legend"]],inputs:{horizontal:"horizontal",valueRange:"valueRange",colors:"colors",height:"height",width:"width"},features:[e.TTD],decls:8,vars:10,consts:[[1,"scale-legend"],[1,"scale-legend-label"],[1,"scale-legend-wrap"]],template:function(n,d){1&n&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"span"),e._uU(3),e.qZA(),e.qZA(),e._UZ(4,"div",2),e.TgZ(5,"div",1),e.TgZ(6,"span"),e._uU(7),e.qZA(),e.qZA(),e.qZA()),2&n&&(e.Udp("height",d.horizontal?void 0:d.height,"px")("width",d.width,"px"),e.ekj("horizontal-legend",d.horizontal),e.xp6(3),e.Oqu(d.valueRange[1].toLocaleString()),e.xp6(1),e.Udp("background",d.gradient),e.xp6(3),e.Oqu(d.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})(),Hs=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[t.ez,V2,Cl],t.ez,V2,Cl]}),f})();function qr({width:f,height:T,margins:n,showXAxis:d=!1,showYAxis:k=!1,xAxisHeight:H=0,yAxisWidth:se=0,showXLabel:Se=!1,showYLabel:ht=!1,showLegend:mt=!1,legendType:Dt=_i.Ordinal,legendPosition:Ht=yr.Right,columns:Ut=12}){let ni=n[3],bi=f,zi=T-n[0]-n[2];return mt&&Ht===yr.Right&&(Ut-=Dt===_i.Ordinal?2:1),bi=bi*Ut/12,bi=bi-n[1]-n[3],d&&(zi-=5,zi-=H,Se&&(zi-=30)),k&&(bi-=5,bi-=se,ni+=se,ni+=10,ht&&(bi-=30,ni+=30)),bi=Math.max(0,bi),zi=Math.max(0,zi),{width:Math.floor(bi),height:Math.floor(zi),xOffset:Math.floor(ni)}}let X2=[{name:"vivid",selectable:!0,group:_i.Ordinal,domain:["#647c8a","#3f51b5","#2196f3","#00b862","#afdf0a","#a7b61a","#f3e562","#ff9800","#ff5722","#ff4514"]},{name:"natural",selectable:!0,group:_i.Ordinal,domain:["#bf9d76","#e99450","#d89f59","#f2dfa7","#a5d7c6","#7794b1","#afafaf","#707160","#ba9383","#d9d5c3"]},{name:"cool",selectable:!0,group:_i.Ordinal,domain:["#a8385d","#7aa3e5","#a27ea8","#aae3f5","#adcded","#a95963","#8796c0","#7ed3ed","#50abcc","#ad6886"]},{name:"fire",selectable:!0,group:_i.Ordinal,domain:["#ff3d00","#bf360c","#ff8f00","#ff6f00","#ff5722","#e65100","#ffca28","#ffab00"]},{name:"solar",selectable:!0,group:_i.Linear,domain:["#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"]},{name:"air",selectable:!0,group:_i.Linear,domain:["#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"]},{name:"aqua",selectable:!0,group:_i.Linear,domain:["#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"]},{name:"flame",selectable:!1,group:_i.Ordinal,domain:["#A10A28","#D3342D","#EF6D49","#FAAD67","#FDDE90","#DBED91","#A9D770","#6CBA67","#2C9653","#146738"]},{name:"ocean",selectable:!1,group:_i.Ordinal,domain:["#1D68FB","#33C0FC","#4AFFFE","#AFFFFF","#FFFC63","#FDBD2D","#FC8A25","#FA4F1E","#FA141B","#BA38D1"]},{name:"forest",selectable:!1,group:_i.Ordinal,domain:["#55C22D","#C1F33D","#3CC099","#AFFFFF","#8CFC9D","#76CFFA","#BA60FB","#EE6490","#C42A1C","#FC9F32"]},{name:"horizon",selectable:!1,group:_i.Ordinal,domain:["#2597FB","#65EBFD","#99FDD0","#FCEE4B","#FEFCFA","#FDD6E3","#FCB1A8","#EF6F7B","#CB96E8","#EFDEE0"]},{name:"neons",selectable:!1,group:_i.Ordinal,domain:["#FF3333","#FF33FF","#CC33FF","#0000FF","#33CCFF","#33FFFF","#33FF66","#CCFF33","#FFCC00","#FF6600"]},{name:"picnic",selectable:!1,group:_i.Ordinal,domain:["#FAC51D","#66BD6D","#FAA026","#29BB9C","#E96B56","#55ACD2","#B7332F","#2C83C9","#9166B8","#92E7E8"]},{name:"night",selectable:!1,group:_i.Ordinal,domain:["#2B1B5A","#501356","#183356","#28203F","#391B3C","#1E2B3C","#120634","#2D0432","#051932","#453080","#75267D","#2C507D","#4B3880","#752F7D","#35547D"]},{name:"nightLights",selectable:!1,group:_i.Ordinal,domain:["#4e31a5","#9c25a7","#3065ab","#57468b","#904497","#46648b","#32118d","#a00fb3","#1052a2","#6e51bd","#b63cc3","#6c97cb","#8671c1","#b455be","#7496c3"]}];class Kr{constructor(T,n,d,k){"string"==typeof T&&(T=X2.find(H=>H.name===T)),this.colorDomain=T.domain,this.scaleType=n,this.domain=d,this.customColors=k,this.scale=this.generateColorScheme(T,n,this.domain)}generateColorScheme(T,n,d){let k;switch("string"==typeof T&&(T=X2.find(H=>H.name===T)),n){case _i.Quantile:k=id().range(T.domain).domain(d);break;case _i.Ordinal:k=I1().range(T.domain).domain(d);break;case _i.Linear:{const H=[...T.domain];1===H.length&&(H.push(H[0]),this.colorDomain=H);const se=j0(0,1,1/H.length);k=Ar().range(H).domain(se)}}return k}getColor(T){if(null==T)throw new Error("Value can not be null");if(this.scaleType===_i.Linear){const n=Ar().domain(this.domain).range([0,1]);return this.scale(n(T))}{if("function"==typeof this.customColors)return this.customColors(T);const n=T.toString();let d;return this.customColors&&this.customColors.length>0&&(d=this.customColors.find(k=>k.name.toLowerCase()===n.toLowerCase())),d?d.value:this.scale(T)}}getLinearGradientStops(T,n){void 0===n&&(n=this.domain[0]);const d=Ar().domain(this.domain).range([0,1]),k=Er().domain(this.colorDomain).range([0,1]),H=this.getColor(T),se=d(n),Se=this.getColor(n),ht=d(T);let mt=1,Dt=se;const Ht=[];for(Ht.push({color:Se,offset:se,originalOffset:se,opacity:1});Dt<ht&&mt<this.colorDomain.length;){const Ut=this.colorDomain[mt],ni=k(Ut);if(ni<=se)mt++;else{if(ni.toFixed(4)>=(ht-k.bandwidth()).toFixed(4))break;Ht.push({color:Ut,offset:ni,opacity:1}),Dt=ni,mt++}}if(Ht[Ht.length-1].offset<100&&Ht.push({color:H,offset:ht,opacity:1}),ht===se)Ht[0].offset=0,Ht[1].offset=100;else if(100!==Ht[Ht.length-1].offset)for(const Ut of Ht)Ut.offset=(Ut.offset-se)/(ht-se)*100;return Ht}}let m4=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[Hs]]}),f})(),s0=(()=>{class f{constructor(n){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=n.nativeElement}ngOnChanges(n){n.roundEdges&&this.loadAnimation(),this.update()}update(){this.gradientId="grad"+es().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 n=function ot(f){return"string"==typeof f?new yi([[document.querySelector(f)]],[document.documentElement]):new yi([[f]],Pt)}(this.element).select(".bar"),d=this.getPath();this.animations?n.transition().duration(500).attr("d",d):n.attr("d",d)}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 d,n=this.getRadius();return this.roundEdges?this.orientation===lr.Vertical?(n=Math.min(this.height,n),d=Bs(this.x,this.y+this.height,this.width,1,0,this.edges)):this.orientation===lr.Horizontal&&(n=Math.min(this.width,n),d=Bs(this.x,this.y,1,this.height,0,this.edges)):this.orientation===lr.Vertical?d=Bs(this.x,this.y+this.height,this.width,1,0,this.edges):this.orientation===lr.Horizontal&&(d=Bs(this.x,this.y,1,this.height,0,this.edges)),d}getPath(){let d,n=this.getRadius();return this.roundEdges?this.orientation===lr.Vertical?(n=Math.min(this.height,n),d=Bs(this.x,this.y,this.width,this.height,n,this.edges)):this.orientation===lr.Horizontal&&(n=Math.min(this.width,n),d=Bs(this.x,this.y,this.width,this.height,n,this.edges)):d=Bs(this.x,this.y,this.width,this.height,n,this.edges),d}getRadius(){let n=0;return this.roundEdges&&this.height>5&&this.width>5&&(n=Math.floor(Math.min(5,this.height/2,this.width/2))),n}getStartOpacity(){return this.roundEdges?.2:.5}get edges(){let n=[!1,!1,!1,!1];return this.roundEdges&&(this.orientation===lr.Vertical?n=this.data.value>0?[!0,!0,!1,!1]:[!1,!1,!0,!0]:this.orientation===lr.Horizontal&&(n=this.data.value>0?[!1,!0,!1,!0]:[!0,!1,!0,!1])),n}onMouseEnter(){this.activate.emit(this.data)}onMouseLeave(){this.deactivate.emit(this.data)}checkToHideBar(){this.hideBar=this.noBarWhenZero&&(this.orientation===lr.Vertical&&0===this.height||this.orientation===lr.Horizontal&&0===this.width)}}return f.\u0275fac=function(n){return new(n||f)(e.Y36(e.SBq))},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-bar",""]],hostBindings:function(n,d){1&n&&e.NdJ("mouseenter",function(){return d.onMouseEnter()})("mouseleave",function(){return d.onMouseLeave()})},inputs:{roundEdges:"roundEdges",gradient:"gradient",offset:"offset",isActive:"isActive",animations:"animations",noBarWhenZero:"noBarWhenZero",fill:"fill",data:"data",width:"width",height:"height",x:"x",y:"y",orientation:"orientation",stops:"stops",ariaLabel:"ariaLabel"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[e.TTD],attrs:h3,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(n,d){1&n&&(e.YNc(0,Js,2,3,"defs",0),e.O4$(),e.TgZ(1,"path",1),e.NdJ("click",function(){return d.select.emit(d.data)}),e.qZA()),2&n&&(e.Q6J("ngIf",d.hasGradient),e.xp6(1),e.ekj("active",d.isActive)("hidden",d.hideBar),e.uIk("d",d.path)("aria-label",d.ariaLabel)("fill",d.hasGradient?d.gradientFill:d.fill))},directives:[t.O5,ts],encapsulation:2,changeDetection:0}),f})();var xa=(()=>{return(f=xa||(xa={})).Standard="standard",f.Normalized="normalized",f.Stacked="stacked",xa;var f})();let g4=(()=>{class f extends jr{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition=yr.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=qr({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 n=this.xDomain.length/(this.dims.width/this.barPadding+1);return Er().range([0,this.dims.width]).paddingInner(n).domain(this.xDomain)}getYScale(){this.yDomain=this.getYDomain();const n=Ar().range([this.dims.height,0]).domain(this.yDomain);return this.roundDomains?n.nice():n}getXDomain(){return this.results.map(n=>n.label)}getYDomain(){const n=this.results.map(H=>H.value);let d=this.yScaleMin?Math.min(this.yScaleMin,...n):Math.min(0,...n);this.yAxisTicks&&!this.yAxisTicks.some(isNaN)&&(d=Math.min(d,...this.yAxisTicks));let k=this.yScaleMax?Math.max(this.yScaleMax,...n):Math.max(0,...n);return this.yAxisTicks&&!this.yAxisTicks.some(isNaN)&&(k=Math.max(k,...this.yAxisTicks)),[d,k]}onClick(n){this.select.emit(n)}setColors(){let n;n=this.schemeType===_i.Ordinal?this.xDomain:this.yDomain,this.colors=new Kr(this.scheme,this.schemeType,n,this.customColors)}getLegendOptions(){const n={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return n.scaleType===_i.Ordinal?(n.domain=this.xDomain,n.colors=this.colors,n.title=this.legendTitle):(n.domain=this.yDomain,n.colors=this.colors.scale),n}updateYAxisWidth({width:n}){this.yAxisWidth=n,this.update()}updateXAxisHeight({height:n}){this.xAxisHeight=n,this.update()}onDataLabelMaxHeightChanged(n){n.size.negative?this.dataLabelMaxHeight.negative=Math.max(this.dataLabelMaxHeight.negative,n.size.height):this.dataLabelMaxHeight.positive=Math.max(this.dataLabelMaxHeight.positive,n.size.height),n.index===this.results.length-1&&setTimeout(()=>this.update())}onActivate(n,d=!1){n=this.results.find(H=>d?H.label===n.name:H.name===n.name),!(this.activeEntries.findIndex(H=>H.name===n.name&&H.value===n.value&&H.series===n.series)>-1)&&(this.activeEntries=[n,...this.activeEntries],this.activate.emit({value:n,entries:this.activeEntries}))}onDeactivate(n,d=!1){n=this.results.find(H=>d?H.label===n.name:H.name===n.name);const k=this.activeEntries.findIndex(H=>H.name===n.name&&H.value===n.value&&H.series===n.series);this.activeEntries.splice(k,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:n,entries:this.activeEntries})}}return f.\u0275fac=function(){let T;return function(d){return(T||(T=e.n5z(f)))(d||f)}}(),f.\u0275cmp=e.Xpm({type:f,selectors:[["ngx-charts-bar-vertical"]],contentQueries:function(n,d,k){if(1&n&&e.Suo(k,Hr,5),2&n){let H;e.iGM(H=e.CRH())&&(d.tooltipTemplate=H.first)}},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",tooltipDisabled:"tooltipDisabled",showGridLines:"showGridLines",activeEntries:"activeEntries",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",barPadding:"barPadding",roundDomains:"roundDomains",roundEdges:"roundEdges",showDataLabel:"showDataLabel",noBarWhenZero:"noBarWhenZero",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",gradient:"gradient",schemeType:"schemeType",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",yScaleMax:"yScaleMax",yScaleMin:"yScaleMin",dataLabelFormatting:"dataLabelFormatting"},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(n,d){1&n&&(e.TgZ(0,"ngx-charts-chart",0),e.NdJ("legendLabelClick",function(H){return d.onClick(H)})("legendLabelActivate",function(H){return d.onActivate(H,!0)})("legendLabelDeactivate",function(H){return d.onDeactivate(H,!0)}),e.O4$(),e.TgZ(1,"g",1),e.YNc(2,N6,1,11,"g",2),e.YNc(3,R6,1,9,"g",3),e.TgZ(4,"g",4),e.NdJ("activate",function(H){return d.onActivate(H)})("deactivate",function(H){return d.onDeactivate(H)})("select",function(H){return d.onClick(H)})("dataLabelHeightChanged",function(H){return d.onDataLabelMaxHeightChanged(H)}),e.qZA(),e.qZA(),e.qZA()),2&n&&(e.Q6J("view",e.WLB(22,vr,d.width,d.height))("showLegend",d.legend)("legendOptions",d.legendOptions)("activeEntries",d.activeEntries)("animations",d.animations),e.xp6(1),e.uIk("transform",d.transform),e.xp6(1),e.Q6J("ngIf",d.xAxis),e.xp6(1),e.Q6J("ngIf",d.yAxis),e.xp6(1),e.Q6J("xScale",d.xScale)("yScale",d.yScale)("colors",d.colors)("series",d.results)("dims",d.dims)("gradient",d.gradient)("tooltipDisabled",d.tooltipDisabled)("tooltipTemplate",d.tooltipTemplate)("showDataLabel",d.showDataLabel)("dataLabelFormatting",d.dataLabelFormatting)("activeEntries",d.activeEntries)("roundEdges",d.roundEdges)("animations",d.animations)("noBarWhenZero",d.noBarWhenZero))},directives:function(){return[Wr,t.O5,qc,ir,$a]},styles:[oa],encapsulation:2,changeDetection:0}),f})(),_4=(()=>{class f extends jr{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition=yr.Right,this.tooltipDisabled=!1,this.scaleType=_i.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.barOrientation=lr,this.trackBy=(n,d)=>d.name}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=qr({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(n,d){n.size.negative?this.dataLabelMaxHeight.negative=Math.max(this.dataLabelMaxHeight.negative,n.size.height):this.dataLabelMaxHeight.positive=Math.max(this.dataLabelMaxHeight.positive,n.size.height),d===this.results.length-1&&setTimeout(()=>this.update())}getGroupScale(){const n=this.groupDomain.length/(this.dims.height/this.groupPadding+1);return Er().rangeRound([0,this.dims.width]).paddingInner(n).paddingOuter(n/2).domain(this.groupDomain)}getInnerScale(){const n=this.groupScale.bandwidth(),d=this.innerDomain.length/(n/this.barPadding+1);return Er().rangeRound([0,n]).paddingInner(d).domain(this.innerDomain)}getValueScale(){const n=Ar().range([this.dims.height,0]).domain(this.valueDomain);return this.roundDomains?n.nice():n}getGroupDomain(){const n=[];for(const d of this.results)n.includes(d.label)||n.push(d.label);return n}getInnerDomain(){const n=[];for(const d of this.results)for(const k of d.series)n.includes(k.label)||n.push(k.label);return n}getValueDomain(){const n=[];for(const H of this.results)for(const se of H.series)n.includes(se.value)||n.push(se.value);return[Math.min(0,...n),this.yScaleMax?Math.max(this.yScaleMax,...n):Math.max(0,...n)]}groupTransform(n){return`translate(${this.groupScale(n.label)}, 0)`}onClick(n,d){d&&(n.series=d.name),this.select.emit(n)}setColors(){let n;n=this.schemeType===_i.Ordinal?this.innerDomain:this.valueDomain,this.colors=new Kr(this.scheme,this.schemeType,n,this.customColors)}getLegendOptions(){const n={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return n.scaleType===_i.Ordinal?(n.domain=this.innerDomain,n.colors=this.colors,n.title=this.legendTitle):(n.domain=this.valueDomain,n.colors=this.colors.scale),n}updateYAxisWidth({width:n}){this.yAxisWidth=n,this.update()}updateXAxisHeight({height:n}){this.xAxisHeight=n,this.update()}onActivate(n,d,k=!1){const H=Object.assign({},n);d&&(H.series=d.name);const se=this.results.map(Se=>Se.series).flat().filter(Se=>k?Se.label===H.name:Se.name===H.name&&Se.series===H.series);this.activeEntries=[...se],this.activate.emit({value:H,entries:this.activeEntries})}onDeactivate(n,d,k=!1){const H=Object.assign({},n);d&&(H.series=d.name),this.activeEntries=this.activeEntries.filter(se=>k?se.label!==H.name:!(se.name===H.name&&se.series===H.series)),this.deactivate.emit({value:H,entries:this.activeEntries})}}return f.\u0275fac=function(){let T;return function(d){return(T||(T=e.n5z(f)))(d||f)}}(),f.\u0275cmp=e.Xpm({type:f,selectors:[["ngx-charts-bar-vertical-2d"]],contentQueries:function(n,d,k){if(1&n&&e.Suo(k,Hr,5),2&n){let H;e.iGM(H=e.CRH())&&(d.tooltipTemplate=H.first)}},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",tooltipDisabled:"tooltipDisabled",scaleType:"scaleType",showGridLines:"showGridLines",activeEntries:"activeEntries",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",groupPadding:"groupPadding",barPadding:"barPadding",roundDomains:"roundDomains",roundEdges:"roundEdges",showDataLabel:"showDataLabel",noBarWhenZero:"noBarWhenZero",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",gradient:"gradient",schemeType:"schemeType",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",yScaleMax:"yScaleMax",dataLabelFormatting:"dataLabelFormatting"},outputs:{activate:"activate",deactivate:"deactivate"},features:[e.qOj],decls:6,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"],["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-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"]],template:function(n,d){1&n&&(e.TgZ(0,"ngx-charts-chart",0),e.NdJ("legendLabelActivate",function(H){return d.onActivate(H,void 0,!0)})("legendLabelDeactivate",function(H){return d.onDeactivate(H,void 0,!0)})("legendLabelClick",function(H){return d.onClick(H)}),e.O4$(),e.TgZ(1,"g",1),e._UZ(2,"g",2),e.YNc(3,F6,1,10,"g",3),e.YNc(4,B6,1,9,"g",4),e.YNc(5,H6,1,17,"g",5),e.qZA(),e.qZA()),2&n&&(e.Q6J("view",e.WLB(15,vr,d.width,d.height))("showLegend",d.legend)("legendOptions",d.legendOptions)("activeEntries",d.activeEntries)("animations",d.animations),e.xp6(1),e.uIk("transform",d.transform),e.xp6(1),e.Q6J("xScale",d.groupScale)("yScale",d.valueScale)("data",d.results)("dims",d.dims)("orient",d.barOrientation.Vertical),e.xp6(1),e.Q6J("ngIf",d.xAxis),e.xp6(1),e.Q6J("ngIf",d.yAxis),e.xp6(1),e.Q6J("ngForOf",d.results)("ngForTrackBy",d.trackBy))},directives:function(){return[Wr,e0,t.O5,t.sg,ir,$a,qc]},styles:[oa],encapsulation:2,data:{animation:[(0,l.X$)("animationState",[(0,l.eR)(":leave",[(0,l.oB)({opacity:1,transform:"*"}),(0,l.jt)(500,(0,l.oB)({opacity:0,transform:"scale(0)"}))])])]},changeDetection:0}),f})();var Ls=(()=>{return(f=Ls||(Ls={})).positive="positive",f.negative="negative",Ls;var f})();let qc=(()=>{class f{constructor(){this.type=xa.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=lr}ngOnChanges(n){this.update()}update(){let n;this.updateTooltipSettings(),this.series.length&&(n=this.xScale.bandwidth()),n=Math.round(n);const d=Math.max(this.yScale.domain()[0],0),k={[Ls.positive]:0,[Ls.negative]:0};let se,H=Ls.positive;this.type===xa.Normalized&&(se=this.series.map(Se=>Se.value).reduce((Se,ht)=>Se+ht,0)),this.bars=this.series.map((Se,ht)=>{let mt=Se.value;const Dt=this.getLabel(Se),Ht=Ua(Dt);H=mt>0?Ls.positive:Ls.negative;const ni={value:mt,label:Dt,roundEdges:this.roundEdges,data:Se,width:n,formattedLabel:Ht,height:0,x:0,y:0};if(this.type===xa.Standard)ni.height=Math.abs(this.yScale(mt)-this.yScale(d)),ni.x=this.xScale(Dt),ni.y=this.yScale(mt<0?0:mt);else if(this.type===xa.Stacked){const zi=k[H],di=zi+mt;k[H]+=mt,ni.height=this.yScale(zi)-this.yScale(di),ni.x=0,ni.y=this.yScale(di),ni.offset0=zi,ni.offset1=di}else if(this.type===xa.Normalized){let zi=k[H],di=zi+mt;k[H]+=mt,se>0?(zi=100*zi/se,di=100*di/se):(zi=0,di=0),ni.height=this.yScale(zi)-this.yScale(di),ni.x=0,ni.y=this.yScale(di),ni.offset0=zi,ni.offset1=di,mt=(di-zi).toFixed(2)+"%"}this.colors.scaleType===_i.Ordinal?ni.color=this.colors.getColor(Dt):this.type===xa.Standard?(ni.color=this.colors.getColor(mt),ni.gradientStops=this.colors.getLinearGradientStops(mt)):(ni.color=this.colors.getColor(ni.offset1),ni.gradientStops=this.colors.getLinearGradientStops(ni.offset1,ni.offset0));let bi=Ht;return ni.ariaLabel=Ht+" "+mt.toLocaleString(),null!=this.seriesName&&(bi=`${this.seriesName} \u2022 ${Ht}`,ni.data.series=this.seriesName,ni.ariaLabel=this.seriesName+" "+ni.ariaLabel),ni.tooltipText=this.tooltipDisabled?void 0:`\n <span class="tooltip-label">${function Ta(f){return f.toLocaleString().replace(/[&'`"<>]/g,T=>({"&":"&amp;","'":"&#x27;","`":"&#x60;",'"':"&quot;","<":"&lt;",">":"&gt;"}[T]))}(bi)}</span>\n <span class="tooltip-val">${this.dataLabelFormatting?this.dataLabelFormatting(mt):mt.toLocaleString()}</span>\n `,ni}),this.updateDataLabels()}updateDataLabels(){if(this.type===xa.Stacked){this.barsForDataLabels=[];const n={};n.series=this.seriesName;const d=this.series.map(H=>H.value).reduce((H,se)=>se>0?H+se:H,0),k=this.series.map(H=>H.value).reduce((H,se)=>se<0?H+se:H,0);n.total=d+k,n.x=0,n.y=0,n.height=this.yScale(n.total>0?d:k),n.width=this.xScale.bandwidth(),this.barsForDataLabels.push(n)}else this.barsForDataLabels=this.series.map(n=>{var d;const k={};return k.series=null!==(d=this.seriesName)&&void 0!==d?d:n.label,k.total=n.value,k.x=this.xScale(n.label),k.y=this.yScale(0),k.height=this.yScale(k.total)-this.yScale(0),k.width=this.xScale.bandwidth(),k})}updateTooltipSettings(){this.tooltipPlacement=this.tooltipDisabled?void 0:Dn.Top,this.tooltipType=this.tooltipDisabled?void 0:cs.tooltip}isActive(n){return!!this.activeEntries&&void 0!==this.activeEntries.find(k=>n.name===k.name&&n.value===k.value)}onClick(n){this.select.emit(n)}getLabel(n){return n.label?n.label:n.name}trackBy(n,d){return d.label}trackDataLabelBy(n,d){return n+"#"+d.series+"#"+d.total}}return f.\u0275fac=function(n){return new(n||f)},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-series-vertical",""]],inputs:{type:"type",tooltipDisabled:"tooltipDisabled",animations:"animations",showDataLabel:"showDataLabel",noBarWhenZero:"noBarWhenZero",dims:"dims",series:"series",xScale:"xScale",yScale:"yScale",colors:"colors",gradient:"gradient",activeEntries:"activeEntries",seriesName:"seriesName",tooltipTemplate:"tooltipTemplate",roundEdges:"roundEdges",dataLabelFormatting:"dataLabelFormatting"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",dataLabelHeightChanged:"dataLabelHeightChanged"},features:[e.TTD],attrs:ls,decls:2,vars:3,consts:[["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"],[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"],["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(n,d){1&n&&(e.YNc(0,bl,1,22,"g",0),e.YNc(1,Fs,2,2,"g",1)),2&n&&(e.Q6J("ngForOf",d.bars)("ngForTrackBy",d.trackBy),e.xp6(1),e.Q6J("ngIf",d.showDataLabel))},directives:function(){return[t.sg,t.O5,s0,Ts,Pu]},encapsulation:2,data:{animation:[(0,l.X$)("animationState",[(0,l.eR)(":leave",[(0,l.oB)({opacity:1}),(0,l.jt)(500,(0,l.oB)({opacity:0}))])])]},changeDetection:0}),f})(),Pu=(()=>{class f{constructor(n){this.dimensionsChanged=new e.vpe,this.horizontalPadding=2,this.verticalPadding=5,this.element=n.nativeElement}ngOnChanges(n){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):Ua(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(n){return new(n||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:S2,decls:2,vars:5,consts:[["alignment-baseline","middle",1,"textDataLabel"]],template:function(n,d){1&n&&(e.O4$(),e.TgZ(0,"text",0),e._uU(1),e.qZA()),2&n&&(e.uIk("text-anchor",d.textAnchor)("transform",d.transform)("x",d.x)("y",d.y),e.xp6(1),e.hij(" ",d.formatedValue," "))},styles:[".textDataLabel[_ngcontent-%COMP%]{font-size:11px}"],changeDetection:0}),f})(),Nu=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[Hs]]}),f})(),Bu=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[Hs]]}),f})(),zu=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[Hs]]}),f})(),El=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[Hs]]}),f})(),y4=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[Hs]]}),f})();Math;let ia=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[Hs]]}),f})(),I3=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[Hs,ia,y4]]}),f})(),w4=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[Hs]]}),f})(),E4=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[Hs]]}),f})(),J3=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[Hs,ia,Nu]]}),f})(),lh=(()=>{class f{constructor(){!function oh(){"undefined"!=typeof SVGElement&&void 0===SVGElement.prototype.contains&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)}()}}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[Hs,m4,Nu,Bu,zu,El,y4,I3,w4,ia,E4,J3]}),f})()},7977:(Ve,Q,m)=>{"use strict";const e=Q;e.bignum=m(3854),e.define=m(9516).define,e.base=m(7813),e.constants=m(5459),e.decoders=m(196),e.encoders=m(1131)},9516:(Ve,Q,m)=>{"use strict";const e=m(1131),t=m(196),y=m(3894);function o(M,l){this.name=M,this.body=l,this.decoders={},this.encoders={}}Q.define=function(l,N){return new o(l,N)},o.prototype._createNamed=function(l){const N=this.name;function s(D){this._initNamed(D,N)}return y(s,l),s.prototype._initNamed=function(A,O){l.call(this,A,O)},new s(this)},o.prototype._getDecoder=function(l){return this.decoders.hasOwnProperty(l=l||"der")||(this.decoders[l]=this._createNamed(t[l])),this.decoders[l]},o.prototype.decode=function(l,N,s){return this._getDecoder(N).decode(l,s)},o.prototype._getEncoder=function(l){return this.encoders.hasOwnProperty(l=l||"der")||(this.encoders[l]=this._createNamed(e[l])),this.encoders[l]},o.prototype.encode=function(l,N,s){return this._getEncoder(N).encode(l,s)}},2769:(Ve,Q,m)=>{"use strict";const e=m(3894),t=m(4919).b,y=m(2038).Buffer;function C(M,l){t.call(this,l),y.isBuffer(M)?(this.base=M,this.offset=0,this.length=M.length):this.error("Input not Buffer")}function o(M,l){if(Array.isArray(M))this.length=0,this.value=M.map(function(N){return o.isEncoderBuffer(N)||(N=new o(N,l)),this.length+=N.length,N},this);else if("number"==typeof M){if(!(0<=M&&M<=255))return l.error("non-byte EncoderBuffer value");this.value=M,this.length=1}else if("string"==typeof M)this.value=M,this.length=y.byteLength(M);else{if(!y.isBuffer(M))return l.error("Unsupported type: "+typeof M);this.value=M,this.length=M.length}}e(C,t),Q.C=C,C.isDecoderBuffer=function(l){return l instanceof C||"object"==typeof l&&y.isBuffer(l.base)&&"DecoderBuffer"===l.constructor.name&&"number"==typeof l.offset&&"number"==typeof l.length&&"function"==typeof l.save&&"function"==typeof l.restore&&"function"==typeof l.isEmpty&&"function"==typeof l.readUInt8&&"function"==typeof l.skip&&"function"==typeof l.raw},C.prototype.save=function(){return{offset:this.offset,reporter:t.prototype.save.call(this)}},C.prototype.restore=function(l){const N=new C(this.base);return N.offset=l.offset,N.length=this.offset,this.offset=l.offset,t.prototype.restore.call(this,l.reporter),N},C.prototype.isEmpty=function(){return this.offset===this.length},C.prototype.readUInt8=function(l){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(l||"DecoderBuffer overrun")},C.prototype.skip=function(l,N){if(!(this.offset+l<=this.length))return this.error(N||"DecoderBuffer overrun");const s=new C(this.base);return s._reporterState=this._reporterState,s.offset=this.offset,s.length=this.offset+l,this.offset+=l,s},C.prototype.raw=function(l){return this.base.slice(l?l.offset:this.offset,this.length)},Q.R=o,o.isEncoderBuffer=function(l){return l instanceof o||"object"==typeof l&&"EncoderBuffer"===l.constructor.name&&"number"==typeof l.length&&"function"==typeof l.join},o.prototype.join=function(l,N){return l||(l=y.alloc(this.length)),N||(N=0),0===this.length||(Array.isArray(this.value)?this.value.forEach(function(s){s.join(l,N),N+=s.length}):("number"==typeof this.value?l[N]=this.value:"string"==typeof this.value?l.write(this.value,N):y.isBuffer(this.value)&&this.value.copy(l,N),N+=this.length)),l}},7813:(Ve,Q,m)=>{"use strict";const e=Q;e.Reporter=m(4919).b,e.DecoderBuffer=m(2769).C,e.EncoderBuffer=m(2769).R,e.Node=m(1430)},1430:(Ve,Q,m)=>{"use strict";const e=m(4919).b,t=m(2769).R,y=m(2769).C,C=m(2391),o=["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"],M=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(o);function N(D,A,O){const E={};this._baseState=E,E.name=O,E.enc=D,E.parent=A||null,E.children=null,E.tag=null,E.args=null,E.reverseArgs=null,E.choice=null,E.optional=!1,E.any=!1,E.obj=!1,E.use=null,E.useDecoder=null,E.key=null,E.default=null,E.explicit=null,E.implicit=null,E.contains=null,E.parent||(E.children=[],this._wrap())}Ve.exports=N;const s=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];N.prototype.clone=function(){const A=this._baseState,O={};s.forEach(function(P){O[P]=A[P]});const E=new this.constructor(O.parent);return E._baseState=O,E},N.prototype._wrap=function(){const A=this._baseState;M.forEach(function(O){this[O]=function(){const P=new this.constructor(this);return A.children.push(P),P[O].apply(P,arguments)}},this)},N.prototype._init=function(A){const O=this._baseState;C(null===O.parent),A.call(this),O.children=O.children.filter(function(E){return E._baseState.parent===this},this),C.equal(O.children.length,1,"Root node can have only one child")},N.prototype._useArgs=function(A){const O=this._baseState,E=A.filter(function(P){return P instanceof this.constructor},this);A=A.filter(function(P){return!(P instanceof this.constructor)},this),0!==E.length&&(C(null===O.children),O.children=E,E.forEach(function(P){P._baseState.parent=this},this)),0!==A.length&&(C(null===O.args),O.args=A,O.reverseArgs=A.map(function(P){if("object"!=typeof P||P.constructor!==Object)return P;const w={};return Object.keys(P).forEach(function(Z){Z==(0|Z)&&(Z|=0),w[P[Z]]=Z}),w}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(D){N.prototype[D]=function(){throw new Error(D+" not implemented for encoding: "+this._baseState.enc)}}),o.forEach(function(D){N.prototype[D]=function(){const O=this._baseState,E=Array.prototype.slice.call(arguments);return C(null===O.tag),O.tag=D,this._useArgs(E),this}}),N.prototype.use=function(A){C(A);const O=this._baseState;return C(null===O.use),O.use=A,this},N.prototype.optional=function(){return this._baseState.optional=!0,this},N.prototype.def=function(A){const O=this._baseState;return C(null===O.default),O.default=A,O.optional=!0,this},N.prototype.explicit=function(A){const O=this._baseState;return C(null===O.explicit&&null===O.implicit),O.explicit=A,this},N.prototype.implicit=function(A){const O=this._baseState;return C(null===O.explicit&&null===O.implicit),O.implicit=A,this},N.prototype.obj=function(){const A=this._baseState,O=Array.prototype.slice.call(arguments);return A.obj=!0,0!==O.length&&this._useArgs(O),this},N.prototype.key=function(A){const O=this._baseState;return C(null===O.key),O.key=A,this},N.prototype.any=function(){return this._baseState.any=!0,this},N.prototype.choice=function(A){const O=this._baseState;return C(null===O.choice),O.choice=A,this._useArgs(Object.keys(A).map(function(E){return A[E]})),this},N.prototype.contains=function(A){const O=this._baseState;return C(null===O.use),O.contains=A,this},N.prototype._decode=function(A,O){const E=this._baseState;if(null===E.parent)return A.wrapResult(E.children[0]._decode(A,O));let j,P=E.default,w=!0,Z=null;if(null!==E.key&&(Z=A.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(A,W,E.any),A.isError(w))return w}else{const ie=A.save();try{null===E.choice?this._decodeGeneric(E.tag,A,O):this._decodeChoice(A,O),w=!0}catch(ee){w=!1}A.restore(ie)}}if(E.obj&&w&&(j=A.enterObject()),w){if(null!==E.explicit){const ie=this._decodeTag(A,E.explicit);if(A.isError(ie))return ie;A=ie}const W=A.offset;if(null===E.use&&null===E.choice){let ie;E.any&&(ie=A.save());const ee=this._decodeTag(A,null!==E.implicit?E.implicit:E.tag,E.any);if(A.isError(ee))return ee;E.any?P=A.raw(ie):A=ee}if(O&&O.track&&null!==E.tag&&O.track(A.path(),W,A.length,"tagged"),O&&O.track&&null!==E.tag&&O.track(A.path(),A.offset,A.length,"content"),E.any||(P=null===E.choice?this._decodeGeneric(E.tag,A,O):this._decodeChoice(A,O)),A.isError(P))return P;if(!E.any&&null===E.choice&&null!==E.children&&E.children.forEach(function(ee){ee._decode(A,O)}),E.contains&&("octstr"===E.tag||"bitstr"===E.tag)){const ie=new y(P);P=this._getUse(E.contains,A._reporterState.obj)._decode(ie,O)}}return E.obj&&w&&(P=A.leaveObject(j)),null===E.key||null===P&&!0!==w?null!==Z&&A.exitKey(Z):A.leaveKey(Z,E.key,P),P},N.prototype._decodeGeneric=function(A,O,E){const P=this._baseState;return"seq"===A||"set"===A?null:"seqof"===A||"setof"===A?this._decodeList(O,A,P.args[0],E):/str$/.test(A)?this._decodeStr(O,A,E):"objid"===A&&P.args?this._decodeObjid(O,P.args[0],P.args[1],E):"objid"===A?this._decodeObjid(O,null,null,E):"gentime"===A||"utctime"===A?this._decodeTime(O,A,E):"null_"===A?this._decodeNull(O,E):"bool"===A?this._decodeBool(O,E):"objDesc"===A?this._decodeStr(O,A,E):"int"===A||"enum"===A?this._decodeInt(O,P.args&&P.args[0],E):null!==P.use?this._getUse(P.use,O._reporterState.obj)._decode(O,E):O.error("unknown tag: "+A)},N.prototype._getUse=function(A,O){const E=this._baseState;return E.useDecoder=this._use(A,O),C(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},N.prototype._decodeChoice=function(A,O){const E=this._baseState;let P=null,w=!1;return Object.keys(E.choice).some(function(Z){const j=A.save(),W=E.choice[Z];try{const ie=W._decode(A,O);if(A.isError(ie))return!1;P={type:Z,value:ie},w=!0}catch(ie){return A.restore(j),!1}return!0},this),w?P:A.error("Choice not matched")},N.prototype._createEncoderBuffer=function(A){return new t(A,this.reporter)},N.prototype._encode=function(A,O,E){const P=this._baseState;if(null!==P.default&&P.default===A)return;const w=this._encodeValue(A,O,E);return void 0===w||this._skipDefault(w,O,E)?void 0:w},N.prototype._encodeValue=function(A,O,E){const P=this._baseState;if(null===P.parent)return P.children[0]._encode(A,O||new e);let w=null;if(this.reporter=O,P.optional&&void 0===A){if(null===P.default)return;A=P.default}let Z=null,j=!1;if(P.any)w=this._createEncoderBuffer(A);else if(P.choice)w=this._encodeChoice(A,O);else if(P.contains)Z=this._getUse(P.contains,E)._encode(A,O),j=!0;else if(P.children)Z=P.children.map(function(W){if("null_"===W._baseState.tag)return W._encode(null,O,A);if(null===W._baseState.key)return O.error("Child should have a key");const ie=O.enterKey(W._baseState.key);if("object"!=typeof A)return O.error("Child expected, but input is not object");const ee=W._encode(A[W._baseState.key],O,A);return O.leaveKey(ie),ee},this).filter(function(W){return W}),Z=this._createEncoderBuffer(Z);else if("seqof"===P.tag||"setof"===P.tag){if(!P.args||1!==P.args.length)return O.error("Too many args for : "+P.tag);if(!Array.isArray(A))return O.error("seqof/setof, but data is not Array");const W=this.clone();W._baseState.implicit=null,Z=this._createEncoderBuffer(A.map(function(ie){return this._getUse(this._baseState.args[0],A)._encode(ie,O)},W))}else null!==P.use?w=this._getUse(P.use,E)._encode(A,O):(Z=this._encodePrimitive(P.tag,A),j=!0);if(!P.any&&null===P.choice){const W=null!==P.implicit?P.implicit:P.tag,ie=null===P.implicit?"universal":"context";null===W?null===P.use&&O.error("Tag could be omitted only for .use()"):null===P.use&&(w=this._encodeComposite(W,j,ie,Z))}return null!==P.explicit&&(w=this._encodeComposite(P.explicit,!1,"context",w)),w},N.prototype._encodeChoice=function(A,O){const E=this._baseState,P=E.choice[A.type];return P||C(!1,A.type+" not found in "+JSON.stringify(Object.keys(E.choice))),P._encode(A.value,O)},N.prototype._encodePrimitive=function(A,O){const E=this._baseState;if(/str$/.test(A))return this._encodeStr(O,A);if("objid"===A&&E.args)return this._encodeObjid(O,E.reverseArgs[0],E.args[1]);if("objid"===A)return this._encodeObjid(O,null,null);if("gentime"===A||"utctime"===A)return this._encodeTime(O,A);if("null_"===A)return this._encodeNull();if("int"===A||"enum"===A)return this._encodeInt(O,E.args&&E.reverseArgs[0]);if("bool"===A)return this._encodeBool(O);if("objDesc"===A)return this._encodeStr(O,A);throw new Error("Unsupported tag: "+A)},N.prototype._isNumstr=function(A){return/^[0-9 ]*$/.test(A)},N.prototype._isPrintstr=function(A){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(A)}},4919:(Ve,Q,m)=>{"use strict";const e=m(3894);function t(C){this._reporterState={obj:null,path:[],options:C||{},errors:[]}}function y(C,o){this.path=C,this.rethrow(o)}Q.b=t,t.prototype.isError=function(o){return o instanceof y},t.prototype.save=function(){const o=this._reporterState;return{obj:o.obj,pathLen:o.path.length}},t.prototype.restore=function(o){const M=this._reporterState;M.obj=o.obj,M.path=M.path.slice(0,o.pathLen)},t.prototype.enterKey=function(o){return this._reporterState.path.push(o)},t.prototype.exitKey=function(o){const M=this._reporterState;M.path=M.path.slice(0,o-1)},t.prototype.leaveKey=function(o,M,l){const N=this._reporterState;this.exitKey(o),null!==N.obj&&(N.obj[M]=l)},t.prototype.path=function(){return this._reporterState.path.join("/")},t.prototype.enterObject=function(){const o=this._reporterState,M=o.obj;return o.obj={},M},t.prototype.leaveObject=function(o){const M=this._reporterState,l=M.obj;return M.obj=o,l},t.prototype.error=function(o){let M;const l=this._reporterState,N=o instanceof y;if(M=N?o:new y(l.path.map(function(s){return"["+JSON.stringify(s)+"]"}).join(""),o.message||o,o.stack),!l.options.partial)throw M;return N||l.errors.push(M),M},t.prototype.wrapResult=function(o){const M=this._reporterState;return M.options.partial?{result:this.isError(o)?null:o,errors:M.errors}:o},e(y,Error),y.prototype.rethrow=function(o){if(this.message=o+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,y),!this.stack)try{throw new Error(this.message)}catch(M){this.stack=M.stack}return this}},5496:(Ve,Q)=>{"use strict";function m(e){const t={};return Object.keys(e).forEach(function(y){(0|y)==y&&(y|=0),t[e[y]]=y}),t}Q.tagClass={0:"universal",1:"application",2:"context",3:"private"},Q.tagClassByName=m(Q.tagClass),Q.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},Q.tagByName=m(Q.tag)},5459:(Ve,Q,m)=>{"use strict";const e=Q;e._reverse=function(y){const C={};return Object.keys(y).forEach(function(o){(0|o)==o&&(o|=0),C[y[o]]=o}),C},e.der=m(5496)},7127:(Ve,Q,m)=>{"use strict";const e=m(3894),t=m(3854),y=m(2769).C,C=m(1430),o=m(5496);function M(D){this.enc="der",this.name=D.name,this.entity=D,this.tree=new l,this.tree._init(D.body)}function l(D){C.call(this,"der",D)}function N(D,A){let O=D.readUInt8(A);if(D.isError(O))return O;const E=o.tagClass[O>>6],P=0==(32&O);if(31==(31&O)){let Z=O;for(O=0;128==(128&Z);){if(Z=D.readUInt8(A),D.isError(Z))return Z;O<<=7,O|=127&Z}}else O&=31;return{cls:E,primitive:P,tag:O,tagStr:o.tag[O]}}function s(D,A,O){let E=D.readUInt8(O);if(D.isError(E))return E;if(!A&&128===E)return null;if(0==(128&E))return E;const P=127&E;if(P>4)return D.error("length octect is too long");E=0;for(let w=0;w<P;w++){E<<=8;const Z=D.readUInt8(O);if(D.isError(Z))return Z;E|=Z}return E}Ve.exports=M,M.prototype.decode=function(A,O){return y.isDecoderBuffer(A)||(A=new y(A,O)),this.tree._decode(A,O)},e(l,C),l.prototype._peekTag=function(A,O,E){if(A.isEmpty())return!1;const P=A.save(),w=N(A,'Failed to peek tag: "'+O+'"');return A.isError(w)?w:(A.restore(P),w.tag===O||w.tagStr===O||w.tagStr+"of"===O||E)},l.prototype._decodeTag=function(A,O,E){const P=N(A,'Failed to decode tag of "'+O+'"');if(A.isError(P))return P;let w=s(A,P.primitive,'Failed to get length of "'+O+'"');if(A.isError(w))return w;if(!E&&P.tag!==O&&P.tagStr!==O&&P.tagStr+"of"!==O)return A.error('Failed to match tag: "'+O+'"');if(P.primitive||null!==w)return A.skip(w,'Failed to match body of: "'+O+'"');const Z=A.save(),j=this._skipUntilEnd(A,'Failed to skip indefinite length body: "'+this.tag+'"');return A.isError(j)?j:(w=A.offset-Z.offset,A.restore(Z),A.skip(w,'Failed to match body of: "'+O+'"'))},l.prototype._skipUntilEnd=function(A,O){for(;;){const E=N(A,O);if(A.isError(E))return E;const P=s(A,E.primitive,O);if(A.isError(P))return P;let w;if(w=E.primitive||null!==P?A.skip(P):this._skipUntilEnd(A,O),A.isError(w))return w;if("end"===E.tagStr)break}},l.prototype._decodeList=function(A,O,E,P){const w=[];for(;!A.isEmpty();){const Z=this._peekTag(A,"end");if(A.isError(Z))return Z;const j=E.decode(A,"der",P);if(A.isError(j)&&Z)break;w.push(j)}return w},l.prototype._decodeStr=function(A,O){if("bitstr"===O){const E=A.readUInt8();return A.isError(E)?E:{unused:E,data:A.raw()}}if("bmpstr"===O){const E=A.raw();if(E.length%2==1)return A.error("Decoding of string type: bmpstr length mismatch");let P="";for(let w=0;w<E.length/2;w++)P+=String.fromCharCode(E.readUInt16BE(2*w));return P}if("numstr"===O){const E=A.raw().toString("ascii");return this._isNumstr(E)?E:A.error("Decoding of string type: numstr unsupported characters")}if("octstr"===O)return A.raw();if("objDesc"===O)return A.raw();if("printstr"===O){const E=A.raw().toString("ascii");return this._isPrintstr(E)?E:A.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(O)?A.raw().toString():A.error("Decoding of string type: "+O+" unsupported")},l.prototype._decodeObjid=function(A,O,E){let P;const w=[];let Z=0,j=0;for(;!A.isEmpty();)j=A.readUInt8(),Z<<=7,Z|=127&j,0==(128&j)&&(w.push(Z),Z=0);if(128&j&&w.push(Z),P=E?w:[w[0]/40|0,w[0]%40].concat(w.slice(1)),O){let ee=O[P.join(" ")];void 0===ee&&(ee=O[P.join(".")]),void 0!==ee&&(P=ee)}return P},l.prototype._decodeTime=function(A,O){const E=A.raw().toString();let P,w,Z,j,W,ie;if("gentime"===O)P=0|E.slice(0,4),w=0|E.slice(4,6),Z=0|E.slice(6,8),j=0|E.slice(8,10),W=0|E.slice(10,12),ie=0|E.slice(12,14);else{if("utctime"!==O)return A.error("Decoding "+O+" time is not supported yet");P=0|E.slice(0,2),w=0|E.slice(2,4),Z=0|E.slice(4,6),j=0|E.slice(6,8),W=0|E.slice(8,10),ie=0|E.slice(10,12),P=P<70?2e3+P:1900+P}return Date.UTC(P,w-1,Z,j,W,ie,0)},l.prototype._decodeNull=function(){return null},l.prototype._decodeBool=function(A){const O=A.readUInt8();return A.isError(O)?O:0!==O},l.prototype._decodeInt=function(A,O){const E=A.raw();let P=new t(E);return O&&(P=O[P.toString(10)]||P),P},l.prototype._use=function(A,O){return"function"==typeof A&&(A=A(O)),A._getDecoder("der").tree}},196:(Ve,Q,m)=>{"use strict";const e=Q;e.der=m(7127),e.pem=m(9617)},9617:(Ve,Q,m)=>{"use strict";const e=m(3894),t=m(2038).Buffer,y=m(7127);function C(o){y.call(this,o),this.enc="pem"}e(C,y),Ve.exports=C,C.prototype.decode=function(M,l){const N=M.toString().split(/[\r\n]+/g),s=l.label.toUpperCase(),D=/^-----(BEGIN|END) ([^-]+)-----$/;let A=-1,O=-1;for(let w=0;w<N.length;w++){const Z=N[w].match(D);if(null!==Z&&Z[2]===s){if(-1!==A){if("END"!==Z[1])break;O=w;break}if("BEGIN"!==Z[1])break;A=w}}if(-1===A||-1===O)throw new Error("PEM section not found for: "+s);const E=N.slice(A+1,O).join("");E.replace(/[^a-z0-9+/=]+/gi,"");const P=t.from(E,"base64");return y.prototype.decode.call(this,P,l)}},6374:(Ve,Q,m)=>{"use strict";const e=m(3894),t=m(2038).Buffer,y=m(1430),C=m(5496);function o(s){this.enc="der",this.name=s.name,this.entity=s,this.tree=new M,this.tree._init(s.body)}function M(s){y.call(this,"der",s)}function l(s){return s<10?"0"+s:s}Ve.exports=o,o.prototype.encode=function(D,A){return this.tree._encode(D,A).join()},e(M,y),M.prototype._encodeComposite=function(D,A,O,E){const P=function N(s,D,A,O){let E;if("seqof"===s?s="seq":"setof"===s&&(s="set"),C.tagByName.hasOwnProperty(s))E=C.tagByName[s];else{if("number"!=typeof s||(0|s)!==s)return O.error("Unknown tag: "+s);E=s}return E>=31?O.error("Multi-octet tag encoding unsupported"):(D||(E|=32),E|=C.tagClassByName[A||"universal"]<<6,E)}(D,A,O,this.reporter);if(E.length<128){const j=t.alloc(2);return j[0]=P,j[1]=E.length,this._createEncoderBuffer([j,E])}let w=1;for(let j=E.length;j>=256;j>>=8)w++;const Z=t.alloc(2+w);Z[0]=P,Z[1]=128|w;for(let j=1+w,W=E.length;W>0;j--,W>>=8)Z[j]=255&W;return this._createEncoderBuffer([Z,E])},M.prototype._encodeStr=function(D,A){if("bitstr"===A)return this._createEncoderBuffer([0|D.unused,D.data]);if("bmpstr"===A){const O=t.alloc(2*D.length);for(let E=0;E<D.length;E++)O.writeUInt16BE(D.charCodeAt(E),2*E);return this._createEncoderBuffer(O)}return"numstr"===A?this._isNumstr(D)?this._createEncoderBuffer(D):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===A?this._isPrintstr(D)?this._createEncoderBuffer(D):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(A)||"objDesc"===A?this._createEncoderBuffer(D):this.reporter.error("Encoding of string type: "+A+" unsupported")},M.prototype._encodeObjid=function(D,A,O){if("string"==typeof D){if(!A)return this.reporter.error("string objid given, but no values map found");if(!A.hasOwnProperty(D))return this.reporter.error("objid not found in values map");D=A[D].split(/[\s.]+/g);for(let Z=0;Z<D.length;Z++)D[Z]|=0}else if(Array.isArray(D)){D=D.slice();for(let Z=0;Z<D.length;Z++)D[Z]|=0}if(!Array.isArray(D))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(D));if(!O){if(D[1]>=40)return this.reporter.error("Second objid identifier OOB");D.splice(0,2,40*D[0]+D[1])}let E=0;for(let Z=0;Z<D.length;Z++){let j=D[Z];for(E++;j>=128;j>>=7)E++}const P=t.alloc(E);let w=P.length-1;for(let Z=D.length-1;Z>=0;Z--){let j=D[Z];for(P[w--]=127&j;(j>>=7)>0;)P[w--]=128|127&j}return this._createEncoderBuffer(P)},M.prototype._encodeTime=function(D,A){let O;const E=new Date(D);return"gentime"===A?O=[l(E.getUTCFullYear()),l(E.getUTCMonth()+1),l(E.getUTCDate()),l(E.getUTCHours()),l(E.getUTCMinutes()),l(E.getUTCSeconds()),"Z"].join(""):"utctime"===A?O=[l(E.getUTCFullYear()%100),l(E.getUTCMonth()+1),l(E.getUTCDate()),l(E.getUTCHours()),l(E.getUTCMinutes()),l(E.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+A+" time is not supported yet"),this._encodeStr(O,"octstr")},M.prototype._encodeNull=function(){return this._createEncoderBuffer("")},M.prototype._encodeInt=function(D,A){if("string"==typeof D){if(!A)return this.reporter.error("String int or enum given, but no values map");if(!A.hasOwnProperty(D))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(D));D=A[D]}if("number"!=typeof D&&!t.isBuffer(D)){const P=D.toArray();!D.sign&&128&P[0]&&P.unshift(0),D=t.from(P)}if(t.isBuffer(D)){let P=D.length;0===D.length&&P++;const w=t.alloc(P);return D.copy(w),0===D.length&&(w[0]=0),this._createEncoderBuffer(w)}if(D<128)return this._createEncoderBuffer(D);if(D<256)return this._createEncoderBuffer([0,D]);let O=1;for(let P=D;P>=256;P>>=8)O++;const E=new Array(O);for(let P=E.length-1;P>=0;P--)E[P]=255&D,D>>=8;return 128&E[0]&&E.unshift(0),this._createEncoderBuffer(t.from(E))},M.prototype._encodeBool=function(D){return this._createEncoderBuffer(D?255:0)},M.prototype._use=function(D,A){return"function"==typeof D&&(D=D(A)),D._getEncoder("der").tree},M.prototype._skipDefault=function(D,A,O){const E=this._baseState;let P;if(null===E.default)return!1;const w=D.join();if(void 0===E.defaultBuffer&&(E.defaultBuffer=this._encodeValue(E.default,A,O).join()),w.length!==E.defaultBuffer.length)return!1;for(P=0;P<w.length;P++)if(w[P]!==E.defaultBuffer[P])return!1;return!0}},1131:(Ve,Q,m)=>{"use strict";const e=Q;e.der=m(6374),e.pem=m(3530)},3530:(Ve,Q,m)=>{"use strict";const e=m(3894),t=m(6374);function y(C){t.call(this,C),this.enc="pem"}e(y,t),Ve.exports=y,y.prototype.encode=function(o,M){const N=t.prototype.encode.call(this,o).toString("base64"),s=["-----BEGIN "+M.label+"-----"];for(let D=0;D<N.length;D+=64)s.push(N.slice(D,D+64));return s.push("-----END "+M.label+"-----"),s.join("\n")}},3854:function(Ve,Q,m){!function(e,t){"use strict";function y(b,i){if(!b)throw new Error(i||"Assertion failed")}function C(b,i){b.super_=i;var a=function(){};a.prototype=i.prototype,b.prototype=new a,b.prototype.constructor=b}function o(b,i,a){if(o.isBN(b))return b;this.negative=0,this.words=null,this.length=0,this.red=null,null!==b&&(("le"===i||"be"===i)&&(a=i,i=10),this._init(b||0,i||10,a||"be"))}var M;"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{M="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:m(950).Buffer}catch(b){}function l(b,i){var a=b.charCodeAt(i);return a>=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function N(b,i,a){var p=l(b,a);return a-1>=i&&(p|=l(b,a-1)<<4),p}function s(b,i,a,p){for(var u=0,_=Math.min(b.length,a),L=i;L<_;L++){var I=b.charCodeAt(L)-48;u*=p,u+=I>=49?I-49+10:I>=17?I-17+10:I}return u}o.isBN=function(i){return i instanceof o||null!==i&&"object"==typeof i&&i.constructor.wordSize===o.wordSize&&Array.isArray(i.words)},o.max=function(i,a){return i.cmp(a)>0?i:a},o.min=function(i,a){return i.cmp(a)<0?i:a},o.prototype._init=function(i,a,p){if("number"==typeof i)return this._initNumber(i,a,p);if("object"==typeof i)return this._initArray(i,a,p);"hex"===a&&(a=16),y(a===(0|a)&&a>=2&&a<=36);var u=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(u++,this.negative=1),u<i.length&&(16===a?this._parseHex(i,u,p):(this._parseBase(i,a,u),"le"===p&&this._initArray(this.toArray(),a,p)))},o.prototype._initNumber=function(i,a,p){i<0&&(this.negative=1,i=-i),i<67108864?(this.words=[67108863&i],this.length=1):i<4503599627370496?(this.words=[67108863&i,i/67108864&67108863],this.length=2):(y(i<9007199254740992),this.words=[67108863&i,i/67108864&67108863,1],this.length=3),"le"===p&&this._initArray(this.toArray(),a,p)},o.prototype._initArray=function(i,a,p){if(y("number"==typeof i.length),i.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(i.length/3),this.words=new Array(this.length);for(var u=0;u<this.length;u++)this.words[u]=0;var _,L,I=0;if("be"===p)for(u=i.length-1,_=0;u>=0;u-=3)this.words[_]|=(L=i[u]|i[u-1]<<8|i[u-2]<<16)<<I&67108863,this.words[_+1]=L>>>26-I&67108863,(I+=24)>=26&&(I-=26,_++);else if("le"===p)for(u=0,_=0;u<i.length;u+=3)this.words[_]|=(L=i[u]|i[u+1]<<8|i[u+2]<<16)<<I&67108863,this.words[_+1]=L>>>26-I&67108863,(I+=24)>=26&&(I-=26,_++);return this.strip()},o.prototype._parseHex=function(i,a,p){this.length=Math.ceil((i.length-a)/6),this.words=new Array(this.length);for(var u=0;u<this.length;u++)this.words[u]=0;var I,_=0,L=0;if("be"===p)for(u=i.length-1;u>=a;u-=2)I=N(i,a,u)<<_,this.words[L]|=67108863&I,_>=18?(_-=18,this.words[L+=1]|=I>>>26):_+=8;else for(u=(i.length-a)%2==0?a+1:a;u<i.length;u+=2)I=N(i,a,u)<<_,this.words[L]|=67108863&I,_>=18?(_-=18,this.words[L+=1]|=I>>>26):_+=8;this.strip()},o.prototype._parseBase=function(i,a,p){this.words=[0],this.length=1;for(var u=0,_=1;_<=67108863;_*=a)u++;u--,_=_/a|0;for(var L=i.length-p,I=L%u,x=Math.min(L,L-I)+p,r=0,v=p;v<x;v+=u)r=s(i,v,v+u,a),this.imuln(_),this.words[0]+r<67108864?this.words[0]+=r:this._iaddn(r);if(0!==I){var G=1;for(r=s(i,v,i.length,a),v=0;v<I;v++)G*=a;this.imuln(G),this.words[0]+r<67108864?this.words[0]+=r:this._iaddn(r)}this.strip()},o.prototype.copy=function(i){i.words=new Array(this.length);for(var a=0;a<this.length;a++)i.words[a]=this.words[a];i.length=this.length,i.negative=this.negative,i.red=this.red},o.prototype.clone=function(){var i=new o(null);return this.copy(i),i},o.prototype._expand=function(i){for(;this.length<i;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var D=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],A=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],O=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function P(b,i,a){a.negative=i.negative^b.negative;var p=b.length+i.length|0;a.length=p,p=p-1|0;var u=0|b.words[0],_=0|i.words[0],L=u*_,x=L/67108864|0;a.words[0]=67108863&L;for(var r=1;r<p;r++){for(var v=x>>>26,G=67108863&x,F=Math.min(r,i.length-1),U=Math.max(0,r-b.length+1);U<=F;U++)v+=(L=(u=0|b.words[r-U|0])*(_=0|i.words[U])+G)/67108864|0,G=67108863&L;a.words[r]=0|G,x=0|v}return 0!==x?a.words[r]=0|x:a.length--,a.strip()}o.prototype.toString=function(i,a){var p;if(a=0|a||1,16===(i=i||10)||"hex"===i){p="";for(var u=0,_=0,L=0;L<this.length;L++){var I=this.words[L],x=(16777215&(I<<u|_)).toString(16);p=0!=(_=I>>>24-u&16777215)||L!==this.length-1?D[6-x.length]+x+p:x+p,(u+=2)>=26&&(u-=26,L--)}for(0!==_&&(p=_.toString(16)+p);p.length%a!=0;)p="0"+p;return 0!==this.negative&&(p="-"+p),p}if(i===(0|i)&&i>=2&&i<=36){var r=A[i],v=O[i];p="";var G=this.clone();for(G.negative=0;!G.isZero();){var F=G.modn(v).toString(i);p=(G=G.idivn(v)).isZero()?F+p:D[r-F.length]+F+p}for(this.isZero()&&(p="0"+p);p.length%a!=0;)p="0"+p;return 0!==this.negative&&(p="-"+p),p}y(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var i=this.words[0];return 2===this.length?i+=67108864*this.words[1]:3===this.length&&1===this.words[2]?i+=4503599627370496+67108864*this.words[1]:this.length>2&&y(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(i,a){return y(void 0!==M),this.toArrayLike(M,i,a)},o.prototype.toArray=function(i,a){return this.toArrayLike(Array,i,a)},o.prototype.toArrayLike=function(i,a,p){var u=this.byteLength(),_=p||Math.max(1,u);y(u<=_,"byte array longer than desired length"),y(_>0,"Requested array length <= 0"),this.strip();var x,r,L="le"===a,I=new i(_),v=this.clone();if(L){for(r=0;!v.isZero();r++)x=v.andln(255),v.iushrn(8),I[r]=x;for(;r<_;r++)I[r]=0}else{for(r=0;r<_-u;r++)I[r]=0;for(r=0;!v.isZero();r++)x=v.andln(255),v.iushrn(8),I[_-r-1]=x}return I},o.prototype._countBits=Math.clz32?function(i){return 32-Math.clz32(i)}:function(i){var a=i,p=0;return a>=4096&&(p+=13,a>>>=13),a>=64&&(p+=7,a>>>=7),a>=8&&(p+=4,a>>>=4),a>=2&&(p+=2,a>>>=2),p+a},o.prototype._zeroBits=function(i){if(0===i)return 26;var a=i,p=0;return 0==(8191&a)&&(p+=13,a>>>=13),0==(127&a)&&(p+=7,a>>>=7),0==(15&a)&&(p+=4,a>>>=4),0==(3&a)&&(p+=2,a>>>=2),0==(1&a)&&p++,p},o.prototype.bitLength=function(){var a=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+a},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,a=0;a<this.length;a++){var p=this._zeroBits(this.words[a]);if(i+=p,26!==p)break}return i},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(i){return 0!==this.negative?this.abs().inotn(i).iaddn(1):this.clone()},o.prototype.fromTwos=function(i){return this.testn(i-1)?this.notn(i).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(i){for(;this.length<i.length;)this.words[this.length++]=0;for(var a=0;a<i.length;a++)this.words[a]=this.words[a]|i.words[a];return this.strip()},o.prototype.ior=function(i){return y(0==(this.negative|i.negative)),this.iuor(i)},o.prototype.or=function(i){return this.length>i.length?this.clone().ior(i):i.clone().ior(this)},o.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},o.prototype.iuand=function(i){var a;a=this.length>i.length?i:this;for(var p=0;p<a.length;p++)this.words[p]=this.words[p]&i.words[p];return this.length=a.length,this.strip()},o.prototype.iand=function(i){return y(0==(this.negative|i.negative)),this.iuand(i)},o.prototype.and=function(i){return this.length>i.length?this.clone().iand(i):i.clone().iand(this)},o.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},o.prototype.iuxor=function(i){var a,p;this.length>i.length?(a=this,p=i):(a=i,p=this);for(var u=0;u<p.length;u++)this.words[u]=a.words[u]^p.words[u];if(this!==a)for(;u<a.length;u++)this.words[u]=a.words[u];return this.length=a.length,this.strip()},o.prototype.ixor=function(i){return y(0==(this.negative|i.negative)),this.iuxor(i)},o.prototype.xor=function(i){return this.length>i.length?this.clone().ixor(i):i.clone().ixor(this)},o.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},o.prototype.inotn=function(i){y("number"==typeof i&&i>=0);var a=0|Math.ceil(i/26),p=i%26;this._expand(a),p>0&&a--;for(var u=0;u<a;u++)this.words[u]=67108863&~this.words[u];return p>0&&(this.words[u]=~this.words[u]&67108863>>26-p),this.strip()},o.prototype.notn=function(i){return this.clone().inotn(i)},o.prototype.setn=function(i,a){y("number"==typeof i&&i>=0);var p=i/26|0,u=i%26;return this._expand(p+1),this.words[p]=a?this.words[p]|1<<u:this.words[p]&~(1<<u),this.strip()},o.prototype.iadd=function(i){var a,p,u;if(0!==this.negative&&0===i.negative)return this.negative=0,a=this.isub(i),this.negative^=1,this._normSign();if(0===this.negative&&0!==i.negative)return i.negative=0,a=this.isub(i),i.negative=1,a._normSign();this.length>i.length?(p=this,u=i):(p=i,u=this);for(var _=0,L=0;L<u.length;L++)this.words[L]=67108863&(a=(0|p.words[L])+(0|u.words[L])+_),_=a>>>26;for(;0!==_&&L<p.length;L++)this.words[L]=67108863&(a=(0|p.words[L])+_),_=a>>>26;if(this.length=p.length,0!==_)this.words[this.length]=_,this.length++;else if(p!==this)for(;L<p.length;L++)this.words[L]=p.words[L];return this},o.prototype.add=function(i){var a;return 0!==i.negative&&0===this.negative?(i.negative=0,a=this.sub(i),i.negative^=1,a):0===i.negative&&0!==this.negative?(this.negative=0,a=i.sub(this),this.negative=1,a):this.length>i.length?this.clone().iadd(i):i.clone().iadd(this)},o.prototype.isub=function(i){if(0!==i.negative){i.negative=0;var a=this.iadd(i);return i.negative=1,a._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(i),this.negative=1,this._normSign();var u,_,p=this.cmp(i);if(0===p)return this.negative=0,this.length=1,this.words[0]=0,this;p>0?(u=this,_=i):(u=i,_=this);for(var L=0,I=0;I<_.length;I++)L=(a=(0|u.words[I])-(0|_.words[I])+L)>>26,this.words[I]=67108863&a;for(;0!==L&&I<u.length;I++)L=(a=(0|u.words[I])+L)>>26,this.words[I]=67108863&a;if(0===L&&I<u.length&&u!==this)for(;I<u.length;I++)this.words[I]=u.words[I];return this.length=Math.max(this.length,I),u!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(i){return this.clone().isub(i)};var w=function(i,a,p){var x,r,v,u=i.words,_=a.words,L=p.words,I=0,G=0|u[0],F=8191&G,U=G>>>13,ye=0|u[1],Ce=8191&ye,Be=ye>>>13,ze=0|u[2],Ie=8191&ze,K=ze>>>13,Me=0|u[3],we=8191&Me,z=Me>>>13,Ge=0|u[4],vt=8191&Ge,Re=Ge>>>13,Ne=0|u[5],he=8191&Ne,Le=Ne>>>13,ke=0|u[6],q=8191&ke,$=ke>>>13,le=0|u[7],xe=8191&le,Ue=le>>>13,lt=0|u[8],nt=8191&lt,ft=lt>>>13,it=0|u[9],rt=8191&it,Mt=it>>>13,Zt=0|_[0],Ft=8191&Zt,Vt=Zt>>>13,Ii=0|_[1],jt=8191&Ii,ei=Ii>>>13,Pi=0|_[2],ai=8191&Pi,hi=Pi>>>13,Ze=0|_[3],Ee=8191&Ze,Y=Ze>>>13,me=0|_[4],De=8191&me,et=me>>>13,$t=0|_[5],Nt=8191&$t,Jt=$t>>>13,ct=0|_[6],Pe=8191&ct,Fe=ct>>>13,at=0|_[7],st=8191&at,At=at>>>13,li=0|_[8],Bt=8191&li,Rt=li>>>13,Li=0|_[9],si=8191&Li,ci=Li>>>13;p.negative=i.negative^a.negative,p.length=19;var sn=(I+(x=Math.imul(F,Ft))|0)+((8191&(r=(r=Math.imul(F,Vt))+Math.imul(U,Ft)|0))<<13)|0;I=((v=Math.imul(U,Vt))+(r>>>13)|0)+(sn>>>26)|0,sn&=67108863,x=Math.imul(Ce,Ft),r=(r=Math.imul(Ce,Vt))+Math.imul(Be,Ft)|0,v=Math.imul(Be,Vt);var Ui=(I+(x=x+Math.imul(F,jt)|0)|0)+((8191&(r=(r=r+Math.imul(F,ei)|0)+Math.imul(U,jt)|0))<<13)|0;I=((v=v+Math.imul(U,ei)|0)+(r>>>13)|0)+(Ui>>>26)|0,Ui&=67108863,x=Math.imul(Ie,Ft),r=(r=Math.imul(Ie,Vt))+Math.imul(K,Ft)|0,v=Math.imul(K,Vt),x=x+Math.imul(Ce,jt)|0,r=(r=r+Math.imul(Ce,ei)|0)+Math.imul(Be,jt)|0,v=v+Math.imul(Be,ei)|0;var Di=(I+(x=x+Math.imul(F,ai)|0)|0)+((8191&(r=(r=r+Math.imul(F,hi)|0)+Math.imul(U,ai)|0))<<13)|0;I=((v=v+Math.imul(U,hi)|0)+(r>>>13)|0)+(Di>>>26)|0,Di&=67108863,x=Math.imul(we,Ft),r=(r=Math.imul(we,Vt))+Math.imul(z,Ft)|0,v=Math.imul(z,Vt),x=x+Math.imul(Ie,jt)|0,r=(r=r+Math.imul(Ie,ei)|0)+Math.imul(K,jt)|0,v=v+Math.imul(K,ei)|0,x=x+Math.imul(Ce,ai)|0,r=(r=r+Math.imul(Ce,hi)|0)+Math.imul(Be,ai)|0,v=v+Math.imul(Be,hi)|0;var Xi=(I+(x=x+Math.imul(F,Ee)|0)|0)+((8191&(r=(r=r+Math.imul(F,Y)|0)+Math.imul(U,Ee)|0))<<13)|0;I=((v=v+Math.imul(U,Y)|0)+(r>>>13)|0)+(Xi>>>26)|0,Xi&=67108863,x=Math.imul(vt,Ft),r=(r=Math.imul(vt,Vt))+Math.imul(Re,Ft)|0,v=Math.imul(Re,Vt),x=x+Math.imul(we,jt)|0,r=(r=r+Math.imul(we,ei)|0)+Math.imul(z,jt)|0,v=v+Math.imul(z,ei)|0,x=x+Math.imul(Ie,ai)|0,r=(r=r+Math.imul(Ie,hi)|0)+Math.imul(K,ai)|0,v=v+Math.imul(K,hi)|0,x=x+Math.imul(Ce,Ee)|0,r=(r=r+Math.imul(Ce,Y)|0)+Math.imul(Be,Ee)|0,v=v+Math.imul(Be,Y)|0;var Ke=(I+(x=x+Math.imul(F,De)|0)|0)+((8191&(r=(r=r+Math.imul(F,et)|0)+Math.imul(U,De)|0))<<13)|0;I=((v=v+Math.imul(U,et)|0)+(r>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,x=Math.imul(he,Ft),r=(r=Math.imul(he,Vt))+Math.imul(Le,Ft)|0,v=Math.imul(Le,Vt),x=x+Math.imul(vt,jt)|0,r=(r=r+Math.imul(vt,ei)|0)+Math.imul(Re,jt)|0,v=v+Math.imul(Re,ei)|0,x=x+Math.imul(we,ai)|0,r=(r=r+Math.imul(we,hi)|0)+Math.imul(z,ai)|0,v=v+Math.imul(z,hi)|0,x=x+Math.imul(Ie,Ee)|0,r=(r=r+Math.imul(Ie,Y)|0)+Math.imul(K,Ee)|0,v=v+Math.imul(K,Y)|0,x=x+Math.imul(Ce,De)|0,r=(r=r+Math.imul(Ce,et)|0)+Math.imul(Be,De)|0,v=v+Math.imul(Be,et)|0;var _t=(I+(x=x+Math.imul(F,Nt)|0)|0)+((8191&(r=(r=r+Math.imul(F,Jt)|0)+Math.imul(U,Nt)|0))<<13)|0;I=((v=v+Math.imul(U,Jt)|0)+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,x=Math.imul(q,Ft),r=(r=Math.imul(q,Vt))+Math.imul($,Ft)|0,v=Math.imul($,Vt),x=x+Math.imul(he,jt)|0,r=(r=r+Math.imul(he,ei)|0)+Math.imul(Le,jt)|0,v=v+Math.imul(Le,ei)|0,x=x+Math.imul(vt,ai)|0,r=(r=r+Math.imul(vt,hi)|0)+Math.imul(Re,ai)|0,v=v+Math.imul(Re,hi)|0,x=x+Math.imul(we,Ee)|0,r=(r=r+Math.imul(we,Y)|0)+Math.imul(z,Ee)|0,v=v+Math.imul(z,Y)|0,x=x+Math.imul(Ie,De)|0,r=(r=r+Math.imul(Ie,et)|0)+Math.imul(K,De)|0,v=v+Math.imul(K,et)|0,x=x+Math.imul(Ce,Nt)|0,r=(r=r+Math.imul(Ce,Jt)|0)+Math.imul(Be,Nt)|0,v=v+Math.imul(Be,Jt)|0;var ve=(I+(x=x+Math.imul(F,Pe)|0)|0)+((8191&(r=(r=r+Math.imul(F,Fe)|0)+Math.imul(U,Pe)|0))<<13)|0;I=((v=v+Math.imul(U,Fe)|0)+(r>>>13)|0)+(ve>>>26)|0,ve&=67108863,x=Math.imul(xe,Ft),r=(r=Math.imul(xe,Vt))+Math.imul(Ue,Ft)|0,v=Math.imul(Ue,Vt),x=x+Math.imul(q,jt)|0,r=(r=r+Math.imul(q,ei)|0)+Math.imul($,jt)|0,v=v+Math.imul($,ei)|0,x=x+Math.imul(he,ai)|0,r=(r=r+Math.imul(he,hi)|0)+Math.imul(Le,ai)|0,v=v+Math.imul(Le,hi)|0,x=x+Math.imul(vt,Ee)|0,r=(r=r+Math.imul(vt,Y)|0)+Math.imul(Re,Ee)|0,v=v+Math.imul(Re,Y)|0,x=x+Math.imul(we,De)|0,r=(r=r+Math.imul(we,et)|0)+Math.imul(z,De)|0,v=v+Math.imul(z,et)|0,x=x+Math.imul(Ie,Nt)|0,r=(r=r+Math.imul(Ie,Jt)|0)+Math.imul(K,Nt)|0,v=v+Math.imul(K,Jt)|0,x=x+Math.imul(Ce,Pe)|0,r=(r=r+Math.imul(Ce,Fe)|0)+Math.imul(Be,Pe)|0,v=v+Math.imul(Be,Fe)|0;var qe=(I+(x=x+Math.imul(F,st)|0)|0)+((8191&(r=(r=r+Math.imul(F,At)|0)+Math.imul(U,st)|0))<<13)|0;I=((v=v+Math.imul(U,At)|0)+(r>>>13)|0)+(qe>>>26)|0,qe&=67108863,x=Math.imul(nt,Ft),r=(r=Math.imul(nt,Vt))+Math.imul(ft,Ft)|0,v=Math.imul(ft,Vt),x=x+Math.imul(xe,jt)|0,r=(r=r+Math.imul(xe,ei)|0)+Math.imul(Ue,jt)|0,v=v+Math.imul(Ue,ei)|0,x=x+Math.imul(q,ai)|0,r=(r=r+Math.imul(q,hi)|0)+Math.imul($,ai)|0,v=v+Math.imul($,hi)|0,x=x+Math.imul(he,Ee)|0,r=(r=r+Math.imul(he,Y)|0)+Math.imul(Le,Ee)|0,v=v+Math.imul(Le,Y)|0,x=x+Math.imul(vt,De)|0,r=(r=r+Math.imul(vt,et)|0)+Math.imul(Re,De)|0,v=v+Math.imul(Re,et)|0,x=x+Math.imul(we,Nt)|0,r=(r=r+Math.imul(we,Jt)|0)+Math.imul(z,Nt)|0,v=v+Math.imul(z,Jt)|0,x=x+Math.imul(Ie,Pe)|0,r=(r=r+Math.imul(Ie,Fe)|0)+Math.imul(K,Pe)|0,v=v+Math.imul(K,Fe)|0,x=x+Math.imul(Ce,st)|0,r=(r=r+Math.imul(Ce,At)|0)+Math.imul(Be,st)|0,v=v+Math.imul(Be,At)|0;var yt=(I+(x=x+Math.imul(F,Bt)|0)|0)+((8191&(r=(r=r+Math.imul(F,Rt)|0)+Math.imul(U,Bt)|0))<<13)|0;I=((v=v+Math.imul(U,Rt)|0)+(r>>>13)|0)+(yt>>>26)|0,yt&=67108863,x=Math.imul(rt,Ft),r=(r=Math.imul(rt,Vt))+Math.imul(Mt,Ft)|0,v=Math.imul(Mt,Vt),x=x+Math.imul(nt,jt)|0,r=(r=r+Math.imul(nt,ei)|0)+Math.imul(ft,jt)|0,v=v+Math.imul(ft,ei)|0,x=x+Math.imul(xe,ai)|0,r=(r=r+Math.imul(xe,hi)|0)+Math.imul(Ue,ai)|0,v=v+Math.imul(Ue,hi)|0,x=x+Math.imul(q,Ee)|0,r=(r=r+Math.imul(q,Y)|0)+Math.imul($,Ee)|0,v=v+Math.imul($,Y)|0,x=x+Math.imul(he,De)|0,r=(r=r+Math.imul(he,et)|0)+Math.imul(Le,De)|0,v=v+Math.imul(Le,et)|0,x=x+Math.imul(vt,Nt)|0,r=(r=r+Math.imul(vt,Jt)|0)+Math.imul(Re,Nt)|0,v=v+Math.imul(Re,Jt)|0,x=x+Math.imul(we,Pe)|0,r=(r=r+Math.imul(we,Fe)|0)+Math.imul(z,Pe)|0,v=v+Math.imul(z,Fe)|0,x=x+Math.imul(Ie,st)|0,r=(r=r+Math.imul(Ie,At)|0)+Math.imul(K,st)|0,v=v+Math.imul(K,At)|0,x=x+Math.imul(Ce,Bt)|0,r=(r=r+Math.imul(Ce,Rt)|0)+Math.imul(Be,Bt)|0,v=v+Math.imul(Be,Rt)|0;var fe=(I+(x=x+Math.imul(F,si)|0)|0)+((8191&(r=(r=r+Math.imul(F,ci)|0)+Math.imul(U,si)|0))<<13)|0;I=((v=v+Math.imul(U,ci)|0)+(r>>>13)|0)+(fe>>>26)|0,fe&=67108863,x=Math.imul(rt,jt),r=(r=Math.imul(rt,ei))+Math.imul(Mt,jt)|0,v=Math.imul(Mt,ei),x=x+Math.imul(nt,ai)|0,r=(r=r+Math.imul(nt,hi)|0)+Math.imul(ft,ai)|0,v=v+Math.imul(ft,hi)|0,x=x+Math.imul(xe,Ee)|0,r=(r=r+Math.imul(xe,Y)|0)+Math.imul(Ue,Ee)|0,v=v+Math.imul(Ue,Y)|0,x=x+Math.imul(q,De)|0,r=(r=r+Math.imul(q,et)|0)+Math.imul($,De)|0,v=v+Math.imul($,et)|0,x=x+Math.imul(he,Nt)|0,r=(r=r+Math.imul(he,Jt)|0)+Math.imul(Le,Nt)|0,v=v+Math.imul(Le,Jt)|0,x=x+Math.imul(vt,Pe)|0,r=(r=r+Math.imul(vt,Fe)|0)+Math.imul(Re,Pe)|0,v=v+Math.imul(Re,Fe)|0,x=x+Math.imul(we,st)|0,r=(r=r+Math.imul(we,At)|0)+Math.imul(z,st)|0,v=v+Math.imul(z,At)|0,x=x+Math.imul(Ie,Bt)|0,r=(r=r+Math.imul(Ie,Rt)|0)+Math.imul(K,Bt)|0,v=v+Math.imul(K,Rt)|0;var Je=(I+(x=x+Math.imul(Ce,si)|0)|0)+((8191&(r=(r=r+Math.imul(Ce,ci)|0)+Math.imul(Be,si)|0))<<13)|0;I=((v=v+Math.imul(Be,ci)|0)+(r>>>13)|0)+(Je>>>26)|0,Je&=67108863,x=Math.imul(rt,ai),r=(r=Math.imul(rt,hi))+Math.imul(Mt,ai)|0,v=Math.imul(Mt,hi),x=x+Math.imul(nt,Ee)|0,r=(r=r+Math.imul(nt,Y)|0)+Math.imul(ft,Ee)|0,v=v+Math.imul(ft,Y)|0,x=x+Math.imul(xe,De)|0,r=(r=r+Math.imul(xe,et)|0)+Math.imul(Ue,De)|0,v=v+Math.imul(Ue,et)|0,x=x+Math.imul(q,Nt)|0,r=(r=r+Math.imul(q,Jt)|0)+Math.imul($,Nt)|0,v=v+Math.imul($,Jt)|0,x=x+Math.imul(he,Pe)|0,r=(r=r+Math.imul(he,Fe)|0)+Math.imul(Le,Pe)|0,v=v+Math.imul(Le,Fe)|0,x=x+Math.imul(vt,st)|0,r=(r=r+Math.imul(vt,At)|0)+Math.imul(Re,st)|0,v=v+Math.imul(Re,At)|0,x=x+Math.imul(we,Bt)|0,r=(r=r+Math.imul(we,Rt)|0)+Math.imul(z,Bt)|0,v=v+Math.imul(z,Rt)|0;var St=(I+(x=x+Math.imul(Ie,si)|0)|0)+((8191&(r=(r=r+Math.imul(Ie,ci)|0)+Math.imul(K,si)|0))<<13)|0;I=((v=v+Math.imul(K,ci)|0)+(r>>>13)|0)+(St>>>26)|0,St&=67108863,x=Math.imul(rt,Ee),r=(r=Math.imul(rt,Y))+Math.imul(Mt,Ee)|0,v=Math.imul(Mt,Y),x=x+Math.imul(nt,De)|0,r=(r=r+Math.imul(nt,et)|0)+Math.imul(ft,De)|0,v=v+Math.imul(ft,et)|0,x=x+Math.imul(xe,Nt)|0,r=(r=r+Math.imul(xe,Jt)|0)+Math.imul(Ue,Nt)|0,v=v+Math.imul(Ue,Jt)|0,x=x+Math.imul(q,Pe)|0,r=(r=r+Math.imul(q,Fe)|0)+Math.imul($,Pe)|0,v=v+Math.imul($,Fe)|0,x=x+Math.imul(he,st)|0,r=(r=r+Math.imul(he,At)|0)+Math.imul(Le,st)|0,v=v+Math.imul(Le,At)|0,x=x+Math.imul(vt,Bt)|0,r=(r=r+Math.imul(vt,Rt)|0)+Math.imul(Re,Bt)|0,v=v+Math.imul(Re,Rt)|0;var Pt=(I+(x=x+Math.imul(we,si)|0)|0)+((8191&(r=(r=r+Math.imul(we,ci)|0)+Math.imul(z,si)|0))<<13)|0;I=((v=v+Math.imul(z,ci)|0)+(r>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,x=Math.imul(rt,De),r=(r=Math.imul(rt,et))+Math.imul(Mt,De)|0,v=Math.imul(Mt,et),x=x+Math.imul(nt,Nt)|0,r=(r=r+Math.imul(nt,Jt)|0)+Math.imul(ft,Nt)|0,v=v+Math.imul(ft,Jt)|0,x=x+Math.imul(xe,Pe)|0,r=(r=r+Math.imul(xe,Fe)|0)+Math.imul(Ue,Pe)|0,v=v+Math.imul(Ue,Fe)|0,x=x+Math.imul(q,st)|0,r=(r=r+Math.imul(q,At)|0)+Math.imul($,st)|0,v=v+Math.imul($,At)|0,x=x+Math.imul(he,Bt)|0,r=(r=r+Math.imul(he,Rt)|0)+Math.imul(Le,Bt)|0,v=v+Math.imul(Le,Rt)|0;var yi=(I+(x=x+Math.imul(vt,si)|0)|0)+((8191&(r=(r=r+Math.imul(vt,ci)|0)+Math.imul(Re,si)|0))<<13)|0;I=((v=v+Math.imul(Re,ci)|0)+(r>>>13)|0)+(yi>>>26)|0,yi&=67108863,x=Math.imul(rt,Nt),r=(r=Math.imul(rt,Jt))+Math.imul(Mt,Nt)|0,v=Math.imul(Mt,Jt),x=x+Math.imul(nt,Pe)|0,r=(r=r+Math.imul(nt,Fe)|0)+Math.imul(ft,Pe)|0,v=v+Math.imul(ft,Fe)|0,x=x+Math.imul(xe,st)|0,r=(r=r+Math.imul(xe,At)|0)+Math.imul(Ue,st)|0,v=v+Math.imul(Ue,At)|0,x=x+Math.imul(q,Bt)|0,r=(r=r+Math.imul(q,Rt)|0)+Math.imul($,Bt)|0,v=v+Math.imul($,Rt)|0;var Ni=(I+(x=x+Math.imul(he,si)|0)|0)+((8191&(r=(r=r+Math.imul(he,ci)|0)+Math.imul(Le,si)|0))<<13)|0;I=((v=v+Math.imul(Le,ci)|0)+(r>>>13)|0)+(Ni>>>26)|0,Ni&=67108863,x=Math.imul(rt,Pe),r=(r=Math.imul(rt,Fe))+Math.imul(Mt,Pe)|0,v=Math.imul(Mt,Fe),x=x+Math.imul(nt,st)|0,r=(r=r+Math.imul(nt,At)|0)+Math.imul(ft,st)|0,v=v+Math.imul(ft,At)|0,x=x+Math.imul(xe,Bt)|0,r=(r=r+Math.imul(xe,Rt)|0)+Math.imul(Ue,Bt)|0,v=v+Math.imul(Ue,Rt)|0;var Si=(I+(x=x+Math.imul(q,si)|0)|0)+((8191&(r=(r=r+Math.imul(q,ci)|0)+Math.imul($,si)|0))<<13)|0;I=((v=v+Math.imul($,ci)|0)+(r>>>13)|0)+(Si>>>26)|0,Si&=67108863,x=Math.imul(rt,st),r=(r=Math.imul(rt,At))+Math.imul(Mt,st)|0,v=Math.imul(Mt,At),x=x+Math.imul(nt,Bt)|0,r=(r=r+Math.imul(nt,Rt)|0)+Math.imul(ft,Bt)|0,v=v+Math.imul(ft,Rt)|0;var qi=(I+(x=x+Math.imul(xe,si)|0)|0)+((8191&(r=(r=r+Math.imul(xe,ci)|0)+Math.imul(Ue,si)|0))<<13)|0;I=((v=v+Math.imul(Ue,ci)|0)+(r>>>13)|0)+(qi>>>26)|0,qi&=67108863,x=Math.imul(rt,Bt),r=(r=Math.imul(rt,Rt))+Math.imul(Mt,Bt)|0,v=Math.imul(Mt,Rt);var ot=(I+(x=x+Math.imul(nt,si)|0)|0)+((8191&(r=(r=r+Math.imul(nt,ci)|0)+Math.imul(ft,si)|0))<<13)|0;I=((v=v+Math.imul(ft,ci)|0)+(r>>>13)|0)+(ot>>>26)|0,ot&=67108863;var Kt=(I+(x=Math.imul(rt,si))|0)+((8191&(r=(r=Math.imul(rt,ci))+Math.imul(Mt,si)|0))<<13)|0;return I=((v=Math.imul(Mt,ci))+(r>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,L[0]=sn,L[1]=Ui,L[2]=Di,L[3]=Xi,L[4]=Ke,L[5]=_t,L[6]=ve,L[7]=qe,L[8]=yt,L[9]=fe,L[10]=Je,L[11]=St,L[12]=Pt,L[13]=yi,L[14]=Ni,L[15]=Si,L[16]=qi,L[17]=ot,L[18]=Kt,0!==I&&(L[19]=I,p.length++),p};function j(b,i,a){return(new W).mulp(b,i,a)}function W(b,i){this.x=b,this.y=i}Math.imul||(w=P),o.prototype.mulTo=function(i,a){var p,u=this.length+i.length;return p=10===this.length&&10===i.length?w(this,i,a):u<63?P(this,i,a):u<1024?function Z(b,i,a){a.negative=i.negative^b.negative,a.length=b.length+i.length;for(var p=0,u=0,_=0;_<a.length-1;_++){var L=u;u=0;for(var I=67108863&p,x=Math.min(_,i.length-1),r=Math.max(0,_-b.length+1);r<=x;r++){var U=(0|b.words[_-r])*(0|i.words[r]),ye=67108863&U;I=67108863&(ye=ye+I|0),u+=(L=(L=L+(U/67108864|0)|0)+(ye>>>26)|0)>>>26,L&=67108863}a.words[_]=I,p=L,L=u}return 0!==p?a.words[_]=p:a.length--,a.strip()}(this,i,a):j(this,i,a),p},W.prototype.makeRBT=function(i){for(var a=new Array(i),p=o.prototype._countBits(i)-1,u=0;u<i;u++)a[u]=this.revBin(u,p,i);return a},W.prototype.revBin=function(i,a,p){if(0===i||i===p-1)return i;for(var u=0,_=0;_<a;_++)u|=(1&i)<<a-_-1,i>>=1;return u},W.prototype.permute=function(i,a,p,u,_,L){for(var I=0;I<L;I++)u[I]=a[i[I]],_[I]=p[i[I]]},W.prototype.transform=function(i,a,p,u,_,L){this.permute(L,i,a,p,u,_);for(var I=1;I<_;I<<=1)for(var x=I<<1,r=Math.cos(2*Math.PI/x),v=Math.sin(2*Math.PI/x),G=0;G<_;G+=x)for(var F=r,U=v,ye=0;ye<I;ye++){var Ce=p[G+ye],Be=u[G+ye],ze=p[G+ye+I],Ie=u[G+ye+I],K=F*ze-U*Ie;Ie=F*Ie+U*ze,p[G+ye]=Ce+(ze=K),u[G+ye]=Be+Ie,p[G+ye+I]=Ce-ze,u[G+ye+I]=Be-Ie,ye!==x&&(K=r*F-v*U,U=r*U+v*F,F=K)}},W.prototype.guessLen13b=function(i,a){var p=1|Math.max(a,i),u=1&p,_=0;for(p=p/2|0;p;p>>>=1)_++;return 1<<_+1+u},W.prototype.conjugate=function(i,a,p){if(!(p<=1))for(var u=0;u<p/2;u++){var _=i[u];i[u]=i[p-u-1],i[p-u-1]=_,_=a[u],a[u]=-a[p-u-1],a[p-u-1]=-_}},W.prototype.normalize13b=function(i,a){for(var p=0,u=0;u<a/2;u++){var _=8192*Math.round(i[2*u+1]/a)+Math.round(i[2*u]/a)+p;i[u]=67108863&_,p=_<67108864?0:_/67108864|0}return i},W.prototype.convert13b=function(i,a,p,u){for(var _=0,L=0;L<a;L++)p[2*L]=8191&(_+=0|i[L]),p[2*L+1]=8191&(_>>>=13),_>>>=13;for(L=2*a;L<u;++L)p[L]=0;y(0===_),y(0==(-8192&_))},W.prototype.stub=function(i){for(var a=new Array(i),p=0;p<i;p++)a[p]=0;return a},W.prototype.mulp=function(i,a,p){var u=2*this.guessLen13b(i.length,a.length),_=this.makeRBT(u),L=this.stub(u),I=new Array(u),x=new Array(u),r=new Array(u),v=new Array(u),G=new Array(u),F=new Array(u),U=p.words;U.length=u,this.convert13b(i.words,i.length,I,u),this.convert13b(a.words,a.length,v,u),this.transform(I,L,x,r,u,_),this.transform(v,L,G,F,u,_);for(var ye=0;ye<u;ye++){var Ce=x[ye]*G[ye]-r[ye]*F[ye];r[ye]=x[ye]*F[ye]+r[ye]*G[ye],x[ye]=Ce}return this.conjugate(x,r,u),this.transform(x,r,U,L,u,_),this.conjugate(U,L,u),this.normalize13b(U,u),p.negative=i.negative^a.negative,p.length=i.length+a.length,p.strip()},o.prototype.mul=function(i){var a=new o(null);return a.words=new Array(this.length+i.length),this.mulTo(i,a)},o.prototype.mulf=function(i){var a=new o(null);return a.words=new Array(this.length+i.length),j(this,i,a)},o.prototype.imul=function(i){return this.clone().mulTo(i,this)},o.prototype.imuln=function(i){y("number"==typeof i),y(i<67108864);for(var a=0,p=0;p<this.length;p++){var u=(0|this.words[p])*i,_=(67108863&u)+(67108863&a);a>>=26,a+=u/67108864|0,a+=_>>>26,this.words[p]=67108863&_}return 0!==a&&(this.words[p]=a,this.length++),this},o.prototype.muln=function(i){return this.clone().imuln(i)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(i){var a=function E(b){for(var i=new Array(b.bitLength()),a=0;a<i.length;a++){var u=a%26;i[a]=(b.words[a/26|0]&1<<u)>>>u}return i}(i);if(0===a.length)return new o(1);for(var p=this,u=0;u<a.length&&0===a[u];u++,p=p.sqr());if(++u<a.length)for(var _=p.sqr();u<a.length;u++,_=_.sqr())0!==a[u]&&(p=p.mul(_));return p},o.prototype.iushln=function(i){y("number"==typeof i&&i>=0);var _,a=i%26,p=(i-a)/26,u=67108863>>>26-a<<26-a;if(0!==a){var L=0;for(_=0;_<this.length;_++){var I=this.words[_]&u;this.words[_]=(0|this.words[_])-I<<a|L,L=I>>>26-a}L&&(this.words[_]=L,this.length++)}if(0!==p){for(_=this.length-1;_>=0;_--)this.words[_+p]=this.words[_];for(_=0;_<p;_++)this.words[_]=0;this.length+=p}return this.strip()},o.prototype.ishln=function(i){return y(0===this.negative),this.iushln(i)},o.prototype.iushrn=function(i,a,p){var u;y("number"==typeof i&&i>=0),u=a?(a-a%26)/26:0;var _=i%26,L=Math.min((i-_)/26,this.length),I=67108863^67108863>>>_<<_,x=p;if(u-=L,u=Math.max(0,u),x){for(var r=0;r<L;r++)x.words[r]=this.words[r];x.length=L}if(0!==L)if(this.length>L)for(this.length-=L,r=0;r<this.length;r++)this.words[r]=this.words[r+L];else this.words[0]=0,this.length=1;var v=0;for(r=this.length-1;r>=0&&(0!==v||r>=u);r--){var G=0|this.words[r];this.words[r]=v<<26-_|G>>>_,v=G&I}return x&&0!==v&&(x.words[x.length++]=v),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(i,a,p){return y(0===this.negative),this.iushrn(i,a,p)},o.prototype.shln=function(i){return this.clone().ishln(i)},o.prototype.ushln=function(i){return this.clone().iushln(i)},o.prototype.shrn=function(i){return this.clone().ishrn(i)},o.prototype.ushrn=function(i){return this.clone().iushrn(i)},o.prototype.testn=function(i){y("number"==typeof i&&i>=0);var a=i%26,p=(i-a)/26;return!(this.length<=p||!(this.words[p]&1<<a))},o.prototype.imaskn=function(i){y("number"==typeof i&&i>=0);var a=i%26,p=(i-a)/26;return y(0===this.negative,"imaskn works only with positive numbers"),this.length<=p?this:(0!==a&&p++,this.length=Math.min(p,this.length),0!==a&&(this.words[this.length-1]&=67108863^67108863>>>a<<a),this.strip())},o.prototype.maskn=function(i){return this.clone().imaskn(i)},o.prototype.iaddn=function(i){return y("number"==typeof i),y(i<67108864),i<0?this.isubn(-i):0!==this.negative?1===this.length&&(0|this.words[0])<i?(this.words[0]=i-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(i),this.negative=1,this):this._iaddn(i)},o.prototype._iaddn=function(i){this.words[0]+=i;for(var a=0;a<this.length&&this.words[a]>=67108864;a++)this.words[a]-=67108864,a===this.length-1?this.words[a+1]=1:this.words[a+1]++;return this.length=Math.max(this.length,a+1),this},o.prototype.isubn=function(i){if(y("number"==typeof i),y(i<67108864),i<0)return this.iaddn(-i);if(0!==this.negative)return this.negative=0,this.iaddn(i),this.negative=1,this;if(this.words[0]-=i,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var a=0;a<this.length&&this.words[a]<0;a++)this.words[a]+=67108864,this.words[a+1]-=1;return this.strip()},o.prototype.addn=function(i){return this.clone().iaddn(i)},o.prototype.subn=function(i){return this.clone().isubn(i)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(i,a,p){var _;this._expand(i.length+p);var L,I=0;for(_=0;_<i.length;_++){L=(0|this.words[_+p])+I;var x=(0|i.words[_])*a;I=((L-=67108863&x)>>26)-(x/67108864|0),this.words[_+p]=67108863&L}for(;_<this.length-p;_++)I=(L=(0|this.words[_+p])+I)>>26,this.words[_+p]=67108863&L;if(0===I)return this.strip();for(y(-1===I),I=0,_=0;_<this.length;_++)I=(L=-(0|this.words[_])+I)>>26,this.words[_]=67108863&L;return this.negative=1,this.strip()},o.prototype._wordDiv=function(i,a){var p,u=this.clone(),_=i,L=0|_.words[_.length-1];0!=(p=26-this._countBits(L))&&(_=_.ushln(p),u.iushln(p),L=0|_.words[_.length-1]);var r,x=u.length-_.length;if("mod"!==a){(r=new o(null)).length=x+1,r.words=new Array(r.length);for(var v=0;v<r.length;v++)r.words[v]=0}var G=u.clone()._ishlnsubmul(_,1,x);0===G.negative&&(u=G,r&&(r.words[x]=1));for(var F=x-1;F>=0;F--){var U=67108864*(0|u.words[_.length+F])+(0|u.words[_.length+F-1]);for(U=Math.min(U/L|0,67108863),u._ishlnsubmul(_,U,F);0!==u.negative;)U--,u.negative=0,u._ishlnsubmul(_,1,F),u.isZero()||(u.negative^=1);r&&(r.words[F]=U)}return r&&r.strip(),u.strip(),"div"!==a&&0!==p&&u.iushrn(p),{div:r||null,mod:u}},o.prototype.divmod=function(i,a,p){return y(!i.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===i.negative?(L=this.neg().divmod(i,a),"mod"!==a&&(u=L.div.neg()),"div"!==a&&(_=L.mod.neg(),p&&0!==_.negative&&_.iadd(i)),{div:u,mod:_}):0===this.negative&&0!==i.negative?(L=this.divmod(i.neg(),a),"mod"!==a&&(u=L.div.neg()),{div:u,mod:L.mod}):0!=(this.negative&i.negative)?(L=this.neg().divmod(i.neg(),a),"div"!==a&&(_=L.mod.neg(),p&&0!==_.negative&&_.isub(i)),{div:L.div,mod:_}):i.length>this.length||this.cmp(i)<0?{div:new o(0),mod:this}:1===i.length?"div"===a?{div:this.divn(i.words[0]),mod:null}:"mod"===a?{div:null,mod:new o(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new o(this.modn(i.words[0]))}:this._wordDiv(i,a);var u,_,L},o.prototype.div=function(i){return this.divmod(i,"div",!1).div},o.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},o.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},o.prototype.divRound=function(i){var a=this.divmod(i);if(a.mod.isZero())return a.div;var p=0!==a.div.negative?a.mod.isub(i):a.mod,u=i.ushrn(1),_=i.andln(1),L=p.cmp(u);return L<0||1===_&&0===L?a.div:0!==a.div.negative?a.div.isubn(1):a.div.iaddn(1)},o.prototype.modn=function(i){y(i<=67108863);for(var a=(1<<26)%i,p=0,u=this.length-1;u>=0;u--)p=(a*p+(0|this.words[u]))%i;return p},o.prototype.idivn=function(i){y(i<=67108863);for(var a=0,p=this.length-1;p>=0;p--){var u=(0|this.words[p])+67108864*a;this.words[p]=u/i|0,a=u%i}return this.strip()},o.prototype.divn=function(i){return this.clone().idivn(i)},o.prototype.egcd=function(i){y(0===i.negative),y(!i.isZero());var a=this,p=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var u=new o(1),_=new o(0),L=new o(0),I=new o(1),x=0;a.isEven()&&p.isEven();)a.iushrn(1),p.iushrn(1),++x;for(var r=p.clone(),v=a.clone();!a.isZero();){for(var G=0,F=1;0==(a.words[0]&F)&&G<26;++G,F<<=1);if(G>0)for(a.iushrn(G);G-- >0;)(u.isOdd()||_.isOdd())&&(u.iadd(r),_.isub(v)),u.iushrn(1),_.iushrn(1);for(var U=0,ye=1;0==(p.words[0]&ye)&&U<26;++U,ye<<=1);if(U>0)for(p.iushrn(U);U-- >0;)(L.isOdd()||I.isOdd())&&(L.iadd(r),I.isub(v)),L.iushrn(1),I.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(L),_.isub(I)):(p.isub(a),L.isub(u),I.isub(_))}return{a:L,b:I,gcd:p.iushln(x)}},o.prototype._invmp=function(i){y(0===i.negative),y(!i.isZero());var G,a=this,p=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var u=new o(1),_=new o(0),L=p.clone();a.cmpn(1)>0&&p.cmpn(1)>0;){for(var I=0,x=1;0==(a.words[0]&x)&&I<26;++I,x<<=1);if(I>0)for(a.iushrn(I);I-- >0;)u.isOdd()&&u.iadd(L),u.iushrn(1);for(var r=0,v=1;0==(p.words[0]&v)&&r<26;++r,v<<=1);if(r>0)for(p.iushrn(r);r-- >0;)_.isOdd()&&_.iadd(L),_.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(_)):(p.isub(a),_.isub(u))}return(G=0===a.cmpn(1)?u:_).cmpn(0)<0&&G.iadd(i),G},o.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var a=this.clone(),p=i.clone();a.negative=0,p.negative=0;for(var u=0;a.isEven()&&p.isEven();u++)a.iushrn(1),p.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;p.isEven();)p.iushrn(1);var _=a.cmp(p);if(_<0){var L=a;a=p,p=L}else if(0===_||0===p.cmpn(1))break;a.isub(p)}return p.iushln(u)},o.prototype.invm=function(i){return this.egcd(i).a.umod(i)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(i){return this.words[0]&i},o.prototype.bincn=function(i){y("number"==typeof i);var a=i%26,p=(i-a)/26,u=1<<a;if(this.length<=p)return this._expand(p+1),this.words[p]|=u,this;for(var _=u,L=p;0!==_&&L<this.length;L++){var I=0|this.words[L];_=(I+=_)>>>26,this.words[L]=I&=67108863}return 0!==_&&(this.words[L]=_,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(i){var p,a=i<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this.strip(),this.length>1)p=1;else{a&&(i=-i),y(i<=67108863,"Number is too big");var u=0|this.words[0];p=u===i?0:u<i?-1:1}return 0!==this.negative?0|-p:p},o.prototype.cmp=function(i){if(0!==this.negative&&0===i.negative)return-1;if(0===this.negative&&0!==i.negative)return 1;var a=this.ucmp(i);return 0!==this.negative?0|-a:a},o.prototype.ucmp=function(i){if(this.length>i.length)return 1;if(this.length<i.length)return-1;for(var a=0,p=this.length-1;p>=0;p--){var u=0|this.words[p],_=0|i.words[p];if(u!==_){u<_?a=-1:u>_&&(a=1);break}}return a},o.prototype.gtn=function(i){return 1===this.cmpn(i)},o.prototype.gt=function(i){return 1===this.cmp(i)},o.prototype.gten=function(i){return this.cmpn(i)>=0},o.prototype.gte=function(i){return this.cmp(i)>=0},o.prototype.ltn=function(i){return-1===this.cmpn(i)},o.prototype.lt=function(i){return-1===this.cmp(i)},o.prototype.lten=function(i){return this.cmpn(i)<=0},o.prototype.lte=function(i){return this.cmp(i)<=0},o.prototype.eqn=function(i){return 0===this.cmpn(i)},o.prototype.eq=function(i){return 0===this.cmp(i)},o.red=function(i){return new oe(i)},o.prototype.toRed=function(i){return y(!this.red,"Already a number in reduction context"),y(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},o.prototype.fromRed=function(){return y(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(i){return this.red=i,this},o.prototype.forceRed=function(i){return y(!this.red,"Already a number in reduction context"),this._forceRed(i)},o.prototype.redAdd=function(i){return y(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},o.prototype.redIAdd=function(i){return y(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},o.prototype.redSub=function(i){return y(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},o.prototype.redISub=function(i){return y(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},o.prototype.redShl=function(i){return y(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},o.prototype.redMul=function(i){return y(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},o.prototype.redIMul=function(i){return y(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},o.prototype.redSqr=function(){return y(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return y(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return y(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return y(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return y(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(i){return y(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var ie={k256:null,p224:null,p192:null,p25519:null};function ee(b,i){this.name=b,this.p=new o(i,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function _e(){ee.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function ce(){ee.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function re(){ee.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function de(){ee.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function oe(b){if("string"==typeof b){var i=o._prime(b);this.m=i.p,this.prime=i}else y(b.gtn(1),"modulus must be greater than 1"),this.m=b,this.prime=null}function ae(b){oe.call(this,b),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}ee.prototype._tmp=function(){var i=new o(null);return i.words=new Array(Math.ceil(this.n/13)),i},ee.prototype.ireduce=function(i){var p,a=i;do{this.split(a,this.tmp),p=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(p>this.n);var u=p<this.n?-1:a.ucmp(this.p);return 0===u?(a.words[0]=0,a.length=1):u>0?a.isub(this.p):void 0!==a.strip?a.strip():a._strip(),a},ee.prototype.split=function(i,a){i.iushrn(this.n,0,a)},ee.prototype.imulK=function(i){return i.imul(this.k)},C(_e,ee),_e.prototype.split=function(i,a){for(var p=4194303,u=Math.min(i.length,9),_=0;_<u;_++)a.words[_]=i.words[_];if(a.length=u,i.length<=9)return i.words[0]=0,void(i.length=1);var L=i.words[9];for(a.words[a.length++]=L&p,_=10;_<i.length;_++){var I=0|i.words[_];i.words[_-10]=(I&p)<<4|L>>>22,L=I}i.words[_-10]=L>>>=22,i.length-=0===L&&i.length>10?10:9},_e.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var a=0,p=0;p<i.length;p++){var u=0|i.words[p];i.words[p]=67108863&(a+=977*u),a=64*u+(a/67108864|0)}return 0===i.words[i.length-1]&&(i.length--,0===i.words[i.length-1]&&i.length--),i},C(ce,ee),C(re,ee),C(de,ee),de.prototype.imulK=function(i){for(var a=0,p=0;p<i.length;p++){var u=19*(0|i.words[p])+a,_=67108863&u;u>>>=26,i.words[p]=_,a=u}return 0!==a&&(i.words[i.length++]=a),i},o._prime=function(i){if(ie[i])return ie[i];var a;if("k256"===i)a=new _e;else if("p224"===i)a=new ce;else if("p192"===i)a=new re;else{if("p25519"!==i)throw new Error("Unknown prime "+i);a=new de}return ie[i]=a,a},oe.prototype._verify1=function(i){y(0===i.negative,"red works only with positives"),y(i.red,"red works only with red numbers")},oe.prototype._verify2=function(i,a){y(0==(i.negative|a.negative),"red works only with positives"),y(i.red&&i.red===a.red,"red works only with red numbers")},oe.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},oe.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},oe.prototype.add=function(i,a){this._verify2(i,a);var p=i.add(a);return p.cmp(this.m)>=0&&p.isub(this.m),p._forceRed(this)},oe.prototype.iadd=function(i,a){this._verify2(i,a);var p=i.iadd(a);return p.cmp(this.m)>=0&&p.isub(this.m),p},oe.prototype.sub=function(i,a){this._verify2(i,a);var p=i.sub(a);return p.cmpn(0)<0&&p.iadd(this.m),p._forceRed(this)},oe.prototype.isub=function(i,a){this._verify2(i,a);var p=i.isub(a);return p.cmpn(0)<0&&p.iadd(this.m),p},oe.prototype.shl=function(i,a){return this._verify1(i),this.imod(i.ushln(a))},oe.prototype.imul=function(i,a){return this._verify2(i,a),this.imod(i.imul(a))},oe.prototype.mul=function(i,a){return this._verify2(i,a),this.imod(i.mul(a))},oe.prototype.isqr=function(i){return this.imul(i,i.clone())},oe.prototype.sqr=function(i){return this.mul(i,i)},oe.prototype.sqrt=function(i){if(i.isZero())return i.clone();var a=this.m.andln(3);if(y(a%2==1),3===a){var p=this.m.add(new o(1)).iushrn(2);return this.pow(i,p)}for(var u=this.m.subn(1),_=0;!u.isZero()&&0===u.andln(1);)_++,u.iushrn(1);y(!u.isZero());var L=new o(1).toRed(this),I=L.redNeg(),x=this.m.subn(1).iushrn(1),r=this.m.bitLength();for(r=new o(2*r*r).toRed(this);0!==this.pow(r,x).cmp(I);)r.redIAdd(I);for(var v=this.pow(r,u),G=this.pow(i,u.addn(1).iushrn(1)),F=this.pow(i,u),U=_;0!==F.cmp(L);){for(var ye=F,Ce=0;0!==ye.cmp(L);Ce++)ye=ye.redSqr();y(Ce<U);var Be=this.pow(v,new o(1).iushln(U-Ce-1));G=G.redMul(Be),v=Be.redSqr(),F=F.redMul(v),U=Ce}return G},oe.prototype.invm=function(i){var a=i._invmp(this.m);return 0!==a.negative?(a.negative=0,this.imod(a).redNeg()):this.imod(a)},oe.prototype.pow=function(i,a){if(a.isZero())return new o(1).toRed(this);if(0===a.cmpn(1))return i.clone();var u=new Array(16);u[0]=new o(1).toRed(this),u[1]=i;for(var _=2;_<u.length;_++)u[_]=this.mul(u[_-1],i);var L=u[0],I=0,x=0,r=a.bitLength()%26;for(0===r&&(r=26),_=a.length-1;_>=0;_--){for(var v=a.words[_],G=r-1;G>=0;G--){var F=v>>G&1;L!==u[0]&&(L=this.sqr(L)),0!==F||0!==I?(I<<=1,I|=F,(4==++x||0===_&&0===G)&&(L=this.mul(L,u[I]),x=0,I=0)):x=0}r=26}return L},oe.prototype.convertTo=function(i){var a=i.umod(this.m);return a===i?a.clone():a},oe.prototype.convertFrom=function(i){var a=i.clone();return a.red=null,a},o.mont=function(i){return new ae(i)},C(ae,oe),ae.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},ae.prototype.convertFrom=function(i){var a=this.imod(i.mul(this.rinv));return a.red=null,a},ae.prototype.imul=function(i,a){if(i.isZero()||a.isZero())return i.words[0]=0,i.length=1,i;var p=i.imul(a),u=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=p.isub(u).iushrn(this.shift),L=_;return _.cmp(this.m)>=0?L=_.isub(this.m):_.cmpn(0)<0&&(L=_.iadd(this.m)),L._forceRed(this)},ae.prototype.mul=function(i,a){if(i.isZero()||a.isZero())return new o(0)._forceRed(this);var p=i.mul(a),u=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=p.isub(u).iushrn(this.shift),L=_;return _.cmp(this.m)>=0?L=_.isub(this.m):_.cmpn(0)<0&&(L=_.iadd(this.m)),L._forceRed(this)},ae.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(Ve=m.nmd(Ve),this)},5343:(Ve,Q)=>{"use strict";Q.byteLength=function l(E){var P=M(E),Z=P[1];return 3*(P[0]+Z)/4-Z},Q.toByteArray=function s(E){var P,_e,w=M(E),Z=w[0],j=w[1],W=new t(function N(E,P,w){return 3*(P+w)/4-w}(0,Z,j)),ie=0,ee=j>0?Z-4:Z;for(_e=0;_e<ee;_e+=4)P=e[E.charCodeAt(_e)]<<18|e[E.charCodeAt(_e+1)]<<12|e[E.charCodeAt(_e+2)]<<6|e[E.charCodeAt(_e+3)],W[ie++]=P>>16&255,W[ie++]=P>>8&255,W[ie++]=255&P;return 2===j&&(P=e[E.charCodeAt(_e)]<<2|e[E.charCodeAt(_e+1)]>>4,W[ie++]=255&P),1===j&&(P=e[E.charCodeAt(_e)]<<10|e[E.charCodeAt(_e+1)]<<4|e[E.charCodeAt(_e+2)]>>2,W[ie++]=P>>8&255,W[ie++]=255&P),W},Q.fromByteArray=function O(E){for(var P,w=E.length,Z=w%3,j=[],W=16383,ie=0,ee=w-Z;ie<ee;ie+=W)j.push(A(E,ie,ie+W>ee?ee:ie+W));return 1===Z?j.push(m[(P=E[w-1])>>2]+m[P<<4&63]+"=="):2===Z&&j.push(m[(P=(E[w-2]<<8)+E[w-1])>>10]+m[P>>4&63]+m[P<<2&63]+"="),j.join("")};for(var m=[],e=[],t="undefined"!=typeof Uint8Array?Uint8Array:Array,y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",C=0,o=y.length;C<o;++C)m[C]=y[C],e[y.charCodeAt(C)]=C;function M(E){var P=E.length;if(P%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var w=E.indexOf("=");return-1===w&&(w=P),[w,w===P?0:4-w%4]}function D(E){return m[E>>18&63]+m[E>>12&63]+m[E>>6&63]+m[63&E]}function A(E,P,w){for(var j=[],W=P;W<w;W+=3)j.push(D((E[W]<<16&16711680)+(E[W+1]<<8&65280)+(255&E[W+2])));return j.join("")}e["-".charCodeAt(0)]=62,e["_".charCodeAt(0)]=63},8538:function(Ve,Q,m){!function(e,t){"use strict";function y(p,u){if(!p)throw new Error(u||"Assertion failed")}function C(p,u){p.super_=u;var _=function(){};_.prototype=u.prototype,p.prototype=new _,p.prototype.constructor=p}function o(p,u,_){if(o.isBN(p))return p;this.negative=0,this.words=null,this.length=0,this.red=null,null!==p&&(("le"===u||"be"===u)&&(_=u,u=10),this._init(p||0,u||10,_||"be"))}var M;"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{M="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:m(6601).Buffer}catch(p){}function l(p,u){var _=p.charCodeAt(u);return _>=48&&_<=57?_-48:_>=65&&_<=70?_-55:_>=97&&_<=102?_-87:void y(!1,"Invalid character in "+p)}function N(p,u,_){var L=l(p,_);return _-1>=u&&(L|=l(p,_-1)<<4),L}function s(p,u,_,L){for(var I=0,x=0,r=Math.min(p.length,_),v=u;v<r;v++){var G=p.charCodeAt(v)-48;I*=L,x=G>=49?G-49+10:G>=17?G-17+10:G,y(G>=0&&x<L,"Invalid character"),I+=x}return I}function D(p,u){p.words=u.words,p.length=u.length,p.negative=u.negative,p.red=u.red}if(o.isBN=function(u){return u instanceof o||null!==u&&"object"==typeof u&&u.constructor.wordSize===o.wordSize&&Array.isArray(u.words)},o.max=function(u,_){return u.cmp(_)>0?u:_},o.min=function(u,_){return u.cmp(_)<0?u:_},o.prototype._init=function(u,_,L){if("number"==typeof u)return this._initNumber(u,_,L);if("object"==typeof u)return this._initArray(u,_,L);"hex"===_&&(_=16),y(_===(0|_)&&_>=2&&_<=36);var I=0;"-"===(u=u.toString().replace(/\s+/g,""))[0]&&(I++,this.negative=1),I<u.length&&(16===_?this._parseHex(u,I,L):(this._parseBase(u,_,I),"le"===L&&this._initArray(this.toArray(),_,L)))},o.prototype._initNumber=function(u,_,L){u<0&&(this.negative=1,u=-u),u<67108864?(this.words=[67108863&u],this.length=1):u<4503599627370496?(this.words=[67108863&u,u/67108864&67108863],this.length=2):(y(u<9007199254740992),this.words=[67108863&u,u/67108864&67108863,1],this.length=3),"le"===L&&this._initArray(this.toArray(),_,L)},o.prototype._initArray=function(u,_,L){if(y("number"==typeof u.length),u.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(u.length/3),this.words=new Array(this.length);for(var I=0;I<this.length;I++)this.words[I]=0;var x,r,v=0;if("be"===L)for(I=u.length-1,x=0;I>=0;I-=3)this.words[x]|=(r=u[I]|u[I-1]<<8|u[I-2]<<16)<<v&67108863,this.words[x+1]=r>>>26-v&67108863,(v+=24)>=26&&(v-=26,x++);else if("le"===L)for(I=0,x=0;I<u.length;I+=3)this.words[x]|=(r=u[I]|u[I+1]<<8|u[I+2]<<16)<<v&67108863,this.words[x+1]=r>>>26-v&67108863,(v+=24)>=26&&(v-=26,x++);return this._strip()},o.prototype._parseHex=function(u,_,L){this.length=Math.ceil((u.length-_)/6),this.words=new Array(this.length);for(var I=0;I<this.length;I++)this.words[I]=0;var v,x=0,r=0;if("be"===L)for(I=u.length-1;I>=_;I-=2)v=N(u,_,I)<<x,this.words[r]|=67108863&v,x>=18?(x-=18,this.words[r+=1]|=v>>>26):x+=8;else for(I=(u.length-_)%2==0?_+1:_;I<u.length;I+=2)v=N(u,_,I)<<x,this.words[r]|=67108863&v,x>=18?(x-=18,this.words[r+=1]|=v>>>26):x+=8;this._strip()},o.prototype._parseBase=function(u,_,L){this.words=[0],this.length=1;for(var I=0,x=1;x<=67108863;x*=_)I++;I--,x=x/_|0;for(var r=u.length-L,v=r%I,G=Math.min(r,r-v)+L,F=0,U=L;U<G;U+=I)F=s(u,U,U+I,_),this.imuln(x),this.words[0]+F<67108864?this.words[0]+=F:this._iaddn(F);if(0!==v){var ye=1;for(F=s(u,U,u.length,_),U=0;U<v;U++)ye*=_;this.imuln(ye),this.words[0]+F<67108864?this.words[0]+=F:this._iaddn(F)}this._strip()},o.prototype.copy=function(u){u.words=new Array(this.length);for(var _=0;_<this.length;_++)u.words[_]=this.words[_];u.length=this.length,u.negative=this.negative,u.red=this.red},o.prototype._move=function(u){D(u,this)},o.prototype.clone=function(){var u=new o(null);return this.copy(u),u},o.prototype._expand=function(u){for(;this.length<u;)this.words[this.length++]=0;return this},o.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=A}catch(p){o.prototype.inspect=A}else o.prototype.inspect=A;function A(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var O=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],E=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],P=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function j(p,u,_){_.negative=u.negative^p.negative;var L=p.length+u.length|0;_.length=L,L=L-1|0;var I=0|p.words[0],x=0|u.words[0],r=I*x,G=r/67108864|0;_.words[0]=67108863&r;for(var F=1;F<L;F++){for(var U=G>>>26,ye=67108863&G,Ce=Math.min(F,u.length-1),Be=Math.max(0,F-p.length+1);Be<=Ce;Be++)U+=(r=(I=0|p.words[F-Be|0])*(x=0|u.words[Be])+ye)/67108864|0,ye=67108863&r;_.words[F]=0|ye,G=0|U}return 0!==G?_.words[F]=0|G:_.length--,_._strip()}o.prototype.toString=function(u,_){var L;if(_=0|_||1,16===(u=u||10)||"hex"===u){L="";for(var I=0,x=0,r=0;r<this.length;r++){var v=this.words[r],G=(16777215&(v<<I|x)).toString(16);L=0!=(x=v>>>24-I&16777215)||r!==this.length-1?O[6-G.length]+G+L:G+L,(I+=2)>=26&&(I-=26,r--)}for(0!==x&&(L=x.toString(16)+L);L.length%_!=0;)L="0"+L;return 0!==this.negative&&(L="-"+L),L}if(u===(0|u)&&u>=2&&u<=36){var F=E[u],U=P[u];L="";var ye=this.clone();for(ye.negative=0;!ye.isZero();){var Ce=ye.modrn(U).toString(u);L=(ye=ye.idivn(U)).isZero()?Ce+L:O[F-Ce.length]+Ce+L}for(this.isZero()&&(L="0"+L);L.length%_!=0;)L="0"+L;return 0!==this.negative&&(L="-"+L),L}y(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var u=this.words[0];return 2===this.length?u+=67108864*this.words[1]:3===this.length&&1===this.words[2]?u+=4503599627370496+67108864*this.words[1]:this.length>2&&y(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-u:u},o.prototype.toJSON=function(){return this.toString(16,2)},M&&(o.prototype.toBuffer=function(u,_){return this.toArrayLike(M,u,_)}),o.prototype.toArray=function(u,_){return this.toArrayLike(Array,u,_)},o.prototype.toArrayLike=function(u,_,L){this._strip();var I=this.byteLength(),x=L||Math.max(1,I);y(I<=x,"byte array longer than desired length"),y(x>0,"Requested array length <= 0");var r=function(u,_){return u.allocUnsafe?u.allocUnsafe(_):new u(_)}(u,x);return this["_toArrayLike"+("le"===_?"LE":"BE")](r,I),r},o.prototype._toArrayLikeLE=function(u,_){for(var L=0,I=0,x=0,r=0;x<this.length;x++){var v=this.words[x]<<r|I;u[L++]=255&v,L<u.length&&(u[L++]=v>>8&255),L<u.length&&(u[L++]=v>>16&255),6===r?(L<u.length&&(u[L++]=v>>24&255),I=0,r=0):(I=v>>>24,r+=2)}if(L<u.length)for(u[L++]=I;L<u.length;)u[L++]=0},o.prototype._toArrayLikeBE=function(u,_){for(var L=u.length-1,I=0,x=0,r=0;x<this.length;x++){var v=this.words[x]<<r|I;u[L--]=255&v,L>=0&&(u[L--]=v>>8&255),L>=0&&(u[L--]=v>>16&255),6===r?(L>=0&&(u[L--]=v>>24&255),I=0,r=0):(I=v>>>24,r+=2)}if(L>=0)for(u[L--]=I;L>=0;)u[L--]=0},o.prototype._countBits=Math.clz32?function(u){return 32-Math.clz32(u)}:function(u){var _=u,L=0;return _>=4096&&(L+=13,_>>>=13),_>=64&&(L+=7,_>>>=7),_>=8&&(L+=4,_>>>=4),_>=2&&(L+=2,_>>>=2),L+_},o.prototype._zeroBits=function(u){if(0===u)return 26;var _=u,L=0;return 0==(8191&_)&&(L+=13,_>>>=13),0==(127&_)&&(L+=7,_>>>=7),0==(15&_)&&(L+=4,_>>>=4),0==(3&_)&&(L+=2,_>>>=2),0==(1&_)&&L++,L},o.prototype.bitLength=function(){var _=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+_},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var u=0,_=0;_<this.length;_++){var L=this._zeroBits(this.words[_]);if(u+=L,26!==L)break}return u},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(u){return 0!==this.negative?this.abs().inotn(u).iaddn(1):this.clone()},o.prototype.fromTwos=function(u){return this.testn(u-1)?this.notn(u).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(u){for(;this.length<u.length;)this.words[this.length++]=0;for(var _=0;_<u.length;_++)this.words[_]=this.words[_]|u.words[_];return this._strip()},o.prototype.ior=function(u){return y(0==(this.negative|u.negative)),this.iuor(u)},o.prototype.or=function(u){return this.length>u.length?this.clone().ior(u):u.clone().ior(this)},o.prototype.uor=function(u){return this.length>u.length?this.clone().iuor(u):u.clone().iuor(this)},o.prototype.iuand=function(u){var _;_=this.length>u.length?u:this;for(var L=0;L<_.length;L++)this.words[L]=this.words[L]&u.words[L];return this.length=_.length,this._strip()},o.prototype.iand=function(u){return y(0==(this.negative|u.negative)),this.iuand(u)},o.prototype.and=function(u){return this.length>u.length?this.clone().iand(u):u.clone().iand(this)},o.prototype.uand=function(u){return this.length>u.length?this.clone().iuand(u):u.clone().iuand(this)},o.prototype.iuxor=function(u){var _,L;this.length>u.length?(_=this,L=u):(_=u,L=this);for(var I=0;I<L.length;I++)this.words[I]=_.words[I]^L.words[I];if(this!==_)for(;I<_.length;I++)this.words[I]=_.words[I];return this.length=_.length,this._strip()},o.prototype.ixor=function(u){return y(0==(this.negative|u.negative)),this.iuxor(u)},o.prototype.xor=function(u){return this.length>u.length?this.clone().ixor(u):u.clone().ixor(this)},o.prototype.uxor=function(u){return this.length>u.length?this.clone().iuxor(u):u.clone().iuxor(this)},o.prototype.inotn=function(u){y("number"==typeof u&&u>=0);var _=0|Math.ceil(u/26),L=u%26;this._expand(_),L>0&&_--;for(var I=0;I<_;I++)this.words[I]=67108863&~this.words[I];return L>0&&(this.words[I]=~this.words[I]&67108863>>26-L),this._strip()},o.prototype.notn=function(u){return this.clone().inotn(u)},o.prototype.setn=function(u,_){y("number"==typeof u&&u>=0);var L=u/26|0,I=u%26;return this._expand(L+1),this.words[L]=_?this.words[L]|1<<I:this.words[L]&~(1<<I),this._strip()},o.prototype.iadd=function(u){var _,L,I;if(0!==this.negative&&0===u.negative)return this.negative=0,_=this.isub(u),this.negative^=1,this._normSign();if(0===this.negative&&0!==u.negative)return u.negative=0,_=this.isub(u),u.negative=1,_._normSign();this.length>u.length?(L=this,I=u):(L=u,I=this);for(var x=0,r=0;r<I.length;r++)this.words[r]=67108863&(_=(0|L.words[r])+(0|I.words[r])+x),x=_>>>26;for(;0!==x&&r<L.length;r++)this.words[r]=67108863&(_=(0|L.words[r])+x),x=_>>>26;if(this.length=L.length,0!==x)this.words[this.length]=x,this.length++;else if(L!==this)for(;r<L.length;r++)this.words[r]=L.words[r];return this},o.prototype.add=function(u){var _;return 0!==u.negative&&0===this.negative?(u.negative=0,_=this.sub(u),u.negative^=1,_):0===u.negative&&0!==this.negative?(this.negative=0,_=u.sub(this),this.negative=1,_):this.length>u.length?this.clone().iadd(u):u.clone().iadd(this)},o.prototype.isub=function(u){if(0!==u.negative){u.negative=0;var _=this.iadd(u);return u.negative=1,_._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(u),this.negative=1,this._normSign();var I,x,L=this.cmp(u);if(0===L)return this.negative=0,this.length=1,this.words[0]=0,this;L>0?(I=this,x=u):(I=u,x=this);for(var r=0,v=0;v<x.length;v++)r=(_=(0|I.words[v])-(0|x.words[v])+r)>>26,this.words[v]=67108863&_;for(;0!==r&&v<I.length;v++)r=(_=(0|I.words[v])+r)>>26,this.words[v]=67108863&_;if(0===r&&v<I.length&&I!==this)for(;v<I.length;v++)this.words[v]=I.words[v];return this.length=Math.max(this.length,v),I!==this&&(this.negative=1),this._strip()},o.prototype.sub=function(u){return this.clone().isub(u)};var W=function(u,_,L){var G,F,U,I=u.words,x=_.words,r=L.words,v=0,ye=0|I[0],Ce=8191&ye,Be=ye>>>13,ze=0|I[1],Ie=8191&ze,K=ze>>>13,Me=0|I[2],we=8191&Me,z=Me>>>13,Ge=0|I[3],vt=8191&Ge,Re=Ge>>>13,Ne=0|I[4],he=8191&Ne,Le=Ne>>>13,ke=0|I[5],q=8191&ke,$=ke>>>13,le=0|I[6],xe=8191&le,Ue=le>>>13,lt=0|I[7],nt=8191&lt,ft=lt>>>13,it=0|I[8],rt=8191&it,Mt=it>>>13,Zt=0|I[9],Ft=8191&Zt,Vt=Zt>>>13,Ii=0|x[0],jt=8191&Ii,ei=Ii>>>13,Pi=0|x[1],ai=8191&Pi,hi=Pi>>>13,Ze=0|x[2],Ee=8191&Ze,Y=Ze>>>13,me=0|x[3],De=8191&me,et=me>>>13,$t=0|x[4],Nt=8191&$t,Jt=$t>>>13,ct=0|x[5],Pe=8191&ct,Fe=ct>>>13,at=0|x[6],st=8191&at,At=at>>>13,li=0|x[7],Bt=8191&li,Rt=li>>>13,Li=0|x[8],si=8191&Li,ci=Li>>>13,sn=0|x[9],Ui=8191&sn,Di=sn>>>13;L.negative=u.negative^_.negative,L.length=19;var Xi=(v+(G=Math.imul(Ce,jt))|0)+((8191&(F=(F=Math.imul(Ce,ei))+Math.imul(Be,jt)|0))<<13)|0;v=((U=Math.imul(Be,ei))+(F>>>13)|0)+(Xi>>>26)|0,Xi&=67108863,G=Math.imul(Ie,jt),F=(F=Math.imul(Ie,ei))+Math.imul(K,jt)|0,U=Math.imul(K,ei);var Ke=(v+(G=G+Math.imul(Ce,ai)|0)|0)+((8191&(F=(F=F+Math.imul(Ce,hi)|0)+Math.imul(Be,ai)|0))<<13)|0;v=((U=U+Math.imul(Be,hi)|0)+(F>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,G=Math.imul(we,jt),F=(F=Math.imul(we,ei))+Math.imul(z,jt)|0,U=Math.imul(z,ei),G=G+Math.imul(Ie,ai)|0,F=(F=F+Math.imul(Ie,hi)|0)+Math.imul(K,ai)|0,U=U+Math.imul(K,hi)|0;var _t=(v+(G=G+Math.imul(Ce,Ee)|0)|0)+((8191&(F=(F=F+Math.imul(Ce,Y)|0)+Math.imul(Be,Ee)|0))<<13)|0;v=((U=U+Math.imul(Be,Y)|0)+(F>>>13)|0)+(_t>>>26)|0,_t&=67108863,G=Math.imul(vt,jt),F=(F=Math.imul(vt,ei))+Math.imul(Re,jt)|0,U=Math.imul(Re,ei),G=G+Math.imul(we,ai)|0,F=(F=F+Math.imul(we,hi)|0)+Math.imul(z,ai)|0,U=U+Math.imul(z,hi)|0,G=G+Math.imul(Ie,Ee)|0,F=(F=F+Math.imul(Ie,Y)|0)+Math.imul(K,Ee)|0,U=U+Math.imul(K,Y)|0;var ve=(v+(G=G+Math.imul(Ce,De)|0)|0)+((8191&(F=(F=F+Math.imul(Ce,et)|0)+Math.imul(Be,De)|0))<<13)|0;v=((U=U+Math.imul(Be,et)|0)+(F>>>13)|0)+(ve>>>26)|0,ve&=67108863,G=Math.imul(he,jt),F=(F=Math.imul(he,ei))+Math.imul(Le,jt)|0,U=Math.imul(Le,ei),G=G+Math.imul(vt,ai)|0,F=(F=F+Math.imul(vt,hi)|0)+Math.imul(Re,ai)|0,U=U+Math.imul(Re,hi)|0,G=G+Math.imul(we,Ee)|0,F=(F=F+Math.imul(we,Y)|0)+Math.imul(z,Ee)|0,U=U+Math.imul(z,Y)|0,G=G+Math.imul(Ie,De)|0,F=(F=F+Math.imul(Ie,et)|0)+Math.imul(K,De)|0,U=U+Math.imul(K,et)|0;var qe=(v+(G=G+Math.imul(Ce,Nt)|0)|0)+((8191&(F=(F=F+Math.imul(Ce,Jt)|0)+Math.imul(Be,Nt)|0))<<13)|0;v=((U=U+Math.imul(Be,Jt)|0)+(F>>>13)|0)+(qe>>>26)|0,qe&=67108863,G=Math.imul(q,jt),F=(F=Math.imul(q,ei))+Math.imul($,jt)|0,U=Math.imul($,ei),G=G+Math.imul(he,ai)|0,F=(F=F+Math.imul(he,hi)|0)+Math.imul(Le,ai)|0,U=U+Math.imul(Le,hi)|0,G=G+Math.imul(vt,Ee)|0,F=(F=F+Math.imul(vt,Y)|0)+Math.imul(Re,Ee)|0,U=U+Math.imul(Re,Y)|0,G=G+Math.imul(we,De)|0,F=(F=F+Math.imul(we,et)|0)+Math.imul(z,De)|0,U=U+Math.imul(z,et)|0,G=G+Math.imul(Ie,Nt)|0,F=(F=F+Math.imul(Ie,Jt)|0)+Math.imul(K,Nt)|0,U=U+Math.imul(K,Jt)|0;var yt=(v+(G=G+Math.imul(Ce,Pe)|0)|0)+((8191&(F=(F=F+Math.imul(Ce,Fe)|0)+Math.imul(Be,Pe)|0))<<13)|0;v=((U=U+Math.imul(Be,Fe)|0)+(F>>>13)|0)+(yt>>>26)|0,yt&=67108863,G=Math.imul(xe,jt),F=(F=Math.imul(xe,ei))+Math.imul(Ue,jt)|0,U=Math.imul(Ue,ei),G=G+Math.imul(q,ai)|0,F=(F=F+Math.imul(q,hi)|0)+Math.imul($,ai)|0,U=U+Math.imul($,hi)|0,G=G+Math.imul(he,Ee)|0,F=(F=F+Math.imul(he,Y)|0)+Math.imul(Le,Ee)|0,U=U+Math.imul(Le,Y)|0,G=G+Math.imul(vt,De)|0,F=(F=F+Math.imul(vt,et)|0)+Math.imul(Re,De)|0,U=U+Math.imul(Re,et)|0,G=G+Math.imul(we,Nt)|0,F=(F=F+Math.imul(we,Jt)|0)+Math.imul(z,Nt)|0,U=U+Math.imul(z,Jt)|0,G=G+Math.imul(Ie,Pe)|0,F=(F=F+Math.imul(Ie,Fe)|0)+Math.imul(K,Pe)|0,U=U+Math.imul(K,Fe)|0;var fe=(v+(G=G+Math.imul(Ce,st)|0)|0)+((8191&(F=(F=F+Math.imul(Ce,At)|0)+Math.imul(Be,st)|0))<<13)|0;v=((U=U+Math.imul(Be,At)|0)+(F>>>13)|0)+(fe>>>26)|0,fe&=67108863,G=Math.imul(nt,jt),F=(F=Math.imul(nt,ei))+Math.imul(ft,jt)|0,U=Math.imul(ft,ei),G=G+Math.imul(xe,ai)|0,F=(F=F+Math.imul(xe,hi)|0)+Math.imul(Ue,ai)|0,U=U+Math.imul(Ue,hi)|0,G=G+Math.imul(q,Ee)|0,F=(F=F+Math.imul(q,Y)|0)+Math.imul($,Ee)|0,U=U+Math.imul($,Y)|0,G=G+Math.imul(he,De)|0,F=(F=F+Math.imul(he,et)|0)+Math.imul(Le,De)|0,U=U+Math.imul(Le,et)|0,G=G+Math.imul(vt,Nt)|0,F=(F=F+Math.imul(vt,Jt)|0)+Math.imul(Re,Nt)|0,U=U+Math.imul(Re,Jt)|0,G=G+Math.imul(we,Pe)|0,F=(F=F+Math.imul(we,Fe)|0)+Math.imul(z,Pe)|0,U=U+Math.imul(z,Fe)|0,G=G+Math.imul(Ie,st)|0,F=(F=F+Math.imul(Ie,At)|0)+Math.imul(K,st)|0,U=U+Math.imul(K,At)|0;var Je=(v+(G=G+Math.imul(Ce,Bt)|0)|0)+((8191&(F=(F=F+Math.imul(Ce,Rt)|0)+Math.imul(Be,Bt)|0))<<13)|0;v=((U=U+Math.imul(Be,Rt)|0)+(F>>>13)|0)+(Je>>>26)|0,Je&=67108863,G=Math.imul(rt,jt),F=(F=Math.imul(rt,ei))+Math.imul(Mt,jt)|0,U=Math.imul(Mt,ei),G=G+Math.imul(nt,ai)|0,F=(F=F+Math.imul(nt,hi)|0)+Math.imul(ft,ai)|0,U=U+Math.imul(ft,hi)|0,G=G+Math.imul(xe,Ee)|0,F=(F=F+Math.imul(xe,Y)|0)+Math.imul(Ue,Ee)|0,U=U+Math.imul(Ue,Y)|0,G=G+Math.imul(q,De)|0,F=(F=F+Math.imul(q,et)|0)+Math.imul($,De)|0,U=U+Math.imul($,et)|0,G=G+Math.imul(he,Nt)|0,F=(F=F+Math.imul(he,Jt)|0)+Math.imul(Le,Nt)|0,U=U+Math.imul(Le,Jt)|0,G=G+Math.imul(vt,Pe)|0,F=(F=F+Math.imul(vt,Fe)|0)+Math.imul(Re,Pe)|0,U=U+Math.imul(Re,Fe)|0,G=G+Math.imul(we,st)|0,F=(F=F+Math.imul(we,At)|0)+Math.imul(z,st)|0,U=U+Math.imul(z,At)|0,G=G+Math.imul(Ie,Bt)|0,F=(F=F+Math.imul(Ie,Rt)|0)+Math.imul(K,Bt)|0,U=U+Math.imul(K,Rt)|0;var St=(v+(G=G+Math.imul(Ce,si)|0)|0)+((8191&(F=(F=F+Math.imul(Ce,ci)|0)+Math.imul(Be,si)|0))<<13)|0;v=((U=U+Math.imul(Be,ci)|0)+(F>>>13)|0)+(St>>>26)|0,St&=67108863,G=Math.imul(Ft,jt),F=(F=Math.imul(Ft,ei))+Math.imul(Vt,jt)|0,U=Math.imul(Vt,ei),G=G+Math.imul(rt,ai)|0,F=(F=F+Math.imul(rt,hi)|0)+Math.imul(Mt,ai)|0,U=U+Math.imul(Mt,hi)|0,G=G+Math.imul(nt,Ee)|0,F=(F=F+Math.imul(nt,Y)|0)+Math.imul(ft,Ee)|0,U=U+Math.imul(ft,Y)|0,G=G+Math.imul(xe,De)|0,F=(F=F+Math.imul(xe,et)|0)+Math.imul(Ue,De)|0,U=U+Math.imul(Ue,et)|0,G=G+Math.imul(q,Nt)|0,F=(F=F+Math.imul(q,Jt)|0)+Math.imul($,Nt)|0,U=U+Math.imul($,Jt)|0,G=G+Math.imul(he,Pe)|0,F=(F=F+Math.imul(he,Fe)|0)+Math.imul(Le,Pe)|0,U=U+Math.imul(Le,Fe)|0,G=G+Math.imul(vt,st)|0,F=(F=F+Math.imul(vt,At)|0)+Math.imul(Re,st)|0,U=U+Math.imul(Re,At)|0,G=G+Math.imul(we,Bt)|0,F=(F=F+Math.imul(we,Rt)|0)+Math.imul(z,Bt)|0,U=U+Math.imul(z,Rt)|0,G=G+Math.imul(Ie,si)|0,F=(F=F+Math.imul(Ie,ci)|0)+Math.imul(K,si)|0,U=U+Math.imul(K,ci)|0;var Pt=(v+(G=G+Math.imul(Ce,Ui)|0)|0)+((8191&(F=(F=F+Math.imul(Ce,Di)|0)+Math.imul(Be,Ui)|0))<<13)|0;v=((U=U+Math.imul(Be,Di)|0)+(F>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,G=Math.imul(Ft,ai),F=(F=Math.imul(Ft,hi))+Math.imul(Vt,ai)|0,U=Math.imul(Vt,hi),G=G+Math.imul(rt,Ee)|0,F=(F=F+Math.imul(rt,Y)|0)+Math.imul(Mt,Ee)|0,U=U+Math.imul(Mt,Y)|0,G=G+Math.imul(nt,De)|0,F=(F=F+Math.imul(nt,et)|0)+Math.imul(ft,De)|0,U=U+Math.imul(ft,et)|0,G=G+Math.imul(xe,Nt)|0,F=(F=F+Math.imul(xe,Jt)|0)+Math.imul(Ue,Nt)|0,U=U+Math.imul(Ue,Jt)|0,G=G+Math.imul(q,Pe)|0,F=(F=F+Math.imul(q,Fe)|0)+Math.imul($,Pe)|0,U=U+Math.imul($,Fe)|0,G=G+Math.imul(he,st)|0,F=(F=F+Math.imul(he,At)|0)+Math.imul(Le,st)|0,U=U+Math.imul(Le,At)|0,G=G+Math.imul(vt,Bt)|0,F=(F=F+Math.imul(vt,Rt)|0)+Math.imul(Re,Bt)|0,U=U+Math.imul(Re,Rt)|0,G=G+Math.imul(we,si)|0,F=(F=F+Math.imul(we,ci)|0)+Math.imul(z,si)|0,U=U+Math.imul(z,ci)|0;var yi=(v+(G=G+Math.imul(Ie,Ui)|0)|0)+((8191&(F=(F=F+Math.imul(Ie,Di)|0)+Math.imul(K,Ui)|0))<<13)|0;v=((U=U+Math.imul(K,Di)|0)+(F>>>13)|0)+(yi>>>26)|0,yi&=67108863,G=Math.imul(Ft,Ee),F=(F=Math.imul(Ft,Y))+Math.imul(Vt,Ee)|0,U=Math.imul(Vt,Y),G=G+Math.imul(rt,De)|0,F=(F=F+Math.imul(rt,et)|0)+Math.imul(Mt,De)|0,U=U+Math.imul(Mt,et)|0,G=G+Math.imul(nt,Nt)|0,F=(F=F+Math.imul(nt,Jt)|0)+Math.imul(ft,Nt)|0,U=U+Math.imul(ft,Jt)|0,G=G+Math.imul(xe,Pe)|0,F=(F=F+Math.imul(xe,Fe)|0)+Math.imul(Ue,Pe)|0,U=U+Math.imul(Ue,Fe)|0,G=G+Math.imul(q,st)|0,F=(F=F+Math.imul(q,At)|0)+Math.imul($,st)|0,U=U+Math.imul($,At)|0,G=G+Math.imul(he,Bt)|0,F=(F=F+Math.imul(he,Rt)|0)+Math.imul(Le,Bt)|0,U=U+Math.imul(Le,Rt)|0,G=G+Math.imul(vt,si)|0,F=(F=F+Math.imul(vt,ci)|0)+Math.imul(Re,si)|0,U=U+Math.imul(Re,ci)|0;var Ni=(v+(G=G+Math.imul(we,Ui)|0)|0)+((8191&(F=(F=F+Math.imul(we,Di)|0)+Math.imul(z,Ui)|0))<<13)|0;v=((U=U+Math.imul(z,Di)|0)+(F>>>13)|0)+(Ni>>>26)|0,Ni&=67108863,G=Math.imul(Ft,De),F=(F=Math.imul(Ft,et))+Math.imul(Vt,De)|0,U=Math.imul(Vt,et),G=G+Math.imul(rt,Nt)|0,F=(F=F+Math.imul(rt,Jt)|0)+Math.imul(Mt,Nt)|0,U=U+Math.imul(Mt,Jt)|0,G=G+Math.imul(nt,Pe)|0,F=(F=F+Math.imul(nt,Fe)|0)+Math.imul(ft,Pe)|0,U=U+Math.imul(ft,Fe)|0,G=G+Math.imul(xe,st)|0,F=(F=F+Math.imul(xe,At)|0)+Math.imul(Ue,st)|0,U=U+Math.imul(Ue,At)|0,G=G+Math.imul(q,Bt)|0,F=(F=F+Math.imul(q,Rt)|0)+Math.imul($,Bt)|0,U=U+Math.imul($,Rt)|0,G=G+Math.imul(he,si)|0,F=(F=F+Math.imul(he,ci)|0)+Math.imul(Le,si)|0,U=U+Math.imul(Le,ci)|0;var Si=(v+(G=G+Math.imul(vt,Ui)|0)|0)+((8191&(F=(F=F+Math.imul(vt,Di)|0)+Math.imul(Re,Ui)|0))<<13)|0;v=((U=U+Math.imul(Re,Di)|0)+(F>>>13)|0)+(Si>>>26)|0,Si&=67108863,G=Math.imul(Ft,Nt),F=(F=Math.imul(Ft,Jt))+Math.imul(Vt,Nt)|0,U=Math.imul(Vt,Jt),G=G+Math.imul(rt,Pe)|0,F=(F=F+Math.imul(rt,Fe)|0)+Math.imul(Mt,Pe)|0,U=U+Math.imul(Mt,Fe)|0,G=G+Math.imul(nt,st)|0,F=(F=F+Math.imul(nt,At)|0)+Math.imul(ft,st)|0,U=U+Math.imul(ft,At)|0,G=G+Math.imul(xe,Bt)|0,F=(F=F+Math.imul(xe,Rt)|0)+Math.imul(Ue,Bt)|0,U=U+Math.imul(Ue,Rt)|0,G=G+Math.imul(q,si)|0,F=(F=F+Math.imul(q,ci)|0)+Math.imul($,si)|0,U=U+Math.imul($,ci)|0;var qi=(v+(G=G+Math.imul(he,Ui)|0)|0)+((8191&(F=(F=F+Math.imul(he,Di)|0)+Math.imul(Le,Ui)|0))<<13)|0;v=((U=U+Math.imul(Le,Di)|0)+(F>>>13)|0)+(qi>>>26)|0,qi&=67108863,G=Math.imul(Ft,Pe),F=(F=Math.imul(Ft,Fe))+Math.imul(Vt,Pe)|0,U=Math.imul(Vt,Fe),G=G+Math.imul(rt,st)|0,F=(F=F+Math.imul(rt,At)|0)+Math.imul(Mt,st)|0,U=U+Math.imul(Mt,At)|0,G=G+Math.imul(nt,Bt)|0,F=(F=F+Math.imul(nt,Rt)|0)+Math.imul(ft,Bt)|0,U=U+Math.imul(ft,Rt)|0,G=G+Math.imul(xe,si)|0,F=(F=F+Math.imul(xe,ci)|0)+Math.imul(Ue,si)|0,U=U+Math.imul(Ue,ci)|0;var ot=(v+(G=G+Math.imul(q,Ui)|0)|0)+((8191&(F=(F=F+Math.imul(q,Di)|0)+Math.imul($,Ui)|0))<<13)|0;v=((U=U+Math.imul($,Di)|0)+(F>>>13)|0)+(ot>>>26)|0,ot&=67108863,G=Math.imul(Ft,st),F=(F=Math.imul(Ft,At))+Math.imul(Vt,st)|0,U=Math.imul(Vt,At),G=G+Math.imul(rt,Bt)|0,F=(F=F+Math.imul(rt,Rt)|0)+Math.imul(Mt,Bt)|0,U=U+Math.imul(Mt,Rt)|0,G=G+Math.imul(nt,si)|0,F=(F=F+Math.imul(nt,ci)|0)+Math.imul(ft,si)|0,U=U+Math.imul(ft,ci)|0;var Kt=(v+(G=G+Math.imul(xe,Ui)|0)|0)+((8191&(F=(F=F+Math.imul(xe,Di)|0)+Math.imul(Ue,Ui)|0))<<13)|0;v=((U=U+Math.imul(Ue,Di)|0)+(F>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,G=Math.imul(Ft,Bt),F=(F=Math.imul(Ft,Rt))+Math.imul(Vt,Bt)|0,U=Math.imul(Vt,Rt),G=G+Math.imul(rt,si)|0,F=(F=F+Math.imul(rt,ci)|0)+Math.imul(Mt,si)|0,U=U+Math.imul(Mt,ci)|0;var gt=(v+(G=G+Math.imul(nt,Ui)|0)|0)+((8191&(F=(F=F+Math.imul(nt,Di)|0)+Math.imul(ft,Ui)|0))<<13)|0;v=((U=U+Math.imul(ft,Di)|0)+(F>>>13)|0)+(gt>>>26)|0,gt&=67108863,G=Math.imul(Ft,si),F=(F=Math.imul(Ft,ci))+Math.imul(Vt,si)|0,U=Math.imul(Vt,ci);var Lt=(v+(G=G+Math.imul(rt,Ui)|0)|0)+((8191&(F=(F=F+Math.imul(rt,Di)|0)+Math.imul(Mt,Ui)|0))<<13)|0;v=((U=U+Math.imul(Mt,Di)|0)+(F>>>13)|0)+(Lt>>>26)|0,Lt&=67108863;var ui=(v+(G=Math.imul(Ft,Ui))|0)+((8191&(F=(F=Math.imul(Ft,Di))+Math.imul(Vt,Ui)|0))<<13)|0;return v=((U=Math.imul(Vt,Di))+(F>>>13)|0)+(ui>>>26)|0,ui&=67108863,r[0]=Xi,r[1]=Ke,r[2]=_t,r[3]=ve,r[4]=qe,r[5]=yt,r[6]=fe,r[7]=Je,r[8]=St,r[9]=Pt,r[10]=yi,r[11]=Ni,r[12]=Si,r[13]=qi,r[14]=ot,r[15]=Kt,r[16]=gt,r[17]=Lt,r[18]=ui,0!==v&&(r[19]=v,L.length++),L};function ie(p,u,_){_.negative=u.negative^p.negative,_.length=p.length+u.length;for(var L=0,I=0,x=0;x<_.length-1;x++){var r=I;I=0;for(var v=67108863&L,G=Math.min(x,u.length-1),F=Math.max(0,x-p.length+1);F<=G;F++){var Be=(0|p.words[x-F])*(0|u.words[F]),ze=67108863&Be;v=67108863&(ze=ze+v|0),I+=(r=(r=r+(Be/67108864|0)|0)+(ze>>>26)|0)>>>26,r&=67108863}_.words[x]=v,L=r,r=I}return 0!==L?_.words[x]=L:_.length--,_._strip()}function ee(p,u,_){return ie(p,u,_)}function _e(p,u){this.x=p,this.y=u}Math.imul||(W=j),o.prototype.mulTo=function(u,_){var I=this.length+u.length;return 10===this.length&&10===u.length?W(this,u,_):I<63?j(this,u,_):I<1024?ie(this,u,_):ee(this,u,_)},_e.prototype.makeRBT=function(u){for(var _=new Array(u),L=o.prototype._countBits(u)-1,I=0;I<u;I++)_[I]=this.revBin(I,L,u);return _},_e.prototype.revBin=function(u,_,L){if(0===u||u===L-1)return u;for(var I=0,x=0;x<_;x++)I|=(1&u)<<_-x-1,u>>=1;return I},_e.prototype.permute=function(u,_,L,I,x,r){for(var v=0;v<r;v++)I[v]=_[u[v]],x[v]=L[u[v]]},_e.prototype.transform=function(u,_,L,I,x,r){this.permute(r,u,_,L,I,x);for(var v=1;v<x;v<<=1)for(var G=v<<1,F=Math.cos(2*Math.PI/G),U=Math.sin(2*Math.PI/G),ye=0;ye<x;ye+=G)for(var Ce=F,Be=U,ze=0;ze<v;ze++){var Ie=L[ye+ze],K=I[ye+ze],Me=L[ye+ze+v],we=I[ye+ze+v],z=Ce*Me-Be*we;we=Ce*we+Be*Me,L[ye+ze]=Ie+(Me=z),I[ye+ze]=K+we,L[ye+ze+v]=Ie-Me,I[ye+ze+v]=K-we,ze!==G&&(z=F*Ce-U*Be,Be=F*Be+U*Ce,Ce=z)}},_e.prototype.guessLen13b=function(u,_){var L=1|Math.max(_,u),I=1&L,x=0;for(L=L/2|0;L;L>>>=1)x++;return 1<<x+1+I},_e.prototype.conjugate=function(u,_,L){if(!(L<=1))for(var I=0;I<L/2;I++){var x=u[I];u[I]=u[L-I-1],u[L-I-1]=x,x=_[I],_[I]=-_[L-I-1],_[L-I-1]=-x}},_e.prototype.normalize13b=function(u,_){for(var L=0,I=0;I<_/2;I++){var x=8192*Math.round(u[2*I+1]/_)+Math.round(u[2*I]/_)+L;u[I]=67108863&x,L=x<67108864?0:x/67108864|0}return u},_e.prototype.convert13b=function(u,_,L,I){for(var x=0,r=0;r<_;r++)L[2*r]=8191&(x+=0|u[r]),L[2*r+1]=8191&(x>>>=13),x>>>=13;for(r=2*_;r<I;++r)L[r]=0;y(0===x),y(0==(-8192&x))},_e.prototype.stub=function(u){for(var _=new Array(u),L=0;L<u;L++)_[L]=0;return _},_e.prototype.mulp=function(u,_,L){var I=2*this.guessLen13b(u.length,_.length),x=this.makeRBT(I),r=this.stub(I),v=new Array(I),G=new Array(I),F=new Array(I),U=new Array(I),ye=new Array(I),Ce=new Array(I),Be=L.words;Be.length=I,this.convert13b(u.words,u.length,v,I),this.convert13b(_.words,_.length,U,I),this.transform(v,r,G,F,I,x),this.transform(U,r,ye,Ce,I,x);for(var ze=0;ze<I;ze++){var Ie=G[ze]*ye[ze]-F[ze]*Ce[ze];F[ze]=G[ze]*Ce[ze]+F[ze]*ye[ze],G[ze]=Ie}return this.conjugate(G,F,I),this.transform(G,F,Be,r,I,x),this.conjugate(Be,r,I),this.normalize13b(Be,I),L.negative=u.negative^_.negative,L.length=u.length+_.length,L._strip()},o.prototype.mul=function(u){var _=new o(null);return _.words=new Array(this.length+u.length),this.mulTo(u,_)},o.prototype.mulf=function(u){var _=new o(null);return _.words=new Array(this.length+u.length),ee(this,u,_)},o.prototype.imul=function(u){return this.clone().mulTo(u,this)},o.prototype.imuln=function(u){var _=u<0;_&&(u=-u),y("number"==typeof u),y(u<67108864);for(var L=0,I=0;I<this.length;I++){var x=(0|this.words[I])*u,r=(67108863&x)+(67108863&L);L>>=26,L+=x/67108864|0,L+=r>>>26,this.words[I]=67108863&r}return 0!==L&&(this.words[I]=L,this.length++),_?this.ineg():this},o.prototype.muln=function(u){return this.clone().imuln(u)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(u){var _=function Z(p){for(var u=new Array(p.bitLength()),_=0;_<u.length;_++)u[_]=p.words[_/26|0]>>>_%26&1;return u}(u);if(0===_.length)return new o(1);for(var L=this,I=0;I<_.length&&0===_[I];I++,L=L.sqr());if(++I<_.length)for(var x=L.sqr();I<_.length;I++,x=x.sqr())0!==_[I]&&(L=L.mul(x));return L},o.prototype.iushln=function(u){y("number"==typeof u&&u>=0);var x,_=u%26,L=(u-_)/26,I=67108863>>>26-_<<26-_;if(0!==_){var r=0;for(x=0;x<this.length;x++){var v=this.words[x]&I;this.words[x]=(0|this.words[x])-v<<_|r,r=v>>>26-_}r&&(this.words[x]=r,this.length++)}if(0!==L){for(x=this.length-1;x>=0;x--)this.words[x+L]=this.words[x];for(x=0;x<L;x++)this.words[x]=0;this.length+=L}return this._strip()},o.prototype.ishln=function(u){return y(0===this.negative),this.iushln(u)},o.prototype.iushrn=function(u,_,L){var I;y("number"==typeof u&&u>=0),I=_?(_-_%26)/26:0;var x=u%26,r=Math.min((u-x)/26,this.length),v=67108863^67108863>>>x<<x,G=L;if(I-=r,I=Math.max(0,I),G){for(var F=0;F<r;F++)G.words[F]=this.words[F];G.length=r}if(0!==r)if(this.length>r)for(this.length-=r,F=0;F<this.length;F++)this.words[F]=this.words[F+r];else this.words[0]=0,this.length=1;var U=0;for(F=this.length-1;F>=0&&(0!==U||F>=I);F--){var ye=0|this.words[F];this.words[F]=U<<26-x|ye>>>x,U=ye&v}return G&&0!==U&&(G.words[G.length++]=U),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(u,_,L){return y(0===this.negative),this.iushrn(u,_,L)},o.prototype.shln=function(u){return this.clone().ishln(u)},o.prototype.ushln=function(u){return this.clone().iushln(u)},o.prototype.shrn=function(u){return this.clone().ishrn(u)},o.prototype.ushrn=function(u){return this.clone().iushrn(u)},o.prototype.testn=function(u){y("number"==typeof u&&u>=0);var _=u%26,L=(u-_)/26;return!(this.length<=L||!(this.words[L]&1<<_))},o.prototype.imaskn=function(u){y("number"==typeof u&&u>=0);var _=u%26,L=(u-_)/26;return y(0===this.negative,"imaskn works only with positive numbers"),this.length<=L?this:(0!==_&&L++,this.length=Math.min(L,this.length),0!==_&&(this.words[this.length-1]&=67108863^67108863>>>_<<_),this._strip())},o.prototype.maskn=function(u){return this.clone().imaskn(u)},o.prototype.iaddn=function(u){return y("number"==typeof u),y(u<67108864),u<0?this.isubn(-u):0!==this.negative?1===this.length&&(0|this.words[0])<=u?(this.words[0]=u-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(u),this.negative=1,this):this._iaddn(u)},o.prototype._iaddn=function(u){this.words[0]+=u;for(var _=0;_<this.length&&this.words[_]>=67108864;_++)this.words[_]-=67108864,_===this.length-1?this.words[_+1]=1:this.words[_+1]++;return this.length=Math.max(this.length,_+1),this},o.prototype.isubn=function(u){if(y("number"==typeof u),y(u<67108864),u<0)return this.iaddn(-u);if(0!==this.negative)return this.negative=0,this.iaddn(u),this.negative=1,this;if(this.words[0]-=u,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var _=0;_<this.length&&this.words[_]<0;_++)this.words[_]+=67108864,this.words[_+1]-=1;return this._strip()},o.prototype.addn=function(u){return this.clone().iaddn(u)},o.prototype.subn=function(u){return this.clone().isubn(u)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(u,_,L){var x;this._expand(u.length+L);var r,v=0;for(x=0;x<u.length;x++){r=(0|this.words[x+L])+v;var G=(0|u.words[x])*_;v=((r-=67108863&G)>>26)-(G/67108864|0),this.words[x+L]=67108863&r}for(;x<this.length-L;x++)v=(r=(0|this.words[x+L])+v)>>26,this.words[x+L]=67108863&r;if(0===v)return this._strip();for(y(-1===v),v=0,x=0;x<this.length;x++)v=(r=-(0|this.words[x])+v)>>26,this.words[x]=67108863&r;return this.negative=1,this._strip()},o.prototype._wordDiv=function(u,_){var L,I=this.clone(),x=u,r=0|x.words[x.length-1];0!=(L=26-this._countBits(r))&&(x=x.ushln(L),I.iushln(L),r=0|x.words[x.length-1]);var F,G=I.length-x.length;if("mod"!==_){(F=new o(null)).length=G+1,F.words=new Array(F.length);for(var U=0;U<F.length;U++)F.words[U]=0}var ye=I.clone()._ishlnsubmul(x,1,G);0===ye.negative&&(I=ye,F&&(F.words[G]=1));for(var Ce=G-1;Ce>=0;Ce--){var Be=67108864*(0|I.words[x.length+Ce])+(0|I.words[x.length+Ce-1]);for(Be=Math.min(Be/r|0,67108863),I._ishlnsubmul(x,Be,Ce);0!==I.negative;)Be--,I.negative=0,I._ishlnsubmul(x,1,Ce),I.isZero()||(I.negative^=1);F&&(F.words[Ce]=Be)}return F&&F._strip(),I._strip(),"div"!==_&&0!==L&&I.iushrn(L),{div:F||null,mod:I}},o.prototype.divmod=function(u,_,L){return y(!u.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===u.negative?(r=this.neg().divmod(u,_),"mod"!==_&&(I=r.div.neg()),"div"!==_&&(x=r.mod.neg(),L&&0!==x.negative&&x.iadd(u)),{div:I,mod:x}):0===this.negative&&0!==u.negative?(r=this.divmod(u.neg(),_),"mod"!==_&&(I=r.div.neg()),{div:I,mod:r.mod}):0!=(this.negative&u.negative)?(r=this.neg().divmod(u.neg(),_),"div"!==_&&(x=r.mod.neg(),L&&0!==x.negative&&x.isub(u)),{div:r.div,mod:x}):u.length>this.length||this.cmp(u)<0?{div:new o(0),mod:this}:1===u.length?"div"===_?{div:this.divn(u.words[0]),mod:null}:"mod"===_?{div:null,mod:new o(this.modrn(u.words[0]))}:{div:this.divn(u.words[0]),mod:new o(this.modrn(u.words[0]))}:this._wordDiv(u,_);var I,x,r},o.prototype.div=function(u){return this.divmod(u,"div",!1).div},o.prototype.mod=function(u){return this.divmod(u,"mod",!1).mod},o.prototype.umod=function(u){return this.divmod(u,"mod",!0).mod},o.prototype.divRound=function(u){var _=this.divmod(u);if(_.mod.isZero())return _.div;var L=0!==_.div.negative?_.mod.isub(u):_.mod,I=u.ushrn(1),x=u.andln(1),r=L.cmp(I);return r<0||1===x&&0===r?_.div:0!==_.div.negative?_.div.isubn(1):_.div.iaddn(1)},o.prototype.modrn=function(u){var _=u<0;_&&(u=-u),y(u<=67108863);for(var L=(1<<26)%u,I=0,x=this.length-1;x>=0;x--)I=(L*I+(0|this.words[x]))%u;return _?-I:I},o.prototype.modn=function(u){return this.modrn(u)},o.prototype.idivn=function(u){var _=u<0;_&&(u=-u),y(u<=67108863);for(var L=0,I=this.length-1;I>=0;I--){var x=(0|this.words[I])+67108864*L;this.words[I]=x/u|0,L=x%u}return this._strip(),_?this.ineg():this},o.prototype.divn=function(u){return this.clone().idivn(u)},o.prototype.egcd=function(u){y(0===u.negative),y(!u.isZero());var _=this,L=u.clone();_=0!==_.negative?_.umod(u):_.clone();for(var I=new o(1),x=new o(0),r=new o(0),v=new o(1),G=0;_.isEven()&&L.isEven();)_.iushrn(1),L.iushrn(1),++G;for(var F=L.clone(),U=_.clone();!_.isZero();){for(var ye=0,Ce=1;0==(_.words[0]&Ce)&&ye<26;++ye,Ce<<=1);if(ye>0)for(_.iushrn(ye);ye-- >0;)(I.isOdd()||x.isOdd())&&(I.iadd(F),x.isub(U)),I.iushrn(1),x.iushrn(1);for(var Be=0,ze=1;0==(L.words[0]&ze)&&Be<26;++Be,ze<<=1);if(Be>0)for(L.iushrn(Be);Be-- >0;)(r.isOdd()||v.isOdd())&&(r.iadd(F),v.isub(U)),r.iushrn(1),v.iushrn(1);_.cmp(L)>=0?(_.isub(L),I.isub(r),x.isub(v)):(L.isub(_),r.isub(I),v.isub(x))}return{a:r,b:v,gcd:L.iushln(G)}},o.prototype._invmp=function(u){y(0===u.negative),y(!u.isZero());var ye,_=this,L=u.clone();_=0!==_.negative?_.umod(u):_.clone();for(var I=new o(1),x=new o(0),r=L.clone();_.cmpn(1)>0&&L.cmpn(1)>0;){for(var v=0,G=1;0==(_.words[0]&G)&&v<26;++v,G<<=1);if(v>0)for(_.iushrn(v);v-- >0;)I.isOdd()&&I.iadd(r),I.iushrn(1);for(var F=0,U=1;0==(L.words[0]&U)&&F<26;++F,U<<=1);if(F>0)for(L.iushrn(F);F-- >0;)x.isOdd()&&x.iadd(r),x.iushrn(1);_.cmp(L)>=0?(_.isub(L),I.isub(x)):(L.isub(_),x.isub(I))}return(ye=0===_.cmpn(1)?I:x).cmpn(0)<0&&ye.iadd(u),ye},o.prototype.gcd=function(u){if(this.isZero())return u.abs();if(u.isZero())return this.abs();var _=this.clone(),L=u.clone();_.negative=0,L.negative=0;for(var I=0;_.isEven()&&L.isEven();I++)_.iushrn(1),L.iushrn(1);for(;;){for(;_.isEven();)_.iushrn(1);for(;L.isEven();)L.iushrn(1);var x=_.cmp(L);if(x<0){var r=_;_=L,L=r}else if(0===x||0===L.cmpn(1))break;_.isub(L)}return L.iushln(I)},o.prototype.invm=function(u){return this.egcd(u).a.umod(u)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(u){return this.words[0]&u},o.prototype.bincn=function(u){y("number"==typeof u);var _=u%26,L=(u-_)/26,I=1<<_;if(this.length<=L)return this._expand(L+1),this.words[L]|=I,this;for(var x=I,r=L;0!==x&&r<this.length;r++){var v=0|this.words[r];x=(v+=x)>>>26,this.words[r]=v&=67108863}return 0!==x&&(this.words[r]=x,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(u){var L,_=u<0;if(0!==this.negative&&!_)return-1;if(0===this.negative&&_)return 1;if(this._strip(),this.length>1)L=1;else{_&&(u=-u),y(u<=67108863,"Number is too big");var I=0|this.words[0];L=I===u?0:I<u?-1:1}return 0!==this.negative?0|-L:L},o.prototype.cmp=function(u){if(0!==this.negative&&0===u.negative)return-1;if(0===this.negative&&0!==u.negative)return 1;var _=this.ucmp(u);return 0!==this.negative?0|-_:_},o.prototype.ucmp=function(u){if(this.length>u.length)return 1;if(this.length<u.length)return-1;for(var _=0,L=this.length-1;L>=0;L--){var I=0|this.words[L],x=0|u.words[L];if(I!==x){I<x?_=-1:I>x&&(_=1);break}}return _},o.prototype.gtn=function(u){return 1===this.cmpn(u)},o.prototype.gt=function(u){return 1===this.cmp(u)},o.prototype.gten=function(u){return this.cmpn(u)>=0},o.prototype.gte=function(u){return this.cmp(u)>=0},o.prototype.ltn=function(u){return-1===this.cmpn(u)},o.prototype.lt=function(u){return-1===this.cmp(u)},o.prototype.lten=function(u){return this.cmpn(u)<=0},o.prototype.lte=function(u){return this.cmp(u)<=0},o.prototype.eqn=function(u){return 0===this.cmpn(u)},o.prototype.eq=function(u){return 0===this.cmp(u)},o.red=function(u){return new i(u)},o.prototype.toRed=function(u){return y(!this.red,"Already a number in reduction context"),y(0===this.negative,"red works only with positives"),u.convertTo(this)._forceRed(u)},o.prototype.fromRed=function(){return y(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(u){return this.red=u,this},o.prototype.forceRed=function(u){return y(!this.red,"Already a number in reduction context"),this._forceRed(u)},o.prototype.redAdd=function(u){return y(this.red,"redAdd works only with red numbers"),this.red.add(this,u)},o.prototype.redIAdd=function(u){return y(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,u)},o.prototype.redSub=function(u){return y(this.red,"redSub works only with red numbers"),this.red.sub(this,u)},o.prototype.redISub=function(u){return y(this.red,"redISub works only with red numbers"),this.red.isub(this,u)},o.prototype.redShl=function(u){return y(this.red,"redShl works only with red numbers"),this.red.shl(this,u)},o.prototype.redMul=function(u){return y(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.mul(this,u)},o.prototype.redIMul=function(u){return y(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.imul(this,u)},o.prototype.redSqr=function(){return y(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return y(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return y(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return y(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return y(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(u){return y(this.red&&!u.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,u)};var ce={k256:null,p224:null,p192:null,p25519:null};function re(p,u){this.name=p,this.p=new o(u,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function de(){re.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function oe(){re.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ae(){re.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function b(){re.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function i(p){if("string"==typeof p){var u=o._prime(p);this.m=u.p,this.prime=u}else y(p.gtn(1),"modulus must be greater than 1"),this.m=p,this.prime=null}function a(p){i.call(this,p),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}re.prototype._tmp=function(){var u=new o(null);return u.words=new Array(Math.ceil(this.n/13)),u},re.prototype.ireduce=function(u){var L,_=u;do{this.split(_,this.tmp),L=(_=(_=this.imulK(_)).iadd(this.tmp)).bitLength()}while(L>this.n);var I=L<this.n?-1:_.ucmp(this.p);return 0===I?(_.words[0]=0,_.length=1):I>0?_.isub(this.p):void 0!==_.strip?_.strip():_._strip(),_},re.prototype.split=function(u,_){u.iushrn(this.n,0,_)},re.prototype.imulK=function(u){return u.imul(this.k)},C(de,re),de.prototype.split=function(u,_){for(var L=4194303,I=Math.min(u.length,9),x=0;x<I;x++)_.words[x]=u.words[x];if(_.length=I,u.length<=9)return u.words[0]=0,void(u.length=1);var r=u.words[9];for(_.words[_.length++]=r&L,x=10;x<u.length;x++){var v=0|u.words[x];u.words[x-10]=(v&L)<<4|r>>>22,r=v}u.words[x-10]=r>>>=22,u.length-=0===r&&u.length>10?10:9},de.prototype.imulK=function(u){u.words[u.length]=0,u.words[u.length+1]=0,u.length+=2;for(var _=0,L=0;L<u.length;L++){var I=0|u.words[L];u.words[L]=67108863&(_+=977*I),_=64*I+(_/67108864|0)}return 0===u.words[u.length-1]&&(u.length--,0===u.words[u.length-1]&&u.length--),u},C(oe,re),C(ae,re),C(b,re),b.prototype.imulK=function(u){for(var _=0,L=0;L<u.length;L++){var I=19*(0|u.words[L])+_,x=67108863&I;I>>>=26,u.words[L]=x,_=I}return 0!==_&&(u.words[u.length++]=_),u},o._prime=function(u){if(ce[u])return ce[u];var _;if("k256"===u)_=new de;else if("p224"===u)_=new oe;else if("p192"===u)_=new ae;else{if("p25519"!==u)throw new Error("Unknown prime "+u);_=new b}return ce[u]=_,_},i.prototype._verify1=function(u){y(0===u.negative,"red works only with positives"),y(u.red,"red works only with red numbers")},i.prototype._verify2=function(u,_){y(0==(u.negative|_.negative),"red works only with positives"),y(u.red&&u.red===_.red,"red works only with red numbers")},i.prototype.imod=function(u){return this.prime?this.prime.ireduce(u)._forceRed(this):(D(u,u.umod(this.m)._forceRed(this)),u)},i.prototype.neg=function(u){return u.isZero()?u.clone():this.m.sub(u)._forceRed(this)},i.prototype.add=function(u,_){this._verify2(u,_);var L=u.add(_);return L.cmp(this.m)>=0&&L.isub(this.m),L._forceRed(this)},i.prototype.iadd=function(u,_){this._verify2(u,_);var L=u.iadd(_);return L.cmp(this.m)>=0&&L.isub(this.m),L},i.prototype.sub=function(u,_){this._verify2(u,_);var L=u.sub(_);return L.cmpn(0)<0&&L.iadd(this.m),L._forceRed(this)},i.prototype.isub=function(u,_){this._verify2(u,_);var L=u.isub(_);return L.cmpn(0)<0&&L.iadd(this.m),L},i.prototype.shl=function(u,_){return this._verify1(u),this.imod(u.ushln(_))},i.prototype.imul=function(u,_){return this._verify2(u,_),this.imod(u.imul(_))},i.prototype.mul=function(u,_){return this._verify2(u,_),this.imod(u.mul(_))},i.prototype.isqr=function(u){return this.imul(u,u.clone())},i.prototype.sqr=function(u){return this.mul(u,u)},i.prototype.sqrt=function(u){if(u.isZero())return u.clone();var _=this.m.andln(3);if(y(_%2==1),3===_){var L=this.m.add(new o(1)).iushrn(2);return this.pow(u,L)}for(var I=this.m.subn(1),x=0;!I.isZero()&&0===I.andln(1);)x++,I.iushrn(1);y(!I.isZero());var r=new o(1).toRed(this),v=r.redNeg(),G=this.m.subn(1).iushrn(1),F=this.m.bitLength();for(F=new o(2*F*F).toRed(this);0!==this.pow(F,G).cmp(v);)F.redIAdd(v);for(var U=this.pow(F,I),ye=this.pow(u,I.addn(1).iushrn(1)),Ce=this.pow(u,I),Be=x;0!==Ce.cmp(r);){for(var ze=Ce,Ie=0;0!==ze.cmp(r);Ie++)ze=ze.redSqr();y(Ie<Be);var K=this.pow(U,new o(1).iushln(Be-Ie-1));ye=ye.redMul(K),U=K.redSqr(),Ce=Ce.redMul(U),Be=Ie}return ye},i.prototype.invm=function(u){var _=u._invmp(this.m);return 0!==_.negative?(_.negative=0,this.imod(_).redNeg()):this.imod(_)},i.prototype.pow=function(u,_){if(_.isZero())return new o(1).toRed(this);if(0===_.cmpn(1))return u.clone();var I=new Array(16);I[0]=new o(1).toRed(this),I[1]=u;for(var x=2;x<I.length;x++)I[x]=this.mul(I[x-1],u);var r=I[0],v=0,G=0,F=_.bitLength()%26;for(0===F&&(F=26),x=_.length-1;x>=0;x--){for(var U=_.words[x],ye=F-1;ye>=0;ye--){var Ce=U>>ye&1;r!==I[0]&&(r=this.sqr(r)),0!==Ce||0!==v?(v<<=1,v|=Ce,(4==++G||0===x&&0===ye)&&(r=this.mul(r,I[v]),G=0,v=0)):G=0}F=26}return r},i.prototype.convertTo=function(u){var _=u.umod(this.m);return _===u?_.clone():_},i.prototype.convertFrom=function(u){var _=u.clone();return _.red=null,_},o.mont=function(u){return new a(u)},C(a,i),a.prototype.convertTo=function(u){return this.imod(u.ushln(this.shift))},a.prototype.convertFrom=function(u){var _=this.imod(u.mul(this.rinv));return _.red=null,_},a.prototype.imul=function(u,_){if(u.isZero()||_.isZero())return u.words[0]=0,u.length=1,u;var L=u.imul(_),I=L.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=L.isub(I).iushrn(this.shift),r=x;return x.cmp(this.m)>=0?r=x.isub(this.m):x.cmpn(0)<0&&(r=x.iadd(this.m)),r._forceRed(this)},a.prototype.mul=function(u,_){if(u.isZero()||_.isZero())return new o(0)._forceRed(this);var L=u.mul(_),I=L.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=L.isub(I).iushrn(this.shift),r=x;return x.cmp(this.m)>=0?r=x.isub(this.m):x.cmpn(0)<0&&(r=x.iadd(this.m)),r._forceRed(this)},a.prototype.invm=function(u){return this.imod(u._invmp(this.m).mul(this.r2))._forceRed(this)}}(Ve=m.nmd(Ve),this)},7950:(Ve,Q,m)=>{var e;function t(C){this.rand=C}if(Ve.exports=function(o){return e||(e=new t(null)),e.generate(o)},Ve.exports.Rand=t,t.prototype.generate=function(o){return this._rand(o)},t.prototype._rand=function(o){if(this.rand.getBytes)return this.rand.getBytes(o);for(var M=new Uint8Array(o),l=0;l<M.length;l++)M[l]=this.rand.getByte();return M},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?t.prototype._rand=function(o){var M=new Uint8Array(o);return self.crypto.getRandomValues(M),M}:self.msCrypto&&self.msCrypto.getRandomValues?t.prototype._rand=function(o){var M=new Uint8Array(o);return self.msCrypto.getRandomValues(M),M}:"object"==typeof window&&(t.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var y=m(1348);if("function"!=typeof y.randomBytes)throw new Error("Not supported");t.prototype._rand=function(o){return y.randomBytes(o)}}catch(C){}},1899:(Ve,Q,m)=>{var e=m(3502).Buffer;function t(N){e.isBuffer(N)||(N=e.from(N));for(var s=N.length/4|0,D=new Array(s),A=0;A<s;A++)D[A]=N.readUInt32BE(4*A);return D}function y(N){for(;0<N.length;N++)N[0]=0}function C(N,s,D,A,O){for(var _e,ce,re,de,E=D[0],P=D[1],w=D[2],Z=D[3],j=N[0]^s[0],W=N[1]^s[1],ie=N[2]^s[2],ee=N[3]^s[3],oe=4,ae=1;ae<O;ae++)_e=E[j>>>24]^P[W>>>16&255]^w[ie>>>8&255]^Z[255&ee]^s[oe++],ce=E[W>>>24]^P[ie>>>16&255]^w[ee>>>8&255]^Z[255&j]^s[oe++],re=E[ie>>>24]^P[ee>>>16&255]^w[j>>>8&255]^Z[255&W]^s[oe++],de=E[ee>>>24]^P[j>>>16&255]^w[W>>>8&255]^Z[255&ie]^s[oe++],j=_e,W=ce,ie=re,ee=de;return _e=(A[j>>>24]<<24|A[W>>>16&255]<<16|A[ie>>>8&255]<<8|A[255&ee])^s[oe++],ce=(A[W>>>24]<<24|A[ie>>>16&255]<<16|A[ee>>>8&255]<<8|A[255&j])^s[oe++],re=(A[ie>>>24]<<24|A[ee>>>16&255]<<16|A[j>>>8&255]<<8|A[255&W])^s[oe++],de=(A[ee>>>24]<<24|A[j>>>16&255]<<16|A[W>>>8&255]<<8|A[255&ie])^s[oe++],[_e>>>=0,ce>>>=0,re>>>=0,de>>>=0]}var o=[0,1,2,4,8,16,32,64,128,27,54],M=function(){for(var N=new Array(256),s=0;s<256;s++)N[s]=s<128?s<<1:s<<1^283;for(var D=[],A=[],O=[[],[],[],[]],E=[[],[],[],[]],P=0,w=0,Z=0;Z<256;++Z){var j=w^w<<1^w<<2^w<<3^w<<4;D[P]=j=j>>>8^255&j^99,A[j]=P;var W=N[P],ie=N[W],ee=N[ie],_e=257*N[j]^16843008*j;O[0][P]=_e<<24|_e>>>8,O[1][P]=_e<<16|_e>>>16,O[2][P]=_e<<8|_e>>>24,O[3][P]=_e,E[0][j]=(_e=16843009*ee^65537*ie^257*W^16843008*P)<<24|_e>>>8,E[1][j]=_e<<16|_e>>>16,E[2][j]=_e<<8|_e>>>24,E[3][j]=_e,0===P?P=w=1:(P=W^N[N[N[ee^W]]],w^=N[N[w]])}return{SBOX:D,INV_SBOX:A,SUB_MIX:O,INV_SUB_MIX:E}}();function l(N){this._key=t(N),this._reset()}l.blockSize=16,l.keySize=32,l.prototype.blockSize=l.blockSize,l.prototype.keySize=l.keySize,l.prototype._reset=function(){for(var N=this._key,s=N.length,D=s+6,A=4*(D+1),O=[],E=0;E<s;E++)O[E]=N[E];for(E=s;E<A;E++){var P=O[E-1];E%s==0?(P=M.SBOX[(P=P<<8|P>>>24)>>>24]<<24|M.SBOX[P>>>16&255]<<16|M.SBOX[P>>>8&255]<<8|M.SBOX[255&P],P^=o[E/s|0]<<24):s>6&&E%s==4&&(P=M.SBOX[P>>>24]<<24|M.SBOX[P>>>16&255]<<16|M.SBOX[P>>>8&255]<<8|M.SBOX[255&P]),O[E]=O[E-s]^P}for(var w=[],Z=0;Z<A;Z++){var j=A-Z,W=O[j-(Z%4?0:4)];w[Z]=Z<4||j<=4?W:M.INV_SUB_MIX[0][M.SBOX[W>>>24]]^M.INV_SUB_MIX[1][M.SBOX[W>>>16&255]]^M.INV_SUB_MIX[2][M.SBOX[W>>>8&255]]^M.INV_SUB_MIX[3][M.SBOX[255&W]]}this._nRounds=D,this._keySchedule=O,this._invKeySchedule=w},l.prototype.encryptBlockRaw=function(N){return C(N=t(N),this._keySchedule,M.SUB_MIX,M.SBOX,this._nRounds)},l.prototype.encryptBlock=function(N){var s=this.encryptBlockRaw(N),D=e.allocUnsafe(16);return D.writeUInt32BE(s[0],0),D.writeUInt32BE(s[1],4),D.writeUInt32BE(s[2],8),D.writeUInt32BE(s[3],12),D},l.prototype.decryptBlock=function(N){var s=(N=t(N))[1];N[1]=N[3],N[3]=s;var D=C(N,this._invKeySchedule,M.INV_SUB_MIX,M.INV_SBOX,this._nRounds),A=e.allocUnsafe(16);return A.writeUInt32BE(D[0],0),A.writeUInt32BE(D[3],4),A.writeUInt32BE(D[2],8),A.writeUInt32BE(D[1],12),A},l.prototype.scrub=function(){y(this._keySchedule),y(this._invKeySchedule),y(this._key)},Ve.exports.AES=l},9382:(Ve,Q,m)=>{var e=m(1899),t=m(3502).Buffer,y=m(1052),C=m(3894),o=m(8857),M=m(8789),l=m(7968);function D(A,O,E,P){y.call(this);var w=t.alloc(4,0);this._cipher=new e.AES(O);var Z=this._cipher.encryptBlock(w);this._ghash=new o(Z),E=function s(A,O,E){if(12===O.length)return A._finID=t.concat([O,t.from([0,0,0,1])]),t.concat([O,t.from([0,0,0,2])]);var P=new o(E),w=O.length,Z=w%16;P.update(O),Z&&P.update(t.alloc(Z=16-Z,0)),P.update(t.alloc(8,0));var j=8*w,W=t.alloc(8);W.writeUIntBE(j,0,8),P.update(W),A._finID=P.state;var ie=t.from(A._finID);return l(ie),ie}(this,E,Z),this._prev=t.from(E),this._cache=t.allocUnsafe(0),this._secCache=t.allocUnsafe(0),this._decrypt=P,this._alen=0,this._len=0,this._mode=A,this._authTag=null,this._called=!1}C(D,y),D.prototype._update=function(A){if(!this._called&&this._alen){var O=16-this._alen%16;O<16&&(O=t.alloc(O,0),this._ghash.update(O))}this._called=!0;var E=this._mode.encrypt(this,A);return this._ghash.update(this._decrypt?A:E),this._len+=A.length,E},D.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var A=M(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function N(A,O){var E=0;A.length!==O.length&&E++;for(var P=Math.min(A.length,O.length),w=0;w<P;++w)E+=A[w]^O[w];return E}(A,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=A,this._cipher.scrub()},D.prototype.getAuthTag=function(){if(this._decrypt||!t.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},D.prototype.setAuthTag=function(O){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=O},D.prototype.setAAD=function(O){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(O),this._alen+=O.length},Ve.exports=D},4330:(Ve,Q,m)=>{var e=m(6900),t=m(856),y=m(4946);Q.createCipher=Q.Cipher=e.createCipher,Q.createCipheriv=Q.Cipheriv=e.createCipheriv,Q.createDecipher=Q.Decipher=t.createDecipher,Q.createDecipheriv=Q.Decipheriv=t.createDecipheriv,Q.listCiphers=Q.getCiphers=function C(){return Object.keys(y)}},856:(Ve,Q,m)=>{var e=m(9382),t=m(3502).Buffer,y=m(9171),C=m(8441),o=m(1052),M=m(1899),l=m(347);function s(P,w,Z){o.call(this),this._cache=new D,this._last=void 0,this._cipher=new M.AES(w),this._prev=t.from(Z),this._mode=P,this._autopadding=!0}function D(){this.cache=t.allocUnsafe(0)}function O(P,w,Z){var j=y[P.toLowerCase()];if(!j)throw new TypeError("invalid suite type");if("string"==typeof Z&&(Z=t.from(Z)),"GCM"!==j.mode&&Z.length!==j.iv)throw new TypeError("invalid iv length "+Z.length);if("string"==typeof w&&(w=t.from(w)),w.length!==j.key/8)throw new TypeError("invalid key length "+w.length);return"stream"===j.type?new C(j.module,w,Z,!0):"auth"===j.type?new e(j.module,w,Z,!0):new s(j.module,w,Z)}m(3894)(s,o),s.prototype._update=function(P){this._cache.add(P);for(var w,Z,j=[];w=this._cache.get(this._autopadding);)Z=this._mode.decrypt(this,w),j.push(Z);return t.concat(j)},s.prototype._final=function(){var P=this._cache.flush();if(this._autopadding)return function A(P){var w=P[15];if(w<1||w>16)throw new Error("unable to decrypt data");for(var Z=-1;++Z<w;)if(P[Z+(16-w)]!==w)throw new Error("unable to decrypt data");if(16!==w)return P.slice(0,16-w)}(this._mode.decrypt(this,P));if(P)throw new Error("data not multiple of block length")},s.prototype.setAutoPadding=function(P){return this._autopadding=!!P,this},D.prototype.add=function(P){this.cache=t.concat([this.cache,P])},D.prototype.get=function(P){var w;if(P){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},D.prototype.flush=function(){if(this.cache.length)return this.cache},Q.createDecipher=function E(P,w){var Z=y[P.toLowerCase()];if(!Z)throw new TypeError("invalid suite type");var j=l(w,!1,Z.key,Z.iv);return O(P,j.key,j.iv)},Q.createDecipheriv=O},6900:(Ve,Q,m)=>{var e=m(9171),t=m(9382),y=m(3502).Buffer,C=m(8441),o=m(1052),M=m(1899),l=m(347);function s(P,w,Z){o.call(this),this._cache=new A,this._cipher=new M.AES(w),this._prev=y.from(Z),this._mode=P,this._autopadding=!0}m(3894)(s,o),s.prototype._update=function(P){this._cache.add(P);for(var w,Z,j=[];w=this._cache.get();)Z=this._mode.encrypt(this,w),j.push(Z);return y.concat(j)};var D=y.alloc(16,16);function A(){this.cache=y.allocUnsafe(0)}function O(P,w,Z){var j=e[P.toLowerCase()];if(!j)throw new TypeError("invalid suite type");if("string"==typeof w&&(w=y.from(w)),w.length!==j.key/8)throw new TypeError("invalid key length "+w.length);if("string"==typeof Z&&(Z=y.from(Z)),"GCM"!==j.mode&&Z.length!==j.iv)throw new TypeError("invalid iv length "+Z.length);return"stream"===j.type?new C(j.module,w,Z):"auth"===j.type?new t(j.module,w,Z):new s(j.module,w,Z)}s.prototype._final=function(){var P=this._cache.flush();if(this._autopadding)return P=this._mode.encrypt(this,P),this._cipher.scrub(),P;if(!P.equals(D))throw this._cipher.scrub(),new Error("data not multiple of block length")},s.prototype.setAutoPadding=function(P){return this._autopadding=!!P,this},A.prototype.add=function(P){this.cache=y.concat([this.cache,P])},A.prototype.get=function(){if(this.cache.length>15){var P=this.cache.slice(0,16);return this.cache=this.cache.slice(16),P}return null},A.prototype.flush=function(){for(var P=16-this.cache.length,w=y.allocUnsafe(P),Z=-1;++Z<P;)w.writeUInt8(P,Z);return y.concat([this.cache,w])},Q.createCipheriv=O,Q.createCipher=function E(P,w){var Z=e[P.toLowerCase()];if(!Z)throw new TypeError("invalid suite type");var j=l(w,!1,Z.key,Z.iv);return O(P,j.key,j.iv)}},8857:(Ve,Q,m)=>{var e=m(3502).Buffer,t=e.alloc(16,0);function C(M){var l=e.allocUnsafe(16);return l.writeUInt32BE(M[0]>>>0,0),l.writeUInt32BE(M[1]>>>0,4),l.writeUInt32BE(M[2]>>>0,8),l.writeUInt32BE(M[3]>>>0,12),l}function o(M){this.h=M,this.state=e.alloc(16,0),this.cache=e.allocUnsafe(0)}o.prototype.ghash=function(M){for(var l=-1;++l<M.length;)this.state[l]^=M[l];this._multiply()},o.prototype._multiply=function(){for(var N,D,M=function y(M){return[M.readUInt32BE(0),M.readUInt32BE(4),M.readUInt32BE(8),M.readUInt32BE(12)]}(this.h),l=[0,0,0,0],A=-1;++A<128;){for(0!=(this.state[~~(A/8)]&1<<7-A%8)&&(l[0]^=M[0],l[1]^=M[1],l[2]^=M[2],l[3]^=M[3]),D=0!=(1&M[3]),N=3;N>0;N--)M[N]=M[N]>>>1|(1&M[N-1])<<31;M[0]=M[0]>>>1,D&&(M[0]=M[0]^225<<24)}this.state=C(l)},o.prototype.update=function(M){this.cache=e.concat([this.cache,M]);for(var l;this.cache.length>=16;)l=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(l)},o.prototype.final=function(M,l){return this.cache.length&&this.ghash(e.concat([this.cache,t],16)),this.ghash(C([0,M,0,l])),this.state},Ve.exports=o},7968:Ve=>{Ve.exports=function Q(m){for(var t,e=m.length;e--;){if(255!==(t=m.readUInt8(e))){t++,m.writeUInt8(t,e);break}m.writeUInt8(0,e)}}},4903:(Ve,Q,m)=>{var e=m(8789);Q.encrypt=function(t,y){var C=e(y,t._prev);return t._prev=t._cipher.encryptBlock(C),t._prev},Q.decrypt=function(t,y){var C=t._prev;t._prev=y;var o=t._cipher.decryptBlock(y);return e(o,C)}},9885:(Ve,Q,m)=>{var e=m(3502).Buffer,t=m(8789);function y(C,o,M){var l=o.length,N=t(o,C._cache);return C._cache=C._cache.slice(l),C._prev=e.concat([C._prev,M?o:N]),N}Q.encrypt=function(C,o,M){for(var N,l=e.allocUnsafe(0);o.length;){if(0===C._cache.length&&(C._cache=C._cipher.encryptBlock(C._prev),C._prev=e.allocUnsafe(0)),!(C._cache.length<=o.length)){l=e.concat([l,y(C,o,M)]);break}l=e.concat([l,y(C,o.slice(0,N=C._cache.length),M)]),o=o.slice(N)}return l}},6531:(Ve,Q,m)=>{var e=m(3502).Buffer;function t(C,o,M){for(var A,O,N=-1,D=0;++N<8;)D+=(128&(O=C._cipher.encryptBlock(C._prev)[0]^(A=o&1<<7-N?128:0)))>>N%8,C._prev=y(C._prev,M?A:O);return D}function y(C,o){var M=C.length,l=-1,N=e.allocUnsafe(C.length);for(C=e.concat([C,e.from([o])]);++l<M;)N[l]=C[l]<<1|C[l+1]>>7;return N}Q.encrypt=function(C,o,M){for(var l=o.length,N=e.allocUnsafe(l),s=-1;++s<l;)N[s]=t(C,o[s],M);return N}},1641:(Ve,Q,m)=>{var e=m(3502).Buffer;function t(y,C,o){var l=y._cipher.encryptBlock(y._prev)[0]^C;return y._prev=e.concat([y._prev.slice(1),e.from([o?C:l])]),l}Q.encrypt=function(y,C,o){for(var M=C.length,l=e.allocUnsafe(M),N=-1;++N<M;)l[N]=t(y,C[N],o);return l}},1150:(Ve,Q,m)=>{var e=m(8789),t=m(3502).Buffer,y=m(7968);function C(M){var l=M._cipher.encryptBlockRaw(M._prev);return y(M._prev),l}Q.encrypt=function(M,l){var N=Math.ceil(l.length/16),s=M._cache.length;M._cache=t.concat([M._cache,t.allocUnsafe(16*N)]);for(var D=0;D<N;D++){var A=C(M),O=s+16*D;M._cache.writeUInt32BE(A[0],O+0),M._cache.writeUInt32BE(A[1],O+4),M._cache.writeUInt32BE(A[2],O+8),M._cache.writeUInt32BE(A[3],O+12)}var E=M._cache.slice(0,l.length);return M._cache=M._cache.slice(l.length),e(l,E)}},1704:(Ve,Q)=>{Q.encrypt=function(m,e){return m._cipher.encryptBlock(e)},Q.decrypt=function(m,e){return m._cipher.decryptBlock(e)}},9171:(Ve,Q,m)=>{var e={ECB:m(1704),CBC:m(4903),CFB:m(9885),CFB8:m(1641),CFB1:m(6531),OFB:m(6816),CTR:m(1150),GCM:m(1150)},t=m(4946);for(var y in t)t[y].module=e[t[y].mode];Ve.exports=t},6816:(Ve,Q,m)=>{var e=m(8789);function t(y){return y._prev=y._cipher.encryptBlock(y._prev),y._prev}Q.encrypt=function(y,C){for(;y._cache.length<C.length;)y._cache=Buffer.concat([y._cache,t(y)]);var o=y._cache.slice(0,C.length);return y._cache=y._cache.slice(C.length),e(C,o)}},8441:(Ve,Q,m)=>{var e=m(1899),t=m(3502).Buffer,y=m(1052);function o(M,l,N,s){y.call(this),this._cipher=new e.AES(l),this._prev=t.from(N),this._cache=t.allocUnsafe(0),this._secCache=t.allocUnsafe(0),this._decrypt=s,this._mode=M}m(3894)(o,y),o.prototype._update=function(M){return this._mode.encrypt(this,M,this._decrypt)},o.prototype._final=function(){this._cipher.scrub()},Ve.exports=o},5255:(Ve,Q,m)=>{var e=m(9004),t=m(4330),y=m(9171),C=m(1115),o=m(347);function N(A,O,E){if(A=A.toLowerCase(),y[A])return t.createCipheriv(A,O,E);if(C[A])return new e({key:O,iv:E,mode:A});throw new TypeError("invalid suite type")}function s(A,O,E){if(A=A.toLowerCase(),y[A])return t.createDecipheriv(A,O,E);if(C[A])return new e({key:O,iv:E,mode:A,decrypt:!0});throw new TypeError("invalid suite type")}Q.createCipher=Q.Cipher=function M(A,O){var E,P;if(A=A.toLowerCase(),y[A])E=y[A].key,P=y[A].iv;else{if(!C[A])throw new TypeError("invalid suite type");E=8*C[A].key,P=C[A].iv}var w=o(O,!1,E,P);return N(A,w.key,w.iv)},Q.createCipheriv=Q.Cipheriv=N,Q.createDecipher=Q.Decipher=function l(A,O){var E,P;if(A=A.toLowerCase(),y[A])E=y[A].key,P=y[A].iv;else{if(!C[A])throw new TypeError("invalid suite type");E=8*C[A].key,P=C[A].iv}var w=o(O,!1,E,P);return s(A,w.key,w.iv)},Q.createDecipheriv=Q.Decipheriv=s,Q.listCiphers=Q.getCiphers=function D(){return Object.keys(C).concat(t.getCiphers())}},9004:(Ve,Q,m)=>{var e=m(1052),t=m(3684),y=m(3894),C=m(3502).Buffer,o={"des-ede3-cbc":t.CBC.instantiate(t.EDE),"des-ede3":t.EDE,"des-ede-cbc":t.CBC.instantiate(t.EDE),"des-ede":t.EDE,"des-cbc":t.CBC.instantiate(t.DES),"des-ecb":t.DES};function M(l){e.call(this);var D,N=l.mode.toLowerCase(),s=o[N];D=l.decrypt?"decrypt":"encrypt";var A=l.key;C.isBuffer(A)||(A=C.from(A)),("des-ede"===N||"des-ede-cbc"===N)&&(A=C.concat([A,A.slice(0,8)]));var O=l.iv;C.isBuffer(O)||(O=C.from(O)),this._des=s.create({key:A,iv:O,type:D})}o.des=o["des-cbc"],o.des3=o["des-ede3-cbc"],Ve.exports=M,y(M,e),M.prototype._update=function(l){return C.from(this._des.update(l))},M.prototype._final=function(){return C.from(this._des.final())}},1115:(Ve,Q)=>{Q["des-ecb"]={key:8,iv:0},Q["des-cbc"]=Q.des={key:8,iv:8},Q["des-ede3-cbc"]=Q.des3={key:24,iv:8},Q["des-ede3"]={key:24,iv:0},Q["des-ede-cbc"]={key:16,iv:8},Q["des-ede"]={key:16,iv:0}},8466:(Ve,Q,m)=>{var e=m(8538),t=m(3753);function C(M){var N,l=M.modulus.byteLength();do{N=new e(t(l))}while(N.cmp(M.modulus)>=0||!N.umod(M.prime1)||!N.umod(M.prime2));return N}function o(M,l){var N=function y(M){var l=C(M);return{blinder:l.toRed(e.mont(M.modulus)).redPow(new e(M.publicExponent)).fromRed(),unblinder:l.invm(M.modulus)}}(l),s=l.modulus.byteLength(),D=new e(M).mul(N.blinder).umod(l.modulus),A=D.toRed(e.mont(l.prime1)),O=D.toRed(e.mont(l.prime2)),E=l.coefficient,P=l.prime1,w=l.prime2,Z=A.redPow(l.exponent1).fromRed(),j=O.redPow(l.exponent2).fromRed(),W=Z.isub(j).imul(E).umod(P).imul(w);return j.iadd(W).imul(N.unblinder).umod(l.modulus).toArrayLike(Buffer,"be",s)}o.getr=C,Ve.exports=o},7793:(Ve,Q,m)=>{Ve.exports=m(5207)},3923:(Ve,Q,m)=>{var e=m(8446).Buffer,t=m(6386),y=m(5685),C=m(3894),o=m(9947),M=m(3946),l=m(5207);function N(O){y.Writable.call(this);var E=l[O];if(!E)throw new Error("Unknown message digest");this._hashType=E.hash,this._hash=t(E.hash),this._tag=E.id,this._signType=E.sign}function s(O){y.Writable.call(this);var E=l[O];if(!E)throw new Error("Unknown message digest");this._hash=t(E.hash),this._tag=E.id,this._signType=E.sign}function D(O){return new N(O)}function A(O){return new s(O)}Object.keys(l).forEach(function(O){l[O].id=e.from(l[O].id,"hex"),l[O.toLowerCase()]=l[O]}),C(N,y.Writable),N.prototype._write=function(E,P,w){this._hash.update(E),w()},N.prototype.update=function(E,P){return"string"==typeof E&&(E=e.from(E,P)),this._hash.update(E),this},N.prototype.sign=function(E,P){this.end();var w=this._hash.digest(),Z=o(w,E,this._hashType,this._signType,this._tag);return P?Z.toString(P):Z},C(s,y.Writable),s.prototype._write=function(E,P,w){this._hash.update(E),w()},s.prototype.update=function(E,P){return"string"==typeof E&&(E=e.from(E,P)),this._hash.update(E),this},s.prototype.verify=function(E,P,w){"string"==typeof P&&(P=e.from(P,w)),this.end();var Z=this._hash.digest();return M(P,Z,E,this._signType,this._tag)},Ve.exports={Sign:D,Verify:A,createSign:D,createVerify:A}},9947:(Ve,Q,m)=>{var e=m(8446).Buffer,t=m(4529),y=m(8466),C=m(7715).ec,o=m(8538),M=m(2772),l=m(1308);function O(j,W,ie,ee){if((j=e.from(j.toArray())).length<W.byteLength()){var _e=e.alloc(W.byteLength()-j.length);j=e.concat([_e,j])}var ce=ie.length,re=function P(j,W){j=(j=E(j,W)).mod(W);var ie=e.from(j.toArray());if(ie.length<W.byteLength()){var ee=e.alloc(W.byteLength()-ie.length);ie=e.concat([ee,ie])}return ie}(ie,W),de=e.alloc(ce);de.fill(1);var oe=e.alloc(ce);return oe=t(ee,oe).update(de).update(e.from([0])).update(j).update(re).digest(),de=t(ee,oe).update(de).digest(),{k:oe=t(ee,oe).update(de).update(e.from([1])).update(j).update(re).digest(),v:de=t(ee,oe).update(de).digest()}}function E(j,W){var ie=new o(j),ee=(j.length<<3)-W.bitLength();return ee>0&&ie.ishrn(ee),ie}function w(j,W,ie){var ee,_e;do{for(ee=e.alloc(0);8*ee.length<j.bitLength();)W.v=t(ie,W.k).update(W.v).digest(),ee=e.concat([ee,W.v]);_e=E(ee,j),W.k=t(ie,W.k).update(W.v).update(e.from([0])).digest(),W.v=t(ie,W.k).update(W.v).digest()}while(-1!==_e.cmp(j));return _e}function Z(j,W,ie,ee){return j.toRed(o.mont(ie)).redPow(W).fromRed().mod(ee)}Ve.exports=function N(j,W,ie,ee,_e){var ce=M(W);if(ce.curve){if("ecdsa"!==ee&&"ecdsa/rsa"!==ee)throw new Error("wrong private key type");return function s(j,W){var ie=l[W.curve.join(".")];if(!ie)throw new Error("unknown curve "+W.curve.join("."));var ce=new C(ie).keyFromPrivate(W.privateKey).sign(j);return e.from(ce.toDER())}(j,ce)}if("dsa"===ce.type){if("dsa"!==ee)throw new Error("wrong private key type");return function D(j,W,ie){for(var oe,ee=W.params.priv_key,_e=W.params.p,ce=W.params.q,re=W.params.g,de=new o(0),ae=E(j,ce).mod(ce),b=!1,i=O(ee,ce,j,ie);!1===b;)de=Z(re,oe=w(ce,i,ie),_e,ce),0===(b=oe.invm(ce).imul(ae.add(ee.mul(de))).mod(ce)).cmpn(0)&&(b=!1,de=new o(0));return function A(j,W){j=j.toArray(),W=W.toArray(),128&j[0]&&(j=[0].concat(j)),128&W[0]&&(W=[0].concat(W));var ee=[48,j.length+W.length+4,2,j.length];return ee=ee.concat(j,[2,W.length],W),e.from(ee)}(de,b)}(j,ce,ie)}if("rsa"!==ee&&"ecdsa/rsa"!==ee)throw new Error("wrong private key type");j=e.concat([_e,j]);for(var re=ce.modulus.byteLength(),de=[0,1];j.length+de.length+1<re;)de.push(255);de.push(0);for(var oe=-1;++oe<j.length;)de.push(j[oe]);return y(de,ce)},Ve.exports.getKey=O,Ve.exports.makeKey=w},3946:(Ve,Q,m)=>{var e=m(8446).Buffer,t=m(8538),y=m(7715).ec,C=m(2772),o=m(1308);function s(D,A){if(D.cmpn(0)<=0)throw new Error("invalid sig");if(D.cmp(A)>=A)throw new Error("invalid sig")}Ve.exports=function M(D,A,O,E,P){var w=C(O);if("ec"===w.type){if("ecdsa"!==E&&"ecdsa/rsa"!==E)throw new Error("wrong public key type");return function l(D,A,O){var E=o[O.data.algorithm.curve.join(".")];if(!E)throw new Error("unknown curve "+O.data.algorithm.curve.join("."));return new y(E).verify(A,D,O.data.subjectPrivateKey.data)}(D,A,w)}if("dsa"===w.type){if("dsa"!==E)throw new Error("wrong public key type");return function N(D,A,O){var E=O.data.p,P=O.data.q,w=O.data.g,Z=O.data.pub_key,j=C.signature.decode(D,"der"),W=j.s,ie=j.r;s(W,P),s(ie,P);var ee=t.mont(E),_e=W.invm(P);return 0===w.toRed(ee).redPow(new t(A).mul(_e).mod(P)).fromRed().mul(Z.toRed(ee).redPow(ie.mul(_e).mod(P)).fromRed()).mod(E).mod(P).cmp(ie)}(D,A,w)}if("rsa"!==E&&"ecdsa/rsa"!==E)throw new Error("wrong public key type");A=e.concat([P,A]);for(var Z=w.modulus.byteLength(),j=[1],W=0;A.length+j.length+2<Z;)j.push(255),W++;j.push(0);for(var ie=-1;++ie<A.length;)j.push(A[ie]);j=e.from(j);var ee=t.mont(w.modulus);D=(D=new t(D).toRed(ee)).redPow(new t(w.publicExponent)),D=e.from(D.fromRed().toArray());var _e=W<8?1:0;for(Z=Math.min(D.length,j.length),D.length!==j.length&&(_e=1),ie=-1;++ie<Z;)_e|=D[ie]^j[ie];return 0===_e}},8446:(Ve,Q,m)=>{var e=m(3172),t=e.Buffer;function y(o,M){for(var l in o)M[l]=o[l]}function C(o,M,l){return t(o,M,l)}t.from&&t.alloc&&t.allocUnsafe&&t.allocUnsafeSlow?Ve.exports=e:(y(e,Q),Q.Buffer=C),C.prototype=Object.create(t.prototype),y(t,C),C.from=function(o,M,l){if("number"==typeof o)throw new TypeError("Argument must not be a number");return t(o,M,l)},C.alloc=function(o,M,l){if("number"!=typeof o)throw new TypeError("Argument must be a number");var N=t(o);return void 0!==M?"string"==typeof l?N.fill(M,l):N.fill(M):N.fill(0),N},C.allocUnsafe=function(o){if("number"!=typeof o)throw new TypeError("Argument must be a number");return t(o)},C.allocUnsafeSlow=function(o){if("number"!=typeof o)throw new TypeError("Argument must be a number");return e.SlowBuffer(o)}},8789:Ve=>{Ve.exports=function(m,e){for(var t=Math.min(m.length,e.length),y=new Buffer(t),C=0;C<t;++C)y[C]=m[C]^e[C];return y}},3172:(Ve,Q,m)=>{"use strict";var e=m(5343),t=m(8461),y="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;Q.Buffer=l,Q.SlowBuffer=function W(Re){return+Re!=Re&&(Re=0),l.alloc(+Re)},Q.INSPECT_MAX_BYTES=50;var C=2147483647;function M(Re){if(Re>C)throw new RangeError('The value "'+Re+'" is invalid for option "size"');var Ne=new Uint8Array(Re);return Object.setPrototypeOf(Ne,l.prototype),Ne}function l(Re,Ne,he){if("number"==typeof Re){if("string"==typeof Ne)throw new TypeError('The "string" argument must be of type string. Received type number');return A(Re)}return N(Re,Ne,he)}function N(Re,Ne,he){if("string"==typeof Re)return function O(Re,Ne){if(("string"!=typeof Ne||""===Ne)&&(Ne="utf8"),!l.isEncoding(Ne))throw new TypeError("Unknown encoding: "+Ne);var he=0|ie(Re,Ne),Le=M(he),ke=Le.write(Re,Ne);return ke!==he&&(Le=Le.slice(0,ke)),Le}(Re,Ne);if(ArrayBuffer.isView(Re))return function P(Re){if(z(Re,Uint8Array)){var Ne=new Uint8Array(Re);return w(Ne.buffer,Ne.byteOffset,Ne.byteLength)}return E(Re)}(Re);if(null==Re)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Re);if(z(Re,ArrayBuffer)||Re&&z(Re.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(z(Re,SharedArrayBuffer)||Re&&z(Re.buffer,SharedArrayBuffer)))return w(Re,Ne,he);if("number"==typeof Re)throw new TypeError('The "value" argument must not be of type number. Received type number');var Le=Re.valueOf&&Re.valueOf();if(null!=Le&&Le!==Re)return l.from(Le,Ne,he);var ke=function Z(Re){if(l.isBuffer(Re)){var Ne=0|j(Re.length),he=M(Ne);return 0===he.length||Re.copy(he,0,0,Ne),he}return void 0!==Re.length?"number"!=typeof Re.length||Ge(Re.length)?M(0):E(Re):"Buffer"===Re.type&&Array.isArray(Re.data)?E(Re.data):void 0}(Re);if(ke)return ke;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof Re[Symbol.toPrimitive])return l.from(Re[Symbol.toPrimitive]("string"),Ne,he);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Re)}function s(Re){if("number"!=typeof Re)throw new TypeError('"size" argument must be of type number');if(Re<0)throw new RangeError('The value "'+Re+'" is invalid for option "size"')}function A(Re){return s(Re),M(Re<0?0:0|j(Re))}function E(Re){for(var Ne=Re.length<0?0:0|j(Re.length),he=M(Ne),Le=0;Le<Ne;Le+=1)he[Le]=255&Re[Le];return he}function w(Re,Ne,he){if(Ne<0||Re.byteLength<Ne)throw new RangeError('"offset" is outside of buffer bounds');if(Re.byteLength<Ne+(he||0))throw new RangeError('"length" is outside of buffer bounds');var Le;return Le=void 0===Ne&&void 0===he?new Uint8Array(Re):void 0===he?new Uint8Array(Re,Ne):new Uint8Array(Re,Ne,he),Object.setPrototypeOf(Le,l.prototype),Le}function j(Re){if(Re>=C)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+C.toString(16)+" bytes");return 0|Re}function ie(Re,Ne){if(l.isBuffer(Re))return Re.length;if(ArrayBuffer.isView(Re)||z(Re,ArrayBuffer))return Re.byteLength;if("string"!=typeof Re)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Re);var he=Re.length,Le=arguments.length>2&&!0===arguments[2];if(!Le&&0===he)return 0;for(var ke=!1;;)switch(Ne){case"ascii":case"latin1":case"binary":return he;case"utf8":case"utf-8":return ze(Re).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*he;case"hex":return he>>>1;case"base64":return Me(Re).length;default:if(ke)return Le?-1:ze(Re).length;Ne=(""+Ne).toLowerCase(),ke=!0}}function ee(Re,Ne,he){var Le=!1;if((void 0===Ne||Ne<0)&&(Ne=0),Ne>this.length||((void 0===he||he>this.length)&&(he=this.length),he<=0)||(he>>>=0)<=(Ne>>>=0))return"";for(Re||(Re="utf8");;)switch(Re){case"hex":return x(this,Ne,he);case"utf8":case"utf-8":return p(this,Ne,he);case"ascii":return L(this,Ne,he);case"latin1":case"binary":return I(this,Ne,he);case"base64":return a(this,Ne,he);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r(this,Ne,he);default:if(Le)throw new TypeError("Unknown encoding: "+Re);Re=(Re+"").toLowerCase(),Le=!0}}function _e(Re,Ne,he){var Le=Re[Ne];Re[Ne]=Re[he],Re[he]=Le}function ce(Re,Ne,he,Le,ke){if(0===Re.length)return-1;if("string"==typeof he?(Le=he,he=0):he>2147483647?he=2147483647:he<-2147483648&&(he=-2147483648),Ge(he=+he)&&(he=ke?0:Re.length-1),he<0&&(he=Re.length+he),he>=Re.length){if(ke)return-1;he=Re.length-1}else if(he<0){if(!ke)return-1;he=0}if("string"==typeof Ne&&(Ne=l.from(Ne,Le)),l.isBuffer(Ne))return 0===Ne.length?-1:re(Re,Ne,he,Le,ke);if("number"==typeof Ne)return Ne&=255,"function"==typeof Uint8Array.prototype.indexOf?ke?Uint8Array.prototype.indexOf.call(Re,Ne,he):Uint8Array.prototype.lastIndexOf.call(Re,Ne,he):re(Re,[Ne],he,Le,ke);throw new TypeError("val must be string, number or Buffer")}function re(Re,Ne,he,Le,ke){var Ue,q=1,$=Re.length,le=Ne.length;if(void 0!==Le&&("ucs2"===(Le=String(Le).toLowerCase())||"ucs-2"===Le||"utf16le"===Le||"utf-16le"===Le)){if(Re.length<2||Ne.length<2)return-1;q=2,$/=2,le/=2,he/=2}function xe(it,rt){return 1===q?it[rt]:it.readUInt16BE(rt*q)}if(ke){var lt=-1;for(Ue=he;Ue<$;Ue++)if(xe(Re,Ue)===xe(Ne,-1===lt?0:Ue-lt)){if(-1===lt&&(lt=Ue),Ue-lt+1===le)return lt*q}else-1!==lt&&(Ue-=Ue-lt),lt=-1}else for(he+le>$&&(he=$-le),Ue=he;Ue>=0;Ue--){for(var nt=!0,ft=0;ft<le;ft++)if(xe(Re,Ue+ft)!==xe(Ne,ft)){nt=!1;break}if(nt)return Ue}return-1}function de(Re,Ne,he,Le){he=Number(he)||0;var ke=Re.length-he;Le?(Le=Number(Le))>ke&&(Le=ke):Le=ke;var q=Ne.length;Le>q/2&&(Le=q/2);for(var $=0;$<Le;++$){var le=parseInt(Ne.substr(2*$,2),16);if(Ge(le))return $;Re[he+$]=le}return $}function oe(Re,Ne,he,Le){return we(ze(Ne,Re.length-he),Re,he,Le)}function ae(Re,Ne,he,Le){return we(function Ie(Re){for(var Ne=[],he=0;he<Re.length;++he)Ne.push(255&Re.charCodeAt(he));return Ne}(Ne),Re,he,Le)}function b(Re,Ne,he,Le){return we(Me(Ne),Re,he,Le)}function i(Re,Ne,he,Le){return we(function K(Re,Ne){for(var he,Le,q=[],$=0;$<Re.length&&!((Ne-=2)<0);++$)Le=(he=Re.charCodeAt($))>>8,q.push(he%256),q.push(Le);return q}(Ne,Re.length-he),Re,he,Le)}function a(Re,Ne,he){return e.fromByteArray(0===Ne&&he===Re.length?Re:Re.slice(Ne,he))}function p(Re,Ne,he){he=Math.min(Re.length,he);for(var Le=[],ke=Ne;ke<he;){var xe,Ue,lt,nt,q=Re[ke],$=null,le=q>239?4:q>223?3:q>191?2:1;if(ke+le<=he)switch(le){case 1:q<128&&($=q);break;case 2:128==(192&(xe=Re[ke+1]))&&(nt=(31&q)<<6|63&xe)>127&&($=nt);break;case 3:Ue=Re[ke+2],128==(192&(xe=Re[ke+1]))&&128==(192&Ue)&&(nt=(15&q)<<12|(63&xe)<<6|63&Ue)>2047&&(nt<55296||nt>57343)&&($=nt);break;case 4:Ue=Re[ke+2],lt=Re[ke+3],128==(192&(xe=Re[ke+1]))&&128==(192&Ue)&&128==(192&lt)&&(nt=(15&q)<<18|(63&xe)<<12|(63&Ue)<<6|63&lt)>65535&&nt<1114112&&($=nt)}null===$?($=65533,le=1):$>65535&&(Le.push(($-=65536)>>>10&1023|55296),$=56320|1023&$),Le.push($),ke+=le}return function _(Re){var Ne=Re.length;if(Ne<=u)return String.fromCharCode.apply(String,Re);for(var he="",Le=0;Le<Ne;)he+=String.fromCharCode.apply(String,Re.slice(Le,Le+=u));return he}(Le)}Q.kMaxLength=C,!(l.TYPED_ARRAY_SUPPORT=function o(){try{var Re=new Uint8Array(1),Ne={foo:function(){return 42}};return Object.setPrototypeOf(Ne,Uint8Array.prototype),Object.setPrototypeOf(Re,Ne),42===Re.foo()}catch(he){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(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}}),l.poolSize=8192,l.from=function(Re,Ne,he){return N(Re,Ne,he)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array),l.alloc=function(Re,Ne,he){return function D(Re,Ne,he){return s(Re),Re<=0?M(Re):void 0!==Ne?"string"==typeof he?M(Re).fill(Ne,he):M(Re).fill(Ne):M(Re)}(Re,Ne,he)},l.allocUnsafe=function(Re){return A(Re)},l.allocUnsafeSlow=function(Re){return A(Re)},l.isBuffer=function(Ne){return null!=Ne&&!0===Ne._isBuffer&&Ne!==l.prototype},l.compare=function(Ne,he){if(z(Ne,Uint8Array)&&(Ne=l.from(Ne,Ne.offset,Ne.byteLength)),z(he,Uint8Array)&&(he=l.from(he,he.offset,he.byteLength)),!l.isBuffer(Ne)||!l.isBuffer(he))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Ne===he)return 0;for(var Le=Ne.length,ke=he.length,q=0,$=Math.min(Le,ke);q<$;++q)if(Ne[q]!==he[q]){Le=Ne[q],ke=he[q];break}return Le<ke?-1:ke<Le?1:0},l.isEncoding=function(Ne){switch(String(Ne).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}},l.concat=function(Ne,he){if(!Array.isArray(Ne))throw new TypeError('"list" argument must be an Array of Buffers');if(0===Ne.length)return l.alloc(0);var Le;if(void 0===he)for(he=0,Le=0;Le<Ne.length;++Le)he+=Ne[Le].length;var ke=l.allocUnsafe(he),q=0;for(Le=0;Le<Ne.length;++Le){var $=Ne[Le];if(z($,Uint8Array))q+$.length>ke.length?l.from($).copy(ke,q):Uint8Array.prototype.set.call(ke,$,q);else{if(!l.isBuffer($))throw new TypeError('"list" argument must be an Array of Buffers');$.copy(ke,q)}q+=$.length}return ke},l.byteLength=ie,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var Ne=this.length;if(Ne%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var he=0;he<Ne;he+=2)_e(this,he,he+1);return this},l.prototype.swap32=function(){var Ne=this.length;if(Ne%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var he=0;he<Ne;he+=4)_e(this,he,he+3),_e(this,he+1,he+2);return this},l.prototype.swap64=function(){var Ne=this.length;if(Ne%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var he=0;he<Ne;he+=8)_e(this,he,he+7),_e(this,he+1,he+6),_e(this,he+2,he+5),_e(this,he+3,he+4);return this},l.prototype.toLocaleString=l.prototype.toString=function(){var Ne=this.length;return 0===Ne?"":0===arguments.length?p(this,0,Ne):ee.apply(this,arguments)},l.prototype.equals=function(Ne){if(!l.isBuffer(Ne))throw new TypeError("Argument must be a Buffer");return this===Ne||0===l.compare(this,Ne)},l.prototype.inspect=function(){var Ne="",he=Q.INSPECT_MAX_BYTES;return Ne=this.toString("hex",0,he).replace(/(.{2})/g,"$1 ").trim(),this.length>he&&(Ne+=" ... "),"<Buffer "+Ne+">"},y&&(l.prototype[y]=l.prototype.inspect),l.prototype.compare=function(Ne,he,Le,ke,q){if(z(Ne,Uint8Array)&&(Ne=l.from(Ne,Ne.offset,Ne.byteLength)),!l.isBuffer(Ne))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Ne);if(void 0===he&&(he=0),void 0===Le&&(Le=Ne?Ne.length:0),void 0===ke&&(ke=0),void 0===q&&(q=this.length),he<0||Le>Ne.length||ke<0||q>this.length)throw new RangeError("out of range index");if(ke>=q&&he>=Le)return 0;if(ke>=q)return-1;if(he>=Le)return 1;if(this===Ne)return 0;for(var $=(q>>>=0)-(ke>>>=0),le=(Le>>>=0)-(he>>>=0),xe=Math.min($,le),Ue=this.slice(ke,q),lt=Ne.slice(he,Le),nt=0;nt<xe;++nt)if(Ue[nt]!==lt[nt]){$=Ue[nt],le=lt[nt];break}return $<le?-1:le<$?1:0},l.prototype.includes=function(Ne,he,Le){return-1!==this.indexOf(Ne,he,Le)},l.prototype.indexOf=function(Ne,he,Le){return ce(this,Ne,he,Le,!0)},l.prototype.lastIndexOf=function(Ne,he,Le){return ce(this,Ne,he,Le,!1)},l.prototype.write=function(Ne,he,Le,ke){if(void 0===he)ke="utf8",Le=this.length,he=0;else if(void 0===Le&&"string"==typeof he)ke=he,Le=this.length,he=0;else{if(!isFinite(he))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");he>>>=0,isFinite(Le)?(Le>>>=0,void 0===ke&&(ke="utf8")):(ke=Le,Le=void 0)}var q=this.length-he;if((void 0===Le||Le>q)&&(Le=q),Ne.length>0&&(Le<0||he<0)||he>this.length)throw new RangeError("Attempt to write outside buffer bounds");ke||(ke="utf8");for(var $=!1;;)switch(ke){case"hex":return de(this,Ne,he,Le);case"utf8":case"utf-8":return oe(this,Ne,he,Le);case"ascii":case"latin1":case"binary":return ae(this,Ne,he,Le);case"base64":return b(this,Ne,he,Le);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return i(this,Ne,he,Le);default:if($)throw new TypeError("Unknown encoding: "+ke);ke=(""+ke).toLowerCase(),$=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var u=4096;function L(Re,Ne,he){var Le="";he=Math.min(Re.length,he);for(var ke=Ne;ke<he;++ke)Le+=String.fromCharCode(127&Re[ke]);return Le}function I(Re,Ne,he){var Le="";he=Math.min(Re.length,he);for(var ke=Ne;ke<he;++ke)Le+=String.fromCharCode(Re[ke]);return Le}function x(Re,Ne,he){var Le=Re.length;(!Ne||Ne<0)&&(Ne=0),(!he||he<0||he>Le)&&(he=Le);for(var ke="",q=Ne;q<he;++q)ke+=vt[Re[q]];return ke}function r(Re,Ne,he){for(var Le=Re.slice(Ne,he),ke="",q=0;q<Le.length-1;q+=2)ke+=String.fromCharCode(Le[q]+256*Le[q+1]);return ke}function v(Re,Ne,he){if(Re%1!=0||Re<0)throw new RangeError("offset is not uint");if(Re+Ne>he)throw new RangeError("Trying to access beyond buffer length")}function G(Re,Ne,he,Le,ke,q){if(!l.isBuffer(Re))throw new TypeError('"buffer" argument must be a Buffer instance');if(Ne>ke||Ne<q)throw new RangeError('"value" argument is out of bounds');if(he+Le>Re.length)throw new RangeError("Index out of range")}function F(Re,Ne,he,Le,ke,q){if(he+Le>Re.length)throw new RangeError("Index out of range");if(he<0)throw new RangeError("Index out of range")}function U(Re,Ne,he,Le,ke){return Ne=+Ne,he>>>=0,ke||F(Re,0,he,4),t.write(Re,Ne,he,Le,23,4),he+4}function ye(Re,Ne,he,Le,ke){return Ne=+Ne,he>>>=0,ke||F(Re,0,he,8),t.write(Re,Ne,he,Le,52,8),he+8}l.prototype.slice=function(Ne,he){var Le=this.length;(Ne=~~Ne)<0?(Ne+=Le)<0&&(Ne=0):Ne>Le&&(Ne=Le),(he=void 0===he?Le:~~he)<0?(he+=Le)<0&&(he=0):he>Le&&(he=Le),he<Ne&&(he=Ne);var ke=this.subarray(Ne,he);return Object.setPrototypeOf(ke,l.prototype),ke},l.prototype.readUintLE=l.prototype.readUIntLE=function(Ne,he,Le){Ne>>>=0,he>>>=0,Le||v(Ne,he,this.length);for(var ke=this[Ne],q=1,$=0;++$<he&&(q*=256);)ke+=this[Ne+$]*q;return ke},l.prototype.readUintBE=l.prototype.readUIntBE=function(Ne,he,Le){Ne>>>=0,he>>>=0,Le||v(Ne,he,this.length);for(var ke=this[Ne+--he],q=1;he>0&&(q*=256);)ke+=this[Ne+--he]*q;return ke},l.prototype.readUint8=l.prototype.readUInt8=function(Ne,he){return Ne>>>=0,he||v(Ne,1,this.length),this[Ne]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(Ne,he){return Ne>>>=0,he||v(Ne,2,this.length),this[Ne]|this[Ne+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(Ne,he){return Ne>>>=0,he||v(Ne,2,this.length),this[Ne]<<8|this[Ne+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(Ne,he){return Ne>>>=0,he||v(Ne,4,this.length),(this[Ne]|this[Ne+1]<<8|this[Ne+2]<<16)+16777216*this[Ne+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(Ne,he){return Ne>>>=0,he||v(Ne,4,this.length),16777216*this[Ne]+(this[Ne+1]<<16|this[Ne+2]<<8|this[Ne+3])},l.prototype.readIntLE=function(Ne,he,Le){Ne>>>=0,he>>>=0,Le||v(Ne,he,this.length);for(var ke=this[Ne],q=1,$=0;++$<he&&(q*=256);)ke+=this[Ne+$]*q;return ke>=(q*=128)&&(ke-=Math.pow(2,8*he)),ke},l.prototype.readIntBE=function(Ne,he,Le){Ne>>>=0,he>>>=0,Le||v(Ne,he,this.length);for(var ke=he,q=1,$=this[Ne+--ke];ke>0&&(q*=256);)$+=this[Ne+--ke]*q;return $>=(q*=128)&&($-=Math.pow(2,8*he)),$},l.prototype.readInt8=function(Ne,he){return Ne>>>=0,he||v(Ne,1,this.length),128&this[Ne]?-1*(255-this[Ne]+1):this[Ne]},l.prototype.readInt16LE=function(Ne,he){Ne>>>=0,he||v(Ne,2,this.length);var Le=this[Ne]|this[Ne+1]<<8;return 32768&Le?4294901760|Le:Le},l.prototype.readInt16BE=function(Ne,he){Ne>>>=0,he||v(Ne,2,this.length);var Le=this[Ne+1]|this[Ne]<<8;return 32768&Le?4294901760|Le:Le},l.prototype.readInt32LE=function(Ne,he){return Ne>>>=0,he||v(Ne,4,this.length),this[Ne]|this[Ne+1]<<8|this[Ne+2]<<16|this[Ne+3]<<24},l.prototype.readInt32BE=function(Ne,he){return Ne>>>=0,he||v(Ne,4,this.length),this[Ne]<<24|this[Ne+1]<<16|this[Ne+2]<<8|this[Ne+3]},l.prototype.readFloatLE=function(Ne,he){return Ne>>>=0,he||v(Ne,4,this.length),t.read(this,Ne,!0,23,4)},l.prototype.readFloatBE=function(Ne,he){return Ne>>>=0,he||v(Ne,4,this.length),t.read(this,Ne,!1,23,4)},l.prototype.readDoubleLE=function(Ne,he){return Ne>>>=0,he||v(Ne,8,this.length),t.read(this,Ne,!0,52,8)},l.prototype.readDoubleBE=function(Ne,he){return Ne>>>=0,he||v(Ne,8,this.length),t.read(this,Ne,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(Ne,he,Le,ke){Ne=+Ne,he>>>=0,Le>>>=0,ke||G(this,Ne,he,Le,Math.pow(2,8*Le)-1,0);var $=1,le=0;for(this[he]=255&Ne;++le<Le&&($*=256);)this[he+le]=Ne/$&255;return he+Le},l.prototype.writeUintBE=l.prototype.writeUIntBE=function(Ne,he,Le,ke){Ne=+Ne,he>>>=0,Le>>>=0,ke||G(this,Ne,he,Le,Math.pow(2,8*Le)-1,0);var $=Le-1,le=1;for(this[he+$]=255&Ne;--$>=0&&(le*=256);)this[he+$]=Ne/le&255;return he+Le},l.prototype.writeUint8=l.prototype.writeUInt8=function(Ne,he,Le){return Ne=+Ne,he>>>=0,Le||G(this,Ne,he,1,255,0),this[he]=255&Ne,he+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(Ne,he,Le){return Ne=+Ne,he>>>=0,Le||G(this,Ne,he,2,65535,0),this[he]=255&Ne,this[he+1]=Ne>>>8,he+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(Ne,he,Le){return Ne=+Ne,he>>>=0,Le||G(this,Ne,he,2,65535,0),this[he]=Ne>>>8,this[he+1]=255&Ne,he+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(Ne,he,Le){return Ne=+Ne,he>>>=0,Le||G(this,Ne,he,4,4294967295,0),this[he+3]=Ne>>>24,this[he+2]=Ne>>>16,this[he+1]=Ne>>>8,this[he]=255&Ne,he+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(Ne,he,Le){return Ne=+Ne,he>>>=0,Le||G(this,Ne,he,4,4294967295,0),this[he]=Ne>>>24,this[he+1]=Ne>>>16,this[he+2]=Ne>>>8,this[he+3]=255&Ne,he+4},l.prototype.writeIntLE=function(Ne,he,Le,ke){if(Ne=+Ne,he>>>=0,!ke){var q=Math.pow(2,8*Le-1);G(this,Ne,he,Le,q-1,-q)}var $=0,le=1,xe=0;for(this[he]=255&Ne;++$<Le&&(le*=256);)Ne<0&&0===xe&&0!==this[he+$-1]&&(xe=1),this[he+$]=(Ne/le>>0)-xe&255;return he+Le},l.prototype.writeIntBE=function(Ne,he,Le,ke){if(Ne=+Ne,he>>>=0,!ke){var q=Math.pow(2,8*Le-1);G(this,Ne,he,Le,q-1,-q)}var $=Le-1,le=1,xe=0;for(this[he+$]=255&Ne;--$>=0&&(le*=256);)Ne<0&&0===xe&&0!==this[he+$+1]&&(xe=1),this[he+$]=(Ne/le>>0)-xe&255;return he+Le},l.prototype.writeInt8=function(Ne,he,Le){return Ne=+Ne,he>>>=0,Le||G(this,Ne,he,1,127,-128),Ne<0&&(Ne=255+Ne+1),this[he]=255&Ne,he+1},l.prototype.writeInt16LE=function(Ne,he,Le){return Ne=+Ne,he>>>=0,Le||G(this,Ne,he,2,32767,-32768),this[he]=255&Ne,this[he+1]=Ne>>>8,he+2},l.prototype.writeInt16BE=function(Ne,he,Le){return Ne=+Ne,he>>>=0,Le||G(this,Ne,he,2,32767,-32768),this[he]=Ne>>>8,this[he+1]=255&Ne,he+2},l.prototype.writeInt32LE=function(Ne,he,Le){return Ne=+Ne,he>>>=0,Le||G(this,Ne,he,4,2147483647,-2147483648),this[he]=255&Ne,this[he+1]=Ne>>>8,this[he+2]=Ne>>>16,this[he+3]=Ne>>>24,he+4},l.prototype.writeInt32BE=function(Ne,he,Le){return Ne=+Ne,he>>>=0,Le||G(this,Ne,he,4,2147483647,-2147483648),Ne<0&&(Ne=4294967295+Ne+1),this[he]=Ne>>>24,this[he+1]=Ne>>>16,this[he+2]=Ne>>>8,this[he+3]=255&Ne,he+4},l.prototype.writeFloatLE=function(Ne,he,Le){return U(this,Ne,he,!0,Le)},l.prototype.writeFloatBE=function(Ne,he,Le){return U(this,Ne,he,!1,Le)},l.prototype.writeDoubleLE=function(Ne,he,Le){return ye(this,Ne,he,!0,Le)},l.prototype.writeDoubleBE=function(Ne,he,Le){return ye(this,Ne,he,!1,Le)},l.prototype.copy=function(Ne,he,Le,ke){if(!l.isBuffer(Ne))throw new TypeError("argument should be a Buffer");if(Le||(Le=0),!ke&&0!==ke&&(ke=this.length),he>=Ne.length&&(he=Ne.length),he||(he=0),ke>0&&ke<Le&&(ke=Le),ke===Le||0===Ne.length||0===this.length)return 0;if(he<0)throw new RangeError("targetStart out of bounds");if(Le<0||Le>=this.length)throw new RangeError("Index out of range");if(ke<0)throw new RangeError("sourceEnd out of bounds");ke>this.length&&(ke=this.length),Ne.length-he<ke-Le&&(ke=Ne.length-he+Le);var q=ke-Le;return this===Ne&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(he,Le,ke):Uint8Array.prototype.set.call(Ne,this.subarray(Le,ke),he),q},l.prototype.fill=function(Ne,he,Le,ke){if("string"==typeof Ne){if("string"==typeof he?(ke=he,he=0,Le=this.length):"string"==typeof Le&&(ke=Le,Le=this.length),void 0!==ke&&"string"!=typeof ke)throw new TypeError("encoding must be a string");if("string"==typeof ke&&!l.isEncoding(ke))throw new TypeError("Unknown encoding: "+ke);if(1===Ne.length){var q=Ne.charCodeAt(0);("utf8"===ke&&q<128||"latin1"===ke)&&(Ne=q)}}else"number"==typeof Ne?Ne&=255:"boolean"==typeof Ne&&(Ne=Number(Ne));if(he<0||this.length<he||this.length<Le)throw new RangeError("Out of range index");if(Le<=he)return this;var $;if(he>>>=0,Le=void 0===Le?this.length:Le>>>0,Ne||(Ne=0),"number"==typeof Ne)for($=he;$<Le;++$)this[$]=Ne;else{var le=l.isBuffer(Ne)?Ne:l.from(Ne,ke),xe=le.length;if(0===xe)throw new TypeError('The value "'+Ne+'" is invalid for argument "value"');for($=0;$<Le-he;++$)this[$+he]=le[$%xe]}return this};var Ce=/[^+/0-9A-Za-z-_]/g;function ze(Re,Ne){Ne=Ne||1/0;for(var he,Le=Re.length,ke=null,q=[],$=0;$<Le;++$){if((he=Re.charCodeAt($))>55295&&he<57344){if(!ke){if(he>56319){(Ne-=3)>-1&&q.push(239,191,189);continue}if($+1===Le){(Ne-=3)>-1&&q.push(239,191,189);continue}ke=he;continue}if(he<56320){(Ne-=3)>-1&&q.push(239,191,189),ke=he;continue}he=65536+(ke-55296<<10|he-56320)}else ke&&(Ne-=3)>-1&&q.push(239,191,189);if(ke=null,he<128){if((Ne-=1)<0)break;q.push(he)}else if(he<2048){if((Ne-=2)<0)break;q.push(he>>6|192,63&he|128)}else if(he<65536){if((Ne-=3)<0)break;q.push(he>>12|224,he>>6&63|128,63&he|128)}else{if(!(he<1114112))throw new Error("Invalid code point");if((Ne-=4)<0)break;q.push(he>>18|240,he>>12&63|128,he>>6&63|128,63&he|128)}}return q}function Me(Re){return e.toByteArray(function Be(Re){if((Re=(Re=Re.split("=")[0]).trim().replace(Ce,"")).length<2)return"";for(;Re.length%4!=0;)Re+="=";return Re}(Re))}function we(Re,Ne,he,Le){for(var ke=0;ke<Le&&!(ke+he>=Ne.length||ke>=Re.length);++ke)Ne[ke+he]=Re[ke];return ke}function z(Re,Ne){return Re instanceof Ne||null!=Re&&null!=Re.constructor&&null!=Re.constructor.name&&Re.constructor.name===Ne.name}function Ge(Re){return Re!=Re}var vt=function(){for(var Re="0123456789abcdef",Ne=new Array(256),he=0;he<16;++he)for(var Le=16*he,ke=0;ke<16;++ke)Ne[Le+ke]=Re[he]+Re[ke];return Ne}()},1052:(Ve,Q,m)=>{var e=m(3502).Buffer,t=m(295).Transform,y=m(3054).s;function o(M){t.call(this),this.hashMode="string"==typeof M,this.hashMode?this[M]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}m(3894)(o,t),o.prototype.update=function(M,l,N){"string"==typeof M&&(M=e.from(M,l));var s=this._update(M);return this.hashMode?this:(N&&(s=this._toString(s,N)),s)},o.prototype.setAutoPadding=function(){},o.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},o.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},o.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},o.prototype._transform=function(M,l,N){var s;try{this.hashMode?this._update(M):this.push(this._update(M))}catch(D){s=D}finally{N(s)}},o.prototype._flush=function(M){var l;try{this.push(this.__final())}catch(N){l=N}M(l)},o.prototype._finalOrDigest=function(M){var l=this.__final()||e.alloc(0);return M&&(l=this._toString(l,M,!0)),l},o.prototype._toString=function(M,l,N){if(this._decoder||(this._decoder=new y(l),this._encoding=l),this._encoding!==l)throw new Error("can't switch encodings");var s=this._decoder.write(M);return N&&(s+=this._decoder.end()),s},Ve.exports=o},7293:(Ve,Q,m)=>{"use strict";const e=m(4315),t=m(2872),y=m(717);Ve.exports=function C(l,N){switch(t(l)){case"object":return function o(l,N){if("function"==typeof N)return N(l);if(N||y(l)){const s=new l.constructor;for(let D in l)s[D]=C(l[D],N);return s}return l}(l,N);case"array":return function M(l,N){const s=new l.constructor(l.length);for(let D=0;D<l.length;D++)s[D]=C(l[D],N);return s}(l,N);default:return e(l)}}},6128:function(Ve){!function(Q){"use strict";var m={bytesToHex:function(y){return function e(y){return y.map(function(C){return function t(y,C){return y.length>C?y:Array(C-y.length+1).join("0")+y}(C.toString(16),2)}).join("")}(y)},hexToBytes:function(y){if(y.length%2==1)throw new Error("hexToBytes can't have a string with an odd number of characters.");return 0===y.indexOf("0x")&&(y=y.slice(2)),y.match(/../g).map(function(C){return parseInt(C,16)})}};Ve.exports?Ve.exports=m:Q.convertHex=m}(this)},5612:function(Ve){!function(Q){"use strict";var m={bytesToString:function(e){return e.map(function(t){return String.fromCharCode(t)}).join("")},stringToBytes:function(e){return e.split("").map(function(t){return t.charCodeAt(0)})}};m.UTF8={bytesToString:function(e){return decodeURIComponent(escape(m.bytesToString(e)))},stringToBytes:function(e){return m.stringToBytes(unescape(encodeURIComponent(e)))}},Ve.exports?Ve.exports=m:Q.convertString=m}(this)},4746:(Ve,Q,m)=>{var e=m(7715),t=m(6422);Ve.exports=function(l){return new C(l)};var y={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 C(M){this.curveType=y[M],this.curveType||(this.curveType={name:M}),this.curve=new e.ec(this.curveType.name),this.keys=void 0}function o(M,l,N){Array.isArray(M)||(M=M.toArray());var s=new Buffer(M);if(N&&s.length<N){var D=new Buffer(N-s.length);D.fill(0),s=Buffer.concat([D,s])}return l?s.toString(l):s}y.p224=y.secp224r1,y.p256=y.secp256r1=y.prime256v1,y.p192=y.secp192r1=y.prime192v1,y.p384=y.secp384r1,y.p521=y.secp521r1,C.prototype.generateKeys=function(M,l){return this.keys=this.curve.genKeyPair(),this.getPublicKey(M,l)},C.prototype.computeSecret=function(M,l,N){return l=l||"utf8",Buffer.isBuffer(M)||(M=new Buffer(M,l)),o(this.curve.keyFromPublic(M).getPublic().mul(this.keys.getPrivate()).getX(),N,this.curveType.byteLength)},C.prototype.getPublicKey=function(M,l){var N=this.keys.getPublic("compressed"===l,!0);return"hybrid"===l&&(N[0]=N[N.length-1]%2?7:6),o(N,M)},C.prototype.getPrivateKey=function(M){return o(this.keys.getPrivate(),M)},C.prototype.setPublicKey=function(M,l){return l=l||"utf8",Buffer.isBuffer(M)||(M=new Buffer(M,l)),this.keys._importPublic(M),this},C.prototype.setPrivateKey=function(M,l){l=l||"utf8",Buffer.isBuffer(M)||(M=new Buffer(M,l));var N=new t(M);return N=N.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(N),this}},6422:function(Ve,Q,m){!function(e,t){"use strict";function y(b,i){if(!b)throw new Error(i||"Assertion failed")}function C(b,i){b.super_=i;var a=function(){};a.prototype=i.prototype,b.prototype=new a,b.prototype.constructor=b}function o(b,i,a){if(o.isBN(b))return b;this.negative=0,this.words=null,this.length=0,this.red=null,null!==b&&(("le"===i||"be"===i)&&(a=i,i=10),this._init(b||0,i||10,a||"be"))}var M;"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{M="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:m(8623).Buffer}catch(b){}function l(b,i){var a=b.charCodeAt(i);return a>=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function N(b,i,a){var p=l(b,a);return a-1>=i&&(p|=l(b,a-1)<<4),p}function s(b,i,a,p){for(var u=0,_=Math.min(b.length,a),L=i;L<_;L++){var I=b.charCodeAt(L)-48;u*=p,u+=I>=49?I-49+10:I>=17?I-17+10:I}return u}o.isBN=function(i){return i instanceof o||null!==i&&"object"==typeof i&&i.constructor.wordSize===o.wordSize&&Array.isArray(i.words)},o.max=function(i,a){return i.cmp(a)>0?i:a},o.min=function(i,a){return i.cmp(a)<0?i:a},o.prototype._init=function(i,a,p){if("number"==typeof i)return this._initNumber(i,a,p);if("object"==typeof i)return this._initArray(i,a,p);"hex"===a&&(a=16),y(a===(0|a)&&a>=2&&a<=36);var u=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(u++,this.negative=1),u<i.length&&(16===a?this._parseHex(i,u,p):(this._parseBase(i,a,u),"le"===p&&this._initArray(this.toArray(),a,p)))},o.prototype._initNumber=function(i,a,p){i<0&&(this.negative=1,i=-i),i<67108864?(this.words=[67108863&i],this.length=1):i<4503599627370496?(this.words=[67108863&i,i/67108864&67108863],this.length=2):(y(i<9007199254740992),this.words=[67108863&i,i/67108864&67108863,1],this.length=3),"le"===p&&this._initArray(this.toArray(),a,p)},o.prototype._initArray=function(i,a,p){if(y("number"==typeof i.length),i.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(i.length/3),this.words=new Array(this.length);for(var u=0;u<this.length;u++)this.words[u]=0;var _,L,I=0;if("be"===p)for(u=i.length-1,_=0;u>=0;u-=3)this.words[_]|=(L=i[u]|i[u-1]<<8|i[u-2]<<16)<<I&67108863,this.words[_+1]=L>>>26-I&67108863,(I+=24)>=26&&(I-=26,_++);else if("le"===p)for(u=0,_=0;u<i.length;u+=3)this.words[_]|=(L=i[u]|i[u+1]<<8|i[u+2]<<16)<<I&67108863,this.words[_+1]=L>>>26-I&67108863,(I+=24)>=26&&(I-=26,_++);return this.strip()},o.prototype._parseHex=function(i,a,p){this.length=Math.ceil((i.length-a)/6),this.words=new Array(this.length);for(var u=0;u<this.length;u++)this.words[u]=0;var I,_=0,L=0;if("be"===p)for(u=i.length-1;u>=a;u-=2)I=N(i,a,u)<<_,this.words[L]|=67108863&I,_>=18?(_-=18,this.words[L+=1]|=I>>>26):_+=8;else for(u=(i.length-a)%2==0?a+1:a;u<i.length;u+=2)I=N(i,a,u)<<_,this.words[L]|=67108863&I,_>=18?(_-=18,this.words[L+=1]|=I>>>26):_+=8;this.strip()},o.prototype._parseBase=function(i,a,p){this.words=[0],this.length=1;for(var u=0,_=1;_<=67108863;_*=a)u++;u--,_=_/a|0;for(var L=i.length-p,I=L%u,x=Math.min(L,L-I)+p,r=0,v=p;v<x;v+=u)r=s(i,v,v+u,a),this.imuln(_),this.words[0]+r<67108864?this.words[0]+=r:this._iaddn(r);if(0!==I){var G=1;for(r=s(i,v,i.length,a),v=0;v<I;v++)G*=a;this.imuln(G),this.words[0]+r<67108864?this.words[0]+=r:this._iaddn(r)}this.strip()},o.prototype.copy=function(i){i.words=new Array(this.length);for(var a=0;a<this.length;a++)i.words[a]=this.words[a];i.length=this.length,i.negative=this.negative,i.red=this.red},o.prototype.clone=function(){var i=new o(null);return this.copy(i),i},o.prototype._expand=function(i){for(;this.length<i;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var D=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],A=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],O=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function P(b,i,a){a.negative=i.negative^b.negative;var p=b.length+i.length|0;a.length=p,p=p-1|0;var u=0|b.words[0],_=0|i.words[0],L=u*_,x=L/67108864|0;a.words[0]=67108863&L;for(var r=1;r<p;r++){for(var v=x>>>26,G=67108863&x,F=Math.min(r,i.length-1),U=Math.max(0,r-b.length+1);U<=F;U++)v+=(L=(u=0|b.words[r-U|0])*(_=0|i.words[U])+G)/67108864|0,G=67108863&L;a.words[r]=0|G,x=0|v}return 0!==x?a.words[r]=0|x:a.length--,a.strip()}o.prototype.toString=function(i,a){var p;if(a=0|a||1,16===(i=i||10)||"hex"===i){p="";for(var u=0,_=0,L=0;L<this.length;L++){var I=this.words[L],x=(16777215&(I<<u|_)).toString(16);p=0!=(_=I>>>24-u&16777215)||L!==this.length-1?D[6-x.length]+x+p:x+p,(u+=2)>=26&&(u-=26,L--)}for(0!==_&&(p=_.toString(16)+p);p.length%a!=0;)p="0"+p;return 0!==this.negative&&(p="-"+p),p}if(i===(0|i)&&i>=2&&i<=36){var r=A[i],v=O[i];p="";var G=this.clone();for(G.negative=0;!G.isZero();){var F=G.modn(v).toString(i);p=(G=G.idivn(v)).isZero()?F+p:D[r-F.length]+F+p}for(this.isZero()&&(p="0"+p);p.length%a!=0;)p="0"+p;return 0!==this.negative&&(p="-"+p),p}y(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var i=this.words[0];return 2===this.length?i+=67108864*this.words[1]:3===this.length&&1===this.words[2]?i+=4503599627370496+67108864*this.words[1]:this.length>2&&y(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(i,a){return y(void 0!==M),this.toArrayLike(M,i,a)},o.prototype.toArray=function(i,a){return this.toArrayLike(Array,i,a)},o.prototype.toArrayLike=function(i,a,p){var u=this.byteLength(),_=p||Math.max(1,u);y(u<=_,"byte array longer than desired length"),y(_>0,"Requested array length <= 0"),this.strip();var x,r,L="le"===a,I=new i(_),v=this.clone();if(L){for(r=0;!v.isZero();r++)x=v.andln(255),v.iushrn(8),I[r]=x;for(;r<_;r++)I[r]=0}else{for(r=0;r<_-u;r++)I[r]=0;for(r=0;!v.isZero();r++)x=v.andln(255),v.iushrn(8),I[_-r-1]=x}return I},o.prototype._countBits=Math.clz32?function(i){return 32-Math.clz32(i)}:function(i){var a=i,p=0;return a>=4096&&(p+=13,a>>>=13),a>=64&&(p+=7,a>>>=7),a>=8&&(p+=4,a>>>=4),a>=2&&(p+=2,a>>>=2),p+a},o.prototype._zeroBits=function(i){if(0===i)return 26;var a=i,p=0;return 0==(8191&a)&&(p+=13,a>>>=13),0==(127&a)&&(p+=7,a>>>=7),0==(15&a)&&(p+=4,a>>>=4),0==(3&a)&&(p+=2,a>>>=2),0==(1&a)&&p++,p},o.prototype.bitLength=function(){var a=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+a},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,a=0;a<this.length;a++){var p=this._zeroBits(this.words[a]);if(i+=p,26!==p)break}return i},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(i){return 0!==this.negative?this.abs().inotn(i).iaddn(1):this.clone()},o.prototype.fromTwos=function(i){return this.testn(i-1)?this.notn(i).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(i){for(;this.length<i.length;)this.words[this.length++]=0;for(var a=0;a<i.length;a++)this.words[a]=this.words[a]|i.words[a];return this.strip()},o.prototype.ior=function(i){return y(0==(this.negative|i.negative)),this.iuor(i)},o.prototype.or=function(i){return this.length>i.length?this.clone().ior(i):i.clone().ior(this)},o.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},o.prototype.iuand=function(i){var a;a=this.length>i.length?i:this;for(var p=0;p<a.length;p++)this.words[p]=this.words[p]&i.words[p];return this.length=a.length,this.strip()},o.prototype.iand=function(i){return y(0==(this.negative|i.negative)),this.iuand(i)},o.prototype.and=function(i){return this.length>i.length?this.clone().iand(i):i.clone().iand(this)},o.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},o.prototype.iuxor=function(i){var a,p;this.length>i.length?(a=this,p=i):(a=i,p=this);for(var u=0;u<p.length;u++)this.words[u]=a.words[u]^p.words[u];if(this!==a)for(;u<a.length;u++)this.words[u]=a.words[u];return this.length=a.length,this.strip()},o.prototype.ixor=function(i){return y(0==(this.negative|i.negative)),this.iuxor(i)},o.prototype.xor=function(i){return this.length>i.length?this.clone().ixor(i):i.clone().ixor(this)},o.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},o.prototype.inotn=function(i){y("number"==typeof i&&i>=0);var a=0|Math.ceil(i/26),p=i%26;this._expand(a),p>0&&a--;for(var u=0;u<a;u++)this.words[u]=67108863&~this.words[u];return p>0&&(this.words[u]=~this.words[u]&67108863>>26-p),this.strip()},o.prototype.notn=function(i){return this.clone().inotn(i)},o.prototype.setn=function(i,a){y("number"==typeof i&&i>=0);var p=i/26|0,u=i%26;return this._expand(p+1),this.words[p]=a?this.words[p]|1<<u:this.words[p]&~(1<<u),this.strip()},o.prototype.iadd=function(i){var a,p,u;if(0!==this.negative&&0===i.negative)return this.negative=0,a=this.isub(i),this.negative^=1,this._normSign();if(0===this.negative&&0!==i.negative)return i.negative=0,a=this.isub(i),i.negative=1,a._normSign();this.length>i.length?(p=this,u=i):(p=i,u=this);for(var _=0,L=0;L<u.length;L++)this.words[L]=67108863&(a=(0|p.words[L])+(0|u.words[L])+_),_=a>>>26;for(;0!==_&&L<p.length;L++)this.words[L]=67108863&(a=(0|p.words[L])+_),_=a>>>26;if(this.length=p.length,0!==_)this.words[this.length]=_,this.length++;else if(p!==this)for(;L<p.length;L++)this.words[L]=p.words[L];return this},o.prototype.add=function(i){var a;return 0!==i.negative&&0===this.negative?(i.negative=0,a=this.sub(i),i.negative^=1,a):0===i.negative&&0!==this.negative?(this.negative=0,a=i.sub(this),this.negative=1,a):this.length>i.length?this.clone().iadd(i):i.clone().iadd(this)},o.prototype.isub=function(i){if(0!==i.negative){i.negative=0;var a=this.iadd(i);return i.negative=1,a._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(i),this.negative=1,this._normSign();var u,_,p=this.cmp(i);if(0===p)return this.negative=0,this.length=1,this.words[0]=0,this;p>0?(u=this,_=i):(u=i,_=this);for(var L=0,I=0;I<_.length;I++)L=(a=(0|u.words[I])-(0|_.words[I])+L)>>26,this.words[I]=67108863&a;for(;0!==L&&I<u.length;I++)L=(a=(0|u.words[I])+L)>>26,this.words[I]=67108863&a;if(0===L&&I<u.length&&u!==this)for(;I<u.length;I++)this.words[I]=u.words[I];return this.length=Math.max(this.length,I),u!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(i){return this.clone().isub(i)};var w=function(i,a,p){var x,r,v,u=i.words,_=a.words,L=p.words,I=0,G=0|u[0],F=8191&G,U=G>>>13,ye=0|u[1],Ce=8191&ye,Be=ye>>>13,ze=0|u[2],Ie=8191&ze,K=ze>>>13,Me=0|u[3],we=8191&Me,z=Me>>>13,Ge=0|u[4],vt=8191&Ge,Re=Ge>>>13,Ne=0|u[5],he=8191&Ne,Le=Ne>>>13,ke=0|u[6],q=8191&ke,$=ke>>>13,le=0|u[7],xe=8191&le,Ue=le>>>13,lt=0|u[8],nt=8191&lt,ft=lt>>>13,it=0|u[9],rt=8191&it,Mt=it>>>13,Zt=0|_[0],Ft=8191&Zt,Vt=Zt>>>13,Ii=0|_[1],jt=8191&Ii,ei=Ii>>>13,Pi=0|_[2],ai=8191&Pi,hi=Pi>>>13,Ze=0|_[3],Ee=8191&Ze,Y=Ze>>>13,me=0|_[4],De=8191&me,et=me>>>13,$t=0|_[5],Nt=8191&$t,Jt=$t>>>13,ct=0|_[6],Pe=8191&ct,Fe=ct>>>13,at=0|_[7],st=8191&at,At=at>>>13,li=0|_[8],Bt=8191&li,Rt=li>>>13,Li=0|_[9],si=8191&Li,ci=Li>>>13;p.negative=i.negative^a.negative,p.length=19;var sn=(I+(x=Math.imul(F,Ft))|0)+((8191&(r=(r=Math.imul(F,Vt))+Math.imul(U,Ft)|0))<<13)|0;I=((v=Math.imul(U,Vt))+(r>>>13)|0)+(sn>>>26)|0,sn&=67108863,x=Math.imul(Ce,Ft),r=(r=Math.imul(Ce,Vt))+Math.imul(Be,Ft)|0,v=Math.imul(Be,Vt);var Ui=(I+(x=x+Math.imul(F,jt)|0)|0)+((8191&(r=(r=r+Math.imul(F,ei)|0)+Math.imul(U,jt)|0))<<13)|0;I=((v=v+Math.imul(U,ei)|0)+(r>>>13)|0)+(Ui>>>26)|0,Ui&=67108863,x=Math.imul(Ie,Ft),r=(r=Math.imul(Ie,Vt))+Math.imul(K,Ft)|0,v=Math.imul(K,Vt),x=x+Math.imul(Ce,jt)|0,r=(r=r+Math.imul(Ce,ei)|0)+Math.imul(Be,jt)|0,v=v+Math.imul(Be,ei)|0;var Di=(I+(x=x+Math.imul(F,ai)|0)|0)+((8191&(r=(r=r+Math.imul(F,hi)|0)+Math.imul(U,ai)|0))<<13)|0;I=((v=v+Math.imul(U,hi)|0)+(r>>>13)|0)+(Di>>>26)|0,Di&=67108863,x=Math.imul(we,Ft),r=(r=Math.imul(we,Vt))+Math.imul(z,Ft)|0,v=Math.imul(z,Vt),x=x+Math.imul(Ie,jt)|0,r=(r=r+Math.imul(Ie,ei)|0)+Math.imul(K,jt)|0,v=v+Math.imul(K,ei)|0,x=x+Math.imul(Ce,ai)|0,r=(r=r+Math.imul(Ce,hi)|0)+Math.imul(Be,ai)|0,v=v+Math.imul(Be,hi)|0;var Xi=(I+(x=x+Math.imul(F,Ee)|0)|0)+((8191&(r=(r=r+Math.imul(F,Y)|0)+Math.imul(U,Ee)|0))<<13)|0;I=((v=v+Math.imul(U,Y)|0)+(r>>>13)|0)+(Xi>>>26)|0,Xi&=67108863,x=Math.imul(vt,Ft),r=(r=Math.imul(vt,Vt))+Math.imul(Re,Ft)|0,v=Math.imul(Re,Vt),x=x+Math.imul(we,jt)|0,r=(r=r+Math.imul(we,ei)|0)+Math.imul(z,jt)|0,v=v+Math.imul(z,ei)|0,x=x+Math.imul(Ie,ai)|0,r=(r=r+Math.imul(Ie,hi)|0)+Math.imul(K,ai)|0,v=v+Math.imul(K,hi)|0,x=x+Math.imul(Ce,Ee)|0,r=(r=r+Math.imul(Ce,Y)|0)+Math.imul(Be,Ee)|0,v=v+Math.imul(Be,Y)|0;var Ke=(I+(x=x+Math.imul(F,De)|0)|0)+((8191&(r=(r=r+Math.imul(F,et)|0)+Math.imul(U,De)|0))<<13)|0;I=((v=v+Math.imul(U,et)|0)+(r>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,x=Math.imul(he,Ft),r=(r=Math.imul(he,Vt))+Math.imul(Le,Ft)|0,v=Math.imul(Le,Vt),x=x+Math.imul(vt,jt)|0,r=(r=r+Math.imul(vt,ei)|0)+Math.imul(Re,jt)|0,v=v+Math.imul(Re,ei)|0,x=x+Math.imul(we,ai)|0,r=(r=r+Math.imul(we,hi)|0)+Math.imul(z,ai)|0,v=v+Math.imul(z,hi)|0,x=x+Math.imul(Ie,Ee)|0,r=(r=r+Math.imul(Ie,Y)|0)+Math.imul(K,Ee)|0,v=v+Math.imul(K,Y)|0,x=x+Math.imul(Ce,De)|0,r=(r=r+Math.imul(Ce,et)|0)+Math.imul(Be,De)|0,v=v+Math.imul(Be,et)|0;var _t=(I+(x=x+Math.imul(F,Nt)|0)|0)+((8191&(r=(r=r+Math.imul(F,Jt)|0)+Math.imul(U,Nt)|0))<<13)|0;I=((v=v+Math.imul(U,Jt)|0)+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,x=Math.imul(q,Ft),r=(r=Math.imul(q,Vt))+Math.imul($,Ft)|0,v=Math.imul($,Vt),x=x+Math.imul(he,jt)|0,r=(r=r+Math.imul(he,ei)|0)+Math.imul(Le,jt)|0,v=v+Math.imul(Le,ei)|0,x=x+Math.imul(vt,ai)|0,r=(r=r+Math.imul(vt,hi)|0)+Math.imul(Re,ai)|0,v=v+Math.imul(Re,hi)|0,x=x+Math.imul(we,Ee)|0,r=(r=r+Math.imul(we,Y)|0)+Math.imul(z,Ee)|0,v=v+Math.imul(z,Y)|0,x=x+Math.imul(Ie,De)|0,r=(r=r+Math.imul(Ie,et)|0)+Math.imul(K,De)|0,v=v+Math.imul(K,et)|0,x=x+Math.imul(Ce,Nt)|0,r=(r=r+Math.imul(Ce,Jt)|0)+Math.imul(Be,Nt)|0,v=v+Math.imul(Be,Jt)|0;var ve=(I+(x=x+Math.imul(F,Pe)|0)|0)+((8191&(r=(r=r+Math.imul(F,Fe)|0)+Math.imul(U,Pe)|0))<<13)|0;I=((v=v+Math.imul(U,Fe)|0)+(r>>>13)|0)+(ve>>>26)|0,ve&=67108863,x=Math.imul(xe,Ft),r=(r=Math.imul(xe,Vt))+Math.imul(Ue,Ft)|0,v=Math.imul(Ue,Vt),x=x+Math.imul(q,jt)|0,r=(r=r+Math.imul(q,ei)|0)+Math.imul($,jt)|0,v=v+Math.imul($,ei)|0,x=x+Math.imul(he,ai)|0,r=(r=r+Math.imul(he,hi)|0)+Math.imul(Le,ai)|0,v=v+Math.imul(Le,hi)|0,x=x+Math.imul(vt,Ee)|0,r=(r=r+Math.imul(vt,Y)|0)+Math.imul(Re,Ee)|0,v=v+Math.imul(Re,Y)|0,x=x+Math.imul(we,De)|0,r=(r=r+Math.imul(we,et)|0)+Math.imul(z,De)|0,v=v+Math.imul(z,et)|0,x=x+Math.imul(Ie,Nt)|0,r=(r=r+Math.imul(Ie,Jt)|0)+Math.imul(K,Nt)|0,v=v+Math.imul(K,Jt)|0,x=x+Math.imul(Ce,Pe)|0,r=(r=r+Math.imul(Ce,Fe)|0)+Math.imul(Be,Pe)|0,v=v+Math.imul(Be,Fe)|0;var qe=(I+(x=x+Math.imul(F,st)|0)|0)+((8191&(r=(r=r+Math.imul(F,At)|0)+Math.imul(U,st)|0))<<13)|0;I=((v=v+Math.imul(U,At)|0)+(r>>>13)|0)+(qe>>>26)|0,qe&=67108863,x=Math.imul(nt,Ft),r=(r=Math.imul(nt,Vt))+Math.imul(ft,Ft)|0,v=Math.imul(ft,Vt),x=x+Math.imul(xe,jt)|0,r=(r=r+Math.imul(xe,ei)|0)+Math.imul(Ue,jt)|0,v=v+Math.imul(Ue,ei)|0,x=x+Math.imul(q,ai)|0,r=(r=r+Math.imul(q,hi)|0)+Math.imul($,ai)|0,v=v+Math.imul($,hi)|0,x=x+Math.imul(he,Ee)|0,r=(r=r+Math.imul(he,Y)|0)+Math.imul(Le,Ee)|0,v=v+Math.imul(Le,Y)|0,x=x+Math.imul(vt,De)|0,r=(r=r+Math.imul(vt,et)|0)+Math.imul(Re,De)|0,v=v+Math.imul(Re,et)|0,x=x+Math.imul(we,Nt)|0,r=(r=r+Math.imul(we,Jt)|0)+Math.imul(z,Nt)|0,v=v+Math.imul(z,Jt)|0,x=x+Math.imul(Ie,Pe)|0,r=(r=r+Math.imul(Ie,Fe)|0)+Math.imul(K,Pe)|0,v=v+Math.imul(K,Fe)|0,x=x+Math.imul(Ce,st)|0,r=(r=r+Math.imul(Ce,At)|0)+Math.imul(Be,st)|0,v=v+Math.imul(Be,At)|0;var yt=(I+(x=x+Math.imul(F,Bt)|0)|0)+((8191&(r=(r=r+Math.imul(F,Rt)|0)+Math.imul(U,Bt)|0))<<13)|0;I=((v=v+Math.imul(U,Rt)|0)+(r>>>13)|0)+(yt>>>26)|0,yt&=67108863,x=Math.imul(rt,Ft),r=(r=Math.imul(rt,Vt))+Math.imul(Mt,Ft)|0,v=Math.imul(Mt,Vt),x=x+Math.imul(nt,jt)|0,r=(r=r+Math.imul(nt,ei)|0)+Math.imul(ft,jt)|0,v=v+Math.imul(ft,ei)|0,x=x+Math.imul(xe,ai)|0,r=(r=r+Math.imul(xe,hi)|0)+Math.imul(Ue,ai)|0,v=v+Math.imul(Ue,hi)|0,x=x+Math.imul(q,Ee)|0,r=(r=r+Math.imul(q,Y)|0)+Math.imul($,Ee)|0,v=v+Math.imul($,Y)|0,x=x+Math.imul(he,De)|0,r=(r=r+Math.imul(he,et)|0)+Math.imul(Le,De)|0,v=v+Math.imul(Le,et)|0,x=x+Math.imul(vt,Nt)|0,r=(r=r+Math.imul(vt,Jt)|0)+Math.imul(Re,Nt)|0,v=v+Math.imul(Re,Jt)|0,x=x+Math.imul(we,Pe)|0,r=(r=r+Math.imul(we,Fe)|0)+Math.imul(z,Pe)|0,v=v+Math.imul(z,Fe)|0,x=x+Math.imul(Ie,st)|0,r=(r=r+Math.imul(Ie,At)|0)+Math.imul(K,st)|0,v=v+Math.imul(K,At)|0,x=x+Math.imul(Ce,Bt)|0,r=(r=r+Math.imul(Ce,Rt)|0)+Math.imul(Be,Bt)|0,v=v+Math.imul(Be,Rt)|0;var fe=(I+(x=x+Math.imul(F,si)|0)|0)+((8191&(r=(r=r+Math.imul(F,ci)|0)+Math.imul(U,si)|0))<<13)|0;I=((v=v+Math.imul(U,ci)|0)+(r>>>13)|0)+(fe>>>26)|0,fe&=67108863,x=Math.imul(rt,jt),r=(r=Math.imul(rt,ei))+Math.imul(Mt,jt)|0,v=Math.imul(Mt,ei),x=x+Math.imul(nt,ai)|0,r=(r=r+Math.imul(nt,hi)|0)+Math.imul(ft,ai)|0,v=v+Math.imul(ft,hi)|0,x=x+Math.imul(xe,Ee)|0,r=(r=r+Math.imul(xe,Y)|0)+Math.imul(Ue,Ee)|0,v=v+Math.imul(Ue,Y)|0,x=x+Math.imul(q,De)|0,r=(r=r+Math.imul(q,et)|0)+Math.imul($,De)|0,v=v+Math.imul($,et)|0,x=x+Math.imul(he,Nt)|0,r=(r=r+Math.imul(he,Jt)|0)+Math.imul(Le,Nt)|0,v=v+Math.imul(Le,Jt)|0,x=x+Math.imul(vt,Pe)|0,r=(r=r+Math.imul(vt,Fe)|0)+Math.imul(Re,Pe)|0,v=v+Math.imul(Re,Fe)|0,x=x+Math.imul(we,st)|0,r=(r=r+Math.imul(we,At)|0)+Math.imul(z,st)|0,v=v+Math.imul(z,At)|0,x=x+Math.imul(Ie,Bt)|0,r=(r=r+Math.imul(Ie,Rt)|0)+Math.imul(K,Bt)|0,v=v+Math.imul(K,Rt)|0;var Je=(I+(x=x+Math.imul(Ce,si)|0)|0)+((8191&(r=(r=r+Math.imul(Ce,ci)|0)+Math.imul(Be,si)|0))<<13)|0;I=((v=v+Math.imul(Be,ci)|0)+(r>>>13)|0)+(Je>>>26)|0,Je&=67108863,x=Math.imul(rt,ai),r=(r=Math.imul(rt,hi))+Math.imul(Mt,ai)|0,v=Math.imul(Mt,hi),x=x+Math.imul(nt,Ee)|0,r=(r=r+Math.imul(nt,Y)|0)+Math.imul(ft,Ee)|0,v=v+Math.imul(ft,Y)|0,x=x+Math.imul(xe,De)|0,r=(r=r+Math.imul(xe,et)|0)+Math.imul(Ue,De)|0,v=v+Math.imul(Ue,et)|0,x=x+Math.imul(q,Nt)|0,r=(r=r+Math.imul(q,Jt)|0)+Math.imul($,Nt)|0,v=v+Math.imul($,Jt)|0,x=x+Math.imul(he,Pe)|0,r=(r=r+Math.imul(he,Fe)|0)+Math.imul(Le,Pe)|0,v=v+Math.imul(Le,Fe)|0,x=x+Math.imul(vt,st)|0,r=(r=r+Math.imul(vt,At)|0)+Math.imul(Re,st)|0,v=v+Math.imul(Re,At)|0,x=x+Math.imul(we,Bt)|0,r=(r=r+Math.imul(we,Rt)|0)+Math.imul(z,Bt)|0,v=v+Math.imul(z,Rt)|0;var St=(I+(x=x+Math.imul(Ie,si)|0)|0)+((8191&(r=(r=r+Math.imul(Ie,ci)|0)+Math.imul(K,si)|0))<<13)|0;I=((v=v+Math.imul(K,ci)|0)+(r>>>13)|0)+(St>>>26)|0,St&=67108863,x=Math.imul(rt,Ee),r=(r=Math.imul(rt,Y))+Math.imul(Mt,Ee)|0,v=Math.imul(Mt,Y),x=x+Math.imul(nt,De)|0,r=(r=r+Math.imul(nt,et)|0)+Math.imul(ft,De)|0,v=v+Math.imul(ft,et)|0,x=x+Math.imul(xe,Nt)|0,r=(r=r+Math.imul(xe,Jt)|0)+Math.imul(Ue,Nt)|0,v=v+Math.imul(Ue,Jt)|0,x=x+Math.imul(q,Pe)|0,r=(r=r+Math.imul(q,Fe)|0)+Math.imul($,Pe)|0,v=v+Math.imul($,Fe)|0,x=x+Math.imul(he,st)|0,r=(r=r+Math.imul(he,At)|0)+Math.imul(Le,st)|0,v=v+Math.imul(Le,At)|0,x=x+Math.imul(vt,Bt)|0,r=(r=r+Math.imul(vt,Rt)|0)+Math.imul(Re,Bt)|0,v=v+Math.imul(Re,Rt)|0;var Pt=(I+(x=x+Math.imul(we,si)|0)|0)+((8191&(r=(r=r+Math.imul(we,ci)|0)+Math.imul(z,si)|0))<<13)|0;I=((v=v+Math.imul(z,ci)|0)+(r>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,x=Math.imul(rt,De),r=(r=Math.imul(rt,et))+Math.imul(Mt,De)|0,v=Math.imul(Mt,et),x=x+Math.imul(nt,Nt)|0,r=(r=r+Math.imul(nt,Jt)|0)+Math.imul(ft,Nt)|0,v=v+Math.imul(ft,Jt)|0,x=x+Math.imul(xe,Pe)|0,r=(r=r+Math.imul(xe,Fe)|0)+Math.imul(Ue,Pe)|0,v=v+Math.imul(Ue,Fe)|0,x=x+Math.imul(q,st)|0,r=(r=r+Math.imul(q,At)|0)+Math.imul($,st)|0,v=v+Math.imul($,At)|0,x=x+Math.imul(he,Bt)|0,r=(r=r+Math.imul(he,Rt)|0)+Math.imul(Le,Bt)|0,v=v+Math.imul(Le,Rt)|0;var yi=(I+(x=x+Math.imul(vt,si)|0)|0)+((8191&(r=(r=r+Math.imul(vt,ci)|0)+Math.imul(Re,si)|0))<<13)|0;I=((v=v+Math.imul(Re,ci)|0)+(r>>>13)|0)+(yi>>>26)|0,yi&=67108863,x=Math.imul(rt,Nt),r=(r=Math.imul(rt,Jt))+Math.imul(Mt,Nt)|0,v=Math.imul(Mt,Jt),x=x+Math.imul(nt,Pe)|0,r=(r=r+Math.imul(nt,Fe)|0)+Math.imul(ft,Pe)|0,v=v+Math.imul(ft,Fe)|0,x=x+Math.imul(xe,st)|0,r=(r=r+Math.imul(xe,At)|0)+Math.imul(Ue,st)|0,v=v+Math.imul(Ue,At)|0,x=x+Math.imul(q,Bt)|0,r=(r=r+Math.imul(q,Rt)|0)+Math.imul($,Bt)|0,v=v+Math.imul($,Rt)|0;var Ni=(I+(x=x+Math.imul(he,si)|0)|0)+((8191&(r=(r=r+Math.imul(he,ci)|0)+Math.imul(Le,si)|0))<<13)|0;I=((v=v+Math.imul(Le,ci)|0)+(r>>>13)|0)+(Ni>>>26)|0,Ni&=67108863,x=Math.imul(rt,Pe),r=(r=Math.imul(rt,Fe))+Math.imul(Mt,Pe)|0,v=Math.imul(Mt,Fe),x=x+Math.imul(nt,st)|0,r=(r=r+Math.imul(nt,At)|0)+Math.imul(ft,st)|0,v=v+Math.imul(ft,At)|0,x=x+Math.imul(xe,Bt)|0,r=(r=r+Math.imul(xe,Rt)|0)+Math.imul(Ue,Bt)|0,v=v+Math.imul(Ue,Rt)|0;var Si=(I+(x=x+Math.imul(q,si)|0)|0)+((8191&(r=(r=r+Math.imul(q,ci)|0)+Math.imul($,si)|0))<<13)|0;I=((v=v+Math.imul($,ci)|0)+(r>>>13)|0)+(Si>>>26)|0,Si&=67108863,x=Math.imul(rt,st),r=(r=Math.imul(rt,At))+Math.imul(Mt,st)|0,v=Math.imul(Mt,At),x=x+Math.imul(nt,Bt)|0,r=(r=r+Math.imul(nt,Rt)|0)+Math.imul(ft,Bt)|0,v=v+Math.imul(ft,Rt)|0;var qi=(I+(x=x+Math.imul(xe,si)|0)|0)+((8191&(r=(r=r+Math.imul(xe,ci)|0)+Math.imul(Ue,si)|0))<<13)|0;I=((v=v+Math.imul(Ue,ci)|0)+(r>>>13)|0)+(qi>>>26)|0,qi&=67108863,x=Math.imul(rt,Bt),r=(r=Math.imul(rt,Rt))+Math.imul(Mt,Bt)|0,v=Math.imul(Mt,Rt);var ot=(I+(x=x+Math.imul(nt,si)|0)|0)+((8191&(r=(r=r+Math.imul(nt,ci)|0)+Math.imul(ft,si)|0))<<13)|0;I=((v=v+Math.imul(ft,ci)|0)+(r>>>13)|0)+(ot>>>26)|0,ot&=67108863;var Kt=(I+(x=Math.imul(rt,si))|0)+((8191&(r=(r=Math.imul(rt,ci))+Math.imul(Mt,si)|0))<<13)|0;return I=((v=Math.imul(Mt,ci))+(r>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,L[0]=sn,L[1]=Ui,L[2]=Di,L[3]=Xi,L[4]=Ke,L[5]=_t,L[6]=ve,L[7]=qe,L[8]=yt,L[9]=fe,L[10]=Je,L[11]=St,L[12]=Pt,L[13]=yi,L[14]=Ni,L[15]=Si,L[16]=qi,L[17]=ot,L[18]=Kt,0!==I&&(L[19]=I,p.length++),p};function j(b,i,a){return(new W).mulp(b,i,a)}function W(b,i){this.x=b,this.y=i}Math.imul||(w=P),o.prototype.mulTo=function(i,a){var p,u=this.length+i.length;return p=10===this.length&&10===i.length?w(this,i,a):u<63?P(this,i,a):u<1024?function Z(b,i,a){a.negative=i.negative^b.negative,a.length=b.length+i.length;for(var p=0,u=0,_=0;_<a.length-1;_++){var L=u;u=0;for(var I=67108863&p,x=Math.min(_,i.length-1),r=Math.max(0,_-b.length+1);r<=x;r++){var U=(0|b.words[_-r])*(0|i.words[r]),ye=67108863&U;I=67108863&(ye=ye+I|0),u+=(L=(L=L+(U/67108864|0)|0)+(ye>>>26)|0)>>>26,L&=67108863}a.words[_]=I,p=L,L=u}return 0!==p?a.words[_]=p:a.length--,a.strip()}(this,i,a):j(this,i,a),p},W.prototype.makeRBT=function(i){for(var a=new Array(i),p=o.prototype._countBits(i)-1,u=0;u<i;u++)a[u]=this.revBin(u,p,i);return a},W.prototype.revBin=function(i,a,p){if(0===i||i===p-1)return i;for(var u=0,_=0;_<a;_++)u|=(1&i)<<a-_-1,i>>=1;return u},W.prototype.permute=function(i,a,p,u,_,L){for(var I=0;I<L;I++)u[I]=a[i[I]],_[I]=p[i[I]]},W.prototype.transform=function(i,a,p,u,_,L){this.permute(L,i,a,p,u,_);for(var I=1;I<_;I<<=1)for(var x=I<<1,r=Math.cos(2*Math.PI/x),v=Math.sin(2*Math.PI/x),G=0;G<_;G+=x)for(var F=r,U=v,ye=0;ye<I;ye++){var Ce=p[G+ye],Be=u[G+ye],ze=p[G+ye+I],Ie=u[G+ye+I],K=F*ze-U*Ie;Ie=F*Ie+U*ze,p[G+ye]=Ce+(ze=K),u[G+ye]=Be+Ie,p[G+ye+I]=Ce-ze,u[G+ye+I]=Be-Ie,ye!==x&&(K=r*F-v*U,U=r*U+v*F,F=K)}},W.prototype.guessLen13b=function(i,a){var p=1|Math.max(a,i),u=1&p,_=0;for(p=p/2|0;p;p>>>=1)_++;return 1<<_+1+u},W.prototype.conjugate=function(i,a,p){if(!(p<=1))for(var u=0;u<p/2;u++){var _=i[u];i[u]=i[p-u-1],i[p-u-1]=_,_=a[u],a[u]=-a[p-u-1],a[p-u-1]=-_}},W.prototype.normalize13b=function(i,a){for(var p=0,u=0;u<a/2;u++){var _=8192*Math.round(i[2*u+1]/a)+Math.round(i[2*u]/a)+p;i[u]=67108863&_,p=_<67108864?0:_/67108864|0}return i},W.prototype.convert13b=function(i,a,p,u){for(var _=0,L=0;L<a;L++)p[2*L]=8191&(_+=0|i[L]),p[2*L+1]=8191&(_>>>=13),_>>>=13;for(L=2*a;L<u;++L)p[L]=0;y(0===_),y(0==(-8192&_))},W.prototype.stub=function(i){for(var a=new Array(i),p=0;p<i;p++)a[p]=0;return a},W.prototype.mulp=function(i,a,p){var u=2*this.guessLen13b(i.length,a.length),_=this.makeRBT(u),L=this.stub(u),I=new Array(u),x=new Array(u),r=new Array(u),v=new Array(u),G=new Array(u),F=new Array(u),U=p.words;U.length=u,this.convert13b(i.words,i.length,I,u),this.convert13b(a.words,a.length,v,u),this.transform(I,L,x,r,u,_),this.transform(v,L,G,F,u,_);for(var ye=0;ye<u;ye++){var Ce=x[ye]*G[ye]-r[ye]*F[ye];r[ye]=x[ye]*F[ye]+r[ye]*G[ye],x[ye]=Ce}return this.conjugate(x,r,u),this.transform(x,r,U,L,u,_),this.conjugate(U,L,u),this.normalize13b(U,u),p.negative=i.negative^a.negative,p.length=i.length+a.length,p.strip()},o.prototype.mul=function(i){var a=new o(null);return a.words=new Array(this.length+i.length),this.mulTo(i,a)},o.prototype.mulf=function(i){var a=new o(null);return a.words=new Array(this.length+i.length),j(this,i,a)},o.prototype.imul=function(i){return this.clone().mulTo(i,this)},o.prototype.imuln=function(i){y("number"==typeof i),y(i<67108864);for(var a=0,p=0;p<this.length;p++){var u=(0|this.words[p])*i,_=(67108863&u)+(67108863&a);a>>=26,a+=u/67108864|0,a+=_>>>26,this.words[p]=67108863&_}return 0!==a&&(this.words[p]=a,this.length++),this},o.prototype.muln=function(i){return this.clone().imuln(i)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(i){var a=function E(b){for(var i=new Array(b.bitLength()),a=0;a<i.length;a++){var u=a%26;i[a]=(b.words[a/26|0]&1<<u)>>>u}return i}(i);if(0===a.length)return new o(1);for(var p=this,u=0;u<a.length&&0===a[u];u++,p=p.sqr());if(++u<a.length)for(var _=p.sqr();u<a.length;u++,_=_.sqr())0!==a[u]&&(p=p.mul(_));return p},o.prototype.iushln=function(i){y("number"==typeof i&&i>=0);var _,a=i%26,p=(i-a)/26,u=67108863>>>26-a<<26-a;if(0!==a){var L=0;for(_=0;_<this.length;_++){var I=this.words[_]&u;this.words[_]=(0|this.words[_])-I<<a|L,L=I>>>26-a}L&&(this.words[_]=L,this.length++)}if(0!==p){for(_=this.length-1;_>=0;_--)this.words[_+p]=this.words[_];for(_=0;_<p;_++)this.words[_]=0;this.length+=p}return this.strip()},o.prototype.ishln=function(i){return y(0===this.negative),this.iushln(i)},o.prototype.iushrn=function(i,a,p){var u;y("number"==typeof i&&i>=0),u=a?(a-a%26)/26:0;var _=i%26,L=Math.min((i-_)/26,this.length),I=67108863^67108863>>>_<<_,x=p;if(u-=L,u=Math.max(0,u),x){for(var r=0;r<L;r++)x.words[r]=this.words[r];x.length=L}if(0!==L)if(this.length>L)for(this.length-=L,r=0;r<this.length;r++)this.words[r]=this.words[r+L];else this.words[0]=0,this.length=1;var v=0;for(r=this.length-1;r>=0&&(0!==v||r>=u);r--){var G=0|this.words[r];this.words[r]=v<<26-_|G>>>_,v=G&I}return x&&0!==v&&(x.words[x.length++]=v),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(i,a,p){return y(0===this.negative),this.iushrn(i,a,p)},o.prototype.shln=function(i){return this.clone().ishln(i)},o.prototype.ushln=function(i){return this.clone().iushln(i)},o.prototype.shrn=function(i){return this.clone().ishrn(i)},o.prototype.ushrn=function(i){return this.clone().iushrn(i)},o.prototype.testn=function(i){y("number"==typeof i&&i>=0);var a=i%26,p=(i-a)/26;return!(this.length<=p||!(this.words[p]&1<<a))},o.prototype.imaskn=function(i){y("number"==typeof i&&i>=0);var a=i%26,p=(i-a)/26;return y(0===this.negative,"imaskn works only with positive numbers"),this.length<=p?this:(0!==a&&p++,this.length=Math.min(p,this.length),0!==a&&(this.words[this.length-1]&=67108863^67108863>>>a<<a),this.strip())},o.prototype.maskn=function(i){return this.clone().imaskn(i)},o.prototype.iaddn=function(i){return y("number"==typeof i),y(i<67108864),i<0?this.isubn(-i):0!==this.negative?1===this.length&&(0|this.words[0])<i?(this.words[0]=i-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(i),this.negative=1,this):this._iaddn(i)},o.prototype._iaddn=function(i){this.words[0]+=i;for(var a=0;a<this.length&&this.words[a]>=67108864;a++)this.words[a]-=67108864,a===this.length-1?this.words[a+1]=1:this.words[a+1]++;return this.length=Math.max(this.length,a+1),this},o.prototype.isubn=function(i){if(y("number"==typeof i),y(i<67108864),i<0)return this.iaddn(-i);if(0!==this.negative)return this.negative=0,this.iaddn(i),this.negative=1,this;if(this.words[0]-=i,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var a=0;a<this.length&&this.words[a]<0;a++)this.words[a]+=67108864,this.words[a+1]-=1;return this.strip()},o.prototype.addn=function(i){return this.clone().iaddn(i)},o.prototype.subn=function(i){return this.clone().isubn(i)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(i,a,p){var _;this._expand(i.length+p);var L,I=0;for(_=0;_<i.length;_++){L=(0|this.words[_+p])+I;var x=(0|i.words[_])*a;I=((L-=67108863&x)>>26)-(x/67108864|0),this.words[_+p]=67108863&L}for(;_<this.length-p;_++)I=(L=(0|this.words[_+p])+I)>>26,this.words[_+p]=67108863&L;if(0===I)return this.strip();for(y(-1===I),I=0,_=0;_<this.length;_++)I=(L=-(0|this.words[_])+I)>>26,this.words[_]=67108863&L;return this.negative=1,this.strip()},o.prototype._wordDiv=function(i,a){var p,u=this.clone(),_=i,L=0|_.words[_.length-1];0!=(p=26-this._countBits(L))&&(_=_.ushln(p),u.iushln(p),L=0|_.words[_.length-1]);var r,x=u.length-_.length;if("mod"!==a){(r=new o(null)).length=x+1,r.words=new Array(r.length);for(var v=0;v<r.length;v++)r.words[v]=0}var G=u.clone()._ishlnsubmul(_,1,x);0===G.negative&&(u=G,r&&(r.words[x]=1));for(var F=x-1;F>=0;F--){var U=67108864*(0|u.words[_.length+F])+(0|u.words[_.length+F-1]);for(U=Math.min(U/L|0,67108863),u._ishlnsubmul(_,U,F);0!==u.negative;)U--,u.negative=0,u._ishlnsubmul(_,1,F),u.isZero()||(u.negative^=1);r&&(r.words[F]=U)}return r&&r.strip(),u.strip(),"div"!==a&&0!==p&&u.iushrn(p),{div:r||null,mod:u}},o.prototype.divmod=function(i,a,p){return y(!i.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===i.negative?(L=this.neg().divmod(i,a),"mod"!==a&&(u=L.div.neg()),"div"!==a&&(_=L.mod.neg(),p&&0!==_.negative&&_.iadd(i)),{div:u,mod:_}):0===this.negative&&0!==i.negative?(L=this.divmod(i.neg(),a),"mod"!==a&&(u=L.div.neg()),{div:u,mod:L.mod}):0!=(this.negative&i.negative)?(L=this.neg().divmod(i.neg(),a),"div"!==a&&(_=L.mod.neg(),p&&0!==_.negative&&_.isub(i)),{div:L.div,mod:_}):i.length>this.length||this.cmp(i)<0?{div:new o(0),mod:this}:1===i.length?"div"===a?{div:this.divn(i.words[0]),mod:null}:"mod"===a?{div:null,mod:new o(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new o(this.modn(i.words[0]))}:this._wordDiv(i,a);var u,_,L},o.prototype.div=function(i){return this.divmod(i,"div",!1).div},o.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},o.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},o.prototype.divRound=function(i){var a=this.divmod(i);if(a.mod.isZero())return a.div;var p=0!==a.div.negative?a.mod.isub(i):a.mod,u=i.ushrn(1),_=i.andln(1),L=p.cmp(u);return L<0||1===_&&0===L?a.div:0!==a.div.negative?a.div.isubn(1):a.div.iaddn(1)},o.prototype.modn=function(i){y(i<=67108863);for(var a=(1<<26)%i,p=0,u=this.length-1;u>=0;u--)p=(a*p+(0|this.words[u]))%i;return p},o.prototype.idivn=function(i){y(i<=67108863);for(var a=0,p=this.length-1;p>=0;p--){var u=(0|this.words[p])+67108864*a;this.words[p]=u/i|0,a=u%i}return this.strip()},o.prototype.divn=function(i){return this.clone().idivn(i)},o.prototype.egcd=function(i){y(0===i.negative),y(!i.isZero());var a=this,p=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var u=new o(1),_=new o(0),L=new o(0),I=new o(1),x=0;a.isEven()&&p.isEven();)a.iushrn(1),p.iushrn(1),++x;for(var r=p.clone(),v=a.clone();!a.isZero();){for(var G=0,F=1;0==(a.words[0]&F)&&G<26;++G,F<<=1);if(G>0)for(a.iushrn(G);G-- >0;)(u.isOdd()||_.isOdd())&&(u.iadd(r),_.isub(v)),u.iushrn(1),_.iushrn(1);for(var U=0,ye=1;0==(p.words[0]&ye)&&U<26;++U,ye<<=1);if(U>0)for(p.iushrn(U);U-- >0;)(L.isOdd()||I.isOdd())&&(L.iadd(r),I.isub(v)),L.iushrn(1),I.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(L),_.isub(I)):(p.isub(a),L.isub(u),I.isub(_))}return{a:L,b:I,gcd:p.iushln(x)}},o.prototype._invmp=function(i){y(0===i.negative),y(!i.isZero());var G,a=this,p=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var u=new o(1),_=new o(0),L=p.clone();a.cmpn(1)>0&&p.cmpn(1)>0;){for(var I=0,x=1;0==(a.words[0]&x)&&I<26;++I,x<<=1);if(I>0)for(a.iushrn(I);I-- >0;)u.isOdd()&&u.iadd(L),u.iushrn(1);for(var r=0,v=1;0==(p.words[0]&v)&&r<26;++r,v<<=1);if(r>0)for(p.iushrn(r);r-- >0;)_.isOdd()&&_.iadd(L),_.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(_)):(p.isub(a),_.isub(u))}return(G=0===a.cmpn(1)?u:_).cmpn(0)<0&&G.iadd(i),G},o.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var a=this.clone(),p=i.clone();a.negative=0,p.negative=0;for(var u=0;a.isEven()&&p.isEven();u++)a.iushrn(1),p.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;p.isEven();)p.iushrn(1);var _=a.cmp(p);if(_<0){var L=a;a=p,p=L}else if(0===_||0===p.cmpn(1))break;a.isub(p)}return p.iushln(u)},o.prototype.invm=function(i){return this.egcd(i).a.umod(i)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(i){return this.words[0]&i},o.prototype.bincn=function(i){y("number"==typeof i);var a=i%26,p=(i-a)/26,u=1<<a;if(this.length<=p)return this._expand(p+1),this.words[p]|=u,this;for(var _=u,L=p;0!==_&&L<this.length;L++){var I=0|this.words[L];_=(I+=_)>>>26,this.words[L]=I&=67108863}return 0!==_&&(this.words[L]=_,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(i){var p,a=i<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this.strip(),this.length>1)p=1;else{a&&(i=-i),y(i<=67108863,"Number is too big");var u=0|this.words[0];p=u===i?0:u<i?-1:1}return 0!==this.negative?0|-p:p},o.prototype.cmp=function(i){if(0!==this.negative&&0===i.negative)return-1;if(0===this.negative&&0!==i.negative)return 1;var a=this.ucmp(i);return 0!==this.negative?0|-a:a},o.prototype.ucmp=function(i){if(this.length>i.length)return 1;if(this.length<i.length)return-1;for(var a=0,p=this.length-1;p>=0;p--){var u=0|this.words[p],_=0|i.words[p];if(u!==_){u<_?a=-1:u>_&&(a=1);break}}return a},o.prototype.gtn=function(i){return 1===this.cmpn(i)},o.prototype.gt=function(i){return 1===this.cmp(i)},o.prototype.gten=function(i){return this.cmpn(i)>=0},o.prototype.gte=function(i){return this.cmp(i)>=0},o.prototype.ltn=function(i){return-1===this.cmpn(i)},o.prototype.lt=function(i){return-1===this.cmp(i)},o.prototype.lten=function(i){return this.cmpn(i)<=0},o.prototype.lte=function(i){return this.cmp(i)<=0},o.prototype.eqn=function(i){return 0===this.cmpn(i)},o.prototype.eq=function(i){return 0===this.cmp(i)},o.red=function(i){return new oe(i)},o.prototype.toRed=function(i){return y(!this.red,"Already a number in reduction context"),y(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},o.prototype.fromRed=function(){return y(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(i){return this.red=i,this},o.prototype.forceRed=function(i){return y(!this.red,"Already a number in reduction context"),this._forceRed(i)},o.prototype.redAdd=function(i){return y(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},o.prototype.redIAdd=function(i){return y(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},o.prototype.redSub=function(i){return y(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},o.prototype.redISub=function(i){return y(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},o.prototype.redShl=function(i){return y(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},o.prototype.redMul=function(i){return y(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},o.prototype.redIMul=function(i){return y(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},o.prototype.redSqr=function(){return y(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return y(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return y(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return y(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return y(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(i){return y(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var ie={k256:null,p224:null,p192:null,p25519:null};function ee(b,i){this.name=b,this.p=new o(i,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function _e(){ee.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function ce(){ee.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function re(){ee.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function de(){ee.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function oe(b){if("string"==typeof b){var i=o._prime(b);this.m=i.p,this.prime=i}else y(b.gtn(1),"modulus must be greater than 1"),this.m=b,this.prime=null}function ae(b){oe.call(this,b),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}ee.prototype._tmp=function(){var i=new o(null);return i.words=new Array(Math.ceil(this.n/13)),i},ee.prototype.ireduce=function(i){var p,a=i;do{this.split(a,this.tmp),p=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(p>this.n);var u=p<this.n?-1:a.ucmp(this.p);return 0===u?(a.words[0]=0,a.length=1):u>0?a.isub(this.p):void 0!==a.strip?a.strip():a._strip(),a},ee.prototype.split=function(i,a){i.iushrn(this.n,0,a)},ee.prototype.imulK=function(i){return i.imul(this.k)},C(_e,ee),_e.prototype.split=function(i,a){for(var p=4194303,u=Math.min(i.length,9),_=0;_<u;_++)a.words[_]=i.words[_];if(a.length=u,i.length<=9)return i.words[0]=0,void(i.length=1);var L=i.words[9];for(a.words[a.length++]=L&p,_=10;_<i.length;_++){var I=0|i.words[_];i.words[_-10]=(I&p)<<4|L>>>22,L=I}i.words[_-10]=L>>>=22,i.length-=0===L&&i.length>10?10:9},_e.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var a=0,p=0;p<i.length;p++){var u=0|i.words[p];i.words[p]=67108863&(a+=977*u),a=64*u+(a/67108864|0)}return 0===i.words[i.length-1]&&(i.length--,0===i.words[i.length-1]&&i.length--),i},C(ce,ee),C(re,ee),C(de,ee),de.prototype.imulK=function(i){for(var a=0,p=0;p<i.length;p++){var u=19*(0|i.words[p])+a,_=67108863&u;u>>>=26,i.words[p]=_,a=u}return 0!==a&&(i.words[i.length++]=a),i},o._prime=function(i){if(ie[i])return ie[i];var a;if("k256"===i)a=new _e;else if("p224"===i)a=new ce;else if("p192"===i)a=new re;else{if("p25519"!==i)throw new Error("Unknown prime "+i);a=new de}return ie[i]=a,a},oe.prototype._verify1=function(i){y(0===i.negative,"red works only with positives"),y(i.red,"red works only with red numbers")},oe.prototype._verify2=function(i,a){y(0==(i.negative|a.negative),"red works only with positives"),y(i.red&&i.red===a.red,"red works only with red numbers")},oe.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},oe.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},oe.prototype.add=function(i,a){this._verify2(i,a);var p=i.add(a);return p.cmp(this.m)>=0&&p.isub(this.m),p._forceRed(this)},oe.prototype.iadd=function(i,a){this._verify2(i,a);var p=i.iadd(a);return p.cmp(this.m)>=0&&p.isub(this.m),p},oe.prototype.sub=function(i,a){this._verify2(i,a);var p=i.sub(a);return p.cmpn(0)<0&&p.iadd(this.m),p._forceRed(this)},oe.prototype.isub=function(i,a){this._verify2(i,a);var p=i.isub(a);return p.cmpn(0)<0&&p.iadd(this.m),p},oe.prototype.shl=function(i,a){return this._verify1(i),this.imod(i.ushln(a))},oe.prototype.imul=function(i,a){return this._verify2(i,a),this.imod(i.imul(a))},oe.prototype.mul=function(i,a){return this._verify2(i,a),this.imod(i.mul(a))},oe.prototype.isqr=function(i){return this.imul(i,i.clone())},oe.prototype.sqr=function(i){return this.mul(i,i)},oe.prototype.sqrt=function(i){if(i.isZero())return i.clone();var a=this.m.andln(3);if(y(a%2==1),3===a){var p=this.m.add(new o(1)).iushrn(2);return this.pow(i,p)}for(var u=this.m.subn(1),_=0;!u.isZero()&&0===u.andln(1);)_++,u.iushrn(1);y(!u.isZero());var L=new o(1).toRed(this),I=L.redNeg(),x=this.m.subn(1).iushrn(1),r=this.m.bitLength();for(r=new o(2*r*r).toRed(this);0!==this.pow(r,x).cmp(I);)r.redIAdd(I);for(var v=this.pow(r,u),G=this.pow(i,u.addn(1).iushrn(1)),F=this.pow(i,u),U=_;0!==F.cmp(L);){for(var ye=F,Ce=0;0!==ye.cmp(L);Ce++)ye=ye.redSqr();y(Ce<U);var Be=this.pow(v,new o(1).iushln(U-Ce-1));G=G.redMul(Be),v=Be.redSqr(),F=F.redMul(v),U=Ce}return G},oe.prototype.invm=function(i){var a=i._invmp(this.m);return 0!==a.negative?(a.negative=0,this.imod(a).redNeg()):this.imod(a)},oe.prototype.pow=function(i,a){if(a.isZero())return new o(1).toRed(this);if(0===a.cmpn(1))return i.clone();var u=new Array(16);u[0]=new o(1).toRed(this),u[1]=i;for(var _=2;_<u.length;_++)u[_]=this.mul(u[_-1],i);var L=u[0],I=0,x=0,r=a.bitLength()%26;for(0===r&&(r=26),_=a.length-1;_>=0;_--){for(var v=a.words[_],G=r-1;G>=0;G--){var F=v>>G&1;L!==u[0]&&(L=this.sqr(L)),0!==F||0!==I?(I<<=1,I|=F,(4==++x||0===_&&0===G)&&(L=this.mul(L,u[I]),x=0,I=0)):x=0}r=26}return L},oe.prototype.convertTo=function(i){var a=i.umod(this.m);return a===i?a.clone():a},oe.prototype.convertFrom=function(i){var a=i.clone();return a.red=null,a},o.mont=function(i){return new ae(i)},C(ae,oe),ae.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},ae.prototype.convertFrom=function(i){var a=this.imod(i.mul(this.rinv));return a.red=null,a},ae.prototype.imul=function(i,a){if(i.isZero()||a.isZero())return i.words[0]=0,i.length=1,i;var p=i.imul(a),u=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=p.isub(u).iushrn(this.shift),L=_;return _.cmp(this.m)>=0?L=_.isub(this.m):_.cmpn(0)<0&&(L=_.iadd(this.m)),L._forceRed(this)},ae.prototype.mul=function(i,a){if(i.isZero()||a.isZero())return new o(0)._forceRed(this);var p=i.mul(a),u=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=p.isub(u).iushrn(this.shift),L=_;return _.cmp(this.m)>=0?L=_.isub(this.m):_.cmpn(0)<0&&(L=_.iadd(this.m)),L._forceRed(this)},ae.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(Ve=m.nmd(Ve),this)},6386:(Ve,Q,m)=>{"use strict";var e=m(3894),t=m(8095),y=m(5634),C=m(5244),o=m(1052);function M(l){o.call(this,"digest"),this._hash=l}e(M,o),M.prototype._update=function(l){this._hash.update(l)},M.prototype._final=function(){return this._hash.digest()},Ve.exports=function(N){return"md5"===(N=N.toLowerCase())?new t:"rmd160"===N||"ripemd160"===N?new y:new M(C(N))}},5640:(Ve,Q,m)=>{var e=m(8095);Ve.exports=function(t){return(new e).update(t).digest()}},4529:(Ve,Q,m)=>{"use strict";var e=m(3894),t=m(7309),y=m(1052),C=m(3502).Buffer,o=m(5640),M=m(5634),l=m(5244),N=C.alloc(128);function s(D,A){y.call(this,"digest"),"string"==typeof A&&(A=C.from(A));var O="sha512"===D||"sha384"===D?128:64;this._alg=D,this._key=A,A.length>O?A=("rmd160"===D?new M:l(D)).update(A).digest():A.length<O&&(A=C.concat([A,N],O));for(var P=this._ipad=C.allocUnsafe(O),w=this._opad=C.allocUnsafe(O),Z=0;Z<O;Z++)P[Z]=54^A[Z],w[Z]=92^A[Z];this._hash="rmd160"===D?new M:l(D),this._hash.update(P)}e(s,y),s.prototype._update=function(D){this._hash.update(D)},s.prototype._final=function(){var D=this._hash.digest();return("rmd160"===this._alg?new M:l(this._alg)).update(this._opad).update(D).digest()},Ve.exports=function(A,O){return"rmd160"===(A=A.toLowerCase())||"ripemd160"===A?new s("rmd160",O):"md5"===A?new t(o,O):new s(A,O)}},7309:(Ve,Q,m)=>{"use strict";var e=m(3894),t=m(3502).Buffer,y=m(1052),C=t.alloc(128),o=64;function M(l,N){y.call(this,"digest"),"string"==typeof N&&(N=t.from(N)),this._alg=l,this._key=N,N.length>o?N=l(N):N.length<o&&(N=t.concat([N,C],o));for(var s=this._ipad=t.allocUnsafe(o),D=this._opad=t.allocUnsafe(o),A=0;A<o;A++)s[A]=54^N[A],D[A]=92^N[A];this._hash=[s]}e(M,y),M.prototype._update=function(l){this._hash.push(l)},M.prototype._final=function(){var l=this._alg(t.concat(this._hash));return this._alg(t.concat([this._opad,l]))},Ve.exports=M},1348:(Ve,Q,m)=>{"use strict";Q.randomBytes=Q.rng=Q.pseudoRandomBytes=Q.prng=m(3753),Q.createHash=Q.Hash=m(6386),Q.createHmac=Q.Hmac=m(4529);var e=m(7793),t=Object.keys(e),y=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(t);Q.getHashes=function(){return y};var C=m(9357);Q.pbkdf2=C.pbkdf2,Q.pbkdf2Sync=C.pbkdf2Sync;var o=m(5255);Q.Cipher=o.Cipher,Q.createCipher=o.createCipher,Q.Cipheriv=o.Cipheriv,Q.createCipheriv=o.createCipheriv,Q.Decipher=o.Decipher,Q.createDecipher=o.createDecipher,Q.Decipheriv=o.Decipheriv,Q.createDecipheriv=o.createDecipheriv,Q.getCiphers=o.getCiphers,Q.listCiphers=o.listCiphers;var M=m(8829);Q.DiffieHellmanGroup=M.DiffieHellmanGroup,Q.createDiffieHellmanGroup=M.createDiffieHellmanGroup,Q.getDiffieHellman=M.getDiffieHellman,Q.createDiffieHellman=M.createDiffieHellman,Q.DiffieHellman=M.DiffieHellman;var l=m(3923);Q.createSign=l.createSign,Q.Sign=l.Sign,Q.createVerify=l.createVerify,Q.Verify=l.Verify,Q.createECDH=m(4746);var N=m(3701);Q.publicEncrypt=N.publicEncrypt,Q.privateEncrypt=N.privateEncrypt,Q.publicDecrypt=N.publicDecrypt,Q.privateDecrypt=N.privateDecrypt;var s=m(4275);Q.randomFill=s.randomFill,Q.randomFillSync=s.randomFillSync,Q.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},Q.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},3684:(Ve,Q,m)=>{"use strict";Q.utils=m(7451),Q.Cipher=m(8170),Q.DES=m(4631),Q.CBC=m(9454),Q.EDE=m(1862)},9454:(Ve,Q,m)=>{"use strict";var e=m(2391),t=m(3894),y={};function C(M){e.equal(M.length,8,"Invalid IV length"),this.iv=new Array(8);for(var l=0;l<this.iv.length;l++)this.iv[l]=M[l]}Q.instantiate=function o(M){function l(A){M.call(this,A),this._cbcInit()}t(l,M);for(var N=Object.keys(y),s=0;s<N.length;s++){var D=N[s];l.prototype[D]=y[D]}return l.create=function(O){return new l(O)},l},y._cbcInit=function(){var l=new C(this.options.iv);this._cbcState=l},y._update=function(l,N,s,D){var O=this.constructor.super_.prototype,E=this._cbcState.iv;if("encrypt"===this.type){for(var P=0;P<this.blockSize;P++)E[P]^=l[N+P];for(O._update.call(this,E,0,s,D),P=0;P<this.blockSize;P++)E[P]=s[D+P]}else{for(O._update.call(this,l,N,s,D),P=0;P<this.blockSize;P++)s[D+P]^=E[P];for(P=0;P<this.blockSize;P++)E[P]=l[N+P]}}},8170:(Ve,Q,m)=>{"use strict";var e=m(2391);function t(y){this.options=y,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}Ve.exports=t,t.prototype._init=function(){},t.prototype.update=function(C){return 0===C.length?[]:"decrypt"===this.type?this._updateDecrypt(C):this._updateEncrypt(C)},t.prototype._buffer=function(C,o){for(var M=Math.min(this.buffer.length-this.bufferOff,C.length-o),l=0;l<M;l++)this.buffer[this.bufferOff+l]=C[o+l];return this.bufferOff+=M,M},t.prototype._flushBuffer=function(C,o){return this._update(this.buffer,0,C,o),this.bufferOff=0,this.blockSize},t.prototype._updateEncrypt=function(C){var o=0,M=0,N=new Array(((this.bufferOff+C.length)/this.blockSize|0)*this.blockSize);0!==this.bufferOff&&(o+=this._buffer(C,o),this.bufferOff===this.buffer.length&&(M+=this._flushBuffer(N,M)));for(var s=C.length-(C.length-o)%this.blockSize;o<s;o+=this.blockSize)this._update(C,o,N,M),M+=this.blockSize;for(;o<C.length;o++,this.bufferOff++)this.buffer[this.bufferOff]=C[o];return N},t.prototype._updateDecrypt=function(C){for(var o=0,M=0,l=Math.ceil((this.bufferOff+C.length)/this.blockSize)-1,N=new Array(l*this.blockSize);l>0;l--)o+=this._buffer(C,o),M+=this._flushBuffer(N,M);return o+=this._buffer(C,o),N},t.prototype.final=function(C){var o,M;return C&&(o=this.update(C)),M="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),o?o.concat(M):M},t.prototype._pad=function(C,o){if(0===o)return!1;for(;o<C.length;)C[o++]=0;return!0},t.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var C=new Array(this.blockSize);return this._update(this.buffer,0,C,0),C},t.prototype._unpad=function(C){return C},t.prototype._finalDecrypt=function(){e.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var C=new Array(this.blockSize);return this._flushBuffer(C,0),this._unpad(C)}},4631:(Ve,Q,m)=>{"use strict";var e=m(2391),t=m(3894),y=m(7451),C=m(8170);function o(){this.tmp=new Array(2),this.keys=null}function M(N){C.call(this,N);var s=new o;this._desState=s,this.deriveKeys(s,N.key)}t(M,C),Ve.exports=M,M.create=function(s){return new M(s)};var l=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];M.prototype.deriveKeys=function(s,D){s.keys=new Array(32),e.equal(D.length,this.blockSize,"Invalid key length");var A=y.readUInt32BE(D,0),O=y.readUInt32BE(D,4);y.pc1(A,O,s.tmp,0),A=s.tmp[0],O=s.tmp[1];for(var E=0;E<s.keys.length;E+=2){var P=l[E>>>1];A=y.r28shl(A,P),O=y.r28shl(O,P),y.pc2(A,O,s.keys,E)}},M.prototype._update=function(s,D,A,O){var E=this._desState,P=y.readUInt32BE(s,D),w=y.readUInt32BE(s,D+4);y.ip(P,w,E.tmp,0),P=E.tmp[0],w=E.tmp[1],"encrypt"===this.type?this._encrypt(E,P,w,E.tmp,0):this._decrypt(E,P,w,E.tmp,0),w=E.tmp[1],y.writeUInt32BE(A,P=E.tmp[0],O),y.writeUInt32BE(A,w,O+4)},M.prototype._pad=function(s,D){for(var A=s.length-D,O=D;O<s.length;O++)s[O]=A;return!0},M.prototype._unpad=function(s){for(var D=s[s.length-1],A=s.length-D;A<s.length;A++)e.equal(s[A],D);return s.slice(0,s.length-D)},M.prototype._encrypt=function(s,D,A,O,E){for(var P=D,w=A,Z=0;Z<s.keys.length;Z+=2){var j=s.keys[Z],W=s.keys[Z+1];y.expand(w,s.tmp,0);var ie=y.substitute(j^=s.tmp[0],W^=s.tmp[1]),_e=w;w=(P^y.permute(ie))>>>0,P=_e}y.rip(w,P,O,E)},M.prototype._decrypt=function(s,D,A,O,E){for(var P=A,w=D,Z=s.keys.length-2;Z>=0;Z-=2){var j=s.keys[Z],W=s.keys[Z+1];y.expand(P,s.tmp,0);var ie=y.substitute(j^=s.tmp[0],W^=s.tmp[1]),_e=P;P=(w^y.permute(ie))>>>0,w=_e}y.rip(P,w,O,E)}},1862:(Ve,Q,m)=>{"use strict";var e=m(2391),t=m(3894),y=m(8170),C=m(4631);function o(l,N){e.equal(N.length,24,"Invalid key length");var s=N.slice(0,8),D=N.slice(8,16),A=N.slice(16,24);this.ciphers="encrypt"===l?[C.create({type:"encrypt",key:s}),C.create({type:"decrypt",key:D}),C.create({type:"encrypt",key:A})]:[C.create({type:"decrypt",key:A}),C.create({type:"encrypt",key:D}),C.create({type:"decrypt",key:s})]}function M(l){y.call(this,l);var N=new o(this.type,this.options.key);this._edeState=N}t(M,y),Ve.exports=M,M.create=function(N){return new M(N)},M.prototype._update=function(N,s,D,A){var O=this._edeState;O.ciphers[0]._update(N,s,D,A),O.ciphers[1]._update(D,A,D,A),O.ciphers[2]._update(D,A,D,A)},M.prototype._pad=C.prototype._pad,M.prototype._unpad=C.prototype._unpad},7451:(Ve,Q)=>{"use strict";Q.readUInt32BE=function(C,o){return(C[0+o]<<24|C[1+o]<<16|C[2+o]<<8|C[3+o])>>>0},Q.writeUInt32BE=function(C,o,M){C[0+M]=o>>>24,C[1+M]=o>>>16&255,C[2+M]=o>>>8&255,C[3+M]=255&o},Q.ip=function(C,o,M,l){for(var N=0,s=0,D=6;D>=0;D-=2){for(var A=0;A<=24;A+=8)N<<=1,N|=o>>>A+D&1;for(A=0;A<=24;A+=8)N<<=1,N|=C>>>A+D&1}for(D=6;D>=0;D-=2){for(A=1;A<=25;A+=8)s<<=1,s|=o>>>A+D&1;for(A=1;A<=25;A+=8)s<<=1,s|=C>>>A+D&1}M[l+0]=N>>>0,M[l+1]=s>>>0},Q.rip=function(C,o,M,l){for(var N=0,s=0,D=0;D<4;D++)for(var A=24;A>=0;A-=8)N<<=1,N|=o>>>A+D&1,N<<=1,N|=C>>>A+D&1;for(D=4;D<8;D++)for(A=24;A>=0;A-=8)s<<=1,s|=o>>>A+D&1,s<<=1,s|=C>>>A+D&1;M[l+0]=N>>>0,M[l+1]=s>>>0},Q.pc1=function(C,o,M,l){for(var N=0,s=0,D=7;D>=5;D--){for(var A=0;A<=24;A+=8)N<<=1,N|=o>>A+D&1;for(A=0;A<=24;A+=8)N<<=1,N|=C>>A+D&1}for(A=0;A<=24;A+=8)N<<=1,N|=o>>A+D&1;for(D=1;D<=3;D++){for(A=0;A<=24;A+=8)s<<=1,s|=o>>A+D&1;for(A=0;A<=24;A+=8)s<<=1,s|=C>>A+D&1}for(A=0;A<=24;A+=8)s<<=1,s|=C>>A+D&1;M[l+0]=N>>>0,M[l+1]=s>>>0},Q.r28shl=function(C,o){return C<<o&268435455|C>>>28-o};var m=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];Q.pc2=function(C,o,M,l){for(var N=0,s=0,D=m.length>>>1,A=0;A<D;A++)N<<=1,N|=C>>>m[A]&1;for(A=D;A<m.length;A++)s<<=1,s|=o>>>m[A]&1;M[l+0]=N>>>0,M[l+1]=s>>>0},Q.expand=function(C,o,M){var l=0,N=0;l=(1&C)<<5|C>>>27;for(var s=23;s>=15;s-=4)l<<=6,l|=C>>>s&63;for(s=11;s>=3;s-=4)N|=C>>>s&63,N<<=6;N|=(31&C)<<1|C>>>31,o[M+0]=l>>>0,o[M+1]=N>>>0};var e=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];Q.substitute=function(C,o){for(var M=0,l=0;l<4;l++)M<<=4,M|=e[64*l+(C>>>18-6*l&63)];for(l=0;l<4;l++)M<<=4,M|=e[256+64*l+(o>>>18-6*l&63)];return M>>>0};var t=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];Q.permute=function(C){for(var o=0,M=0;M<t.length;M++)o<<=1,o|=C>>>t[M]&1;return o>>>0},Q.padSplit=function(C,o,M){for(var l=C.toString(2);l.length<o;)l="0"+l;for(var N=[],s=0;s<o;s+=M)N.push(l.slice(s,s+M));return N.join(" ")}},8829:(Ve,Q,m)=>{var e=m(5563),t=m(9799),y=m(1419),o={binary:!0,hex:!0,base64:!0};Q.DiffieHellmanGroup=Q.createDiffieHellmanGroup=Q.getDiffieHellman=function C(l){var N=new Buffer(t[l].prime,"hex"),s=new Buffer(t[l].gen,"hex");return new y(N,s)},Q.createDiffieHellman=Q.DiffieHellman=function M(l,N,s,D){return Buffer.isBuffer(N)||void 0===o[N]?M(l,"binary",N,s):(N=N||"binary",D=D||"binary",s=s||new Buffer([2]),Buffer.isBuffer(s)||(s=new Buffer(s,D)),"number"==typeof l?new y(e(l,s),s,!0):(Buffer.isBuffer(l)||(l=new Buffer(l,N)),new y(l,s,!0)))}},1419:(Ve,Q,m)=>{var e=m(8313),y=new(m(7079)),C=new e(24),o=new e(11),M=new e(10),l=new e(3),N=new e(7),s=m(5563),D=m(3753);function A(j,W){return W=W||"utf8",Buffer.isBuffer(j)||(j=new Buffer(j,W)),this._pub=new e(j),this}function O(j,W){return W=W||"utf8",Buffer.isBuffer(j)||(j=new Buffer(j,W)),this._priv=new e(j),this}Ve.exports=w;var E={};function w(j,W,ie){this.setGenerator(W),this.__prime=new e(j),this._prime=e.mont(this.__prime),this._primeLen=j.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,ie?(this.setPublicKey=A,this.setPrivateKey=O):this._primeCode=8}function Z(j,W){var ie=new Buffer(j.toArray());return W?ie.toString(W):ie}Object.defineProperty(w.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function P(j,W){var ie=W.toString("hex"),ee=[ie,j.toString(16)].join("_");if(ee in E)return E[ee];var ce,_e=0;if(j.isEven()||!s.simpleSieve||!s.fermatTest(j)||!y.test(j))return _e+=1,E[ee]=_e+="02"===ie||"05"===ie?8:4,_e;switch(y.test(j.shrn(1))||(_e+=2),ie){case"02":j.mod(C).cmp(o)&&(_e+=8);break;case"05":(ce=j.mod(M)).cmp(l)&&ce.cmp(N)&&(_e+=8);break;default:_e+=4}return E[ee]=_e,_e}(this.__prime,this.__gen)),this._primeCode}}),w.prototype.generateKeys=function(){return this._priv||(this._priv=new e(D(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},w.prototype.computeSecret=function(j){var W=(j=(j=new e(j)).toRed(this._prime)).redPow(this._priv).fromRed(),ie=new Buffer(W.toArray()),ee=this.getPrime();if(ie.length<ee.length){var _e=new Buffer(ee.length-ie.length);_e.fill(0),ie=Buffer.concat([_e,ie])}return ie},w.prototype.getPublicKey=function(W){return Z(this._pub,W)},w.prototype.getPrivateKey=function(W){return Z(this._priv,W)},w.prototype.getPrime=function(j){return Z(this.__prime,j)},w.prototype.getGenerator=function(j){return Z(this._gen,j)},w.prototype.setGenerator=function(j,W){return W=W||"utf8",Buffer.isBuffer(j)||(j=new Buffer(j,W)),this.__gen=j,this._gen=new e(j),this}},5563:(Ve,Q,m)=>{var e=m(3753);Ve.exports=_e,_e.simpleSieve=ie,_e.fermatTest=ee;var t=m(8313),y=new t(24),o=new(m(7079)),M=new t(1),l=new t(2),N=new t(5),A=(new t(16),new t(8),new t(10)),O=new t(3),P=(new t(7),new t(11)),w=new t(4),j=(new t(12),null);function ie(ce){for(var re=function W(){if(null!==j)return j;var re=[];re[0]=2;for(var de=1,oe=3;oe<1048576;oe+=2){for(var ae=Math.ceil(Math.sqrt(oe)),b=0;b<de&&re[b]<=ae&&oe%re[b]!=0;b++);de!==b&&re[b]<=ae||(re[de++]=oe)}return j=re,re}(),de=0;de<re.length;de++)if(0===ce.modn(re[de]))return 0===ce.cmpn(re[de]);return!0}function ee(ce){var re=t.mont(ce);return 0===l.toRed(re).redPow(ce.subn(1)).fromRed().cmpn(1)}function _e(ce,re){if(ce<16)return new t(2===re||5===re?[140,123]:[140,39]);re=new t(re);for(var de,oe;;){for(de=new t(e(Math.ceil(ce/8)));de.bitLength()>ce;)de.ishrn(1);if(de.isEven()&&de.iadd(M),de.testn(1)||de.iadd(l),re.cmp(l)){if(!re.cmp(N))for(;de.mod(A).cmp(O);)de.iadd(w)}else for(;de.mod(y).cmp(P);)de.iadd(w);if(ie(oe=de.shrn(1))&&ie(de)&&ee(oe)&&ee(de)&&o.test(oe)&&o.test(de))return de}}},8313:function(Ve,Q,m){!function(e,t){"use strict";function y(b,i){if(!b)throw new Error(i||"Assertion failed")}function C(b,i){b.super_=i;var a=function(){};a.prototype=i.prototype,b.prototype=new a,b.prototype.constructor=b}function o(b,i,a){if(o.isBN(b))return b;this.negative=0,this.words=null,this.length=0,this.red=null,null!==b&&(("le"===i||"be"===i)&&(a=i,i=10),this._init(b||0,i||10,a||"be"))}var M;"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{M="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:m(7748).Buffer}catch(b){}function l(b,i){var a=b.charCodeAt(i);return a>=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function N(b,i,a){var p=l(b,a);return a-1>=i&&(p|=l(b,a-1)<<4),p}function s(b,i,a,p){for(var u=0,_=Math.min(b.length,a),L=i;L<_;L++){var I=b.charCodeAt(L)-48;u*=p,u+=I>=49?I-49+10:I>=17?I-17+10:I}return u}o.isBN=function(i){return i instanceof o||null!==i&&"object"==typeof i&&i.constructor.wordSize===o.wordSize&&Array.isArray(i.words)},o.max=function(i,a){return i.cmp(a)>0?i:a},o.min=function(i,a){return i.cmp(a)<0?i:a},o.prototype._init=function(i,a,p){if("number"==typeof i)return this._initNumber(i,a,p);if("object"==typeof i)return this._initArray(i,a,p);"hex"===a&&(a=16),y(a===(0|a)&&a>=2&&a<=36);var u=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(u++,this.negative=1),u<i.length&&(16===a?this._parseHex(i,u,p):(this._parseBase(i,a,u),"le"===p&&this._initArray(this.toArray(),a,p)))},o.prototype._initNumber=function(i,a,p){i<0&&(this.negative=1,i=-i),i<67108864?(this.words=[67108863&i],this.length=1):i<4503599627370496?(this.words=[67108863&i,i/67108864&67108863],this.length=2):(y(i<9007199254740992),this.words=[67108863&i,i/67108864&67108863,1],this.length=3),"le"===p&&this._initArray(this.toArray(),a,p)},o.prototype._initArray=function(i,a,p){if(y("number"==typeof i.length),i.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(i.length/3),this.words=new Array(this.length);for(var u=0;u<this.length;u++)this.words[u]=0;var _,L,I=0;if("be"===p)for(u=i.length-1,_=0;u>=0;u-=3)this.words[_]|=(L=i[u]|i[u-1]<<8|i[u-2]<<16)<<I&67108863,this.words[_+1]=L>>>26-I&67108863,(I+=24)>=26&&(I-=26,_++);else if("le"===p)for(u=0,_=0;u<i.length;u+=3)this.words[_]|=(L=i[u]|i[u+1]<<8|i[u+2]<<16)<<I&67108863,this.words[_+1]=L>>>26-I&67108863,(I+=24)>=26&&(I-=26,_++);return this.strip()},o.prototype._parseHex=function(i,a,p){this.length=Math.ceil((i.length-a)/6),this.words=new Array(this.length);for(var u=0;u<this.length;u++)this.words[u]=0;var I,_=0,L=0;if("be"===p)for(u=i.length-1;u>=a;u-=2)I=N(i,a,u)<<_,this.words[L]|=67108863&I,_>=18?(_-=18,this.words[L+=1]|=I>>>26):_+=8;else for(u=(i.length-a)%2==0?a+1:a;u<i.length;u+=2)I=N(i,a,u)<<_,this.words[L]|=67108863&I,_>=18?(_-=18,this.words[L+=1]|=I>>>26):_+=8;this.strip()},o.prototype._parseBase=function(i,a,p){this.words=[0],this.length=1;for(var u=0,_=1;_<=67108863;_*=a)u++;u--,_=_/a|0;for(var L=i.length-p,I=L%u,x=Math.min(L,L-I)+p,r=0,v=p;v<x;v+=u)r=s(i,v,v+u,a),this.imuln(_),this.words[0]+r<67108864?this.words[0]+=r:this._iaddn(r);if(0!==I){var G=1;for(r=s(i,v,i.length,a),v=0;v<I;v++)G*=a;this.imuln(G),this.words[0]+r<67108864?this.words[0]+=r:this._iaddn(r)}this.strip()},o.prototype.copy=function(i){i.words=new Array(this.length);for(var a=0;a<this.length;a++)i.words[a]=this.words[a];i.length=this.length,i.negative=this.negative,i.red=this.red},o.prototype.clone=function(){var i=new o(null);return this.copy(i),i},o.prototype._expand=function(i){for(;this.length<i;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var D=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],A=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],O=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function P(b,i,a){a.negative=i.negative^b.negative;var p=b.length+i.length|0;a.length=p,p=p-1|0;var u=0|b.words[0],_=0|i.words[0],L=u*_,x=L/67108864|0;a.words[0]=67108863&L;for(var r=1;r<p;r++){for(var v=x>>>26,G=67108863&x,F=Math.min(r,i.length-1),U=Math.max(0,r-b.length+1);U<=F;U++)v+=(L=(u=0|b.words[r-U|0])*(_=0|i.words[U])+G)/67108864|0,G=67108863&L;a.words[r]=0|G,x=0|v}return 0!==x?a.words[r]=0|x:a.length--,a.strip()}o.prototype.toString=function(i,a){var p;if(a=0|a||1,16===(i=i||10)||"hex"===i){p="";for(var u=0,_=0,L=0;L<this.length;L++){var I=this.words[L],x=(16777215&(I<<u|_)).toString(16);p=0!=(_=I>>>24-u&16777215)||L!==this.length-1?D[6-x.length]+x+p:x+p,(u+=2)>=26&&(u-=26,L--)}for(0!==_&&(p=_.toString(16)+p);p.length%a!=0;)p="0"+p;return 0!==this.negative&&(p="-"+p),p}if(i===(0|i)&&i>=2&&i<=36){var r=A[i],v=O[i];p="";var G=this.clone();for(G.negative=0;!G.isZero();){var F=G.modn(v).toString(i);p=(G=G.idivn(v)).isZero()?F+p:D[r-F.length]+F+p}for(this.isZero()&&(p="0"+p);p.length%a!=0;)p="0"+p;return 0!==this.negative&&(p="-"+p),p}y(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var i=this.words[0];return 2===this.length?i+=67108864*this.words[1]:3===this.length&&1===this.words[2]?i+=4503599627370496+67108864*this.words[1]:this.length>2&&y(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(i,a){return y(void 0!==M),this.toArrayLike(M,i,a)},o.prototype.toArray=function(i,a){return this.toArrayLike(Array,i,a)},o.prototype.toArrayLike=function(i,a,p){var u=this.byteLength(),_=p||Math.max(1,u);y(u<=_,"byte array longer than desired length"),y(_>0,"Requested array length <= 0"),this.strip();var x,r,L="le"===a,I=new i(_),v=this.clone();if(L){for(r=0;!v.isZero();r++)x=v.andln(255),v.iushrn(8),I[r]=x;for(;r<_;r++)I[r]=0}else{for(r=0;r<_-u;r++)I[r]=0;for(r=0;!v.isZero();r++)x=v.andln(255),v.iushrn(8),I[_-r-1]=x}return I},o.prototype._countBits=Math.clz32?function(i){return 32-Math.clz32(i)}:function(i){var a=i,p=0;return a>=4096&&(p+=13,a>>>=13),a>=64&&(p+=7,a>>>=7),a>=8&&(p+=4,a>>>=4),a>=2&&(p+=2,a>>>=2),p+a},o.prototype._zeroBits=function(i){if(0===i)return 26;var a=i,p=0;return 0==(8191&a)&&(p+=13,a>>>=13),0==(127&a)&&(p+=7,a>>>=7),0==(15&a)&&(p+=4,a>>>=4),0==(3&a)&&(p+=2,a>>>=2),0==(1&a)&&p++,p},o.prototype.bitLength=function(){var a=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+a},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,a=0;a<this.length;a++){var p=this._zeroBits(this.words[a]);if(i+=p,26!==p)break}return i},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(i){return 0!==this.negative?this.abs().inotn(i).iaddn(1):this.clone()},o.prototype.fromTwos=function(i){return this.testn(i-1)?this.notn(i).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(i){for(;this.length<i.length;)this.words[this.length++]=0;for(var a=0;a<i.length;a++)this.words[a]=this.words[a]|i.words[a];return this.strip()},o.prototype.ior=function(i){return y(0==(this.negative|i.negative)),this.iuor(i)},o.prototype.or=function(i){return this.length>i.length?this.clone().ior(i):i.clone().ior(this)},o.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},o.prototype.iuand=function(i){var a;a=this.length>i.length?i:this;for(var p=0;p<a.length;p++)this.words[p]=this.words[p]&i.words[p];return this.length=a.length,this.strip()},o.prototype.iand=function(i){return y(0==(this.negative|i.negative)),this.iuand(i)},o.prototype.and=function(i){return this.length>i.length?this.clone().iand(i):i.clone().iand(this)},o.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},o.prototype.iuxor=function(i){var a,p;this.length>i.length?(a=this,p=i):(a=i,p=this);for(var u=0;u<p.length;u++)this.words[u]=a.words[u]^p.words[u];if(this!==a)for(;u<a.length;u++)this.words[u]=a.words[u];return this.length=a.length,this.strip()},o.prototype.ixor=function(i){return y(0==(this.negative|i.negative)),this.iuxor(i)},o.prototype.xor=function(i){return this.length>i.length?this.clone().ixor(i):i.clone().ixor(this)},o.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},o.prototype.inotn=function(i){y("number"==typeof i&&i>=0);var a=0|Math.ceil(i/26),p=i%26;this._expand(a),p>0&&a--;for(var u=0;u<a;u++)this.words[u]=67108863&~this.words[u];return p>0&&(this.words[u]=~this.words[u]&67108863>>26-p),this.strip()},o.prototype.notn=function(i){return this.clone().inotn(i)},o.prototype.setn=function(i,a){y("number"==typeof i&&i>=0);var p=i/26|0,u=i%26;return this._expand(p+1),this.words[p]=a?this.words[p]|1<<u:this.words[p]&~(1<<u),this.strip()},o.prototype.iadd=function(i){var a,p,u;if(0!==this.negative&&0===i.negative)return this.negative=0,a=this.isub(i),this.negative^=1,this._normSign();if(0===this.negative&&0!==i.negative)return i.negative=0,a=this.isub(i),i.negative=1,a._normSign();this.length>i.length?(p=this,u=i):(p=i,u=this);for(var _=0,L=0;L<u.length;L++)this.words[L]=67108863&(a=(0|p.words[L])+(0|u.words[L])+_),_=a>>>26;for(;0!==_&&L<p.length;L++)this.words[L]=67108863&(a=(0|p.words[L])+_),_=a>>>26;if(this.length=p.length,0!==_)this.words[this.length]=_,this.length++;else if(p!==this)for(;L<p.length;L++)this.words[L]=p.words[L];return this},o.prototype.add=function(i){var a;return 0!==i.negative&&0===this.negative?(i.negative=0,a=this.sub(i),i.negative^=1,a):0===i.negative&&0!==this.negative?(this.negative=0,a=i.sub(this),this.negative=1,a):this.length>i.length?this.clone().iadd(i):i.clone().iadd(this)},o.prototype.isub=function(i){if(0!==i.negative){i.negative=0;var a=this.iadd(i);return i.negative=1,a._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(i),this.negative=1,this._normSign();var u,_,p=this.cmp(i);if(0===p)return this.negative=0,this.length=1,this.words[0]=0,this;p>0?(u=this,_=i):(u=i,_=this);for(var L=0,I=0;I<_.length;I++)L=(a=(0|u.words[I])-(0|_.words[I])+L)>>26,this.words[I]=67108863&a;for(;0!==L&&I<u.length;I++)L=(a=(0|u.words[I])+L)>>26,this.words[I]=67108863&a;if(0===L&&I<u.length&&u!==this)for(;I<u.length;I++)this.words[I]=u.words[I];return this.length=Math.max(this.length,I),u!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(i){return this.clone().isub(i)};var w=function(i,a,p){var x,r,v,u=i.words,_=a.words,L=p.words,I=0,G=0|u[0],F=8191&G,U=G>>>13,ye=0|u[1],Ce=8191&ye,Be=ye>>>13,ze=0|u[2],Ie=8191&ze,K=ze>>>13,Me=0|u[3],we=8191&Me,z=Me>>>13,Ge=0|u[4],vt=8191&Ge,Re=Ge>>>13,Ne=0|u[5],he=8191&Ne,Le=Ne>>>13,ke=0|u[6],q=8191&ke,$=ke>>>13,le=0|u[7],xe=8191&le,Ue=le>>>13,lt=0|u[8],nt=8191&lt,ft=lt>>>13,it=0|u[9],rt=8191&it,Mt=it>>>13,Zt=0|_[0],Ft=8191&Zt,Vt=Zt>>>13,Ii=0|_[1],jt=8191&Ii,ei=Ii>>>13,Pi=0|_[2],ai=8191&Pi,hi=Pi>>>13,Ze=0|_[3],Ee=8191&Ze,Y=Ze>>>13,me=0|_[4],De=8191&me,et=me>>>13,$t=0|_[5],Nt=8191&$t,Jt=$t>>>13,ct=0|_[6],Pe=8191&ct,Fe=ct>>>13,at=0|_[7],st=8191&at,At=at>>>13,li=0|_[8],Bt=8191&li,Rt=li>>>13,Li=0|_[9],si=8191&Li,ci=Li>>>13;p.negative=i.negative^a.negative,p.length=19;var sn=(I+(x=Math.imul(F,Ft))|0)+((8191&(r=(r=Math.imul(F,Vt))+Math.imul(U,Ft)|0))<<13)|0;I=((v=Math.imul(U,Vt))+(r>>>13)|0)+(sn>>>26)|0,sn&=67108863,x=Math.imul(Ce,Ft),r=(r=Math.imul(Ce,Vt))+Math.imul(Be,Ft)|0,v=Math.imul(Be,Vt);var Ui=(I+(x=x+Math.imul(F,jt)|0)|0)+((8191&(r=(r=r+Math.imul(F,ei)|0)+Math.imul(U,jt)|0))<<13)|0;I=((v=v+Math.imul(U,ei)|0)+(r>>>13)|0)+(Ui>>>26)|0,Ui&=67108863,x=Math.imul(Ie,Ft),r=(r=Math.imul(Ie,Vt))+Math.imul(K,Ft)|0,v=Math.imul(K,Vt),x=x+Math.imul(Ce,jt)|0,r=(r=r+Math.imul(Ce,ei)|0)+Math.imul(Be,jt)|0,v=v+Math.imul(Be,ei)|0;var Di=(I+(x=x+Math.imul(F,ai)|0)|0)+((8191&(r=(r=r+Math.imul(F,hi)|0)+Math.imul(U,ai)|0))<<13)|0;I=((v=v+Math.imul(U,hi)|0)+(r>>>13)|0)+(Di>>>26)|0,Di&=67108863,x=Math.imul(we,Ft),r=(r=Math.imul(we,Vt))+Math.imul(z,Ft)|0,v=Math.imul(z,Vt),x=x+Math.imul(Ie,jt)|0,r=(r=r+Math.imul(Ie,ei)|0)+Math.imul(K,jt)|0,v=v+Math.imul(K,ei)|0,x=x+Math.imul(Ce,ai)|0,r=(r=r+Math.imul(Ce,hi)|0)+Math.imul(Be,ai)|0,v=v+Math.imul(Be,hi)|0;var Xi=(I+(x=x+Math.imul(F,Ee)|0)|0)+((8191&(r=(r=r+Math.imul(F,Y)|0)+Math.imul(U,Ee)|0))<<13)|0;I=((v=v+Math.imul(U,Y)|0)+(r>>>13)|0)+(Xi>>>26)|0,Xi&=67108863,x=Math.imul(vt,Ft),r=(r=Math.imul(vt,Vt))+Math.imul(Re,Ft)|0,v=Math.imul(Re,Vt),x=x+Math.imul(we,jt)|0,r=(r=r+Math.imul(we,ei)|0)+Math.imul(z,jt)|0,v=v+Math.imul(z,ei)|0,x=x+Math.imul(Ie,ai)|0,r=(r=r+Math.imul(Ie,hi)|0)+Math.imul(K,ai)|0,v=v+Math.imul(K,hi)|0,x=x+Math.imul(Ce,Ee)|0,r=(r=r+Math.imul(Ce,Y)|0)+Math.imul(Be,Ee)|0,v=v+Math.imul(Be,Y)|0;var Ke=(I+(x=x+Math.imul(F,De)|0)|0)+((8191&(r=(r=r+Math.imul(F,et)|0)+Math.imul(U,De)|0))<<13)|0;I=((v=v+Math.imul(U,et)|0)+(r>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,x=Math.imul(he,Ft),r=(r=Math.imul(he,Vt))+Math.imul(Le,Ft)|0,v=Math.imul(Le,Vt),x=x+Math.imul(vt,jt)|0,r=(r=r+Math.imul(vt,ei)|0)+Math.imul(Re,jt)|0,v=v+Math.imul(Re,ei)|0,x=x+Math.imul(we,ai)|0,r=(r=r+Math.imul(we,hi)|0)+Math.imul(z,ai)|0,v=v+Math.imul(z,hi)|0,x=x+Math.imul(Ie,Ee)|0,r=(r=r+Math.imul(Ie,Y)|0)+Math.imul(K,Ee)|0,v=v+Math.imul(K,Y)|0,x=x+Math.imul(Ce,De)|0,r=(r=r+Math.imul(Ce,et)|0)+Math.imul(Be,De)|0,v=v+Math.imul(Be,et)|0;var _t=(I+(x=x+Math.imul(F,Nt)|0)|0)+((8191&(r=(r=r+Math.imul(F,Jt)|0)+Math.imul(U,Nt)|0))<<13)|0;I=((v=v+Math.imul(U,Jt)|0)+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,x=Math.imul(q,Ft),r=(r=Math.imul(q,Vt))+Math.imul($,Ft)|0,v=Math.imul($,Vt),x=x+Math.imul(he,jt)|0,r=(r=r+Math.imul(he,ei)|0)+Math.imul(Le,jt)|0,v=v+Math.imul(Le,ei)|0,x=x+Math.imul(vt,ai)|0,r=(r=r+Math.imul(vt,hi)|0)+Math.imul(Re,ai)|0,v=v+Math.imul(Re,hi)|0,x=x+Math.imul(we,Ee)|0,r=(r=r+Math.imul(we,Y)|0)+Math.imul(z,Ee)|0,v=v+Math.imul(z,Y)|0,x=x+Math.imul(Ie,De)|0,r=(r=r+Math.imul(Ie,et)|0)+Math.imul(K,De)|0,v=v+Math.imul(K,et)|0,x=x+Math.imul(Ce,Nt)|0,r=(r=r+Math.imul(Ce,Jt)|0)+Math.imul(Be,Nt)|0,v=v+Math.imul(Be,Jt)|0;var ve=(I+(x=x+Math.imul(F,Pe)|0)|0)+((8191&(r=(r=r+Math.imul(F,Fe)|0)+Math.imul(U,Pe)|0))<<13)|0;I=((v=v+Math.imul(U,Fe)|0)+(r>>>13)|0)+(ve>>>26)|0,ve&=67108863,x=Math.imul(xe,Ft),r=(r=Math.imul(xe,Vt))+Math.imul(Ue,Ft)|0,v=Math.imul(Ue,Vt),x=x+Math.imul(q,jt)|0,r=(r=r+Math.imul(q,ei)|0)+Math.imul($,jt)|0,v=v+Math.imul($,ei)|0,x=x+Math.imul(he,ai)|0,r=(r=r+Math.imul(he,hi)|0)+Math.imul(Le,ai)|0,v=v+Math.imul(Le,hi)|0,x=x+Math.imul(vt,Ee)|0,r=(r=r+Math.imul(vt,Y)|0)+Math.imul(Re,Ee)|0,v=v+Math.imul(Re,Y)|0,x=x+Math.imul(we,De)|0,r=(r=r+Math.imul(we,et)|0)+Math.imul(z,De)|0,v=v+Math.imul(z,et)|0,x=x+Math.imul(Ie,Nt)|0,r=(r=r+Math.imul(Ie,Jt)|0)+Math.imul(K,Nt)|0,v=v+Math.imul(K,Jt)|0,x=x+Math.imul(Ce,Pe)|0,r=(r=r+Math.imul(Ce,Fe)|0)+Math.imul(Be,Pe)|0,v=v+Math.imul(Be,Fe)|0;var qe=(I+(x=x+Math.imul(F,st)|0)|0)+((8191&(r=(r=r+Math.imul(F,At)|0)+Math.imul(U,st)|0))<<13)|0;I=((v=v+Math.imul(U,At)|0)+(r>>>13)|0)+(qe>>>26)|0,qe&=67108863,x=Math.imul(nt,Ft),r=(r=Math.imul(nt,Vt))+Math.imul(ft,Ft)|0,v=Math.imul(ft,Vt),x=x+Math.imul(xe,jt)|0,r=(r=r+Math.imul(xe,ei)|0)+Math.imul(Ue,jt)|0,v=v+Math.imul(Ue,ei)|0,x=x+Math.imul(q,ai)|0,r=(r=r+Math.imul(q,hi)|0)+Math.imul($,ai)|0,v=v+Math.imul($,hi)|0,x=x+Math.imul(he,Ee)|0,r=(r=r+Math.imul(he,Y)|0)+Math.imul(Le,Ee)|0,v=v+Math.imul(Le,Y)|0,x=x+Math.imul(vt,De)|0,r=(r=r+Math.imul(vt,et)|0)+Math.imul(Re,De)|0,v=v+Math.imul(Re,et)|0,x=x+Math.imul(we,Nt)|0,r=(r=r+Math.imul(we,Jt)|0)+Math.imul(z,Nt)|0,v=v+Math.imul(z,Jt)|0,x=x+Math.imul(Ie,Pe)|0,r=(r=r+Math.imul(Ie,Fe)|0)+Math.imul(K,Pe)|0,v=v+Math.imul(K,Fe)|0,x=x+Math.imul(Ce,st)|0,r=(r=r+Math.imul(Ce,At)|0)+Math.imul(Be,st)|0,v=v+Math.imul(Be,At)|0;var yt=(I+(x=x+Math.imul(F,Bt)|0)|0)+((8191&(r=(r=r+Math.imul(F,Rt)|0)+Math.imul(U,Bt)|0))<<13)|0;I=((v=v+Math.imul(U,Rt)|0)+(r>>>13)|0)+(yt>>>26)|0,yt&=67108863,x=Math.imul(rt,Ft),r=(r=Math.imul(rt,Vt))+Math.imul(Mt,Ft)|0,v=Math.imul(Mt,Vt),x=x+Math.imul(nt,jt)|0,r=(r=r+Math.imul(nt,ei)|0)+Math.imul(ft,jt)|0,v=v+Math.imul(ft,ei)|0,x=x+Math.imul(xe,ai)|0,r=(r=r+Math.imul(xe,hi)|0)+Math.imul(Ue,ai)|0,v=v+Math.imul(Ue,hi)|0,x=x+Math.imul(q,Ee)|0,r=(r=r+Math.imul(q,Y)|0)+Math.imul($,Ee)|0,v=v+Math.imul($,Y)|0,x=x+Math.imul(he,De)|0,r=(r=r+Math.imul(he,et)|0)+Math.imul(Le,De)|0,v=v+Math.imul(Le,et)|0,x=x+Math.imul(vt,Nt)|0,r=(r=r+Math.imul(vt,Jt)|0)+Math.imul(Re,Nt)|0,v=v+Math.imul(Re,Jt)|0,x=x+Math.imul(we,Pe)|0,r=(r=r+Math.imul(we,Fe)|0)+Math.imul(z,Pe)|0,v=v+Math.imul(z,Fe)|0,x=x+Math.imul(Ie,st)|0,r=(r=r+Math.imul(Ie,At)|0)+Math.imul(K,st)|0,v=v+Math.imul(K,At)|0,x=x+Math.imul(Ce,Bt)|0,r=(r=r+Math.imul(Ce,Rt)|0)+Math.imul(Be,Bt)|0,v=v+Math.imul(Be,Rt)|0;var fe=(I+(x=x+Math.imul(F,si)|0)|0)+((8191&(r=(r=r+Math.imul(F,ci)|0)+Math.imul(U,si)|0))<<13)|0;I=((v=v+Math.imul(U,ci)|0)+(r>>>13)|0)+(fe>>>26)|0,fe&=67108863,x=Math.imul(rt,jt),r=(r=Math.imul(rt,ei))+Math.imul(Mt,jt)|0,v=Math.imul(Mt,ei),x=x+Math.imul(nt,ai)|0,r=(r=r+Math.imul(nt,hi)|0)+Math.imul(ft,ai)|0,v=v+Math.imul(ft,hi)|0,x=x+Math.imul(xe,Ee)|0,r=(r=r+Math.imul(xe,Y)|0)+Math.imul(Ue,Ee)|0,v=v+Math.imul(Ue,Y)|0,x=x+Math.imul(q,De)|0,r=(r=r+Math.imul(q,et)|0)+Math.imul($,De)|0,v=v+Math.imul($,et)|0,x=x+Math.imul(he,Nt)|0,r=(r=r+Math.imul(he,Jt)|0)+Math.imul(Le,Nt)|0,v=v+Math.imul(Le,Jt)|0,x=x+Math.imul(vt,Pe)|0,r=(r=r+Math.imul(vt,Fe)|0)+Math.imul(Re,Pe)|0,v=v+Math.imul(Re,Fe)|0,x=x+Math.imul(we,st)|0,r=(r=r+Math.imul(we,At)|0)+Math.imul(z,st)|0,v=v+Math.imul(z,At)|0,x=x+Math.imul(Ie,Bt)|0,r=(r=r+Math.imul(Ie,Rt)|0)+Math.imul(K,Bt)|0,v=v+Math.imul(K,Rt)|0;var Je=(I+(x=x+Math.imul(Ce,si)|0)|0)+((8191&(r=(r=r+Math.imul(Ce,ci)|0)+Math.imul(Be,si)|0))<<13)|0;I=((v=v+Math.imul(Be,ci)|0)+(r>>>13)|0)+(Je>>>26)|0,Je&=67108863,x=Math.imul(rt,ai),r=(r=Math.imul(rt,hi))+Math.imul(Mt,ai)|0,v=Math.imul(Mt,hi),x=x+Math.imul(nt,Ee)|0,r=(r=r+Math.imul(nt,Y)|0)+Math.imul(ft,Ee)|0,v=v+Math.imul(ft,Y)|0,x=x+Math.imul(xe,De)|0,r=(r=r+Math.imul(xe,et)|0)+Math.imul(Ue,De)|0,v=v+Math.imul(Ue,et)|0,x=x+Math.imul(q,Nt)|0,r=(r=r+Math.imul(q,Jt)|0)+Math.imul($,Nt)|0,v=v+Math.imul($,Jt)|0,x=x+Math.imul(he,Pe)|0,r=(r=r+Math.imul(he,Fe)|0)+Math.imul(Le,Pe)|0,v=v+Math.imul(Le,Fe)|0,x=x+Math.imul(vt,st)|0,r=(r=r+Math.imul(vt,At)|0)+Math.imul(Re,st)|0,v=v+Math.imul(Re,At)|0,x=x+Math.imul(we,Bt)|0,r=(r=r+Math.imul(we,Rt)|0)+Math.imul(z,Bt)|0,v=v+Math.imul(z,Rt)|0;var St=(I+(x=x+Math.imul(Ie,si)|0)|0)+((8191&(r=(r=r+Math.imul(Ie,ci)|0)+Math.imul(K,si)|0))<<13)|0;I=((v=v+Math.imul(K,ci)|0)+(r>>>13)|0)+(St>>>26)|0,St&=67108863,x=Math.imul(rt,Ee),r=(r=Math.imul(rt,Y))+Math.imul(Mt,Ee)|0,v=Math.imul(Mt,Y),x=x+Math.imul(nt,De)|0,r=(r=r+Math.imul(nt,et)|0)+Math.imul(ft,De)|0,v=v+Math.imul(ft,et)|0,x=x+Math.imul(xe,Nt)|0,r=(r=r+Math.imul(xe,Jt)|0)+Math.imul(Ue,Nt)|0,v=v+Math.imul(Ue,Jt)|0,x=x+Math.imul(q,Pe)|0,r=(r=r+Math.imul(q,Fe)|0)+Math.imul($,Pe)|0,v=v+Math.imul($,Fe)|0,x=x+Math.imul(he,st)|0,r=(r=r+Math.imul(he,At)|0)+Math.imul(Le,st)|0,v=v+Math.imul(Le,At)|0,x=x+Math.imul(vt,Bt)|0,r=(r=r+Math.imul(vt,Rt)|0)+Math.imul(Re,Bt)|0,v=v+Math.imul(Re,Rt)|0;var Pt=(I+(x=x+Math.imul(we,si)|0)|0)+((8191&(r=(r=r+Math.imul(we,ci)|0)+Math.imul(z,si)|0))<<13)|0;I=((v=v+Math.imul(z,ci)|0)+(r>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,x=Math.imul(rt,De),r=(r=Math.imul(rt,et))+Math.imul(Mt,De)|0,v=Math.imul(Mt,et),x=x+Math.imul(nt,Nt)|0,r=(r=r+Math.imul(nt,Jt)|0)+Math.imul(ft,Nt)|0,v=v+Math.imul(ft,Jt)|0,x=x+Math.imul(xe,Pe)|0,r=(r=r+Math.imul(xe,Fe)|0)+Math.imul(Ue,Pe)|0,v=v+Math.imul(Ue,Fe)|0,x=x+Math.imul(q,st)|0,r=(r=r+Math.imul(q,At)|0)+Math.imul($,st)|0,v=v+Math.imul($,At)|0,x=x+Math.imul(he,Bt)|0,r=(r=r+Math.imul(he,Rt)|0)+Math.imul(Le,Bt)|0,v=v+Math.imul(Le,Rt)|0;var yi=(I+(x=x+Math.imul(vt,si)|0)|0)+((8191&(r=(r=r+Math.imul(vt,ci)|0)+Math.imul(Re,si)|0))<<13)|0;I=((v=v+Math.imul(Re,ci)|0)+(r>>>13)|0)+(yi>>>26)|0,yi&=67108863,x=Math.imul(rt,Nt),r=(r=Math.imul(rt,Jt))+Math.imul(Mt,Nt)|0,v=Math.imul(Mt,Jt),x=x+Math.imul(nt,Pe)|0,r=(r=r+Math.imul(nt,Fe)|0)+Math.imul(ft,Pe)|0,v=v+Math.imul(ft,Fe)|0,x=x+Math.imul(xe,st)|0,r=(r=r+Math.imul(xe,At)|0)+Math.imul(Ue,st)|0,v=v+Math.imul(Ue,At)|0,x=x+Math.imul(q,Bt)|0,r=(r=r+Math.imul(q,Rt)|0)+Math.imul($,Bt)|0,v=v+Math.imul($,Rt)|0;var Ni=(I+(x=x+Math.imul(he,si)|0)|0)+((8191&(r=(r=r+Math.imul(he,ci)|0)+Math.imul(Le,si)|0))<<13)|0;I=((v=v+Math.imul(Le,ci)|0)+(r>>>13)|0)+(Ni>>>26)|0,Ni&=67108863,x=Math.imul(rt,Pe),r=(r=Math.imul(rt,Fe))+Math.imul(Mt,Pe)|0,v=Math.imul(Mt,Fe),x=x+Math.imul(nt,st)|0,r=(r=r+Math.imul(nt,At)|0)+Math.imul(ft,st)|0,v=v+Math.imul(ft,At)|0,x=x+Math.imul(xe,Bt)|0,r=(r=r+Math.imul(xe,Rt)|0)+Math.imul(Ue,Bt)|0,v=v+Math.imul(Ue,Rt)|0;var Si=(I+(x=x+Math.imul(q,si)|0)|0)+((8191&(r=(r=r+Math.imul(q,ci)|0)+Math.imul($,si)|0))<<13)|0;I=((v=v+Math.imul($,ci)|0)+(r>>>13)|0)+(Si>>>26)|0,Si&=67108863,x=Math.imul(rt,st),r=(r=Math.imul(rt,At))+Math.imul(Mt,st)|0,v=Math.imul(Mt,At),x=x+Math.imul(nt,Bt)|0,r=(r=r+Math.imul(nt,Rt)|0)+Math.imul(ft,Bt)|0,v=v+Math.imul(ft,Rt)|0;var qi=(I+(x=x+Math.imul(xe,si)|0)|0)+((8191&(r=(r=r+Math.imul(xe,ci)|0)+Math.imul(Ue,si)|0))<<13)|0;I=((v=v+Math.imul(Ue,ci)|0)+(r>>>13)|0)+(qi>>>26)|0,qi&=67108863,x=Math.imul(rt,Bt),r=(r=Math.imul(rt,Rt))+Math.imul(Mt,Bt)|0,v=Math.imul(Mt,Rt);var ot=(I+(x=x+Math.imul(nt,si)|0)|0)+((8191&(r=(r=r+Math.imul(nt,ci)|0)+Math.imul(ft,si)|0))<<13)|0;I=((v=v+Math.imul(ft,ci)|0)+(r>>>13)|0)+(ot>>>26)|0,ot&=67108863;var Kt=(I+(x=Math.imul(rt,si))|0)+((8191&(r=(r=Math.imul(rt,ci))+Math.imul(Mt,si)|0))<<13)|0;return I=((v=Math.imul(Mt,ci))+(r>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,L[0]=sn,L[1]=Ui,L[2]=Di,L[3]=Xi,L[4]=Ke,L[5]=_t,L[6]=ve,L[7]=qe,L[8]=yt,L[9]=fe,L[10]=Je,L[11]=St,L[12]=Pt,L[13]=yi,L[14]=Ni,L[15]=Si,L[16]=qi,L[17]=ot,L[18]=Kt,0!==I&&(L[19]=I,p.length++),p};function j(b,i,a){return(new W).mulp(b,i,a)}function W(b,i){this.x=b,this.y=i}Math.imul||(w=P),o.prototype.mulTo=function(i,a){var p,u=this.length+i.length;return p=10===this.length&&10===i.length?w(this,i,a):u<63?P(this,i,a):u<1024?function Z(b,i,a){a.negative=i.negative^b.negative,a.length=b.length+i.length;for(var p=0,u=0,_=0;_<a.length-1;_++){var L=u;u=0;for(var I=67108863&p,x=Math.min(_,i.length-1),r=Math.max(0,_-b.length+1);r<=x;r++){var U=(0|b.words[_-r])*(0|i.words[r]),ye=67108863&U;I=67108863&(ye=ye+I|0),u+=(L=(L=L+(U/67108864|0)|0)+(ye>>>26)|0)>>>26,L&=67108863}a.words[_]=I,p=L,L=u}return 0!==p?a.words[_]=p:a.length--,a.strip()}(this,i,a):j(this,i,a),p},W.prototype.makeRBT=function(i){for(var a=new Array(i),p=o.prototype._countBits(i)-1,u=0;u<i;u++)a[u]=this.revBin(u,p,i);return a},W.prototype.revBin=function(i,a,p){if(0===i||i===p-1)return i;for(var u=0,_=0;_<a;_++)u|=(1&i)<<a-_-1,i>>=1;return u},W.prototype.permute=function(i,a,p,u,_,L){for(var I=0;I<L;I++)u[I]=a[i[I]],_[I]=p[i[I]]},W.prototype.transform=function(i,a,p,u,_,L){this.permute(L,i,a,p,u,_);for(var I=1;I<_;I<<=1)for(var x=I<<1,r=Math.cos(2*Math.PI/x),v=Math.sin(2*Math.PI/x),G=0;G<_;G+=x)for(var F=r,U=v,ye=0;ye<I;ye++){var Ce=p[G+ye],Be=u[G+ye],ze=p[G+ye+I],Ie=u[G+ye+I],K=F*ze-U*Ie;Ie=F*Ie+U*ze,p[G+ye]=Ce+(ze=K),u[G+ye]=Be+Ie,p[G+ye+I]=Ce-ze,u[G+ye+I]=Be-Ie,ye!==x&&(K=r*F-v*U,U=r*U+v*F,F=K)}},W.prototype.guessLen13b=function(i,a){var p=1|Math.max(a,i),u=1&p,_=0;for(p=p/2|0;p;p>>>=1)_++;return 1<<_+1+u},W.prototype.conjugate=function(i,a,p){if(!(p<=1))for(var u=0;u<p/2;u++){var _=i[u];i[u]=i[p-u-1],i[p-u-1]=_,_=a[u],a[u]=-a[p-u-1],a[p-u-1]=-_}},W.prototype.normalize13b=function(i,a){for(var p=0,u=0;u<a/2;u++){var _=8192*Math.round(i[2*u+1]/a)+Math.round(i[2*u]/a)+p;i[u]=67108863&_,p=_<67108864?0:_/67108864|0}return i},W.prototype.convert13b=function(i,a,p,u){for(var _=0,L=0;L<a;L++)p[2*L]=8191&(_+=0|i[L]),p[2*L+1]=8191&(_>>>=13),_>>>=13;for(L=2*a;L<u;++L)p[L]=0;y(0===_),y(0==(-8192&_))},W.prototype.stub=function(i){for(var a=new Array(i),p=0;p<i;p++)a[p]=0;return a},W.prototype.mulp=function(i,a,p){var u=2*this.guessLen13b(i.length,a.length),_=this.makeRBT(u),L=this.stub(u),I=new Array(u),x=new Array(u),r=new Array(u),v=new Array(u),G=new Array(u),F=new Array(u),U=p.words;U.length=u,this.convert13b(i.words,i.length,I,u),this.convert13b(a.words,a.length,v,u),this.transform(I,L,x,r,u,_),this.transform(v,L,G,F,u,_);for(var ye=0;ye<u;ye++){var Ce=x[ye]*G[ye]-r[ye]*F[ye];r[ye]=x[ye]*F[ye]+r[ye]*G[ye],x[ye]=Ce}return this.conjugate(x,r,u),this.transform(x,r,U,L,u,_),this.conjugate(U,L,u),this.normalize13b(U,u),p.negative=i.negative^a.negative,p.length=i.length+a.length,p.strip()},o.prototype.mul=function(i){var a=new o(null);return a.words=new Array(this.length+i.length),this.mulTo(i,a)},o.prototype.mulf=function(i){var a=new o(null);return a.words=new Array(this.length+i.length),j(this,i,a)},o.prototype.imul=function(i){return this.clone().mulTo(i,this)},o.prototype.imuln=function(i){y("number"==typeof i),y(i<67108864);for(var a=0,p=0;p<this.length;p++){var u=(0|this.words[p])*i,_=(67108863&u)+(67108863&a);a>>=26,a+=u/67108864|0,a+=_>>>26,this.words[p]=67108863&_}return 0!==a&&(this.words[p]=a,this.length++),this},o.prototype.muln=function(i){return this.clone().imuln(i)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(i){var a=function E(b){for(var i=new Array(b.bitLength()),a=0;a<i.length;a++){var u=a%26;i[a]=(b.words[a/26|0]&1<<u)>>>u}return i}(i);if(0===a.length)return new o(1);for(var p=this,u=0;u<a.length&&0===a[u];u++,p=p.sqr());if(++u<a.length)for(var _=p.sqr();u<a.length;u++,_=_.sqr())0!==a[u]&&(p=p.mul(_));return p},o.prototype.iushln=function(i){y("number"==typeof i&&i>=0);var _,a=i%26,p=(i-a)/26,u=67108863>>>26-a<<26-a;if(0!==a){var L=0;for(_=0;_<this.length;_++){var I=this.words[_]&u;this.words[_]=(0|this.words[_])-I<<a|L,L=I>>>26-a}L&&(this.words[_]=L,this.length++)}if(0!==p){for(_=this.length-1;_>=0;_--)this.words[_+p]=this.words[_];for(_=0;_<p;_++)this.words[_]=0;this.length+=p}return this.strip()},o.prototype.ishln=function(i){return y(0===this.negative),this.iushln(i)},o.prototype.iushrn=function(i,a,p){var u;y("number"==typeof i&&i>=0),u=a?(a-a%26)/26:0;var _=i%26,L=Math.min((i-_)/26,this.length),I=67108863^67108863>>>_<<_,x=p;if(u-=L,u=Math.max(0,u),x){for(var r=0;r<L;r++)x.words[r]=this.words[r];x.length=L}if(0!==L)if(this.length>L)for(this.length-=L,r=0;r<this.length;r++)this.words[r]=this.words[r+L];else this.words[0]=0,this.length=1;var v=0;for(r=this.length-1;r>=0&&(0!==v||r>=u);r--){var G=0|this.words[r];this.words[r]=v<<26-_|G>>>_,v=G&I}return x&&0!==v&&(x.words[x.length++]=v),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(i,a,p){return y(0===this.negative),this.iushrn(i,a,p)},o.prototype.shln=function(i){return this.clone().ishln(i)},o.prototype.ushln=function(i){return this.clone().iushln(i)},o.prototype.shrn=function(i){return this.clone().ishrn(i)},o.prototype.ushrn=function(i){return this.clone().iushrn(i)},o.prototype.testn=function(i){y("number"==typeof i&&i>=0);var a=i%26,p=(i-a)/26;return!(this.length<=p||!(this.words[p]&1<<a))},o.prototype.imaskn=function(i){y("number"==typeof i&&i>=0);var a=i%26,p=(i-a)/26;return y(0===this.negative,"imaskn works only with positive numbers"),this.length<=p?this:(0!==a&&p++,this.length=Math.min(p,this.length),0!==a&&(this.words[this.length-1]&=67108863^67108863>>>a<<a),this.strip())},o.prototype.maskn=function(i){return this.clone().imaskn(i)},o.prototype.iaddn=function(i){return y("number"==typeof i),y(i<67108864),i<0?this.isubn(-i):0!==this.negative?1===this.length&&(0|this.words[0])<i?(this.words[0]=i-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(i),this.negative=1,this):this._iaddn(i)},o.prototype._iaddn=function(i){this.words[0]+=i;for(var a=0;a<this.length&&this.words[a]>=67108864;a++)this.words[a]-=67108864,a===this.length-1?this.words[a+1]=1:this.words[a+1]++;return this.length=Math.max(this.length,a+1),this},o.prototype.isubn=function(i){if(y("number"==typeof i),y(i<67108864),i<0)return this.iaddn(-i);if(0!==this.negative)return this.negative=0,this.iaddn(i),this.negative=1,this;if(this.words[0]-=i,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var a=0;a<this.length&&this.words[a]<0;a++)this.words[a]+=67108864,this.words[a+1]-=1;return this.strip()},o.prototype.addn=function(i){return this.clone().iaddn(i)},o.prototype.subn=function(i){return this.clone().isubn(i)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(i,a,p){var _;this._expand(i.length+p);var L,I=0;for(_=0;_<i.length;_++){L=(0|this.words[_+p])+I;var x=(0|i.words[_])*a;I=((L-=67108863&x)>>26)-(x/67108864|0),this.words[_+p]=67108863&L}for(;_<this.length-p;_++)I=(L=(0|this.words[_+p])+I)>>26,this.words[_+p]=67108863&L;if(0===I)return this.strip();for(y(-1===I),I=0,_=0;_<this.length;_++)I=(L=-(0|this.words[_])+I)>>26,this.words[_]=67108863&L;return this.negative=1,this.strip()},o.prototype._wordDiv=function(i,a){var p,u=this.clone(),_=i,L=0|_.words[_.length-1];0!=(p=26-this._countBits(L))&&(_=_.ushln(p),u.iushln(p),L=0|_.words[_.length-1]);var r,x=u.length-_.length;if("mod"!==a){(r=new o(null)).length=x+1,r.words=new Array(r.length);for(var v=0;v<r.length;v++)r.words[v]=0}var G=u.clone()._ishlnsubmul(_,1,x);0===G.negative&&(u=G,r&&(r.words[x]=1));for(var F=x-1;F>=0;F--){var U=67108864*(0|u.words[_.length+F])+(0|u.words[_.length+F-1]);for(U=Math.min(U/L|0,67108863),u._ishlnsubmul(_,U,F);0!==u.negative;)U--,u.negative=0,u._ishlnsubmul(_,1,F),u.isZero()||(u.negative^=1);r&&(r.words[F]=U)}return r&&r.strip(),u.strip(),"div"!==a&&0!==p&&u.iushrn(p),{div:r||null,mod:u}},o.prototype.divmod=function(i,a,p){return y(!i.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===i.negative?(L=this.neg().divmod(i,a),"mod"!==a&&(u=L.div.neg()),"div"!==a&&(_=L.mod.neg(),p&&0!==_.negative&&_.iadd(i)),{div:u,mod:_}):0===this.negative&&0!==i.negative?(L=this.divmod(i.neg(),a),"mod"!==a&&(u=L.div.neg()),{div:u,mod:L.mod}):0!=(this.negative&i.negative)?(L=this.neg().divmod(i.neg(),a),"div"!==a&&(_=L.mod.neg(),p&&0!==_.negative&&_.isub(i)),{div:L.div,mod:_}):i.length>this.length||this.cmp(i)<0?{div:new o(0),mod:this}:1===i.length?"div"===a?{div:this.divn(i.words[0]),mod:null}:"mod"===a?{div:null,mod:new o(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new o(this.modn(i.words[0]))}:this._wordDiv(i,a);var u,_,L},o.prototype.div=function(i){return this.divmod(i,"div",!1).div},o.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},o.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},o.prototype.divRound=function(i){var a=this.divmod(i);if(a.mod.isZero())return a.div;var p=0!==a.div.negative?a.mod.isub(i):a.mod,u=i.ushrn(1),_=i.andln(1),L=p.cmp(u);return L<0||1===_&&0===L?a.div:0!==a.div.negative?a.div.isubn(1):a.div.iaddn(1)},o.prototype.modn=function(i){y(i<=67108863);for(var a=(1<<26)%i,p=0,u=this.length-1;u>=0;u--)p=(a*p+(0|this.words[u]))%i;return p},o.prototype.idivn=function(i){y(i<=67108863);for(var a=0,p=this.length-1;p>=0;p--){var u=(0|this.words[p])+67108864*a;this.words[p]=u/i|0,a=u%i}return this.strip()},o.prototype.divn=function(i){return this.clone().idivn(i)},o.prototype.egcd=function(i){y(0===i.negative),y(!i.isZero());var a=this,p=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var u=new o(1),_=new o(0),L=new o(0),I=new o(1),x=0;a.isEven()&&p.isEven();)a.iushrn(1),p.iushrn(1),++x;for(var r=p.clone(),v=a.clone();!a.isZero();){for(var G=0,F=1;0==(a.words[0]&F)&&G<26;++G,F<<=1);if(G>0)for(a.iushrn(G);G-- >0;)(u.isOdd()||_.isOdd())&&(u.iadd(r),_.isub(v)),u.iushrn(1),_.iushrn(1);for(var U=0,ye=1;0==(p.words[0]&ye)&&U<26;++U,ye<<=1);if(U>0)for(p.iushrn(U);U-- >0;)(L.isOdd()||I.isOdd())&&(L.iadd(r),I.isub(v)),L.iushrn(1),I.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(L),_.isub(I)):(p.isub(a),L.isub(u),I.isub(_))}return{a:L,b:I,gcd:p.iushln(x)}},o.prototype._invmp=function(i){y(0===i.negative),y(!i.isZero());var G,a=this,p=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var u=new o(1),_=new o(0),L=p.clone();a.cmpn(1)>0&&p.cmpn(1)>0;){for(var I=0,x=1;0==(a.words[0]&x)&&I<26;++I,x<<=1);if(I>0)for(a.iushrn(I);I-- >0;)u.isOdd()&&u.iadd(L),u.iushrn(1);for(var r=0,v=1;0==(p.words[0]&v)&&r<26;++r,v<<=1);if(r>0)for(p.iushrn(r);r-- >0;)_.isOdd()&&_.iadd(L),_.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(_)):(p.isub(a),_.isub(u))}return(G=0===a.cmpn(1)?u:_).cmpn(0)<0&&G.iadd(i),G},o.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var a=this.clone(),p=i.clone();a.negative=0,p.negative=0;for(var u=0;a.isEven()&&p.isEven();u++)a.iushrn(1),p.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;p.isEven();)p.iushrn(1);var _=a.cmp(p);if(_<0){var L=a;a=p,p=L}else if(0===_||0===p.cmpn(1))break;a.isub(p)}return p.iushln(u)},o.prototype.invm=function(i){return this.egcd(i).a.umod(i)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(i){return this.words[0]&i},o.prototype.bincn=function(i){y("number"==typeof i);var a=i%26,p=(i-a)/26,u=1<<a;if(this.length<=p)return this._expand(p+1),this.words[p]|=u,this;for(var _=u,L=p;0!==_&&L<this.length;L++){var I=0|this.words[L];_=(I+=_)>>>26,this.words[L]=I&=67108863}return 0!==_&&(this.words[L]=_,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(i){var p,a=i<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this.strip(),this.length>1)p=1;else{a&&(i=-i),y(i<=67108863,"Number is too big");var u=0|this.words[0];p=u===i?0:u<i?-1:1}return 0!==this.negative?0|-p:p},o.prototype.cmp=function(i){if(0!==this.negative&&0===i.negative)return-1;if(0===this.negative&&0!==i.negative)return 1;var a=this.ucmp(i);return 0!==this.negative?0|-a:a},o.prototype.ucmp=function(i){if(this.length>i.length)return 1;if(this.length<i.length)return-1;for(var a=0,p=this.length-1;p>=0;p--){var u=0|this.words[p],_=0|i.words[p];if(u!==_){u<_?a=-1:u>_&&(a=1);break}}return a},o.prototype.gtn=function(i){return 1===this.cmpn(i)},o.prototype.gt=function(i){return 1===this.cmp(i)},o.prototype.gten=function(i){return this.cmpn(i)>=0},o.prototype.gte=function(i){return this.cmp(i)>=0},o.prototype.ltn=function(i){return-1===this.cmpn(i)},o.prototype.lt=function(i){return-1===this.cmp(i)},o.prototype.lten=function(i){return this.cmpn(i)<=0},o.prototype.lte=function(i){return this.cmp(i)<=0},o.prototype.eqn=function(i){return 0===this.cmpn(i)},o.prototype.eq=function(i){return 0===this.cmp(i)},o.red=function(i){return new oe(i)},o.prototype.toRed=function(i){return y(!this.red,"Already a number in reduction context"),y(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},o.prototype.fromRed=function(){return y(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(i){return this.red=i,this},o.prototype.forceRed=function(i){return y(!this.red,"Already a number in reduction context"),this._forceRed(i)},o.prototype.redAdd=function(i){return y(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},o.prototype.redIAdd=function(i){return y(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},o.prototype.redSub=function(i){return y(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},o.prototype.redISub=function(i){return y(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},o.prototype.redShl=function(i){return y(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},o.prototype.redMul=function(i){return y(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},o.prototype.redIMul=function(i){return y(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},o.prototype.redSqr=function(){return y(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return y(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return y(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return y(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return y(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(i){return y(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var ie={k256:null,p224:null,p192:null,p25519:null};function ee(b,i){this.name=b,this.p=new o(i,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function _e(){ee.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function ce(){ee.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function re(){ee.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function de(){ee.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function oe(b){if("string"==typeof b){var i=o._prime(b);this.m=i.p,this.prime=i}else y(b.gtn(1),"modulus must be greater than 1"),this.m=b,this.prime=null}function ae(b){oe.call(this,b),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}ee.prototype._tmp=function(){var i=new o(null);return i.words=new Array(Math.ceil(this.n/13)),i},ee.prototype.ireduce=function(i){var p,a=i;do{this.split(a,this.tmp),p=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(p>this.n);var u=p<this.n?-1:a.ucmp(this.p);return 0===u?(a.words[0]=0,a.length=1):u>0?a.isub(this.p):void 0!==a.strip?a.strip():a._strip(),a},ee.prototype.split=function(i,a){i.iushrn(this.n,0,a)},ee.prototype.imulK=function(i){return i.imul(this.k)},C(_e,ee),_e.prototype.split=function(i,a){for(var p=4194303,u=Math.min(i.length,9),_=0;_<u;_++)a.words[_]=i.words[_];if(a.length=u,i.length<=9)return i.words[0]=0,void(i.length=1);var L=i.words[9];for(a.words[a.length++]=L&p,_=10;_<i.length;_++){var I=0|i.words[_];i.words[_-10]=(I&p)<<4|L>>>22,L=I}i.words[_-10]=L>>>=22,i.length-=0===L&&i.length>10?10:9},_e.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var a=0,p=0;p<i.length;p++){var u=0|i.words[p];i.words[p]=67108863&(a+=977*u),a=64*u+(a/67108864|0)}return 0===i.words[i.length-1]&&(i.length--,0===i.words[i.length-1]&&i.length--),i},C(ce,ee),C(re,ee),C(de,ee),de.prototype.imulK=function(i){for(var a=0,p=0;p<i.length;p++){var u=19*(0|i.words[p])+a,_=67108863&u;u>>>=26,i.words[p]=_,a=u}return 0!==a&&(i.words[i.length++]=a),i},o._prime=function(i){if(ie[i])return ie[i];var a;if("k256"===i)a=new _e;else if("p224"===i)a=new ce;else if("p192"===i)a=new re;else{if("p25519"!==i)throw new Error("Unknown prime "+i);a=new de}return ie[i]=a,a},oe.prototype._verify1=function(i){y(0===i.negative,"red works only with positives"),y(i.red,"red works only with red numbers")},oe.prototype._verify2=function(i,a){y(0==(i.negative|a.negative),"red works only with positives"),y(i.red&&i.red===a.red,"red works only with red numbers")},oe.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},oe.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},oe.prototype.add=function(i,a){this._verify2(i,a);var p=i.add(a);return p.cmp(this.m)>=0&&p.isub(this.m),p._forceRed(this)},oe.prototype.iadd=function(i,a){this._verify2(i,a);var p=i.iadd(a);return p.cmp(this.m)>=0&&p.isub(this.m),p},oe.prototype.sub=function(i,a){this._verify2(i,a);var p=i.sub(a);return p.cmpn(0)<0&&p.iadd(this.m),p._forceRed(this)},oe.prototype.isub=function(i,a){this._verify2(i,a);var p=i.isub(a);return p.cmpn(0)<0&&p.iadd(this.m),p},oe.prototype.shl=function(i,a){return this._verify1(i),this.imod(i.ushln(a))},oe.prototype.imul=function(i,a){return this._verify2(i,a),this.imod(i.imul(a))},oe.prototype.mul=function(i,a){return this._verify2(i,a),this.imod(i.mul(a))},oe.prototype.isqr=function(i){return this.imul(i,i.clone())},oe.prototype.sqr=function(i){return this.mul(i,i)},oe.prototype.sqrt=function(i){if(i.isZero())return i.clone();var a=this.m.andln(3);if(y(a%2==1),3===a){var p=this.m.add(new o(1)).iushrn(2);return this.pow(i,p)}for(var u=this.m.subn(1),_=0;!u.isZero()&&0===u.andln(1);)_++,u.iushrn(1);y(!u.isZero());var L=new o(1).toRed(this),I=L.redNeg(),x=this.m.subn(1).iushrn(1),r=this.m.bitLength();for(r=new o(2*r*r).toRed(this);0!==this.pow(r,x).cmp(I);)r.redIAdd(I);for(var v=this.pow(r,u),G=this.pow(i,u.addn(1).iushrn(1)),F=this.pow(i,u),U=_;0!==F.cmp(L);){for(var ye=F,Ce=0;0!==ye.cmp(L);Ce++)ye=ye.redSqr();y(Ce<U);var Be=this.pow(v,new o(1).iushln(U-Ce-1));G=G.redMul(Be),v=Be.redSqr(),F=F.redMul(v),U=Ce}return G},oe.prototype.invm=function(i){var a=i._invmp(this.m);return 0!==a.negative?(a.negative=0,this.imod(a).redNeg()):this.imod(a)},oe.prototype.pow=function(i,a){if(a.isZero())return new o(1).toRed(this);if(0===a.cmpn(1))return i.clone();var u=new Array(16);u[0]=new o(1).toRed(this),u[1]=i;for(var _=2;_<u.length;_++)u[_]=this.mul(u[_-1],i);var L=u[0],I=0,x=0,r=a.bitLength()%26;for(0===r&&(r=26),_=a.length-1;_>=0;_--){for(var v=a.words[_],G=r-1;G>=0;G--){var F=v>>G&1;L!==u[0]&&(L=this.sqr(L)),0!==F||0!==I?(I<<=1,I|=F,(4==++x||0===_&&0===G)&&(L=this.mul(L,u[I]),x=0,I=0)):x=0}r=26}return L},oe.prototype.convertTo=function(i){var a=i.umod(this.m);return a===i?a.clone():a},oe.prototype.convertFrom=function(i){var a=i.clone();return a.red=null,a},o.mont=function(i){return new ae(i)},C(ae,oe),ae.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},ae.prototype.convertFrom=function(i){var a=this.imod(i.mul(this.rinv));return a.red=null,a},ae.prototype.imul=function(i,a){if(i.isZero()||a.isZero())return i.words[0]=0,i.length=1,i;var p=i.imul(a),u=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=p.isub(u).iushrn(this.shift),L=_;return _.cmp(this.m)>=0?L=_.isub(this.m):_.cmpn(0)<0&&(L=_.iadd(this.m)),L._forceRed(this)},ae.prototype.mul=function(i,a){if(i.isZero()||a.isZero())return new o(0)._forceRed(this);var p=i.mul(a),u=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=p.isub(u).iushrn(this.shift),L=_;return _.cmp(this.m)>=0?L=_.isub(this.m):_.cmpn(0)<0&&(L=_.iadd(this.m)),L._forceRed(this)},ae.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(Ve=m.nmd(Ve),this)},4901:Ve=>{"use strict";var Q={single_source_shortest_paths:function(m,e,t){var y={},C={};C[e]=0;var M,l,N,s,D,O,o=Q.PriorityQueue.make();for(o.push(e,0);!o.empty();)for(N in s=(M=o.pop()).cost,D=m[l=M.value]||{})D.hasOwnProperty(N)&&(O=s+D[N],(void 0===C[N]||C[N]>O)&&(C[N]=O,o.push(N,O),y[N]=l));if(void 0!==t&&void 0===C[t]){var w=["Could not find a path from ",e," to ",t,"."].join("");throw new Error(w)}return y},extract_shortest_path_from_predecessor_list:function(m,e){for(var t=[],y=e;y;)t.push(y),y=m[y];return t.reverse(),t},find_path:function(m,e,t){var y=Q.single_source_shortest_paths(m,e,t);return Q.extract_shortest_path_from_predecessor_list(y,t)},PriorityQueue:{make:function(m){var y,e=Q.PriorityQueue,t={};for(y in m=m||{},e)e.hasOwnProperty(y)&&(t[y]=e[y]);return t.queue=[],t.sorter=m.sorter||e.default_sorter,t},default_sorter:function(m,e){return m.cost-e.cost},push:function(m,e){this.queue.push({value:m,cost:e}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};Ve.exports=Q},7715:(Ve,Q,m)=>{"use strict";var e=Q;e.version=m(8597).i8,e.utils=m(1970),e.rand=m(7950),e.curve=m(6270),e.curves=m(2916),e.ec=m(7626),e.eddsa=m(1885)},7902:(Ve,Q,m)=>{"use strict";var e=m(7433),t=m(1970),y=t.getNAF,C=t.getJSF,o=t.assert;function M(N,s){this.type=N,this.p=new e(s.p,16),this.red=s.prime?e.red(s.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=s.n&&new e(s.n,16),this.g=s.g&&this.pointFromJSON(s.g,s.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 D=this.n&&this.p.div(this.n);!D||D.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function l(N,s){this.curve=N,this.type=s,this.precomputed=null}Ve.exports=M,M.prototype.point=function(){throw new Error("Not implemented")},M.prototype.validate=function(){throw new Error("Not implemented")},M.prototype._fixedNafMul=function(s,D){o(s.precomputed);var A=s._getDoubles(),O=y(D,1,this._bitLength),E=(1<<A.step+1)-(A.step%2==0?2:1);E/=3;var w,Z,P=[];for(w=0;w<O.length;w+=A.step){Z=0;for(var j=w+A.step-1;j>=w;j--)Z=(Z<<1)+O[j];P.push(Z)}for(var W=this.jpoint(null,null,null),ie=this.jpoint(null,null,null),ee=E;ee>0;ee--){for(w=0;w<P.length;w++)(Z=P[w])===ee?ie=ie.mixedAdd(A.points[w]):Z===-ee&&(ie=ie.mixedAdd(A.points[w].neg()));W=W.add(ie)}return W.toP()},M.prototype._wnafMul=function(s,D){for(var A=4,O=s._getNAFPoints(A),E=O.points,P=y(D,A=O.wnd,this._bitLength),w=this.jpoint(null,null,null),Z=P.length-1;Z>=0;Z--){for(var j=0;Z>=0&&0===P[Z];Z--)j++;if(Z>=0&&j++,w=w.dblp(j),Z<0)break;var W=P[Z];o(0!==W),w="affine"===s.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"===s.type?w.toP():w},M.prototype._wnafMulAdd=function(s,D,A,O,E){var W,ie,ee,P=this._wnafT1,w=this._wnafT2,Z=this._wnafT3,j=0;for(W=0;W<O;W++){var _e=(ee=D[W])._getNAFPoints(s);P[W]=_e.wnd,w[W]=_e.points}for(W=O-1;W>=1;W-=2){var ce=W-1,re=W;if(1===P[ce]&&1===P[re]){var de=[D[ce],null,null,D[re]];0===D[ce].y.cmp(D[re].y)?(de[1]=D[ce].add(D[re]),de[2]=D[ce].toJ().mixedAdd(D[re].neg())):0===D[ce].y.cmp(D[re].y.redNeg())?(de[1]=D[ce].toJ().mixedAdd(D[re]),de[2]=D[ce].add(D[re].neg())):(de[1]=D[ce].toJ().mixedAdd(D[re]),de[2]=D[ce].toJ().mixedAdd(D[re].neg()));var oe=[-3,-1,-5,-7,0,7,5,1,3],ae=C(A[ce],A[re]);for(j=Math.max(ae[0].length,j),Z[ce]=new Array(j),Z[re]=new Array(j),ie=0;ie<j;ie++)Z[ce][ie]=oe[3*(1+(0|ae[0][ie]))+(1+(0|ae[1][ie]))],Z[re][ie]=0,w[ce]=de}else Z[ce]=y(A[ce],P[ce],this._bitLength),Z[re]=y(A[re],P[re],this._bitLength),j=Math.max(Z[ce].length,j),j=Math.max(Z[re].length,j)}var a=this.jpoint(null,null,null),p=this._wnafT4;for(W=j;W>=0;W--){for(var u=0;W>=0;){var _=!0;for(ie=0;ie<O;ie++)p[ie]=0|Z[ie][W],0!==p[ie]&&(_=!1);if(!_)break;u++,W--}if(W>=0&&u++,a=a.dblp(u),W<0)break;for(ie=0;ie<O;ie++){var L=p[ie];0!==L&&(L>0?ee=w[ie][L-1>>1]:L<0&&(ee=w[ie][-L-1>>1].neg()),a="affine"===ee.type?a.mixedAdd(ee):a.add(ee))}}for(W=0;W<O;W++)w[W]=null;return E?a:a.toP()},M.BasePoint=l,l.prototype.eq=function(){throw new Error("Not implemented")},l.prototype.validate=function(){return this.curve.validate(this)},M.prototype.decodePoint=function(s,D){s=t.toArray(s,D);var A=this.p.byteLength();if((4===s[0]||6===s[0]||7===s[0])&&s.length-1==2*A)return 6===s[0]?o(s[s.length-1]%2==0):7===s[0]&&o(s[s.length-1]%2==1),this.point(s.slice(1,1+A),s.slice(1+A,1+2*A));if((2===s[0]||3===s[0])&&s.length-1===A)return this.pointFromX(s.slice(1,1+A),3===s[0]);throw new Error("Unknown point format")},l.prototype.encodeCompressed=function(s){return this.encode(s,!0)},l.prototype._encode=function(s){var D=this.curve.p.byteLength(),A=this.getX().toArray("be",D);return s?[this.getY().isEven()?2:3].concat(A):[4].concat(A,this.getY().toArray("be",D))},l.prototype.encode=function(s,D){return t.encode(this._encode(D),s)},l.prototype.precompute=function(s){if(this.precomputed)return this;var D={doubles:null,naf:null,beta:null};return D.naf=this._getNAFPoints(8),D.doubles=this._getDoubles(4,s),D.beta=this._getBeta(),this.precomputed=D,this},l.prototype._hasDoubles=function(s){if(!this.precomputed)return!1;var D=this.precomputed.doubles;return!!D&&D.points.length>=Math.ceil((s.bitLength()+1)/D.step)},l.prototype._getDoubles=function(s,D){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var A=[this],O=this,E=0;E<D;E+=s){for(var P=0;P<s;P++)O=O.dbl();A.push(O)}return{step:s,points:A}},l.prototype._getNAFPoints=function(s){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var D=[this],A=(1<<s)-1,O=1===A?null:this.dbl(),E=1;E<A;E++)D[E]=D[E-1].add(O);return{wnd:s,points:D}},l.prototype._getBeta=function(){return null},l.prototype.dblp=function(s){for(var D=this,A=0;A<s;A++)D=D.dbl();return D}},3835:(Ve,Q,m)=>{"use strict";var e=m(1970),t=m(7433),y=m(3894),C=m(7902),o=e.assert;function M(N){this.twisted=1!=(0|N.a),this.mOneA=this.twisted&&-1==(0|N.a),this.extended=this.mOneA,C.call(this,"edwards",N),this.a=new t(N.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new t(N.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new t(N.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),o(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|N.c)}function l(N,s,D,A,O){C.BasePoint.call(this,N,"projective"),null===s&&null===D&&null===A?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new t(s,16),this.y=new t(D,16),this.z=A?new t(A,16):this.curve.one,this.t=O&&new t(O,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}y(M,C),Ve.exports=M,M.prototype._mulA=function(s){return this.mOneA?s.redNeg():this.a.redMul(s)},M.prototype._mulC=function(s){return this.oneC?s:this.c.redMul(s)},M.prototype.jpoint=function(s,D,A,O){return this.point(s,D,A,O)},M.prototype.pointFromX=function(s,D){(s=new t(s,16)).red||(s=s.toRed(this.red));var A=s.redSqr(),O=this.c2.redSub(this.a.redMul(A)),E=this.one.redSub(this.c2.redMul(this.d).redMul(A)),P=O.redMul(E.redInvm()),w=P.redSqrt();if(0!==w.redSqr().redSub(P).cmp(this.zero))throw new Error("invalid point");var Z=w.fromRed().isOdd();return(D&&!Z||!D&&Z)&&(w=w.redNeg()),this.point(s,w)},M.prototype.pointFromY=function(s,D){(s=new t(s,16)).red||(s=s.toRed(this.red));var A=s.redSqr(),O=A.redSub(this.c2),E=A.redMul(this.d).redMul(this.c2).redSub(this.a),P=O.redMul(E.redInvm());if(0===P.cmp(this.zero)){if(D)throw new Error("invalid point");return this.point(this.zero,s)}var w=P.redSqrt();if(0!==w.redSqr().redSub(P).cmp(this.zero))throw new Error("invalid point");return w.fromRed().isOdd()!==D&&(w=w.redNeg()),this.point(w,s)},M.prototype.validate=function(s){if(s.isInfinity())return!0;s.normalize();var D=s.x.redSqr(),A=s.y.redSqr(),O=D.redMul(this.a).redAdd(A),E=this.c2.redMul(this.one.redAdd(this.d.redMul(D).redMul(A)));return 0===O.cmp(E)},y(l,C.BasePoint),M.prototype.pointFromJSON=function(s){return l.fromJSON(this,s)},M.prototype.point=function(s,D,A,O){return new l(this,s,D,A,O)},l.fromJSON=function(s,D){return new l(s,D[0],D[1],D[2])},l.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)+">"},l.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},l.prototype._extDbl=function(){var s=this.x.redSqr(),D=this.y.redSqr(),A=this.z.redSqr();A=A.redIAdd(A);var O=this.curve._mulA(s),E=this.x.redAdd(this.y).redSqr().redISub(s).redISub(D),P=O.redAdd(D),w=P.redSub(A),Z=O.redSub(D),j=E.redMul(w),W=P.redMul(Z),ie=E.redMul(Z),ee=w.redMul(P);return this.curve.point(j,W,ee,ie)},l.prototype._projDbl=function(){var O,E,P,w,Z,j,s=this.x.redAdd(this.y).redSqr(),D=this.x.redSqr(),A=this.y.redSqr();if(this.curve.twisted){var W=(w=this.curve._mulA(D)).redAdd(A);this.zOne?(O=s.redSub(D).redSub(A).redMul(W.redSub(this.curve.two)),E=W.redMul(w.redSub(A)),P=W.redSqr().redSub(W).redSub(W)):(Z=this.z.redSqr(),j=W.redSub(Z).redISub(Z),O=s.redSub(D).redISub(A).redMul(j),E=W.redMul(w.redSub(A)),P=W.redMul(j))}else w=D.redAdd(A),Z=this.curve._mulC(this.z).redSqr(),j=w.redSub(Z).redSub(Z),O=this.curve._mulC(s.redISub(w)).redMul(j),E=this.curve._mulC(w).redMul(D.redISub(A)),P=w.redMul(j);return this.curve.point(O,E,P)},l.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},l.prototype._extAdd=function(s){var D=this.y.redSub(this.x).redMul(s.y.redSub(s.x)),A=this.y.redAdd(this.x).redMul(s.y.redAdd(s.x)),O=this.t.redMul(this.curve.dd).redMul(s.t),E=this.z.redMul(s.z.redAdd(s.z)),P=A.redSub(D),w=E.redSub(O),Z=E.redAdd(O),j=A.redAdd(D),W=P.redMul(w),ie=Z.redMul(j),ee=P.redMul(j),_e=w.redMul(Z);return this.curve.point(W,ie,_e,ee)},l.prototype._projAdd=function(s){var ie,ee,D=this.z.redMul(s.z),A=D.redSqr(),O=this.x.redMul(s.x),E=this.y.redMul(s.y),P=this.curve.d.redMul(O).redMul(E),w=A.redSub(P),Z=A.redAdd(P),j=this.x.redAdd(this.y).redMul(s.x.redAdd(s.y)).redISub(O).redISub(E),W=D.redMul(w).redMul(j);return this.curve.twisted?(ie=D.redMul(Z).redMul(E.redSub(this.curve._mulA(O))),ee=w.redMul(Z)):(ie=D.redMul(Z).redMul(E.redSub(O)),ee=this.curve._mulC(w).redMul(Z)),this.curve.point(W,ie,ee)},l.prototype.add=function(s){return this.isInfinity()?s:s.isInfinity()?this:this.curve.extended?this._extAdd(s):this._projAdd(s)},l.prototype.mul=function(s){return this._hasDoubles(s)?this.curve._fixedNafMul(this,s):this.curve._wnafMul(this,s)},l.prototype.mulAdd=function(s,D,A){return this.curve._wnafMulAdd(1,[this,D],[s,A],2,!1)},l.prototype.jmulAdd=function(s,D,A){return this.curve._wnafMulAdd(1,[this,D],[s,A],2,!0)},l.prototype.normalize=function(){if(this.zOne)return this;var s=this.z.redInvm();return this.x=this.x.redMul(s),this.y=this.y.redMul(s),this.t&&(this.t=this.t.redMul(s)),this.z=this.curve.one,this.zOne=!0,this},l.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},l.prototype.getX=function(){return this.normalize(),this.x.fromRed()},l.prototype.getY=function(){return this.normalize(),this.y.fromRed()},l.prototype.eq=function(s){return this===s||0===this.getX().cmp(s.getX())&&0===this.getY().cmp(s.getY())},l.prototype.eqXToP=function(s){var D=s.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(D))return!0;for(var A=s.clone(),O=this.curve.redN.redMul(this.z);;){if(A.iadd(this.curve.n),A.cmp(this.curve.p)>=0)return!1;if(D.redIAdd(O),0===this.x.cmp(D))return!0}},l.prototype.toP=l.prototype.normalize,l.prototype.mixedAdd=l.prototype.add},6270:(Ve,Q,m)=>{"use strict";var e=Q;e.base=m(7902),e.short=m(1781),e.mont=m(7064),e.edwards=m(3835)},7064:(Ve,Q,m)=>{"use strict";var e=m(7433),t=m(3894),y=m(7902),C=m(1970);function o(l){y.call(this,"mont",l),this.a=new e(l.a,16).toRed(this.red),this.b=new e(l.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 M(l,N,s){y.BasePoint.call(this,l,"projective"),null===N&&null===s?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new e(N,16),this.z=new e(s,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}t(o,y),Ve.exports=o,o.prototype.validate=function(N){var s=N.normalize().x,D=s.redSqr(),A=D.redMul(s).redAdd(D.redMul(this.a)).redAdd(s);return 0===A.redSqrt().redSqr().cmp(A)},t(M,y.BasePoint),o.prototype.decodePoint=function(N,s){return this.point(C.toArray(N,s),1)},o.prototype.point=function(N,s){return new M(this,N,s)},o.prototype.pointFromJSON=function(N){return M.fromJSON(this,N)},M.prototype.precompute=function(){},M.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},M.fromJSON=function(N,s){return new M(N,s[0],s[1]||N.one)},M.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)+">"},M.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},M.prototype.dbl=function(){var s=this.x.redAdd(this.z).redSqr(),A=this.x.redSub(this.z).redSqr(),O=s.redSub(A),E=s.redMul(A),P=O.redMul(A.redAdd(this.curve.a24.redMul(O)));return this.curve.point(E,P)},M.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},M.prototype.diffAdd=function(N,s){var D=this.x.redAdd(this.z),A=this.x.redSub(this.z),O=N.x.redAdd(N.z),P=N.x.redSub(N.z).redMul(D),w=O.redMul(A),Z=s.z.redMul(P.redAdd(w).redSqr()),j=s.x.redMul(P.redISub(w).redSqr());return this.curve.point(Z,j)},M.prototype.mul=function(N){for(var s=N.clone(),D=this,A=this.curve.point(null,null),E=[];0!==s.cmpn(0);s.iushrn(1))E.push(s.andln(1));for(var P=E.length-1;P>=0;P--)0===E[P]?(D=D.diffAdd(A,this),A=A.dbl()):(A=D.diffAdd(A,this),D=D.dbl());return A},M.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},M.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},M.prototype.eq=function(N){return 0===this.getX().cmp(N.getX())},M.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},M.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},1781:(Ve,Q,m)=>{"use strict";var e=m(1970),t=m(7433),y=m(3894),C=m(7902),o=e.assert;function M(s){C.call(this,"short",s),this.a=new t(s.a,16).toRed(this.red),this.b=new t(s.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(s),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function l(s,D,A,O){C.BasePoint.call(this,s,"affine"),null===D&&null===A?(this.x=null,this.y=null,this.inf=!0):(this.x=new t(D,16),this.y=new t(A,16),O&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function N(s,D,A,O){C.BasePoint.call(this,s,"jacobian"),null===D&&null===A&&null===O?(this.x=this.curve.one,this.y=this.curve.one,this.z=new t(0)):(this.x=new t(D,16),this.y=new t(A,16),this.z=new t(O,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}y(M,C),Ve.exports=M,M.prototype._getEndomorphism=function(D){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var A,O;if(D.beta)A=new t(D.beta,16).toRed(this.red);else{var E=this._getEndoRoots(this.p);A=(A=E[0].cmp(E[1])<0?E[0]:E[1]).toRed(this.red)}if(D.lambda)O=new t(D.lambda,16);else{var P=this._getEndoRoots(this.n);0===this.g.mul(P[0]).x.cmp(this.g.x.redMul(A))?O=P[0]:o(0===this.g.mul(O=P[1]).x.cmp(this.g.x.redMul(A)))}return{beta:A,lambda:O,basis:D.basis?D.basis.map(function(Z){return{a:new t(Z.a,16),b:new t(Z.b,16)}}):this._getEndoBasis(O)}}},M.prototype._getEndoRoots=function(D){var A=D===this.p?this.red:t.mont(D),O=new t(2).toRed(A).redInvm(),E=O.redNeg(),P=new t(3).toRed(A).redNeg().redSqrt().redMul(O);return[E.redAdd(P).fromRed(),E.redSub(P).fromRed()]},M.prototype._getEndoBasis=function(D){for(var W,ie,ee,_e,ce,re,de,ae,b,A=this.n.ushrn(Math.floor(this.n.bitLength()/2)),O=D,E=this.n.clone(),P=new t(1),w=new t(0),Z=new t(0),j=new t(1),oe=0;0!==O.cmpn(0);){var i=E.div(O);ae=E.sub(i.mul(O)),b=Z.sub(i.mul(P));var a=j.sub(i.mul(w));if(!ee&&ae.cmp(A)<0)W=de.neg(),ie=P,ee=ae.neg(),_e=b;else if(ee&&2==++oe)break;de=ae,E=O,O=ae,Z=P,P=b,j=w,w=a}ce=ae.neg(),re=b;var p=ee.sqr().add(_e.sqr());return ce.sqr().add(re.sqr()).cmp(p)>=0&&(ce=W,re=ie),ee.negative&&(ee=ee.neg(),_e=_e.neg()),ce.negative&&(ce=ce.neg(),re=re.neg()),[{a:ee,b:_e},{a:ce,b:re}]},M.prototype._endoSplit=function(D){var A=this.endo.basis,O=A[0],E=A[1],P=E.b.mul(D).divRound(this.n),w=O.b.neg().mul(D).divRound(this.n),Z=P.mul(O.a),j=w.mul(E.a),W=P.mul(O.b),ie=w.mul(E.b);return{k1:D.sub(Z).sub(j),k2:W.add(ie).neg()}},M.prototype.pointFromX=function(D,A){(D=new t(D,16)).red||(D=D.toRed(this.red));var O=D.redSqr().redMul(D).redIAdd(D.redMul(this.a)).redIAdd(this.b),E=O.redSqrt();if(0!==E.redSqr().redSub(O).cmp(this.zero))throw new Error("invalid point");var P=E.fromRed().isOdd();return(A&&!P||!A&&P)&&(E=E.redNeg()),this.point(D,E)},M.prototype.validate=function(D){if(D.inf)return!0;var A=D.x,O=D.y,E=this.a.redMul(A),P=A.redSqr().redMul(A).redIAdd(E).redIAdd(this.b);return 0===O.redSqr().redISub(P).cmpn(0)},M.prototype._endoWnafMulAdd=function(D,A,O){for(var E=this._endoWnafT1,P=this._endoWnafT2,w=0;w<D.length;w++){var Z=this._endoSplit(A[w]),j=D[w],W=j._getBeta();Z.k1.negative&&(Z.k1.ineg(),j=j.neg(!0)),Z.k2.negative&&(Z.k2.ineg(),W=W.neg(!0)),E[2*w]=j,E[2*w+1]=W,P[2*w]=Z.k1,P[2*w+1]=Z.k2}for(var ie=this._wnafMulAdd(1,E,P,2*w,O),ee=0;ee<2*w;ee++)E[ee]=null,P[ee]=null;return ie},y(l,C.BasePoint),M.prototype.point=function(D,A,O){return new l(this,D,A,O)},M.prototype.pointFromJSON=function(D,A){return l.fromJSON(this,D,A)},l.prototype._getBeta=function(){if(this.curve.endo){var D=this.precomputed;if(D&&D.beta)return D.beta;var A=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(D){var O=this.curve,E=function(P){return O.point(P.x.redMul(O.endo.beta),P.y)};D.beta=A,A.precomputed={beta:null,naf:D.naf&&{wnd:D.naf.wnd,points:D.naf.points.map(E)},doubles:D.doubles&&{step:D.doubles.step,points:D.doubles.points.map(E)}}}return A}},l.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]},l.fromJSON=function(D,A,O){"string"==typeof A&&(A=JSON.parse(A));var E=D.point(A[0],A[1],O);if(!A[2])return E;function P(Z){return D.point(Z[0],Z[1],O)}var w=A[2];return E.precomputed={beta:null,doubles:w.doubles&&{step:w.doubles.step,points:[E].concat(w.doubles.points.map(P))},naf:w.naf&&{wnd:w.naf.wnd,points:[E].concat(w.naf.points.map(P))}},E},l.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)+">"},l.prototype.isInfinity=function(){return this.inf},l.prototype.add=function(D){if(this.inf)return D;if(D.inf)return this;if(this.eq(D))return this.dbl();if(this.neg().eq(D))return this.curve.point(null,null);if(0===this.x.cmp(D.x))return this.curve.point(null,null);var A=this.y.redSub(D.y);0!==A.cmpn(0)&&(A=A.redMul(this.x.redSub(D.x).redInvm()));var O=A.redSqr().redISub(this.x).redISub(D.x),E=A.redMul(this.x.redSub(O)).redISub(this.y);return this.curve.point(O,E)},l.prototype.dbl=function(){if(this.inf)return this;var D=this.y.redAdd(this.y);if(0===D.cmpn(0))return this.curve.point(null,null);var A=this.curve.a,O=this.x.redSqr(),E=D.redInvm(),P=O.redAdd(O).redIAdd(O).redIAdd(A).redMul(E),w=P.redSqr().redISub(this.x.redAdd(this.x)),Z=P.redMul(this.x.redSub(w)).redISub(this.y);return this.curve.point(w,Z)},l.prototype.getX=function(){return this.x.fromRed()},l.prototype.getY=function(){return this.y.fromRed()},l.prototype.mul=function(D){return D=new t(D,16),this.isInfinity()?this:this._hasDoubles(D)?this.curve._fixedNafMul(this,D):this.curve.endo?this.curve._endoWnafMulAdd([this],[D]):this.curve._wnafMul(this,D)},l.prototype.mulAdd=function(D,A,O){var E=[this,A],P=[D,O];return this.curve.endo?this.curve._endoWnafMulAdd(E,P):this.curve._wnafMulAdd(1,E,P,2)},l.prototype.jmulAdd=function(D,A,O){var E=[this,A],P=[D,O];return this.curve.endo?this.curve._endoWnafMulAdd(E,P,!0):this.curve._wnafMulAdd(1,E,P,2,!0)},l.prototype.eq=function(D){return this===D||this.inf===D.inf&&(this.inf||0===this.x.cmp(D.x)&&0===this.y.cmp(D.y))},l.prototype.neg=function(D){if(this.inf)return this;var A=this.curve.point(this.x,this.y.redNeg());if(D&&this.precomputed){var O=this.precomputed,E=function(P){return P.neg()};A.precomputed={naf:O.naf&&{wnd:O.naf.wnd,points:O.naf.points.map(E)},doubles:O.doubles&&{step:O.doubles.step,points:O.doubles.points.map(E)}}}return A},l.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},y(N,C.BasePoint),M.prototype.jpoint=function(D,A,O){return new N(this,D,A,O)},N.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var D=this.z.redInvm(),A=D.redSqr(),O=this.x.redMul(A),E=this.y.redMul(A).redMul(D);return this.curve.point(O,E)},N.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},N.prototype.add=function(D){if(this.isInfinity())return D;if(D.isInfinity())return this;var A=D.z.redSqr(),O=this.z.redSqr(),E=this.x.redMul(A),P=D.x.redMul(O),w=this.y.redMul(A.redMul(D.z)),Z=D.y.redMul(O.redMul(this.z)),j=E.redSub(P),W=w.redSub(Z);if(0===j.cmpn(0))return 0!==W.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var ie=j.redSqr(),ee=ie.redMul(j),_e=E.redMul(ie),ce=W.redSqr().redIAdd(ee).redISub(_e).redISub(_e),re=W.redMul(_e.redISub(ce)).redISub(w.redMul(ee)),de=this.z.redMul(D.z).redMul(j);return this.curve.jpoint(ce,re,de)},N.prototype.mixedAdd=function(D){if(this.isInfinity())return D.toJ();if(D.isInfinity())return this;var A=this.z.redSqr(),O=this.x,E=D.x.redMul(A),P=this.y,w=D.y.redMul(A).redMul(this.z),Z=O.redSub(E),j=P.redSub(w);if(0===Z.cmpn(0))return 0!==j.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var W=Z.redSqr(),ie=W.redMul(Z),ee=O.redMul(W),_e=j.redSqr().redIAdd(ie).redISub(ee).redISub(ee),ce=j.redMul(ee.redISub(_e)).redISub(P.redMul(ie)),re=this.z.redMul(Z);return this.curve.jpoint(_e,ce,re)},N.prototype.dblp=function(D){if(0===D)return this;if(this.isInfinity())return this;if(!D)return this.dbl();var A;if(this.curve.zeroA||this.curve.threeA){var O=this;for(A=0;A<D;A++)O=O.dbl();return O}var E=this.curve.a,P=this.curve.tinv,w=this.x,Z=this.y,j=this.z,W=j.redSqr().redSqr(),ie=Z.redAdd(Z);for(A=0;A<D;A++){var ee=w.redSqr(),_e=ie.redSqr(),ce=_e.redSqr(),re=ee.redAdd(ee).redIAdd(ee).redIAdd(E.redMul(W)),de=w.redMul(_e),oe=re.redSqr().redISub(de.redAdd(de)),ae=de.redISub(oe),b=re.redMul(ae);b=b.redIAdd(b).redISub(ce);var i=ie.redMul(j);A+1<D&&(W=W.redMul(ce)),w=oe,j=i,ie=b}return this.curve.jpoint(w,ie.redMul(P),j)},N.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},N.prototype._zeroDbl=function(){var D,A,O;if(this.zOne){var E=this.x.redSqr(),P=this.y.redSqr(),w=P.redSqr(),Z=this.x.redAdd(P).redSqr().redISub(E).redISub(w);Z=Z.redIAdd(Z);var j=E.redAdd(E).redIAdd(E),W=j.redSqr().redISub(Z).redISub(Z),ie=w.redIAdd(w);ie=(ie=ie.redIAdd(ie)).redIAdd(ie),D=W,A=j.redMul(Z.redISub(W)).redISub(ie),O=this.y.redAdd(this.y)}else{var ee=this.x.redSqr(),_e=this.y.redSqr(),ce=_e.redSqr(),re=this.x.redAdd(_e).redSqr().redISub(ee).redISub(ce);re=re.redIAdd(re);var de=ee.redAdd(ee).redIAdd(ee),oe=de.redSqr(),ae=ce.redIAdd(ce);ae=(ae=ae.redIAdd(ae)).redIAdd(ae),D=oe.redISub(re).redISub(re),A=de.redMul(re.redISub(D)).redISub(ae),O=(O=this.y.redMul(this.z)).redIAdd(O)}return this.curve.jpoint(D,A,O)},N.prototype._threeDbl=function(){var D,A,O;if(this.zOne){var E=this.x.redSqr(),P=this.y.redSqr(),w=P.redSqr(),Z=this.x.redAdd(P).redSqr().redISub(E).redISub(w);Z=Z.redIAdd(Z);var j=E.redAdd(E).redIAdd(E).redIAdd(this.curve.a),W=j.redSqr().redISub(Z).redISub(Z);D=W;var ie=w.redIAdd(w);ie=(ie=ie.redIAdd(ie)).redIAdd(ie),A=j.redMul(Z.redISub(W)).redISub(ie),O=this.y.redAdd(this.y)}else{var ee=this.z.redSqr(),_e=this.y.redSqr(),ce=this.x.redMul(_e),re=this.x.redSub(ee).redMul(this.x.redAdd(ee));re=re.redAdd(re).redIAdd(re);var de=ce.redIAdd(ce),oe=(de=de.redIAdd(de)).redAdd(de);D=re.redSqr().redISub(oe),O=this.y.redAdd(this.z).redSqr().redISub(_e).redISub(ee);var ae=_e.redSqr();ae=(ae=(ae=ae.redIAdd(ae)).redIAdd(ae)).redIAdd(ae),A=re.redMul(de.redISub(D)).redISub(ae)}return this.curve.jpoint(D,A,O)},N.prototype._dbl=function(){var D=this.curve.a,A=this.x,O=this.y,E=this.z,P=E.redSqr().redSqr(),w=A.redSqr(),Z=O.redSqr(),j=w.redAdd(w).redIAdd(w).redIAdd(D.redMul(P)),W=A.redAdd(A),ie=(W=W.redIAdd(W)).redMul(Z),ee=j.redSqr().redISub(ie.redAdd(ie)),_e=ie.redISub(ee),ce=Z.redSqr();ce=(ce=(ce=ce.redIAdd(ce)).redIAdd(ce)).redIAdd(ce);var re=j.redMul(_e).redISub(ce),de=O.redAdd(O).redMul(E);return this.curve.jpoint(ee,re,de)},N.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var D=this.x.redSqr(),A=this.y.redSqr(),O=this.z.redSqr(),E=A.redSqr(),P=D.redAdd(D).redIAdd(D),w=P.redSqr(),Z=this.x.redAdd(A).redSqr().redISub(D).redISub(E),j=(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 ie=P.redIAdd(Z).redSqr().redISub(w).redISub(j).redISub(W),ee=A.redMul(ie);ee=(ee=ee.redIAdd(ee)).redIAdd(ee);var _e=this.x.redMul(j).redISub(ee);_e=(_e=_e.redIAdd(_e)).redIAdd(_e);var ce=this.y.redMul(ie.redMul(W.redISub(ie)).redISub(Z.redMul(j)));ce=(ce=(ce=ce.redIAdd(ce)).redIAdd(ce)).redIAdd(ce);var re=this.z.redAdd(Z).redSqr().redISub(O).redISub(j);return this.curve.jpoint(_e,ce,re)},N.prototype.mul=function(D,A){return D=new t(D,A),this.curve._wnafMul(this,D)},N.prototype.eq=function(D){if("affine"===D.type)return this.eq(D.toJ());if(this===D)return!0;var A=this.z.redSqr(),O=D.z.redSqr();if(0!==this.x.redMul(O).redISub(D.x.redMul(A)).cmpn(0))return!1;var E=A.redMul(this.z),P=O.redMul(D.z);return 0===this.y.redMul(P).redISub(D.y.redMul(E)).cmpn(0)},N.prototype.eqXToP=function(D){var A=this.z.redSqr(),O=D.toRed(this.curve.red).redMul(A);if(0===this.x.cmp(O))return!0;for(var E=D.clone(),P=this.curve.redN.redMul(A);;){if(E.iadd(this.curve.n),E.cmp(this.curve.p)>=0)return!1;if(O.redIAdd(P),0===this.x.cmp(O))return!0}},N.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},N.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},2916:(Ve,Q,m)=>{"use strict";var N,e=Q,t=m(7084),y=m(6270),o=m(1970).assert;function M(s){this.curve="short"===s.type?new y.short(s):"edwards"===s.type?new y.edwards(s):new y.mont(s),this.g=this.curve.g,this.n=this.curve.n,this.hash=s.hash,o(this.g.validate(),"Invalid curve"),o(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function l(s,D){Object.defineProperty(e,s,{configurable:!0,enumerable:!0,get:function(){var A=new M(D);return Object.defineProperty(e,s,{configurable:!0,enumerable:!0,value:A}),A}})}e.PresetCurve=M,l("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:t.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),l("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:t.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),l("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:t.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),l("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:t.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),l("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:t.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),l("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:t.sha256,gRed:!1,g:["9"]}),l("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:t.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{N=m(5150)}catch(s){N=void 0}l("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:t.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",N]})},7626:(Ve,Q,m)=>{"use strict";var e=m(7433),t=m(2438),y=m(1970),C=m(2916),o=m(7950),M=y.assert,l=m(1259),N=m(5957);function s(D){if(!(this instanceof s))return new s(D);"string"==typeof D&&(M(Object.prototype.hasOwnProperty.call(C,D),"Unknown curve "+D),D=C[D]),D instanceof C.PresetCurve&&(D={curve:D}),this.curve=D.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=D.curve.g,this.g.precompute(D.curve.n.bitLength()+1),this.hash=D.hash||D.curve.hash}Ve.exports=s,s.prototype.keyPair=function(A){return new l(this,A)},s.prototype.keyFromPrivate=function(A,O){return l.fromPrivate(this,A,O)},s.prototype.keyFromPublic=function(A,O){return l.fromPublic(this,A,O)},s.prototype.genKeyPair=function(A){A||(A={});for(var O=new t({hash:this.hash,pers:A.pers,persEnc:A.persEnc||"utf8",entropy:A.entropy||o(this.hash.hmacStrength),entropyEnc:A.entropy&&A.entropyEnc||"utf8",nonce:this.n.toArray()}),E=this.n.byteLength(),P=this.n.sub(new e(2));;){var w=new e(O.generate(E));if(!(w.cmp(P)>0))return w.iaddn(1),this.keyFromPrivate(w)}},s.prototype._truncateToN=function(A,O){var E=8*A.byteLength()-this.n.bitLength();return E>0&&(A=A.ushrn(E)),!O&&A.cmp(this.n)>=0?A.sub(this.n):A},s.prototype.sign=function(A,O,E,P){"object"==typeof E&&(P=E,E=null),P||(P={}),O=this.keyFromPrivate(O,E),A=this._truncateToN(new e(A,16));for(var w=this.n.byteLength(),Z=O.getPrivate().toArray("be",w),j=A.toArray("be",w),W=new t({hash:this.hash,entropy:Z,nonce:j,pers:P.pers,persEnc:P.persEnc||"utf8"}),ie=this.n.sub(new e(1)),ee=0;;ee++){var _e=P.k?P.k(ee):new e(W.generate(this.n.byteLength()));if(!((_e=this._truncateToN(_e,!0)).cmpn(1)<=0||_e.cmp(ie)>=0)){var ce=this.g.mul(_e);if(!ce.isInfinity()){var re=ce.getX(),de=re.umod(this.n);if(0!==de.cmpn(0)){var oe=_e.invm(this.n).mul(de.mul(O.getPrivate()).iadd(A));if(0!==(oe=oe.umod(this.n)).cmpn(0)){var ae=(ce.getY().isOdd()?1:0)|(0!==re.cmp(de)?2:0);return P.canonical&&oe.cmp(this.nh)>0&&(oe=this.n.sub(oe),ae^=1),new N({r:de,s:oe,recoveryParam:ae})}}}}}},s.prototype.verify=function(A,O,E,P){A=this._truncateToN(new e(A,16)),E=this.keyFromPublic(E,P);var w=(O=new N(O,"hex")).r,Z=O.s;if(w.cmpn(1)<0||w.cmp(this.n)>=0||Z.cmpn(1)<0||Z.cmp(this.n)>=0)return!1;var ee,j=Z.invm(this.n),W=j.mul(A).umod(this.n),ie=j.mul(w).umod(this.n);return this.curve._maxwellTrick?!(ee=this.g.jmulAdd(W,E.getPublic(),ie)).isInfinity()&&ee.eqXToP(w):!(ee=this.g.mulAdd(W,E.getPublic(),ie)).isInfinity()&&0===ee.getX().umod(this.n).cmp(w)},s.prototype.recoverPubKey=function(D,A,O,E){M((3&O)===O,"The recovery param is more than two bits"),A=new N(A,E);var P=this.n,w=new e(D),Z=A.r,j=A.s,W=1&O,ie=O>>1;if(Z.cmp(this.curve.p.umod(this.curve.n))>=0&&ie)throw new Error("Unable to find sencond key candinate");Z=this.curve.pointFromX(ie?Z.add(this.curve.n):Z,W);var ee=A.r.invm(P),_e=P.sub(w).mul(ee).umod(P),ce=j.mul(ee).umod(P);return this.g.mulAdd(_e,Z,ce)},s.prototype.getKeyRecoveryParam=function(D,A,O,E){if(null!==(A=new N(A,E)).recoveryParam)return A.recoveryParam;for(var P=0;P<4;P++){var w;try{w=this.recoverPubKey(D,A,P)}catch(Z){continue}if(w.eq(O))return P}throw new Error("Unable to find valid recovery factor")}},1259:(Ve,Q,m)=>{"use strict";var e=m(7433),y=m(1970).assert;function C(o,M){this.ec=o,this.priv=null,this.pub=null,M.priv&&this._importPrivate(M.priv,M.privEnc),M.pub&&this._importPublic(M.pub,M.pubEnc)}Ve.exports=C,C.fromPublic=function(M,l,N){return l instanceof C?l:new C(M,{pub:l,pubEnc:N})},C.fromPrivate=function(M,l,N){return l instanceof C?l:new C(M,{priv:l,privEnc:N})},C.prototype.validate=function(){var M=this.getPublic();return M.isInfinity()?{result:!1,reason:"Invalid public key"}:M.validate()?M.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"}},C.prototype.getPublic=function(M,l){return"string"==typeof M&&(l=M,M=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),l?this.pub.encode(l,M):this.pub},C.prototype.getPrivate=function(M){return"hex"===M?this.priv.toString(16,2):this.priv},C.prototype._importPrivate=function(M,l){this.priv=new e(M,l||16),this.priv=this.priv.umod(this.ec.curve.n)},C.prototype._importPublic=function(M,l){if(M.x||M.y)return"mont"===this.ec.curve.type?y(M.x,"Need x coordinate"):("short"===this.ec.curve.type||"edwards"===this.ec.curve.type)&&y(M.x&&M.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(M.x,M.y));this.pub=this.ec.curve.decodePoint(M,l)},C.prototype.derive=function(M){return M.validate()||y(M.validate(),"public point not validated"),M.mul(this.priv).getX()},C.prototype.sign=function(M,l,N){return this.ec.sign(M,this,l,N)},C.prototype.verify=function(M,l){return this.ec.verify(M,l,this)},C.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},5957:(Ve,Q,m)=>{"use strict";var e=m(7433),t=m(1970),y=t.assert;function C(s,D){if(s instanceof C)return s;this._importDER(s,D)||(y(s.r&&s.s,"Signature without r or s"),this.r=new e(s.r,16),this.s=new e(s.s,16),this.recoveryParam=void 0===s.recoveryParam?null:s.recoveryParam)}function o(){this.place=0}function M(s,D){var A=s[D.place++];if(!(128&A))return A;var O=15&A;if(0===O||O>4)return!1;for(var E=0,P=0,w=D.place;P<O;P++,w++)E<<=8,E|=s[w],E>>>=0;return!(E<=127)&&(D.place=w,E)}function l(s){for(var D=0,A=s.length-1;!s[D]&&!(128&s[D+1])&&D<A;)D++;return 0===D?s:s.slice(D)}function N(s,D){if(D<128)s.push(D);else{var A=1+(Math.log(D)/Math.LN2>>>3);for(s.push(128|A);--A;)s.push(D>>>(A<<3)&255);s.push(D)}}Ve.exports=C,C.prototype._importDER=function(D,A){D=t.toArray(D,A);var O=new o;if(48!==D[O.place++])return!1;var E=M(D,O);if(!1===E||E+O.place!==D.length||2!==D[O.place++])return!1;var P=M(D,O);if(!1===P)return!1;var w=D.slice(O.place,P+O.place);if(O.place+=P,2!==D[O.place++])return!1;var Z=M(D,O);if(!1===Z||D.length!==Z+O.place)return!1;var j=D.slice(O.place,Z+O.place);if(0===w[0]){if(!(128&w[1]))return!1;w=w.slice(1)}if(0===j[0]){if(!(128&j[1]))return!1;j=j.slice(1)}return this.r=new e(w),this.s=new e(j),this.recoveryParam=null,!0},C.prototype.toDER=function(D){var A=this.r.toArray(),O=this.s.toArray();for(128&A[0]&&(A=[0].concat(A)),128&O[0]&&(O=[0].concat(O)),A=l(A),O=l(O);!(O[0]||128&O[1]);)O=O.slice(1);var E=[2];N(E,A.length),(E=E.concat(A)).push(2),N(E,O.length);var P=E.concat(O),w=[48];return N(w,P.length),w=w.concat(P),t.encode(w,D)}},1885:(Ve,Q,m)=>{"use strict";var e=m(7084),t=m(2916),y=m(1970),C=y.assert,o=y.parseBytes,M=m(7535),l=m(8241);function N(s){if(C("ed25519"===s,"only tested with ed25519 so far"),!(this instanceof N))return new N(s);this.curve=s=t[s].curve,this.g=s.g,this.g.precompute(s.n.bitLength()+1),this.pointClass=s.point().constructor,this.encodingLength=Math.ceil(s.n.bitLength()/8),this.hash=e.sha512}Ve.exports=N,N.prototype.sign=function(D,A){D=o(D);var O=this.keyFromSecret(A),E=this.hashInt(O.messagePrefix(),D),P=this.g.mul(E),w=this.encodePoint(P),Z=this.hashInt(w,O.pubBytes(),D).mul(O.priv()),j=E.add(Z).umod(this.curve.n);return this.makeSignature({R:P,S:j,Rencoded:w})},N.prototype.verify=function(D,A,O){D=o(D),A=this.makeSignature(A);var E=this.keyFromPublic(O),P=this.hashInt(A.Rencoded(),E.pubBytes(),D),w=this.g.mul(A.S());return A.R().add(E.pub().mul(P)).eq(w)},N.prototype.hashInt=function(){for(var D=this.hash(),A=0;A<arguments.length;A++)D.update(arguments[A]);return y.intFromLE(D.digest()).umod(this.curve.n)},N.prototype.keyFromPublic=function(D){return M.fromPublic(this,D)},N.prototype.keyFromSecret=function(D){return M.fromSecret(this,D)},N.prototype.makeSignature=function(D){return D instanceof l?D:new l(this,D)},N.prototype.encodePoint=function(D){var A=D.getY().toArray("le",this.encodingLength);return A[this.encodingLength-1]|=D.getX().isOdd()?128:0,A},N.prototype.decodePoint=function(D){var A=(D=y.parseBytes(D)).length-1,O=D.slice(0,A).concat(-129&D[A]),E=0!=(128&D[A]),P=y.intFromLE(O);return this.curve.pointFromY(P,E)},N.prototype.encodeInt=function(D){return D.toArray("le",this.encodingLength)},N.prototype.decodeInt=function(D){return y.intFromLE(D)},N.prototype.isPoint=function(D){return D instanceof this.pointClass}},7535:(Ve,Q,m)=>{"use strict";var e=m(1970),t=e.assert,y=e.parseBytes,C=e.cachedProperty;function o(M,l){this.eddsa=M,this._secret=y(l.secret),M.isPoint(l.pub)?this._pub=l.pub:this._pubBytes=y(l.pub)}o.fromPublic=function(l,N){return N instanceof o?N:new o(l,{pub:N})},o.fromSecret=function(l,N){return N instanceof o?N:new o(l,{secret:N})},o.prototype.secret=function(){return this._secret},C(o,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),C(o,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),C(o,"privBytes",function(){var l=this.eddsa,N=this.hash(),s=l.encodingLength-1,D=N.slice(0,l.encodingLength);return D[0]&=248,D[s]&=127,D[s]|=64,D}),C(o,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),C(o,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),C(o,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),o.prototype.sign=function(l){return t(this._secret,"KeyPair can only verify"),this.eddsa.sign(l,this)},o.prototype.verify=function(l,N){return this.eddsa.verify(l,N,this)},o.prototype.getSecret=function(l){return t(this._secret,"KeyPair is public only"),e.encode(this.secret(),l)},o.prototype.getPublic=function(l){return e.encode(this.pubBytes(),l)},Ve.exports=o},8241:(Ve,Q,m)=>{"use strict";var e=m(7433),t=m(1970),y=t.assert,C=t.cachedProperty,o=t.parseBytes;function M(l,N){this.eddsa=l,"object"!=typeof N&&(N=o(N)),Array.isArray(N)&&(N={R:N.slice(0,l.encodingLength),S:N.slice(l.encodingLength)}),y(N.R&&N.S,"Signature without R or S"),l.isPoint(N.R)&&(this._R=N.R),N.S instanceof e&&(this._S=N.S),this._Rencoded=Array.isArray(N.R)?N.R:N.Rencoded,this._Sencoded=Array.isArray(N.S)?N.S:N.Sencoded}C(M,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),C(M,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),C(M,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),C(M,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),M.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},M.prototype.toHex=function(){return t.encode(this.toBytes(),"hex").toUpperCase()},Ve.exports=M},5150:Ve=>{Ve.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},1970:(Ve,Q,m)=>{"use strict";var e=Q,t=m(7433),y=m(2391),C=m(8195);e.assert=y,e.toArray=C.toArray,e.zero2=C.zero2,e.toHex=C.toHex,e.encode=C.encode,e.getNAF=function o(D,A,O){var E=new Array(Math.max(D.bitLength(),O)+1);E.fill(0);for(var P=1<<A+1,w=D.clone(),Z=0;Z<E.length;Z++){var j,W=w.andln(P-1);w.isOdd()?w.isubn(j=W>(P>>1)-1?(P>>1)-W:W):j=0,E[Z]=j,w.iushrn(1)}return E},e.getJSF=function M(D,A){var O=[[],[]];D=D.clone(),A=A.clone();for(var w,E=0,P=0;D.cmpn(-E)>0||A.cmpn(-P)>0;){var W,ie,Z=D.andln(3)+E&3,j=A.andln(3)+P&3;3===Z&&(Z=-1),3===j&&(j=-1),W=0==(1&Z)?0:3!=(w=D.andln(7)+E&7)&&5!==w||2!==j?Z:-Z,O[0].push(W),ie=0==(1&j)?0:3!=(w=A.andln(7)+P&7)&&5!==w||2!==Z?j:-j,O[1].push(ie),2*E===W+1&&(E=1-E),2*P===ie+1&&(P=1-P),D.iushrn(1),A.iushrn(1)}return O},e.cachedProperty=function l(D,A,O){var E="_"+A;D.prototype[A]=function(){return void 0!==this[E]?this[E]:this[E]=O.call(this)}},e.parseBytes=function N(D){return"string"==typeof D?e.toArray(D,"hex"):D},e.intFromLE=function s(D){return new t(D,"hex","le")}},7433:function(Ve,Q,m){!function(e,t){"use strict";function y(b,i){if(!b)throw new Error(i||"Assertion failed")}function C(b,i){b.super_=i;var a=function(){};a.prototype=i.prototype,b.prototype=new a,b.prototype.constructor=b}function o(b,i,a){if(o.isBN(b))return b;this.negative=0,this.words=null,this.length=0,this.red=null,null!==b&&(("le"===i||"be"===i)&&(a=i,i=10),this._init(b||0,i||10,a||"be"))}var M;"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{M="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:m(5568).Buffer}catch(b){}function l(b,i){var a=b.charCodeAt(i);return a>=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function N(b,i,a){var p=l(b,a);return a-1>=i&&(p|=l(b,a-1)<<4),p}function s(b,i,a,p){for(var u=0,_=Math.min(b.length,a),L=i;L<_;L++){var I=b.charCodeAt(L)-48;u*=p,u+=I>=49?I-49+10:I>=17?I-17+10:I}return u}o.isBN=function(i){return i instanceof o||null!==i&&"object"==typeof i&&i.constructor.wordSize===o.wordSize&&Array.isArray(i.words)},o.max=function(i,a){return i.cmp(a)>0?i:a},o.min=function(i,a){return i.cmp(a)<0?i:a},o.prototype._init=function(i,a,p){if("number"==typeof i)return this._initNumber(i,a,p);if("object"==typeof i)return this._initArray(i,a,p);"hex"===a&&(a=16),y(a===(0|a)&&a>=2&&a<=36);var u=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(u++,this.negative=1),u<i.length&&(16===a?this._parseHex(i,u,p):(this._parseBase(i,a,u),"le"===p&&this._initArray(this.toArray(),a,p)))},o.prototype._initNumber=function(i,a,p){i<0&&(this.negative=1,i=-i),i<67108864?(this.words=[67108863&i],this.length=1):i<4503599627370496?(this.words=[67108863&i,i/67108864&67108863],this.length=2):(y(i<9007199254740992),this.words=[67108863&i,i/67108864&67108863,1],this.length=3),"le"===p&&this._initArray(this.toArray(),a,p)},o.prototype._initArray=function(i,a,p){if(y("number"==typeof i.length),i.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(i.length/3),this.words=new Array(this.length);for(var u=0;u<this.length;u++)this.words[u]=0;var _,L,I=0;if("be"===p)for(u=i.length-1,_=0;u>=0;u-=3)this.words[_]|=(L=i[u]|i[u-1]<<8|i[u-2]<<16)<<I&67108863,this.words[_+1]=L>>>26-I&67108863,(I+=24)>=26&&(I-=26,_++);else if("le"===p)for(u=0,_=0;u<i.length;u+=3)this.words[_]|=(L=i[u]|i[u+1]<<8|i[u+2]<<16)<<I&67108863,this.words[_+1]=L>>>26-I&67108863,(I+=24)>=26&&(I-=26,_++);return this.strip()},o.prototype._parseHex=function(i,a,p){this.length=Math.ceil((i.length-a)/6),this.words=new Array(this.length);for(var u=0;u<this.length;u++)this.words[u]=0;var I,_=0,L=0;if("be"===p)for(u=i.length-1;u>=a;u-=2)I=N(i,a,u)<<_,this.words[L]|=67108863&I,_>=18?(_-=18,this.words[L+=1]|=I>>>26):_+=8;else for(u=(i.length-a)%2==0?a+1:a;u<i.length;u+=2)I=N(i,a,u)<<_,this.words[L]|=67108863&I,_>=18?(_-=18,this.words[L+=1]|=I>>>26):_+=8;this.strip()},o.prototype._parseBase=function(i,a,p){this.words=[0],this.length=1;for(var u=0,_=1;_<=67108863;_*=a)u++;u--,_=_/a|0;for(var L=i.length-p,I=L%u,x=Math.min(L,L-I)+p,r=0,v=p;v<x;v+=u)r=s(i,v,v+u,a),this.imuln(_),this.words[0]+r<67108864?this.words[0]+=r:this._iaddn(r);if(0!==I){var G=1;for(r=s(i,v,i.length,a),v=0;v<I;v++)G*=a;this.imuln(G),this.words[0]+r<67108864?this.words[0]+=r:this._iaddn(r)}this.strip()},o.prototype.copy=function(i){i.words=new Array(this.length);for(var a=0;a<this.length;a++)i.words[a]=this.words[a];i.length=this.length,i.negative=this.negative,i.red=this.red},o.prototype.clone=function(){var i=new o(null);return this.copy(i),i},o.prototype._expand=function(i){for(;this.length<i;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var D=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],A=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],O=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function P(b,i,a){a.negative=i.negative^b.negative;var p=b.length+i.length|0;a.length=p,p=p-1|0;var u=0|b.words[0],_=0|i.words[0],L=u*_,x=L/67108864|0;a.words[0]=67108863&L;for(var r=1;r<p;r++){for(var v=x>>>26,G=67108863&x,F=Math.min(r,i.length-1),U=Math.max(0,r-b.length+1);U<=F;U++)v+=(L=(u=0|b.words[r-U|0])*(_=0|i.words[U])+G)/67108864|0,G=67108863&L;a.words[r]=0|G,x=0|v}return 0!==x?a.words[r]=0|x:a.length--,a.strip()}o.prototype.toString=function(i,a){var p;if(a=0|a||1,16===(i=i||10)||"hex"===i){p="";for(var u=0,_=0,L=0;L<this.length;L++){var I=this.words[L],x=(16777215&(I<<u|_)).toString(16);p=0!=(_=I>>>24-u&16777215)||L!==this.length-1?D[6-x.length]+x+p:x+p,(u+=2)>=26&&(u-=26,L--)}for(0!==_&&(p=_.toString(16)+p);p.length%a!=0;)p="0"+p;return 0!==this.negative&&(p="-"+p),p}if(i===(0|i)&&i>=2&&i<=36){var r=A[i],v=O[i];p="";var G=this.clone();for(G.negative=0;!G.isZero();){var F=G.modn(v).toString(i);p=(G=G.idivn(v)).isZero()?F+p:D[r-F.length]+F+p}for(this.isZero()&&(p="0"+p);p.length%a!=0;)p="0"+p;return 0!==this.negative&&(p="-"+p),p}y(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var i=this.words[0];return 2===this.length?i+=67108864*this.words[1]:3===this.length&&1===this.words[2]?i+=4503599627370496+67108864*this.words[1]:this.length>2&&y(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(i,a){return y(void 0!==M),this.toArrayLike(M,i,a)},o.prototype.toArray=function(i,a){return this.toArrayLike(Array,i,a)},o.prototype.toArrayLike=function(i,a,p){var u=this.byteLength(),_=p||Math.max(1,u);y(u<=_,"byte array longer than desired length"),y(_>0,"Requested array length <= 0"),this.strip();var x,r,L="le"===a,I=new i(_),v=this.clone();if(L){for(r=0;!v.isZero();r++)x=v.andln(255),v.iushrn(8),I[r]=x;for(;r<_;r++)I[r]=0}else{for(r=0;r<_-u;r++)I[r]=0;for(r=0;!v.isZero();r++)x=v.andln(255),v.iushrn(8),I[_-r-1]=x}return I},o.prototype._countBits=Math.clz32?function(i){return 32-Math.clz32(i)}:function(i){var a=i,p=0;return a>=4096&&(p+=13,a>>>=13),a>=64&&(p+=7,a>>>=7),a>=8&&(p+=4,a>>>=4),a>=2&&(p+=2,a>>>=2),p+a},o.prototype._zeroBits=function(i){if(0===i)return 26;var a=i,p=0;return 0==(8191&a)&&(p+=13,a>>>=13),0==(127&a)&&(p+=7,a>>>=7),0==(15&a)&&(p+=4,a>>>=4),0==(3&a)&&(p+=2,a>>>=2),0==(1&a)&&p++,p},o.prototype.bitLength=function(){var a=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+a},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,a=0;a<this.length;a++){var p=this._zeroBits(this.words[a]);if(i+=p,26!==p)break}return i},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(i){return 0!==this.negative?this.abs().inotn(i).iaddn(1):this.clone()},o.prototype.fromTwos=function(i){return this.testn(i-1)?this.notn(i).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(i){for(;this.length<i.length;)this.words[this.length++]=0;for(var a=0;a<i.length;a++)this.words[a]=this.words[a]|i.words[a];return this.strip()},o.prototype.ior=function(i){return y(0==(this.negative|i.negative)),this.iuor(i)},o.prototype.or=function(i){return this.length>i.length?this.clone().ior(i):i.clone().ior(this)},o.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},o.prototype.iuand=function(i){var a;a=this.length>i.length?i:this;for(var p=0;p<a.length;p++)this.words[p]=this.words[p]&i.words[p];return this.length=a.length,this.strip()},o.prototype.iand=function(i){return y(0==(this.negative|i.negative)),this.iuand(i)},o.prototype.and=function(i){return this.length>i.length?this.clone().iand(i):i.clone().iand(this)},o.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},o.prototype.iuxor=function(i){var a,p;this.length>i.length?(a=this,p=i):(a=i,p=this);for(var u=0;u<p.length;u++)this.words[u]=a.words[u]^p.words[u];if(this!==a)for(;u<a.length;u++)this.words[u]=a.words[u];return this.length=a.length,this.strip()},o.prototype.ixor=function(i){return y(0==(this.negative|i.negative)),this.iuxor(i)},o.prototype.xor=function(i){return this.length>i.length?this.clone().ixor(i):i.clone().ixor(this)},o.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},o.prototype.inotn=function(i){y("number"==typeof i&&i>=0);var a=0|Math.ceil(i/26),p=i%26;this._expand(a),p>0&&a--;for(var u=0;u<a;u++)this.words[u]=67108863&~this.words[u];return p>0&&(this.words[u]=~this.words[u]&67108863>>26-p),this.strip()},o.prototype.notn=function(i){return this.clone().inotn(i)},o.prototype.setn=function(i,a){y("number"==typeof i&&i>=0);var p=i/26|0,u=i%26;return this._expand(p+1),this.words[p]=a?this.words[p]|1<<u:this.words[p]&~(1<<u),this.strip()},o.prototype.iadd=function(i){var a,p,u;if(0!==this.negative&&0===i.negative)return this.negative=0,a=this.isub(i),this.negative^=1,this._normSign();if(0===this.negative&&0!==i.negative)return i.negative=0,a=this.isub(i),i.negative=1,a._normSign();this.length>i.length?(p=this,u=i):(p=i,u=this);for(var _=0,L=0;L<u.length;L++)this.words[L]=67108863&(a=(0|p.words[L])+(0|u.words[L])+_),_=a>>>26;for(;0!==_&&L<p.length;L++)this.words[L]=67108863&(a=(0|p.words[L])+_),_=a>>>26;if(this.length=p.length,0!==_)this.words[this.length]=_,this.length++;else if(p!==this)for(;L<p.length;L++)this.words[L]=p.words[L];return this},o.prototype.add=function(i){var a;return 0!==i.negative&&0===this.negative?(i.negative=0,a=this.sub(i),i.negative^=1,a):0===i.negative&&0!==this.negative?(this.negative=0,a=i.sub(this),this.negative=1,a):this.length>i.length?this.clone().iadd(i):i.clone().iadd(this)},o.prototype.isub=function(i){if(0!==i.negative){i.negative=0;var a=this.iadd(i);return i.negative=1,a._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(i),this.negative=1,this._normSign();var u,_,p=this.cmp(i);if(0===p)return this.negative=0,this.length=1,this.words[0]=0,this;p>0?(u=this,_=i):(u=i,_=this);for(var L=0,I=0;I<_.length;I++)L=(a=(0|u.words[I])-(0|_.words[I])+L)>>26,this.words[I]=67108863&a;for(;0!==L&&I<u.length;I++)L=(a=(0|u.words[I])+L)>>26,this.words[I]=67108863&a;if(0===L&&I<u.length&&u!==this)for(;I<u.length;I++)this.words[I]=u.words[I];return this.length=Math.max(this.length,I),u!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(i){return this.clone().isub(i)};var w=function(i,a,p){var x,r,v,u=i.words,_=a.words,L=p.words,I=0,G=0|u[0],F=8191&G,U=G>>>13,ye=0|u[1],Ce=8191&ye,Be=ye>>>13,ze=0|u[2],Ie=8191&ze,K=ze>>>13,Me=0|u[3],we=8191&Me,z=Me>>>13,Ge=0|u[4],vt=8191&Ge,Re=Ge>>>13,Ne=0|u[5],he=8191&Ne,Le=Ne>>>13,ke=0|u[6],q=8191&ke,$=ke>>>13,le=0|u[7],xe=8191&le,Ue=le>>>13,lt=0|u[8],nt=8191&lt,ft=lt>>>13,it=0|u[9],rt=8191&it,Mt=it>>>13,Zt=0|_[0],Ft=8191&Zt,Vt=Zt>>>13,Ii=0|_[1],jt=8191&Ii,ei=Ii>>>13,Pi=0|_[2],ai=8191&Pi,hi=Pi>>>13,Ze=0|_[3],Ee=8191&Ze,Y=Ze>>>13,me=0|_[4],De=8191&me,et=me>>>13,$t=0|_[5],Nt=8191&$t,Jt=$t>>>13,ct=0|_[6],Pe=8191&ct,Fe=ct>>>13,at=0|_[7],st=8191&at,At=at>>>13,li=0|_[8],Bt=8191&li,Rt=li>>>13,Li=0|_[9],si=8191&Li,ci=Li>>>13;p.negative=i.negative^a.negative,p.length=19;var sn=(I+(x=Math.imul(F,Ft))|0)+((8191&(r=(r=Math.imul(F,Vt))+Math.imul(U,Ft)|0))<<13)|0;I=((v=Math.imul(U,Vt))+(r>>>13)|0)+(sn>>>26)|0,sn&=67108863,x=Math.imul(Ce,Ft),r=(r=Math.imul(Ce,Vt))+Math.imul(Be,Ft)|0,v=Math.imul(Be,Vt);var Ui=(I+(x=x+Math.imul(F,jt)|0)|0)+((8191&(r=(r=r+Math.imul(F,ei)|0)+Math.imul(U,jt)|0))<<13)|0;I=((v=v+Math.imul(U,ei)|0)+(r>>>13)|0)+(Ui>>>26)|0,Ui&=67108863,x=Math.imul(Ie,Ft),r=(r=Math.imul(Ie,Vt))+Math.imul(K,Ft)|0,v=Math.imul(K,Vt),x=x+Math.imul(Ce,jt)|0,r=(r=r+Math.imul(Ce,ei)|0)+Math.imul(Be,jt)|0,v=v+Math.imul(Be,ei)|0;var Di=(I+(x=x+Math.imul(F,ai)|0)|0)+((8191&(r=(r=r+Math.imul(F,hi)|0)+Math.imul(U,ai)|0))<<13)|0;I=((v=v+Math.imul(U,hi)|0)+(r>>>13)|0)+(Di>>>26)|0,Di&=67108863,x=Math.imul(we,Ft),r=(r=Math.imul(we,Vt))+Math.imul(z,Ft)|0,v=Math.imul(z,Vt),x=x+Math.imul(Ie,jt)|0,r=(r=r+Math.imul(Ie,ei)|0)+Math.imul(K,jt)|0,v=v+Math.imul(K,ei)|0,x=x+Math.imul(Ce,ai)|0,r=(r=r+Math.imul(Ce,hi)|0)+Math.imul(Be,ai)|0,v=v+Math.imul(Be,hi)|0;var Xi=(I+(x=x+Math.imul(F,Ee)|0)|0)+((8191&(r=(r=r+Math.imul(F,Y)|0)+Math.imul(U,Ee)|0))<<13)|0;I=((v=v+Math.imul(U,Y)|0)+(r>>>13)|0)+(Xi>>>26)|0,Xi&=67108863,x=Math.imul(vt,Ft),r=(r=Math.imul(vt,Vt))+Math.imul(Re,Ft)|0,v=Math.imul(Re,Vt),x=x+Math.imul(we,jt)|0,r=(r=r+Math.imul(we,ei)|0)+Math.imul(z,jt)|0,v=v+Math.imul(z,ei)|0,x=x+Math.imul(Ie,ai)|0,r=(r=r+Math.imul(Ie,hi)|0)+Math.imul(K,ai)|0,v=v+Math.imul(K,hi)|0,x=x+Math.imul(Ce,Ee)|0,r=(r=r+Math.imul(Ce,Y)|0)+Math.imul(Be,Ee)|0,v=v+Math.imul(Be,Y)|0;var Ke=(I+(x=x+Math.imul(F,De)|0)|0)+((8191&(r=(r=r+Math.imul(F,et)|0)+Math.imul(U,De)|0))<<13)|0;I=((v=v+Math.imul(U,et)|0)+(r>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,x=Math.imul(he,Ft),r=(r=Math.imul(he,Vt))+Math.imul(Le,Ft)|0,v=Math.imul(Le,Vt),x=x+Math.imul(vt,jt)|0,r=(r=r+Math.imul(vt,ei)|0)+Math.imul(Re,jt)|0,v=v+Math.imul(Re,ei)|0,x=x+Math.imul(we,ai)|0,r=(r=r+Math.imul(we,hi)|0)+Math.imul(z,ai)|0,v=v+Math.imul(z,hi)|0,x=x+Math.imul(Ie,Ee)|0,r=(r=r+Math.imul(Ie,Y)|0)+Math.imul(K,Ee)|0,v=v+Math.imul(K,Y)|0,x=x+Math.imul(Ce,De)|0,r=(r=r+Math.imul(Ce,et)|0)+Math.imul(Be,De)|0,v=v+Math.imul(Be,et)|0;var _t=(I+(x=x+Math.imul(F,Nt)|0)|0)+((8191&(r=(r=r+Math.imul(F,Jt)|0)+Math.imul(U,Nt)|0))<<13)|0;I=((v=v+Math.imul(U,Jt)|0)+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,x=Math.imul(q,Ft),r=(r=Math.imul(q,Vt))+Math.imul($,Ft)|0,v=Math.imul($,Vt),x=x+Math.imul(he,jt)|0,r=(r=r+Math.imul(he,ei)|0)+Math.imul(Le,jt)|0,v=v+Math.imul(Le,ei)|0,x=x+Math.imul(vt,ai)|0,r=(r=r+Math.imul(vt,hi)|0)+Math.imul(Re,ai)|0,v=v+Math.imul(Re,hi)|0,x=x+Math.imul(we,Ee)|0,r=(r=r+Math.imul(we,Y)|0)+Math.imul(z,Ee)|0,v=v+Math.imul(z,Y)|0,x=x+Math.imul(Ie,De)|0,r=(r=r+Math.imul(Ie,et)|0)+Math.imul(K,De)|0,v=v+Math.imul(K,et)|0,x=x+Math.imul(Ce,Nt)|0,r=(r=r+Math.imul(Ce,Jt)|0)+Math.imul(Be,Nt)|0,v=v+Math.imul(Be,Jt)|0;var ve=(I+(x=x+Math.imul(F,Pe)|0)|0)+((8191&(r=(r=r+Math.imul(F,Fe)|0)+Math.imul(U,Pe)|0))<<13)|0;I=((v=v+Math.imul(U,Fe)|0)+(r>>>13)|0)+(ve>>>26)|0,ve&=67108863,x=Math.imul(xe,Ft),r=(r=Math.imul(xe,Vt))+Math.imul(Ue,Ft)|0,v=Math.imul(Ue,Vt),x=x+Math.imul(q,jt)|0,r=(r=r+Math.imul(q,ei)|0)+Math.imul($,jt)|0,v=v+Math.imul($,ei)|0,x=x+Math.imul(he,ai)|0,r=(r=r+Math.imul(he,hi)|0)+Math.imul(Le,ai)|0,v=v+Math.imul(Le,hi)|0,x=x+Math.imul(vt,Ee)|0,r=(r=r+Math.imul(vt,Y)|0)+Math.imul(Re,Ee)|0,v=v+Math.imul(Re,Y)|0,x=x+Math.imul(we,De)|0,r=(r=r+Math.imul(we,et)|0)+Math.imul(z,De)|0,v=v+Math.imul(z,et)|0,x=x+Math.imul(Ie,Nt)|0,r=(r=r+Math.imul(Ie,Jt)|0)+Math.imul(K,Nt)|0,v=v+Math.imul(K,Jt)|0,x=x+Math.imul(Ce,Pe)|0,r=(r=r+Math.imul(Ce,Fe)|0)+Math.imul(Be,Pe)|0,v=v+Math.imul(Be,Fe)|0;var qe=(I+(x=x+Math.imul(F,st)|0)|0)+((8191&(r=(r=r+Math.imul(F,At)|0)+Math.imul(U,st)|0))<<13)|0;I=((v=v+Math.imul(U,At)|0)+(r>>>13)|0)+(qe>>>26)|0,qe&=67108863,x=Math.imul(nt,Ft),r=(r=Math.imul(nt,Vt))+Math.imul(ft,Ft)|0,v=Math.imul(ft,Vt),x=x+Math.imul(xe,jt)|0,r=(r=r+Math.imul(xe,ei)|0)+Math.imul(Ue,jt)|0,v=v+Math.imul(Ue,ei)|0,x=x+Math.imul(q,ai)|0,r=(r=r+Math.imul(q,hi)|0)+Math.imul($,ai)|0,v=v+Math.imul($,hi)|0,x=x+Math.imul(he,Ee)|0,r=(r=r+Math.imul(he,Y)|0)+Math.imul(Le,Ee)|0,v=v+Math.imul(Le,Y)|0,x=x+Math.imul(vt,De)|0,r=(r=r+Math.imul(vt,et)|0)+Math.imul(Re,De)|0,v=v+Math.imul(Re,et)|0,x=x+Math.imul(we,Nt)|0,r=(r=r+Math.imul(we,Jt)|0)+Math.imul(z,Nt)|0,v=v+Math.imul(z,Jt)|0,x=x+Math.imul(Ie,Pe)|0,r=(r=r+Math.imul(Ie,Fe)|0)+Math.imul(K,Pe)|0,v=v+Math.imul(K,Fe)|0,x=x+Math.imul(Ce,st)|0,r=(r=r+Math.imul(Ce,At)|0)+Math.imul(Be,st)|0,v=v+Math.imul(Be,At)|0;var yt=(I+(x=x+Math.imul(F,Bt)|0)|0)+((8191&(r=(r=r+Math.imul(F,Rt)|0)+Math.imul(U,Bt)|0))<<13)|0;I=((v=v+Math.imul(U,Rt)|0)+(r>>>13)|0)+(yt>>>26)|0,yt&=67108863,x=Math.imul(rt,Ft),r=(r=Math.imul(rt,Vt))+Math.imul(Mt,Ft)|0,v=Math.imul(Mt,Vt),x=x+Math.imul(nt,jt)|0,r=(r=r+Math.imul(nt,ei)|0)+Math.imul(ft,jt)|0,v=v+Math.imul(ft,ei)|0,x=x+Math.imul(xe,ai)|0,r=(r=r+Math.imul(xe,hi)|0)+Math.imul(Ue,ai)|0,v=v+Math.imul(Ue,hi)|0,x=x+Math.imul(q,Ee)|0,r=(r=r+Math.imul(q,Y)|0)+Math.imul($,Ee)|0,v=v+Math.imul($,Y)|0,x=x+Math.imul(he,De)|0,r=(r=r+Math.imul(he,et)|0)+Math.imul(Le,De)|0,v=v+Math.imul(Le,et)|0,x=x+Math.imul(vt,Nt)|0,r=(r=r+Math.imul(vt,Jt)|0)+Math.imul(Re,Nt)|0,v=v+Math.imul(Re,Jt)|0,x=x+Math.imul(we,Pe)|0,r=(r=r+Math.imul(we,Fe)|0)+Math.imul(z,Pe)|0,v=v+Math.imul(z,Fe)|0,x=x+Math.imul(Ie,st)|0,r=(r=r+Math.imul(Ie,At)|0)+Math.imul(K,st)|0,v=v+Math.imul(K,At)|0,x=x+Math.imul(Ce,Bt)|0,r=(r=r+Math.imul(Ce,Rt)|0)+Math.imul(Be,Bt)|0,v=v+Math.imul(Be,Rt)|0;var fe=(I+(x=x+Math.imul(F,si)|0)|0)+((8191&(r=(r=r+Math.imul(F,ci)|0)+Math.imul(U,si)|0))<<13)|0;I=((v=v+Math.imul(U,ci)|0)+(r>>>13)|0)+(fe>>>26)|0,fe&=67108863,x=Math.imul(rt,jt),r=(r=Math.imul(rt,ei))+Math.imul(Mt,jt)|0,v=Math.imul(Mt,ei),x=x+Math.imul(nt,ai)|0,r=(r=r+Math.imul(nt,hi)|0)+Math.imul(ft,ai)|0,v=v+Math.imul(ft,hi)|0,x=x+Math.imul(xe,Ee)|0,r=(r=r+Math.imul(xe,Y)|0)+Math.imul(Ue,Ee)|0,v=v+Math.imul(Ue,Y)|0,x=x+Math.imul(q,De)|0,r=(r=r+Math.imul(q,et)|0)+Math.imul($,De)|0,v=v+Math.imul($,et)|0,x=x+Math.imul(he,Nt)|0,r=(r=r+Math.imul(he,Jt)|0)+Math.imul(Le,Nt)|0,v=v+Math.imul(Le,Jt)|0,x=x+Math.imul(vt,Pe)|0,r=(r=r+Math.imul(vt,Fe)|0)+Math.imul(Re,Pe)|0,v=v+Math.imul(Re,Fe)|0,x=x+Math.imul(we,st)|0,r=(r=r+Math.imul(we,At)|0)+Math.imul(z,st)|0,v=v+Math.imul(z,At)|0,x=x+Math.imul(Ie,Bt)|0,r=(r=r+Math.imul(Ie,Rt)|0)+Math.imul(K,Bt)|0,v=v+Math.imul(K,Rt)|0;var Je=(I+(x=x+Math.imul(Ce,si)|0)|0)+((8191&(r=(r=r+Math.imul(Ce,ci)|0)+Math.imul(Be,si)|0))<<13)|0;I=((v=v+Math.imul(Be,ci)|0)+(r>>>13)|0)+(Je>>>26)|0,Je&=67108863,x=Math.imul(rt,ai),r=(r=Math.imul(rt,hi))+Math.imul(Mt,ai)|0,v=Math.imul(Mt,hi),x=x+Math.imul(nt,Ee)|0,r=(r=r+Math.imul(nt,Y)|0)+Math.imul(ft,Ee)|0,v=v+Math.imul(ft,Y)|0,x=x+Math.imul(xe,De)|0,r=(r=r+Math.imul(xe,et)|0)+Math.imul(Ue,De)|0,v=v+Math.imul(Ue,et)|0,x=x+Math.imul(q,Nt)|0,r=(r=r+Math.imul(q,Jt)|0)+Math.imul($,Nt)|0,v=v+Math.imul($,Jt)|0,x=x+Math.imul(he,Pe)|0,r=(r=r+Math.imul(he,Fe)|0)+Math.imul(Le,Pe)|0,v=v+Math.imul(Le,Fe)|0,x=x+Math.imul(vt,st)|0,r=(r=r+Math.imul(vt,At)|0)+Math.imul(Re,st)|0,v=v+Math.imul(Re,At)|0,x=x+Math.imul(we,Bt)|0,r=(r=r+Math.imul(we,Rt)|0)+Math.imul(z,Bt)|0,v=v+Math.imul(z,Rt)|0;var St=(I+(x=x+Math.imul(Ie,si)|0)|0)+((8191&(r=(r=r+Math.imul(Ie,ci)|0)+Math.imul(K,si)|0))<<13)|0;I=((v=v+Math.imul(K,ci)|0)+(r>>>13)|0)+(St>>>26)|0,St&=67108863,x=Math.imul(rt,Ee),r=(r=Math.imul(rt,Y))+Math.imul(Mt,Ee)|0,v=Math.imul(Mt,Y),x=x+Math.imul(nt,De)|0,r=(r=r+Math.imul(nt,et)|0)+Math.imul(ft,De)|0,v=v+Math.imul(ft,et)|0,x=x+Math.imul(xe,Nt)|0,r=(r=r+Math.imul(xe,Jt)|0)+Math.imul(Ue,Nt)|0,v=v+Math.imul(Ue,Jt)|0,x=x+Math.imul(q,Pe)|0,r=(r=r+Math.imul(q,Fe)|0)+Math.imul($,Pe)|0,v=v+Math.imul($,Fe)|0,x=x+Math.imul(he,st)|0,r=(r=r+Math.imul(he,At)|0)+Math.imul(Le,st)|0,v=v+Math.imul(Le,At)|0,x=x+Math.imul(vt,Bt)|0,r=(r=r+Math.imul(vt,Rt)|0)+Math.imul(Re,Bt)|0,v=v+Math.imul(Re,Rt)|0;var Pt=(I+(x=x+Math.imul(we,si)|0)|0)+((8191&(r=(r=r+Math.imul(we,ci)|0)+Math.imul(z,si)|0))<<13)|0;I=((v=v+Math.imul(z,ci)|0)+(r>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,x=Math.imul(rt,De),r=(r=Math.imul(rt,et))+Math.imul(Mt,De)|0,v=Math.imul(Mt,et),x=x+Math.imul(nt,Nt)|0,r=(r=r+Math.imul(nt,Jt)|0)+Math.imul(ft,Nt)|0,v=v+Math.imul(ft,Jt)|0,x=x+Math.imul(xe,Pe)|0,r=(r=r+Math.imul(xe,Fe)|0)+Math.imul(Ue,Pe)|0,v=v+Math.imul(Ue,Fe)|0,x=x+Math.imul(q,st)|0,r=(r=r+Math.imul(q,At)|0)+Math.imul($,st)|0,v=v+Math.imul($,At)|0,x=x+Math.imul(he,Bt)|0,r=(r=r+Math.imul(he,Rt)|0)+Math.imul(Le,Bt)|0,v=v+Math.imul(Le,Rt)|0;var yi=(I+(x=x+Math.imul(vt,si)|0)|0)+((8191&(r=(r=r+Math.imul(vt,ci)|0)+Math.imul(Re,si)|0))<<13)|0;I=((v=v+Math.imul(Re,ci)|0)+(r>>>13)|0)+(yi>>>26)|0,yi&=67108863,x=Math.imul(rt,Nt),r=(r=Math.imul(rt,Jt))+Math.imul(Mt,Nt)|0,v=Math.imul(Mt,Jt),x=x+Math.imul(nt,Pe)|0,r=(r=r+Math.imul(nt,Fe)|0)+Math.imul(ft,Pe)|0,v=v+Math.imul(ft,Fe)|0,x=x+Math.imul(xe,st)|0,r=(r=r+Math.imul(xe,At)|0)+Math.imul(Ue,st)|0,v=v+Math.imul(Ue,At)|0,x=x+Math.imul(q,Bt)|0,r=(r=r+Math.imul(q,Rt)|0)+Math.imul($,Bt)|0,v=v+Math.imul($,Rt)|0;var Ni=(I+(x=x+Math.imul(he,si)|0)|0)+((8191&(r=(r=r+Math.imul(he,ci)|0)+Math.imul(Le,si)|0))<<13)|0;I=((v=v+Math.imul(Le,ci)|0)+(r>>>13)|0)+(Ni>>>26)|0,Ni&=67108863,x=Math.imul(rt,Pe),r=(r=Math.imul(rt,Fe))+Math.imul(Mt,Pe)|0,v=Math.imul(Mt,Fe),x=x+Math.imul(nt,st)|0,r=(r=r+Math.imul(nt,At)|0)+Math.imul(ft,st)|0,v=v+Math.imul(ft,At)|0,x=x+Math.imul(xe,Bt)|0,r=(r=r+Math.imul(xe,Rt)|0)+Math.imul(Ue,Bt)|0,v=v+Math.imul(Ue,Rt)|0;var Si=(I+(x=x+Math.imul(q,si)|0)|0)+((8191&(r=(r=r+Math.imul(q,ci)|0)+Math.imul($,si)|0))<<13)|0;I=((v=v+Math.imul($,ci)|0)+(r>>>13)|0)+(Si>>>26)|0,Si&=67108863,x=Math.imul(rt,st),r=(r=Math.imul(rt,At))+Math.imul(Mt,st)|0,v=Math.imul(Mt,At),x=x+Math.imul(nt,Bt)|0,r=(r=r+Math.imul(nt,Rt)|0)+Math.imul(ft,Bt)|0,v=v+Math.imul(ft,Rt)|0;var qi=(I+(x=x+Math.imul(xe,si)|0)|0)+((8191&(r=(r=r+Math.imul(xe,ci)|0)+Math.imul(Ue,si)|0))<<13)|0;I=((v=v+Math.imul(Ue,ci)|0)+(r>>>13)|0)+(qi>>>26)|0,qi&=67108863,x=Math.imul(rt,Bt),r=(r=Math.imul(rt,Rt))+Math.imul(Mt,Bt)|0,v=Math.imul(Mt,Rt);var ot=(I+(x=x+Math.imul(nt,si)|0)|0)+((8191&(r=(r=r+Math.imul(nt,ci)|0)+Math.imul(ft,si)|0))<<13)|0;I=((v=v+Math.imul(ft,ci)|0)+(r>>>13)|0)+(ot>>>26)|0,ot&=67108863;var Kt=(I+(x=Math.imul(rt,si))|0)+((8191&(r=(r=Math.imul(rt,ci))+Math.imul(Mt,si)|0))<<13)|0;return I=((v=Math.imul(Mt,ci))+(r>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,L[0]=sn,L[1]=Ui,L[2]=Di,L[3]=Xi,L[4]=Ke,L[5]=_t,L[6]=ve,L[7]=qe,L[8]=yt,L[9]=fe,L[10]=Je,L[11]=St,L[12]=Pt,L[13]=yi,L[14]=Ni,L[15]=Si,L[16]=qi,L[17]=ot,L[18]=Kt,0!==I&&(L[19]=I,p.length++),p};function j(b,i,a){return(new W).mulp(b,i,a)}function W(b,i){this.x=b,this.y=i}Math.imul||(w=P),o.prototype.mulTo=function(i,a){var p,u=this.length+i.length;return p=10===this.length&&10===i.length?w(this,i,a):u<63?P(this,i,a):u<1024?function Z(b,i,a){a.negative=i.negative^b.negative,a.length=b.length+i.length;for(var p=0,u=0,_=0;_<a.length-1;_++){var L=u;u=0;for(var I=67108863&p,x=Math.min(_,i.length-1),r=Math.max(0,_-b.length+1);r<=x;r++){var U=(0|b.words[_-r])*(0|i.words[r]),ye=67108863&U;I=67108863&(ye=ye+I|0),u+=(L=(L=L+(U/67108864|0)|0)+(ye>>>26)|0)>>>26,L&=67108863}a.words[_]=I,p=L,L=u}return 0!==p?a.words[_]=p:a.length--,a.strip()}(this,i,a):j(this,i,a),p},W.prototype.makeRBT=function(i){for(var a=new Array(i),p=o.prototype._countBits(i)-1,u=0;u<i;u++)a[u]=this.revBin(u,p,i);return a},W.prototype.revBin=function(i,a,p){if(0===i||i===p-1)return i;for(var u=0,_=0;_<a;_++)u|=(1&i)<<a-_-1,i>>=1;return u},W.prototype.permute=function(i,a,p,u,_,L){for(var I=0;I<L;I++)u[I]=a[i[I]],_[I]=p[i[I]]},W.prototype.transform=function(i,a,p,u,_,L){this.permute(L,i,a,p,u,_);for(var I=1;I<_;I<<=1)for(var x=I<<1,r=Math.cos(2*Math.PI/x),v=Math.sin(2*Math.PI/x),G=0;G<_;G+=x)for(var F=r,U=v,ye=0;ye<I;ye++){var Ce=p[G+ye],Be=u[G+ye],ze=p[G+ye+I],Ie=u[G+ye+I],K=F*ze-U*Ie;Ie=F*Ie+U*ze,p[G+ye]=Ce+(ze=K),u[G+ye]=Be+Ie,p[G+ye+I]=Ce-ze,u[G+ye+I]=Be-Ie,ye!==x&&(K=r*F-v*U,U=r*U+v*F,F=K)}},W.prototype.guessLen13b=function(i,a){var p=1|Math.max(a,i),u=1&p,_=0;for(p=p/2|0;p;p>>>=1)_++;return 1<<_+1+u},W.prototype.conjugate=function(i,a,p){if(!(p<=1))for(var u=0;u<p/2;u++){var _=i[u];i[u]=i[p-u-1],i[p-u-1]=_,_=a[u],a[u]=-a[p-u-1],a[p-u-1]=-_}},W.prototype.normalize13b=function(i,a){for(var p=0,u=0;u<a/2;u++){var _=8192*Math.round(i[2*u+1]/a)+Math.round(i[2*u]/a)+p;i[u]=67108863&_,p=_<67108864?0:_/67108864|0}return i},W.prototype.convert13b=function(i,a,p,u){for(var _=0,L=0;L<a;L++)p[2*L]=8191&(_+=0|i[L]),p[2*L+1]=8191&(_>>>=13),_>>>=13;for(L=2*a;L<u;++L)p[L]=0;y(0===_),y(0==(-8192&_))},W.prototype.stub=function(i){for(var a=new Array(i),p=0;p<i;p++)a[p]=0;return a},W.prototype.mulp=function(i,a,p){var u=2*this.guessLen13b(i.length,a.length),_=this.makeRBT(u),L=this.stub(u),I=new Array(u),x=new Array(u),r=new Array(u),v=new Array(u),G=new Array(u),F=new Array(u),U=p.words;U.length=u,this.convert13b(i.words,i.length,I,u),this.convert13b(a.words,a.length,v,u),this.transform(I,L,x,r,u,_),this.transform(v,L,G,F,u,_);for(var ye=0;ye<u;ye++){var Ce=x[ye]*G[ye]-r[ye]*F[ye];r[ye]=x[ye]*F[ye]+r[ye]*G[ye],x[ye]=Ce}return this.conjugate(x,r,u),this.transform(x,r,U,L,u,_),this.conjugate(U,L,u),this.normalize13b(U,u),p.negative=i.negative^a.negative,p.length=i.length+a.length,p.strip()},o.prototype.mul=function(i){var a=new o(null);return a.words=new Array(this.length+i.length),this.mulTo(i,a)},o.prototype.mulf=function(i){var a=new o(null);return a.words=new Array(this.length+i.length),j(this,i,a)},o.prototype.imul=function(i){return this.clone().mulTo(i,this)},o.prototype.imuln=function(i){y("number"==typeof i),y(i<67108864);for(var a=0,p=0;p<this.length;p++){var u=(0|this.words[p])*i,_=(67108863&u)+(67108863&a);a>>=26,a+=u/67108864|0,a+=_>>>26,this.words[p]=67108863&_}return 0!==a&&(this.words[p]=a,this.length++),this},o.prototype.muln=function(i){return this.clone().imuln(i)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(i){var a=function E(b){for(var i=new Array(b.bitLength()),a=0;a<i.length;a++){var u=a%26;i[a]=(b.words[a/26|0]&1<<u)>>>u}return i}(i);if(0===a.length)return new o(1);for(var p=this,u=0;u<a.length&&0===a[u];u++,p=p.sqr());if(++u<a.length)for(var _=p.sqr();u<a.length;u++,_=_.sqr())0!==a[u]&&(p=p.mul(_));return p},o.prototype.iushln=function(i){y("number"==typeof i&&i>=0);var _,a=i%26,p=(i-a)/26,u=67108863>>>26-a<<26-a;if(0!==a){var L=0;for(_=0;_<this.length;_++){var I=this.words[_]&u;this.words[_]=(0|this.words[_])-I<<a|L,L=I>>>26-a}L&&(this.words[_]=L,this.length++)}if(0!==p){for(_=this.length-1;_>=0;_--)this.words[_+p]=this.words[_];for(_=0;_<p;_++)this.words[_]=0;this.length+=p}return this.strip()},o.prototype.ishln=function(i){return y(0===this.negative),this.iushln(i)},o.prototype.iushrn=function(i,a,p){var u;y("number"==typeof i&&i>=0),u=a?(a-a%26)/26:0;var _=i%26,L=Math.min((i-_)/26,this.length),I=67108863^67108863>>>_<<_,x=p;if(u-=L,u=Math.max(0,u),x){for(var r=0;r<L;r++)x.words[r]=this.words[r];x.length=L}if(0!==L)if(this.length>L)for(this.length-=L,r=0;r<this.length;r++)this.words[r]=this.words[r+L];else this.words[0]=0,this.length=1;var v=0;for(r=this.length-1;r>=0&&(0!==v||r>=u);r--){var G=0|this.words[r];this.words[r]=v<<26-_|G>>>_,v=G&I}return x&&0!==v&&(x.words[x.length++]=v),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(i,a,p){return y(0===this.negative),this.iushrn(i,a,p)},o.prototype.shln=function(i){return this.clone().ishln(i)},o.prototype.ushln=function(i){return this.clone().iushln(i)},o.prototype.shrn=function(i){return this.clone().ishrn(i)},o.prototype.ushrn=function(i){return this.clone().iushrn(i)},o.prototype.testn=function(i){y("number"==typeof i&&i>=0);var a=i%26,p=(i-a)/26;return!(this.length<=p||!(this.words[p]&1<<a))},o.prototype.imaskn=function(i){y("number"==typeof i&&i>=0);var a=i%26,p=(i-a)/26;return y(0===this.negative,"imaskn works only with positive numbers"),this.length<=p?this:(0!==a&&p++,this.length=Math.min(p,this.length),0!==a&&(this.words[this.length-1]&=67108863^67108863>>>a<<a),this.strip())},o.prototype.maskn=function(i){return this.clone().imaskn(i)},o.prototype.iaddn=function(i){return y("number"==typeof i),y(i<67108864),i<0?this.isubn(-i):0!==this.negative?1===this.length&&(0|this.words[0])<i?(this.words[0]=i-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(i),this.negative=1,this):this._iaddn(i)},o.prototype._iaddn=function(i){this.words[0]+=i;for(var a=0;a<this.length&&this.words[a]>=67108864;a++)this.words[a]-=67108864,a===this.length-1?this.words[a+1]=1:this.words[a+1]++;return this.length=Math.max(this.length,a+1),this},o.prototype.isubn=function(i){if(y("number"==typeof i),y(i<67108864),i<0)return this.iaddn(-i);if(0!==this.negative)return this.negative=0,this.iaddn(i),this.negative=1,this;if(this.words[0]-=i,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var a=0;a<this.length&&this.words[a]<0;a++)this.words[a]+=67108864,this.words[a+1]-=1;return this.strip()},o.prototype.addn=function(i){return this.clone().iaddn(i)},o.prototype.subn=function(i){return this.clone().isubn(i)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(i,a,p){var _;this._expand(i.length+p);var L,I=0;for(_=0;_<i.length;_++){L=(0|this.words[_+p])+I;var x=(0|i.words[_])*a;I=((L-=67108863&x)>>26)-(x/67108864|0),this.words[_+p]=67108863&L}for(;_<this.length-p;_++)I=(L=(0|this.words[_+p])+I)>>26,this.words[_+p]=67108863&L;if(0===I)return this.strip();for(y(-1===I),I=0,_=0;_<this.length;_++)I=(L=-(0|this.words[_])+I)>>26,this.words[_]=67108863&L;return this.negative=1,this.strip()},o.prototype._wordDiv=function(i,a){var p,u=this.clone(),_=i,L=0|_.words[_.length-1];0!=(p=26-this._countBits(L))&&(_=_.ushln(p),u.iushln(p),L=0|_.words[_.length-1]);var r,x=u.length-_.length;if("mod"!==a){(r=new o(null)).length=x+1,r.words=new Array(r.length);for(var v=0;v<r.length;v++)r.words[v]=0}var G=u.clone()._ishlnsubmul(_,1,x);0===G.negative&&(u=G,r&&(r.words[x]=1));for(var F=x-1;F>=0;F--){var U=67108864*(0|u.words[_.length+F])+(0|u.words[_.length+F-1]);for(U=Math.min(U/L|0,67108863),u._ishlnsubmul(_,U,F);0!==u.negative;)U--,u.negative=0,u._ishlnsubmul(_,1,F),u.isZero()||(u.negative^=1);r&&(r.words[F]=U)}return r&&r.strip(),u.strip(),"div"!==a&&0!==p&&u.iushrn(p),{div:r||null,mod:u}},o.prototype.divmod=function(i,a,p){return y(!i.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===i.negative?(L=this.neg().divmod(i,a),"mod"!==a&&(u=L.div.neg()),"div"!==a&&(_=L.mod.neg(),p&&0!==_.negative&&_.iadd(i)),{div:u,mod:_}):0===this.negative&&0!==i.negative?(L=this.divmod(i.neg(),a),"mod"!==a&&(u=L.div.neg()),{div:u,mod:L.mod}):0!=(this.negative&i.negative)?(L=this.neg().divmod(i.neg(),a),"div"!==a&&(_=L.mod.neg(),p&&0!==_.negative&&_.isub(i)),{div:L.div,mod:_}):i.length>this.length||this.cmp(i)<0?{div:new o(0),mod:this}:1===i.length?"div"===a?{div:this.divn(i.words[0]),mod:null}:"mod"===a?{div:null,mod:new o(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new o(this.modn(i.words[0]))}:this._wordDiv(i,a);var u,_,L},o.prototype.div=function(i){return this.divmod(i,"div",!1).div},o.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},o.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},o.prototype.divRound=function(i){var a=this.divmod(i);if(a.mod.isZero())return a.div;var p=0!==a.div.negative?a.mod.isub(i):a.mod,u=i.ushrn(1),_=i.andln(1),L=p.cmp(u);return L<0||1===_&&0===L?a.div:0!==a.div.negative?a.div.isubn(1):a.div.iaddn(1)},o.prototype.modn=function(i){y(i<=67108863);for(var a=(1<<26)%i,p=0,u=this.length-1;u>=0;u--)p=(a*p+(0|this.words[u]))%i;return p},o.prototype.idivn=function(i){y(i<=67108863);for(var a=0,p=this.length-1;p>=0;p--){var u=(0|this.words[p])+67108864*a;this.words[p]=u/i|0,a=u%i}return this.strip()},o.prototype.divn=function(i){return this.clone().idivn(i)},o.prototype.egcd=function(i){y(0===i.negative),y(!i.isZero());var a=this,p=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var u=new o(1),_=new o(0),L=new o(0),I=new o(1),x=0;a.isEven()&&p.isEven();)a.iushrn(1),p.iushrn(1),++x;for(var r=p.clone(),v=a.clone();!a.isZero();){for(var G=0,F=1;0==(a.words[0]&F)&&G<26;++G,F<<=1);if(G>0)for(a.iushrn(G);G-- >0;)(u.isOdd()||_.isOdd())&&(u.iadd(r),_.isub(v)),u.iushrn(1),_.iushrn(1);for(var U=0,ye=1;0==(p.words[0]&ye)&&U<26;++U,ye<<=1);if(U>0)for(p.iushrn(U);U-- >0;)(L.isOdd()||I.isOdd())&&(L.iadd(r),I.isub(v)),L.iushrn(1),I.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(L),_.isub(I)):(p.isub(a),L.isub(u),I.isub(_))}return{a:L,b:I,gcd:p.iushln(x)}},o.prototype._invmp=function(i){y(0===i.negative),y(!i.isZero());var G,a=this,p=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var u=new o(1),_=new o(0),L=p.clone();a.cmpn(1)>0&&p.cmpn(1)>0;){for(var I=0,x=1;0==(a.words[0]&x)&&I<26;++I,x<<=1);if(I>0)for(a.iushrn(I);I-- >0;)u.isOdd()&&u.iadd(L),u.iushrn(1);for(var r=0,v=1;0==(p.words[0]&v)&&r<26;++r,v<<=1);if(r>0)for(p.iushrn(r);r-- >0;)_.isOdd()&&_.iadd(L),_.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(_)):(p.isub(a),_.isub(u))}return(G=0===a.cmpn(1)?u:_).cmpn(0)<0&&G.iadd(i),G},o.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var a=this.clone(),p=i.clone();a.negative=0,p.negative=0;for(var u=0;a.isEven()&&p.isEven();u++)a.iushrn(1),p.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;p.isEven();)p.iushrn(1);var _=a.cmp(p);if(_<0){var L=a;a=p,p=L}else if(0===_||0===p.cmpn(1))break;a.isub(p)}return p.iushln(u)},o.prototype.invm=function(i){return this.egcd(i).a.umod(i)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(i){return this.words[0]&i},o.prototype.bincn=function(i){y("number"==typeof i);var a=i%26,p=(i-a)/26,u=1<<a;if(this.length<=p)return this._expand(p+1),this.words[p]|=u,this;for(var _=u,L=p;0!==_&&L<this.length;L++){var I=0|this.words[L];_=(I+=_)>>>26,this.words[L]=I&=67108863}return 0!==_&&(this.words[L]=_,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(i){var p,a=i<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this.strip(),this.length>1)p=1;else{a&&(i=-i),y(i<=67108863,"Number is too big");var u=0|this.words[0];p=u===i?0:u<i?-1:1}return 0!==this.negative?0|-p:p},o.prototype.cmp=function(i){if(0!==this.negative&&0===i.negative)return-1;if(0===this.negative&&0!==i.negative)return 1;var a=this.ucmp(i);return 0!==this.negative?0|-a:a},o.prototype.ucmp=function(i){if(this.length>i.length)return 1;if(this.length<i.length)return-1;for(var a=0,p=this.length-1;p>=0;p--){var u=0|this.words[p],_=0|i.words[p];if(u!==_){u<_?a=-1:u>_&&(a=1);break}}return a},o.prototype.gtn=function(i){return 1===this.cmpn(i)},o.prototype.gt=function(i){return 1===this.cmp(i)},o.prototype.gten=function(i){return this.cmpn(i)>=0},o.prototype.gte=function(i){return this.cmp(i)>=0},o.prototype.ltn=function(i){return-1===this.cmpn(i)},o.prototype.lt=function(i){return-1===this.cmp(i)},o.prototype.lten=function(i){return this.cmpn(i)<=0},o.prototype.lte=function(i){return this.cmp(i)<=0},o.prototype.eqn=function(i){return 0===this.cmpn(i)},o.prototype.eq=function(i){return 0===this.cmp(i)},o.red=function(i){return new oe(i)},o.prototype.toRed=function(i){return y(!this.red,"Already a number in reduction context"),y(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},o.prototype.fromRed=function(){return y(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(i){return this.red=i,this},o.prototype.forceRed=function(i){return y(!this.red,"Already a number in reduction context"),this._forceRed(i)},o.prototype.redAdd=function(i){return y(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},o.prototype.redIAdd=function(i){return y(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},o.prototype.redSub=function(i){return y(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},o.prototype.redISub=function(i){return y(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},o.prototype.redShl=function(i){return y(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},o.prototype.redMul=function(i){return y(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},o.prototype.redIMul=function(i){return y(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},o.prototype.redSqr=function(){return y(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return y(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return y(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return y(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return y(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(i){return y(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var ie={k256:null,p224:null,p192:null,p25519:null};function ee(b,i){this.name=b,this.p=new o(i,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function _e(){ee.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function ce(){ee.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function re(){ee.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function de(){ee.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function oe(b){if("string"==typeof b){var i=o._prime(b);this.m=i.p,this.prime=i}else y(b.gtn(1),"modulus must be greater than 1"),this.m=b,this.prime=null}function ae(b){oe.call(this,b),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}ee.prototype._tmp=function(){var i=new o(null);return i.words=new Array(Math.ceil(this.n/13)),i},ee.prototype.ireduce=function(i){var p,a=i;do{this.split(a,this.tmp),p=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(p>this.n);var u=p<this.n?-1:a.ucmp(this.p);return 0===u?(a.words[0]=0,a.length=1):u>0?a.isub(this.p):void 0!==a.strip?a.strip():a._strip(),a},ee.prototype.split=function(i,a){i.iushrn(this.n,0,a)},ee.prototype.imulK=function(i){return i.imul(this.k)},C(_e,ee),_e.prototype.split=function(i,a){for(var p=4194303,u=Math.min(i.length,9),_=0;_<u;_++)a.words[_]=i.words[_];if(a.length=u,i.length<=9)return i.words[0]=0,void(i.length=1);var L=i.words[9];for(a.words[a.length++]=L&p,_=10;_<i.length;_++){var I=0|i.words[_];i.words[_-10]=(I&p)<<4|L>>>22,L=I}i.words[_-10]=L>>>=22,i.length-=0===L&&i.length>10?10:9},_e.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var a=0,p=0;p<i.length;p++){var u=0|i.words[p];i.words[p]=67108863&(a+=977*u),a=64*u+(a/67108864|0)}return 0===i.words[i.length-1]&&(i.length--,0===i.words[i.length-1]&&i.length--),i},C(ce,ee),C(re,ee),C(de,ee),de.prototype.imulK=function(i){for(var a=0,p=0;p<i.length;p++){var u=19*(0|i.words[p])+a,_=67108863&u;u>>>=26,i.words[p]=_,a=u}return 0!==a&&(i.words[i.length++]=a),i},o._prime=function(i){if(ie[i])return ie[i];var a;if("k256"===i)a=new _e;else if("p224"===i)a=new ce;else if("p192"===i)a=new re;else{if("p25519"!==i)throw new Error("Unknown prime "+i);a=new de}return ie[i]=a,a},oe.prototype._verify1=function(i){y(0===i.negative,"red works only with positives"),y(i.red,"red works only with red numbers")},oe.prototype._verify2=function(i,a){y(0==(i.negative|a.negative),"red works only with positives"),y(i.red&&i.red===a.red,"red works only with red numbers")},oe.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},oe.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},oe.prototype.add=function(i,a){this._verify2(i,a);var p=i.add(a);return p.cmp(this.m)>=0&&p.isub(this.m),p._forceRed(this)},oe.prototype.iadd=function(i,a){this._verify2(i,a);var p=i.iadd(a);return p.cmp(this.m)>=0&&p.isub(this.m),p},oe.prototype.sub=function(i,a){this._verify2(i,a);var p=i.sub(a);return p.cmpn(0)<0&&p.iadd(this.m),p._forceRed(this)},oe.prototype.isub=function(i,a){this._verify2(i,a);var p=i.isub(a);return p.cmpn(0)<0&&p.iadd(this.m),p},oe.prototype.shl=function(i,a){return this._verify1(i),this.imod(i.ushln(a))},oe.prototype.imul=function(i,a){return this._verify2(i,a),this.imod(i.imul(a))},oe.prototype.mul=function(i,a){return this._verify2(i,a),this.imod(i.mul(a))},oe.prototype.isqr=function(i){return this.imul(i,i.clone())},oe.prototype.sqr=function(i){return this.mul(i,i)},oe.prototype.sqrt=function(i){if(i.isZero())return i.clone();var a=this.m.andln(3);if(y(a%2==1),3===a){var p=this.m.add(new o(1)).iushrn(2);return this.pow(i,p)}for(var u=this.m.subn(1),_=0;!u.isZero()&&0===u.andln(1);)_++,u.iushrn(1);y(!u.isZero());var L=new o(1).toRed(this),I=L.redNeg(),x=this.m.subn(1).iushrn(1),r=this.m.bitLength();for(r=new o(2*r*r).toRed(this);0!==this.pow(r,x).cmp(I);)r.redIAdd(I);for(var v=this.pow(r,u),G=this.pow(i,u.addn(1).iushrn(1)),F=this.pow(i,u),U=_;0!==F.cmp(L);){for(var ye=F,Ce=0;0!==ye.cmp(L);Ce++)ye=ye.redSqr();y(Ce<U);var Be=this.pow(v,new o(1).iushln(U-Ce-1));G=G.redMul(Be),v=Be.redSqr(),F=F.redMul(v),U=Ce}return G},oe.prototype.invm=function(i){var a=i._invmp(this.m);return 0!==a.negative?(a.negative=0,this.imod(a).redNeg()):this.imod(a)},oe.prototype.pow=function(i,a){if(a.isZero())return new o(1).toRed(this);if(0===a.cmpn(1))return i.clone();var u=new Array(16);u[0]=new o(1).toRed(this),u[1]=i;for(var _=2;_<u.length;_++)u[_]=this.mul(u[_-1],i);var L=u[0],I=0,x=0,r=a.bitLength()%26;for(0===r&&(r=26),_=a.length-1;_>=0;_--){for(var v=a.words[_],G=r-1;G>=0;G--){var F=v>>G&1;L!==u[0]&&(L=this.sqr(L)),0!==F||0!==I?(I<<=1,I|=F,(4==++x||0===_&&0===G)&&(L=this.mul(L,u[I]),x=0,I=0)):x=0}r=26}return L},oe.prototype.convertTo=function(i){var a=i.umod(this.m);return a===i?a.clone():a},oe.prototype.convertFrom=function(i){var a=i.clone();return a.red=null,a},o.mont=function(i){return new ae(i)},C(ae,oe),ae.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},ae.prototype.convertFrom=function(i){var a=this.imod(i.mul(this.rinv));return a.red=null,a},ae.prototype.imul=function(i,a){if(i.isZero()||a.isZero())return i.words[0]=0,i.length=1,i;var p=i.imul(a),u=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=p.isub(u).iushrn(this.shift),L=_;return _.cmp(this.m)>=0?L=_.isub(this.m):_.cmpn(0)<0&&(L=_.iadd(this.m)),L._forceRed(this)},ae.prototype.mul=function(i,a){if(i.isZero()||a.isZero())return new o(0)._forceRed(this);var p=i.mul(a),u=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=p.isub(u).iushrn(this.shift),L=_;return _.cmp(this.m)>=0?L=_.isub(this.m):_.cmpn(0)<0&&(L=_.iadd(this.m)),L._forceRed(this)},ae.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(Ve=m.nmd(Ve),this)},8419:Ve=>{"use strict";Ve.exports=function(m){for(var e=[],t=m.length,y=0;y<t;y++){var C=m.charCodeAt(y);if(C>=55296&&C<=56319&&t>y+1){var o=m.charCodeAt(y+1);o>=56320&&o<=57343&&(C=1024*(C-55296)+o-56320+65536,y+=1)}C<128?e.push(C):C<2048?(e.push(C>>6|192),e.push(63&C|128)):C<55296||C>=57344&&C<65536?(e.push(C>>12|224),e.push(C>>6&63|128),e.push(63&C|128)):C>=65536&&C<=1114111?(e.push(C>>18|240),e.push(C>>12&63|128),e.push(C>>6&63|128),e.push(63&C|128)):e.push(239,191,189)}return new Uint8Array(e).buffer}},9069:Ve=>{"use strict";var e,Q="object"==typeof Reflect?Reflect:null,m=Q&&"function"==typeof Q.apply?Q.apply:function(ee,_e,ce){return Function.prototype.apply.call(ee,_e,ce)};e=Q&&"function"==typeof Q.ownKeys?Q.ownKeys:Object.getOwnPropertySymbols?function(ee){return Object.getOwnPropertyNames(ee).concat(Object.getOwnPropertySymbols(ee))}:function(ee){return Object.getOwnPropertyNames(ee)};var y=Number.isNaN||function(ee){return ee!=ee};function C(){C.init.call(this)}Ve.exports=C,Ve.exports.once=function Z(ie,ee){return new Promise(function(_e,ce){function re(oe){ie.removeListener(ee,de),ce(oe)}function de(){"function"==typeof ie.removeListener&&ie.removeListener("error",re),_e([].slice.call(arguments))}W(ie,ee,de,{once:!0}),"error"!==ee&&function j(ie,ee,_e){"function"==typeof ie.on&&W(ie,"error",ee,_e)}(ie,re,{once:!0})})},C.EventEmitter=C,C.prototype._events=void 0,C.prototype._eventsCount=0,C.prototype._maxListeners=void 0;var o=10;function M(ie){if("function"!=typeof ie)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof ie)}function l(ie){return void 0===ie._maxListeners?C.defaultMaxListeners:ie._maxListeners}function N(ie,ee,_e,ce){var re,de,oe;if(M(_e),void 0===(de=ie._events)?(de=ie._events=Object.create(null),ie._eventsCount=0):(void 0!==de.newListener&&(ie.emit("newListener",ee,_e.listener?_e.listener:_e),de=ie._events),oe=de[ee]),void 0===oe)oe=de[ee]=_e,++ie._eventsCount;else if("function"==typeof oe?oe=de[ee]=ce?[_e,oe]:[oe,_e]:ce?oe.unshift(_e):oe.push(_e),(re=l(ie))>0&&oe.length>re&&!oe.warned){oe.warned=!0;var ae=new Error("Possible EventEmitter memory leak detected. "+oe.length+" "+String(ee)+" listeners added. Use emitter.setMaxListeners() to increase limit");ae.name="MaxListenersExceededWarning",ae.emitter=ie,ae.type=ee,ae.count=oe.length,function t(ie){console&&console.warn&&console.warn(ie)}(ae)}return ie}function s(){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 D(ie,ee,_e){var ce={fired:!1,wrapFn:void 0,target:ie,type:ee,listener:_e},re=s.bind(ce);return re.listener=_e,ce.wrapFn=re,re}function A(ie,ee,_e){var ce=ie._events;if(void 0===ce)return[];var re=ce[ee];return void 0===re?[]:"function"==typeof re?_e?[re.listener||re]:[re]:_e?function w(ie){for(var ee=new Array(ie.length),_e=0;_e<ee.length;++_e)ee[_e]=ie[_e].listener||ie[_e];return ee}(re):E(re,re.length)}function O(ie){var ee=this._events;if(void 0!==ee){var _e=ee[ie];if("function"==typeof _e)return 1;if(void 0!==_e)return _e.length}return 0}function E(ie,ee){for(var _e=new Array(ee),ce=0;ce<ee;++ce)_e[ce]=ie[ce];return _e}function W(ie,ee,_e,ce){if("function"==typeof ie.on)ce.once?ie.once(ee,_e):ie.on(ee,_e);else{if("function"!=typeof ie.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof ie);ie.addEventListener(ee,function re(de){ce.once&&ie.removeEventListener(ee,re),_e(de)})}}Object.defineProperty(C,"defaultMaxListeners",{enumerable:!0,get:function(){return o},set:function(ie){if("number"!=typeof ie||ie<0||y(ie))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+ie+".");o=ie}}),C.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},C.prototype.setMaxListeners=function(ee){if("number"!=typeof ee||ee<0||y(ee))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+ee+".");return this._maxListeners=ee,this},C.prototype.getMaxListeners=function(){return l(this)},C.prototype.emit=function(ee){for(var _e=[],ce=1;ce<arguments.length;ce++)_e.push(arguments[ce]);var re="error"===ee,de=this._events;if(void 0!==de)re=re&&void 0===de.error;else if(!re)return!1;if(re){var oe;if(_e.length>0&&(oe=_e[0]),oe instanceof Error)throw oe;var ae=new Error("Unhandled error."+(oe?" ("+oe.message+")":""));throw ae.context=oe,ae}var b=de[ee];if(void 0===b)return!1;if("function"==typeof b)m(b,this,_e);else{var i=b.length,a=E(b,i);for(ce=0;ce<i;++ce)m(a[ce],this,_e)}return!0},C.prototype.on=C.prototype.addListener=function(ee,_e){return N(this,ee,_e,!1)},C.prototype.prependListener=function(ee,_e){return N(this,ee,_e,!0)},C.prototype.once=function(ee,_e){return M(_e),this.on(ee,D(this,ee,_e)),this},C.prototype.prependOnceListener=function(ee,_e){return M(_e),this.prependListener(ee,D(this,ee,_e)),this},C.prototype.off=C.prototype.removeListener=function(ee,_e){var ce,re,de,oe,ae;if(M(_e),void 0===(re=this._events))return this;if(void 0===(ce=re[ee]))return this;if(ce===_e||ce.listener===_e)0==--this._eventsCount?this._events=Object.create(null):(delete re[ee],re.removeListener&&this.emit("removeListener",ee,ce.listener||_e));else if("function"!=typeof ce){for(de=-1,oe=ce.length-1;oe>=0;oe--)if(ce[oe]===_e||ce[oe].listener===_e){ae=ce[oe].listener,de=oe;break}if(de<0)return this;0===de?ce.shift():function P(ie,ee){for(;ee+1<ie.length;ee++)ie[ee]=ie[ee+1];ie.pop()}(ce,de),1===ce.length&&(re[ee]=ce[0]),void 0!==re.removeListener&&this.emit("removeListener",ee,ae||_e)}return this},C.prototype.removeAllListeners=function(ee){var _e,ce,re;if(void 0===(ce=this._events))return this;if(void 0===ce.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==ce[ee]&&(0==--this._eventsCount?this._events=Object.create(null):delete ce[ee]),this;if(0===arguments.length){var oe,de=Object.keys(ce);for(re=0;re<de.length;++re)"removeListener"!==(oe=de[re])&&this.removeAllListeners(oe);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(_e=ce[ee]))this.removeListener(ee,_e);else if(void 0!==_e)for(re=_e.length-1;re>=0;re--)this.removeListener(ee,_e[re]);return this},C.prototype.listeners=function(ee){return A(this,ee,!0)},C.prototype.rawListeners=function(ee){return A(this,ee,!1)},C.listenerCount=function(ie,ee){return"function"==typeof ie.listenerCount?ie.listenerCount(ee):O.call(ie,ee)},C.prototype.listenerCount=O,C.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]}},347:(Ve,Q,m)=>{var e=m(3502).Buffer,t=m(8095);Ve.exports=function y(C,o,M,l){if(e.isBuffer(C)||(C=e.from(C,"binary")),o&&(e.isBuffer(o)||(o=e.from(o,"binary")),8!==o.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var N=M/8,s=e.alloc(N),D=e.alloc(l||0),A=e.alloc(0);N>0||l>0;){var O=new t;O.update(A),O.update(C),o&&O.update(o),A=O.digest();var E=0;if(N>0){var P=s.length-N;E=Math.min(N,A.length),A.copy(s,P,0,E),N-=E}if(E<A.length&&l>0){var w=D.length-l,Z=Math.min(l,A.length-E);A.copy(D,w,E,E+Z),l-=Z}}return A.fill(0),{key:s,iv:D}}},9650:(Ve,Q,m)=>{"use strict";var e=m(8444).Buffer,t=m(5685).Transform;function o(M){t.call(this),this._block=e.allocUnsafe(M),this._blockSize=M,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}m(3894)(o,t),o.prototype._transform=function(M,l,N){var s=null;try{this.update(M,l)}catch(D){s=D}N(s)},o.prototype._flush=function(M){var l=null;try{this.push(this.digest())}catch(N){l=N}M(l)},o.prototype.update=function(M,l){if(function C(M,l){if(!e.isBuffer(M)&&"string"!=typeof M)throw new TypeError(l+" must be a string or a buffer")}(M,"Data"),this._finalized)throw new Error("Digest already called");e.isBuffer(M)||(M=e.from(M,l));for(var N=this._block,s=0;this._blockOffset+M.length-s>=this._blockSize;){for(var D=this._blockOffset;D<this._blockSize;)N[D++]=M[s++];this._update(),this._blockOffset=0}for(;s<M.length;)N[this._blockOffset++]=M[s++];for(var A=0,O=8*M.length;O>0;++A)this._length[A]+=O,(O=this._length[A]/4294967296|0)>0&&(this._length[A]-=4294967296*O);return this},o.prototype._update=function(){throw new Error("_update is not implemented")},o.prototype.digest=function(M){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var l=this._digest();void 0!==M&&(l=l.toString(M)),this._block.fill(0),this._blockOffset=0;for(var N=0;N<4;++N)this._length[N]=0;return l},o.prototype._digest=function(){throw new Error("_digest is not implemented")},Ve.exports=o},8444:(Ve,Q,m)=>{var e=m(3172),t=e.Buffer;function y(o,M){for(var l in o)M[l]=o[l]}function C(o,M,l){return t(o,M,l)}t.from&&t.alloc&&t.allocUnsafe&&t.allocUnsafeSlow?Ve.exports=e:(y(e,Q),Q.Buffer=C),C.prototype=Object.create(t.prototype),y(t,C),C.from=function(o,M,l){if("number"==typeof o)throw new TypeError("Argument must not be a number");return t(o,M,l)},C.alloc=function(o,M,l){if("number"!=typeof o)throw new TypeError("Argument must be a number");var N=t(o);return void 0!==M?"string"==typeof l?N.fill(M,l):N.fill(M):N.fill(0),N},C.allocUnsafe=function(o){if("number"!=typeof o)throw new TypeError("Argument must be a number");return t(o)},C.allocUnsafeSlow=function(o){if("number"!=typeof o)throw new TypeError("Argument must be a number");return e.SlowBuffer(o)}},7084:(Ve,Q,m)=>{var e=Q;e.utils=m(9299),e.common=m(3800),e.sha=m(4962),e.ripemd=m(9458),e.hmac=m(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:(Ve,Q,m)=>{"use strict";var e=m(9299),t=m(2391);function y(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}Q.BlockHash=y,y.prototype.update=function(o,M){if(o=e.toArray(o,M),this.pending=this.pending?this.pending.concat(o):o,this.pendingTotal+=o.length,this.pending.length>=this._delta8){var l=(o=this.pending).length%this._delta8;this.pending=o.slice(o.length-l,o.length),0===this.pending.length&&(this.pending=null),o=e.join32(o,0,o.length-l,this.endian);for(var N=0;N<o.length;N+=this._delta32)this._update(o,N,N+this._delta32)}return this},y.prototype.digest=function(o){return this.update(this._pad()),t(null===this.pending),this._digest(o)},y.prototype._pad=function(){var o=this.pendingTotal,M=this._delta8,l=M-(o+this.padLength)%M,N=new Array(l+this.padLength);N[0]=128;for(var s=1;s<l;s++)N[s]=0;if(o<<=3,"big"===this.endian){for(var D=8;D<this.padLength;D++)N[s++]=0;N[s++]=0,N[s++]=0,N[s++]=0,N[s++]=0,N[s++]=o>>>24&255,N[s++]=o>>>16&255,N[s++]=o>>>8&255,N[s++]=255&o}else for(N[s++]=255&o,N[s++]=o>>>8&255,N[s++]=o>>>16&255,N[s++]=o>>>24&255,N[s++]=0,N[s++]=0,N[s++]=0,N[s++]=0,D=8;D<this.padLength;D++)N[s++]=0;return N}},2194:(Ve,Q,m)=>{"use strict";var e=m(9299),t=m(2391);function y(C,o,M){if(!(this instanceof y))return new y(C,o,M);this.Hash=C,this.blockSize=C.blockSize/8,this.outSize=C.outSize/8,this.inner=null,this.outer=null,this._init(e.toArray(o,M))}Ve.exports=y,y.prototype._init=function(o){o.length>this.blockSize&&(o=(new this.Hash).update(o).digest()),t(o.length<=this.blockSize);for(var M=o.length;M<this.blockSize;M++)o.push(0);for(M=0;M<o.length;M++)o[M]^=54;for(this.inner=(new this.Hash).update(o),M=0;M<o.length;M++)o[M]^=106;this.outer=(new this.Hash).update(o)},y.prototype.update=function(o,M){return this.inner.update(o,M),this},y.prototype.digest=function(o){return this.outer.update(this.inner.digest()),this.outer.digest(o)}},9458:(Ve,Q,m)=>{"use strict";var e=m(9299),t=m(3800),y=e.rotl32,C=e.sum32,o=e.sum32_3,M=e.sum32_4,l=t.BlockHash;function N(){if(!(this instanceof N))return new N;l.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function s(Z,j,W,ie){return Z<=15?j^W^ie:Z<=31?j&W|~j&ie:Z<=47?(j|~W)^ie:Z<=63?j&ie|W&~ie:j^(W|~ie)}function A(Z){return Z<=15?1352829926:Z<=31?1548603684:Z<=47?1836072691:Z<=63?2053994217:0}e.inherits(N,l),Q.ripemd160=N,N.blockSize=512,N.outSize=160,N.hmacStrength=192,N.padLength=64,N.prototype._update=function(j,W){for(var ie=this.h[0],ee=this.h[1],_e=this.h[2],ce=this.h[3],re=this.h[4],de=ie,oe=ee,ae=_e,b=ce,i=re,a=0;a<80;a++){var p=C(y(M(ie,s(a,ee,_e,ce),j[O[a]+W],(Z=a)<=15?0:Z<=31?1518500249:Z<=47?1859775393:Z<=63?2400959708:2840853838),P[a]),re);ie=re,re=ce,ce=y(_e,10),_e=ee,ee=p,p=C(y(M(de,s(79-a,oe,ae,b),j[E[a]+W],A(a)),w[a]),i),de=i,i=b,b=y(ae,10),ae=oe,oe=p}var Z;p=o(this.h[1],_e,b),this.h[1]=o(this.h[2],ce,i),this.h[2]=o(this.h[3],re,de),this.h[3]=o(this.h[4],ie,oe),this.h[4]=o(this.h[0],ee,ae),this.h[0]=p},N.prototype._digest=function(j){return"hex"===j?e.toHex32(this.h,"little"):e.split32(this.h,"little")};var O=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],E=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],P=[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:(Ve,Q,m)=>{"use strict";Q.sha1=m(9007),Q.sha224=m(55),Q.sha256=m(9342),Q.sha384=m(8634),Q.sha512=m(39)},9007:(Ve,Q,m)=>{"use strict";var e=m(9299),t=m(3800),y=m(3113),C=e.rotl32,o=e.sum32,M=e.sum32_5,l=y.ft_1,N=t.BlockHash,s=[1518500249,1859775393,2400959708,3395469782];function D(){if(!(this instanceof D))return new D;N.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}e.inherits(D,N),Ve.exports=D,D.blockSize=512,D.outSize=160,D.hmacStrength=80,D.padLength=64,D.prototype._update=function(O,E){for(var P=this.W,w=0;w<16;w++)P[w]=O[E+w];for(;w<P.length;w++)P[w]=C(P[w-3]^P[w-8]^P[w-14]^P[w-16],1);var Z=this.h[0],j=this.h[1],W=this.h[2],ie=this.h[3],ee=this.h[4];for(w=0;w<P.length;w++){var _e=~~(w/20),ce=M(C(Z,5),l(_e,j,W,ie),ee,P[w],s[_e]);ee=ie,ie=W,W=C(j,30),j=Z,Z=ce}this.h[0]=o(this.h[0],Z),this.h[1]=o(this.h[1],j),this.h[2]=o(this.h[2],W),this.h[3]=o(this.h[3],ie),this.h[4]=o(this.h[4],ee)},D.prototype._digest=function(O){return"hex"===O?e.toHex32(this.h,"big"):e.split32(this.h,"big")}},55:(Ve,Q,m)=>{"use strict";var e=m(9299),t=m(9342);function y(){if(!(this instanceof y))return new y;t.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}e.inherits(y,t),Ve.exports=y,y.blockSize=512,y.outSize=224,y.hmacStrength=192,y.padLength=64,y.prototype._digest=function(o){return"hex"===o?e.toHex32(this.h.slice(0,7),"big"):e.split32(this.h.slice(0,7),"big")}},9342:(Ve,Q,m)=>{"use strict";var e=m(9299),t=m(3800),y=m(3113),C=m(2391),o=e.sum32,M=e.sum32_4,l=e.sum32_5,N=y.ch32,s=y.maj32,D=y.s0_256,A=y.s1_256,O=y.g0_256,E=y.g1_256,P=t.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;P.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=w,this.W=new Array(64)}e.inherits(Z,P),Ve.exports=Z,Z.blockSize=512,Z.outSize=256,Z.hmacStrength=192,Z.padLength=64,Z.prototype._update=function(W,ie){for(var ee=this.W,_e=0;_e<16;_e++)ee[_e]=W[ie+_e];for(;_e<ee.length;_e++)ee[_e]=M(E(ee[_e-2]),ee[_e-7],O(ee[_e-15]),ee[_e-16]);var ce=this.h[0],re=this.h[1],de=this.h[2],oe=this.h[3],ae=this.h[4],b=this.h[5],i=this.h[6],a=this.h[7];for(C(this.k.length===ee.length),_e=0;_e<ee.length;_e++){var p=l(a,A(ae),N(ae,b,i),this.k[_e],ee[_e]),u=o(D(ce),s(ce,re,de));a=i,i=b,b=ae,ae=o(oe,p),oe=de,de=re,re=ce,ce=o(p,u)}this.h[0]=o(this.h[0],ce),this.h[1]=o(this.h[1],re),this.h[2]=o(this.h[2],de),this.h[3]=o(this.h[3],oe),this.h[4]=o(this.h[4],ae),this.h[5]=o(this.h[5],b),this.h[6]=o(this.h[6],i),this.h[7]=o(this.h[7],a)},Z.prototype._digest=function(W){return"hex"===W?e.toHex32(this.h,"big"):e.split32(this.h,"big")}},8634:(Ve,Q,m)=>{"use strict";var e=m(9299),t=m(39);function y(){if(!(this instanceof y))return new y;t.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}e.inherits(y,t),Ve.exports=y,y.blockSize=1024,y.outSize=384,y.hmacStrength=192,y.padLength=128,y.prototype._digest=function(o){return"hex"===o?e.toHex32(this.h.slice(0,12),"big"):e.split32(this.h.slice(0,12),"big")}},39:(Ve,Q,m)=>{"use strict";var e=m(9299),t=m(3800),y=m(2391),C=e.rotr64_hi,o=e.rotr64_lo,M=e.shr64_hi,l=e.shr64_lo,N=e.sum64,s=e.sum64_hi,D=e.sum64_lo,A=e.sum64_4_hi,O=e.sum64_4_lo,E=e.sum64_5_hi,P=e.sum64_5_lo,w=t.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 j(){if(!(this instanceof j))return new j;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(p,u,_,L,I){var x=p&_^~p&I;return x<0&&(x+=4294967296),x}function ie(p,u,_,L,I,x){var r=u&L^~u&x;return r<0&&(r+=4294967296),r}function ee(p,u,_,L,I){var x=p&_^p&I^_&I;return x<0&&(x+=4294967296),x}function _e(p,u,_,L,I,x){var r=u&L^u&x^L&x;return r<0&&(r+=4294967296),r}function ce(p,u){var x=C(p,u,28)^C(u,p,2)^C(u,p,7);return x<0&&(x+=4294967296),x}function re(p,u){var x=o(p,u,28)^o(u,p,2)^o(u,p,7);return x<0&&(x+=4294967296),x}function de(p,u){var x=C(p,u,14)^C(p,u,18)^C(u,p,9);return x<0&&(x+=4294967296),x}function oe(p,u){var x=o(p,u,14)^o(p,u,18)^o(u,p,9);return x<0&&(x+=4294967296),x}function ae(p,u){var x=C(p,u,1)^C(p,u,8)^M(p,u,7);return x<0&&(x+=4294967296),x}function b(p,u){var x=o(p,u,1)^o(p,u,8)^l(p,u,7);return x<0&&(x+=4294967296),x}function i(p,u){var x=C(p,u,19)^C(u,p,29)^M(p,u,6);return x<0&&(x+=4294967296),x}function a(p,u){var x=o(p,u,19)^o(u,p,29)^l(p,u,6);return x<0&&(x+=4294967296),x}e.inherits(j,w),Ve.exports=j,j.blockSize=1024,j.outSize=512,j.hmacStrength=192,j.padLength=128,j.prototype._prepareBlock=function(u,_){for(var L=this.W,I=0;I<32;I++)L[I]=u[_+I];for(;I<L.length;I+=2){var x=i(L[I-4],L[I-3]),r=a(L[I-4],L[I-3]),v=L[I-14],G=L[I-13],F=ae(L[I-30],L[I-29]),U=b(L[I-30],L[I-29]),ye=L[I-32],Ce=L[I-31];L[I]=A(x,r,v,G,F,U,ye,Ce),L[I+1]=O(x,r,v,G,F,U,ye,Ce)}},j.prototype._update=function(u,_){this._prepareBlock(u,_);var L=this.W,I=this.h[0],x=this.h[1],r=this.h[2],v=this.h[3],G=this.h[4],F=this.h[5],U=this.h[6],ye=this.h[7],Ce=this.h[8],Be=this.h[9],ze=this.h[10],Ie=this.h[11],K=this.h[12],Me=this.h[13],we=this.h[14],z=this.h[15];y(this.k.length===L.length);for(var Ge=0;Ge<L.length;Ge+=2){var vt=we,Re=z,Ne=de(Ce,Be),he=oe(Ce,Be),Le=W(Ce,0,ze,0,K),ke=ie(0,Be,0,Ie,0,Me),q=this.k[Ge],$=this.k[Ge+1],le=L[Ge],xe=L[Ge+1],Ue=E(vt,Re,Ne,he,Le,ke,q,$,le,xe),lt=P(vt,Re,Ne,he,Le,ke,q,$,le,xe);vt=ce(I,x),Re=re(I,x),Ne=ee(I,0,r,0,G),he=_e(0,x,0,v,0,F);var nt=s(vt,Re,Ne,he),ft=D(vt,Re,Ne,he);we=K,z=Me,K=ze,Me=Ie,ze=Ce,Ie=Be,Ce=s(U,ye,Ue,lt),Be=D(ye,ye,Ue,lt),U=G,ye=F,G=r,F=v,r=I,v=x,I=s(Ue,lt,nt,ft),x=D(Ue,lt,nt,ft)}N(this.h,0,I,x),N(this.h,2,r,v),N(this.h,4,G,F),N(this.h,6,U,ye),N(this.h,8,Ce,Be),N(this.h,10,ze,Ie),N(this.h,12,K,Me),N(this.h,14,we,z)},j.prototype._digest=function(u){return"hex"===u?e.toHex32(this.h,"big"):e.split32(this.h,"big")}},3113:(Ve,Q,m)=>{"use strict";var t=m(9299).rotr32;function C(A,O,E){return A&O^~A&E}function o(A,O,E){return A&O^A&E^O&E}function M(A,O,E){return A^O^E}Q.ft_1=function y(A,O,E,P){return 0===A?C(O,E,P):1===A||3===A?M(O,E,P):2===A?o(O,E,P):void 0},Q.ch32=C,Q.maj32=o,Q.p32=M,Q.s0_256=function l(A){return t(A,2)^t(A,13)^t(A,22)},Q.s1_256=function N(A){return t(A,6)^t(A,11)^t(A,25)},Q.g0_256=function s(A){return t(A,7)^t(A,18)^A>>>3},Q.g1_256=function D(A){return t(A,17)^t(A,19)^A>>>10}},9299:(Ve,Q,m)=>{"use strict";var e=m(2391),t=m(3894);function y(a,p){return!(55296!=(64512&a.charCodeAt(p))||p<0||p+1>=a.length)&&56320==(64512&a.charCodeAt(p+1))}function M(a){return(a>>>24|a>>>8&65280|a<<8&16711680|(255&a)<<24)>>>0}function N(a){return 1===a.length?"0"+a:a}function s(a){return 7===a.length?"0"+a:6===a.length?"00"+a:5===a.length?"000"+a:4===a.length?"0000"+a:3===a.length?"00000"+a:2===a.length?"000000"+a:1===a.length?"0000000"+a:a}Q.inherits=t,Q.toArray=function C(a,p){if(Array.isArray(a))return a.slice();if(!a)return[];var u=[];if("string"==typeof a)if(p){if("hex"===p)for((a=a.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(a="0"+a),L=0;L<a.length;L+=2)u.push(parseInt(a[L]+a[L+1],16))}else for(var _=0,L=0;L<a.length;L++){var I=a.charCodeAt(L);I<128?u[_++]=I:I<2048?(u[_++]=I>>6|192,u[_++]=63&I|128):y(a,L)?(I=65536+((1023&I)<<10)+(1023&a.charCodeAt(++L)),u[_++]=I>>18|240,u[_++]=I>>12&63|128,u[_++]=I>>6&63|128,u[_++]=63&I|128):(u[_++]=I>>12|224,u[_++]=I>>6&63|128,u[_++]=63&I|128)}else for(L=0;L<a.length;L++)u[L]=0|a[L];return u},Q.toHex=function o(a){for(var p="",u=0;u<a.length;u++)p+=N(a[u].toString(16));return p},Q.htonl=M,Q.toHex32=function l(a,p){for(var u="",_=0;_<a.length;_++){var L=a[_];"little"===p&&(L=M(L)),u+=s(L.toString(16))}return u},Q.zero2=N,Q.zero8=s,Q.join32=function D(a,p,u,_){var L=u-p;e(L%4==0);for(var I=new Array(L/4),x=0,r=p;x<I.length;x++,r+=4)I[x]=("big"===_?a[r]<<24|a[r+1]<<16|a[r+2]<<8|a[r+3]:a[r+3]<<24|a[r+2]<<16|a[r+1]<<8|a[r])>>>0;return I},Q.split32=function A(a,p){for(var u=new Array(4*a.length),_=0,L=0;_<a.length;_++,L+=4){var I=a[_];"big"===p?(u[L]=I>>>24,u[L+1]=I>>>16&255,u[L+2]=I>>>8&255,u[L+3]=255&I):(u[L+3]=I>>>24,u[L+2]=I>>>16&255,u[L+1]=I>>>8&255,u[L]=255&I)}return u},Q.rotr32=function O(a,p){return a>>>p|a<<32-p},Q.rotl32=function E(a,p){return a<<p|a>>>32-p},Q.sum32=function P(a,p){return a+p>>>0},Q.sum32_3=function w(a,p,u){return a+p+u>>>0},Q.sum32_4=function Z(a,p,u,_){return a+p+u+_>>>0},Q.sum32_5=function j(a,p,u,_,L){return a+p+u+_+L>>>0},Q.sum64=function W(a,p,u,_){var x=_+a[p+1]>>>0;a[p]=(x<_?1:0)+u+a[p]>>>0,a[p+1]=x},Q.sum64_hi=function ie(a,p,u,_){return(p+_>>>0<p?1:0)+a+u>>>0},Q.sum64_lo=function ee(a,p,u,_){return p+_>>>0},Q.sum64_4_hi=function _e(a,p,u,_,L,I,x,r){var v=0,G=p;return v+=(G=G+_>>>0)<p?1:0,v+=(G=G+I>>>0)<I?1:0,a+u+L+x+(v+=(G=G+r>>>0)<r?1:0)>>>0},Q.sum64_4_lo=function ce(a,p,u,_,L,I,x,r){return p+_+I+r>>>0},Q.sum64_5_hi=function re(a,p,u,_,L,I,x,r,v,G){var F=0,U=p;return F+=(U=U+_>>>0)<p?1:0,F+=(U=U+I>>>0)<I?1:0,F+=(U=U+r>>>0)<r?1:0,a+u+L+x+v+(F+=(U=U+G>>>0)<G?1:0)>>>0},Q.sum64_5_lo=function de(a,p,u,_,L,I,x,r,v,G){return p+_+I+r+G>>>0},Q.rotr64_hi=function oe(a,p,u){return(p<<32-u|a>>>u)>>>0},Q.rotr64_lo=function ae(a,p,u){return(a<<32-u|p>>>u)>>>0},Q.shr64_hi=function b(a,p,u){return a>>>u},Q.shr64_lo=function i(a,p,u){return(a<<32-u|p>>>u)>>>0}},2438:(Ve,Q,m)=>{"use strict";var e=m(7084),t=m(8195),y=m(2391);function C(o){if(!(this instanceof C))return new C(o);this.hash=o.hash,this.predResist=!!o.predResist,this.outLen=this.hash.outSize,this.minEntropy=o.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var M=t.toArray(o.entropy,o.entropyEnc||"hex"),l=t.toArray(o.nonce,o.nonceEnc||"hex"),N=t.toArray(o.pers,o.persEnc||"hex");y(M.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(M,l,N)}Ve.exports=C,C.prototype._init=function(M,l,N){var s=M.concat(l).concat(N);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var D=0;D<this.V.length;D++)this.K[D]=0,this.V[D]=1;this._update(s),this._reseed=1,this.reseedInterval=281474976710656},C.prototype._hmac=function(){return new e.hmac(this.hash,this.K)},C.prototype._update=function(M){var l=this._hmac().update(this.V).update([0]);M&&(l=l.update(M)),this.K=l.digest(),this.V=this._hmac().update(this.V).digest(),M&&(this.K=this._hmac().update(this.V).update([1]).update(M).digest(),this.V=this._hmac().update(this.V).digest())},C.prototype.reseed=function(M,l,N,s){"string"!=typeof l&&(s=N,N=l,l=null),M=t.toArray(M,l),N=t.toArray(N,s),y(M.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(M.concat(N||[])),this._reseed=1},C.prototype.generate=function(M,l,N,s){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof l&&(s=N,N=l,l=null),N&&(N=t.toArray(N,s||"hex"),this._update(N));for(var D=[];D.length<M;)this.V=this._hmac().update(this.V).digest(),D=D.concat(this.V);var A=D.slice(0,M);return this._update(N),this._reseed++,t.encode(A,l)}},8461:(Ve,Q)=>{Q.read=function(m,e,t,y,C){var o,M,l=8*C-y-1,N=(1<<l)-1,s=N>>1,D=-7,A=t?C-1:0,O=t?-1:1,E=m[e+A];for(A+=O,o=E&(1<<-D)-1,E>>=-D,D+=l;D>0;o=256*o+m[e+A],A+=O,D-=8);for(M=o&(1<<-D)-1,o>>=-D,D+=y;D>0;M=256*M+m[e+A],A+=O,D-=8);if(0===o)o=1-s;else{if(o===N)return M?NaN:1/0*(E?-1:1);M+=Math.pow(2,y),o-=s}return(E?-1:1)*M*Math.pow(2,o-y)},Q.write=function(m,e,t,y,C,o){var M,l,N,s=8*o-C-1,D=(1<<s)-1,A=D>>1,O=23===C?Math.pow(2,-24)-Math.pow(2,-77):0,E=y?0:o-1,P=y?1:-1,w=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(l=isNaN(e)?1:0,M=D):(M=Math.floor(Math.log(e)/Math.LN2),e*(N=Math.pow(2,-M))<1&&(M--,N*=2),(e+=M+A>=1?O/N:O*Math.pow(2,1-A))*N>=2&&(M++,N/=2),M+A>=D?(l=0,M=D):M+A>=1?(l=(e*N-1)*Math.pow(2,C),M+=A):(l=e*Math.pow(2,A-1)*Math.pow(2,C),M=0));C>=8;m[t+E]=255&l,E+=P,l/=256,C-=8);for(M=M<<C|l,s+=C;s>0;m[t+E]=255&M,E+=P,M/=256,s-=8);m[t+E-P]|=128*w}},3894:Ve=>{Ve.exports="function"==typeof Object.create?function(m,e){e&&(m.super_=e,m.prototype=Object.create(e.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}))}:function(m,e){if(e){m.super_=e;var t=function(){};t.prototype=e.prototype,m.prototype=new t,m.prototype.constructor=m}}},717:(Ve,Q,m)=>{"use strict";var e=m(623);function t(y){return!0===e(y)&&"[object Object]"===Object.prototype.toString.call(y)}Ve.exports=function(C){var o,M;return!(!1===t(C)||(o=C.constructor,"function"!=typeof o)||(M=o.prototype,!1===t(M))||!1===M.hasOwnProperty("isPrototypeOf"))}},623:Ve=>{"use strict";Ve.exports=function(m){return null!=m&&"object"==typeof m&&!1===Array.isArray(m)}},2872:Ve=>{var Q=Object.prototype.toString;function m(s){return"function"==typeof s.constructor?s.constructor.name:null}Ve.exports=function(D){if(void 0===D)return"undefined";if(null===D)return"null";var A=typeof D;if("boolean"===A)return"boolean";if("string"===A)return"string";if("number"===A)return"number";if("symbol"===A)return"symbol";if("function"===A)return function o(s,D){return"GeneratorFunction"===m(s)}(D)?"generatorfunction":"function";if(function e(s){return Array.isArray?Array.isArray(s):s instanceof Array}(D))return"array";if(function N(s){return!(!s.constructor||"function"!=typeof s.constructor.isBuffer)&&s.constructor.isBuffer(s)}(D))return"buffer";if(function l(s){try{if("number"==typeof s.length&&"function"==typeof s.callee)return!0}catch(D){if(-1!==D.message.indexOf("callee"))return!0}return!1}(D))return"arguments";if(function y(s){return s instanceof Date||"function"==typeof s.toDateString&&"function"==typeof s.getDate&&"function"==typeof s.setDate}(D))return"date";if(function t(s){return s instanceof Error||"string"==typeof s.message&&s.constructor&&"number"==typeof s.constructor.stackTraceLimit}(D))return"error";if(function C(s){return s instanceof RegExp||"string"==typeof s.flags&&"boolean"==typeof s.ignoreCase&&"boolean"==typeof s.multiline&&"boolean"==typeof s.global}(D))return"regexp";switch(m(D)){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 M(s){return"function"==typeof s.throw&&"function"==typeof s.return&&"function"==typeof s.next}(D))return"generator";switch(A=Q.call(D)){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return A.slice(8,-1).toLowerCase().replace(/\s/g,"")}},8095:(Ve,Q,m)=>{"use strict";var e=m(3894),t=m(9650),y=m(3502).Buffer,C=new Array(16);function o(){t.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function M(A,O){return A<<O|A>>>32-O}function l(A,O,E,P,w,Z,j){return M(A+(O&E|~O&P)+w+Z|0,j)+O|0}function N(A,O,E,P,w,Z,j){return M(A+(O&P|E&~P)+w+Z|0,j)+O|0}function s(A,O,E,P,w,Z,j){return M(A+(O^E^P)+w+Z|0,j)+O|0}function D(A,O,E,P,w,Z,j){return M(A+(E^(O|~P))+w+Z|0,j)+O|0}e(o,t),o.prototype._update=function(){for(var A=C,O=0;O<16;++O)A[O]=this._block.readInt32LE(4*O);var E=this._a,P=this._b,w=this._c,Z=this._d;E=l(E,P,w,Z,A[0],3614090360,7),Z=l(Z,E,P,w,A[1],3905402710,12),w=l(w,Z,E,P,A[2],606105819,17),P=l(P,w,Z,E,A[3],3250441966,22),E=l(E,P,w,Z,A[4],4118548399,7),Z=l(Z,E,P,w,A[5],1200080426,12),w=l(w,Z,E,P,A[6],2821735955,17),P=l(P,w,Z,E,A[7],4249261313,22),E=l(E,P,w,Z,A[8],1770035416,7),Z=l(Z,E,P,w,A[9],2336552879,12),w=l(w,Z,E,P,A[10],4294925233,17),P=l(P,w,Z,E,A[11],2304563134,22),E=l(E,P,w,Z,A[12],1804603682,7),Z=l(Z,E,P,w,A[13],4254626195,12),w=l(w,Z,E,P,A[14],2792965006,17),E=N(E,P=l(P,w,Z,E,A[15],1236535329,22),w,Z,A[1],4129170786,5),Z=N(Z,E,P,w,A[6],3225465664,9),w=N(w,Z,E,P,A[11],643717713,14),P=N(P,w,Z,E,A[0],3921069994,20),E=N(E,P,w,Z,A[5],3593408605,5),Z=N(Z,E,P,w,A[10],38016083,9),w=N(w,Z,E,P,A[15],3634488961,14),P=N(P,w,Z,E,A[4],3889429448,20),E=N(E,P,w,Z,A[9],568446438,5),Z=N(Z,E,P,w,A[14],3275163606,9),w=N(w,Z,E,P,A[3],4107603335,14),P=N(P,w,Z,E,A[8],1163531501,20),E=N(E,P,w,Z,A[13],2850285829,5),Z=N(Z,E,P,w,A[2],4243563512,9),w=N(w,Z,E,P,A[7],1735328473,14),E=s(E,P=N(P,w,Z,E,A[12],2368359562,20),w,Z,A[5],4294588738,4),Z=s(Z,E,P,w,A[8],2272392833,11),w=s(w,Z,E,P,A[11],1839030562,16),P=s(P,w,Z,E,A[14],4259657740,23),E=s(E,P,w,Z,A[1],2763975236,4),Z=s(Z,E,P,w,A[4],1272893353,11),w=s(w,Z,E,P,A[7],4139469664,16),P=s(P,w,Z,E,A[10],3200236656,23),E=s(E,P,w,Z,A[13],681279174,4),Z=s(Z,E,P,w,A[0],3936430074,11),w=s(w,Z,E,P,A[3],3572445317,16),P=s(P,w,Z,E,A[6],76029189,23),E=s(E,P,w,Z,A[9],3654602809,4),Z=s(Z,E,P,w,A[12],3873151461,11),w=s(w,Z,E,P,A[15],530742520,16),E=D(E,P=s(P,w,Z,E,A[2],3299628645,23),w,Z,A[0],4096336452,6),Z=D(Z,E,P,w,A[7],1126891415,10),w=D(w,Z,E,P,A[14],2878612391,15),P=D(P,w,Z,E,A[5],4237533241,21),E=D(E,P,w,Z,A[12],1700485571,6),Z=D(Z,E,P,w,A[3],2399980690,10),w=D(w,Z,E,P,A[10],4293915773,15),P=D(P,w,Z,E,A[1],2240044497,21),E=D(E,P,w,Z,A[8],1873313359,6),Z=D(Z,E,P,w,A[15],4264355552,10),w=D(w,Z,E,P,A[6],2734768916,15),P=D(P,w,Z,E,A[13],1309151649,21),E=D(E,P,w,Z,A[4],4149444226,6),Z=D(Z,E,P,w,A[11],3174756917,10),w=D(w,Z,E,P,A[2],718787259,15),P=D(P,w,Z,E,A[9],3951481745,21),this._a=this._a+E|0,this._b=this._b+P|0,this._c=this._c+w|0,this._d=this._d+Z|0},o.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var A=y.allocUnsafe(16);return A.writeInt32LE(this._a,0),A.writeInt32LE(this._b,4),A.writeInt32LE(this._c,8),A.writeInt32LE(this._d,12),A},Ve.exports=o},7079:(Ve,Q,m)=>{var e=m(1378),t=m(7950);function y(C){this.rand=C||new t.Rand}Ve.exports=y,y.create=function(o){return new y(o)},y.prototype._randbelow=function(o){var M=o.bitLength(),l=Math.ceil(M/8);do{var N=new e(this.rand.generate(l))}while(N.cmp(o)>=0);return N},y.prototype._randrange=function(o,M){var l=M.sub(o);return o.add(this._randbelow(l))},y.prototype.test=function(o,M,l){var N=o.bitLength(),s=e.mont(o),D=new e(1).toRed(s);M||(M=Math.max(1,N/48|0));for(var A=o.subn(1),O=0;!A.testn(O);O++);for(var E=o.shrn(O),P=A.toRed(s);M>0;M--){var Z=this._randrange(new e(2),A);l&&l(Z);var j=Z.toRed(s).redPow(E);if(0!==j.cmp(D)&&0!==j.cmp(P)){for(var W=1;W<O;W++){if(0===(j=j.redSqr()).cmp(D))return!1;if(0===j.cmp(P))break}if(W===O)return!1}}return!0},y.prototype.getDivisor=function(o,M){var l=o.bitLength(),N=e.mont(o),s=new e(1).toRed(N);M||(M=Math.max(1,l/48|0));for(var D=o.subn(1),A=0;!D.testn(A);A++);for(var O=o.shrn(A),E=D.toRed(N);M>0;M--){var P=this._randrange(new e(2),D),w=o.gcd(P);if(0!==w.cmpn(1))return w;var Z=P.toRed(N).redPow(O);if(0!==Z.cmp(s)&&0!==Z.cmp(E)){for(var j=1;j<A;j++){if(0===(Z=Z.redSqr()).cmp(s))return Z.fromRed().subn(1).gcd(o);if(0===Z.cmp(E))break}if(j===A)return(Z=Z.redSqr()).fromRed().subn(1).gcd(o)}}return!1}},1378:function(Ve,Q,m){!function(e,t){"use strict";function y(b,i){if(!b)throw new Error(i||"Assertion failed")}function C(b,i){b.super_=i;var a=function(){};a.prototype=i.prototype,b.prototype=new a,b.prototype.constructor=b}function o(b,i,a){if(o.isBN(b))return b;this.negative=0,this.words=null,this.length=0,this.red=null,null!==b&&(("le"===i||"be"===i)&&(a=i,i=10),this._init(b||0,i||10,a||"be"))}var M;"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{M="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:m(6619).Buffer}catch(b){}function l(b,i){var a=b.charCodeAt(i);return a>=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function N(b,i,a){var p=l(b,a);return a-1>=i&&(p|=l(b,a-1)<<4),p}function s(b,i,a,p){for(var u=0,_=Math.min(b.length,a),L=i;L<_;L++){var I=b.charCodeAt(L)-48;u*=p,u+=I>=49?I-49+10:I>=17?I-17+10:I}return u}o.isBN=function(i){return i instanceof o||null!==i&&"object"==typeof i&&i.constructor.wordSize===o.wordSize&&Array.isArray(i.words)},o.max=function(i,a){return i.cmp(a)>0?i:a},o.min=function(i,a){return i.cmp(a)<0?i:a},o.prototype._init=function(i,a,p){if("number"==typeof i)return this._initNumber(i,a,p);if("object"==typeof i)return this._initArray(i,a,p);"hex"===a&&(a=16),y(a===(0|a)&&a>=2&&a<=36);var u=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(u++,this.negative=1),u<i.length&&(16===a?this._parseHex(i,u,p):(this._parseBase(i,a,u),"le"===p&&this._initArray(this.toArray(),a,p)))},o.prototype._initNumber=function(i,a,p){i<0&&(this.negative=1,i=-i),i<67108864?(this.words=[67108863&i],this.length=1):i<4503599627370496?(this.words=[67108863&i,i/67108864&67108863],this.length=2):(y(i<9007199254740992),this.words=[67108863&i,i/67108864&67108863,1],this.length=3),"le"===p&&this._initArray(this.toArray(),a,p)},o.prototype._initArray=function(i,a,p){if(y("number"==typeof i.length),i.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(i.length/3),this.words=new Array(this.length);for(var u=0;u<this.length;u++)this.words[u]=0;var _,L,I=0;if("be"===p)for(u=i.length-1,_=0;u>=0;u-=3)this.words[_]|=(L=i[u]|i[u-1]<<8|i[u-2]<<16)<<I&67108863,this.words[_+1]=L>>>26-I&67108863,(I+=24)>=26&&(I-=26,_++);else if("le"===p)for(u=0,_=0;u<i.length;u+=3)this.words[_]|=(L=i[u]|i[u+1]<<8|i[u+2]<<16)<<I&67108863,this.words[_+1]=L>>>26-I&67108863,(I+=24)>=26&&(I-=26,_++);return this.strip()},o.prototype._parseHex=function(i,a,p){this.length=Math.ceil((i.length-a)/6),this.words=new Array(this.length);for(var u=0;u<this.length;u++)this.words[u]=0;var I,_=0,L=0;if("be"===p)for(u=i.length-1;u>=a;u-=2)I=N(i,a,u)<<_,this.words[L]|=67108863&I,_>=18?(_-=18,this.words[L+=1]|=I>>>26):_+=8;else for(u=(i.length-a)%2==0?a+1:a;u<i.length;u+=2)I=N(i,a,u)<<_,this.words[L]|=67108863&I,_>=18?(_-=18,this.words[L+=1]|=I>>>26):_+=8;this.strip()},o.prototype._parseBase=function(i,a,p){this.words=[0],this.length=1;for(var u=0,_=1;_<=67108863;_*=a)u++;u--,_=_/a|0;for(var L=i.length-p,I=L%u,x=Math.min(L,L-I)+p,r=0,v=p;v<x;v+=u)r=s(i,v,v+u,a),this.imuln(_),this.words[0]+r<67108864?this.words[0]+=r:this._iaddn(r);if(0!==I){var G=1;for(r=s(i,v,i.length,a),v=0;v<I;v++)G*=a;this.imuln(G),this.words[0]+r<67108864?this.words[0]+=r:this._iaddn(r)}this.strip()},o.prototype.copy=function(i){i.words=new Array(this.length);for(var a=0;a<this.length;a++)i.words[a]=this.words[a];i.length=this.length,i.negative=this.negative,i.red=this.red},o.prototype.clone=function(){var i=new o(null);return this.copy(i),i},o.prototype._expand=function(i){for(;this.length<i;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var D=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],A=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],O=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function P(b,i,a){a.negative=i.negative^b.negative;var p=b.length+i.length|0;a.length=p,p=p-1|0;var u=0|b.words[0],_=0|i.words[0],L=u*_,x=L/67108864|0;a.words[0]=67108863&L;for(var r=1;r<p;r++){for(var v=x>>>26,G=67108863&x,F=Math.min(r,i.length-1),U=Math.max(0,r-b.length+1);U<=F;U++)v+=(L=(u=0|b.words[r-U|0])*(_=0|i.words[U])+G)/67108864|0,G=67108863&L;a.words[r]=0|G,x=0|v}return 0!==x?a.words[r]=0|x:a.length--,a.strip()}o.prototype.toString=function(i,a){var p;if(a=0|a||1,16===(i=i||10)||"hex"===i){p="";for(var u=0,_=0,L=0;L<this.length;L++){var I=this.words[L],x=(16777215&(I<<u|_)).toString(16);p=0!=(_=I>>>24-u&16777215)||L!==this.length-1?D[6-x.length]+x+p:x+p,(u+=2)>=26&&(u-=26,L--)}for(0!==_&&(p=_.toString(16)+p);p.length%a!=0;)p="0"+p;return 0!==this.negative&&(p="-"+p),p}if(i===(0|i)&&i>=2&&i<=36){var r=A[i],v=O[i];p="";var G=this.clone();for(G.negative=0;!G.isZero();){var F=G.modn(v).toString(i);p=(G=G.idivn(v)).isZero()?F+p:D[r-F.length]+F+p}for(this.isZero()&&(p="0"+p);p.length%a!=0;)p="0"+p;return 0!==this.negative&&(p="-"+p),p}y(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var i=this.words[0];return 2===this.length?i+=67108864*this.words[1]:3===this.length&&1===this.words[2]?i+=4503599627370496+67108864*this.words[1]:this.length>2&&y(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(i,a){return y(void 0!==M),this.toArrayLike(M,i,a)},o.prototype.toArray=function(i,a){return this.toArrayLike(Array,i,a)},o.prototype.toArrayLike=function(i,a,p){var u=this.byteLength(),_=p||Math.max(1,u);y(u<=_,"byte array longer than desired length"),y(_>0,"Requested array length <= 0"),this.strip();var x,r,L="le"===a,I=new i(_),v=this.clone();if(L){for(r=0;!v.isZero();r++)x=v.andln(255),v.iushrn(8),I[r]=x;for(;r<_;r++)I[r]=0}else{for(r=0;r<_-u;r++)I[r]=0;for(r=0;!v.isZero();r++)x=v.andln(255),v.iushrn(8),I[_-r-1]=x}return I},o.prototype._countBits=Math.clz32?function(i){return 32-Math.clz32(i)}:function(i){var a=i,p=0;return a>=4096&&(p+=13,a>>>=13),a>=64&&(p+=7,a>>>=7),a>=8&&(p+=4,a>>>=4),a>=2&&(p+=2,a>>>=2),p+a},o.prototype._zeroBits=function(i){if(0===i)return 26;var a=i,p=0;return 0==(8191&a)&&(p+=13,a>>>=13),0==(127&a)&&(p+=7,a>>>=7),0==(15&a)&&(p+=4,a>>>=4),0==(3&a)&&(p+=2,a>>>=2),0==(1&a)&&p++,p},o.prototype.bitLength=function(){var a=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+a},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,a=0;a<this.length;a++){var p=this._zeroBits(this.words[a]);if(i+=p,26!==p)break}return i},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(i){return 0!==this.negative?this.abs().inotn(i).iaddn(1):this.clone()},o.prototype.fromTwos=function(i){return this.testn(i-1)?this.notn(i).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(i){for(;this.length<i.length;)this.words[this.length++]=0;for(var a=0;a<i.length;a++)this.words[a]=this.words[a]|i.words[a];return this.strip()},o.prototype.ior=function(i){return y(0==(this.negative|i.negative)),this.iuor(i)},o.prototype.or=function(i){return this.length>i.length?this.clone().ior(i):i.clone().ior(this)},o.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},o.prototype.iuand=function(i){var a;a=this.length>i.length?i:this;for(var p=0;p<a.length;p++)this.words[p]=this.words[p]&i.words[p];return this.length=a.length,this.strip()},o.prototype.iand=function(i){return y(0==(this.negative|i.negative)),this.iuand(i)},o.prototype.and=function(i){return this.length>i.length?this.clone().iand(i):i.clone().iand(this)},o.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},o.prototype.iuxor=function(i){var a,p;this.length>i.length?(a=this,p=i):(a=i,p=this);for(var u=0;u<p.length;u++)this.words[u]=a.words[u]^p.words[u];if(this!==a)for(;u<a.length;u++)this.words[u]=a.words[u];return this.length=a.length,this.strip()},o.prototype.ixor=function(i){return y(0==(this.negative|i.negative)),this.iuxor(i)},o.prototype.xor=function(i){return this.length>i.length?this.clone().ixor(i):i.clone().ixor(this)},o.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},o.prototype.inotn=function(i){y("number"==typeof i&&i>=0);var a=0|Math.ceil(i/26),p=i%26;this._expand(a),p>0&&a--;for(var u=0;u<a;u++)this.words[u]=67108863&~this.words[u];return p>0&&(this.words[u]=~this.words[u]&67108863>>26-p),this.strip()},o.prototype.notn=function(i){return this.clone().inotn(i)},o.prototype.setn=function(i,a){y("number"==typeof i&&i>=0);var p=i/26|0,u=i%26;return this._expand(p+1),this.words[p]=a?this.words[p]|1<<u:this.words[p]&~(1<<u),this.strip()},o.prototype.iadd=function(i){var a,p,u;if(0!==this.negative&&0===i.negative)return this.negative=0,a=this.isub(i),this.negative^=1,this._normSign();if(0===this.negative&&0!==i.negative)return i.negative=0,a=this.isub(i),i.negative=1,a._normSign();this.length>i.length?(p=this,u=i):(p=i,u=this);for(var _=0,L=0;L<u.length;L++)this.words[L]=67108863&(a=(0|p.words[L])+(0|u.words[L])+_),_=a>>>26;for(;0!==_&&L<p.length;L++)this.words[L]=67108863&(a=(0|p.words[L])+_),_=a>>>26;if(this.length=p.length,0!==_)this.words[this.length]=_,this.length++;else if(p!==this)for(;L<p.length;L++)this.words[L]=p.words[L];return this},o.prototype.add=function(i){var a;return 0!==i.negative&&0===this.negative?(i.negative=0,a=this.sub(i),i.negative^=1,a):0===i.negative&&0!==this.negative?(this.negative=0,a=i.sub(this),this.negative=1,a):this.length>i.length?this.clone().iadd(i):i.clone().iadd(this)},o.prototype.isub=function(i){if(0!==i.negative){i.negative=0;var a=this.iadd(i);return i.negative=1,a._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(i),this.negative=1,this._normSign();var u,_,p=this.cmp(i);if(0===p)return this.negative=0,this.length=1,this.words[0]=0,this;p>0?(u=this,_=i):(u=i,_=this);for(var L=0,I=0;I<_.length;I++)L=(a=(0|u.words[I])-(0|_.words[I])+L)>>26,this.words[I]=67108863&a;for(;0!==L&&I<u.length;I++)L=(a=(0|u.words[I])+L)>>26,this.words[I]=67108863&a;if(0===L&&I<u.length&&u!==this)for(;I<u.length;I++)this.words[I]=u.words[I];return this.length=Math.max(this.length,I),u!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(i){return this.clone().isub(i)};var w=function(i,a,p){var x,r,v,u=i.words,_=a.words,L=p.words,I=0,G=0|u[0],F=8191&G,U=G>>>13,ye=0|u[1],Ce=8191&ye,Be=ye>>>13,ze=0|u[2],Ie=8191&ze,K=ze>>>13,Me=0|u[3],we=8191&Me,z=Me>>>13,Ge=0|u[4],vt=8191&Ge,Re=Ge>>>13,Ne=0|u[5],he=8191&Ne,Le=Ne>>>13,ke=0|u[6],q=8191&ke,$=ke>>>13,le=0|u[7],xe=8191&le,Ue=le>>>13,lt=0|u[8],nt=8191&lt,ft=lt>>>13,it=0|u[9],rt=8191&it,Mt=it>>>13,Zt=0|_[0],Ft=8191&Zt,Vt=Zt>>>13,Ii=0|_[1],jt=8191&Ii,ei=Ii>>>13,Pi=0|_[2],ai=8191&Pi,hi=Pi>>>13,Ze=0|_[3],Ee=8191&Ze,Y=Ze>>>13,me=0|_[4],De=8191&me,et=me>>>13,$t=0|_[5],Nt=8191&$t,Jt=$t>>>13,ct=0|_[6],Pe=8191&ct,Fe=ct>>>13,at=0|_[7],st=8191&at,At=at>>>13,li=0|_[8],Bt=8191&li,Rt=li>>>13,Li=0|_[9],si=8191&Li,ci=Li>>>13;p.negative=i.negative^a.negative,p.length=19;var sn=(I+(x=Math.imul(F,Ft))|0)+((8191&(r=(r=Math.imul(F,Vt))+Math.imul(U,Ft)|0))<<13)|0;I=((v=Math.imul(U,Vt))+(r>>>13)|0)+(sn>>>26)|0,sn&=67108863,x=Math.imul(Ce,Ft),r=(r=Math.imul(Ce,Vt))+Math.imul(Be,Ft)|0,v=Math.imul(Be,Vt);var Ui=(I+(x=x+Math.imul(F,jt)|0)|0)+((8191&(r=(r=r+Math.imul(F,ei)|0)+Math.imul(U,jt)|0))<<13)|0;I=((v=v+Math.imul(U,ei)|0)+(r>>>13)|0)+(Ui>>>26)|0,Ui&=67108863,x=Math.imul(Ie,Ft),r=(r=Math.imul(Ie,Vt))+Math.imul(K,Ft)|0,v=Math.imul(K,Vt),x=x+Math.imul(Ce,jt)|0,r=(r=r+Math.imul(Ce,ei)|0)+Math.imul(Be,jt)|0,v=v+Math.imul(Be,ei)|0;var Di=(I+(x=x+Math.imul(F,ai)|0)|0)+((8191&(r=(r=r+Math.imul(F,hi)|0)+Math.imul(U,ai)|0))<<13)|0;I=((v=v+Math.imul(U,hi)|0)+(r>>>13)|0)+(Di>>>26)|0,Di&=67108863,x=Math.imul(we,Ft),r=(r=Math.imul(we,Vt))+Math.imul(z,Ft)|0,v=Math.imul(z,Vt),x=x+Math.imul(Ie,jt)|0,r=(r=r+Math.imul(Ie,ei)|0)+Math.imul(K,jt)|0,v=v+Math.imul(K,ei)|0,x=x+Math.imul(Ce,ai)|0,r=(r=r+Math.imul(Ce,hi)|0)+Math.imul(Be,ai)|0,v=v+Math.imul(Be,hi)|0;var Xi=(I+(x=x+Math.imul(F,Ee)|0)|0)+((8191&(r=(r=r+Math.imul(F,Y)|0)+Math.imul(U,Ee)|0))<<13)|0;I=((v=v+Math.imul(U,Y)|0)+(r>>>13)|0)+(Xi>>>26)|0,Xi&=67108863,x=Math.imul(vt,Ft),r=(r=Math.imul(vt,Vt))+Math.imul(Re,Ft)|0,v=Math.imul(Re,Vt),x=x+Math.imul(we,jt)|0,r=(r=r+Math.imul(we,ei)|0)+Math.imul(z,jt)|0,v=v+Math.imul(z,ei)|0,x=x+Math.imul(Ie,ai)|0,r=(r=r+Math.imul(Ie,hi)|0)+Math.imul(K,ai)|0,v=v+Math.imul(K,hi)|0,x=x+Math.imul(Ce,Ee)|0,r=(r=r+Math.imul(Ce,Y)|0)+Math.imul(Be,Ee)|0,v=v+Math.imul(Be,Y)|0;var Ke=(I+(x=x+Math.imul(F,De)|0)|0)+((8191&(r=(r=r+Math.imul(F,et)|0)+Math.imul(U,De)|0))<<13)|0;I=((v=v+Math.imul(U,et)|0)+(r>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,x=Math.imul(he,Ft),r=(r=Math.imul(he,Vt))+Math.imul(Le,Ft)|0,v=Math.imul(Le,Vt),x=x+Math.imul(vt,jt)|0,r=(r=r+Math.imul(vt,ei)|0)+Math.imul(Re,jt)|0,v=v+Math.imul(Re,ei)|0,x=x+Math.imul(we,ai)|0,r=(r=r+Math.imul(we,hi)|0)+Math.imul(z,ai)|0,v=v+Math.imul(z,hi)|0,x=x+Math.imul(Ie,Ee)|0,r=(r=r+Math.imul(Ie,Y)|0)+Math.imul(K,Ee)|0,v=v+Math.imul(K,Y)|0,x=x+Math.imul(Ce,De)|0,r=(r=r+Math.imul(Ce,et)|0)+Math.imul(Be,De)|0,v=v+Math.imul(Be,et)|0;var _t=(I+(x=x+Math.imul(F,Nt)|0)|0)+((8191&(r=(r=r+Math.imul(F,Jt)|0)+Math.imul(U,Nt)|0))<<13)|0;I=((v=v+Math.imul(U,Jt)|0)+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,x=Math.imul(q,Ft),r=(r=Math.imul(q,Vt))+Math.imul($,Ft)|0,v=Math.imul($,Vt),x=x+Math.imul(he,jt)|0,r=(r=r+Math.imul(he,ei)|0)+Math.imul(Le,jt)|0,v=v+Math.imul(Le,ei)|0,x=x+Math.imul(vt,ai)|0,r=(r=r+Math.imul(vt,hi)|0)+Math.imul(Re,ai)|0,v=v+Math.imul(Re,hi)|0,x=x+Math.imul(we,Ee)|0,r=(r=r+Math.imul(we,Y)|0)+Math.imul(z,Ee)|0,v=v+Math.imul(z,Y)|0,x=x+Math.imul(Ie,De)|0,r=(r=r+Math.imul(Ie,et)|0)+Math.imul(K,De)|0,v=v+Math.imul(K,et)|0,x=x+Math.imul(Ce,Nt)|0,r=(r=r+Math.imul(Ce,Jt)|0)+Math.imul(Be,Nt)|0,v=v+Math.imul(Be,Jt)|0;var ve=(I+(x=x+Math.imul(F,Pe)|0)|0)+((8191&(r=(r=r+Math.imul(F,Fe)|0)+Math.imul(U,Pe)|0))<<13)|0;I=((v=v+Math.imul(U,Fe)|0)+(r>>>13)|0)+(ve>>>26)|0,ve&=67108863,x=Math.imul(xe,Ft),r=(r=Math.imul(xe,Vt))+Math.imul(Ue,Ft)|0,v=Math.imul(Ue,Vt),x=x+Math.imul(q,jt)|0,r=(r=r+Math.imul(q,ei)|0)+Math.imul($,jt)|0,v=v+Math.imul($,ei)|0,x=x+Math.imul(he,ai)|0,r=(r=r+Math.imul(he,hi)|0)+Math.imul(Le,ai)|0,v=v+Math.imul(Le,hi)|0,x=x+Math.imul(vt,Ee)|0,r=(r=r+Math.imul(vt,Y)|0)+Math.imul(Re,Ee)|0,v=v+Math.imul(Re,Y)|0,x=x+Math.imul(we,De)|0,r=(r=r+Math.imul(we,et)|0)+Math.imul(z,De)|0,v=v+Math.imul(z,et)|0,x=x+Math.imul(Ie,Nt)|0,r=(r=r+Math.imul(Ie,Jt)|0)+Math.imul(K,Nt)|0,v=v+Math.imul(K,Jt)|0,x=x+Math.imul(Ce,Pe)|0,r=(r=r+Math.imul(Ce,Fe)|0)+Math.imul(Be,Pe)|0,v=v+Math.imul(Be,Fe)|0;var qe=(I+(x=x+Math.imul(F,st)|0)|0)+((8191&(r=(r=r+Math.imul(F,At)|0)+Math.imul(U,st)|0))<<13)|0;I=((v=v+Math.imul(U,At)|0)+(r>>>13)|0)+(qe>>>26)|0,qe&=67108863,x=Math.imul(nt,Ft),r=(r=Math.imul(nt,Vt))+Math.imul(ft,Ft)|0,v=Math.imul(ft,Vt),x=x+Math.imul(xe,jt)|0,r=(r=r+Math.imul(xe,ei)|0)+Math.imul(Ue,jt)|0,v=v+Math.imul(Ue,ei)|0,x=x+Math.imul(q,ai)|0,r=(r=r+Math.imul(q,hi)|0)+Math.imul($,ai)|0,v=v+Math.imul($,hi)|0,x=x+Math.imul(he,Ee)|0,r=(r=r+Math.imul(he,Y)|0)+Math.imul(Le,Ee)|0,v=v+Math.imul(Le,Y)|0,x=x+Math.imul(vt,De)|0,r=(r=r+Math.imul(vt,et)|0)+Math.imul(Re,De)|0,v=v+Math.imul(Re,et)|0,x=x+Math.imul(we,Nt)|0,r=(r=r+Math.imul(we,Jt)|0)+Math.imul(z,Nt)|0,v=v+Math.imul(z,Jt)|0,x=x+Math.imul(Ie,Pe)|0,r=(r=r+Math.imul(Ie,Fe)|0)+Math.imul(K,Pe)|0,v=v+Math.imul(K,Fe)|0,x=x+Math.imul(Ce,st)|0,r=(r=r+Math.imul(Ce,At)|0)+Math.imul(Be,st)|0,v=v+Math.imul(Be,At)|0;var yt=(I+(x=x+Math.imul(F,Bt)|0)|0)+((8191&(r=(r=r+Math.imul(F,Rt)|0)+Math.imul(U,Bt)|0))<<13)|0;I=((v=v+Math.imul(U,Rt)|0)+(r>>>13)|0)+(yt>>>26)|0,yt&=67108863,x=Math.imul(rt,Ft),r=(r=Math.imul(rt,Vt))+Math.imul(Mt,Ft)|0,v=Math.imul(Mt,Vt),x=x+Math.imul(nt,jt)|0,r=(r=r+Math.imul(nt,ei)|0)+Math.imul(ft,jt)|0,v=v+Math.imul(ft,ei)|0,x=x+Math.imul(xe,ai)|0,r=(r=r+Math.imul(xe,hi)|0)+Math.imul(Ue,ai)|0,v=v+Math.imul(Ue,hi)|0,x=x+Math.imul(q,Ee)|0,r=(r=r+Math.imul(q,Y)|0)+Math.imul($,Ee)|0,v=v+Math.imul($,Y)|0,x=x+Math.imul(he,De)|0,r=(r=r+Math.imul(he,et)|0)+Math.imul(Le,De)|0,v=v+Math.imul(Le,et)|0,x=x+Math.imul(vt,Nt)|0,r=(r=r+Math.imul(vt,Jt)|0)+Math.imul(Re,Nt)|0,v=v+Math.imul(Re,Jt)|0,x=x+Math.imul(we,Pe)|0,r=(r=r+Math.imul(we,Fe)|0)+Math.imul(z,Pe)|0,v=v+Math.imul(z,Fe)|0,x=x+Math.imul(Ie,st)|0,r=(r=r+Math.imul(Ie,At)|0)+Math.imul(K,st)|0,v=v+Math.imul(K,At)|0,x=x+Math.imul(Ce,Bt)|0,r=(r=r+Math.imul(Ce,Rt)|0)+Math.imul(Be,Bt)|0,v=v+Math.imul(Be,Rt)|0;var fe=(I+(x=x+Math.imul(F,si)|0)|0)+((8191&(r=(r=r+Math.imul(F,ci)|0)+Math.imul(U,si)|0))<<13)|0;I=((v=v+Math.imul(U,ci)|0)+(r>>>13)|0)+(fe>>>26)|0,fe&=67108863,x=Math.imul(rt,jt),r=(r=Math.imul(rt,ei))+Math.imul(Mt,jt)|0,v=Math.imul(Mt,ei),x=x+Math.imul(nt,ai)|0,r=(r=r+Math.imul(nt,hi)|0)+Math.imul(ft,ai)|0,v=v+Math.imul(ft,hi)|0,x=x+Math.imul(xe,Ee)|0,r=(r=r+Math.imul(xe,Y)|0)+Math.imul(Ue,Ee)|0,v=v+Math.imul(Ue,Y)|0,x=x+Math.imul(q,De)|0,r=(r=r+Math.imul(q,et)|0)+Math.imul($,De)|0,v=v+Math.imul($,et)|0,x=x+Math.imul(he,Nt)|0,r=(r=r+Math.imul(he,Jt)|0)+Math.imul(Le,Nt)|0,v=v+Math.imul(Le,Jt)|0,x=x+Math.imul(vt,Pe)|0,r=(r=r+Math.imul(vt,Fe)|0)+Math.imul(Re,Pe)|0,v=v+Math.imul(Re,Fe)|0,x=x+Math.imul(we,st)|0,r=(r=r+Math.imul(we,At)|0)+Math.imul(z,st)|0,v=v+Math.imul(z,At)|0,x=x+Math.imul(Ie,Bt)|0,r=(r=r+Math.imul(Ie,Rt)|0)+Math.imul(K,Bt)|0,v=v+Math.imul(K,Rt)|0;var Je=(I+(x=x+Math.imul(Ce,si)|0)|0)+((8191&(r=(r=r+Math.imul(Ce,ci)|0)+Math.imul(Be,si)|0))<<13)|0;I=((v=v+Math.imul(Be,ci)|0)+(r>>>13)|0)+(Je>>>26)|0,Je&=67108863,x=Math.imul(rt,ai),r=(r=Math.imul(rt,hi))+Math.imul(Mt,ai)|0,v=Math.imul(Mt,hi),x=x+Math.imul(nt,Ee)|0,r=(r=r+Math.imul(nt,Y)|0)+Math.imul(ft,Ee)|0,v=v+Math.imul(ft,Y)|0,x=x+Math.imul(xe,De)|0,r=(r=r+Math.imul(xe,et)|0)+Math.imul(Ue,De)|0,v=v+Math.imul(Ue,et)|0,x=x+Math.imul(q,Nt)|0,r=(r=r+Math.imul(q,Jt)|0)+Math.imul($,Nt)|0,v=v+Math.imul($,Jt)|0,x=x+Math.imul(he,Pe)|0,r=(r=r+Math.imul(he,Fe)|0)+Math.imul(Le,Pe)|0,v=v+Math.imul(Le,Fe)|0,x=x+Math.imul(vt,st)|0,r=(r=r+Math.imul(vt,At)|0)+Math.imul(Re,st)|0,v=v+Math.imul(Re,At)|0,x=x+Math.imul(we,Bt)|0,r=(r=r+Math.imul(we,Rt)|0)+Math.imul(z,Bt)|0,v=v+Math.imul(z,Rt)|0;var St=(I+(x=x+Math.imul(Ie,si)|0)|0)+((8191&(r=(r=r+Math.imul(Ie,ci)|0)+Math.imul(K,si)|0))<<13)|0;I=((v=v+Math.imul(K,ci)|0)+(r>>>13)|0)+(St>>>26)|0,St&=67108863,x=Math.imul(rt,Ee),r=(r=Math.imul(rt,Y))+Math.imul(Mt,Ee)|0,v=Math.imul(Mt,Y),x=x+Math.imul(nt,De)|0,r=(r=r+Math.imul(nt,et)|0)+Math.imul(ft,De)|0,v=v+Math.imul(ft,et)|0,x=x+Math.imul(xe,Nt)|0,r=(r=r+Math.imul(xe,Jt)|0)+Math.imul(Ue,Nt)|0,v=v+Math.imul(Ue,Jt)|0,x=x+Math.imul(q,Pe)|0,r=(r=r+Math.imul(q,Fe)|0)+Math.imul($,Pe)|0,v=v+Math.imul($,Fe)|0,x=x+Math.imul(he,st)|0,r=(r=r+Math.imul(he,At)|0)+Math.imul(Le,st)|0,v=v+Math.imul(Le,At)|0,x=x+Math.imul(vt,Bt)|0,r=(r=r+Math.imul(vt,Rt)|0)+Math.imul(Re,Bt)|0,v=v+Math.imul(Re,Rt)|0;var Pt=(I+(x=x+Math.imul(we,si)|0)|0)+((8191&(r=(r=r+Math.imul(we,ci)|0)+Math.imul(z,si)|0))<<13)|0;I=((v=v+Math.imul(z,ci)|0)+(r>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,x=Math.imul(rt,De),r=(r=Math.imul(rt,et))+Math.imul(Mt,De)|0,v=Math.imul(Mt,et),x=x+Math.imul(nt,Nt)|0,r=(r=r+Math.imul(nt,Jt)|0)+Math.imul(ft,Nt)|0,v=v+Math.imul(ft,Jt)|0,x=x+Math.imul(xe,Pe)|0,r=(r=r+Math.imul(xe,Fe)|0)+Math.imul(Ue,Pe)|0,v=v+Math.imul(Ue,Fe)|0,x=x+Math.imul(q,st)|0,r=(r=r+Math.imul(q,At)|0)+Math.imul($,st)|0,v=v+Math.imul($,At)|0,x=x+Math.imul(he,Bt)|0,r=(r=r+Math.imul(he,Rt)|0)+Math.imul(Le,Bt)|0,v=v+Math.imul(Le,Rt)|0;var yi=(I+(x=x+Math.imul(vt,si)|0)|0)+((8191&(r=(r=r+Math.imul(vt,ci)|0)+Math.imul(Re,si)|0))<<13)|0;I=((v=v+Math.imul(Re,ci)|0)+(r>>>13)|0)+(yi>>>26)|0,yi&=67108863,x=Math.imul(rt,Nt),r=(r=Math.imul(rt,Jt))+Math.imul(Mt,Nt)|0,v=Math.imul(Mt,Jt),x=x+Math.imul(nt,Pe)|0,r=(r=r+Math.imul(nt,Fe)|0)+Math.imul(ft,Pe)|0,v=v+Math.imul(ft,Fe)|0,x=x+Math.imul(xe,st)|0,r=(r=r+Math.imul(xe,At)|0)+Math.imul(Ue,st)|0,v=v+Math.imul(Ue,At)|0,x=x+Math.imul(q,Bt)|0,r=(r=r+Math.imul(q,Rt)|0)+Math.imul($,Bt)|0,v=v+Math.imul($,Rt)|0;var Ni=(I+(x=x+Math.imul(he,si)|0)|0)+((8191&(r=(r=r+Math.imul(he,ci)|0)+Math.imul(Le,si)|0))<<13)|0;I=((v=v+Math.imul(Le,ci)|0)+(r>>>13)|0)+(Ni>>>26)|0,Ni&=67108863,x=Math.imul(rt,Pe),r=(r=Math.imul(rt,Fe))+Math.imul(Mt,Pe)|0,v=Math.imul(Mt,Fe),x=x+Math.imul(nt,st)|0,r=(r=r+Math.imul(nt,At)|0)+Math.imul(ft,st)|0,v=v+Math.imul(ft,At)|0,x=x+Math.imul(xe,Bt)|0,r=(r=r+Math.imul(xe,Rt)|0)+Math.imul(Ue,Bt)|0,v=v+Math.imul(Ue,Rt)|0;var Si=(I+(x=x+Math.imul(q,si)|0)|0)+((8191&(r=(r=r+Math.imul(q,ci)|0)+Math.imul($,si)|0))<<13)|0;I=((v=v+Math.imul($,ci)|0)+(r>>>13)|0)+(Si>>>26)|0,Si&=67108863,x=Math.imul(rt,st),r=(r=Math.imul(rt,At))+Math.imul(Mt,st)|0,v=Math.imul(Mt,At),x=x+Math.imul(nt,Bt)|0,r=(r=r+Math.imul(nt,Rt)|0)+Math.imul(ft,Bt)|0,v=v+Math.imul(ft,Rt)|0;var qi=(I+(x=x+Math.imul(xe,si)|0)|0)+((8191&(r=(r=r+Math.imul(xe,ci)|0)+Math.imul(Ue,si)|0))<<13)|0;I=((v=v+Math.imul(Ue,ci)|0)+(r>>>13)|0)+(qi>>>26)|0,qi&=67108863,x=Math.imul(rt,Bt),r=(r=Math.imul(rt,Rt))+Math.imul(Mt,Bt)|0,v=Math.imul(Mt,Rt);var ot=(I+(x=x+Math.imul(nt,si)|0)|0)+((8191&(r=(r=r+Math.imul(nt,ci)|0)+Math.imul(ft,si)|0))<<13)|0;I=((v=v+Math.imul(ft,ci)|0)+(r>>>13)|0)+(ot>>>26)|0,ot&=67108863;var Kt=(I+(x=Math.imul(rt,si))|0)+((8191&(r=(r=Math.imul(rt,ci))+Math.imul(Mt,si)|0))<<13)|0;return I=((v=Math.imul(Mt,ci))+(r>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,L[0]=sn,L[1]=Ui,L[2]=Di,L[3]=Xi,L[4]=Ke,L[5]=_t,L[6]=ve,L[7]=qe,L[8]=yt,L[9]=fe,L[10]=Je,L[11]=St,L[12]=Pt,L[13]=yi,L[14]=Ni,L[15]=Si,L[16]=qi,L[17]=ot,L[18]=Kt,0!==I&&(L[19]=I,p.length++),p};function j(b,i,a){return(new W).mulp(b,i,a)}function W(b,i){this.x=b,this.y=i}Math.imul||(w=P),o.prototype.mulTo=function(i,a){var p,u=this.length+i.length;return p=10===this.length&&10===i.length?w(this,i,a):u<63?P(this,i,a):u<1024?function Z(b,i,a){a.negative=i.negative^b.negative,a.length=b.length+i.length;for(var p=0,u=0,_=0;_<a.length-1;_++){var L=u;u=0;for(var I=67108863&p,x=Math.min(_,i.length-1),r=Math.max(0,_-b.length+1);r<=x;r++){var U=(0|b.words[_-r])*(0|i.words[r]),ye=67108863&U;I=67108863&(ye=ye+I|0),u+=(L=(L=L+(U/67108864|0)|0)+(ye>>>26)|0)>>>26,L&=67108863}a.words[_]=I,p=L,L=u}return 0!==p?a.words[_]=p:a.length--,a.strip()}(this,i,a):j(this,i,a),p},W.prototype.makeRBT=function(i){for(var a=new Array(i),p=o.prototype._countBits(i)-1,u=0;u<i;u++)a[u]=this.revBin(u,p,i);return a},W.prototype.revBin=function(i,a,p){if(0===i||i===p-1)return i;for(var u=0,_=0;_<a;_++)u|=(1&i)<<a-_-1,i>>=1;return u},W.prototype.permute=function(i,a,p,u,_,L){for(var I=0;I<L;I++)u[I]=a[i[I]],_[I]=p[i[I]]},W.prototype.transform=function(i,a,p,u,_,L){this.permute(L,i,a,p,u,_);for(var I=1;I<_;I<<=1)for(var x=I<<1,r=Math.cos(2*Math.PI/x),v=Math.sin(2*Math.PI/x),G=0;G<_;G+=x)for(var F=r,U=v,ye=0;ye<I;ye++){var Ce=p[G+ye],Be=u[G+ye],ze=p[G+ye+I],Ie=u[G+ye+I],K=F*ze-U*Ie;Ie=F*Ie+U*ze,p[G+ye]=Ce+(ze=K),u[G+ye]=Be+Ie,p[G+ye+I]=Ce-ze,u[G+ye+I]=Be-Ie,ye!==x&&(K=r*F-v*U,U=r*U+v*F,F=K)}},W.prototype.guessLen13b=function(i,a){var p=1|Math.max(a,i),u=1&p,_=0;for(p=p/2|0;p;p>>>=1)_++;return 1<<_+1+u},W.prototype.conjugate=function(i,a,p){if(!(p<=1))for(var u=0;u<p/2;u++){var _=i[u];i[u]=i[p-u-1],i[p-u-1]=_,_=a[u],a[u]=-a[p-u-1],a[p-u-1]=-_}},W.prototype.normalize13b=function(i,a){for(var p=0,u=0;u<a/2;u++){var _=8192*Math.round(i[2*u+1]/a)+Math.round(i[2*u]/a)+p;i[u]=67108863&_,p=_<67108864?0:_/67108864|0}return i},W.prototype.convert13b=function(i,a,p,u){for(var _=0,L=0;L<a;L++)p[2*L]=8191&(_+=0|i[L]),p[2*L+1]=8191&(_>>>=13),_>>>=13;for(L=2*a;L<u;++L)p[L]=0;y(0===_),y(0==(-8192&_))},W.prototype.stub=function(i){for(var a=new Array(i),p=0;p<i;p++)a[p]=0;return a},W.prototype.mulp=function(i,a,p){var u=2*this.guessLen13b(i.length,a.length),_=this.makeRBT(u),L=this.stub(u),I=new Array(u),x=new Array(u),r=new Array(u),v=new Array(u),G=new Array(u),F=new Array(u),U=p.words;U.length=u,this.convert13b(i.words,i.length,I,u),this.convert13b(a.words,a.length,v,u),this.transform(I,L,x,r,u,_),this.transform(v,L,G,F,u,_);for(var ye=0;ye<u;ye++){var Ce=x[ye]*G[ye]-r[ye]*F[ye];r[ye]=x[ye]*F[ye]+r[ye]*G[ye],x[ye]=Ce}return this.conjugate(x,r,u),this.transform(x,r,U,L,u,_),this.conjugate(U,L,u),this.normalize13b(U,u),p.negative=i.negative^a.negative,p.length=i.length+a.length,p.strip()},o.prototype.mul=function(i){var a=new o(null);return a.words=new Array(this.length+i.length),this.mulTo(i,a)},o.prototype.mulf=function(i){var a=new o(null);return a.words=new Array(this.length+i.length),j(this,i,a)},o.prototype.imul=function(i){return this.clone().mulTo(i,this)},o.prototype.imuln=function(i){y("number"==typeof i),y(i<67108864);for(var a=0,p=0;p<this.length;p++){var u=(0|this.words[p])*i,_=(67108863&u)+(67108863&a);a>>=26,a+=u/67108864|0,a+=_>>>26,this.words[p]=67108863&_}return 0!==a&&(this.words[p]=a,this.length++),this},o.prototype.muln=function(i){return this.clone().imuln(i)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(i){var a=function E(b){for(var i=new Array(b.bitLength()),a=0;a<i.length;a++){var u=a%26;i[a]=(b.words[a/26|0]&1<<u)>>>u}return i}(i);if(0===a.length)return new o(1);for(var p=this,u=0;u<a.length&&0===a[u];u++,p=p.sqr());if(++u<a.length)for(var _=p.sqr();u<a.length;u++,_=_.sqr())0!==a[u]&&(p=p.mul(_));return p},o.prototype.iushln=function(i){y("number"==typeof i&&i>=0);var _,a=i%26,p=(i-a)/26,u=67108863>>>26-a<<26-a;if(0!==a){var L=0;for(_=0;_<this.length;_++){var I=this.words[_]&u;this.words[_]=(0|this.words[_])-I<<a|L,L=I>>>26-a}L&&(this.words[_]=L,this.length++)}if(0!==p){for(_=this.length-1;_>=0;_--)this.words[_+p]=this.words[_];for(_=0;_<p;_++)this.words[_]=0;this.length+=p}return this.strip()},o.prototype.ishln=function(i){return y(0===this.negative),this.iushln(i)},o.prototype.iushrn=function(i,a,p){var u;y("number"==typeof i&&i>=0),u=a?(a-a%26)/26:0;var _=i%26,L=Math.min((i-_)/26,this.length),I=67108863^67108863>>>_<<_,x=p;if(u-=L,u=Math.max(0,u),x){for(var r=0;r<L;r++)x.words[r]=this.words[r];x.length=L}if(0!==L)if(this.length>L)for(this.length-=L,r=0;r<this.length;r++)this.words[r]=this.words[r+L];else this.words[0]=0,this.length=1;var v=0;for(r=this.length-1;r>=0&&(0!==v||r>=u);r--){var G=0|this.words[r];this.words[r]=v<<26-_|G>>>_,v=G&I}return x&&0!==v&&(x.words[x.length++]=v),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(i,a,p){return y(0===this.negative),this.iushrn(i,a,p)},o.prototype.shln=function(i){return this.clone().ishln(i)},o.prototype.ushln=function(i){return this.clone().iushln(i)},o.prototype.shrn=function(i){return this.clone().ishrn(i)},o.prototype.ushrn=function(i){return this.clone().iushrn(i)},o.prototype.testn=function(i){y("number"==typeof i&&i>=0);var a=i%26,p=(i-a)/26;return!(this.length<=p||!(this.words[p]&1<<a))},o.prototype.imaskn=function(i){y("number"==typeof i&&i>=0);var a=i%26,p=(i-a)/26;return y(0===this.negative,"imaskn works only with positive numbers"),this.length<=p?this:(0!==a&&p++,this.length=Math.min(p,this.length),0!==a&&(this.words[this.length-1]&=67108863^67108863>>>a<<a),this.strip())},o.prototype.maskn=function(i){return this.clone().imaskn(i)},o.prototype.iaddn=function(i){return y("number"==typeof i),y(i<67108864),i<0?this.isubn(-i):0!==this.negative?1===this.length&&(0|this.words[0])<i?(this.words[0]=i-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(i),this.negative=1,this):this._iaddn(i)},o.prototype._iaddn=function(i){this.words[0]+=i;for(var a=0;a<this.length&&this.words[a]>=67108864;a++)this.words[a]-=67108864,a===this.length-1?this.words[a+1]=1:this.words[a+1]++;return this.length=Math.max(this.length,a+1),this},o.prototype.isubn=function(i){if(y("number"==typeof i),y(i<67108864),i<0)return this.iaddn(-i);if(0!==this.negative)return this.negative=0,this.iaddn(i),this.negative=1,this;if(this.words[0]-=i,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var a=0;a<this.length&&this.words[a]<0;a++)this.words[a]+=67108864,this.words[a+1]-=1;return this.strip()},o.prototype.addn=function(i){return this.clone().iaddn(i)},o.prototype.subn=function(i){return this.clone().isubn(i)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(i,a,p){var _;this._expand(i.length+p);var L,I=0;for(_=0;_<i.length;_++){L=(0|this.words[_+p])+I;var x=(0|i.words[_])*a;I=((L-=67108863&x)>>26)-(x/67108864|0),this.words[_+p]=67108863&L}for(;_<this.length-p;_++)I=(L=(0|this.words[_+p])+I)>>26,this.words[_+p]=67108863&L;if(0===I)return this.strip();for(y(-1===I),I=0,_=0;_<this.length;_++)I=(L=-(0|this.words[_])+I)>>26,this.words[_]=67108863&L;return this.negative=1,this.strip()},o.prototype._wordDiv=function(i,a){var p,u=this.clone(),_=i,L=0|_.words[_.length-1];0!=(p=26-this._countBits(L))&&(_=_.ushln(p),u.iushln(p),L=0|_.words[_.length-1]);var r,x=u.length-_.length;if("mod"!==a){(r=new o(null)).length=x+1,r.words=new Array(r.length);for(var v=0;v<r.length;v++)r.words[v]=0}var G=u.clone()._ishlnsubmul(_,1,x);0===G.negative&&(u=G,r&&(r.words[x]=1));for(var F=x-1;F>=0;F--){var U=67108864*(0|u.words[_.length+F])+(0|u.words[_.length+F-1]);for(U=Math.min(U/L|0,67108863),u._ishlnsubmul(_,U,F);0!==u.negative;)U--,u.negative=0,u._ishlnsubmul(_,1,F),u.isZero()||(u.negative^=1);r&&(r.words[F]=U)}return r&&r.strip(),u.strip(),"div"!==a&&0!==p&&u.iushrn(p),{div:r||null,mod:u}},o.prototype.divmod=function(i,a,p){return y(!i.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===i.negative?(L=this.neg().divmod(i,a),"mod"!==a&&(u=L.div.neg()),"div"!==a&&(_=L.mod.neg(),p&&0!==_.negative&&_.iadd(i)),{div:u,mod:_}):0===this.negative&&0!==i.negative?(L=this.divmod(i.neg(),a),"mod"!==a&&(u=L.div.neg()),{div:u,mod:L.mod}):0!=(this.negative&i.negative)?(L=this.neg().divmod(i.neg(),a),"div"!==a&&(_=L.mod.neg(),p&&0!==_.negative&&_.isub(i)),{div:L.div,mod:_}):i.length>this.length||this.cmp(i)<0?{div:new o(0),mod:this}:1===i.length?"div"===a?{div:this.divn(i.words[0]),mod:null}:"mod"===a?{div:null,mod:new o(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new o(this.modn(i.words[0]))}:this._wordDiv(i,a);var u,_,L},o.prototype.div=function(i){return this.divmod(i,"div",!1).div},o.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},o.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},o.prototype.divRound=function(i){var a=this.divmod(i);if(a.mod.isZero())return a.div;var p=0!==a.div.negative?a.mod.isub(i):a.mod,u=i.ushrn(1),_=i.andln(1),L=p.cmp(u);return L<0||1===_&&0===L?a.div:0!==a.div.negative?a.div.isubn(1):a.div.iaddn(1)},o.prototype.modn=function(i){y(i<=67108863);for(var a=(1<<26)%i,p=0,u=this.length-1;u>=0;u--)p=(a*p+(0|this.words[u]))%i;return p},o.prototype.idivn=function(i){y(i<=67108863);for(var a=0,p=this.length-1;p>=0;p--){var u=(0|this.words[p])+67108864*a;this.words[p]=u/i|0,a=u%i}return this.strip()},o.prototype.divn=function(i){return this.clone().idivn(i)},o.prototype.egcd=function(i){y(0===i.negative),y(!i.isZero());var a=this,p=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var u=new o(1),_=new o(0),L=new o(0),I=new o(1),x=0;a.isEven()&&p.isEven();)a.iushrn(1),p.iushrn(1),++x;for(var r=p.clone(),v=a.clone();!a.isZero();){for(var G=0,F=1;0==(a.words[0]&F)&&G<26;++G,F<<=1);if(G>0)for(a.iushrn(G);G-- >0;)(u.isOdd()||_.isOdd())&&(u.iadd(r),_.isub(v)),u.iushrn(1),_.iushrn(1);for(var U=0,ye=1;0==(p.words[0]&ye)&&U<26;++U,ye<<=1);if(U>0)for(p.iushrn(U);U-- >0;)(L.isOdd()||I.isOdd())&&(L.iadd(r),I.isub(v)),L.iushrn(1),I.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(L),_.isub(I)):(p.isub(a),L.isub(u),I.isub(_))}return{a:L,b:I,gcd:p.iushln(x)}},o.prototype._invmp=function(i){y(0===i.negative),y(!i.isZero());var G,a=this,p=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var u=new o(1),_=new o(0),L=p.clone();a.cmpn(1)>0&&p.cmpn(1)>0;){for(var I=0,x=1;0==(a.words[0]&x)&&I<26;++I,x<<=1);if(I>0)for(a.iushrn(I);I-- >0;)u.isOdd()&&u.iadd(L),u.iushrn(1);for(var r=0,v=1;0==(p.words[0]&v)&&r<26;++r,v<<=1);if(r>0)for(p.iushrn(r);r-- >0;)_.isOdd()&&_.iadd(L),_.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(_)):(p.isub(a),_.isub(u))}return(G=0===a.cmpn(1)?u:_).cmpn(0)<0&&G.iadd(i),G},o.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var a=this.clone(),p=i.clone();a.negative=0,p.negative=0;for(var u=0;a.isEven()&&p.isEven();u++)a.iushrn(1),p.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;p.isEven();)p.iushrn(1);var _=a.cmp(p);if(_<0){var L=a;a=p,p=L}else if(0===_||0===p.cmpn(1))break;a.isub(p)}return p.iushln(u)},o.prototype.invm=function(i){return this.egcd(i).a.umod(i)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(i){return this.words[0]&i},o.prototype.bincn=function(i){y("number"==typeof i);var a=i%26,p=(i-a)/26,u=1<<a;if(this.length<=p)return this._expand(p+1),this.words[p]|=u,this;for(var _=u,L=p;0!==_&&L<this.length;L++){var I=0|this.words[L];_=(I+=_)>>>26,this.words[L]=I&=67108863}return 0!==_&&(this.words[L]=_,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(i){var p,a=i<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this.strip(),this.length>1)p=1;else{a&&(i=-i),y(i<=67108863,"Number is too big");var u=0|this.words[0];p=u===i?0:u<i?-1:1}return 0!==this.negative?0|-p:p},o.prototype.cmp=function(i){if(0!==this.negative&&0===i.negative)return-1;if(0===this.negative&&0!==i.negative)return 1;var a=this.ucmp(i);return 0!==this.negative?0|-a:a},o.prototype.ucmp=function(i){if(this.length>i.length)return 1;if(this.length<i.length)return-1;for(var a=0,p=this.length-1;p>=0;p--){var u=0|this.words[p],_=0|i.words[p];if(u!==_){u<_?a=-1:u>_&&(a=1);break}}return a},o.prototype.gtn=function(i){return 1===this.cmpn(i)},o.prototype.gt=function(i){return 1===this.cmp(i)},o.prototype.gten=function(i){return this.cmpn(i)>=0},o.prototype.gte=function(i){return this.cmp(i)>=0},o.prototype.ltn=function(i){return-1===this.cmpn(i)},o.prototype.lt=function(i){return-1===this.cmp(i)},o.prototype.lten=function(i){return this.cmpn(i)<=0},o.prototype.lte=function(i){return this.cmp(i)<=0},o.prototype.eqn=function(i){return 0===this.cmpn(i)},o.prototype.eq=function(i){return 0===this.cmp(i)},o.red=function(i){return new oe(i)},o.prototype.toRed=function(i){return y(!this.red,"Already a number in reduction context"),y(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},o.prototype.fromRed=function(){return y(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(i){return this.red=i,this},o.prototype.forceRed=function(i){return y(!this.red,"Already a number in reduction context"),this._forceRed(i)},o.prototype.redAdd=function(i){return y(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},o.prototype.redIAdd=function(i){return y(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},o.prototype.redSub=function(i){return y(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},o.prototype.redISub=function(i){return y(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},o.prototype.redShl=function(i){return y(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},o.prototype.redMul=function(i){return y(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},o.prototype.redIMul=function(i){return y(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},o.prototype.redSqr=function(){return y(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return y(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return y(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return y(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return y(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(i){return y(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var ie={k256:null,p224:null,p192:null,p25519:null};function ee(b,i){this.name=b,this.p=new o(i,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function _e(){ee.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function ce(){ee.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function re(){ee.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function de(){ee.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function oe(b){if("string"==typeof b){var i=o._prime(b);this.m=i.p,this.prime=i}else y(b.gtn(1),"modulus must be greater than 1"),this.m=b,this.prime=null}function ae(b){oe.call(this,b),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}ee.prototype._tmp=function(){var i=new o(null);return i.words=new Array(Math.ceil(this.n/13)),i},ee.prototype.ireduce=function(i){var p,a=i;do{this.split(a,this.tmp),p=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(p>this.n);var u=p<this.n?-1:a.ucmp(this.p);return 0===u?(a.words[0]=0,a.length=1):u>0?a.isub(this.p):void 0!==a.strip?a.strip():a._strip(),a},ee.prototype.split=function(i,a){i.iushrn(this.n,0,a)},ee.prototype.imulK=function(i){return i.imul(this.k)},C(_e,ee),_e.prototype.split=function(i,a){for(var p=4194303,u=Math.min(i.length,9),_=0;_<u;_++)a.words[_]=i.words[_];if(a.length=u,i.length<=9)return i.words[0]=0,void(i.length=1);var L=i.words[9];for(a.words[a.length++]=L&p,_=10;_<i.length;_++){var I=0|i.words[_];i.words[_-10]=(I&p)<<4|L>>>22,L=I}i.words[_-10]=L>>>=22,i.length-=0===L&&i.length>10?10:9},_e.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var a=0,p=0;p<i.length;p++){var u=0|i.words[p];i.words[p]=67108863&(a+=977*u),a=64*u+(a/67108864|0)}return 0===i.words[i.length-1]&&(i.length--,0===i.words[i.length-1]&&i.length--),i},C(ce,ee),C(re,ee),C(de,ee),de.prototype.imulK=function(i){for(var a=0,p=0;p<i.length;p++){var u=19*(0|i.words[p])+a,_=67108863&u;u>>>=26,i.words[p]=_,a=u}return 0!==a&&(i.words[i.length++]=a),i},o._prime=function(i){if(ie[i])return ie[i];var a;if("k256"===i)a=new _e;else if("p224"===i)a=new ce;else if("p192"===i)a=new re;else{if("p25519"!==i)throw new Error("Unknown prime "+i);a=new de}return ie[i]=a,a},oe.prototype._verify1=function(i){y(0===i.negative,"red works only with positives"),y(i.red,"red works only with red numbers")},oe.prototype._verify2=function(i,a){y(0==(i.negative|a.negative),"red works only with positives"),y(i.red&&i.red===a.red,"red works only with red numbers")},oe.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},oe.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},oe.prototype.add=function(i,a){this._verify2(i,a);var p=i.add(a);return p.cmp(this.m)>=0&&p.isub(this.m),p._forceRed(this)},oe.prototype.iadd=function(i,a){this._verify2(i,a);var p=i.iadd(a);return p.cmp(this.m)>=0&&p.isub(this.m),p},oe.prototype.sub=function(i,a){this._verify2(i,a);var p=i.sub(a);return p.cmpn(0)<0&&p.iadd(this.m),p._forceRed(this)},oe.prototype.isub=function(i,a){this._verify2(i,a);var p=i.isub(a);return p.cmpn(0)<0&&p.iadd(this.m),p},oe.prototype.shl=function(i,a){return this._verify1(i),this.imod(i.ushln(a))},oe.prototype.imul=function(i,a){return this._verify2(i,a),this.imod(i.imul(a))},oe.prototype.mul=function(i,a){return this._verify2(i,a),this.imod(i.mul(a))},oe.prototype.isqr=function(i){return this.imul(i,i.clone())},oe.prototype.sqr=function(i){return this.mul(i,i)},oe.prototype.sqrt=function(i){if(i.isZero())return i.clone();var a=this.m.andln(3);if(y(a%2==1),3===a){var p=this.m.add(new o(1)).iushrn(2);return this.pow(i,p)}for(var u=this.m.subn(1),_=0;!u.isZero()&&0===u.andln(1);)_++,u.iushrn(1);y(!u.isZero());var L=new o(1).toRed(this),I=L.redNeg(),x=this.m.subn(1).iushrn(1),r=this.m.bitLength();for(r=new o(2*r*r).toRed(this);0!==this.pow(r,x).cmp(I);)r.redIAdd(I);for(var v=this.pow(r,u),G=this.pow(i,u.addn(1).iushrn(1)),F=this.pow(i,u),U=_;0!==F.cmp(L);){for(var ye=F,Ce=0;0!==ye.cmp(L);Ce++)ye=ye.redSqr();y(Ce<U);var Be=this.pow(v,new o(1).iushln(U-Ce-1));G=G.redMul(Be),v=Be.redSqr(),F=F.redMul(v),U=Ce}return G},oe.prototype.invm=function(i){var a=i._invmp(this.m);return 0!==a.negative?(a.negative=0,this.imod(a).redNeg()):this.imod(a)},oe.prototype.pow=function(i,a){if(a.isZero())return new o(1).toRed(this);if(0===a.cmpn(1))return i.clone();var u=new Array(16);u[0]=new o(1).toRed(this),u[1]=i;for(var _=2;_<u.length;_++)u[_]=this.mul(u[_-1],i);var L=u[0],I=0,x=0,r=a.bitLength()%26;for(0===r&&(r=26),_=a.length-1;_>=0;_--){for(var v=a.words[_],G=r-1;G>=0;G--){var F=v>>G&1;L!==u[0]&&(L=this.sqr(L)),0!==F||0!==I?(I<<=1,I|=F,(4==++x||0===_&&0===G)&&(L=this.mul(L,u[I]),x=0,I=0)):x=0}r=26}return L},oe.prototype.convertTo=function(i){var a=i.umod(this.m);return a===i?a.clone():a},oe.prototype.convertFrom=function(i){var a=i.clone();return a.red=null,a},o.mont=function(i){return new ae(i)},C(ae,oe),ae.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},ae.prototype.convertFrom=function(i){var a=this.imod(i.mul(this.rinv));return a.red=null,a},ae.prototype.imul=function(i,a){if(i.isZero()||a.isZero())return i.words[0]=0,i.length=1,i;var p=i.imul(a),u=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=p.isub(u).iushrn(this.shift),L=_;return _.cmp(this.m)>=0?L=_.isub(this.m):_.cmpn(0)<0&&(L=_.iadd(this.m)),L._forceRed(this)},ae.prototype.mul=function(i,a){if(i.isZero()||a.isZero())return new o(0)._forceRed(this);var p=i.mul(a),u=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=p.isub(u).iushrn(this.shift),L=_;return _.cmp(this.m)>=0?L=_.isub(this.m):_.cmpn(0)<0&&(L=_.iadd(this.m)),L._forceRed(this)},ae.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(Ve=m.nmd(Ve),this)},2391:Ve=>{function Q(m,e){if(!m)throw new Error(e||"Assertion failed")}Ve.exports=Q,Q.equal=function(e,t,y){if(e!=t)throw new Error(y||"Assertion failed: "+e+" != "+t)}},8195:(Ve,Q)=>{"use strict";var m=Q;function t(C){return 1===C.length?"0"+C:C}function y(C){for(var o="",M=0;M<C.length;M++)o+=t(C[M].toString(16));return o}m.toArray=function e(C,o){if(Array.isArray(C))return C.slice();if(!C)return[];var M=[];if("string"!=typeof C){for(var l=0;l<C.length;l++)M[l]=0|C[l];return M}if("hex"===o)for((C=C.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(C="0"+C),l=0;l<C.length;l+=2)M.push(parseInt(C[l]+C[l+1],16));else for(l=0;l<C.length;l++){var N=C.charCodeAt(l),s=N>>8,D=255&N;s?M.push(s,D):M.push(D)}return M},m.zero2=t,m.toHex=y,m.encode=function(o,M){return"hex"===M?y(o):o}},644:(Ve,Q,m)=>{"use strict";m.d(Q,{op:()=>Ze,$V:()=>et,Xd:()=>Jt});var e=m(7579),t=m(4968),C=(m(6451),m(3601)),o=m(2722),N=(m(1884),m(9718),m(5e3)),s=m(9808);function D(ct){return getComputedStyle(ct)}function A(ct,Pe){for(var Fe in Pe){var at=Pe[Fe];"number"==typeof at&&(at+="px"),ct.style[Fe]=at}return ct}function O(ct){var Pe=document.createElement("div");return Pe.className=ct,Pe}var E="undefined"!=typeof Element&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function P(ct,Pe){if(!E)throw new Error("No element matching method supported");return E.call(ct,Pe)}function w(ct){ct.remove?ct.remove():ct.parentNode&&ct.parentNode.removeChild(ct)}function Z(ct,Pe){return Array.prototype.filter.call(ct.children,function(Fe){return P(Fe,Pe)})}var j_element_thumb=function(ct){return"ps__thumb-"+ct},j_element_rail=function(ct){return"ps__rail-"+ct},j_element_consuming="ps__child--consume",j_state_focus="ps--focus",j_state_clicking="ps--clicking",j_state_active=function(ct){return"ps--active-"+ct},j_state_scrolling=function(ct){return"ps--scrolling-"+ct},W={x:null,y:null};function ie(ct,Pe){var Fe=ct.element.classList,at=j_state_scrolling(Pe);Fe.contains(at)?clearTimeout(W[Pe]):Fe.add(at)}function ee(ct,Pe){W[Pe]=setTimeout(function(){return ct.isAlive&&ct.element.classList.remove(j_state_scrolling(Pe))},ct.settings.scrollingThreshold)}var ce=function(Pe){this.element=Pe,this.handlers={}},re={isEmpty:{configurable:!0}};ce.prototype.bind=function(Pe,Fe){void 0===this.handlers[Pe]&&(this.handlers[Pe]=[]),this.handlers[Pe].push(Fe),this.element.addEventListener(Pe,Fe,!1)},ce.prototype.unbind=function(Pe,Fe){var at=this;this.handlers[Pe]=this.handlers[Pe].filter(function(st){return!(!Fe||st===Fe)||(at.element.removeEventListener(Pe,st,!1),!1)})},ce.prototype.unbindAll=function(){for(var Pe in this.handlers)this.unbind(Pe)},re.isEmpty.get=function(){var ct=this;return Object.keys(this.handlers).every(function(Pe){return 0===ct.handlers[Pe].length})},Object.defineProperties(ce.prototype,re);var de=function(){this.eventElements=[]};function oe(ct){if("function"==typeof window.CustomEvent)return new CustomEvent(ct);var Pe=document.createEvent("CustomEvent");return Pe.initCustomEvent(ct,!1,!1,void 0),Pe}function ae(ct,Pe,Fe,at,st){var At;if(void 0===at&&(at=!0),void 0===st&&(st=!1),"top"===Pe)At=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==Pe)throw new Error("A proper axis should be provided");At=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function b(ct,Pe,Fe,at,st){var At=Fe[0],li=Fe[1],Bt=Fe[2],Rt=Fe[3],Li=Fe[4],si=Fe[5];void 0===at&&(at=!0),void 0===st&&(st=!1);var ci=ct.element;ct.reach[Rt]=null,ci[Bt]<1&&(ct.reach[Rt]="start"),ci[Bt]>ct[At]-ct[li]-1&&(ct.reach[Rt]="end"),Pe&&(ci.dispatchEvent(oe("ps-scroll-"+Rt)),Pe<0?ci.dispatchEvent(oe("ps-scroll-"+Li)):Pe>0&&ci.dispatchEvent(oe("ps-scroll-"+si)),at&&function _e(ct,Pe){ie(ct,Pe),ee(ct,Pe)}(ct,Rt)),ct.reach[Rt]&&(Pe||st)&&ci.dispatchEvent(oe("ps-"+Rt+"-reach-"+ct.reach[Rt]))}(ct,Fe,At,at,st)}function i(ct){return parseInt(ct,10)||0}de.prototype.eventElement=function(Pe){var Fe=this.eventElements.filter(function(at){return at.element===Pe})[0];return Fe||(Fe=new ce(Pe),this.eventElements.push(Fe)),Fe},de.prototype.bind=function(Pe,Fe,at){this.eventElement(Pe).bind(Fe,at)},de.prototype.unbind=function(Pe,Fe,at){var st=this.eventElement(Pe);st.unbind(Fe,at),st.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(st),1)},de.prototype.unbindAll=function(){this.eventElements.forEach(function(Pe){return Pe.unbindAll()}),this.eventElements=[]},de.prototype.once=function(Pe,Fe,at){var st=this.eventElement(Pe),At=function(li){st.unbind(Fe,At),at(li)};st.bind(Fe,At)};var u={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 _(ct){var Pe=ct.element,Fe=Math.floor(Pe.scrollTop),at=Pe.getBoundingClientRect();ct.containerWidth=Math.ceil(at.width),ct.containerHeight=Math.ceil(at.height),ct.contentWidth=Pe.scrollWidth,ct.contentHeight=Pe.scrollHeight,Pe.contains(ct.scrollbarXRail)||(Z(Pe,j_element_rail("x")).forEach(function(st){return w(st)}),Pe.appendChild(ct.scrollbarXRail)),Pe.contains(ct.scrollbarYRail)||(Z(Pe,j_element_rail("y")).forEach(function(st){return w(st)}),Pe.appendChild(ct.scrollbarYRail)),!ct.settings.suppressScrollX&&ct.containerWidth+ct.settings.scrollXMarginOffset<ct.contentWidth?(ct.scrollbarXActive=!0,ct.railXWidth=ct.containerWidth-ct.railXMarginWidth,ct.railXRatio=ct.containerWidth/ct.railXWidth,ct.scrollbarXWidth=L(ct,i(ct.railXWidth*ct.containerWidth/ct.contentWidth)),ct.scrollbarXLeft=i((ct.negativeScrollAdjustment+Pe.scrollLeft)*(ct.railXWidth-ct.scrollbarXWidth)/(ct.contentWidth-ct.containerWidth))):ct.scrollbarXActive=!1,!ct.settings.suppressScrollY&&ct.containerHeight+ct.settings.scrollYMarginOffset<ct.contentHeight?(ct.scrollbarYActive=!0,ct.railYHeight=ct.containerHeight-ct.railYMarginHeight,ct.railYRatio=ct.containerHeight/ct.railYHeight,ct.scrollbarYHeight=L(ct,i(ct.railYHeight*ct.containerHeight/ct.contentHeight)),ct.scrollbarYTop=i(Fe*(ct.railYHeight-ct.scrollbarYHeight)/(ct.contentHeight-ct.containerHeight))):ct.scrollbarYActive=!1,ct.scrollbarXLeft>=ct.railXWidth-ct.scrollbarXWidth&&(ct.scrollbarXLeft=ct.railXWidth-ct.scrollbarXWidth),ct.scrollbarYTop>=ct.railYHeight-ct.scrollbarYHeight&&(ct.scrollbarYTop=ct.railYHeight-ct.scrollbarYHeight),function I(ct,Pe){var Fe={width:Pe.railXWidth},at=Math.floor(ct.scrollTop);Fe.left=Pe.isRtl?Pe.negativeScrollAdjustment+ct.scrollLeft+Pe.containerWidth-Pe.contentWidth:ct.scrollLeft,Pe.isScrollbarXUsingBottom?Fe.bottom=Pe.scrollbarXBottom-at:Fe.top=Pe.scrollbarXTop+at,A(Pe.scrollbarXRail,Fe);var st={top:at,height:Pe.railYHeight};Pe.isScrollbarYUsingRight?st.right=Pe.isRtl?Pe.contentWidth-(Pe.negativeScrollAdjustment+ct.scrollLeft)-Pe.scrollbarYRight-Pe.scrollbarYOuterWidth-9:Pe.scrollbarYRight-ct.scrollLeft:st.left=Pe.isRtl?Pe.negativeScrollAdjustment+ct.scrollLeft+2*Pe.containerWidth-Pe.contentWidth-Pe.scrollbarYLeft-Pe.scrollbarYOuterWidth:Pe.scrollbarYLeft+ct.scrollLeft,A(Pe.scrollbarYRail,st),A(Pe.scrollbarX,{left:Pe.scrollbarXLeft,width:Pe.scrollbarXWidth-Pe.railBorderXWidth}),A(Pe.scrollbarY,{top:Pe.scrollbarYTop,height:Pe.scrollbarYHeight-Pe.railBorderYWidth})}(Pe,ct),ct.scrollbarXActive?Pe.classList.add(j_state_active("x")):(Pe.classList.remove(j_state_active("x")),ct.scrollbarXWidth=0,ct.scrollbarXLeft=0,Pe.scrollLeft=!0===ct.isRtl?ct.contentWidth:0),ct.scrollbarYActive?Pe.classList.add(j_state_active("y")):(Pe.classList.remove(j_state_active("y")),ct.scrollbarYHeight=0,ct.scrollbarYTop=0,Pe.scrollTop=0)}function L(ct,Pe){return ct.settings.minScrollbarLength&&(Pe=Math.max(Pe,ct.settings.minScrollbarLength)),ct.settings.maxScrollbarLength&&(Pe=Math.min(Pe,ct.settings.maxScrollbarLength)),Pe}function v(ct,Pe){var Fe=Pe[0],at=Pe[1],st=Pe[2],At=Pe[3],li=Pe[4],Bt=Pe[5],Rt=Pe[6],Li=Pe[7],si=Pe[8],ci=ct.element,sn=null,Ui=null,Di=null;function Xi(ve){ve.touches&&ve.touches[0]&&(ve[st]=ve.touches[0].pageY),ci[Rt]=sn+Di*(ve[st]-Ui),ie(ct,Li),_(ct),ve.stopPropagation(),ve.preventDefault()}function Ke(){ee(ct,Li),ct[si].classList.remove(j_state_clicking),ct.event.unbind(ct.ownerDocument,"mousemove",Xi)}function _t(ve,qe){sn=ci[Rt],qe&&ve.touches&&(ve[st]=ve.touches[0].pageY),Ui=ve[st],Di=(ct[at]-ct[Fe])/(ct[At]-ct[Bt]),qe?ct.event.bind(ct.ownerDocument,"touchmove",Xi):(ct.event.bind(ct.ownerDocument,"mousemove",Xi),ct.event.once(ct.ownerDocument,"mouseup",Ke),ve.preventDefault()),ct[si].classList.add(j_state_clicking),ve.stopPropagation()}ct.event.bind(ct[li],"mousedown",function(ve){_t(ve)}),ct.event.bind(ct[li],"touchstart",function(ve){_t(ve,!0)})}var Ce={"click-rail":function x(ct){ct.event.bind(ct.scrollbarY,"mousedown",function(Fe){return Fe.stopPropagation()}),ct.event.bind(ct.scrollbarYRail,"mousedown",function(Fe){var at=Fe.pageY-window.pageYOffset-ct.scrollbarYRail.getBoundingClientRect().top;ct.element.scrollTop+=(at>ct.scrollbarYTop?1:-1)*ct.containerHeight,_(ct),Fe.stopPropagation()}),ct.event.bind(ct.scrollbarX,"mousedown",function(Fe){return Fe.stopPropagation()}),ct.event.bind(ct.scrollbarXRail,"mousedown",function(Fe){var at=Fe.pageX-window.pageXOffset-ct.scrollbarXRail.getBoundingClientRect().left;ct.element.scrollLeft+=(at>ct.scrollbarXLeft?1:-1)*ct.containerWidth,_(ct),Fe.stopPropagation()})},"drag-thumb":function r(ct){v(ct,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),v(ct,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function G(ct){var Pe=ct.element;ct.event.bind(ct.ownerDocument,"keydown",function(At){if(!(At.isDefaultPrevented&&At.isDefaultPrevented()||At.defaultPrevented)&&(P(Pe,":hover")||P(ct.scrollbarX,":focus")||P(ct.scrollbarY,":focus"))){var li=document.activeElement?document.activeElement:ct.ownerDocument.activeElement;if(li){if("IFRAME"===li.tagName)li=li.contentDocument.activeElement;else for(;li.shadowRoot;)li=li.shadowRoot.activeElement;if(function a(ct){return P(ct,"input,[contenteditable]")||P(ct,"select,[contenteditable]")||P(ct,"textarea,[contenteditable]")||P(ct,"button,[contenteditable]")}(li))return}var Bt=0,Rt=0;switch(At.which){case 37:Bt=At.metaKey?-ct.contentWidth:At.altKey?-ct.containerWidth:-30;break;case 38:Rt=At.metaKey?ct.contentHeight:At.altKey?ct.containerHeight:30;break;case 39:Bt=At.metaKey?ct.contentWidth:At.altKey?ct.containerWidth:30;break;case 40:Rt=At.metaKey?-ct.contentHeight:At.altKey?-ct.containerHeight:-30;break;case 32:Rt=At.shiftKey?ct.containerHeight:-ct.containerHeight;break;case 33:Rt=ct.containerHeight;break;case 34:Rt=-ct.containerHeight;break;case 36:Rt=ct.contentHeight;break;case 35:Rt=-ct.contentHeight;break;default:return}ct.settings.suppressScrollX&&0!==Bt||ct.settings.suppressScrollY&&0!==Rt||(Pe.scrollTop-=Rt,Pe.scrollLeft+=Bt,_(ct),function st(At,li){var Bt=Math.floor(Pe.scrollTop);if(0===At){if(!ct.scrollbarYActive)return!1;if(0===Bt&&li>0||Bt>=ct.contentHeight-ct.containerHeight&&li<0)return!ct.settings.wheelPropagation}var Rt=Pe.scrollLeft;if(0===li){if(!ct.scrollbarXActive)return!1;if(0===Rt&&At<0||Rt>=ct.contentWidth-ct.containerWidth&&At>0)return!ct.settings.wheelPropagation}return!0}(Bt,Rt)&&At.preventDefault())}})},wheel:function F(ct){var Pe=ct.element;function At(li){var Bt=function at(li){var Bt=li.deltaX,Rt=-1*li.deltaY;return(void 0===Bt||void 0===Rt)&&(Bt=-1*li.wheelDeltaX/6,Rt=li.wheelDeltaY/6),li.deltaMode&&1===li.deltaMode&&(Bt*=10,Rt*=10),Bt!=Bt&&Rt!=Rt&&(Bt=0,Rt=li.wheelDelta),li.shiftKey?[-Rt,-Bt]:[Bt,Rt]}(li),Rt=Bt[0],Li=Bt[1];if(!function st(li,Bt,Rt){if(!u.isWebKit&&Pe.querySelector("select:focus"))return!0;if(!Pe.contains(li))return!1;for(var Li=li;Li&&Li!==Pe;){if(Li.classList.contains(j_element_consuming))return!0;var si=D(Li);if(Rt&&si.overflowY.match(/(scroll|auto)/)){var ci=Li.scrollHeight-Li.clientHeight;if(ci>0&&(Li.scrollTop>0&&Rt<0||Li.scrollTop<ci&&Rt>0))return!0}if(Bt&&si.overflowX.match(/(scroll|auto)/)){var sn=Li.scrollWidth-Li.clientWidth;if(sn>0&&(Li.scrollLeft>0&&Bt<0||Li.scrollLeft<sn&&Bt>0))return!0}Li=Li.parentNode}return!1}(li.target,Rt,Li)){var si=!1;ct.settings.useBothWheelAxes?ct.scrollbarYActive&&!ct.scrollbarXActive?(Li?Pe.scrollTop-=Li*ct.settings.wheelSpeed:Pe.scrollTop+=Rt*ct.settings.wheelSpeed,si=!0):ct.scrollbarXActive&&!ct.scrollbarYActive&&(Rt?Pe.scrollLeft+=Rt*ct.settings.wheelSpeed:Pe.scrollLeft-=Li*ct.settings.wheelSpeed,si=!0):(Pe.scrollTop-=Li*ct.settings.wheelSpeed,Pe.scrollLeft+=Rt*ct.settings.wheelSpeed),_(ct),si=si||function Fe(li,Bt){var Rt=Math.floor(Pe.scrollTop),Li=0===Pe.scrollTop,si=Rt+Pe.offsetHeight===Pe.scrollHeight,ci=0===Pe.scrollLeft,sn=Pe.scrollLeft+Pe.offsetWidth===Pe.scrollWidth;return!(Math.abs(Bt)>Math.abs(li)?Li||si:ci||sn)||!ct.settings.wheelPropagation}(Rt,Li),si&&!li.ctrlKey&&(li.stopPropagation(),li.preventDefault())}}void 0!==window.onwheel?ct.event.bind(Pe,"wheel",At):void 0!==window.onmousewheel&&ct.event.bind(Pe,"mousewheel",At)},touch:function U(ct){if(u.supportsTouch||u.supportsIePointer){var Pe=ct.element,st={},At=0,li={},Bt=null;u.supportsTouch?(ct.event.bind(Pe,"touchstart",si),ct.event.bind(Pe,"touchmove",sn),ct.event.bind(Pe,"touchend",Ui)):u.supportsIePointer&&(window.PointerEvent?(ct.event.bind(Pe,"pointerdown",si),ct.event.bind(Pe,"pointermove",sn),ct.event.bind(Pe,"pointerup",Ui)):window.MSPointerEvent&&(ct.event.bind(Pe,"MSPointerDown",si),ct.event.bind(Pe,"MSPointerMove",sn),ct.event.bind(Pe,"MSPointerUp",Ui)))}function at(Di,Xi){Pe.scrollTop-=Xi,Pe.scrollLeft-=Di,_(ct)}function Rt(Di){return Di.targetTouches?Di.targetTouches[0]:Di}function Li(Di){return!(Di.pointerType&&"pen"===Di.pointerType&&0===Di.buttons||!(Di.targetTouches&&1===Di.targetTouches.length||Di.pointerType&&"mouse"!==Di.pointerType&&Di.pointerType!==Di.MSPOINTER_TYPE_MOUSE))}function si(Di){if(Li(Di)){var Xi=Rt(Di);st.pageX=Xi.pageX,st.pageY=Xi.pageY,At=(new Date).getTime(),null!==Bt&&clearInterval(Bt)}}function sn(Di){if(Li(Di)){var Xi=Rt(Di),Ke={pageX:Xi.pageX,pageY:Xi.pageY},_t=Ke.pageX-st.pageX,ve=Ke.pageY-st.pageY;if(function ci(Di,Xi,Ke){if(!Pe.contains(Di))return!1;for(var _t=Di;_t&&_t!==Pe;){if(_t.classList.contains(j_element_consuming))return!0;var ve=D(_t);if(Ke&&ve.overflowY.match(/(scroll|auto)/)){var qe=_t.scrollHeight-_t.clientHeight;if(qe>0&&(_t.scrollTop>0&&Ke<0||_t.scrollTop<qe&&Ke>0))return!0}if(Xi&&ve.overflowX.match(/(scroll|auto)/)){var yt=_t.scrollWidth-_t.clientWidth;if(yt>0&&(_t.scrollLeft>0&&Xi<0||_t.scrollLeft<yt&&Xi>0))return!0}_t=_t.parentNode}return!1}(Di.target,_t,ve))return;at(_t,ve),st=Ke;var qe=(new Date).getTime(),yt=qe-At;yt>0&&(li.x=_t/yt,li.y=ve/yt,At=qe),function Fe(Di,Xi){var Ke=Math.floor(Pe.scrollTop),_t=Pe.scrollLeft,ve=Math.abs(Di),qe=Math.abs(Xi);if(qe>ve){if(Xi<0&&Ke===ct.contentHeight-ct.containerHeight||Xi>0&&0===Ke)return 0===window.scrollY&&Xi>0&&u.isChrome}else if(ve>qe&&(Di<0&&_t===ct.contentWidth-ct.containerWidth||Di>0&&0===_t))return!0;return!0}(_t,ve)&&Di.preventDefault()}}function Ui(){ct.settings.swipeEasing&&(clearInterval(Bt),Bt=setInterval(function(){ct.isInitialized?clearInterval(Bt):li.x||li.y?Math.abs(li.x)<.01&&Math.abs(li.y)<.01?clearInterval(Bt):(at(30*li.x,30*li.y),li.x*=.8,li.y*=.8):clearInterval(Bt)},10))}}},Be=function(Pe,Fe){var at=this;if(void 0===Fe&&(Fe={}),"string"==typeof Pe&&(Pe=document.querySelector(Pe)),!Pe||!Pe.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var st in this.element=Pe,Pe.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},Fe)this.settings[st]=Fe[st];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var si,Li,At=function(){return Pe.classList.add(j_state_focus)},li=function(){return Pe.classList.remove(j_state_focus)};this.isRtl="rtl"===D(Pe).direction,!0===this.isRtl&&Pe.classList.add("ps__rtl"),this.isNegativeScroll=(Li=Pe.scrollLeft,Pe.scrollLeft=-1,si=Pe.scrollLeft<0,Pe.scrollLeft=Li,si),this.negativeScrollAdjustment=this.isNegativeScroll?Pe.scrollWidth-Pe.clientWidth:0,this.event=new de,this.ownerDocument=Pe.ownerDocument||document,this.scrollbarXRail=O(j_element_rail("x")),Pe.appendChild(this.scrollbarXRail),this.scrollbarX=O(j_element_thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",At),this.event.bind(this.scrollbarX,"blur",li),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var Bt=D(this.scrollbarXRail);this.scrollbarXBottom=parseInt(Bt.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=i(Bt.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=i(Bt.borderLeftWidth)+i(Bt.borderRightWidth),A(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=i(Bt.marginLeft)+i(Bt.marginRight),A(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=O(j_element_rail("y")),Pe.appendChild(this.scrollbarYRail),this.scrollbarY=O(j_element_thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",At),this.event.bind(this.scrollbarY,"blur",li),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var Rt=D(this.scrollbarYRail);this.scrollbarYRight=parseInt(Rt.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=i(Rt.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function p(ct){var Pe=D(ct);return i(Pe.width)+i(Pe.paddingLeft)+i(Pe.paddingRight)+i(Pe.borderLeftWidth)+i(Pe.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=i(Rt.borderTopWidth)+i(Rt.borderBottomWidth),A(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=i(Rt.marginTop)+i(Rt.marginBottom),A(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:Pe.scrollLeft<=0?"start":Pe.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:Pe.scrollTop<=0?"start":Pe.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(Li){return Ce[Li](at)}),this.lastScrollTop=Math.floor(Pe.scrollTop),this.lastScrollLeft=Pe.scrollLeft,this.event.bind(this.element,"scroll",function(Li){return at.onScroll(Li)}),_(this)};Be.prototype.update=function(){!this.isAlive||(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,A(this.scrollbarXRail,{display:"block"}),A(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=i(D(this.scrollbarXRail).marginLeft)+i(D(this.scrollbarXRail).marginRight),this.railYMarginHeight=i(D(this.scrollbarYRail).marginTop)+i(D(this.scrollbarYRail).marginBottom),A(this.scrollbarXRail,{display:"none"}),A(this.scrollbarYRail,{display:"none"}),_(this),ae(this,"top",0,!1,!0),ae(this,"left",0,!1,!0),A(this.scrollbarXRail,{display:""}),A(this.scrollbarYRail,{display:""}))},Be.prototype.onScroll=function(Pe){!this.isAlive||(_(this),ae(this,"top",this.element.scrollTop-this.lastScrollTop),ae(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},Be.prototype.destroy=function(){!this.isAlive||(this.event.unbindAll(),w(this.scrollbarX),w(this.scrollbarY),w(this.scrollbarXRail),w(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},Be.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(Pe){return!Pe.match(/^ps([-_].+|)$/)}).join(" ")};const ze=Be;var Ie=function(){if("undefined"!=typeof Map)return Map;function ct(Pe,Fe){var at=-1;return Pe.some(function(st,At){return st[0]===Fe&&(at=At,!0)}),at}return function(){function Pe(){this.__entries__=[]}return Object.defineProperty(Pe.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),Pe.prototype.get=function(Fe){var at=ct(this.__entries__,Fe),st=this.__entries__[at];return st&&st[1]},Pe.prototype.set=function(Fe,at){var st=ct(this.__entries__,Fe);~st?this.__entries__[st][1]=at:this.__entries__.push([Fe,at])},Pe.prototype.delete=function(Fe){var at=this.__entries__,st=ct(at,Fe);~st&&at.splice(st,1)},Pe.prototype.has=function(Fe){return!!~ct(this.__entries__,Fe)},Pe.prototype.clear=function(){this.__entries__.splice(0)},Pe.prototype.forEach=function(Fe,at){void 0===at&&(at=null);for(var st=0,At=this.__entries__;st<At.length;st++){var li=At[st];Fe.call(at,li[1],li[0])}},Pe}()}(),K="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,Me="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),we="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(Me):function(ct){return setTimeout(function(){return ct(Date.now())},1e3/60)},Re=["top","right","bottom","left","width","height","size","weight"],Ne="undefined"!=typeof MutationObserver,he=function(){function ct(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function Ge(ct,Pe){var Fe=!1,at=!1,st=0;function At(){Fe&&(Fe=!1,ct()),at&&Bt()}function li(){we(At)}function Bt(){var Rt=Date.now();if(Fe){if(Rt-st<2)return;at=!0}else Fe=!0,at=!1,setTimeout(li,Pe);st=Rt}return Bt}(this.refresh.bind(this),20)}return ct.prototype.addObserver=function(Pe){~this.observers_.indexOf(Pe)||this.observers_.push(Pe),this.connected_||this.connect_()},ct.prototype.removeObserver=function(Pe){var Fe=this.observers_,at=Fe.indexOf(Pe);~at&&Fe.splice(at,1),!Fe.length&&this.connected_&&this.disconnect_()},ct.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},ct.prototype.updateObservers_=function(){var Pe=this.observers_.filter(function(Fe){return Fe.gatherActive(),Fe.hasActive()});return Pe.forEach(function(Fe){return Fe.broadcastActive()}),Pe.length>0},ct.prototype.connect_=function(){!K||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Ne?(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)},ct.prototype.disconnect_=function(){!K||!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)},ct.prototype.onTransitionEnd_=function(Pe){var Fe=Pe.propertyName,at=void 0===Fe?"":Fe;Re.some(function(At){return!!~at.indexOf(At)})&&this.refresh()},ct.getInstance=function(){return this.instance_||(this.instance_=new ct),this.instance_},ct.instance_=null,ct}(),Le=function(ct,Pe){for(var Fe=0,at=Object.keys(Pe);Fe<at.length;Fe++){var st=at[Fe];Object.defineProperty(ct,st,{value:Pe[st],enumerable:!1,writable:!1,configurable:!0})}return ct},ke=function(ct){return ct&&ct.ownerDocument&&ct.ownerDocument.defaultView||Me},q=Mt(0,0,0,0);function $(ct){return parseFloat(ct)||0}function le(ct){for(var Pe=[],Fe=1;Fe<arguments.length;Fe++)Pe[Fe-1]=arguments[Fe];return Pe.reduce(function(at,st){return at+$(ct["border-"+st+"-width"])},0)}var nt="undefined"!=typeof SVGGraphicsElement?function(ct){return ct instanceof ke(ct).SVGGraphicsElement}:function(ct){return ct instanceof ke(ct).SVGElement&&"function"==typeof ct.getBBox};function it(ct){return K?nt(ct)?function Ue(ct){var Pe=ct.getBBox();return Mt(0,0,Pe.width,Pe.height)}(ct):function lt(ct){var Pe=ct.clientWidth,Fe=ct.clientHeight;if(!Pe&&!Fe)return q;var at=ke(ct).getComputedStyle(ct),st=function xe(ct){for(var Fe={},at=0,st=["top","right","bottom","left"];at<st.length;at++){var At=st[at];Fe[At]=$(ct["padding-"+At])}return Fe}(at),At=st.left+st.right,li=st.top+st.bottom,Bt=$(at.width),Rt=$(at.height);if("border-box"===at.boxSizing&&(Math.round(Bt+At)!==Pe&&(Bt-=le(at,"left","right")+At),Math.round(Rt+li)!==Fe&&(Rt-=le(at,"top","bottom")+li)),!function ft(ct){return ct===ke(ct).document.documentElement}(ct)){var Li=Math.round(Bt+At)-Pe,si=Math.round(Rt+li)-Fe;1!==Math.abs(Li)&&(Bt-=Li),1!==Math.abs(si)&&(Rt-=si)}return Mt(st.left,st.top,Bt,Rt)}(ct):q}function Mt(ct,Pe,Fe,at){return{x:ct,y:Pe,width:Fe,height:at}}var Zt=function(){function ct(Pe){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Mt(0,0,0,0),this.target=Pe}return ct.prototype.isActive=function(){var Pe=it(this.target);return this.contentRect_=Pe,Pe.width!==this.broadcastWidth||Pe.height!==this.broadcastHeight},ct.prototype.broadcastRect=function(){var Pe=this.contentRect_;return this.broadcastWidth=Pe.width,this.broadcastHeight=Pe.height,Pe},ct}(),Ft=function ct(Pe,Fe){var at=function rt(ct){var Pe=ct.x,Fe=ct.y,at=ct.width,st=ct.height,At="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,li=Object.create(At.prototype);return Le(li,{x:Pe,y:Fe,width:at,height:st,top:Fe,right:Pe+at,bottom:st+Fe,left:Pe}),li}(Fe);Le(this,{target:Pe,contentRect:at})},Vt=function(){function ct(Pe,Fe,at){if(this.activeObservations_=[],this.observations_=new Ie,"function"!=typeof Pe)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=Pe,this.controller_=Fe,this.callbackCtx_=at}return ct.prototype.observe=function(Pe){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(Pe instanceof ke(Pe).Element))throw new TypeError('parameter 1 is not of type "Element".');var Fe=this.observations_;Fe.has(Pe)||(Fe.set(Pe,new Zt(Pe)),this.controller_.addObserver(this),this.controller_.refresh())}},ct.prototype.unobserve=function(Pe){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(Pe instanceof ke(Pe).Element))throw new TypeError('parameter 1 is not of type "Element".');var Fe=this.observations_;!Fe.has(Pe)||(Fe.delete(Pe),Fe.size||this.controller_.removeObserver(this))}},ct.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},ct.prototype.gatherActive=function(){var Pe=this;this.clearActive(),this.observations_.forEach(function(Fe){Fe.isActive()&&Pe.activeObservations_.push(Fe)})},ct.prototype.broadcastActive=function(){if(this.hasActive()){var Pe=this.callbackCtx_,Fe=this.activeObservations_.map(function(at){return new Ft(at.target,at.broadcastRect())});this.callback_.call(Pe,Fe,Pe),this.clearActive()}},ct.prototype.clearActive=function(){this.activeObservations_.splice(0)},ct.prototype.hasActive=function(){return this.activeObservations_.length>0},ct}(),Ii="undefined"!=typeof WeakMap?new WeakMap:new Ie,jt=function ct(Pe){if(!(this instanceof ct))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var Fe=he.getInstance(),at=new Vt(Pe,Fe,this);Ii.set(this,at)};["observe","unobserve","disconnect"].forEach(function(ct){jt.prototype[ct]=function(){var Pe;return(Pe=Ii.get(this))[ct].apply(Pe,arguments)}});const Pi=void 0!==Me.ResizeObserver?Me.ResizeObserver:jt,Ze=new N.OlP("PERFECT_SCROLLBAR_CONFIG");class Ee{constructor(Pe,Fe,at,st){this.x=Pe,this.y=Fe,this.w=at,this.h=st}}class Y{constructor(Pe,Fe){this.x=Pe,this.y=Fe}}const me=["psScrollY","psScrollX","psScrollUp","psScrollDown","psScrollLeft","psScrollRight","psYReachEnd","psYReachStart","psXReachEnd","psXReachStart"];class De{constructor(Pe={}){this.assign(Pe)}assign(Pe={}){for(const Fe in Pe)this[Fe]=Pe[Fe]}}let et=(()=>{class ct{constructor(Fe,at,st,At,li){this.zone=Fe,this.differs=at,this.elementRef=st,this.platformId=At,this.defaults=li,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 N.vpe,this.psScrollX=new N.vpe,this.psScrollUp=new N.vpe,this.psScrollDown=new N.vpe,this.psScrollLeft=new N.vpe,this.psScrollRight=new N.vpe,this.psYReachEnd=new N.vpe,this.psYReachStart=new N.vpe,this.psXReachEnd=new N.vpe,this.psXReachStart=new N.vpe}ngOnInit(){if(!this.disabled&&(0,s.NF)(this.platformId)){const Fe=new De(this.defaults);Fe.assign(this.config),this.zone.runOutsideAngular(()=>{this.instance=new ze(this.elementRef.nativeElement,Fe)}),this.configDiff||(this.configDiff=this.differs.find(this.config||{}).create(),this.configDiff.diff(this.config||{})),this.zone.runOutsideAngular(()=>{this.ro=new Pi(()=>{this.update()}),this.elementRef.nativeElement.children[0]&&this.ro.observe(this.elementRef.nativeElement.children[0]),this.ro.observe(this.elementRef.nativeElement)}),this.zone.runOutsideAngular(()=>{me.forEach(at=>{const st=at.replace(/([A-Z])/g,At=>`-${At.toLowerCase()}`);(0,t.R)(this.elementRef.nativeElement,st).pipe((0,C.e)(20),(0,o.R)(this.ngDestroy)).subscribe(At=>{this[at].emit(At)})})})}}ngOnDestroy(){(0,s.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,s.NF)(this.platformId)&&this.configDiff.diff(this.config||{})&&(this.ngOnDestroy(),this.ngOnInit())}ngOnChanges(Fe){Fe.disabled&&!Fe.disabled.isFirstChange()&&(0,s.NF)(this.platformId)&&Fe.disabled.currentValue!==Fe.disabled.previousValue&&(!0===Fe.disabled.currentValue?this.ngOnDestroy():!1===Fe.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(Fe){}},0))}geometry(Fe="scroll"){return new Ee(this.elementRef.nativeElement[Fe+"Left"],this.elementRef.nativeElement[Fe+"Top"],this.elementRef.nativeElement[Fe+"Width"],this.elementRef.nativeElement[Fe+"Height"])}position(Fe=!1){return!Fe&&this.instance?new Y(this.instance.reach.x||0,this.instance.reach.y||0):new Y(this.elementRef.nativeElement.scrollLeft,this.elementRef.nativeElement.scrollTop)}scrollable(Fe="any"){const at=this.elementRef.nativeElement;return"any"===Fe?at.classList.contains("ps--active-x")||at.classList.contains("ps--active-y"):"both"===Fe?at.classList.contains("ps--active-x")&&at.classList.contains("ps--active-y"):at.classList.contains("ps--active-"+Fe)}scrollTo(Fe,at,st){this.disabled||(null==at&&null==st?this.animateScrolling("scrollTop",Fe,st):(null!=Fe&&this.animateScrolling("scrollLeft",Fe,st),null!=at&&this.animateScrolling("scrollTop",at,st)))}scrollToX(Fe,at){this.animateScrolling("scrollLeft",Fe,at)}scrollToY(Fe,at){this.animateScrolling("scrollTop",Fe,at)}scrollToTop(Fe,at){this.animateScrolling("scrollTop",Fe||0,at)}scrollToLeft(Fe,at){this.animateScrolling("scrollLeft",Fe||0,at)}scrollToRight(Fe,at){this.animateScrolling("scrollLeft",this.elementRef.nativeElement.scrollWidth-this.elementRef.nativeElement.clientWidth-(Fe||0),at)}scrollToBottom(Fe,at){this.animateScrolling("scrollTop",this.elementRef.nativeElement.scrollHeight-this.elementRef.nativeElement.clientHeight-(Fe||0),at)}scrollToElement(Fe,at,st){if("string"==typeof Fe&&(Fe=this.elementRef.nativeElement.querySelector(Fe)),Fe){const At=Fe.getBoundingClientRect(),li=this.elementRef.nativeElement.getBoundingClientRect();this.elementRef.nativeElement.classList.contains("ps--active-x")&&this.animateScrolling("scrollLeft",At.left-li.left+this.elementRef.nativeElement.scrollLeft+(at||0),st),this.elementRef.nativeElement.classList.contains("ps--active-y")&&this.animateScrolling("scrollTop",At.top-li.top+this.elementRef.nativeElement.scrollTop+(at||0),st)}}animateScrolling(Fe,at,st){if(this.animation&&(window.cancelAnimationFrame(this.animation),this.animation=null),st&&"undefined"!=typeof window){if(at!==this.elementRef.nativeElement[Fe]){let At=0,li=0,Bt=performance.now(),Rt=this.elementRef.nativeElement[Fe];const Li=(Rt-at)/2,si=ci=>{li+=Math.PI/(st/(ci-Bt)),At=Math.round(at+Li+Li*Math.cos(li)),this.elementRef.nativeElement[Fe]===Rt&&(li>=Math.PI?this.animateScrolling(Fe,at,0):(this.elementRef.nativeElement[Fe]=At,Rt=this.elementRef.nativeElement[Fe],Bt=ci,this.animation=window.requestAnimationFrame(si)))};window.requestAnimationFrame(si)}}else this.elementRef.nativeElement[Fe]=at}}return ct.\u0275fac=function(Fe){return new(Fe||ct)(N.Y36(N.R0b),N.Y36(N.aQg),N.Y36(N.SBq),N.Y36(N.Lbi),N.Y36(Ze,8))},ct.\u0275dir=N.lG2({type:ct,selectors:[["","perfectScrollbar",""]],inputs:{disabled:"disabled",config:["perfectScrollbar","config"]},outputs:{psScrollY:"psScrollY",psScrollX:"psScrollX",psScrollUp:"psScrollUp",psScrollDown:"psScrollDown",psScrollLeft:"psScrollLeft",psScrollRight:"psScrollRight",psYReachEnd:"psYReachEnd",psYReachStart:"psYReachStart",psXReachEnd:"psXReachEnd",psXReachStart:"psXReachStart"},exportAs:["ngxPerfectScrollbar"],features:[N.TTD]}),ct})(),Jt=(()=>{class ct{}return ct.\u0275fac=function(Fe){return new(Fe||ct)},ct.\u0275mod=N.oAB({type:ct}),ct.\u0275inj=N.cJS({imports:[[s.ez],s.ez]}),ct})()},5768:(Ve,Q,m)=>{"use strict";Object.defineProperty(Q,"__esModule",{value:!0});var e=m(842);Object.keys(e).forEach(function(t){"default"!==t&&Object.defineProperty(Q,t,{enumerable:!0,get:function(){return e[t]}})})},2999:(Ve,Q,m)=>{"use strict";var e=m(7977);Q.certificate=m(2390);var t=e.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});Q.RSAPrivateKey=t;var y=e.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});Q.RSAPublicKey=y;var C=e.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(o),this.key("subjectPublicKey").bitstr())});Q.PublicKey=C;var o=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())}),M=e.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(o),this.key("subjectPrivateKey").octstr())});Q.PrivateKey=M;var l=e.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});Q.EncryptedPrivateKey=l;var N=e.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});Q.DSAPrivateKey=N,Q.DSAparam=e.define("DSAparam",function(){this.int()});var s=e.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(D),this.key("publicKey").optional().explicit(1).bitstr())});Q.ECPrivateKey=s;var D=e.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});Q.signature=e.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},2390:(Ve,Q,m)=>{"use strict";var e=m(7977),t=e.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),y=e.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),C=e.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),o=e.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(C),this.key("subjectPublicKey").bitstr())}),M=e.define("RelativeDistinguishedName",function(){this.setof(y)}),l=e.define("RDNSequence",function(){this.seqof(M)}),N=e.define("Name",function(){this.choice({rdnSequence:this.use(l)})}),s=e.define("Validity",function(){this.seq().obj(this.key("notBefore").use(t),this.key("notAfter").use(t))}),D=e.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),A=e.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(C),this.key("issuer").use(N),this.key("validity").use(s),this.key("subject").use(N),this.key("subjectPublicKeyInfo").use(o),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(D).optional())}),O=e.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(A),this.key("signatureAlgorithm").use(C),this.key("signatureValue").bitstr())});Ve.exports=O},5269:(Ve,Q,m)=>{var e=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,t=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,y=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,C=m(347),o=m(4330),M=m(3502).Buffer;Ve.exports=function(l,N){var A,s=l.toString(),D=s.match(e);if(D){var E="aes"+D[1],P=M.from(D[2],"hex"),w=M.from(D[3].replace(/[\r\n]/g,""),"base64"),Z=C(N,P.slice(0,8),parseInt(D[1],10)).key,j=[],W=o.createDecipheriv(E,Z,P);j.push(W.update(w)),j.push(W.final()),A=M.concat(j)}else{var O=s.match(y);A=M.from(O[2].replace(/[\r\n]/g,""),"base64")}return{tag:s.match(t)[1],data:A}}},2772:(Ve,Q,m)=>{var e=m(2999),t=m(2562),y=m(5269),C=m(4330),o=m(9357),M=m(3502).Buffer;function l(s){var D;"object"==typeof s&&!M.isBuffer(s)&&(D=s.passphrase,s=s.key),"string"==typeof s&&(s=M.from(s));var P,w,A=y(s,D),O=A.tag,E=A.data;switch(O){case"CERTIFICATE":w=e.certificate.decode(E,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(w||(w=e.PublicKey.decode(E,"der")),P=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 "+P)}case"ENCRYPTED PRIVATE KEY":E=function N(s,D){var A=s.algorithm.decrypt.kde.kdeparams.salt,O=parseInt(s.algorithm.decrypt.kde.kdeparams.iters.toString(),10),E=t[s.algorithm.decrypt.cipher.algo.join(".")],P=s.algorithm.decrypt.cipher.iv,w=s.subjectPrivateKey,Z=parseInt(E.split("-")[1],10)/8,j=o.pbkdf2Sync(D,A,O,Z,"sha1"),W=C.createDecipheriv(E,j,P),ie=[];return ie.push(W.update(w)),ie.push(W.final()),M.concat(ie)}(E=e.EncryptedPrivateKey.decode(E,"der"),D);case"PRIVATE KEY":switch(P=(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 "+P)}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 "+O)}}Ve.exports=l,l.signature=e.signature},9357:(Ve,Q,m)=>{Q.pbkdf2=m(415),Q.pbkdf2Sync=m(7472)},415:(Ve,Q,m)=>{var M,A,e=m(3502).Buffer,t=m(2697),y=m(8867),C=m(7472),o=m(4566),l=global.crypto&&global.crypto.subtle,N={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},s=[];function O(){return A||(A=global.process&&global.process.nextTick?global.process.nextTick:global.queueMicrotask?global.queueMicrotask:global.setImmediate?global.setImmediate:global.setTimeout)}function E(w,Z,j,W,ie){return l.importKey("raw",w,{name:"PBKDF2"},!1,["deriveBits"]).then(function(ee){return l.deriveBits({name:"PBKDF2",salt:Z,iterations:j,hash:{name:ie}},ee,W<<3)}).then(function(ee){return e.from(ee)})}Ve.exports=function(w,Z,j,W,ie,ee){"function"==typeof ie&&(ee=ie,ie=void 0);var _e=N[(ie=ie||"sha1").toLowerCase()];if(_e&&"function"==typeof global.Promise){if(t(j,W),w=o(w,y,"Password"),Z=o(Z,y,"Salt"),"function"!=typeof ee)throw new Error("No callback provided to pbkdf2");!function P(w,Z){w.then(function(j){O()(function(){Z(null,j)})},function(j){O()(function(){Z(j)})})}(function D(w){if(global.process&&!global.process.browser||!l||!l.importKey||!l.deriveBits)return Promise.resolve(!1);if(void 0!==s[w])return s[w];var Z=E(M=M||e.alloc(8),M,10,128,w).then(function(){return!0}).catch(function(){return!1});return s[w]=Z,Z}(_e).then(function(ce){return ce?E(w,Z,j,W,_e):C(w,Z,j,W,ie)}),ee)}else O()(function(){var ce;try{ce=C(w,Z,j,W,ie)}catch(re){return ee(re)}ee(null,ce)})}},8867:Ve=>{var Q;Q=global.process&&global.process.browser?"utf-8":global.process&&global.process.version?parseInt(process.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary":"utf-8",Ve.exports=Q},2697:Ve=>{var Q=Math.pow(2,30)-1;Ve.exports=function(m,e){if("number"!=typeof m)throw new TypeError("Iterations not a number");if(m<0)throw new TypeError("Bad iterations");if("number"!=typeof e)throw new TypeError("Key length not a number");if(e<0||e>Q||e!=e)throw new TypeError("Bad key length")}},7472:(Ve,Q,m)=>{var e=m(5640),t=m(5634),y=m(5244),C=m(3502).Buffer,o=m(2697),M=m(8867),l=m(4566),N=C.alloc(128),s={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function D(E,P,w){var Z=function A(E){return"rmd160"===E||"ripemd160"===E?function w(Z){return(new t).update(Z).digest()}:"md5"===E?e:function P(Z){return y(E).update(Z).digest()}}(E),j="sha512"===E||"sha384"===E?128:64;P.length>j?P=Z(P):P.length<j&&(P=C.concat([P,N],j));for(var W=C.allocUnsafe(j+s[E]),ie=C.allocUnsafe(j+s[E]),ee=0;ee<j;ee++)W[ee]=54^P[ee],ie[ee]=92^P[ee];var _e=C.allocUnsafe(j+w+4);W.copy(_e,0,0,j),this.ipad1=_e,this.ipad2=W,this.opad=ie,this.alg=E,this.blocksize=j,this.hash=Z,this.size=s[E]}D.prototype.run=function(E,P){return E.copy(P,this.blocksize),this.hash(P).copy(this.opad,this.blocksize),this.hash(this.opad)},Ve.exports=function O(E,P,w,Z,j){o(w,Z);var W=new D(j=j||"sha1",E=l(E,M,"Password"),(P=l(P,M,"Salt")).length),ie=C.allocUnsafe(Z),ee=C.allocUnsafe(P.length+4);P.copy(ee,0,0,P.length);for(var _e=0,ce=s[j],re=Math.ceil(Z/ce),de=1;de<=re;de++){ee.writeUInt32BE(de,P.length);for(var oe=W.run(ee,W.ipad1),ae=oe,b=1;b<w;b++){ae=W.run(ae,W.ipad2);for(var i=0;i<ce;i++)oe[i]^=ae[i]}oe.copy(ie,_e),_e+=ce}return ie}},4566:(Ve,Q,m)=>{var e=m(3502).Buffer;Ve.exports=function(t,y,C){if(e.isBuffer(t))return t;if("string"==typeof t)return e.from(t,y);if(ArrayBuffer.isView(t))return e.from(t.buffer);throw new TypeError(C+" must be a string, a Buffer, a typed array or a DataView")}},3701:(Ve,Q,m)=>{Q.publicEncrypt=m(6562),Q.privateDecrypt=m(6705),Q.privateEncrypt=function(t,y){return Q.publicEncrypt(t,y,!0)},Q.publicDecrypt=function(t,y){return Q.privateDecrypt(t,y,!0)}},6945:(Ve,Q,m)=>{var e=m(6386),t=m(3502).Buffer;function y(C){var o=t.allocUnsafe(4);return o.writeUInt32BE(C,0),o}Ve.exports=function(C,o){for(var N,M=t.alloc(0),l=0;M.length<o;)N=y(l++),M=t.concat([M,e("sha1").update(C).update(N).digest()]);return M.slice(0,o)}},2057:function(Ve,Q,m){!function(e,t){"use strict";function y(b,i){if(!b)throw new Error(i||"Assertion failed")}function C(b,i){b.super_=i;var a=function(){};a.prototype=i.prototype,b.prototype=new a,b.prototype.constructor=b}function o(b,i,a){if(o.isBN(b))return b;this.negative=0,this.words=null,this.length=0,this.red=null,null!==b&&(("le"===i||"be"===i)&&(a=i,i=10),this._init(b||0,i||10,a||"be"))}var M;"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{M="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:m(7108).Buffer}catch(b){}function l(b,i){var a=b.charCodeAt(i);return a>=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function N(b,i,a){var p=l(b,a);return a-1>=i&&(p|=l(b,a-1)<<4),p}function s(b,i,a,p){for(var u=0,_=Math.min(b.length,a),L=i;L<_;L++){var I=b.charCodeAt(L)-48;u*=p,u+=I>=49?I-49+10:I>=17?I-17+10:I}return u}o.isBN=function(i){return i instanceof o||null!==i&&"object"==typeof i&&i.constructor.wordSize===o.wordSize&&Array.isArray(i.words)},o.max=function(i,a){return i.cmp(a)>0?i:a},o.min=function(i,a){return i.cmp(a)<0?i:a},o.prototype._init=function(i,a,p){if("number"==typeof i)return this._initNumber(i,a,p);if("object"==typeof i)return this._initArray(i,a,p);"hex"===a&&(a=16),y(a===(0|a)&&a>=2&&a<=36);var u=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(u++,this.negative=1),u<i.length&&(16===a?this._parseHex(i,u,p):(this._parseBase(i,a,u),"le"===p&&this._initArray(this.toArray(),a,p)))},o.prototype._initNumber=function(i,a,p){i<0&&(this.negative=1,i=-i),i<67108864?(this.words=[67108863&i],this.length=1):i<4503599627370496?(this.words=[67108863&i,i/67108864&67108863],this.length=2):(y(i<9007199254740992),this.words=[67108863&i,i/67108864&67108863,1],this.length=3),"le"===p&&this._initArray(this.toArray(),a,p)},o.prototype._initArray=function(i,a,p){if(y("number"==typeof i.length),i.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(i.length/3),this.words=new Array(this.length);for(var u=0;u<this.length;u++)this.words[u]=0;var _,L,I=0;if("be"===p)for(u=i.length-1,_=0;u>=0;u-=3)this.words[_]|=(L=i[u]|i[u-1]<<8|i[u-2]<<16)<<I&67108863,this.words[_+1]=L>>>26-I&67108863,(I+=24)>=26&&(I-=26,_++);else if("le"===p)for(u=0,_=0;u<i.length;u+=3)this.words[_]|=(L=i[u]|i[u+1]<<8|i[u+2]<<16)<<I&67108863,this.words[_+1]=L>>>26-I&67108863,(I+=24)>=26&&(I-=26,_++);return this.strip()},o.prototype._parseHex=function(i,a,p){this.length=Math.ceil((i.length-a)/6),this.words=new Array(this.length);for(var u=0;u<this.length;u++)this.words[u]=0;var I,_=0,L=0;if("be"===p)for(u=i.length-1;u>=a;u-=2)I=N(i,a,u)<<_,this.words[L]|=67108863&I,_>=18?(_-=18,this.words[L+=1]|=I>>>26):_+=8;else for(u=(i.length-a)%2==0?a+1:a;u<i.length;u+=2)I=N(i,a,u)<<_,this.words[L]|=67108863&I,_>=18?(_-=18,this.words[L+=1]|=I>>>26):_+=8;this.strip()},o.prototype._parseBase=function(i,a,p){this.words=[0],this.length=1;for(var u=0,_=1;_<=67108863;_*=a)u++;u--,_=_/a|0;for(var L=i.length-p,I=L%u,x=Math.min(L,L-I)+p,r=0,v=p;v<x;v+=u)r=s(i,v,v+u,a),this.imuln(_),this.words[0]+r<67108864?this.words[0]+=r:this._iaddn(r);if(0!==I){var G=1;for(r=s(i,v,i.length,a),v=0;v<I;v++)G*=a;this.imuln(G),this.words[0]+r<67108864?this.words[0]+=r:this._iaddn(r)}this.strip()},o.prototype.copy=function(i){i.words=new Array(this.length);for(var a=0;a<this.length;a++)i.words[a]=this.words[a];i.length=this.length,i.negative=this.negative,i.red=this.red},o.prototype.clone=function(){var i=new o(null);return this.copy(i),i},o.prototype._expand=function(i){for(;this.length<i;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var D=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],A=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],O=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function P(b,i,a){a.negative=i.negative^b.negative;var p=b.length+i.length|0;a.length=p,p=p-1|0;var u=0|b.words[0],_=0|i.words[0],L=u*_,x=L/67108864|0;a.words[0]=67108863&L;for(var r=1;r<p;r++){for(var v=x>>>26,G=67108863&x,F=Math.min(r,i.length-1),U=Math.max(0,r-b.length+1);U<=F;U++)v+=(L=(u=0|b.words[r-U|0])*(_=0|i.words[U])+G)/67108864|0,G=67108863&L;a.words[r]=0|G,x=0|v}return 0!==x?a.words[r]=0|x:a.length--,a.strip()}o.prototype.toString=function(i,a){var p;if(a=0|a||1,16===(i=i||10)||"hex"===i){p="";for(var u=0,_=0,L=0;L<this.length;L++){var I=this.words[L],x=(16777215&(I<<u|_)).toString(16);p=0!=(_=I>>>24-u&16777215)||L!==this.length-1?D[6-x.length]+x+p:x+p,(u+=2)>=26&&(u-=26,L--)}for(0!==_&&(p=_.toString(16)+p);p.length%a!=0;)p="0"+p;return 0!==this.negative&&(p="-"+p),p}if(i===(0|i)&&i>=2&&i<=36){var r=A[i],v=O[i];p="";var G=this.clone();for(G.negative=0;!G.isZero();){var F=G.modn(v).toString(i);p=(G=G.idivn(v)).isZero()?F+p:D[r-F.length]+F+p}for(this.isZero()&&(p="0"+p);p.length%a!=0;)p="0"+p;return 0!==this.negative&&(p="-"+p),p}y(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var i=this.words[0];return 2===this.length?i+=67108864*this.words[1]:3===this.length&&1===this.words[2]?i+=4503599627370496+67108864*this.words[1]:this.length>2&&y(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(i,a){return y(void 0!==M),this.toArrayLike(M,i,a)},o.prototype.toArray=function(i,a){return this.toArrayLike(Array,i,a)},o.prototype.toArrayLike=function(i,a,p){var u=this.byteLength(),_=p||Math.max(1,u);y(u<=_,"byte array longer than desired length"),y(_>0,"Requested array length <= 0"),this.strip();var x,r,L="le"===a,I=new i(_),v=this.clone();if(L){for(r=0;!v.isZero();r++)x=v.andln(255),v.iushrn(8),I[r]=x;for(;r<_;r++)I[r]=0}else{for(r=0;r<_-u;r++)I[r]=0;for(r=0;!v.isZero();r++)x=v.andln(255),v.iushrn(8),I[_-r-1]=x}return I},o.prototype._countBits=Math.clz32?function(i){return 32-Math.clz32(i)}:function(i){var a=i,p=0;return a>=4096&&(p+=13,a>>>=13),a>=64&&(p+=7,a>>>=7),a>=8&&(p+=4,a>>>=4),a>=2&&(p+=2,a>>>=2),p+a},o.prototype._zeroBits=function(i){if(0===i)return 26;var a=i,p=0;return 0==(8191&a)&&(p+=13,a>>>=13),0==(127&a)&&(p+=7,a>>>=7),0==(15&a)&&(p+=4,a>>>=4),0==(3&a)&&(p+=2,a>>>=2),0==(1&a)&&p++,p},o.prototype.bitLength=function(){var a=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+a},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,a=0;a<this.length;a++){var p=this._zeroBits(this.words[a]);if(i+=p,26!==p)break}return i},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(i){return 0!==this.negative?this.abs().inotn(i).iaddn(1):this.clone()},o.prototype.fromTwos=function(i){return this.testn(i-1)?this.notn(i).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(i){for(;this.length<i.length;)this.words[this.length++]=0;for(var a=0;a<i.length;a++)this.words[a]=this.words[a]|i.words[a];return this.strip()},o.prototype.ior=function(i){return y(0==(this.negative|i.negative)),this.iuor(i)},o.prototype.or=function(i){return this.length>i.length?this.clone().ior(i):i.clone().ior(this)},o.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},o.prototype.iuand=function(i){var a;a=this.length>i.length?i:this;for(var p=0;p<a.length;p++)this.words[p]=this.words[p]&i.words[p];return this.length=a.length,this.strip()},o.prototype.iand=function(i){return y(0==(this.negative|i.negative)),this.iuand(i)},o.prototype.and=function(i){return this.length>i.length?this.clone().iand(i):i.clone().iand(this)},o.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},o.prototype.iuxor=function(i){var a,p;this.length>i.length?(a=this,p=i):(a=i,p=this);for(var u=0;u<p.length;u++)this.words[u]=a.words[u]^p.words[u];if(this!==a)for(;u<a.length;u++)this.words[u]=a.words[u];return this.length=a.length,this.strip()},o.prototype.ixor=function(i){return y(0==(this.negative|i.negative)),this.iuxor(i)},o.prototype.xor=function(i){return this.length>i.length?this.clone().ixor(i):i.clone().ixor(this)},o.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},o.prototype.inotn=function(i){y("number"==typeof i&&i>=0);var a=0|Math.ceil(i/26),p=i%26;this._expand(a),p>0&&a--;for(var u=0;u<a;u++)this.words[u]=67108863&~this.words[u];return p>0&&(this.words[u]=~this.words[u]&67108863>>26-p),this.strip()},o.prototype.notn=function(i){return this.clone().inotn(i)},o.prototype.setn=function(i,a){y("number"==typeof i&&i>=0);var p=i/26|0,u=i%26;return this._expand(p+1),this.words[p]=a?this.words[p]|1<<u:this.words[p]&~(1<<u),this.strip()},o.prototype.iadd=function(i){var a,p,u;if(0!==this.negative&&0===i.negative)return this.negative=0,a=this.isub(i),this.negative^=1,this._normSign();if(0===this.negative&&0!==i.negative)return i.negative=0,a=this.isub(i),i.negative=1,a._normSign();this.length>i.length?(p=this,u=i):(p=i,u=this);for(var _=0,L=0;L<u.length;L++)this.words[L]=67108863&(a=(0|p.words[L])+(0|u.words[L])+_),_=a>>>26;for(;0!==_&&L<p.length;L++)this.words[L]=67108863&(a=(0|p.words[L])+_),_=a>>>26;if(this.length=p.length,0!==_)this.words[this.length]=_,this.length++;else if(p!==this)for(;L<p.length;L++)this.words[L]=p.words[L];return this},o.prototype.add=function(i){var a;return 0!==i.negative&&0===this.negative?(i.negative=0,a=this.sub(i),i.negative^=1,a):0===i.negative&&0!==this.negative?(this.negative=0,a=i.sub(this),this.negative=1,a):this.length>i.length?this.clone().iadd(i):i.clone().iadd(this)},o.prototype.isub=function(i){if(0!==i.negative){i.negative=0;var a=this.iadd(i);return i.negative=1,a._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(i),this.negative=1,this._normSign();var u,_,p=this.cmp(i);if(0===p)return this.negative=0,this.length=1,this.words[0]=0,this;p>0?(u=this,_=i):(u=i,_=this);for(var L=0,I=0;I<_.length;I++)L=(a=(0|u.words[I])-(0|_.words[I])+L)>>26,this.words[I]=67108863&a;for(;0!==L&&I<u.length;I++)L=(a=(0|u.words[I])+L)>>26,this.words[I]=67108863&a;if(0===L&&I<u.length&&u!==this)for(;I<u.length;I++)this.words[I]=u.words[I];return this.length=Math.max(this.length,I),u!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(i){return this.clone().isub(i)};var w=function(i,a,p){var x,r,v,u=i.words,_=a.words,L=p.words,I=0,G=0|u[0],F=8191&G,U=G>>>13,ye=0|u[1],Ce=8191&ye,Be=ye>>>13,ze=0|u[2],Ie=8191&ze,K=ze>>>13,Me=0|u[3],we=8191&Me,z=Me>>>13,Ge=0|u[4],vt=8191&Ge,Re=Ge>>>13,Ne=0|u[5],he=8191&Ne,Le=Ne>>>13,ke=0|u[6],q=8191&ke,$=ke>>>13,le=0|u[7],xe=8191&le,Ue=le>>>13,lt=0|u[8],nt=8191&lt,ft=lt>>>13,it=0|u[9],rt=8191&it,Mt=it>>>13,Zt=0|_[0],Ft=8191&Zt,Vt=Zt>>>13,Ii=0|_[1],jt=8191&Ii,ei=Ii>>>13,Pi=0|_[2],ai=8191&Pi,hi=Pi>>>13,Ze=0|_[3],Ee=8191&Ze,Y=Ze>>>13,me=0|_[4],De=8191&me,et=me>>>13,$t=0|_[5],Nt=8191&$t,Jt=$t>>>13,ct=0|_[6],Pe=8191&ct,Fe=ct>>>13,at=0|_[7],st=8191&at,At=at>>>13,li=0|_[8],Bt=8191&li,Rt=li>>>13,Li=0|_[9],si=8191&Li,ci=Li>>>13;p.negative=i.negative^a.negative,p.length=19;var sn=(I+(x=Math.imul(F,Ft))|0)+((8191&(r=(r=Math.imul(F,Vt))+Math.imul(U,Ft)|0))<<13)|0;I=((v=Math.imul(U,Vt))+(r>>>13)|0)+(sn>>>26)|0,sn&=67108863,x=Math.imul(Ce,Ft),r=(r=Math.imul(Ce,Vt))+Math.imul(Be,Ft)|0,v=Math.imul(Be,Vt);var Ui=(I+(x=x+Math.imul(F,jt)|0)|0)+((8191&(r=(r=r+Math.imul(F,ei)|0)+Math.imul(U,jt)|0))<<13)|0;I=((v=v+Math.imul(U,ei)|0)+(r>>>13)|0)+(Ui>>>26)|0,Ui&=67108863,x=Math.imul(Ie,Ft),r=(r=Math.imul(Ie,Vt))+Math.imul(K,Ft)|0,v=Math.imul(K,Vt),x=x+Math.imul(Ce,jt)|0,r=(r=r+Math.imul(Ce,ei)|0)+Math.imul(Be,jt)|0,v=v+Math.imul(Be,ei)|0;var Di=(I+(x=x+Math.imul(F,ai)|0)|0)+((8191&(r=(r=r+Math.imul(F,hi)|0)+Math.imul(U,ai)|0))<<13)|0;I=((v=v+Math.imul(U,hi)|0)+(r>>>13)|0)+(Di>>>26)|0,Di&=67108863,x=Math.imul(we,Ft),r=(r=Math.imul(we,Vt))+Math.imul(z,Ft)|0,v=Math.imul(z,Vt),x=x+Math.imul(Ie,jt)|0,r=(r=r+Math.imul(Ie,ei)|0)+Math.imul(K,jt)|0,v=v+Math.imul(K,ei)|0,x=x+Math.imul(Ce,ai)|0,r=(r=r+Math.imul(Ce,hi)|0)+Math.imul(Be,ai)|0,v=v+Math.imul(Be,hi)|0;var Xi=(I+(x=x+Math.imul(F,Ee)|0)|0)+((8191&(r=(r=r+Math.imul(F,Y)|0)+Math.imul(U,Ee)|0))<<13)|0;I=((v=v+Math.imul(U,Y)|0)+(r>>>13)|0)+(Xi>>>26)|0,Xi&=67108863,x=Math.imul(vt,Ft),r=(r=Math.imul(vt,Vt))+Math.imul(Re,Ft)|0,v=Math.imul(Re,Vt),x=x+Math.imul(we,jt)|0,r=(r=r+Math.imul(we,ei)|0)+Math.imul(z,jt)|0,v=v+Math.imul(z,ei)|0,x=x+Math.imul(Ie,ai)|0,r=(r=r+Math.imul(Ie,hi)|0)+Math.imul(K,ai)|0,v=v+Math.imul(K,hi)|0,x=x+Math.imul(Ce,Ee)|0,r=(r=r+Math.imul(Ce,Y)|0)+Math.imul(Be,Ee)|0,v=v+Math.imul(Be,Y)|0;var Ke=(I+(x=x+Math.imul(F,De)|0)|0)+((8191&(r=(r=r+Math.imul(F,et)|0)+Math.imul(U,De)|0))<<13)|0;I=((v=v+Math.imul(U,et)|0)+(r>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,x=Math.imul(he,Ft),r=(r=Math.imul(he,Vt))+Math.imul(Le,Ft)|0,v=Math.imul(Le,Vt),x=x+Math.imul(vt,jt)|0,r=(r=r+Math.imul(vt,ei)|0)+Math.imul(Re,jt)|0,v=v+Math.imul(Re,ei)|0,x=x+Math.imul(we,ai)|0,r=(r=r+Math.imul(we,hi)|0)+Math.imul(z,ai)|0,v=v+Math.imul(z,hi)|0,x=x+Math.imul(Ie,Ee)|0,r=(r=r+Math.imul(Ie,Y)|0)+Math.imul(K,Ee)|0,v=v+Math.imul(K,Y)|0,x=x+Math.imul(Ce,De)|0,r=(r=r+Math.imul(Ce,et)|0)+Math.imul(Be,De)|0,v=v+Math.imul(Be,et)|0;var _t=(I+(x=x+Math.imul(F,Nt)|0)|0)+((8191&(r=(r=r+Math.imul(F,Jt)|0)+Math.imul(U,Nt)|0))<<13)|0;I=((v=v+Math.imul(U,Jt)|0)+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,x=Math.imul(q,Ft),r=(r=Math.imul(q,Vt))+Math.imul($,Ft)|0,v=Math.imul($,Vt),x=x+Math.imul(he,jt)|0,r=(r=r+Math.imul(he,ei)|0)+Math.imul(Le,jt)|0,v=v+Math.imul(Le,ei)|0,x=x+Math.imul(vt,ai)|0,r=(r=r+Math.imul(vt,hi)|0)+Math.imul(Re,ai)|0,v=v+Math.imul(Re,hi)|0,x=x+Math.imul(we,Ee)|0,r=(r=r+Math.imul(we,Y)|0)+Math.imul(z,Ee)|0,v=v+Math.imul(z,Y)|0,x=x+Math.imul(Ie,De)|0,r=(r=r+Math.imul(Ie,et)|0)+Math.imul(K,De)|0,v=v+Math.imul(K,et)|0,x=x+Math.imul(Ce,Nt)|0,r=(r=r+Math.imul(Ce,Jt)|0)+Math.imul(Be,Nt)|0,v=v+Math.imul(Be,Jt)|0;var ve=(I+(x=x+Math.imul(F,Pe)|0)|0)+((8191&(r=(r=r+Math.imul(F,Fe)|0)+Math.imul(U,Pe)|0))<<13)|0;I=((v=v+Math.imul(U,Fe)|0)+(r>>>13)|0)+(ve>>>26)|0,ve&=67108863,x=Math.imul(xe,Ft),r=(r=Math.imul(xe,Vt))+Math.imul(Ue,Ft)|0,v=Math.imul(Ue,Vt),x=x+Math.imul(q,jt)|0,r=(r=r+Math.imul(q,ei)|0)+Math.imul($,jt)|0,v=v+Math.imul($,ei)|0,x=x+Math.imul(he,ai)|0,r=(r=r+Math.imul(he,hi)|0)+Math.imul(Le,ai)|0,v=v+Math.imul(Le,hi)|0,x=x+Math.imul(vt,Ee)|0,r=(r=r+Math.imul(vt,Y)|0)+Math.imul(Re,Ee)|0,v=v+Math.imul(Re,Y)|0,x=x+Math.imul(we,De)|0,r=(r=r+Math.imul(we,et)|0)+Math.imul(z,De)|0,v=v+Math.imul(z,et)|0,x=x+Math.imul(Ie,Nt)|0,r=(r=r+Math.imul(Ie,Jt)|0)+Math.imul(K,Nt)|0,v=v+Math.imul(K,Jt)|0,x=x+Math.imul(Ce,Pe)|0,r=(r=r+Math.imul(Ce,Fe)|0)+Math.imul(Be,Pe)|0,v=v+Math.imul(Be,Fe)|0;var qe=(I+(x=x+Math.imul(F,st)|0)|0)+((8191&(r=(r=r+Math.imul(F,At)|0)+Math.imul(U,st)|0))<<13)|0;I=((v=v+Math.imul(U,At)|0)+(r>>>13)|0)+(qe>>>26)|0,qe&=67108863,x=Math.imul(nt,Ft),r=(r=Math.imul(nt,Vt))+Math.imul(ft,Ft)|0,v=Math.imul(ft,Vt),x=x+Math.imul(xe,jt)|0,r=(r=r+Math.imul(xe,ei)|0)+Math.imul(Ue,jt)|0,v=v+Math.imul(Ue,ei)|0,x=x+Math.imul(q,ai)|0,r=(r=r+Math.imul(q,hi)|0)+Math.imul($,ai)|0,v=v+Math.imul($,hi)|0,x=x+Math.imul(he,Ee)|0,r=(r=r+Math.imul(he,Y)|0)+Math.imul(Le,Ee)|0,v=v+Math.imul(Le,Y)|0,x=x+Math.imul(vt,De)|0,r=(r=r+Math.imul(vt,et)|0)+Math.imul(Re,De)|0,v=v+Math.imul(Re,et)|0,x=x+Math.imul(we,Nt)|0,r=(r=r+Math.imul(we,Jt)|0)+Math.imul(z,Nt)|0,v=v+Math.imul(z,Jt)|0,x=x+Math.imul(Ie,Pe)|0,r=(r=r+Math.imul(Ie,Fe)|0)+Math.imul(K,Pe)|0,v=v+Math.imul(K,Fe)|0,x=x+Math.imul(Ce,st)|0,r=(r=r+Math.imul(Ce,At)|0)+Math.imul(Be,st)|0,v=v+Math.imul(Be,At)|0;var yt=(I+(x=x+Math.imul(F,Bt)|0)|0)+((8191&(r=(r=r+Math.imul(F,Rt)|0)+Math.imul(U,Bt)|0))<<13)|0;I=((v=v+Math.imul(U,Rt)|0)+(r>>>13)|0)+(yt>>>26)|0,yt&=67108863,x=Math.imul(rt,Ft),r=(r=Math.imul(rt,Vt))+Math.imul(Mt,Ft)|0,v=Math.imul(Mt,Vt),x=x+Math.imul(nt,jt)|0,r=(r=r+Math.imul(nt,ei)|0)+Math.imul(ft,jt)|0,v=v+Math.imul(ft,ei)|0,x=x+Math.imul(xe,ai)|0,r=(r=r+Math.imul(xe,hi)|0)+Math.imul(Ue,ai)|0,v=v+Math.imul(Ue,hi)|0,x=x+Math.imul(q,Ee)|0,r=(r=r+Math.imul(q,Y)|0)+Math.imul($,Ee)|0,v=v+Math.imul($,Y)|0,x=x+Math.imul(he,De)|0,r=(r=r+Math.imul(he,et)|0)+Math.imul(Le,De)|0,v=v+Math.imul(Le,et)|0,x=x+Math.imul(vt,Nt)|0,r=(r=r+Math.imul(vt,Jt)|0)+Math.imul(Re,Nt)|0,v=v+Math.imul(Re,Jt)|0,x=x+Math.imul(we,Pe)|0,r=(r=r+Math.imul(we,Fe)|0)+Math.imul(z,Pe)|0,v=v+Math.imul(z,Fe)|0,x=x+Math.imul(Ie,st)|0,r=(r=r+Math.imul(Ie,At)|0)+Math.imul(K,st)|0,v=v+Math.imul(K,At)|0,x=x+Math.imul(Ce,Bt)|0,r=(r=r+Math.imul(Ce,Rt)|0)+Math.imul(Be,Bt)|0,v=v+Math.imul(Be,Rt)|0;var fe=(I+(x=x+Math.imul(F,si)|0)|0)+((8191&(r=(r=r+Math.imul(F,ci)|0)+Math.imul(U,si)|0))<<13)|0;I=((v=v+Math.imul(U,ci)|0)+(r>>>13)|0)+(fe>>>26)|0,fe&=67108863,x=Math.imul(rt,jt),r=(r=Math.imul(rt,ei))+Math.imul(Mt,jt)|0,v=Math.imul(Mt,ei),x=x+Math.imul(nt,ai)|0,r=(r=r+Math.imul(nt,hi)|0)+Math.imul(ft,ai)|0,v=v+Math.imul(ft,hi)|0,x=x+Math.imul(xe,Ee)|0,r=(r=r+Math.imul(xe,Y)|0)+Math.imul(Ue,Ee)|0,v=v+Math.imul(Ue,Y)|0,x=x+Math.imul(q,De)|0,r=(r=r+Math.imul(q,et)|0)+Math.imul($,De)|0,v=v+Math.imul($,et)|0,x=x+Math.imul(he,Nt)|0,r=(r=r+Math.imul(he,Jt)|0)+Math.imul(Le,Nt)|0,v=v+Math.imul(Le,Jt)|0,x=x+Math.imul(vt,Pe)|0,r=(r=r+Math.imul(vt,Fe)|0)+Math.imul(Re,Pe)|0,v=v+Math.imul(Re,Fe)|0,x=x+Math.imul(we,st)|0,r=(r=r+Math.imul(we,At)|0)+Math.imul(z,st)|0,v=v+Math.imul(z,At)|0,x=x+Math.imul(Ie,Bt)|0,r=(r=r+Math.imul(Ie,Rt)|0)+Math.imul(K,Bt)|0,v=v+Math.imul(K,Rt)|0;var Je=(I+(x=x+Math.imul(Ce,si)|0)|0)+((8191&(r=(r=r+Math.imul(Ce,ci)|0)+Math.imul(Be,si)|0))<<13)|0;I=((v=v+Math.imul(Be,ci)|0)+(r>>>13)|0)+(Je>>>26)|0,Je&=67108863,x=Math.imul(rt,ai),r=(r=Math.imul(rt,hi))+Math.imul(Mt,ai)|0,v=Math.imul(Mt,hi),x=x+Math.imul(nt,Ee)|0,r=(r=r+Math.imul(nt,Y)|0)+Math.imul(ft,Ee)|0,v=v+Math.imul(ft,Y)|0,x=x+Math.imul(xe,De)|0,r=(r=r+Math.imul(xe,et)|0)+Math.imul(Ue,De)|0,v=v+Math.imul(Ue,et)|0,x=x+Math.imul(q,Nt)|0,r=(r=r+Math.imul(q,Jt)|0)+Math.imul($,Nt)|0,v=v+Math.imul($,Jt)|0,x=x+Math.imul(he,Pe)|0,r=(r=r+Math.imul(he,Fe)|0)+Math.imul(Le,Pe)|0,v=v+Math.imul(Le,Fe)|0,x=x+Math.imul(vt,st)|0,r=(r=r+Math.imul(vt,At)|0)+Math.imul(Re,st)|0,v=v+Math.imul(Re,At)|0,x=x+Math.imul(we,Bt)|0,r=(r=r+Math.imul(we,Rt)|0)+Math.imul(z,Bt)|0,v=v+Math.imul(z,Rt)|0;var St=(I+(x=x+Math.imul(Ie,si)|0)|0)+((8191&(r=(r=r+Math.imul(Ie,ci)|0)+Math.imul(K,si)|0))<<13)|0;I=((v=v+Math.imul(K,ci)|0)+(r>>>13)|0)+(St>>>26)|0,St&=67108863,x=Math.imul(rt,Ee),r=(r=Math.imul(rt,Y))+Math.imul(Mt,Ee)|0,v=Math.imul(Mt,Y),x=x+Math.imul(nt,De)|0,r=(r=r+Math.imul(nt,et)|0)+Math.imul(ft,De)|0,v=v+Math.imul(ft,et)|0,x=x+Math.imul(xe,Nt)|0,r=(r=r+Math.imul(xe,Jt)|0)+Math.imul(Ue,Nt)|0,v=v+Math.imul(Ue,Jt)|0,x=x+Math.imul(q,Pe)|0,r=(r=r+Math.imul(q,Fe)|0)+Math.imul($,Pe)|0,v=v+Math.imul($,Fe)|0,x=x+Math.imul(he,st)|0,r=(r=r+Math.imul(he,At)|0)+Math.imul(Le,st)|0,v=v+Math.imul(Le,At)|0,x=x+Math.imul(vt,Bt)|0,r=(r=r+Math.imul(vt,Rt)|0)+Math.imul(Re,Bt)|0,v=v+Math.imul(Re,Rt)|0;var Pt=(I+(x=x+Math.imul(we,si)|0)|0)+((8191&(r=(r=r+Math.imul(we,ci)|0)+Math.imul(z,si)|0))<<13)|0;I=((v=v+Math.imul(z,ci)|0)+(r>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,x=Math.imul(rt,De),r=(r=Math.imul(rt,et))+Math.imul(Mt,De)|0,v=Math.imul(Mt,et),x=x+Math.imul(nt,Nt)|0,r=(r=r+Math.imul(nt,Jt)|0)+Math.imul(ft,Nt)|0,v=v+Math.imul(ft,Jt)|0,x=x+Math.imul(xe,Pe)|0,r=(r=r+Math.imul(xe,Fe)|0)+Math.imul(Ue,Pe)|0,v=v+Math.imul(Ue,Fe)|0,x=x+Math.imul(q,st)|0,r=(r=r+Math.imul(q,At)|0)+Math.imul($,st)|0,v=v+Math.imul($,At)|0,x=x+Math.imul(he,Bt)|0,r=(r=r+Math.imul(he,Rt)|0)+Math.imul(Le,Bt)|0,v=v+Math.imul(Le,Rt)|0;var yi=(I+(x=x+Math.imul(vt,si)|0)|0)+((8191&(r=(r=r+Math.imul(vt,ci)|0)+Math.imul(Re,si)|0))<<13)|0;I=((v=v+Math.imul(Re,ci)|0)+(r>>>13)|0)+(yi>>>26)|0,yi&=67108863,x=Math.imul(rt,Nt),r=(r=Math.imul(rt,Jt))+Math.imul(Mt,Nt)|0,v=Math.imul(Mt,Jt),x=x+Math.imul(nt,Pe)|0,r=(r=r+Math.imul(nt,Fe)|0)+Math.imul(ft,Pe)|0,v=v+Math.imul(ft,Fe)|0,x=x+Math.imul(xe,st)|0,r=(r=r+Math.imul(xe,At)|0)+Math.imul(Ue,st)|0,v=v+Math.imul(Ue,At)|0,x=x+Math.imul(q,Bt)|0,r=(r=r+Math.imul(q,Rt)|0)+Math.imul($,Bt)|0,v=v+Math.imul($,Rt)|0;var Ni=(I+(x=x+Math.imul(he,si)|0)|0)+((8191&(r=(r=r+Math.imul(he,ci)|0)+Math.imul(Le,si)|0))<<13)|0;I=((v=v+Math.imul(Le,ci)|0)+(r>>>13)|0)+(Ni>>>26)|0,Ni&=67108863,x=Math.imul(rt,Pe),r=(r=Math.imul(rt,Fe))+Math.imul(Mt,Pe)|0,v=Math.imul(Mt,Fe),x=x+Math.imul(nt,st)|0,r=(r=r+Math.imul(nt,At)|0)+Math.imul(ft,st)|0,v=v+Math.imul(ft,At)|0,x=x+Math.imul(xe,Bt)|0,r=(r=r+Math.imul(xe,Rt)|0)+Math.imul(Ue,Bt)|0,v=v+Math.imul(Ue,Rt)|0;var Si=(I+(x=x+Math.imul(q,si)|0)|0)+((8191&(r=(r=r+Math.imul(q,ci)|0)+Math.imul($,si)|0))<<13)|0;I=((v=v+Math.imul($,ci)|0)+(r>>>13)|0)+(Si>>>26)|0,Si&=67108863,x=Math.imul(rt,st),r=(r=Math.imul(rt,At))+Math.imul(Mt,st)|0,v=Math.imul(Mt,At),x=x+Math.imul(nt,Bt)|0,r=(r=r+Math.imul(nt,Rt)|0)+Math.imul(ft,Bt)|0,v=v+Math.imul(ft,Rt)|0;var qi=(I+(x=x+Math.imul(xe,si)|0)|0)+((8191&(r=(r=r+Math.imul(xe,ci)|0)+Math.imul(Ue,si)|0))<<13)|0;I=((v=v+Math.imul(Ue,ci)|0)+(r>>>13)|0)+(qi>>>26)|0,qi&=67108863,x=Math.imul(rt,Bt),r=(r=Math.imul(rt,Rt))+Math.imul(Mt,Bt)|0,v=Math.imul(Mt,Rt);var ot=(I+(x=x+Math.imul(nt,si)|0)|0)+((8191&(r=(r=r+Math.imul(nt,ci)|0)+Math.imul(ft,si)|0))<<13)|0;I=((v=v+Math.imul(ft,ci)|0)+(r>>>13)|0)+(ot>>>26)|0,ot&=67108863;var Kt=(I+(x=Math.imul(rt,si))|0)+((8191&(r=(r=Math.imul(rt,ci))+Math.imul(Mt,si)|0))<<13)|0;return I=((v=Math.imul(Mt,ci))+(r>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,L[0]=sn,L[1]=Ui,L[2]=Di,L[3]=Xi,L[4]=Ke,L[5]=_t,L[6]=ve,L[7]=qe,L[8]=yt,L[9]=fe,L[10]=Je,L[11]=St,L[12]=Pt,L[13]=yi,L[14]=Ni,L[15]=Si,L[16]=qi,L[17]=ot,L[18]=Kt,0!==I&&(L[19]=I,p.length++),p};function j(b,i,a){return(new W).mulp(b,i,a)}function W(b,i){this.x=b,this.y=i}Math.imul||(w=P),o.prototype.mulTo=function(i,a){var p,u=this.length+i.length;return p=10===this.length&&10===i.length?w(this,i,a):u<63?P(this,i,a):u<1024?function Z(b,i,a){a.negative=i.negative^b.negative,a.length=b.length+i.length;for(var p=0,u=0,_=0;_<a.length-1;_++){var L=u;u=0;for(var I=67108863&p,x=Math.min(_,i.length-1),r=Math.max(0,_-b.length+1);r<=x;r++){var U=(0|b.words[_-r])*(0|i.words[r]),ye=67108863&U;I=67108863&(ye=ye+I|0),u+=(L=(L=L+(U/67108864|0)|0)+(ye>>>26)|0)>>>26,L&=67108863}a.words[_]=I,p=L,L=u}return 0!==p?a.words[_]=p:a.length--,a.strip()}(this,i,a):j(this,i,a),p},W.prototype.makeRBT=function(i){for(var a=new Array(i),p=o.prototype._countBits(i)-1,u=0;u<i;u++)a[u]=this.revBin(u,p,i);return a},W.prototype.revBin=function(i,a,p){if(0===i||i===p-1)return i;for(var u=0,_=0;_<a;_++)u|=(1&i)<<a-_-1,i>>=1;return u},W.prototype.permute=function(i,a,p,u,_,L){for(var I=0;I<L;I++)u[I]=a[i[I]],_[I]=p[i[I]]},W.prototype.transform=function(i,a,p,u,_,L){this.permute(L,i,a,p,u,_);for(var I=1;I<_;I<<=1)for(var x=I<<1,r=Math.cos(2*Math.PI/x),v=Math.sin(2*Math.PI/x),G=0;G<_;G+=x)for(var F=r,U=v,ye=0;ye<I;ye++){var Ce=p[G+ye],Be=u[G+ye],ze=p[G+ye+I],Ie=u[G+ye+I],K=F*ze-U*Ie;Ie=F*Ie+U*ze,p[G+ye]=Ce+(ze=K),u[G+ye]=Be+Ie,p[G+ye+I]=Ce-ze,u[G+ye+I]=Be-Ie,ye!==x&&(K=r*F-v*U,U=r*U+v*F,F=K)}},W.prototype.guessLen13b=function(i,a){var p=1|Math.max(a,i),u=1&p,_=0;for(p=p/2|0;p;p>>>=1)_++;return 1<<_+1+u},W.prototype.conjugate=function(i,a,p){if(!(p<=1))for(var u=0;u<p/2;u++){var _=i[u];i[u]=i[p-u-1],i[p-u-1]=_,_=a[u],a[u]=-a[p-u-1],a[p-u-1]=-_}},W.prototype.normalize13b=function(i,a){for(var p=0,u=0;u<a/2;u++){var _=8192*Math.round(i[2*u+1]/a)+Math.round(i[2*u]/a)+p;i[u]=67108863&_,p=_<67108864?0:_/67108864|0}return i},W.prototype.convert13b=function(i,a,p,u){for(var _=0,L=0;L<a;L++)p[2*L]=8191&(_+=0|i[L]),p[2*L+1]=8191&(_>>>=13),_>>>=13;for(L=2*a;L<u;++L)p[L]=0;y(0===_),y(0==(-8192&_))},W.prototype.stub=function(i){for(var a=new Array(i),p=0;p<i;p++)a[p]=0;return a},W.prototype.mulp=function(i,a,p){var u=2*this.guessLen13b(i.length,a.length),_=this.makeRBT(u),L=this.stub(u),I=new Array(u),x=new Array(u),r=new Array(u),v=new Array(u),G=new Array(u),F=new Array(u),U=p.words;U.length=u,this.convert13b(i.words,i.length,I,u),this.convert13b(a.words,a.length,v,u),this.transform(I,L,x,r,u,_),this.transform(v,L,G,F,u,_);for(var ye=0;ye<u;ye++){var Ce=x[ye]*G[ye]-r[ye]*F[ye];r[ye]=x[ye]*F[ye]+r[ye]*G[ye],x[ye]=Ce}return this.conjugate(x,r,u),this.transform(x,r,U,L,u,_),this.conjugate(U,L,u),this.normalize13b(U,u),p.negative=i.negative^a.negative,p.length=i.length+a.length,p.strip()},o.prototype.mul=function(i){var a=new o(null);return a.words=new Array(this.length+i.length),this.mulTo(i,a)},o.prototype.mulf=function(i){var a=new o(null);return a.words=new Array(this.length+i.length),j(this,i,a)},o.prototype.imul=function(i){return this.clone().mulTo(i,this)},o.prototype.imuln=function(i){y("number"==typeof i),y(i<67108864);for(var a=0,p=0;p<this.length;p++){var u=(0|this.words[p])*i,_=(67108863&u)+(67108863&a);a>>=26,a+=u/67108864|0,a+=_>>>26,this.words[p]=67108863&_}return 0!==a&&(this.words[p]=a,this.length++),this},o.prototype.muln=function(i){return this.clone().imuln(i)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(i){var a=function E(b){for(var i=new Array(b.bitLength()),a=0;a<i.length;a++){var u=a%26;i[a]=(b.words[a/26|0]&1<<u)>>>u}return i}(i);if(0===a.length)return new o(1);for(var p=this,u=0;u<a.length&&0===a[u];u++,p=p.sqr());if(++u<a.length)for(var _=p.sqr();u<a.length;u++,_=_.sqr())0!==a[u]&&(p=p.mul(_));return p},o.prototype.iushln=function(i){y("number"==typeof i&&i>=0);var _,a=i%26,p=(i-a)/26,u=67108863>>>26-a<<26-a;if(0!==a){var L=0;for(_=0;_<this.length;_++){var I=this.words[_]&u;this.words[_]=(0|this.words[_])-I<<a|L,L=I>>>26-a}L&&(this.words[_]=L,this.length++)}if(0!==p){for(_=this.length-1;_>=0;_--)this.words[_+p]=this.words[_];for(_=0;_<p;_++)this.words[_]=0;this.length+=p}return this.strip()},o.prototype.ishln=function(i){return y(0===this.negative),this.iushln(i)},o.prototype.iushrn=function(i,a,p){var u;y("number"==typeof i&&i>=0),u=a?(a-a%26)/26:0;var _=i%26,L=Math.min((i-_)/26,this.length),I=67108863^67108863>>>_<<_,x=p;if(u-=L,u=Math.max(0,u),x){for(var r=0;r<L;r++)x.words[r]=this.words[r];x.length=L}if(0!==L)if(this.length>L)for(this.length-=L,r=0;r<this.length;r++)this.words[r]=this.words[r+L];else this.words[0]=0,this.length=1;var v=0;for(r=this.length-1;r>=0&&(0!==v||r>=u);r--){var G=0|this.words[r];this.words[r]=v<<26-_|G>>>_,v=G&I}return x&&0!==v&&(x.words[x.length++]=v),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(i,a,p){return y(0===this.negative),this.iushrn(i,a,p)},o.prototype.shln=function(i){return this.clone().ishln(i)},o.prototype.ushln=function(i){return this.clone().iushln(i)},o.prototype.shrn=function(i){return this.clone().ishrn(i)},o.prototype.ushrn=function(i){return this.clone().iushrn(i)},o.prototype.testn=function(i){y("number"==typeof i&&i>=0);var a=i%26,p=(i-a)/26;return!(this.length<=p||!(this.words[p]&1<<a))},o.prototype.imaskn=function(i){y("number"==typeof i&&i>=0);var a=i%26,p=(i-a)/26;return y(0===this.negative,"imaskn works only with positive numbers"),this.length<=p?this:(0!==a&&p++,this.length=Math.min(p,this.length),0!==a&&(this.words[this.length-1]&=67108863^67108863>>>a<<a),this.strip())},o.prototype.maskn=function(i){return this.clone().imaskn(i)},o.prototype.iaddn=function(i){return y("number"==typeof i),y(i<67108864),i<0?this.isubn(-i):0!==this.negative?1===this.length&&(0|this.words[0])<i?(this.words[0]=i-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(i),this.negative=1,this):this._iaddn(i)},o.prototype._iaddn=function(i){this.words[0]+=i;for(var a=0;a<this.length&&this.words[a]>=67108864;a++)this.words[a]-=67108864,a===this.length-1?this.words[a+1]=1:this.words[a+1]++;return this.length=Math.max(this.length,a+1),this},o.prototype.isubn=function(i){if(y("number"==typeof i),y(i<67108864),i<0)return this.iaddn(-i);if(0!==this.negative)return this.negative=0,this.iaddn(i),this.negative=1,this;if(this.words[0]-=i,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var a=0;a<this.length&&this.words[a]<0;a++)this.words[a]+=67108864,this.words[a+1]-=1;return this.strip()},o.prototype.addn=function(i){return this.clone().iaddn(i)},o.prototype.subn=function(i){return this.clone().isubn(i)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(i,a,p){var _;this._expand(i.length+p);var L,I=0;for(_=0;_<i.length;_++){L=(0|this.words[_+p])+I;var x=(0|i.words[_])*a;I=((L-=67108863&x)>>26)-(x/67108864|0),this.words[_+p]=67108863&L}for(;_<this.length-p;_++)I=(L=(0|this.words[_+p])+I)>>26,this.words[_+p]=67108863&L;if(0===I)return this.strip();for(y(-1===I),I=0,_=0;_<this.length;_++)I=(L=-(0|this.words[_])+I)>>26,this.words[_]=67108863&L;return this.negative=1,this.strip()},o.prototype._wordDiv=function(i,a){var p,u=this.clone(),_=i,L=0|_.words[_.length-1];0!=(p=26-this._countBits(L))&&(_=_.ushln(p),u.iushln(p),L=0|_.words[_.length-1]);var r,x=u.length-_.length;if("mod"!==a){(r=new o(null)).length=x+1,r.words=new Array(r.length);for(var v=0;v<r.length;v++)r.words[v]=0}var G=u.clone()._ishlnsubmul(_,1,x);0===G.negative&&(u=G,r&&(r.words[x]=1));for(var F=x-1;F>=0;F--){var U=67108864*(0|u.words[_.length+F])+(0|u.words[_.length+F-1]);for(U=Math.min(U/L|0,67108863),u._ishlnsubmul(_,U,F);0!==u.negative;)U--,u.negative=0,u._ishlnsubmul(_,1,F),u.isZero()||(u.negative^=1);r&&(r.words[F]=U)}return r&&r.strip(),u.strip(),"div"!==a&&0!==p&&u.iushrn(p),{div:r||null,mod:u}},o.prototype.divmod=function(i,a,p){return y(!i.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===i.negative?(L=this.neg().divmod(i,a),"mod"!==a&&(u=L.div.neg()),"div"!==a&&(_=L.mod.neg(),p&&0!==_.negative&&_.iadd(i)),{div:u,mod:_}):0===this.negative&&0!==i.negative?(L=this.divmod(i.neg(),a),"mod"!==a&&(u=L.div.neg()),{div:u,mod:L.mod}):0!=(this.negative&i.negative)?(L=this.neg().divmod(i.neg(),a),"div"!==a&&(_=L.mod.neg(),p&&0!==_.negative&&_.isub(i)),{div:L.div,mod:_}):i.length>this.length||this.cmp(i)<0?{div:new o(0),mod:this}:1===i.length?"div"===a?{div:this.divn(i.words[0]),mod:null}:"mod"===a?{div:null,mod:new o(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new o(this.modn(i.words[0]))}:this._wordDiv(i,a);var u,_,L},o.prototype.div=function(i){return this.divmod(i,"div",!1).div},o.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},o.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},o.prototype.divRound=function(i){var a=this.divmod(i);if(a.mod.isZero())return a.div;var p=0!==a.div.negative?a.mod.isub(i):a.mod,u=i.ushrn(1),_=i.andln(1),L=p.cmp(u);return L<0||1===_&&0===L?a.div:0!==a.div.negative?a.div.isubn(1):a.div.iaddn(1)},o.prototype.modn=function(i){y(i<=67108863);for(var a=(1<<26)%i,p=0,u=this.length-1;u>=0;u--)p=(a*p+(0|this.words[u]))%i;return p},o.prototype.idivn=function(i){y(i<=67108863);for(var a=0,p=this.length-1;p>=0;p--){var u=(0|this.words[p])+67108864*a;this.words[p]=u/i|0,a=u%i}return this.strip()},o.prototype.divn=function(i){return this.clone().idivn(i)},o.prototype.egcd=function(i){y(0===i.negative),y(!i.isZero());var a=this,p=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var u=new o(1),_=new o(0),L=new o(0),I=new o(1),x=0;a.isEven()&&p.isEven();)a.iushrn(1),p.iushrn(1),++x;for(var r=p.clone(),v=a.clone();!a.isZero();){for(var G=0,F=1;0==(a.words[0]&F)&&G<26;++G,F<<=1);if(G>0)for(a.iushrn(G);G-- >0;)(u.isOdd()||_.isOdd())&&(u.iadd(r),_.isub(v)),u.iushrn(1),_.iushrn(1);for(var U=0,ye=1;0==(p.words[0]&ye)&&U<26;++U,ye<<=1);if(U>0)for(p.iushrn(U);U-- >0;)(L.isOdd()||I.isOdd())&&(L.iadd(r),I.isub(v)),L.iushrn(1),I.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(L),_.isub(I)):(p.isub(a),L.isub(u),I.isub(_))}return{a:L,b:I,gcd:p.iushln(x)}},o.prototype._invmp=function(i){y(0===i.negative),y(!i.isZero());var G,a=this,p=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var u=new o(1),_=new o(0),L=p.clone();a.cmpn(1)>0&&p.cmpn(1)>0;){for(var I=0,x=1;0==(a.words[0]&x)&&I<26;++I,x<<=1);if(I>0)for(a.iushrn(I);I-- >0;)u.isOdd()&&u.iadd(L),u.iushrn(1);for(var r=0,v=1;0==(p.words[0]&v)&&r<26;++r,v<<=1);if(r>0)for(p.iushrn(r);r-- >0;)_.isOdd()&&_.iadd(L),_.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(_)):(p.isub(a),_.isub(u))}return(G=0===a.cmpn(1)?u:_).cmpn(0)<0&&G.iadd(i),G},o.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var a=this.clone(),p=i.clone();a.negative=0,p.negative=0;for(var u=0;a.isEven()&&p.isEven();u++)a.iushrn(1),p.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;p.isEven();)p.iushrn(1);var _=a.cmp(p);if(_<0){var L=a;a=p,p=L}else if(0===_||0===p.cmpn(1))break;a.isub(p)}return p.iushln(u)},o.prototype.invm=function(i){return this.egcd(i).a.umod(i)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(i){return this.words[0]&i},o.prototype.bincn=function(i){y("number"==typeof i);var a=i%26,p=(i-a)/26,u=1<<a;if(this.length<=p)return this._expand(p+1),this.words[p]|=u,this;for(var _=u,L=p;0!==_&&L<this.length;L++){var I=0|this.words[L];_=(I+=_)>>>26,this.words[L]=I&=67108863}return 0!==_&&(this.words[L]=_,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(i){var p,a=i<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this.strip(),this.length>1)p=1;else{a&&(i=-i),y(i<=67108863,"Number is too big");var u=0|this.words[0];p=u===i?0:u<i?-1:1}return 0!==this.negative?0|-p:p},o.prototype.cmp=function(i){if(0!==this.negative&&0===i.negative)return-1;if(0===this.negative&&0!==i.negative)return 1;var a=this.ucmp(i);return 0!==this.negative?0|-a:a},o.prototype.ucmp=function(i){if(this.length>i.length)return 1;if(this.length<i.length)return-1;for(var a=0,p=this.length-1;p>=0;p--){var u=0|this.words[p],_=0|i.words[p];if(u!==_){u<_?a=-1:u>_&&(a=1);break}}return a},o.prototype.gtn=function(i){return 1===this.cmpn(i)},o.prototype.gt=function(i){return 1===this.cmp(i)},o.prototype.gten=function(i){return this.cmpn(i)>=0},o.prototype.gte=function(i){return this.cmp(i)>=0},o.prototype.ltn=function(i){return-1===this.cmpn(i)},o.prototype.lt=function(i){return-1===this.cmp(i)},o.prototype.lten=function(i){return this.cmpn(i)<=0},o.prototype.lte=function(i){return this.cmp(i)<=0},o.prototype.eqn=function(i){return 0===this.cmpn(i)},o.prototype.eq=function(i){return 0===this.cmp(i)},o.red=function(i){return new oe(i)},o.prototype.toRed=function(i){return y(!this.red,"Already a number in reduction context"),y(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},o.prototype.fromRed=function(){return y(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(i){return this.red=i,this},o.prototype.forceRed=function(i){return y(!this.red,"Already a number in reduction context"),this._forceRed(i)},o.prototype.redAdd=function(i){return y(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},o.prototype.redIAdd=function(i){return y(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},o.prototype.redSub=function(i){return y(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},o.prototype.redISub=function(i){return y(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},o.prototype.redShl=function(i){return y(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},o.prototype.redMul=function(i){return y(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},o.prototype.redIMul=function(i){return y(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},o.prototype.redSqr=function(){return y(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return y(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return y(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return y(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return y(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(i){return y(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var ie={k256:null,p224:null,p192:null,p25519:null};function ee(b,i){this.name=b,this.p=new o(i,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function _e(){ee.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function ce(){ee.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function re(){ee.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function de(){ee.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function oe(b){if("string"==typeof b){var i=o._prime(b);this.m=i.p,this.prime=i}else y(b.gtn(1),"modulus must be greater than 1"),this.m=b,this.prime=null}function ae(b){oe.call(this,b),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}ee.prototype._tmp=function(){var i=new o(null);return i.words=new Array(Math.ceil(this.n/13)),i},ee.prototype.ireduce=function(i){var p,a=i;do{this.split(a,this.tmp),p=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(p>this.n);var u=p<this.n?-1:a.ucmp(this.p);return 0===u?(a.words[0]=0,a.length=1):u>0?a.isub(this.p):void 0!==a.strip?a.strip():a._strip(),a},ee.prototype.split=function(i,a){i.iushrn(this.n,0,a)},ee.prototype.imulK=function(i){return i.imul(this.k)},C(_e,ee),_e.prototype.split=function(i,a){for(var p=4194303,u=Math.min(i.length,9),_=0;_<u;_++)a.words[_]=i.words[_];if(a.length=u,i.length<=9)return i.words[0]=0,void(i.length=1);var L=i.words[9];for(a.words[a.length++]=L&p,_=10;_<i.length;_++){var I=0|i.words[_];i.words[_-10]=(I&p)<<4|L>>>22,L=I}i.words[_-10]=L>>>=22,i.length-=0===L&&i.length>10?10:9},_e.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var a=0,p=0;p<i.length;p++){var u=0|i.words[p];i.words[p]=67108863&(a+=977*u),a=64*u+(a/67108864|0)}return 0===i.words[i.length-1]&&(i.length--,0===i.words[i.length-1]&&i.length--),i},C(ce,ee),C(re,ee),C(de,ee),de.prototype.imulK=function(i){for(var a=0,p=0;p<i.length;p++){var u=19*(0|i.words[p])+a,_=67108863&u;u>>>=26,i.words[p]=_,a=u}return 0!==a&&(i.words[i.length++]=a),i},o._prime=function(i){if(ie[i])return ie[i];var a;if("k256"===i)a=new _e;else if("p224"===i)a=new ce;else if("p192"===i)a=new re;else{if("p25519"!==i)throw new Error("Unknown prime "+i);a=new de}return ie[i]=a,a},oe.prototype._verify1=function(i){y(0===i.negative,"red works only with positives"),y(i.red,"red works only with red numbers")},oe.prototype._verify2=function(i,a){y(0==(i.negative|a.negative),"red works only with positives"),y(i.red&&i.red===a.red,"red works only with red numbers")},oe.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},oe.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},oe.prototype.add=function(i,a){this._verify2(i,a);var p=i.add(a);return p.cmp(this.m)>=0&&p.isub(this.m),p._forceRed(this)},oe.prototype.iadd=function(i,a){this._verify2(i,a);var p=i.iadd(a);return p.cmp(this.m)>=0&&p.isub(this.m),p},oe.prototype.sub=function(i,a){this._verify2(i,a);var p=i.sub(a);return p.cmpn(0)<0&&p.iadd(this.m),p._forceRed(this)},oe.prototype.isub=function(i,a){this._verify2(i,a);var p=i.isub(a);return p.cmpn(0)<0&&p.iadd(this.m),p},oe.prototype.shl=function(i,a){return this._verify1(i),this.imod(i.ushln(a))},oe.prototype.imul=function(i,a){return this._verify2(i,a),this.imod(i.imul(a))},oe.prototype.mul=function(i,a){return this._verify2(i,a),this.imod(i.mul(a))},oe.prototype.isqr=function(i){return this.imul(i,i.clone())},oe.prototype.sqr=function(i){return this.mul(i,i)},oe.prototype.sqrt=function(i){if(i.isZero())return i.clone();var a=this.m.andln(3);if(y(a%2==1),3===a){var p=this.m.add(new o(1)).iushrn(2);return this.pow(i,p)}for(var u=this.m.subn(1),_=0;!u.isZero()&&0===u.andln(1);)_++,u.iushrn(1);y(!u.isZero());var L=new o(1).toRed(this),I=L.redNeg(),x=this.m.subn(1).iushrn(1),r=this.m.bitLength();for(r=new o(2*r*r).toRed(this);0!==this.pow(r,x).cmp(I);)r.redIAdd(I);for(var v=this.pow(r,u),G=this.pow(i,u.addn(1).iushrn(1)),F=this.pow(i,u),U=_;0!==F.cmp(L);){for(var ye=F,Ce=0;0!==ye.cmp(L);Ce++)ye=ye.redSqr();y(Ce<U);var Be=this.pow(v,new o(1).iushln(U-Ce-1));G=G.redMul(Be),v=Be.redSqr(),F=F.redMul(v),U=Ce}return G},oe.prototype.invm=function(i){var a=i._invmp(this.m);return 0!==a.negative?(a.negative=0,this.imod(a).redNeg()):this.imod(a)},oe.prototype.pow=function(i,a){if(a.isZero())return new o(1).toRed(this);if(0===a.cmpn(1))return i.clone();var u=new Array(16);u[0]=new o(1).toRed(this),u[1]=i;for(var _=2;_<u.length;_++)u[_]=this.mul(u[_-1],i);var L=u[0],I=0,x=0,r=a.bitLength()%26;for(0===r&&(r=26),_=a.length-1;_>=0;_--){for(var v=a.words[_],G=r-1;G>=0;G--){var F=v>>G&1;L!==u[0]&&(L=this.sqr(L)),0!==F||0!==I?(I<<=1,I|=F,(4==++x||0===_&&0===G)&&(L=this.mul(L,u[I]),x=0,I=0)):x=0}r=26}return L},oe.prototype.convertTo=function(i){var a=i.umod(this.m);return a===i?a.clone():a},oe.prototype.convertFrom=function(i){var a=i.clone();return a.red=null,a},o.mont=function(i){return new ae(i)},C(ae,oe),ae.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},ae.prototype.convertFrom=function(i){var a=this.imod(i.mul(this.rinv));return a.red=null,a},ae.prototype.imul=function(i,a){if(i.isZero()||a.isZero())return i.words[0]=0,i.length=1,i;var p=i.imul(a),u=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=p.isub(u).iushrn(this.shift),L=_;return _.cmp(this.m)>=0?L=_.isub(this.m):_.cmpn(0)<0&&(L=_.iadd(this.m)),L._forceRed(this)},ae.prototype.mul=function(i,a){if(i.isZero()||a.isZero())return new o(0)._forceRed(this);var p=i.mul(a),u=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=p.isub(u).iushrn(this.shift),L=_;return _.cmp(this.m)>=0?L=_.isub(this.m):_.cmpn(0)<0&&(L=_.iadd(this.m)),L._forceRed(this)},ae.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(Ve=m.nmd(Ve),this)},6705:(Ve,Q,m)=>{var e=m(2772),t=m(6945),y=m(9401),C=m(2057),o=m(8466),M=m(6386),l=m(8651),N=m(3502).Buffer;Ve.exports=function(E,P,w){var Z;Z=E.padding?E.padding:w?1:4;var ie,j=e(E),W=j.modulus.byteLength();if(P.length>W||new C(P).cmp(j.modulus)>=0)throw new Error("decryption error");ie=w?l(new C(P),j):o(P,j);var ee=N.alloc(W-ie.length);if(ie=N.concat([ee,ie],W),4===Z)return function s(O,E){var P=O.modulus.byteLength(),w=M("sha1").update(N.alloc(0)).digest(),Z=w.length;if(0!==E[0])throw new Error("decryption error");var j=E.slice(1,Z+1),W=E.slice(Z+1),ie=y(j,t(W,Z)),ee=y(W,t(ie,P-Z-1));if(function A(O,E){O=N.from(O),E=N.from(E);var P=0,w=O.length;O.length!==E.length&&(P++,w=Math.min(O.length,E.length));for(var Z=-1;++Z<w;)P+=O[Z]^E[Z];return P}(w,ee.slice(0,Z)))throw new Error("decryption error");for(var _e=Z;0===ee[_e];)_e++;if(1!==ee[_e++])throw new Error("decryption error");return ee.slice(_e)}(j,ie);if(1===Z)return function D(O,E,P){for(var w=E.slice(0,2),Z=2,j=0;0!==E[Z++];)if(Z>=E.length){j++;break}var W=E.slice(2,Z-1);if(("0002"!==w.toString("hex")&&!P||"0001"!==w.toString("hex")&&P)&&j++,W.length<8&&j++,j)throw new Error("decryption error");return E.slice(Z)}(0,ie,w);if(3===Z)return ie;throw new Error("unknown padding")}},6562:(Ve,Q,m)=>{var e=m(2772),t=m(3753),y=m(6386),C=m(6945),o=m(9401),M=m(2057),l=m(8651),N=m(8466),s=m(3502).Buffer;Ve.exports=function(P,w,Z){var j;j=P.padding?P.padding:Z?1:4;var ie,W=e(P);if(4===j)ie=function D(E,P){var w=E.modulus.byteLength(),Z=P.length,j=y("sha1").update(s.alloc(0)).digest(),W=j.length,ie=2*W;if(Z>w-ie-2)throw new Error("message too long");var ee=s.alloc(w-Z-ie-2),_e=w-W-1,ce=t(W),re=o(s.concat([j,ee,s.alloc(1,1),P],_e),C(ce,_e)),de=o(ce,C(re,W));return new M(s.concat([s.alloc(1),de,re],w))}(W,w);else if(1===j)ie=function A(E,P,w){var W,Z=P.length,j=E.modulus.byteLength();if(Z>j-11)throw new Error("message too long");return W=w?s.alloc(j-Z-3,255):function O(E){for(var W,P=s.allocUnsafe(E),w=0,Z=t(2*E),j=0;w<E;)j===Z.length&&(Z=t(2*E),j=0),(W=Z[j++])&&(P[w++]=W);return P}(j-Z-3),new M(s.concat([s.from([0,w?1:2]),W,s.alloc(1),P],j))}(W,w,Z);else{if(3!==j)throw new Error("unknown padding");if((ie=new M(w)).cmp(W.modulus)>=0)throw new Error("data too long for modulus")}return Z?N(ie,W):l(ie,W)}},8651:(Ve,Q,m)=>{var e=m(2057),t=m(3502).Buffer;Ve.exports=function y(C,o){return t.from(C.toRed(e.mont(o.modulus)).redPow(new e(o.publicExponent)).fromRed().toArray())}},9401:Ve=>{Ve.exports=function(m,e){for(var t=m.length,y=-1;++y<t;)m[y]^=e[y];return m}},3259:(Ve,Q,m)=>{const e=m(8695),t=m(1465),y=m(3210),C=m(2334);function o(M,l,N,s,D){const A=[].slice.call(arguments,1),O=A.length,E="function"==typeof A[O-1];if(!E&&!e())throw new Error("Callback required as last argument");if(!E){if(O<1)throw new Error("Too few arguments provided");return 1===O?(N=l,l=s=void 0):2===O&&!l.getContext&&(s=N,N=l,l=void 0),new Promise(function(P,w){try{const Z=t.create(N,s);P(M(Z,l,s))}catch(Z){w(Z)}})}if(O<2)throw new Error("Too few arguments provided");2===O?(D=N,N=l,l=s=void 0):3===O&&(l.getContext&&void 0===D?(D=s,s=void 0):(D=s,s=N,N=l,l=void 0));try{const P=t.create(N,s);D(null,M(P,l,s))}catch(P){D(P)}}Q.create=t.create,Q.toCanvas=o.bind(null,y.render),Q.toDataURL=o.bind(null,y.renderToDataURL),Q.toString=o.bind(null,function(M,l,N){return C.render(M,N)})},8695:Ve=>{Ve.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},6221:(Ve,Q,m)=>{const e=m(4792).getSymbolSize;Q.getRowColCoords=function(y){if(1===y)return[];const C=Math.floor(y/7)+2,o=e(y),M=145===o?26:2*Math.ceil((o-13)/(2*C-2)),l=[o-7];for(let N=1;N<C-1;N++)l[N]=l[N-1]-M;return l.push(6),l.reverse()},Q.getPositions=function(y){const C=[],o=Q.getRowColCoords(y),M=o.length;for(let l=0;l<M;l++)for(let N=0;N<M;N++)0===l&&0===N||0===l&&N===M-1||l===M-1&&0===N||C.push([o[l],o[N]]);return C}},2424:(Ve,Q,m)=>{const e=m(4016),t=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function y(C){this.mode=e.ALPHANUMERIC,this.data=C}y.getBitsLength=function(o){return 11*Math.floor(o/2)+o%2*6},y.prototype.getLength=function(){return this.data.length},y.prototype.getBitsLength=function(){return y.getBitsLength(this.data.length)},y.prototype.write=function(o){let M;for(M=0;M+2<=this.data.length;M+=2){let l=45*t.indexOf(this.data[M]);l+=t.indexOf(this.data[M+1]),o.put(l,11)}this.data.length%2&&o.put(t.indexOf(this.data[M]),6)},Ve.exports=y},2118:Ve=>{function Q(){this.buffer=[],this.length=0}Q.prototype={get:function(m){const e=Math.floor(m/8);return 1==(this.buffer[e]>>>7-m%8&1)},put:function(m,e){for(let t=0;t<e;t++)this.putBit(1==(m>>>e-t-1&1))},getLengthInBits:function(){return this.length},putBit:function(m){const e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),m&&(this.buffer[e]|=128>>>this.length%8),this.length++}},Ve.exports=Q},4425:Ve=>{function Q(m){if(!m||m<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=m,this.data=new Uint8Array(m*m),this.reservedBit=new Uint8Array(m*m)}Q.prototype.set=function(m,e,t,y){const C=m*this.size+e;this.data[C]=t,y&&(this.reservedBit[C]=!0)},Q.prototype.get=function(m,e){return this.data[m*this.size+e]},Q.prototype.xor=function(m,e,t){this.data[m*this.size+e]^=t},Q.prototype.isReserved=function(m,e){return this.reservedBit[m*this.size+e]},Ve.exports=Q},5663:(Ve,Q,m)=>{const e=m(8419),t=m(4016);function y(C){this.mode=t.BYTE,this.data=new Uint8Array(e(C))}y.getBitsLength=function(o){return 8*o},y.prototype.getLength=function(){return this.data.length},y.prototype.getBitsLength=function(){return y.getBitsLength(this.data.length)},y.prototype.write=function(C){for(let o=0,M=this.data.length;o<M;o++)C.put(this.data[o],8)},Ve.exports=y},4655:(Ve,Q,m)=>{const e=m(2259),t=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],y=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];Q.getBlocksCount=function(o,M){switch(M){case e.L:return t[4*(o-1)+0];case e.M:return t[4*(o-1)+1];case e.Q:return t[4*(o-1)+2];case e.H:return t[4*(o-1)+3];default:return}},Q.getTotalCodewordsCount=function(o,M){switch(M){case e.L:return y[4*(o-1)+0];case e.M:return y[4*(o-1)+1];case e.Q:return y[4*(o-1)+2];case e.H:return y[4*(o-1)+3];default:return}}},2259:(Ve,Q)=>{Q.L={bit:1},Q.M={bit:0},Q.Q={bit:3},Q.H={bit:2},Q.isValid=function(t){return t&&void 0!==t.bit&&t.bit>=0&&t.bit<4},Q.from=function(t,y){if(Q.isValid(t))return t;try{return function m(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return Q.L;case"m":case"medium":return Q.M;case"q":case"quartile":return Q.Q;case"h":case"high":return Q.H;default:throw new Error("Unknown EC Level: "+e)}}(t)}catch(C){return y}}},3114:(Ve,Q,m)=>{const e=m(4792).getSymbolSize;Q.getPositions=function(C){const o=e(C);return[[0,0],[o-7,0],[0,o-7]]}},7078:(Ve,Q,m)=>{const e=m(4792),C=e.getBCHDigit(1335);Q.getEncodedBits=function(M,l){const N=M.bit<<3|l;let s=N<<10;for(;e.getBCHDigit(s)-C>=0;)s^=1335<<e.getBCHDigit(s)-C;return 21522^(N<<10|s)}},5339:(Ve,Q)=>{const m=new Uint8Array(512),e=new Uint8Array(256);(function(){let y=1;for(let C=0;C<255;C++)m[C]=y,e[y]=C,y<<=1,256&y&&(y^=285);for(let C=255;C<512;C++)m[C]=m[C-255]})(),Q.log=function(y){if(y<1)throw new Error("log("+y+")");return e[y]},Q.exp=function(y){return m[y]},Q.mul=function(y,C){return 0===y||0===C?0:m[e[y]+e[C]]}},4388:(Ve,Q,m)=>{const e=m(4016),t=m(4792);function y(C){this.mode=e.KANJI,this.data=C}y.getBitsLength=function(o){return 13*o},y.prototype.getLength=function(){return this.data.length},y.prototype.getBitsLength=function(){return y.getBitsLength(this.data.length)},y.prototype.write=function(C){let o;for(o=0;o<this.data.length;o++){let M=t.toSJIS(this.data[o]);if(M>=33088&&M<=40956)M-=33088;else{if(!(M>=57408&&M<=60351))throw new Error("Invalid SJIS character: "+this.data[o]+"\nMake sure your charset is UTF-8");M-=49472}M=192*(M>>>8&255)+(255&M),C.put(M,13)}},Ve.exports=y},3667:(Ve,Q)=>{Q.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};function e(t,y,C){switch(t){case Q.Patterns.PATTERN000:return(y+C)%2==0;case Q.Patterns.PATTERN001:return y%2==0;case Q.Patterns.PATTERN010:return C%3==0;case Q.Patterns.PATTERN011:return(y+C)%3==0;case Q.Patterns.PATTERN100:return(Math.floor(y/2)+Math.floor(C/3))%2==0;case Q.Patterns.PATTERN101:return y*C%2+y*C%3==0;case Q.Patterns.PATTERN110:return(y*C%2+y*C%3)%2==0;case Q.Patterns.PATTERN111:return(y*C%3+(y+C)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}}Q.isValid=function(y){return null!=y&&""!==y&&!isNaN(y)&&y>=0&&y<=7},Q.from=function(y){return Q.isValid(y)?parseInt(y,10):void 0},Q.getPenaltyN1=function(y){const C=y.size;let o=0,M=0,l=0,N=null,s=null;for(let D=0;D<C;D++){M=l=0,N=s=null;for(let A=0;A<C;A++){let O=y.get(D,A);O===N?M++:(M>=5&&(o+=M-5+3),N=O,M=1),O=y.get(A,D),O===s?l++:(l>=5&&(o+=l-5+3),s=O,l=1)}M>=5&&(o+=M-5+3),l>=5&&(o+=l-5+3)}return o},Q.getPenaltyN2=function(y){const C=y.size;let o=0;for(let M=0;M<C-1;M++)for(let l=0;l<C-1;l++){const N=y.get(M,l)+y.get(M,l+1)+y.get(M+1,l)+y.get(M+1,l+1);(4===N||0===N)&&o++}return 3*o},Q.getPenaltyN3=function(y){const C=y.size;let o=0,M=0,l=0;for(let N=0;N<C;N++){M=l=0;for(let s=0;s<C;s++)M=M<<1&2047|y.get(N,s),s>=10&&(1488===M||93===M)&&o++,l=l<<1&2047|y.get(s,N),s>=10&&(1488===l||93===l)&&o++}return 40*o},Q.getPenaltyN4=function(y){let C=0;const o=y.data.length;for(let l=0;l<o;l++)C+=y.data[l];return 10*Math.abs(Math.ceil(100*C/o/5)-10)},Q.applyMask=function(y,C){const o=C.size;for(let M=0;M<o;M++)for(let l=0;l<o;l++)C.isReserved(l,M)||C.xor(l,M,e(y,l,M))},Q.getBestMask=function(y,C){const o=Object.keys(Q.Patterns).length;let M=0,l=1/0;for(let N=0;N<o;N++){C(N),Q.applyMask(N,y);const s=Q.getPenaltyN1(y)+Q.getPenaltyN2(y)+Q.getPenaltyN3(y)+Q.getPenaltyN4(y);Q.applyMask(N,y),s<l&&(l=s,M=N)}return M}},4016:(Ve,Q,m)=>{const e=m(4406),t=m(2699);Q.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},Q.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},Q.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},Q.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},Q.MIXED={bit:-1},Q.getCharCountIndicator=function(o,M){if(!o.ccBits)throw new Error("Invalid mode: "+o);if(!e.isValid(M))throw new Error("Invalid version: "+M);return M>=1&&M<10?o.ccBits[0]:M<27?o.ccBits[1]:o.ccBits[2]},Q.getBestModeForData=function(o){return t.testNumeric(o)?Q.NUMERIC:t.testAlphanumeric(o)?Q.ALPHANUMERIC:t.testKanji(o)?Q.KANJI:Q.BYTE},Q.toString=function(o){if(o&&o.id)return o.id;throw new Error("Invalid mode")},Q.isValid=function(o){return o&&o.bit&&o.ccBits},Q.from=function(o,M){if(Q.isValid(o))return o;try{return function y(C){if("string"!=typeof C)throw new Error("Param is not a string");switch(C.toLowerCase()){case"numeric":return Q.NUMERIC;case"alphanumeric":return Q.ALPHANUMERIC;case"kanji":return Q.KANJI;case"byte":return Q.BYTE;default:throw new Error("Unknown mode: "+C)}}(o)}catch(l){return M}}},7783:(Ve,Q,m)=>{const e=m(4016);function t(y){this.mode=e.NUMERIC,this.data=y.toString()}t.getBitsLength=function(C){return 10*Math.floor(C/3)+(C%3?C%3*3+1:0)},t.prototype.getLength=function(){return this.data.length},t.prototype.getBitsLength=function(){return t.getBitsLength(this.data.length)},t.prototype.write=function(C){let o,M,l;for(o=0;o+3<=this.data.length;o+=3)M=this.data.substr(o,3),l=parseInt(M,10),C.put(l,10);const N=this.data.length-o;N>0&&(M=this.data.substr(o),l=parseInt(M,10),C.put(l,3*N+1))},Ve.exports=t},1106:(Ve,Q,m)=>{const e=m(5339);Q.mul=function(y,C){const o=new Uint8Array(y.length+C.length-1);for(let M=0;M<y.length;M++)for(let l=0;l<C.length;l++)o[M+l]^=e.mul(y[M],C[l]);return o},Q.mod=function(y,C){let o=new Uint8Array(y);for(;o.length-C.length>=0;){const M=o[0];for(let N=0;N<C.length;N++)o[N]^=e.mul(C[N],M);let l=0;for(;l<o.length&&0===o[l];)l++;o=o.slice(l)}return o},Q.generateECPolynomial=function(y){let C=new Uint8Array([1]);for(let o=0;o<y;o++)C=Q.mul(C,new Uint8Array([1,e.exp(o)]));return C}},1465:(Ve,Q,m)=>{const e=m(4792),t=m(2259),y=m(2118),C=m(4425),o=m(6221),M=m(3114),l=m(3667),N=m(4655),s=m(2636),D=m(2088),A=m(7078),O=m(4016),E=m(2033);function W(re,de,oe){const ae=re.size,b=A.getEncodedBits(de,oe);let i,a;for(i=0;i<15;i++)a=1==(b>>i&1),re.set(i<6?i:i<8?i+1:ae-15+i,8,a,!0),re.set(8,i<8?ae-i-1:i<9?15-i-1+1:15-i-1,a,!0);re.set(ae-8,8,1,!0)}function ce(re,de,oe,ae){let b;if(Array.isArray(re))b=E.fromArray(re);else{if("string"!=typeof re)throw new Error("Invalid data");{let _=de;if(!_){const L=E.rawSplit(re);_=D.getBestVersionForData(L,oe)}b=E.fromString(re,_||40)}}const i=D.getBestVersionForData(b,oe);if(!i)throw new Error("The amount of data is too big to be stored in a QR Code");if(de){if(de<i)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+i+".\n")}else de=i;const a=function ee(re,de,oe){const ae=new y;oe.forEach(function(u){ae.put(u.mode.bit,4),ae.put(u.getLength(),O.getCharCountIndicator(u.mode,re)),u.write(ae)});const a=8*(e.getSymbolTotalCodewords(re)-N.getTotalCodewordsCount(re,de));for(ae.getLengthInBits()+4<=a&&ae.put(0,4);ae.getLengthInBits()%8!=0;)ae.putBit(0);const p=(a-ae.getLengthInBits())/8;for(let u=0;u<p;u++)ae.put(u%2?17:236,8);return function _e(re,de,oe){const ae=e.getSymbolTotalCodewords(de),i=ae-N.getTotalCodewordsCount(de,oe),a=N.getBlocksCount(de,oe),u=a-ae%a,_=Math.floor(ae/a),L=Math.floor(i/a),I=L+1,x=_-L,r=new s(x);let v=0;const G=new Array(a),F=new Array(a);let U=0;const ye=new Uint8Array(re.buffer);for(let K=0;K<a;K++){const Me=K<u?L:I;G[K]=ye.slice(v,v+Me),F[K]=r.encode(G[K]),v+=Me,U=Math.max(U,Me)}const Ce=new Uint8Array(ae);let ze,Ie,Be=0;for(ze=0;ze<U;ze++)for(Ie=0;Ie<a;Ie++)ze<G[Ie].length&&(Ce[Be++]=G[Ie][ze]);for(ze=0;ze<x;ze++)for(Ie=0;Ie<a;Ie++)Ce[Be++]=F[Ie][ze];return Ce}(ae,re,de)}(de,oe,b),p=e.getSymbolSize(de),u=new C(p);return function P(re,de){const oe=re.size,ae=M.getPositions(de);for(let b=0;b<ae.length;b++){const i=ae[b][0],a=ae[b][1];for(let p=-1;p<=7;p++)if(!(i+p<=-1||oe<=i+p))for(let u=-1;u<=7;u++)a+u<=-1||oe<=a+u||re.set(i+p,a+u,p>=0&&p<=6&&(0===u||6===u)||u>=0&&u<=6&&(0===p||6===p)||p>=2&&p<=4&&u>=2&&u<=4,!0)}}(u,de),function w(re){const de=re.size;for(let oe=8;oe<de-8;oe++){const ae=oe%2==0;re.set(oe,6,ae,!0),re.set(6,oe,ae,!0)}}(u),function Z(re,de){const oe=o.getPositions(de);for(let ae=0;ae<oe.length;ae++){const b=oe[ae][0],i=oe[ae][1];for(let a=-2;a<=2;a++)for(let p=-2;p<=2;p++)re.set(b+a,i+p,-2===a||2===a||-2===p||2===p||0===a&&0===p,!0)}}(u,de),W(u,oe,0),de>=7&&function j(re,de){const oe=re.size,ae=D.getEncodedBits(de);let b,i,a;for(let p=0;p<18;p++)b=Math.floor(p/3),i=p%3+oe-8-3,a=1==(ae>>p&1),re.set(b,i,a,!0),re.set(i,b,a,!0)}(u,de),function ie(re,de){const oe=re.size;let ae=-1,b=oe-1,i=7,a=0;for(let p=oe-1;p>0;p-=2)for(6===p&&p--;;){for(let u=0;u<2;u++)if(!re.isReserved(b,p-u)){let _=!1;a<de.length&&(_=1==(de[a]>>>i&1)),re.set(b,p-u,_),i--,-1===i&&(a++,i=7)}if(b+=ae,b<0||oe<=b){b-=ae,ae=-ae;break}}}(u,a),isNaN(ae)&&(ae=l.getBestMask(u,W.bind(null,u,oe))),l.applyMask(ae,u),W(u,oe,ae),{modules:u,version:de,errorCorrectionLevel:oe,maskPattern:ae,segments:b}}Q.create=function(de,oe){if(void 0===de||""===de)throw new Error("No input text");let b,i,ae=t.M;return void 0!==oe&&(ae=t.from(oe.errorCorrectionLevel,t.M),b=D.from(oe.version),i=l.from(oe.maskPattern),oe.toSJISFunc&&e.setToSJISFunction(oe.toSJISFunc)),ce(de,b,ae,i)}},2636:(Ve,Q,m)=>{const e=m(1106);function t(y){this.genPoly=void 0,this.degree=y,this.degree&&this.initialize(this.degree)}t.prototype.initialize=function(C){this.degree=C,this.genPoly=e.generateECPolynomial(this.degree)},t.prototype.encode=function(C){if(!this.genPoly)throw new Error("Encoder not initialized");const o=new Uint8Array(C.length+this.degree);o.set(C);const M=e.mod(o,this.genPoly),l=this.degree-M.length;if(l>0){const N=new Uint8Array(this.degree);return N.set(M,l),N}return M},Ve.exports=t},2699:(Ve,Q)=>{const m="[0-9]+";let t="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";t=t.replace(/u/g,"\\u");const y="(?:(?![A-Z0-9 $%*+\\-./:]|"+t+")(?:.|[\r\n]))+";Q.KANJI=new RegExp(t,"g"),Q.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),Q.BYTE=new RegExp(y,"g"),Q.NUMERIC=new RegExp(m,"g"),Q.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const C=new RegExp("^"+t+"$"),o=new RegExp("^"+m+"$"),M=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");Q.testKanji=function(N){return C.test(N)},Q.testNumeric=function(N){return o.test(N)},Q.testAlphanumeric=function(N){return M.test(N)}},2033:(Ve,Q,m)=>{const e=m(4016),t=m(7783),y=m(2424),C=m(5663),o=m(4388),M=m(2699),l=m(4792),N=m(4901);function s(j){return unescape(encodeURIComponent(j)).length}function D(j,W,ie){const ee=[];let _e;for(;null!==(_e=j.exec(ie));)ee.push({data:_e[0],index:_e.index,mode:W,length:_e[0].length});return ee}function A(j){const W=D(M.NUMERIC,e.NUMERIC,j),ie=D(M.ALPHANUMERIC,e.ALPHANUMERIC,j);let ee,_e;return l.isKanjiModeEnabled()?(ee=D(M.BYTE,e.BYTE,j),_e=D(M.KANJI,e.KANJI,j)):(ee=D(M.BYTE_KANJI,e.BYTE,j),_e=[]),W.concat(ie,ee,_e).sort(function(re,de){return re.index-de.index}).map(function(re){return{data:re.data,mode:re.mode,length:re.length}})}function O(j,W){switch(W){case e.NUMERIC:return t.getBitsLength(j);case e.ALPHANUMERIC:return y.getBitsLength(j);case e.KANJI:return o.getBitsLength(j);case e.BYTE:return C.getBitsLength(j)}}function Z(j,W){let ie;const ee=e.getBestModeForData(j);if(ie=e.from(W,ee),ie!==e.BYTE&&ie.bit<ee.bit)throw new Error('"'+j+'" cannot be encoded with mode '+e.toString(ie)+".\n Suggested mode is: "+e.toString(ee));switch(ie===e.KANJI&&!l.isKanjiModeEnabled()&&(ie=e.BYTE),ie){case e.NUMERIC:return new t(j);case e.ALPHANUMERIC:return new y(j);case e.KANJI:return new o(j);case e.BYTE:return new C(j)}}Q.fromArray=function(W){return W.reduce(function(ie,ee){return"string"==typeof ee?ie.push(Z(ee,null)):ee.data&&ie.push(Z(ee.data,ee.mode)),ie},[])},Q.fromString=function(W,ie){const _e=function P(j){const W=[];for(let ie=0;ie<j.length;ie++){const ee=j[ie];switch(ee.mode){case e.NUMERIC:W.push([ee,{data:ee.data,mode:e.ALPHANUMERIC,length:ee.length},{data:ee.data,mode:e.BYTE,length:ee.length}]);break;case e.ALPHANUMERIC:W.push([ee,{data:ee.data,mode:e.BYTE,length:ee.length}]);break;case e.KANJI:W.push([ee,{data:ee.data,mode:e.BYTE,length:s(ee.data)}]);break;case e.BYTE:W.push([{data:ee.data,mode:e.BYTE,length:s(ee.data)}])}}return W}(A(W,l.isKanjiModeEnabled())),ce=function w(j,W){const ie={},ee={start:{}};let _e=["start"];for(let ce=0;ce<j.length;ce++){const re=j[ce],de=[];for(let oe=0;oe<re.length;oe++){const ae=re[oe],b=""+ce+oe;de.push(b),ie[b]={node:ae,lastCount:0},ee[b]={};for(let i=0;i<_e.length;i++){const a=_e[i];ie[a]&&ie[a].node.mode===ae.mode?(ee[a][b]=O(ie[a].lastCount+ae.length,ae.mode)-O(ie[a].lastCount,ae.mode),ie[a].lastCount+=ae.length):(ie[a]&&(ie[a].lastCount=ae.length),ee[a][b]=O(ae.length,ae.mode)+4+e.getCharCountIndicator(ae.mode,W))}}_e=de}for(let ce=0;ce<_e.length;ce++)ee[_e[ce]].end=0;return{map:ee,table:ie}}(_e,ie),re=N.find_path(ce.map,"start","end"),de=[];for(let oe=1;oe<re.length-1;oe++)de.push(ce.table[re[oe]].node);return Q.fromArray(function E(j){return j.reduce(function(W,ie){const ee=W.length-1>=0?W[W.length-1]:null;return ee&&ee.mode===ie.mode?(W[W.length-1].data+=ie.data,W):(W.push(ie),W)},[])}(de))},Q.rawSplit=function(W){return Q.fromArray(A(W,l.isKanjiModeEnabled()))}},4792:(Ve,Q)=>{let m;const e=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];Q.getSymbolSize=function(y){if(!y)throw new Error('"version" cannot be null or undefined');if(y<1||y>40)throw new Error('"version" should be in range from 1 to 40');return 4*y+17},Q.getSymbolTotalCodewords=function(y){return e[y]},Q.getBCHDigit=function(t){let y=0;for(;0!==t;)y++,t>>>=1;return y},Q.setToSJISFunction=function(y){if("function"!=typeof y)throw new Error('"toSJISFunc" is not a valid function.');m=y},Q.isKanjiModeEnabled=function(){return void 0!==m},Q.toSJIS=function(y){return m(y)}},4406:(Ve,Q)=>{Q.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},2088:(Ve,Q,m)=>{const e=m(4792),t=m(4655),y=m(2259),C=m(4016),o=m(4406),l=e.getBCHDigit(7973);function s(O,E){return C.getCharCountIndicator(O,E)+4}function D(O,E){let P=0;return O.forEach(function(w){P+=s(w.mode,E)+w.getBitsLength()}),P}Q.from=function(E,P){return o.isValid(E)?parseInt(E,10):P},Q.getCapacity=function(E,P,w){if(!o.isValid(E))throw new Error("Invalid QR Code version");void 0===w&&(w=C.BYTE);const W=8*(e.getSymbolTotalCodewords(E)-t.getTotalCodewordsCount(E,P));if(w===C.MIXED)return W;const ie=W-s(w,E);switch(w){case C.NUMERIC:return Math.floor(ie/10*3);case C.ALPHANUMERIC:return Math.floor(ie/11*2);case C.KANJI:return Math.floor(ie/13);default:return Math.floor(ie/8)}},Q.getBestVersionForData=function(E,P){let w;const Z=y.from(P,y.M);if(Array.isArray(E)){if(E.length>1)return function A(O,E){for(let P=1;P<=40;P++)if(D(O,P)<=Q.getCapacity(P,E,C.MIXED))return P}(E,Z);if(0===E.length)return 1;w=E[0]}else w=E;return function N(O,E,P){for(let w=1;w<=40;w++)if(E<=Q.getCapacity(w,P,O))return w}(w.mode,w.getLength(),Z)},Q.getEncodedBits=function(E){if(!o.isValid(E)||E<7)throw new Error("Invalid QR Code version");let P=E<<12;for(;e.getBCHDigit(P)-l>=0;)P^=7973<<e.getBCHDigit(P)-l;return E<<12|P}},3210:(Ve,Q,m)=>{const e=m(6355);Q.render=function(o,M,l){let N=l,s=M;void 0===N&&(!M||!M.getContext)&&(N=M,M=void 0),M||(s=function y(){try{return document.createElement("canvas")}catch(C){throw new Error("You need to specify a canvas element")}}()),N=e.getOptions(N);const D=e.getImageWidth(o.modules.size,N),A=s.getContext("2d"),O=A.createImageData(D,D);return e.qrToImageData(O.data,o,N),function t(C,o,M){C.clearRect(0,0,o.width,o.height),o.style||(o.style={}),o.height=M,o.width=M,o.style.height=M+"px",o.style.width=M+"px"}(A,s,D),A.putImageData(O,0,0),s},Q.renderToDataURL=function(o,M,l){let N=l;return void 0===N&&(!M||!M.getContext)&&(N=M,M=void 0),N||(N={}),Q.render(o,M,N).toDataURL(N.type||"image/png",(N.rendererOpts||{}).quality)}},2334:(Ve,Q,m)=>{const e=m(6355);function t(o,M){const l=o.a/255,N=M+'="'+o.hex+'"';return l<1?N+" "+M+'-opacity="'+l.toFixed(2).slice(1)+'"':N}function y(o,M,l){let N=o+M;return void 0!==l&&(N+=" "+l),N}Q.render=function(M,l,N){const s=e.getOptions(l),D=M.modules.size,A=M.modules.data,O=D+2*s.margin,E=s.color.light.a?"<path "+t(s.color.light,"fill")+' d="M0 0h'+O+"v"+O+'H0z"/>':"",P="<path "+t(s.color.dark,"stroke")+' d="'+function C(o,M,l){let N="",s=0,D=!1,A=0;for(let O=0;O<o.length;O++){const E=Math.floor(O%M),P=Math.floor(O/M);!E&&!D&&(D=!0),o[O]?(A++,O>0&&E>0&&o[O-1]||(N+=D?y("M",E+l,.5+P+l):y("m",s,0),s=0,D=!1),E+1<M&&o[O+1]||(N+=y("h",A),A=0)):s++}return N}(A,D,s.margin)+'"/>',j='<svg xmlns="http://www.w3.org/2000/svg" '+(s.width?'width="'+s.width+'" height="'+s.width+'" ':"")+'viewBox="0 0 '+O+" "+O+'" shape-rendering="crispEdges">'+E+P+"</svg>\n";return"function"==typeof N&&N(null,j),j}},6355:(Ve,Q)=>{function m(e){if("number"==typeof e&&(e=e.toString()),"string"!=typeof e)throw new Error("Color should be defined as hex string");let t=e.slice().replace("#","").split("");if(t.length<3||5===t.length||t.length>8)throw new Error("Invalid hex color: "+e);(3===t.length||4===t.length)&&(t=Array.prototype.concat.apply([],t.map(function(C){return[C,C]}))),6===t.length&&t.push("F","F");const y=parseInt(t.join(""),16);return{r:y>>24&255,g:y>>16&255,b:y>>8&255,a:255&y,hex:"#"+t.slice(0,6).join("")}}Q.getOptions=function(t){t||(t={}),t.color||(t.color={});const C=t.width&&t.width>=21?t.width:void 0;return{width:C,scale:C?4:t.scale||4,margin:null==t.margin||t.margin<0?4:t.margin,color:{dark:m(t.color.dark||"#000000ff"),light:m(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}},Q.getScale=function(t,y){return y.width&&y.width>=t+2*y.margin?y.width/(t+2*y.margin):y.scale},Q.getImageWidth=function(t,y){const C=Q.getScale(t,y);return Math.floor((t+2*y.margin)*C)},Q.qrToImageData=function(t,y,C){const o=y.modules.size,M=y.modules.data,l=Q.getScale(o,C),N=Math.floor((o+2*C.margin)*l),s=C.margin*l,D=[C.color.light,C.color.dark];for(let A=0;A<N;A++)for(let O=0;O<N;O++){let E=4*(A*N+O),P=C.color.light;A>=s&&O>=s&&A<N-s&&O<N-s&&(P=D[M[Math.floor((A-s)/l)*o+Math.floor((O-s)/l)]?1:0]),t[E++]=P.r,t[E++]=P.g,t[E++]=P.b,t[E]=P.a}}},3753:(Ve,Q,m)=>{"use strict";var e=65536,C=m(3502).Buffer,o=global.crypto||global.msCrypto;Ve.exports=o&&o.getRandomValues?function M(l,N){if(l>4294967295)throw new RangeError("requested too many random bytes");var s=C.allocUnsafe(l);if(l>0)if(l>e)for(var D=0;D<l;D+=e)o.getRandomValues(s.slice(D,D+e));else o.getRandomValues(s);return"function"==typeof N?process.nextTick(function(){N(null,s)}):s}:function y(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}},4275:(Ve,Q,m)=>{"use strict";function e(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var t=m(3502),y=m(3753),C=t.Buffer,o=t.kMaxLength,M=global.crypto||global.msCrypto,l=Math.pow(2,32)-1;function N(E,P){if("number"!=typeof E||E!=E)throw new TypeError("offset must be a number");if(E>l||E<0)throw new TypeError("offset must be a uint32");if(E>o||E>P)throw new RangeError("offset out of range")}function s(E,P,w){if("number"!=typeof E||E!=E)throw new TypeError("size must be a number");if(E>l||E<0)throw new TypeError("size must be a uint32");if(E+P>w||E>o)throw new RangeError("buffer too small")}function A(E,P,w,Z){if(process.browser){var W=new Uint8Array(E.buffer,P,w);return M.getRandomValues(W),Z?void process.nextTick(function(){Z(null,E)}):E}if(!Z)return y(w).copy(E,P),E;y(w,function(ee,_e){if(ee)return Z(ee);_e.copy(E,P),Z(null,E)})}M&&M.getRandomValues||!process.browser?(Q.randomFill=function D(E,P,w,Z){if(!(C.isBuffer(E)||E instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof P)Z=P,P=0,w=E.length;else if("function"==typeof w)Z=w,w=E.length-P;else if("function"!=typeof Z)throw new TypeError('"cb" argument must be a function');return N(P,E.length),s(w,P,E.length),A(E,P,w,Z)},Q.randomFillSync=function O(E,P,w){if(void 0===P&&(P=0),!(C.isBuffer(E)||E instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return N(P,E.length),void 0===w&&(w=E.length-P),s(w,P,E.length),A(E,P,w)}):(Q.randomFill=e,Q.randomFillSync=e)},891:Ve=>{"use strict";var m={};function e(M,l,N){N||(N=Error);var D=function(A){function O(E,P,w){return A.call(this,function s(A,O,E){return"string"==typeof l?l:l(A,O,E)}(E,P,w))||this}return function Q(M,l){M.prototype=Object.create(l.prototype),M.prototype.constructor=M,M.__proto__=l}(O,A),O}(N);D.prototype.name=N.name,D.prototype.code=M,m[M]=D}function t(M,l){if(Array.isArray(M)){var N=M.length;return M=M.map(function(s){return String(s)}),N>2?"one of ".concat(l," ").concat(M.slice(0,N-1).join(", "),", or ")+M[N-1]:2===N?"one of ".concat(l," ").concat(M[0]," or ").concat(M[1]):"of ".concat(l," ").concat(M[0])}return"of ".concat(l," ").concat(String(M))}e("ERR_INVALID_OPT_VALUE",function(M,l){return'The value "'+l+'" is invalid for option "'+M+'"'},TypeError),e("ERR_INVALID_ARG_TYPE",function(M,l,N){var s,D;if("string"==typeof l&&function y(M,l,N){return M.substr(!N||N<0?0:+N,l.length)===l}(l,"not ")?(s="must not be",l=l.replace(/^not /,"")):s="must be",function C(M,l,N){return(void 0===N||N>M.length)&&(N=M.length),M.substring(N-l.length,N)===l}(M," argument"))D="The ".concat(M," ").concat(s," ").concat(t(l,"type"));else{var A=function o(M,l,N){return"number"!=typeof N&&(N=0),!(N+l.length>M.length)&&-1!==M.indexOf(l,N)}(M,".")?"property":"argument";D='The "'.concat(M,'" ').concat(A," ").concat(s," ").concat(t(l,"type"))}return D+". Received type ".concat(typeof N)},TypeError),e("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),e("ERR_METHOD_NOT_IMPLEMENTED",function(M){return"The "+M+" method is not implemented"}),e("ERR_STREAM_PREMATURE_CLOSE","Premature close"),e("ERR_STREAM_DESTROYED",function(M){return"Cannot call "+M+" 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(M){return"Unknown encoding: "+M},TypeError),e("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),Ve.exports.q=m},1339:(Ve,Q,m)=>{"use strict";var e=Object.keys||function(D){var A=[];for(var O in D)A.push(O);return A};Ve.exports=l;var t=m(3154),y=m(520);m(3894)(l,t);for(var C=e(y.prototype),o=0;o<C.length;o++){var M=C[o];l.prototype[M]||(l.prototype[M]=y.prototype[M])}function l(D){if(!(this instanceof l))return new l(D);t.call(this,D),y.call(this,D),this.allowHalfOpen=!0,D&&(!1===D.readable&&(this.readable=!1),!1===D.writable&&(this.writable=!1),!1===D.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",N)))}function N(){this._writableState.ended||process.nextTick(s,this)}function s(D){D.end()}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(l.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(l.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(A){void 0===this._readableState||void 0===this._writableState||(this._readableState.destroyed=A,this._writableState.destroyed=A)}})},6071:(Ve,Q,m)=>{"use strict";Ve.exports=t;var e=m(6025);function t(y){if(!(this instanceof t))return new t(y);e.call(this,y)}m(3894)(t,e),t.prototype._transform=function(y,C,o){o(null,y)}},3154:(Ve,Q,m)=>{"use strict";var e;Ve.exports=b,b.ReadableState=ae,m(9069);var D,y=function(Ge,vt){return Ge.listeners(vt).length},C=m(4970),o=m(3172).Buffer,M=global.Uint8Array||function(){},s=m(4616);D=s&&s.debuglog?s.debuglog("stream"):function(){};var ee,_e,ce,A=m(5019),O=m(1920),P=m(7102).getHighWaterMark,w=m(891).q,Z=w.ERR_INVALID_ARG_TYPE,j=w.ERR_STREAM_PUSH_AFTER_EOF,W=w.ERR_METHOD_NOT_IMPLEMENTED,ie=w.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;m(3894)(b,C);var re=O.errorOrDestroy,de=["error","close","destroy","pause","resume"];function ae(z,Ge,vt){e=e||m(1339),"boolean"!=typeof vt&&(vt=Ge instanceof e),this.objectMode=!!(z=z||{}).objectMode,vt&&(this.objectMode=this.objectMode||!!z.readableObjectMode),this.highWaterMark=P(this,z,"readableHighWaterMark",vt),this.buffer=new A,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==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&&(ee||(ee=m(3054).s),this.decoder=new ee(z.encoding),this.encoding=z.encoding)}function b(z){if(e=e||m(1339),!(this instanceof b))return new b(z);this._readableState=new ae(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)),C.call(this)}function i(z,Ge,vt,Re,Ne){D("readableAddChunk",Ge);var Le,he=z._readableState;if(null===Ge)he.reading=!1,function I(z,Ge){if(D("onEofChunk"),!Ge.ended){if(Ge.decoder){var vt=Ge.decoder.end();vt&&vt.length&&(Ge.buffer.push(vt),Ge.length+=Ge.objectMode?1:vt.length)}Ge.ended=!0,Ge.sync?x(z):(Ge.needReadable=!1,Ge.emittedReadable||(Ge.emittedReadable=!0,r(z)))}}(z,he);else if(Ne||(Le=function p(z,Ge){var vt;return!function N(z){return o.isBuffer(z)||z instanceof M}(Ge)&&"string"!=typeof Ge&&void 0!==Ge&&!z.objectMode&&(vt=new Z("chunk",["string","Buffer","Uint8Array"],Ge)),vt}(he,Ge)),Le)re(z,Le);else if(he.objectMode||Ge&&Ge.length>0)if("string"!=typeof Ge&&!he.objectMode&&Object.getPrototypeOf(Ge)!==o.prototype&&(Ge=function l(z){return o.from(z)}(Ge)),Re)he.endEmitted?re(z,new ie):a(z,he,Ge,!0);else if(he.ended)re(z,new j);else{if(he.destroyed)return!1;he.reading=!1,he.decoder&&!vt?(Ge=he.decoder.write(Ge),he.objectMode||0!==Ge.length?a(z,he,Ge,!1):v(z,he)):a(z,he,Ge,!1)}else Re||(he.reading=!1,v(z,he));return!he.ended&&(he.length<he.highWaterMark||0===he.length)}function a(z,Ge,vt,Re){Ge.flowing&&0===Ge.length&&!Ge.sync?(Ge.awaitDrain=0,z.emit("data",vt)):(Ge.length+=Ge.objectMode?1:vt.length,Re?Ge.buffer.unshift(vt):Ge.buffer.push(vt),Ge.needReadable&&x(z)),v(z,Ge)}Object.defineProperty(b.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(Ge){!this._readableState||(this._readableState.destroyed=Ge)}}),b.prototype.destroy=O.destroy,b.prototype._undestroy=O.undestroy,b.prototype._destroy=function(z,Ge){Ge(z)},b.prototype.push=function(z,Ge){var Re,vt=this._readableState;return vt.objectMode?Re=!0:"string"==typeof z&&((Ge=Ge||vt.defaultEncoding)!==vt.encoding&&(z=o.from(z,Ge),Ge=""),Re=!0),i(this,z,Ge,!1,Re)},b.prototype.unshift=function(z){return i(this,z,null,!0,!1)},b.prototype.isPaused=function(){return!1===this._readableState.flowing},b.prototype.setEncoding=function(z){ee||(ee=m(3054).s);var Ge=new ee(z);this._readableState.decoder=Ge,this._readableState.encoding=this._readableState.decoder.encoding;for(var vt=this._readableState.buffer.head,Re="";null!==vt;)Re+=Ge.write(vt.data),vt=vt.next;return this._readableState.buffer.clear(),""!==Re&&this._readableState.buffer.push(Re),this._readableState.length=Re.length,this};var u=1073741824;function L(z,Ge){return z<=0||0===Ge.length&&Ge.ended?0:Ge.objectMode?1:z!=z?Ge.flowing&&Ge.length?Ge.buffer.head.data.length:Ge.length:(z>Ge.highWaterMark&&(Ge.highWaterMark=function _(z){return z>=u?z=u:(z--,z|=z>>>1,z|=z>>>2,z|=z>>>4,z|=z>>>8,z|=z>>>16,z++),z}(z)),z<=Ge.length?z:Ge.ended?Ge.length:(Ge.needReadable=!0,0))}function x(z){var Ge=z._readableState;D("emitReadable",Ge.needReadable,Ge.emittedReadable),Ge.needReadable=!1,Ge.emittedReadable||(D("emitReadable",Ge.flowing),Ge.emittedReadable=!0,process.nextTick(r,z))}function r(z){var Ge=z._readableState;D("emitReadable_",Ge.destroyed,Ge.length,Ge.ended),!Ge.destroyed&&(Ge.length||Ge.ended)&&(z.emit("readable"),Ge.emittedReadable=!1),Ge.needReadable=!Ge.flowing&&!Ge.ended&&Ge.length<=Ge.highWaterMark,ze(z)}function v(z,Ge){Ge.readingMore||(Ge.readingMore=!0,process.nextTick(G,z,Ge))}function G(z,Ge){for(;!Ge.reading&&!Ge.ended&&(Ge.length<Ge.highWaterMark||Ge.flowing&&0===Ge.length);){var vt=Ge.length;if(D("maybeReadMore read 0"),z.read(0),vt===Ge.length)break}Ge.readingMore=!1}function U(z){var Ge=z._readableState;Ge.readableListening=z.listenerCount("readable")>0,Ge.resumeScheduled&&!Ge.paused?Ge.flowing=!0:z.listenerCount("data")>0&&z.resume()}function ye(z){D("readable nexttick read 0"),z.read(0)}function Be(z,Ge){D("resume",Ge.reading),Ge.reading||z.read(0),Ge.resumeScheduled=!1,z.emit("resume"),ze(z),Ge.flowing&&!Ge.reading&&z.read(0)}function ze(z){var Ge=z._readableState;for(D("flow",Ge.flowing);Ge.flowing&&null!==z.read(););}function Ie(z,Ge){return 0===Ge.length?null:(Ge.objectMode?vt=Ge.buffer.shift():!z||z>=Ge.length?(vt=Ge.decoder?Ge.buffer.join(""):1===Ge.buffer.length?Ge.buffer.first():Ge.buffer.concat(Ge.length),Ge.buffer.clear()):vt=Ge.buffer.consume(z,Ge.decoder),vt);var vt}function K(z){var Ge=z._readableState;D("endReadable",Ge.endEmitted),Ge.endEmitted||(Ge.ended=!0,process.nextTick(Me,Ge,z))}function Me(z,Ge){if(D("endReadableNT",z.endEmitted,z.length),!z.endEmitted&&0===z.length&&(z.endEmitted=!0,Ge.readable=!1,Ge.emit("end"),z.autoDestroy)){var vt=Ge._writableState;(!vt||vt.autoDestroy&&vt.finished)&&Ge.destroy()}}function we(z,Ge){for(var vt=0,Re=z.length;vt<Re;vt++)if(z[vt]===Ge)return vt;return-1}b.prototype.read=function(z){D("read",z),z=parseInt(z,10);var Ge=this._readableState,vt=z;if(0!==z&&(Ge.emittedReadable=!1),0===z&&Ge.needReadable&&((0!==Ge.highWaterMark?Ge.length>=Ge.highWaterMark:Ge.length>0)||Ge.ended))return D("read: emitReadable",Ge.length,Ge.ended),0===Ge.length&&Ge.ended?K(this):x(this),null;if(0===(z=L(z,Ge))&&Ge.ended)return 0===Ge.length&&K(this),null;var Ne,Re=Ge.needReadable;return D("need readable",Re),(0===Ge.length||Ge.length-z<Ge.highWaterMark)&&D("length less than watermark",Re=!0),Ge.ended||Ge.reading?D("reading or ended",Re=!1):Re&&(D("do read"),Ge.reading=!0,Ge.sync=!0,0===Ge.length&&(Ge.needReadable=!0),this._read(Ge.highWaterMark),Ge.sync=!1,Ge.reading||(z=L(vt,Ge))),null===(Ne=z>0?Ie(z,Ge):null)?(Ge.needReadable=Ge.length<=Ge.highWaterMark,z=0):(Ge.length-=z,Ge.awaitDrain=0),0===Ge.length&&(Ge.ended||(Ge.needReadable=!0),vt!==z&&Ge.ended&&K(this)),null!==Ne&&this.emit("data",Ne),Ne},b.prototype._read=function(z){re(this,new W("_read()"))},b.prototype.pipe=function(z,Ge){var vt=this,Re=this._readableState;switch(Re.pipesCount){case 0:Re.pipes=z;break;case 1:Re.pipes=[Re.pipes,z];break;default:Re.pipes.push(z)}Re.pipesCount+=1,D("pipe count=%d opts=%j",Re.pipesCount,Ge);var he=Ge&&!1===Ge.end||z===process.stdout||z===process.stderr?ft:ke;function ke(){D("onend"),z.end()}Re.endEmitted?process.nextTick(he):vt.once("end",he),z.on("unpipe",function Le(it,rt){D("onunpipe"),it===vt&&rt&&!1===rt.hasUnpiped&&(rt.hasUnpiped=!0,function le(){D("cleanup"),z.removeListener("close",lt),z.removeListener("finish",nt),z.removeListener("drain",q),z.removeListener("error",Ue),z.removeListener("unpipe",Le),vt.removeListener("end",ke),vt.removeListener("end",ft),vt.removeListener("data",xe),$=!0,Re.awaitDrain&&(!z._writableState||z._writableState.needDrain)&&q()}())});var q=function F(z){return function(){var vt=z._readableState;D("pipeOnDrain",vt.awaitDrain),vt.awaitDrain&&vt.awaitDrain--,0===vt.awaitDrain&&y(z,"data")&&(vt.flowing=!0,ze(z))}}(vt);z.on("drain",q);var $=!1;function xe(it){D("ondata");var rt=z.write(it);D("dest.write",rt),!1===rt&&((1===Re.pipesCount&&Re.pipes===z||Re.pipesCount>1&&-1!==we(Re.pipes,z))&&!$&&(D("false write response, pause",Re.awaitDrain),Re.awaitDrain++),vt.pause())}function Ue(it){D("onerror",it),ft(),z.removeListener("error",Ue),0===y(z,"error")&&re(z,it)}function lt(){z.removeListener("finish",nt),ft()}function nt(){D("onfinish"),z.removeListener("close",lt),ft()}function ft(){D("unpipe"),vt.unpipe(z)}return vt.on("data",xe),function oe(z,Ge,vt){if("function"==typeof z.prependListener)return z.prependListener(Ge,vt);z._events&&z._events[Ge]?Array.isArray(z._events[Ge])?z._events[Ge].unshift(vt):z._events[Ge]=[vt,z._events[Ge]]:z.on(Ge,vt)}(z,"error",Ue),z.once("close",lt),z.once("finish",nt),z.emit("pipe",vt),Re.flowing||(D("pipe resume"),vt.resume()),z},b.prototype.unpipe=function(z){var Ge=this._readableState,vt={hasUnpiped:!1};if(0===Ge.pipesCount)return this;if(1===Ge.pipesCount)return z&&z!==Ge.pipes||(z||(z=Ge.pipes),Ge.pipes=null,Ge.pipesCount=0,Ge.flowing=!1,z&&z.emit("unpipe",this,vt)),this;if(!z){var Re=Ge.pipes,Ne=Ge.pipesCount;Ge.pipes=null,Ge.pipesCount=0,Ge.flowing=!1;for(var he=0;he<Ne;he++)Re[he].emit("unpipe",this,{hasUnpiped:!1});return this}var Le=we(Ge.pipes,z);return-1===Le||(Ge.pipes.splice(Le,1),Ge.pipesCount-=1,1===Ge.pipesCount&&(Ge.pipes=Ge.pipes[0]),z.emit("unpipe",this,vt)),this},b.prototype.addListener=b.prototype.on=function(z,Ge){var vt=C.prototype.on.call(this,z,Ge),Re=this._readableState;return"data"===z?(Re.readableListening=this.listenerCount("readable")>0,!1!==Re.flowing&&this.resume()):"readable"===z&&!Re.endEmitted&&!Re.readableListening&&(Re.readableListening=Re.needReadable=!0,Re.flowing=!1,Re.emittedReadable=!1,D("on readable",Re.length,Re.reading),Re.length?x(this):Re.reading||process.nextTick(ye,this)),vt},b.prototype.removeListener=function(z,Ge){var vt=C.prototype.removeListener.call(this,z,Ge);return"readable"===z&&process.nextTick(U,this),vt},b.prototype.removeAllListeners=function(z){var Ge=C.prototype.removeAllListeners.apply(this,arguments);return("readable"===z||void 0===z)&&process.nextTick(U,this),Ge},b.prototype.resume=function(){var z=this._readableState;return z.flowing||(D("resume"),z.flowing=!z.readableListening,function Ce(z,Ge){Ge.resumeScheduled||(Ge.resumeScheduled=!0,process.nextTick(Be,z,Ge))}(this,z)),z.paused=!1,this},b.prototype.pause=function(){return D("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(D("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},b.prototype.wrap=function(z){var Ge=this,vt=this._readableState,Re=!1;for(var Ne in z.on("end",function(){if(D("wrapped end"),vt.decoder&&!vt.ended){var Le=vt.decoder.end();Le&&Le.length&&Ge.push(Le)}Ge.push(null)}),z.on("data",function(Le){D("wrapped data"),vt.decoder&&(Le=vt.decoder.write(Le)),vt.objectMode&&null==Le||!(vt.objectMode||Le&&Le.length)||Ge.push(Le)||(Re=!0,z.pause())}),z)void 0===this[Ne]&&"function"==typeof z[Ne]&&(this[Ne]=function(ke){return function(){return z[ke].apply(z,arguments)}}(Ne));for(var he=0;he<de.length;he++)z.on(de[he],this.emit.bind(this,de[he]));return this._read=function(Le){D("wrapped _read",Le),Re&&(Re=!1,z.resume())},this},"function"==typeof Symbol&&(b.prototype[Symbol.asyncIterator]=function(){return void 0===_e&&(_e=m(3872)),_e(this)}),Object.defineProperty(b.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(b.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(b.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(Ge){this._readableState&&(this._readableState.flowing=Ge)}}),b._fromList=Ie,Object.defineProperty(b.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(b.from=function(z,Ge){return void 0===ce&&(ce=m(7412)),ce(b,z,Ge)})},6025:(Ve,Q,m)=>{"use strict";Ve.exports=N;var e=m(891).q,t=e.ERR_METHOD_NOT_IMPLEMENTED,y=e.ERR_MULTIPLE_CALLBACK,C=e.ERR_TRANSFORM_ALREADY_TRANSFORMING,o=e.ERR_TRANSFORM_WITH_LENGTH_0,M=m(1339);function l(A,O){var E=this._transformState;E.transforming=!1;var P=E.writecb;if(null===P)return this.emit("error",new y);E.writechunk=null,E.writecb=null,null!=O&&this.push(O),P(A);var w=this._readableState;w.reading=!1,(w.needReadable||w.length<w.highWaterMark)&&this._read(w.highWaterMark)}function N(A){if(!(this instanceof N))return new N(A);M.call(this,A),this._transformState={afterTransform:l.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,A&&("function"==typeof A.transform&&(this._transform=A.transform),"function"==typeof A.flush&&(this._flush=A.flush)),this.on("prefinish",s)}function s(){var A=this;"function"!=typeof this._flush||this._readableState.destroyed?D(this,null,null):this._flush(function(O,E){D(A,O,E)})}function D(A,O,E){if(O)return A.emit("error",O);if(null!=E&&A.push(E),A._writableState.length)throw new o;if(A._transformState.transforming)throw new C;return A.push(null)}m(3894)(N,M),N.prototype.push=function(A,O){return this._transformState.needTransform=!1,M.prototype.push.call(this,A,O)},N.prototype._transform=function(A,O,E){E(new t("_transform()"))},N.prototype._write=function(A,O,E){var P=this._transformState;if(P.writecb=E,P.writechunk=A,P.writeencoding=O,!P.transforming){var w=this._readableState;(P.needTransform||w.needReadable||w.length<w.highWaterMark)&&this._read(w.highWaterMark)}},N.prototype._read=function(A){var O=this._transformState;null===O.writechunk||O.transforming?O.needTransform=!0:(O.transforming=!0,this._transform(O.writechunk,O.writeencoding,O.afterTransform))},N.prototype._destroy=function(A,O){M.prototype._destroy.call(this,A,function(E){O(E)})}},520:(Ve,Q,m)=>{"use strict";function t(ze){var Ie=this;this.next=null,this.entry=null,this.finish=function(){!function Be(ze,Ie,K){var Me=ze.entry;for(ze.entry=null;Me;){var we=Me.callback;Ie.pendingcb--,we(K),Me=Me.next}Ie.corkedRequestsFree.next=ze}(Ie,ze)}}var y;Ve.exports=ae,ae.WritableState=de;var oe,C={deprecate:m(4364)},o=m(4970),M=m(3172).Buffer,l=global.Uint8Array||function(){},D=m(1920),O=m(7102).getHighWaterMark,E=m(891).q,P=E.ERR_INVALID_ARG_TYPE,w=E.ERR_METHOD_NOT_IMPLEMENTED,Z=E.ERR_MULTIPLE_CALLBACK,j=E.ERR_STREAM_CANNOT_PIPE,W=E.ERR_STREAM_DESTROYED,ie=E.ERR_STREAM_NULL_VALUES,ee=E.ERR_STREAM_WRITE_AFTER_END,_e=E.ERR_UNKNOWN_ENCODING,ce=D.errorOrDestroy;function re(){}function de(ze,Ie,K){y=y||m(1339),"boolean"!=typeof K&&(K=Ie instanceof y),this.objectMode=!!(ze=ze||{}).objectMode,K&&(this.objectMode=this.objectMode||!!ze.writableObjectMode),this.highWaterMark=O(this,ze,"writableHighWaterMark",K),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1,this.decodeStrings=!(!1===ze.decodeStrings),this.defaultEncoding=ze.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(we){!function I(ze,Ie){var K=ze._writableState,Me=K.sync,we=K.writecb;if("function"!=typeof we)throw new Z;if(function L(ze){ze.writing=!1,ze.writecb=null,ze.length-=ze.writelen,ze.writelen=0}(K),Ie)!function _(ze,Ie,K,Me,we){--Ie.pendingcb,K?(process.nextTick(we,Me),process.nextTick(ye,ze,Ie),ze._writableState.errorEmitted=!0,ce(ze,Me)):(we(Me),ze._writableState.errorEmitted=!0,ce(ze,Me),ye(ze,Ie))}(ze,K,Me,Ie,we);else{var z=G(K)||ze.destroyed;!z&&!K.corked&&!K.bufferProcessing&&K.bufferedRequest&&v(ze,K),Me?process.nextTick(x,ze,K,z,we):x(ze,K,z,we)}}(Ie,we)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==ze.emitClose,this.autoDestroy=!!ze.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new t(this)}function ae(ze){var Ie=this instanceof(y=y||m(1339));if(!Ie&&!oe.call(ae,this))return new ae(ze);this._writableState=new de(ze,this,Ie),this.writable=!0,ze&&("function"==typeof ze.write&&(this._write=ze.write),"function"==typeof ze.writev&&(this._writev=ze.writev),"function"==typeof ze.destroy&&(this._destroy=ze.destroy),"function"==typeof ze.final&&(this._final=ze.final)),o.call(this)}function u(ze,Ie,K,Me,we,z,Ge){Ie.writelen=Me,Ie.writecb=Ge,Ie.writing=!0,Ie.sync=!0,Ie.destroyed?Ie.onwrite(new W("write")):K?ze._writev(we,Ie.onwrite):ze._write(we,z,Ie.onwrite),Ie.sync=!1}function x(ze,Ie,K,Me){K||function r(ze,Ie){0===Ie.length&&Ie.needDrain&&(Ie.needDrain=!1,ze.emit("drain"))}(ze,Ie),Ie.pendingcb--,Me(),ye(ze,Ie)}function v(ze,Ie){Ie.bufferProcessing=!0;var K=Ie.bufferedRequest;if(ze._writev&&K&&K.next){var we=new Array(Ie.bufferedRequestCount),z=Ie.corkedRequestsFree;z.entry=K;for(var Ge=0,vt=!0;K;)we[Ge]=K,K.isBuf||(vt=!1),K=K.next,Ge+=1;we.allBuffers=vt,u(ze,Ie,!0,Ie.length,we,"",z.finish),Ie.pendingcb++,Ie.lastBufferedRequest=null,z.next?(Ie.corkedRequestsFree=z.next,z.next=null):Ie.corkedRequestsFree=new t(Ie),Ie.bufferedRequestCount=0}else{for(;K;){var Re=K.chunk;if(u(ze,Ie,!1,Ie.objectMode?1:Re.length,Re,K.encoding,K.callback),K=K.next,Ie.bufferedRequestCount--,Ie.writing)break}null===K&&(Ie.lastBufferedRequest=null)}Ie.bufferedRequest=K,Ie.bufferProcessing=!1}function G(ze){return ze.ending&&0===ze.length&&null===ze.bufferedRequest&&!ze.finished&&!ze.writing}function F(ze,Ie){ze._final(function(K){Ie.pendingcb--,K&&ce(ze,K),Ie.prefinished=!0,ze.emit("prefinish"),ye(ze,Ie)})}function ye(ze,Ie){var K=G(Ie);if(K&&(function U(ze,Ie){!Ie.prefinished&&!Ie.finalCalled&&("function"!=typeof ze._final||Ie.destroyed?(Ie.prefinished=!0,ze.emit("prefinish")):(Ie.pendingcb++,Ie.finalCalled=!0,process.nextTick(F,ze,Ie)))}(ze,Ie),0===Ie.pendingcb&&(Ie.finished=!0,ze.emit("finish"),Ie.autoDestroy))){var Me=ze._readableState;(!Me||Me.autoDestroy&&Me.endEmitted)&&ze.destroy()}return K}m(3894)(ae,o),de.prototype.getBuffer=function(){for(var Ie=this.bufferedRequest,K=[];Ie;)K.push(Ie),Ie=Ie.next;return K},function(){try{Object.defineProperty(de.prototype,"buffer",{get:C.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(ze){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(oe=Function.prototype[Symbol.hasInstance],Object.defineProperty(ae,Symbol.hasInstance,{value:function(Ie){return!!oe.call(this,Ie)||this===ae&&Ie&&Ie._writableState instanceof de}})):oe=function(Ie){return Ie instanceof this},ae.prototype.pipe=function(){ce(this,new j)},ae.prototype.write=function(ze,Ie,K){var Me=this._writableState,we=!1,z=!Me.objectMode&&function s(ze){return M.isBuffer(ze)||ze instanceof l}(ze);return z&&!M.isBuffer(ze)&&(ze=function N(ze){return M.from(ze)}(ze)),"function"==typeof Ie&&(K=Ie,Ie=null),z?Ie="buffer":Ie||(Ie=Me.defaultEncoding),"function"!=typeof K&&(K=re),Me.ending?function b(ze,Ie){var K=new ee;ce(ze,K),process.nextTick(Ie,K)}(this,K):(z||function i(ze,Ie,K,Me){var we;return null===K?we=new ie:"string"!=typeof K&&!Ie.objectMode&&(we=new P("chunk",["string","Buffer"],K)),!we||(ce(ze,we),process.nextTick(Me,we),!1)}(this,Me,ze,K))&&(Me.pendingcb++,we=function p(ze,Ie,K,Me,we,z){if(!K){var Ge=function a(ze,Ie,K){return!ze.objectMode&&!1!==ze.decodeStrings&&"string"==typeof Ie&&(Ie=M.from(Ie,K)),Ie}(Ie,Me,we);Me!==Ge&&(K=!0,we="buffer",Me=Ge)}var vt=Ie.objectMode?1:Me.length;Ie.length+=vt;var Re=Ie.length<Ie.highWaterMark;if(Re||(Ie.needDrain=!0),Ie.writing||Ie.corked){var Ne=Ie.lastBufferedRequest;Ie.lastBufferedRequest={chunk:Me,encoding:we,isBuf:K,callback:z,next:null},Ne?Ne.next=Ie.lastBufferedRequest:Ie.bufferedRequest=Ie.lastBufferedRequest,Ie.bufferedRequestCount+=1}else u(ze,Ie,!1,vt,Me,we,z);return Re}(this,Me,z,ze,Ie,K)),we},ae.prototype.cork=function(){this._writableState.corked++},ae.prototype.uncork=function(){var ze=this._writableState;ze.corked&&(ze.corked--,!ze.writing&&!ze.corked&&!ze.bufferProcessing&&ze.bufferedRequest&&v(this,ze))},ae.prototype.setDefaultEncoding=function(Ie){if("string"==typeof Ie&&(Ie=Ie.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Ie+"").toLowerCase())>-1))throw new _e(Ie);return this._writableState.defaultEncoding=Ie,this},Object.defineProperty(ae.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(ae.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),ae.prototype._write=function(ze,Ie,K){K(new w("_write()"))},ae.prototype._writev=null,ae.prototype.end=function(ze,Ie,K){var Me=this._writableState;return"function"==typeof ze?(K=ze,ze=null,Ie=null):"function"==typeof Ie&&(K=Ie,Ie=null),null!=ze&&this.write(ze,Ie),Me.corked&&(Me.corked=1,this.uncork()),Me.ending||function Ce(ze,Ie,K){Ie.ending=!0,ye(ze,Ie),K&&(Ie.finished?process.nextTick(K):ze.once("finish",K)),Ie.ended=!0,ze.writable=!1}(this,Me,K),this},Object.defineProperty(ae.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(ae.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(Ie){!this._writableState||(this._writableState.destroyed=Ie)}}),ae.prototype.destroy=D.destroy,ae.prototype._undestroy=D.undestroy,ae.prototype._destroy=function(ze,Ie){Ie(ze)}},3872:(Ve,Q,m)=>{"use strict";var e;function t(W,ie,ee){return ie in W?Object.defineProperty(W,ie,{value:ee,enumerable:!0,configurable:!0,writable:!0}):W[ie]=ee,W}var y=m(7542),C=Symbol("lastResolve"),o=Symbol("lastReject"),M=Symbol("error"),l=Symbol("ended"),N=Symbol("lastPromise"),s=Symbol("handlePromise"),D=Symbol("stream");function A(W,ie){return{value:W,done:ie}}function O(W){var ie=W[C];if(null!==ie){var ee=W[D].read();null!==ee&&(W[N]=null,W[C]=null,W[o]=null,ie(A(ee,!1)))}}function E(W){process.nextTick(O,W)}var w=Object.getPrototypeOf(function(){}),Z=Object.setPrototypeOf((t(e={get stream(){return this[D]},next:function(){var ie=this,ee=this[M];if(null!==ee)return Promise.reject(ee);if(this[l])return Promise.resolve(A(void 0,!0));if(this[D].destroyed)return new Promise(function(de,oe){process.nextTick(function(){ie[M]?oe(ie[M]):de(A(void 0,!0))})});var ce,_e=this[N];if(_e)ce=new Promise(function P(W,ie){return function(ee,_e){W.then(function(){ie[l]?ee(A(void 0,!0)):ie[s](ee,_e)},_e)}}(_e,this));else{var re=this[D].read();if(null!==re)return Promise.resolve(A(re,!1));ce=new Promise(this[s])}return this[N]=ce,ce}},Symbol.asyncIterator,function(){return this}),t(e,"return",function(){var ie=this;return new Promise(function(ee,_e){ie[D].destroy(null,function(ce){ce?_e(ce):ee(A(void 0,!0))})})}),e),w);Ve.exports=function(ie){var ee,_e=Object.create(Z,(t(ee={},D,{value:ie,writable:!0}),t(ee,C,{value:null,writable:!0}),t(ee,o,{value:null,writable:!0}),t(ee,M,{value:null,writable:!0}),t(ee,l,{value:ie._readableState.endEmitted,writable:!0}),t(ee,s,{value:function(re,de){var oe=_e[D].read();oe?(_e[N]=null,_e[C]=null,_e[o]=null,re(A(oe,!1))):(_e[C]=re,_e[o]=de)},writable:!0}),ee));return _e[N]=null,y(ie,function(ce){if(ce&&"ERR_STREAM_PREMATURE_CLOSE"!==ce.code){var re=_e[o];return null!==re&&(_e[N]=null,_e[C]=null,_e[o]=null,re(ce)),void(_e[M]=ce)}var de=_e[C];null!==de&&(_e[N]=null,_e[C]=null,_e[o]=null,de(A(void 0,!0))),_e[l]=!0}),ie.on("readable",E.bind(null,_e)),_e}},5019:(Ve,Q,m)=>{"use strict";function e(E,P){var w=Object.keys(E);if(Object.getOwnPropertySymbols){var Z=Object.getOwnPropertySymbols(E);P&&(Z=Z.filter(function(j){return Object.getOwnPropertyDescriptor(E,j).enumerable})),w.push.apply(w,Z)}return w}function y(E,P,w){return P in E?Object.defineProperty(E,P,{value:w,enumerable:!0,configurable:!0,writable:!0}):E[P]=w,E}function o(E,P){for(var w=0;w<P.length;w++){var Z=P[w];Z.enumerable=Z.enumerable||!1,Z.configurable=!0,"value"in Z&&(Z.writable=!0),Object.defineProperty(E,Z.key,Z)}}var N=m(3172).Buffer,D=m(2361).inspect,A=D&&D.custom||"inspect";function O(E,P,w){N.prototype.copy.call(E,P,w)}Ve.exports=function(){function E(){(function C(E,P){if(!(E instanceof P))throw new TypeError("Cannot call a class as a function")})(this,E),this.head=null,this.tail=null,this.length=0}return function M(E,P,w){P&&o(E.prototype,P),w&&o(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,j=""+Z.data;Z=Z.next;)j+=w+Z.data;return j}},{key:"concat",value:function(w){if(0===this.length)return N.alloc(0);for(var Z=N.allocUnsafe(w>>>0),j=this.head,W=0;j;)O(j.data,Z,W),W+=j.data.length,j=j.next;return Z}},{key:"consume",value:function(w,Z){var j;return w<this.head.data.length?(j=this.head.data.slice(0,w),this.head.data=this.head.data.slice(w)):j=w===this.head.data.length?this.shift():Z?this._getString(w):this._getBuffer(w),j}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(w){var Z=this.head,j=1,W=Z.data;for(w-=W.length;Z=Z.next;){var ie=Z.data,ee=w>ie.length?ie.length:w;if(W+=ee===ie.length?ie:ie.slice(0,w),0==(w-=ee)){ee===ie.length?(++j,this.head=Z.next?Z.next:this.tail=null):(this.head=Z,Z.data=ie.slice(ee));break}++j}return this.length-=j,W}},{key:"_getBuffer",value:function(w){var Z=N.allocUnsafe(w),j=this.head,W=1;for(j.data.copy(Z),w-=j.data.length;j=j.next;){var ie=j.data,ee=w>ie.length?ie.length:w;if(ie.copy(Z,Z.length-w,0,ee),0==(w-=ee)){ee===ie.length?(++W,this.head=j.next?j.next:this.tail=null):(this.head=j,j.data=ie.slice(ee));break}++W}return this.length-=W,Z}},{key:A,value:function(w,Z){return D(this,function t(E){for(var P=1;P<arguments.length;P++){var w=null!=arguments[P]?arguments[P]:{};P%2?e(Object(w),!0).forEach(function(Z){y(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:Ve=>{"use strict";function m(o,M){y(o,M),e(o)}function e(o){o._writableState&&!o._writableState.emitClose||o._readableState&&!o._readableState.emitClose||o.emit("close")}function y(o,M){o.emit("error",M)}Ve.exports={destroy:function Q(o,M){var l=this;return this._readableState&&this._readableState.destroyed||this._writableState&&this._writableState.destroyed?(M?M(o):o&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(y,this,o)):process.nextTick(y,this,o)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(o||null,function(D){!M&&D?l._writableState?l._writableState.errorEmitted?process.nextTick(e,l):(l._writableState.errorEmitted=!0,process.nextTick(m,l,D)):process.nextTick(m,l,D):M?(process.nextTick(e,l),M(D)):process.nextTick(e,l)}),this)},undestroy:function t(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function C(o,M){var l=o._readableState,N=o._writableState;l&&l.autoDestroy||N&&N.autoDestroy?o.destroy(M):o.emit("error",M)}}},7542:(Ve,Q,m)=>{"use strict";var e=m(891).q.ERR_STREAM_PREMATURE_CLOSE;function y(){}Ve.exports=function o(M,l,N){if("function"==typeof l)return o(M,null,l);l||(l={}),N=function t(M){var l=!1;return function(){if(!l){l=!0;for(var N=arguments.length,s=new Array(N),D=0;D<N;D++)s[D]=arguments[D];M.apply(this,s)}}}(N||y);var s=l.readable||!1!==l.readable&&M.readable,D=l.writable||!1!==l.writable&&M.writable,A=function(){M.writable||E()},O=M._writableState&&M._writableState.finished,E=function(){D=!1,O=!0,s||N.call(M)},P=M._readableState&&M._readableState.endEmitted,w=function(){s=!1,P=!0,D||N.call(M)},Z=function(ee){N.call(M,ee)},j=function(){var ee;return s&&!P?((!M._readableState||!M._readableState.ended)&&(ee=new e),N.call(M,ee)):D&&!O?((!M._writableState||!M._writableState.ended)&&(ee=new e),N.call(M,ee)):void 0},W=function(){M.req.on("finish",E)};return function C(M){return M.setHeader&&"function"==typeof M.abort}(M)?(M.on("complete",E),M.on("abort",j),M.req?W():M.on("request",W)):D&&!M._writableState&&(M.on("end",A),M.on("close",A)),M.on("end",w),M.on("finish",E),!1!==l.error&&M.on("error",Z),M.on("close",j),function(){M.removeListener("complete",E),M.removeListener("abort",j),M.removeListener("request",W),M.req&&M.req.removeListener("finish",E),M.removeListener("end",A),M.removeListener("close",A),M.removeListener("finish",E),M.removeListener("end",w),M.removeListener("error",Z),M.removeListener("close",j)}}},7412:Ve=>{Ve.exports=function(){throw new Error("Readable.from is not available in the browser")}},954:(Ve,Q,m)=>{"use strict";var e,y=m(891).q,C=y.ERR_MISSING_ARGS,o=y.ERR_STREAM_DESTROYED;function M(E){if(E)throw E}function N(E,P,w,Z){Z=function t(E){var P=!1;return function(){P||(P=!0,E.apply(void 0,arguments))}}(Z);var j=!1;E.on("close",function(){j=!0}),void 0===e&&(e=m(7542)),e(E,{readable:P,writable:w},function(ie){if(ie)return Z(ie);j=!0,Z()});var W=!1;return function(ie){if(!j&&!W){if(W=!0,function l(E){return E.setHeader&&"function"==typeof E.abort}(E))return E.abort();if("function"==typeof E.destroy)return E.destroy();Z(ie||new o("pipe"))}}}function s(E){E()}function D(E,P){return E.pipe(P)}function A(E){return E.length&&"function"==typeof E[E.length-1]?E.pop():M}Ve.exports=function O(){for(var E=arguments.length,P=new Array(E),w=0;w<E;w++)P[w]=arguments[w];var Z=A(P);if(Array.isArray(P[0])&&(P=P[0]),P.length<2)throw new C("streams");var j,W=P.map(function(ie,ee){var _e=ee<P.length-1;return N(ie,_e,ee>0,function(re){j||(j=re),re&&W.forEach(s),!_e&&(W.forEach(s),Z(j))})});return P.reduce(D)}},7102:(Ve,Q,m)=>{"use strict";var e=m(891).q.ERR_INVALID_OPT_VALUE;Ve.exports={getHighWaterMark:function y(C,o,M,l){var N=function t(C,o,M){return null!=C.highWaterMark?C.highWaterMark:o?C[M]:null}(o,l,M);if(null!=N){if(!isFinite(N)||Math.floor(N)!==N||N<0)throw new e(l?M:"highWaterMark",N);return Math.floor(N)}return C.objectMode?16:16384}}},4970:(Ve,Q,m)=>{Ve.exports=m(9069).EventEmitter},5685:(Ve,Q,m)=>{(Q=Ve.exports=m(3154)).Stream=Q,Q.Readable=Q,Q.Writable=m(520),Q.Duplex=m(1339),Q.Transform=m(6025),Q.PassThrough=m(6071),Q.finished=m(7542),Q.pipeline=m(954)},5634:(Ve,Q,m)=>{"use strict";var e=m(3172).Buffer,t=m(3894),y=m(9650),C=new Array(16),o=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],M=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],l=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],N=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],s=[0,1518500249,1859775393,2400959708,2840853838],D=[1352829926,1548603684,1836072691,2053994217,0];function A(){y.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function O(W,ie){return W<<ie|W>>>32-ie}function E(W,ie,ee,_e,ce,re,de,oe){return O(W+(ie^ee^_e)+re+de|0,oe)+ce|0}function P(W,ie,ee,_e,ce,re,de,oe){return O(W+(ie&ee|~ie&_e)+re+de|0,oe)+ce|0}function w(W,ie,ee,_e,ce,re,de,oe){return O(W+((ie|~ee)^_e)+re+de|0,oe)+ce|0}function Z(W,ie,ee,_e,ce,re,de,oe){return O(W+(ie&_e|ee&~_e)+re+de|0,oe)+ce|0}function j(W,ie,ee,_e,ce,re,de,oe){return O(W+(ie^(ee|~_e))+re+de|0,oe)+ce|0}t(A,y),A.prototype._update=function(){for(var W=C,ie=0;ie<16;++ie)W[ie]=this._block.readInt32LE(4*ie);for(var ee=0|this._a,_e=0|this._b,ce=0|this._c,re=0|this._d,de=0|this._e,oe=0|this._a,ae=0|this._b,b=0|this._c,i=0|this._d,a=0|this._e,p=0;p<80;p+=1){var u,_;p<16?(u=E(ee,_e,ce,re,de,W[o[p]],s[0],l[p]),_=j(oe,ae,b,i,a,W[M[p]],D[0],N[p])):p<32?(u=P(ee,_e,ce,re,de,W[o[p]],s[1],l[p]),_=Z(oe,ae,b,i,a,W[M[p]],D[1],N[p])):p<48?(u=w(ee,_e,ce,re,de,W[o[p]],s[2],l[p]),_=w(oe,ae,b,i,a,W[M[p]],D[2],N[p])):p<64?(u=Z(ee,_e,ce,re,de,W[o[p]],s[3],l[p]),_=P(oe,ae,b,i,a,W[M[p]],D[3],N[p])):(u=j(ee,_e,ce,re,de,W[o[p]],s[4],l[p]),_=E(oe,ae,b,i,a,W[M[p]],D[4],N[p])),ee=de,de=re,re=O(ce,10),ce=_e,_e=u,oe=a,a=i,i=O(b,10),b=ae,ae=_}var L=this._b+ce+i|0;this._b=this._c+re+a|0,this._c=this._d+de+oe|0,this._d=this._e+ee+ae|0,this._e=this._a+_e+b|0,this._a=L},A.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var 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},Ve.exports=A},1135:(Ve,Q,m)=>{"use strict";m.d(Q,{X:()=>t});var e=m(7579);class t extends e.x{constructor(C){super(),this._value=C}get value(){return this.getValue()}_subscribe(C){const o=super._subscribe(C);return!o.closed&&C.next(this._value),o}getValue(){const{hasError:C,thrownError:o,_value:M}=this;if(C)throw o;return this._throwIfClosed(),M}next(C){super.next(this._value=C)}}},8306:(Ve,Q,m)=>{"use strict";m.d(Q,{y:()=>D});var e=m(930),t=m(727),y=m(8822),C=m(4671);var l=m(2416),N=m(576),s=m(2806);let D=(()=>{class P{constructor(Z){Z&&(this._subscribe=Z)}lift(Z){const j=new P;return j.source=this,j.operator=Z,j}subscribe(Z,j,W){const ie=function E(P){return P&&P instanceof e.Lv||function O(P){return P&&(0,N.m)(P.next)&&(0,N.m)(P.error)&&(0,N.m)(P.complete)}(P)&&(0,t.Nn)(P)}(Z)?Z:new e.Hp(Z,j,W);return(0,s.x)(()=>{const{operator:ee,source:_e}=this;ie.add(ee?ee.call(ie,_e):_e?this._subscribe(ie):this._trySubscribe(ie))}),ie}_trySubscribe(Z){try{return this._subscribe(Z)}catch(j){Z.error(j)}}forEach(Z,j){return new(j=A(j))((W,ie)=>{let ee;ee=this.subscribe(_e=>{try{Z(_e)}catch(ce){ie(ce),null==ee||ee.unsubscribe()}},ie,W)})}_subscribe(Z){var j;return null===(j=this.source)||void 0===j?void 0:j.subscribe(Z)}[y.L](){return this}pipe(...Z){return function M(P){return 0===P.length?C.y:1===P.length?P[0]:function(Z){return P.reduce((j,W)=>W(j),Z)}}(Z)(this)}toPromise(Z){return new(Z=A(Z))((j,W)=>{let ie;this.subscribe(ee=>ie=ee,ee=>W(ee),()=>j(ie))})}}return P.create=w=>new P(w),P})();function A(P){var w;return null!==(w=null!=P?P:l.v.Promise)&&void 0!==w?w:Promise}},4707:(Ve,Q,m)=>{"use strict";m.d(Q,{t:()=>y});var e=m(7579),t=m(6063);class y extends e.x{constructor(o=1/0,M=1/0,l=t.l){super(),this._bufferSize=o,this._windowTime=M,this._timestampProvider=l,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=M===1/0,this._bufferSize=Math.max(1,o),this._windowTime=Math.max(1,M)}next(o){const{isStopped:M,_buffer:l,_infiniteTimeWindow:N,_timestampProvider:s,_windowTime:D}=this;M||(l.push(o),!N&&l.push(s.now()+D)),this._trimBuffer(),super.next(o)}_subscribe(o){this._throwIfClosed(),this._trimBuffer();const M=this._innerSubscribe(o),{_infiniteTimeWindow:l,_buffer:N}=this,s=N.slice();for(let D=0;D<s.length&&!o.closed;D+=l?1:2)o.next(s[D]);return this._checkFinalizedStatuses(o),M}_trimBuffer(){const{_bufferSize:o,_timestampProvider:M,_buffer:l,_infiniteTimeWindow:N}=this,s=(N?1:2)*o;if(o<1/0&&s<l.length&&l.splice(0,l.length-s),!N){const D=M.now();let A=0;for(let O=1;O<l.length&&l[O]<=D;O+=2)A=O;A&&l.splice(0,A+1)}}}},7579:(Ve,Q,m)=>{"use strict";m.d(Q,{u:()=>N,x:()=>l});var e=m(8306),t=m(727);const C=(0,m(3888).d)(s=>function(){s(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var o=m(8737),M=m(2806);let l=(()=>{class s extends e.y{constructor(){super(),this.closed=!1,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(A){const O=new N(this,this);return O.operator=A,O}_throwIfClosed(){if(this.closed)throw new C}next(A){(0,M.x)(()=>{if(this._throwIfClosed(),!this.isStopped){const O=this.observers.slice();for(const E of O)E.next(A)}})}error(A){(0,M.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=A;const{observers:O}=this;for(;O.length;)O.shift().error(A)}})}complete(){(0,M.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:A}=this;for(;A.length;)A.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=null}get observed(){var A;return(null===(A=this.observers)||void 0===A?void 0:A.length)>0}_trySubscribe(A){return this._throwIfClosed(),super._trySubscribe(A)}_subscribe(A){return this._throwIfClosed(),this._checkFinalizedStatuses(A),this._innerSubscribe(A)}_innerSubscribe(A){const{hasError:O,isStopped:E,observers:P}=this;return O||E?t.Lc:(P.push(A),new t.w0(()=>(0,o.P)(P,A)))}_checkFinalizedStatuses(A){const{hasError:O,thrownError:E,isStopped:P}=this;O?A.error(E):P&&A.complete()}asObservable(){const A=new e.y;return A.source=this,A}}return s.create=(D,A)=>new N(D,A),s})();class N extends l{constructor(D,A){super(),this.destination=D,this.source=A}next(D){var A,O;null===(O=null===(A=this.destination)||void 0===A?void 0:A.next)||void 0===O||O.call(A,D)}error(D){var A,O;null===(O=null===(A=this.destination)||void 0===A?void 0:A.error)||void 0===O||O.call(A,D)}complete(){var D,A;null===(A=null===(D=this.destination)||void 0===D?void 0:D.complete)||void 0===A||A.call(D)}_subscribe(D){var A,O;return null!==(O=null===(A=this.source)||void 0===A?void 0:A.subscribe(D))&&void 0!==O?O:t.Lc}}},930:(Ve,Q,m)=>{"use strict";m.d(Q,{Hp:()=>E,Lv:()=>O});var e=m(576),t=m(727),y=m(2416),C=m(7849),o=m(5032);const M=s("C",void 0,void 0);function s(W,ie,ee){return{kind:W,value:ie,error:ee}}var D=m(3410),A=m(2806);class O extends t.w0{constructor(ie){super(),this.isStopped=!1,ie?(this.destination=ie,(0,t.Nn)(ie)&&ie.add(this)):this.destination=j}static create(ie,ee,_e){return new E(ie,ee,_e)}next(ie){this.isStopped?Z(function N(W){return s("N",W,void 0)}(ie),this):this._next(ie)}error(ie){this.isStopped?Z(function l(W){return s("E",void 0,W)}(ie),this):(this.isStopped=!0,this._error(ie))}complete(){this.isStopped?Z(M,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(ie){this.destination.next(ie)}_error(ie){try{this.destination.error(ie)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}class E extends O{constructor(ie,ee,_e){let ce;if(super(),(0,e.m)(ie))ce=ie;else if(ie){let re;({next:ce,error:ee,complete:_e}=ie),this&&y.v.useDeprecatedNextContext?(re=Object.create(ie),re.unsubscribe=()=>this.unsubscribe()):re=ie,ce=null==ce?void 0:ce.bind(re),ee=null==ee?void 0:ee.bind(re),_e=null==_e?void 0:_e.bind(re)}this.destination={next:ce?P(ce):o.Z,error:P(null!=ee?ee:w),complete:_e?P(_e):o.Z}}}function P(W,ie){return(...ee)=>{try{W(...ee)}catch(_e){y.v.useDeprecatedSynchronousErrorHandling?(0,A.O)(_e):(0,C.h)(_e)}}}function w(W){throw W}function Z(W,ie){const{onStoppedNotification:ee}=y.v;ee&&D.z.setTimeout(()=>ee(W,ie))}const j={closed:!0,next:o.Z,error:w,complete:o.Z}},727:(Ve,Q,m)=>{"use strict";m.d(Q,{Lc:()=>M,w0:()=>o,Nn:()=>l});var e=m(576);const y=(0,m(3888).d)(s=>function(A){s(this),this.message=A?`${A.length} errors occurred during unsubscription:\n${A.map((O,E)=>`${E+1}) ${O.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=A});var C=m(8737);class o{constructor(D){this.initialTeardown=D,this.closed=!1,this._parentage=null,this._teardowns=null}unsubscribe(){let D;if(!this.closed){this.closed=!0;const{_parentage:A}=this;if(A)if(this._parentage=null,Array.isArray(A))for(const P of A)P.remove(this);else A.remove(this);const{initialTeardown:O}=this;if((0,e.m)(O))try{O()}catch(P){D=P instanceof y?P.errors:[P]}const{_teardowns:E}=this;if(E){this._teardowns=null;for(const P of E)try{N(P)}catch(w){D=null!=D?D:[],w instanceof y?D=[...D,...w.errors]:D.push(w)}}if(D)throw new y(D)}}add(D){var A;if(D&&D!==this)if(this.closed)N(D);else{if(D instanceof o){if(D.closed||D._hasParent(this))return;D._addParent(this)}(this._teardowns=null!==(A=this._teardowns)&&void 0!==A?A:[]).push(D)}}_hasParent(D){const{_parentage:A}=this;return A===D||Array.isArray(A)&&A.includes(D)}_addParent(D){const{_parentage:A}=this;this._parentage=Array.isArray(A)?(A.push(D),A):A?[A,D]:D}_removeParent(D){const{_parentage:A}=this;A===D?this._parentage=null:Array.isArray(A)&&(0,C.P)(A,D)}remove(D){const{_teardowns:A}=this;A&&(0,C.P)(A,D),D instanceof o&&D._removeParent(this)}}o.EMPTY=(()=>{const s=new o;return s.closed=!0,s})();const M=o.EMPTY;function l(s){return s instanceof o||s&&"closed"in s&&(0,e.m)(s.remove)&&(0,e.m)(s.add)&&(0,e.m)(s.unsubscribe)}function N(s){(0,e.m)(s)?s():s.unsubscribe()}},2416:(Ve,Q,m)=>{"use strict";m.d(Q,{v:()=>e});const e={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9841:(Ve,Q,m)=>{"use strict";m.d(Q,{a:()=>D});var e=m(8306),t=m(4742),y=m(457),C=m(4671),o=m(3268),M=m(3269),l=m(1810),N=m(5403),s=m(9672);function D(...E){const P=(0,M.yG)(E),w=(0,M.jO)(E),{args:Z,keys:j}=(0,t.D)(E);if(0===Z.length)return(0,y.D)([],P);const W=new e.y(function A(E,P,w=C.y){return Z=>{O(P,()=>{const{length:j}=E,W=new Array(j);let ie=j,ee=j;for(let _e=0;_e<j;_e++)O(P,()=>{const ce=(0,y.D)(E[_e],P);let re=!1;ce.subscribe(new N.Q(Z,de=>{W[_e]=de,re||(re=!0,ee--),ee||Z.next(w(W.slice()))},()=>{--ie||Z.complete()}))},Z)},Z)}}(Z,P,j?ie=>(0,l.n)(j,ie):C.y));return w?W.pipe((0,o.Z)(w)):W}function O(E,P,w){E?(0,s.f)(w,E,P):P()}},7272:(Ve,Q,m)=>{"use strict";m.d(Q,{z:()=>o});var e=m(8189),y=m(3269),C=m(457);function o(...M){return function t(){return(0,e.J)(1)}()((0,C.D)(M,(0,y.yG)(M)))}},9770:(Ve,Q,m)=>{"use strict";m.d(Q,{P:()=>y});var e=m(8306),t=m(8421);function y(C){return new e.y(o=>{(0,t.Xf)(C()).subscribe(o)})}},515:(Ve,Q,m)=>{"use strict";m.d(Q,{E:()=>t});const t=new(m(8306).y)(o=>o.complete())},4128:(Ve,Q,m)=>{"use strict";m.d(Q,{D:()=>N});var e=m(8306),t=m(4742),y=m(8421),C=m(3269),o=m(5403),M=m(3268),l=m(1810);function N(...s){const D=(0,C.jO)(s),{args:A,keys:O}=(0,t.D)(s),E=new e.y(P=>{const{length:w}=A;if(!w)return void P.complete();const Z=new Array(w);let j=w,W=w;for(let ie=0;ie<w;ie++){let ee=!1;(0,y.Xf)(A[ie]).subscribe(new o.Q(P,_e=>{ee||(ee=!0,W--),Z[ie]=_e},()=>j--,void 0,()=>{(!j||!ee)&&(W||P.next(O?(0,l.n)(O,Z):Z),P.complete())}))}});return D?E.pipe((0,M.Z)(D)):E}},457:(Ve,Q,m)=>{"use strict";m.d(Q,{D:()=>re});var e=m(8421),t=m(5363),y=m(4482);function C(de,oe=0){return(0,y.e)((ae,b)=>{b.add(de.schedule(()=>ae.subscribe(b),oe))})}var l=m(8306),s=m(2202),D=m(576),A=m(9672);function E(de,oe){if(!de)throw new Error("Iterable cannot be null");return new l.y(ae=>{(0,A.f)(ae,oe,()=>{const b=de[Symbol.asyncIterator]();(0,A.f)(ae,oe,()=>{b.next().then(i=>{i.done?ae.complete():ae.next(i.value)})},0,!0)})})}var P=m(3670),w=m(8239),Z=m(1144),j=m(6495),W=m(2206),ie=m(4532),ee=m(3260);function re(de,oe){return oe?function ce(de,oe){if(null!=de){if((0,P.c)(de))return function o(de,oe){return(0,e.Xf)(de).pipe(C(oe),(0,t.Q)(oe))}(de,oe);if((0,Z.z)(de))return function N(de,oe){return new l.y(ae=>{let b=0;return oe.schedule(function(){b===de.length?ae.complete():(ae.next(de[b++]),ae.closed||this.schedule())})})}(de,oe);if((0,w.t)(de))return function M(de,oe){return(0,e.Xf)(de).pipe(C(oe),(0,t.Q)(oe))}(de,oe);if((0,W.D)(de))return E(de,oe);if((0,j.T)(de))return function O(de,oe){return new l.y(ae=>{let b;return(0,A.f)(ae,oe,()=>{b=de[s.h](),(0,A.f)(ae,oe,()=>{let i,a;try{({value:i,done:a}=b.next())}catch(p){return void ae.error(p)}a?ae.complete():ae.next(i)},0,!0)}),()=>(0,D.m)(null==b?void 0:b.return)&&b.return()})}(de,oe);if((0,ee.L)(de))return function _e(de,oe){return E((0,ee.Q)(de),oe)}(de,oe)}throw(0,ie.z)(de)}(de,oe):(0,e.Xf)(de)}},4968:(Ve,Q,m)=>{"use strict";m.d(Q,{R:()=>D});var e=m(8421),t=m(8306),y=m(5577),C=m(1144),o=m(576),M=m(3268);const l=["addListener","removeListener"],N=["addEventListener","removeEventListener"],s=["on","off"];function D(w,Z,j,W){if((0,o.m)(j)&&(W=j,j=void 0),W)return D(w,Z,j).pipe((0,M.Z)(W));const[ie,ee]=function P(w){return(0,o.m)(w.addEventListener)&&(0,o.m)(w.removeEventListener)}(w)?N.map(_e=>ce=>w[_e](Z,ce,j)):function O(w){return(0,o.m)(w.addListener)&&(0,o.m)(w.removeListener)}(w)?l.map(A(w,Z)):function E(w){return(0,o.m)(w.on)&&(0,o.m)(w.off)}(w)?s.map(A(w,Z)):[];if(!ie&&(0,C.z)(w))return(0,y.z)(_e=>D(_e,Z,j))((0,e.Xf)(w));if(!ie)throw new TypeError("Invalid event target");return new t.y(_e=>{const ce=(...re)=>_e.next(1<re.length?re:re[0]);return ie(ce),()=>ee(ce)})}function A(w,Z){return j=>W=>w[j](Z,W)}},8421:(Ve,Q,m)=>{"use strict";m.d(Q,{Xf:()=>E});var e=m(5987),t=m(1144),y=m(8239),C=m(8306),o=m(3670),M=m(2206),l=m(4532),N=m(6495),s=m(3260),D=m(576),A=m(7849),O=m(8822);function E(_e){if(_e instanceof C.y)return _e;if(null!=_e){if((0,o.c)(_e))return function P(_e){return new C.y(ce=>{const re=_e[O.L]();if((0,D.m)(re.subscribe))return re.subscribe(ce);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(_e);if((0,t.z)(_e))return function w(_e){return new C.y(ce=>{for(let re=0;re<_e.length&&!ce.closed;re++)ce.next(_e[re]);ce.complete()})}(_e);if((0,y.t)(_e))return function Z(_e){return new C.y(ce=>{_e.then(re=>{ce.closed||(ce.next(re),ce.complete())},re=>ce.error(re)).then(null,A.h)})}(_e);if((0,M.D)(_e))return W(_e);if((0,N.T)(_e))return function j(_e){return new C.y(ce=>{for(const re of _e)if(ce.next(re),ce.closed)return;ce.complete()})}(_e);if((0,s.L)(_e))return function ie(_e){return W((0,s.Q)(_e))}(_e)}throw(0,l.z)(_e)}function W(_e){return new C.y(ce=>{(function ee(_e,ce){var re,de,oe,ae;return(0,e.mG)(this,void 0,void 0,function*(){try{for(re=(0,e.KL)(_e);!(de=yield re.next()).done;)if(ce.next(de.value),ce.closed)return}catch(b){oe={error:b}}finally{try{de&&!de.done&&(ae=re.return)&&(yield ae.call(re))}finally{if(oe)throw oe.error}}ce.complete()})})(_e,ce).catch(re=>ce.error(re))})}},6451:(Ve,Q,m)=>{"use strict";m.d(Q,{T:()=>M});var e=m(8189),t=m(8421),y=m(515),C=m(3269),o=m(457);function M(...l){const N=(0,C.yG)(l),s=(0,C._6)(l,1/0),D=l;return D.length?1===D.length?(0,t.Xf)(D[0]):(0,e.J)(s)((0,o.D)(D,N)):y.E}},9646:(Ve,Q,m)=>{"use strict";m.d(Q,{of:()=>y});var e=m(3269),t=m(457);function y(...C){const o=(0,e.yG)(C);return(0,t.D)(C,o)}},2843:(Ve,Q,m)=>{"use strict";m.d(Q,{_:()=>y});var e=m(8306),t=m(576);function y(C,o){const M=(0,t.m)(C)?C:()=>C,l=N=>N.error(M());return new e.y(o?N=>o.schedule(l,0,N):l)}},2805:(Ve,Q,m)=>{"use strict";m.d(Q,{H:()=>o});var e=m(8306),t=m(4986),y=m(3532),C=m(1165);function o(M=0,l,N=t.P){let s=-1;return null!=l&&((0,y.K)(l)?N=l:s=l),new e.y(D=>{let A=(0,C.q)(M)?+M-N.now():M;A<0&&(A=0);let O=0;return N.schedule(function(){D.closed||(D.next(O++),0<=s?this.schedule(void 0,s):D.complete())},A)})}},5403:(Ve,Q,m)=>{"use strict";m.d(Q,{Q:()=>t});var e=m(930);class t extends e.Lv{constructor(C,o,M,l,N){super(C),this.onFinalize=N,this._next=o?function(s){try{o(s)}catch(D){C.error(D)}}:super._next,this._error=l?function(s){try{l(s)}catch(D){C.error(D)}finally{this.unsubscribe()}}:super._error,this._complete=M?function(){try{M()}catch(s){C.error(s)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var C;const{closed:o}=this;super.unsubscribe(),!o&&(null===(C=this.onFinalize)||void 0===C||C.call(this))}}},3601:(Ve,Q,m)=>{"use strict";m.d(Q,{e:()=>l});var e=m(4986),t=m(4482),y=m(8421),C=m(5403),M=m(2805);function l(N,s=e.P){return function o(N){return(0,t.e)((s,D)=>{let A=!1,O=null,E=null,P=!1;const w=()=>{if(null==E||E.unsubscribe(),E=null,A){A=!1;const j=O;O=null,D.next(j)}P&&D.complete()},Z=()=>{E=null,P&&D.complete()};s.subscribe(new C.Q(D,j=>{A=!0,O=j,E||(0,y.Xf)(N(j)).subscribe(E=new C.Q(D,w,Z))},()=>{P=!0,(!A||!E||E.closed)&&D.complete()}))})}(()=>(0,M.H)(N,s))}},262:(Ve,Q,m)=>{"use strict";m.d(Q,{K:()=>C});var e=m(8421),t=m(5403),y=m(4482);function C(o){return(0,y.e)((M,l)=>{let D,N=null,s=!1;N=M.subscribe(new t.Q(l,void 0,void 0,A=>{D=(0,e.Xf)(o(A,C(o)(M))),N?(N.unsubscribe(),N=null,D.subscribe(l)):s=!0})),s&&(N.unsubscribe(),N=null,D.subscribe(l))})}},4351:(Ve,Q,m)=>{"use strict";m.d(Q,{b:()=>y});var e=m(5577),t=m(576);function y(C,o){return(0,t.m)(o)?(0,e.z)(C,o,1):(0,e.z)(C,1)}},8372:(Ve,Q,m)=>{"use strict";m.d(Q,{b:()=>C});var e=m(4986),t=m(4482),y=m(5403);function C(o,M=e.z){return(0,t.e)((l,N)=>{let s=null,D=null,A=null;const O=()=>{if(s){s.unsubscribe(),s=null;const P=D;D=null,N.next(P)}};function E(){const P=A+o,w=M.now();if(w<P)return s=this.schedule(void 0,P-w),void N.add(s);O()}l.subscribe(new y.Q(N,P=>{D=P,A=M.now(),s||(s=M.schedule(E,o),N.add(s))},()=>{O(),N.complete()},void 0,()=>{D=s=null}))})}},6590:(Ve,Q,m)=>{"use strict";m.d(Q,{d:()=>y});var e=m(4482),t=m(5403);function y(C){return(0,e.e)((o,M)=>{let l=!1;o.subscribe(new t.Q(M,N=>{l=!0,M.next(N)},()=>{l||M.next(C),M.complete()}))})}},4086:(Ve,Q,m)=>{"use strict";m.d(Q,{g:()=>s});var e=m(4986),t=m(7272),y=m(5698),C=m(8502),o=m(9718),M=m(5577);function l(D,A){return A?O=>(0,t.z)(A.pipe((0,y.q)(1),(0,C.l)()),O.pipe(l(D))):(0,M.z)((O,E)=>D(O,E).pipe((0,y.q)(1),(0,o.h)(O)))}var N=m(2805);function s(D,A=e.z){const O=(0,N.H)(D,A);return l(()=>O)}},1884:(Ve,Q,m)=>{"use strict";m.d(Q,{x:()=>C});var e=m(4671),t=m(4482),y=m(5403);function C(M,l=e.y){return M=null!=M?M:o,(0,t.e)((N,s)=>{let D,A=!0;N.subscribe(new y.Q(s,O=>{const E=l(O);(A||!M(D,E))&&(A=!1,D=E,s.next(O))}))})}function o(M,l){return M===l}},9300:(Ve,Q,m)=>{"use strict";m.d(Q,{h:()=>y});var e=m(4482),t=m(5403);function y(C,o){return(0,e.e)((M,l)=>{let N=0;M.subscribe(new t.Q(l,s=>C.call(o,s,N++)&&l.next(s)))})}},8746:(Ve,Q,m)=>{"use strict";m.d(Q,{x:()=>t});var e=m(4482);function t(y){return(0,e.e)((C,o)=>{try{C.subscribe(o)}finally{o.add(y)}})}},590:(Ve,Q,m)=>{"use strict";m.d(Q,{P:()=>l});var e=m(6805),t=m(9300),y=m(5698),C=m(6590),o=m(8068),M=m(4671);function l(N,s){const D=arguments.length>=2;return A=>A.pipe(N?(0,t.h)((O,E)=>N(O,E,A)):M.y,(0,y.q)(1),D?(0,C.d)(s):(0,o.T)(()=>new e.K))}},8502:(Ve,Q,m)=>{"use strict";m.d(Q,{l:()=>C});var e=m(4482),t=m(5403),y=m(5032);function C(){return(0,e.e)((o,M)=>{o.subscribe(new t.Q(M,y.Z))})}},4004:(Ve,Q,m)=>{"use strict";m.d(Q,{U:()=>y});var e=m(4482),t=m(5403);function y(C,o){return(0,e.e)((M,l)=>{let N=0;M.subscribe(new t.Q(l,s=>{l.next(C.call(o,s,N++))}))})}},9718:(Ve,Q,m)=>{"use strict";m.d(Q,{h:()=>t});var e=m(4004);function t(y){return(0,e.U)(()=>y)}},8189:(Ve,Q,m)=>{"use strict";m.d(Q,{J:()=>y});var e=m(5577),t=m(4671);function y(C=1/0){return(0,e.z)(t.y,C)}},5577:(Ve,Q,m)=>{"use strict";m.d(Q,{z:()=>N});var e=m(4004),t=m(8421),y=m(4482),C=m(9672),o=m(5403),l=m(576);function N(s,D,A=1/0){return(0,l.m)(D)?N((O,E)=>(0,e.U)((P,w)=>D(O,P,E,w))((0,t.Xf)(s(O,E))),A):("number"==typeof D&&(A=D),(0,y.e)((O,E)=>function M(s,D,A,O,E,P,w,Z){const j=[];let W=0,ie=0,ee=!1;const _e=()=>{ee&&!j.length&&!W&&D.complete()},ce=de=>W<O?re(de):j.push(de),re=de=>{P&&D.next(de),W++;let oe=!1;(0,t.Xf)(A(de,ie++)).subscribe(new o.Q(D,ae=>{null==E||E(ae),P?ce(ae):D.next(ae)},()=>{oe=!0},void 0,()=>{if(oe)try{for(W--;j.length&&W<O;){const ae=j.shift();w?(0,C.f)(D,w,()=>re(ae)):re(ae)}_e()}catch(ae){D.error(ae)}}))};return s.subscribe(new o.Q(D,ce,()=>{ee=!0,_e()})),()=>{null==Z||Z()}}(O,E,s,A)))}},5363:(Ve,Q,m)=>{"use strict";m.d(Q,{Q:()=>C});var e=m(9672),t=m(4482),y=m(5403);function C(o,M=0){return(0,t.e)((l,N)=>{l.subscribe(new y.Q(N,s=>(0,e.f)(N,o,()=>N.next(s),M),()=>(0,e.f)(N,o,()=>N.complete(),M),s=>(0,e.f)(N,o,()=>N.error(s),M)))})}},5026:(Ve,Q,m)=>{"use strict";m.d(Q,{R:()=>C});var e=m(4482),t=m(5403);function y(o,M,l,N,s){return(D,A)=>{let O=l,E=M,P=0;D.subscribe(new t.Q(A,w=>{const Z=P++;E=O?o(E,w,Z):(O=!0,w),N&&A.next(E)},s&&(()=>{O&&A.next(E),A.complete()})))}}function C(o,M){return(0,e.e)(y(o,M,arguments.length>=2,!0))}},3099:(Ve,Q,m)=>{"use strict";m.d(Q,{B:()=>M});var e=m(457),t=m(5698),y=m(7579),C=m(930),o=m(4482);function M(N={}){const{connector:s=(()=>new y.x),resetOnError:D=!0,resetOnComplete:A=!0,resetOnRefCountZero:O=!0}=N;return E=>{let P=null,w=null,Z=null,j=0,W=!1,ie=!1;const ee=()=>{null==w||w.unsubscribe(),w=null},_e=()=>{ee(),P=Z=null,W=ie=!1},ce=()=>{const re=P;_e(),null==re||re.unsubscribe()};return(0,o.e)((re,de)=>{j++,!ie&&!W&&ee();const oe=Z=null!=Z?Z:s();de.add(()=>{j--,0===j&&!ie&&!W&&(w=l(ce,O))}),oe.subscribe(de),P||(P=new C.Hp({next:ae=>oe.next(ae),error:ae=>{ie=!0,ee(),w=l(_e,D,ae),oe.error(ae)},complete:()=>{W=!0,ee(),w=l(_e,A),oe.complete()}}),(0,e.D)(re).subscribe(P))})(E)}}function l(N,s,...D){return!0===s?(N(),null):!1===s?null:s(...D).pipe((0,t.q)(1)).subscribe(()=>N())}},5684:(Ve,Q,m)=>{"use strict";m.d(Q,{T:()=>t});var e=m(9300);function t(y){return(0,e.h)((C,o)=>y<=o)}},8675:(Ve,Q,m)=>{"use strict";m.d(Q,{O:()=>C});var e=m(7272),t=m(3269),y=m(4482);function C(...o){const M=(0,t.yG)(o);return(0,y.e)((l,N)=>{(M?(0,e.z)(o,l,M):(0,e.z)(o,l)).subscribe(N)})}},3900:(Ve,Q,m)=>{"use strict";m.d(Q,{w:()=>C});var e=m(8421),t=m(4482),y=m(5403);function C(o,M){return(0,t.e)((l,N)=>{let s=null,D=0,A=!1;const O=()=>A&&!s&&N.complete();l.subscribe(new y.Q(N,E=>{null==s||s.unsubscribe();let P=0;const w=D++;(0,e.Xf)(o(E,w)).subscribe(s=new y.Q(N,Z=>N.next(M?M(E,Z,w,P++):Z),()=>{s=null,O()}))},()=>{A=!0,O()}))})}},5698:(Ve,Q,m)=>{"use strict";m.d(Q,{q:()=>C});var e=m(515),t=m(4482),y=m(5403);function C(o){return o<=0?()=>e.E:(0,t.e)((M,l)=>{let N=0;M.subscribe(new y.Q(l,s=>{++N<=o&&(l.next(s),o<=N&&l.complete())}))})}},2722:(Ve,Q,m)=>{"use strict";m.d(Q,{R:()=>o});var e=m(4482),t=m(5403),y=m(8421),C=m(5032);function o(M){return(0,e.e)((l,N)=>{(0,y.Xf)(M).subscribe(new t.Q(N,()=>N.complete(),C.Z)),!N.closed&&l.subscribe(N)})}},8505:(Ve,Q,m)=>{"use strict";m.d(Q,{b:()=>o});var e=m(576),t=m(4482),y=m(5403),C=m(4671);function o(M,l,N){const s=(0,e.m)(M)||l||N?{next:M,error:l,complete:N}:M;return s?(0,t.e)((D,A)=>{var O;null===(O=s.subscribe)||void 0===O||O.call(s);let E=!0;D.subscribe(new y.Q(A,P=>{var w;null===(w=s.next)||void 0===w||w.call(s,P),A.next(P)},()=>{var P;E=!1,null===(P=s.complete)||void 0===P||P.call(s),A.complete()},P=>{var w;E=!1,null===(w=s.error)||void 0===w||w.call(s,P),A.error(P)},()=>{var P,w;E&&(null===(P=s.unsubscribe)||void 0===P||P.call(s)),null===(w=s.finalize)||void 0===w||w.call(s)}))}):C.y}},8068:(Ve,Q,m)=>{"use strict";m.d(Q,{T:()=>C});var e=m(6805),t=m(4482),y=m(5403);function C(M=o){return(0,t.e)((l,N)=>{let s=!1;l.subscribe(new y.Q(N,D=>{s=!0,N.next(D)},()=>s?N.complete():N.error(M())))})}function o(){return new e.K}},7414:(Ve,Q,m)=>{"use strict";m.d(Q,{V:()=>s});var e=m(4986),t=m(1165),y=m(4482),C=m(8421),o=m(3888),M=m(5403),l=m(9672);const N=(0,o.d)(A=>function(E=null){A(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=E});function s(A,O){const{first:E,each:P,with:w=D,scheduler:Z=(null!=O?O:e.z),meta:j=null}=(0,t.q)(A)?{first:A}:"number"==typeof A?{each:A}:A;if(null==E&&null==P)throw new TypeError("No timeout provided.");return(0,y.e)((W,ie)=>{let ee,_e,ce=null,re=0;const de=oe=>{_e=(0,l.f)(ie,Z,()=>{try{ee.unsubscribe(),(0,C.Xf)(w({meta:j,lastValue:ce,seen:re})).subscribe(ie)}catch(ae){ie.error(ae)}},oe)};ee=W.subscribe(new M.Q(ie,oe=>{null==_e||_e.unsubscribe(),re++,ie.next(ce=oe),P>0&&de(P)},void 0,void 0,()=>{(null==_e?void 0:_e.closed)||null==_e||_e.unsubscribe(),ce=null})),de(null!=E?"number"==typeof E?E:+E-Z.now():P)})}function D(A){throw new N(A)}},1365:(Ve,Q,m)=>{"use strict";m.d(Q,{M:()=>l});var e=m(4482),t=m(5403),y=m(8421),C=m(4671),o=m(5032),M=m(3269);function l(...N){const s=(0,M.jO)(N);return(0,e.e)((D,A)=>{const O=N.length,E=new Array(O);let P=N.map(()=>!1),w=!1;for(let Z=0;Z<O;Z++)(0,y.Xf)(N[Z]).subscribe(new t.Q(A,j=>{E[Z]=j,!w&&!P[Z]&&(P[Z]=!0,(w=P.every(C.y))&&(P=null))},o.Z));D.subscribe(new t.Q(A,Z=>{if(w){const j=[Z,...E];A.next(s?s(...j):j)}}))})}},4408:(Ve,Q,m)=>{"use strict";m.d(Q,{o:()=>o});var e=m(727);class t extends e.w0{constructor(l,N){super()}schedule(l,N=0){return this}}const y={setInterval(...M){const{delegate:l}=y;return((null==l?void 0:l.setInterval)||setInterval)(...M)},clearInterval(M){const{delegate:l}=y;return((null==l?void 0:l.clearInterval)||clearInterval)(M)},delegate:void 0};var C=m(8737);class o extends t{constructor(l,N){super(l,N),this.scheduler=l,this.work=N,this.pending=!1}schedule(l,N=0){if(this.closed)return this;this.state=l;const s=this.id,D=this.scheduler;return null!=s&&(this.id=this.recycleAsyncId(D,s,N)),this.pending=!0,this.delay=N,this.id=this.id||this.requestAsyncId(D,this.id,N),this}requestAsyncId(l,N,s=0){return y.setInterval(l.flush.bind(l,this),s)}recycleAsyncId(l,N,s=0){if(null!=s&&this.delay===s&&!1===this.pending)return N;y.clearInterval(N)}execute(l,N){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const s=this._execute(l,N);if(s)return s;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(l,N){let D,s=!1;try{this.work(l)}catch(A){s=!0,D=A||new Error("Scheduled action threw falsy error")}if(s)return this.unsubscribe(),D}unsubscribe(){if(!this.closed){const{id:l,scheduler:N}=this,{actions:s}=N;this.work=this.state=this.scheduler=null,this.pending=!1,(0,C.P)(s,this),null!=l&&(this.id=this.recycleAsyncId(N,l,null)),this.delay=null,super.unsubscribe()}}}},7565:(Ve,Q,m)=>{"use strict";m.d(Q,{v:()=>y});var e=m(6063);class t{constructor(o,M=t.now){this.schedulerActionCtor=o,this.now=M}schedule(o,M=0,l){return new this.schedulerActionCtor(this,o).schedule(l,M)}}t.now=e.l.now;class y extends t{constructor(o,M=t.now){super(o,M),this.actions=[],this._active=!1,this._scheduled=void 0}flush(o){const{actions:M}=this;if(this._active)return void M.push(o);let l;this._active=!0;do{if(l=o.execute(o.state,o.delay))break}while(o=M.shift());if(this._active=!1,l){for(;o=M.shift();)o.unsubscribe();throw l}}}},3101:(Ve,Q,m)=>{"use strict";m.d(Q,{E:()=>P});var e=m(4408);let y,t=1;const C={};function o(Z){return Z in C&&(delete C[Z],!0)}const M={setImmediate(Z){const j=t++;return C[j]=!0,y||(y=Promise.resolve()),y.then(()=>o(j)&&Z()),j},clearImmediate(Z){o(Z)}},{setImmediate:N,clearImmediate:s}=M,D={setImmediate(...Z){const{delegate:j}=D;return((null==j?void 0:j.setImmediate)||N)(...Z)},clearImmediate(Z){const{delegate:j}=D;return((null==j?void 0:j.clearImmediate)||s)(Z)},delegate:void 0};var O=m(7565);const P=new class E extends O.v{flush(j){this._active=!0,this._scheduled=void 0;const{actions:W}=this;let ie,ee=-1;j=j||W.shift();const _e=W.length;do{if(ie=j.execute(j.state,j.delay))break}while(++ee<_e&&(j=W.shift()));if(this._active=!1,ie){for(;++ee<_e&&(j=W.shift());)j.unsubscribe();throw ie}}}(class A extends e.o{constructor(j,W){super(j,W),this.scheduler=j,this.work=W}requestAsyncId(j,W,ie=0){return null!==ie&&ie>0?super.requestAsyncId(j,W,ie):(j.actions.push(this),j._scheduled||(j._scheduled=D.setImmediate(j.flush.bind(j,void 0))))}recycleAsyncId(j,W,ie=0){if(null!=ie&&ie>0||null==ie&&this.delay>0)return super.recycleAsyncId(j,W,ie);0===j.actions.length&&(D.clearImmediate(W),j._scheduled=void 0)}})},4986:(Ve,Q,m)=>{"use strict";m.d(Q,{z:()=>y,P:()=>C});var e=m(4408);const y=new(m(7565).v)(e.o),C=y},6063:(Ve,Q,m)=>{"use strict";m.d(Q,{l:()=>e});const e={now:()=>(e.delegate||Date).now(),delegate:void 0}},233:(Ve,Q,m)=>{"use strict";m.d(Q,{N:()=>o});var e=m(4408),y=m(7565);const o=new class C extends y.v{}(class t extends e.o{constructor(N,s){super(N,s),this.scheduler=N,this.work=s}schedule(N,s=0){return s>0?super.schedule(N,s):(this.delay=s,this.state=N,this.scheduler.flush(this),this)}execute(N,s){return s>0||this.closed?super.execute(N,s):this._execute(N,s)}requestAsyncId(N,s,D=0){return null!=D&&D>0||null==D&&this.delay>0?super.requestAsyncId(N,s,D):N.flush(this)}})},3410:(Ve,Q,m)=>{"use strict";m.d(Q,{z:()=>e});const e={setTimeout(...t){const{delegate:y}=e;return((null==y?void 0:y.setTimeout)||setTimeout)(...t)},clearTimeout(t){const{delegate:y}=e;return((null==y?void 0:y.clearTimeout)||clearTimeout)(t)},delegate:void 0}},2202:(Ve,Q,m)=>{"use strict";m.d(Q,{h:()=>t});const t=function e(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(Ve,Q,m)=>{"use strict";m.d(Q,{L:()=>e});const e="function"==typeof Symbol&&Symbol.observable||"@@observable"},6805:(Ve,Q,m)=>{"use strict";m.d(Q,{K:()=>t});const t=(0,m(3888).d)(y=>function(){y(this),this.name="EmptyError",this.message="no elements in sequence"})},3269:(Ve,Q,m)=>{"use strict";m.d(Q,{jO:()=>C,yG:()=>o,_6:()=>M});var e=m(576),t=m(3532);function y(l){return l[l.length-1]}function C(l){return(0,e.m)(y(l))?l.pop():void 0}function o(l){return(0,t.K)(y(l))?l.pop():void 0}function M(l,N){return"number"==typeof y(l)?l.pop():N}},4742:(Ve,Q,m)=>{"use strict";m.d(Q,{D:()=>o});const{isArray:e}=Array,{getPrototypeOf:t,prototype:y,keys:C}=Object;function o(l){if(1===l.length){const N=l[0];if(e(N))return{args:N,keys:null};if(function M(l){return l&&"object"==typeof l&&t(l)===y}(N)){const s=C(N);return{args:s.map(D=>N[D]),keys:s}}}return{args:l,keys:null}}},8737:(Ve,Q,m)=>{"use strict";function e(t,y){if(t){const C=t.indexOf(y);0<=C&&t.splice(C,1)}}m.d(Q,{P:()=>e})},3888:(Ve,Q,m)=>{"use strict";function e(t){const C=t(o=>{Error.call(o),o.stack=(new Error).stack});return C.prototype=Object.create(Error.prototype),C.prototype.constructor=C,C}m.d(Q,{d:()=>e})},1810:(Ve,Q,m)=>{"use strict";function e(t,y){return t.reduce((C,o,M)=>(C[o]=y[M],C),{})}m.d(Q,{n:()=>e})},2806:(Ve,Q,m)=>{"use strict";m.d(Q,{x:()=>y,O:()=>C});var e=m(2416);let t=null;function y(o){if(e.v.useDeprecatedSynchronousErrorHandling){const M=!t;if(M&&(t={errorThrown:!1,error:null}),o(),M){const{errorThrown:l,error:N}=t;if(t=null,l)throw N}}else o()}function C(o){e.v.useDeprecatedSynchronousErrorHandling&&t&&(t.errorThrown=!0,t.error=o)}},9672:(Ve,Q,m)=>{"use strict";function e(t,y,C,o=0,M=!1){const l=y.schedule(function(){C(),M?t.add(this.schedule(null,o)):this.unsubscribe()},o);if(t.add(l),!M)return l}m.d(Q,{f:()=>e})},4671:(Ve,Q,m)=>{"use strict";function e(t){return t}m.d(Q,{y:()=>e})},1144:(Ve,Q,m)=>{"use strict";m.d(Q,{z:()=>e});const e=t=>t&&"number"==typeof t.length&&"function"!=typeof t},2206:(Ve,Q,m)=>{"use strict";m.d(Q,{D:()=>t});var e=m(576);function t(y){return Symbol.asyncIterator&&(0,e.m)(null==y?void 0:y[Symbol.asyncIterator])}},1165:(Ve,Q,m)=>{"use strict";function e(t){return t instanceof Date&&!isNaN(t)}m.d(Q,{q:()=>e})},576:(Ve,Q,m)=>{"use strict";function e(t){return"function"==typeof t}m.d(Q,{m:()=>e})},3670:(Ve,Q,m)=>{"use strict";m.d(Q,{c:()=>y});var e=m(8822),t=m(576);function y(C){return(0,t.m)(C[e.L])}},6495:(Ve,Q,m)=>{"use strict";m.d(Q,{T:()=>y});var e=m(2202),t=m(576);function y(C){return(0,t.m)(null==C?void 0:C[e.h])}},5191:(Ve,Q,m)=>{"use strict";m.d(Q,{b:()=>y});var e=m(8306),t=m(576);function y(C){return!!C&&(C instanceof e.y||(0,t.m)(C.lift)&&(0,t.m)(C.subscribe))}},8239:(Ve,Q,m)=>{"use strict";m.d(Q,{t:()=>t});var e=m(576);function t(y){return(0,e.m)(null==y?void 0:y.then)}},3260:(Ve,Q,m)=>{"use strict";m.d(Q,{Q:()=>y,L:()=>C});var e=m(5987),t=m(576);function y(o){return(0,e.FC)(this,arguments,function*(){const l=o.getReader();try{for(;;){const{value:N,done:s}=yield(0,e.qq)(l.read());if(s)return yield(0,e.qq)(void 0);yield yield(0,e.qq)(N)}}finally{l.releaseLock()}})}function C(o){return(0,t.m)(null==o?void 0:o.getReader)}},3532:(Ve,Q,m)=>{"use strict";m.d(Q,{K:()=>t});var e=m(576);function t(y){return y&&(0,e.m)(y.schedule)}},4482:(Ve,Q,m)=>{"use strict";m.d(Q,{A:()=>t,e:()=>y});var e=m(576);function t(C){return(0,e.m)(null==C?void 0:C.lift)}function y(C){return o=>{if(t(o))return o.lift(function(M){try{return C(M,this)}catch(l){this.error(l)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(Ve,Q,m)=>{"use strict";m.d(Q,{Z:()=>C});var e=m(4004);const{isArray:t}=Array;function C(o){return(0,e.U)(M=>function y(o,M){return t(M)?o(...M):o(M)}(o,M))}},5032:(Ve,Q,m)=>{"use strict";function e(){}m.d(Q,{Z:()=>e})},7849:(Ve,Q,m)=>{"use strict";m.d(Q,{h:()=>y});var e=m(2416),t=m(3410);function y(C){t.z.setTimeout(()=>{const{onUnhandledError:o}=e.v;if(!o)throw C;o(C)})}},4532:(Ve,Q,m)=>{"use strict";function e(t){return new TypeError(`You provided ${null!==t&&"object"==typeof t?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}m.d(Q,{z:()=>e})},3502:(Ve,Q,m)=>{var e=m(3172),t=e.Buffer;function y(o,M){for(var l in o)M[l]=o[l]}function C(o,M,l){return t(o,M,l)}t.from&&t.alloc&&t.allocUnsafe&&t.allocUnsafeSlow?Ve.exports=e:(y(e,Q),Q.Buffer=C),y(t,C),C.from=function(o,M,l){if("number"==typeof o)throw new TypeError("Argument must not be a number");return t(o,M,l)},C.alloc=function(o,M,l){if("number"!=typeof o)throw new TypeError("Argument must be a number");var N=t(o);return void 0!==M?"string"==typeof l?N.fill(M,l):N.fill(M):N.fill(0),N},C.allocUnsafe=function(o){if("number"!=typeof o)throw new TypeError("Argument must be a number");return t(o)},C.allocUnsafeSlow=function(o){if("number"!=typeof o)throw new TypeError("Argument must be a number");return e.SlowBuffer(o)}},2038:(Ve,Q,m)=>{"use strict";var C,e=m(3172),t=e.Buffer,y={};for(C in e)!e.hasOwnProperty(C)||"SlowBuffer"===C||"Buffer"===C||(y[C]=e[C]);var o=y.Buffer={};for(C in t)!t.hasOwnProperty(C)||"allocUnsafe"===C||"allocUnsafeSlow"===C||(o[C]=t[C]);if(y.Buffer.prototype=t.prototype,(!o.from||o.from===Uint8Array.from)&&(o.from=function(M,l,N){if("number"==typeof M)throw new TypeError('The "value" argument must not be of type number. Received type '+typeof M);if(M&&void 0===M.length)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof M);return t(M,l,N)}),o.alloc||(o.alloc=function(M,l,N){if("number"!=typeof M)throw new TypeError('The "size" argument must be of type number. Received type '+typeof M);if(M<0||M>=2*(1<<30))throw new RangeError('The value "'+M+'" is invalid for option "size"');var s=t(M);return l&&0!==l.length?"string"==typeof N?s.fill(l,N):s.fill(l):s.fill(0),s}),!y.kStringMaxLength)try{y.kStringMaxLength=process.binding("buffer").kStringMaxLength}catch(M){}y.constants||(y.constants={MAX_LENGTH:y.kMaxLength},y.kStringMaxLength&&(y.constants.MAX_STRING_LENGTH=y.kStringMaxLength)),Ve.exports=y},6692:(Ve,Q,m)=>{var e=m(3502).Buffer;function t(y,C){this._block=e.alloc(y),this._finalSize=C,this._blockSize=y,this._len=0}t.prototype.update=function(y,C){"string"==typeof y&&(y=e.from(y,C=C||"utf8"));for(var o=this._block,M=this._blockSize,l=y.length,N=this._len,s=0;s<l;){for(var D=N%M,A=Math.min(l-s,M-D),O=0;O<A;O++)o[D+O]=y[s+O];s+=A,(N+=A)%M==0&&this._update(o)}return this._len+=l,this},t.prototype.digest=function(y){var C=this._len%this._blockSize;this._block[C]=128,this._block.fill(0,C+1),C>=this._finalSize&&(this._update(this._block),this._block.fill(0));var o=8*this._len;if(o<=4294967295)this._block.writeUInt32BE(o,this._blockSize-4);else{var M=(4294967295&o)>>>0;this._block.writeUInt32BE((o-M)/4294967296,this._blockSize-8),this._block.writeUInt32BE(M,this._blockSize-4)}this._update(this._block);var N=this._hash();return y?N.toString(y):N},t.prototype._update=function(){throw new Error("_update must be implemented by subclass")},Ve.exports=t},5244:(Ve,Q,m)=>{var e=Ve.exports=function(y){y=y.toLowerCase();var C=e[y];if(!C)throw new Error(y+" is not supported (we accept pull requests)");return new C};e.sha=m(8932),e.sha1=m(7736),e.sha224=m(5044),e.sha256=m(5014),e.sha384=m(6540),e.sha512=m(117)},8932:(Ve,Q,m)=>{var e=m(3894),t=m(6692),y=m(3502).Buffer,C=[1518500249,1859775393,-1894007588,-899497514],o=new Array(80);function M(){this.init(),this._w=o,t.call(this,64,56)}function l(D){return D<<5|D>>>27}function N(D){return D<<30|D>>>2}function s(D,A,O,E){return 0===D?A&O|~A&E:2===D?A&O|A&E|O&E:A^O^E}e(M,t),M.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},M.prototype._update=function(D){for(var A=this._w,O=0|this._a,E=0|this._b,P=0|this._c,w=0|this._d,Z=0|this._e,j=0;j<16;++j)A[j]=D.readInt32BE(4*j);for(;j<80;++j)A[j]=A[j-3]^A[j-8]^A[j-14]^A[j-16];for(var W=0;W<80;++W){var ie=~~(W/20),ee=l(O)+s(ie,E,P,w)+Z+A[W]+C[ie]|0;Z=w,w=P,P=N(E),E=O,O=ee}this._a=O+this._a|0,this._b=E+this._b|0,this._c=P+this._c|0,this._d=w+this._d|0,this._e=Z+this._e|0},M.prototype._hash=function(){var D=y.allocUnsafe(20);return D.writeInt32BE(0|this._a,0),D.writeInt32BE(0|this._b,4),D.writeInt32BE(0|this._c,8),D.writeInt32BE(0|this._d,12),D.writeInt32BE(0|this._e,16),D},Ve.exports=M},7736:(Ve,Q,m)=>{var e=m(3894),t=m(6692),y=m(3502).Buffer,C=[1518500249,1859775393,-1894007588,-899497514],o=new Array(80);function M(){this.init(),this._w=o,t.call(this,64,56)}function l(A){return A<<1|A>>>31}function N(A){return A<<5|A>>>27}function s(A){return A<<30|A>>>2}function D(A,O,E,P){return 0===A?O&E|~O&P:2===A?O&E|O&P|E&P:O^E^P}e(M,t),M.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},M.prototype._update=function(A){for(var O=this._w,E=0|this._a,P=0|this._b,w=0|this._c,Z=0|this._d,j=0|this._e,W=0;W<16;++W)O[W]=A.readInt32BE(4*W);for(;W<80;++W)O[W]=l(O[W-3]^O[W-8]^O[W-14]^O[W-16]);for(var ie=0;ie<80;++ie){var ee=~~(ie/20),_e=N(E)+D(ee,P,w,Z)+j+O[ie]+C[ee]|0;j=Z,Z=w,w=s(P),P=E,E=_e}this._a=E+this._a|0,this._b=P+this._b|0,this._c=w+this._c|0,this._d=Z+this._d|0,this._e=j+this._e|0},M.prototype._hash=function(){var A=y.allocUnsafe(20);return A.writeInt32BE(0|this._a,0),A.writeInt32BE(0|this._b,4),A.writeInt32BE(0|this._c,8),A.writeInt32BE(0|this._d,12),A.writeInt32BE(0|this._e,16),A},Ve.exports=M},5044:(Ve,Q,m)=>{var e=m(3894),t=m(5014),y=m(6692),C=m(3502).Buffer,o=new Array(64);function M(){this.init(),this._w=o,y.call(this,64,56)}e(M,t),M.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},M.prototype._hash=function(){var l=C.allocUnsafe(28);return l.writeInt32BE(this._a,0),l.writeInt32BE(this._b,4),l.writeInt32BE(this._c,8),l.writeInt32BE(this._d,12),l.writeInt32BE(this._e,16),l.writeInt32BE(this._f,20),l.writeInt32BE(this._g,24),l},Ve.exports=M},5014:(Ve,Q,m)=>{var e=m(3894),t=m(6692),y=m(3502).Buffer,C=[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],o=new Array(64);function M(){this.init(),this._w=o,t.call(this,64,56)}function l(E,P,w){return w^E&(P^w)}function N(E,P,w){return E&P|w&(E|P)}function s(E){return(E>>>2|E<<30)^(E>>>13|E<<19)^(E>>>22|E<<10)}function D(E){return(E>>>6|E<<26)^(E>>>11|E<<21)^(E>>>25|E<<7)}function A(E){return(E>>>7|E<<25)^(E>>>18|E<<14)^E>>>3}function O(E){return(E>>>17|E<<15)^(E>>>19|E<<13)^E>>>10}e(M,t),M.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},M.prototype._update=function(E){for(var P=this._w,w=0|this._a,Z=0|this._b,j=0|this._c,W=0|this._d,ie=0|this._e,ee=0|this._f,_e=0|this._g,ce=0|this._h,re=0;re<16;++re)P[re]=E.readInt32BE(4*re);for(;re<64;++re)P[re]=O(P[re-2])+P[re-7]+A(P[re-15])+P[re-16]|0;for(var de=0;de<64;++de){var oe=ce+D(ie)+l(ie,ee,_e)+C[de]+P[de]|0,ae=s(w)+N(w,Z,j)|0;ce=_e,_e=ee,ee=ie,ie=W+oe|0,W=j,j=Z,Z=w,w=oe+ae|0}this._a=w+this._a|0,this._b=Z+this._b|0,this._c=j+this._c|0,this._d=W+this._d|0,this._e=ie+this._e|0,this._f=ee+this._f|0,this._g=_e+this._g|0,this._h=ce+this._h|0},M.prototype._hash=function(){var E=y.allocUnsafe(32);return E.writeInt32BE(this._a,0),E.writeInt32BE(this._b,4),E.writeInt32BE(this._c,8),E.writeInt32BE(this._d,12),E.writeInt32BE(this._e,16),E.writeInt32BE(this._f,20),E.writeInt32BE(this._g,24),E.writeInt32BE(this._h,28),E},Ve.exports=M},6540:(Ve,Q,m)=>{var e=m(3894),t=m(117),y=m(6692),C=m(3502).Buffer,o=new Array(160);function M(){this.init(),this._w=o,y.call(this,128,112)}e(M,t),M.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},M.prototype._hash=function(){var l=C.allocUnsafe(48);function N(s,D,A){l.writeInt32BE(s,A),l.writeInt32BE(D,A+4)}return N(this._ah,this._al,0),N(this._bh,this._bl,8),N(this._ch,this._cl,16),N(this._dh,this._dl,24),N(this._eh,this._el,32),N(this._fh,this._fl,40),l},Ve.exports=M},117:(Ve,Q,m)=>{var e=m(3894),t=m(6692),y=m(3502).Buffer,C=[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],o=new Array(160);function M(){this.init(),this._w=o,t.call(this,128,112)}function l(Z,j,W){return W^Z&(j^W)}function N(Z,j,W){return Z&j|W&(Z|j)}function s(Z,j){return(Z>>>28|j<<4)^(j>>>2|Z<<30)^(j>>>7|Z<<25)}function D(Z,j){return(Z>>>14|j<<18)^(Z>>>18|j<<14)^(j>>>9|Z<<23)}function A(Z,j){return(Z>>>1|j<<31)^(Z>>>8|j<<24)^Z>>>7}function O(Z,j){return(Z>>>1|j<<31)^(Z>>>8|j<<24)^(Z>>>7|j<<25)}function E(Z,j){return(Z>>>19|j<<13)^(j>>>29|Z<<3)^Z>>>6}function P(Z,j){return(Z>>>19|j<<13)^(j>>>29|Z<<3)^(Z>>>6|j<<26)}function w(Z,j){return Z>>>0<j>>>0?1:0}e(M,t),M.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},M.prototype._update=function(Z){for(var j=this._w,W=0|this._ah,ie=0|this._bh,ee=0|this._ch,_e=0|this._dh,ce=0|this._eh,re=0|this._fh,de=0|this._gh,oe=0|this._hh,ae=0|this._al,b=0|this._bl,i=0|this._cl,a=0|this._dl,p=0|this._el,u=0|this._fl,_=0|this._gl,L=0|this._hl,I=0;I<32;I+=2)j[I]=Z.readInt32BE(4*I),j[I+1]=Z.readInt32BE(4*I+4);for(;I<160;I+=2){var x=j[I-30],r=j[I-30+1],v=A(x,r),G=O(r,x),F=E(x=j[I-4],r=j[I-4+1]),U=P(r,x),Be=j[I-32],ze=j[I-32+1],Ie=G+j[I-14+1]|0,K=v+j[I-14]+w(Ie,G)|0;K=(K=K+F+w(Ie=Ie+U|0,U)|0)+Be+w(Ie=Ie+ze|0,ze)|0,j[I]=K,j[I+1]=Ie}for(var Me=0;Me<160;Me+=2){K=j[Me],Ie=j[Me+1];var we=N(W,ie,ee),z=N(ae,b,i),Ge=s(W,ae),vt=s(ae,W),Re=D(ce,p),Ne=D(p,ce),he=C[Me],Le=C[Me+1],ke=l(ce,re,de),q=l(p,u,_),$=L+Ne|0,le=oe+Re+w($,L)|0;le=(le=(le=le+ke+w($=$+q|0,q)|0)+he+w($=$+Le|0,Le)|0)+K+w($=$+Ie|0,Ie)|0;var xe=vt+z|0,Ue=Ge+we+w(xe,vt)|0;oe=de,L=_,de=re,_=u,re=ce,u=p,ce=_e+le+w(p=a+$|0,a)|0,_e=ee,a=i,ee=ie,i=b,ie=W,b=ae,W=le+Ue+w(ae=$+xe|0,$)|0}this._al=this._al+ae|0,this._bl=this._bl+b|0,this._cl=this._cl+i|0,this._dl=this._dl+a|0,this._el=this._el+p|0,this._fl=this._fl+u|0,this._gl=this._gl+_|0,this._hl=this._hl+L|0,this._ah=this._ah+W+w(this._al,ae)|0,this._bh=this._bh+ie+w(this._bl,b)|0,this._ch=this._ch+ee+w(this._cl,i)|0,this._dh=this._dh+_e+w(this._dl,a)|0,this._eh=this._eh+ce+w(this._el,p)|0,this._fh=this._fh+re+w(this._fl,u)|0,this._gh=this._gh+de+w(this._gl,_)|0,this._hh=this._hh+oe+w(this._hl,L)|0},M.prototype._hash=function(){var Z=y.allocUnsafe(64);function j(W,ie,ee){Z.writeInt32BE(W,ee),Z.writeInt32BE(ie,ee+4)}return j(this._ah,this._al,0),j(this._bh,this._bl,8),j(this._ch,this._cl,16),j(this._dh,this._dl,24),j(this._eh,this._el,32),j(this._fh,this._fl,40),j(this._gh,this._gl,48),j(this._hh,this._hl,56),Z},Ve.exports=M},8012:function(Ve,Q,m){!function(e){"use strict";var t={};Ve.exports?(t.bytesToHex=m(6128).bytesToHex,t.convertString=m(5612),Ve.exports=N):(t.bytesToHex=e.convertHex.bytesToHex,t.convertString=e.convertString,e.sha256=N);var y=[];!function(){function s(E){for(var P=Math.sqrt(E),w=2;w<=P;w++)if(!(E%w))return!1;return!0}for(var A=2,O=0;O<64;)s(A)&&(y[O]=4294967296*((E=Math.pow(A,1/3))-(0|E))|0,O++),A++;var E}();var M=[],l=function(s,D,A){for(var O=s[0],E=s[1],P=s[2],w=s[3],Z=s[4],j=s[5],W=s[6],ie=s[7],ee=0;ee<64;ee++){if(ee<16)M[ee]=0|D[A+ee];else{var _e=M[ee-15],re=M[ee-2];M[ee]=((_e<<25|_e>>>7)^(_e<<14|_e>>>18)^_e>>>3)+M[ee-7]+((re<<15|re>>>17)^(re<<13|re>>>19)^re>>>10)+M[ee-16]}var ae=O&E^O&P^E&P,a=ie+((Z<<26|Z>>>6)^(Z<<21|Z>>>11)^(Z<<7|Z>>>25))+(Z&j^~Z&W)+y[ee]+M[ee];ie=W,W=j,j=Z,Z=w+a|0,w=P,P=E,E=O,O=a+(((O<<30|O>>>2)^(O<<19|O>>>13)^(O<<10|O>>>22))+ae)|0}s[0]=s[0]+O|0,s[1]=s[1]+E|0,s[2]=s[2]+P|0,s[3]=s[3]+w|0,s[4]=s[4]+Z|0,s[5]=s[5]+j|0,s[6]=s[6]+W|0,s[7]=s[7]+ie|0};function N(s,D){s.constructor===String&&(s=t.convertString.UTF8.stringToBytes(s));var A=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],O=function(s){for(var D=[],A=0,O=0;A<s.length;A++,O+=8)D[O>>>5]|=s[A]<<24-O%32;return D}(s),E=8*s.length;O[E>>5]|=128<<24-E%32,O[15+(E+64>>9<<4)]=E;for(var P=0;P<O.length;P+=16)l(A,O,P);var w=function(s){for(var D=[],A=0;A<32*s.length;A+=8)D.push(s[A>>>5]>>>24-A%32&255);return D}(A);return D&&D.asBytes?w:D&&D.asString?t.convertString.bytesToString(w):t.bytesToHex(w)}N.x2=function(s,D){return N(N(s,{asBytes:!0}),D)}}(this)},4315:(Ve,Q,m)=>{"use strict";const e=Symbol.prototype.valueOf,t=m(2872);Ve.exports=function y(s,D){switch(t(s)){case"array":return s.slice();case"object":return Object.assign({},s);case"date":return new s.constructor(Number(s));case"map":return new Map(s);case"set":return new Set(s);case"buffer":return function l(s){const D=s.length,A=Buffer.allocUnsafe?Buffer.allocUnsafe(D):Buffer.from(D);return s.copy(A),A}(s);case"symbol":return function N(s){return e?Object(e.call(s)):{}}(s);case"arraybuffer":return function o(s){const D=new s.constructor(s.byteLength);return new Uint8Array(D).set(new Uint8Array(s)),D}(s);case"float32array":case"float64array":case"int16array":case"int32array":case"int8array":case"uint16array":case"uint32array":case"uint8clampedarray":case"uint8array":return function M(s,D){return new s.constructor(s.buffer,s.byteOffset,s.length)}(s);case"regexp":return function C(s){const D=void 0!==s.flags?s.flags:/\w+$/.exec(s)||void 0,A=new s.constructor(s.source,D);return A.lastIndex=s.lastIndex,A}(s);case"error":return Object.create(s);default:return s}}},295:(Ve,Q,m)=>{Ve.exports=y;var e=m(9069).EventEmitter;function y(){e.call(this)}m(3894)(y,e),y.Readable=m(3154),y.Writable=m(520),y.Duplex=m(1339),y.Transform=m(6025),y.PassThrough=m(6071),y.finished=m(7542),y.pipeline=m(954),y.Stream=y,y.prototype.pipe=function(C,o){var M=this;function l(P){C.writable&&!1===C.write(P)&&M.pause&&M.pause()}function N(){M.readable&&M.resume&&M.resume()}M.on("data",l),C.on("drain",N),!C._isStdio&&(!o||!1!==o.end)&&(M.on("end",D),M.on("close",A));var s=!1;function D(){s||(s=!0,C.end())}function A(){s||(s=!0,"function"==typeof C.destroy&&C.destroy())}function O(P){if(E(),0===e.listenerCount(this,"error"))throw P}function E(){M.removeListener("data",l),C.removeListener("drain",N),M.removeListener("end",D),M.removeListener("close",A),M.removeListener("error",O),C.removeListener("error",O),M.removeListener("end",E),M.removeListener("close",E),C.removeListener("close",E)}return M.on("error",O),C.on("error",O),M.on("end",E),M.on("close",E),C.on("close",E),C.emit("pipe",M),C}},3054:(Ve,Q,m)=>{"use strict";var e=m(858).Buffer,t=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 o(W){var ie;switch(this.encoding=function C(W){var ie=function y(W){if(!W)return"utf8";for(var ie;;)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(ie)return;W=(""+W).toLowerCase(),ie=!0}}(W);if("string"!=typeof ie&&(e.isEncoding===t||!t(W)))throw new Error("Unknown encoding: "+W);return ie||W}(W),this.encoding){case"utf16le":this.text=O,this.end=E,ie=4;break;case"utf8":this.fillLast=s,ie=4;break;case"base64":this.text=P,this.end=w,ie=3;break;default:return this.write=Z,void(this.end=j)}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(ie)}function M(W){return W<=127?0:W>>5==6?2:W>>4==14?3:W>>3==30?4:W>>6==2?-1:-2}function s(W){var ie=this.lastTotal-this.lastNeed,ee=function N(W,ie,ee){if(128!=(192&ie[0]))return W.lastNeed=0,"\ufffd";if(W.lastNeed>1&&ie.length>1){if(128!=(192&ie[1]))return W.lastNeed=1,"\ufffd";if(W.lastNeed>2&&ie.length>2&&128!=(192&ie[2]))return W.lastNeed=2,"\ufffd"}}(this,W);return void 0!==ee?ee:this.lastNeed<=W.length?(W.copy(this.lastChar,ie,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(W.copy(this.lastChar,ie,0,W.length),void(this.lastNeed-=W.length))}function O(W,ie){if((W.length-ie)%2==0){var ee=W.toString("utf16le",ie);if(ee){var _e=ee.charCodeAt(ee.length-1);if(_e>=55296&&_e<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=W[W.length-2],this.lastChar[1]=W[W.length-1],ee.slice(0,-1)}return ee}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=W[W.length-1],W.toString("utf16le",ie,W.length-1)}function E(W){var ie=W&&W.length?this.write(W):"";return this.lastNeed?ie+this.lastChar.toString("utf16le",0,this.lastTotal-this.lastNeed):ie}function P(W,ie){var ee=(W.length-ie)%3;return 0===ee?W.toString("base64",ie):(this.lastNeed=3-ee,this.lastTotal=3,1===ee?this.lastChar[0]=W[W.length-1]:(this.lastChar[0]=W[W.length-2],this.lastChar[1]=W[W.length-1]),W.toString("base64",ie,W.length-ee))}function w(W){var ie=W&&W.length?this.write(W):"";return this.lastNeed?ie+this.lastChar.toString("base64",0,3-this.lastNeed):ie}function Z(W){return W.toString(this.encoding)}function j(W){return W&&W.length?this.write(W):""}Q.s=o,o.prototype.write=function(W){if(0===W.length)return"";var ie,ee;if(this.lastNeed){if(void 0===(ie=this.fillLast(W)))return"";ee=this.lastNeed,this.lastNeed=0}else ee=0;return ee<W.length?ie?ie+this.text(W,ee):this.text(W,ee):ie||""},o.prototype.end=function A(W){var ie=W&&W.length?this.write(W):"";return this.lastNeed?ie+"\ufffd":ie},o.prototype.text=function D(W,ie){var ee=function l(W,ie,ee){var _e=ie.length-1;if(_e<ee)return 0;var ce=M(ie[_e]);return ce>=0?(ce>0&&(W.lastNeed=ce-1),ce):--_e<ee||-2===ce?0:(ce=M(ie[_e]))>=0?(ce>0&&(W.lastNeed=ce-2),ce):--_e<ee||-2===ce?0:(ce=M(ie[_e]))>=0?(ce>0&&(2===ce?ce=0:W.lastNeed=ce-3),ce):0}(this,W,ie);if(!this.lastNeed)return W.toString("utf8",ie);this.lastTotal=ee;var _e=W.length-(ee-this.lastNeed);return W.copy(this.lastChar,0,_e),W.toString("utf8",ie,_e)},o.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:(Ve,Q,m)=>{var e=m(3172),t=e.Buffer;function y(o,M){for(var l in o)M[l]=o[l]}function C(o,M,l){return t(o,M,l)}t.from&&t.alloc&&t.allocUnsafe&&t.allocUnsafeSlow?Ve.exports=e:(y(e,Q),Q.Buffer=C),C.prototype=Object.create(t.prototype),y(t,C),C.from=function(o,M,l){if("number"==typeof o)throw new TypeError("Argument must not be a number");return t(o,M,l)},C.alloc=function(o,M,l){if("number"!=typeof o)throw new TypeError("Argument must be a number");var N=t(o);return void 0!==M?"string"==typeof l?N.fill(M,l):N.fill(M):N.fill(0),N},C.allocUnsafe=function(o){if("number"!=typeof o)throw new TypeError("Argument must be a number");return t(o)},C.allocUnsafeSlow=function(o){if("number"!=typeof o)throw new TypeError("Argument must be a number");return e.SlowBuffer(o)}},2167:(Ve,Q,m)=>{var e=m(4606);Q.encode=e.encode,Q.decode=e.decode},4606:(Ve,Q)=>{"use strict";var e=[255,255,26,27,28,29,30,31,255,255,255,255,255,255,255,255,255,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,255,255,255,255,255,255,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,255,255,255,255,255];Q.encode=function(y){Buffer.isBuffer(y)||(y=new Buffer(y));for(var C=0,o=0,M=0,l=0,N=new Buffer(8*function t(y){var C=Math.floor(y.length/5);return y.length%5==0?C:C+1}(y));C<y.length;){var s=y[C];M>3?(l=(l=s&255>>M)<<(M=(M+5)%8)|(C+1<y.length?y[C+1]:0)>>8-M,C++):(l=s>>8-(M+5)&31,0==(M=(M+5)%8)&&C++),N[o]="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567".charCodeAt(l),o++}for(C=o;C<N.length;C++)N[C]=61;return N},Q.decode=function(y){var M,C=0,o=0,l=0;Buffer.isBuffer(y)||(y=new Buffer(y));for(var N=new Buffer(Math.ceil(5*y.length/8)),s=0;s<y.length&&61!==y[s];s++){var D=y[s]-48;if(!(D<e.length))throw new Error("Invalid input - it is not base32 encoded string");o=e[D],C<=3?0==(C=(C+5)%8)?(N[l]=M|=o,l++,M=0):M|=255&o<<8-C:(N[l]=M|=255&o>>>(C=(C+5)%8),l++,M=255&o<<8-C)}return N.slice(0,l)}},4364:Ve=>{function m(e){try{if(!global.localStorage)return!1}catch(y){return!1}var t=global.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}Ve.exports=function Q(e,t){if(m("noDeprecation"))return e;var y=!1;return function C(){if(!y){if(m("throwDeprecation"))throw new Error(t);m("traceDeprecation")?console.trace(t):console.warn(t),y=!0}return e.apply(this,arguments)}}},5987:(Ve,Q,m)=>{"use strict";function N(b,i,a,p){return new(a||(a=Promise))(function(_,L){function I(v){try{r(p.next(v))}catch(G){L(G)}}function x(v){try{r(p.throw(v))}catch(G){L(G)}}function r(v){v.done?_(v.value):function u(_){return _ instanceof a?_:new a(function(L){L(_)})}(v.value).then(I,x)}r((p=p.apply(b,i||[])).next())})}function j(b){return this instanceof j?(this.v=b,this):new j(b)}function W(b,i,a){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u,p=a.apply(b,i||[]),_=[];return u={},L("next"),L("throw"),L("return"),u[Symbol.asyncIterator]=function(){return this},u;function L(F){p[F]&&(u[F]=function(U){return new Promise(function(ye,Ce){_.push([F,U,ye,Ce])>1||I(F,U)})})}function I(F,U){try{!function x(F){F.value instanceof j?Promise.resolve(F.value.v).then(r,v):G(_[0][2],F)}(p[F](U))}catch(ye){G(_[0][3],ye)}}function r(F){I("next",F)}function v(F){I("throw",F)}function G(F,U){F(U),_.shift(),_.length&&I(_[0][0],_[0][1])}}function ee(b){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var a,i=b[Symbol.asyncIterator];return i?i.call(b):(b=function O(b){var i="function"==typeof Symbol&&Symbol.iterator,a=i&&b[i],p=0;if(a)return a.call(b);if(b&&"number"==typeof b.length)return{next:function(){return b&&p>=b.length&&(b=void 0),{value:b&&b[p++],done:!b}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}(b),a={},p("next"),p("throw"),p("return"),a[Symbol.asyncIterator]=function(){return this},a);function p(_){a[_]=b[_]&&function(L){return new Promise(function(I,x){!function u(_,L,I,x){Promise.resolve(x).then(function(r){_({value:r,done:I})},L)}(I,x,(L=b[_](L)).done,L.value)})}}}m.d(Q,{mG:()=>N,qq:()=>j,FC:()=>W,KL:()=>ee})},655:(Ve,Q,m)=>{"use strict";function o(b,i,a,p){var L,u=arguments.length,_=u<3?i:null===p?p=Object.getOwnPropertyDescriptor(i,a):p;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)_=Reflect.decorate(b,i,a,p);else for(var I=b.length-1;I>=0;I--)(L=b[I])&&(_=(u<3?L(_):u>3?L(i,a,_):L(i,a))||_);return u>3&&_&&Object.defineProperty(i,a,_),_}function N(b,i,a,p){return new(a||(a=Promise))(function(_,L){function I(v){try{r(p.next(v))}catch(G){L(G)}}function x(v){try{r(p.throw(v))}catch(G){L(G)}}function r(v){v.done?_(v.value):function u(_){return _ instanceof a?_:new a(function(L){L(_)})}(v.value).then(I,x)}r((p=p.apply(b,i||[])).next())})}m.d(Q,{gn:()=>o,mG:()=>N})},950:()=>{},6601:()=>{},8623:()=>{},7748:()=>{},5568:()=>{},6619:()=>{},7108:()=>{},2361:()=>{},4616:()=>{},1777:(Ve,Q,m)=>{"use strict";m.d(Q,{l3:()=>y,_j:()=>e,LC:()=>t,ZN:()=>W,jt:()=>o,pV:()=>E,ru:()=>M,F4:()=>D,IO:()=>w,vP:()=>l,SB:()=>s,oB:()=>N,eR:()=>A,X$:()=>C,ZE:()=>ie,k1:()=>ee});class e{}class t{}const y="*";function C(_e,ce){return{type:7,name:_e,definitions:ce,options:{}}}function o(_e,ce=null){return{type:4,styles:ce,timings:_e}}function M(_e,ce=null){return{type:3,steps:_e,options:ce}}function l(_e,ce=null){return{type:2,steps:_e,options:ce}}function N(_e){return{type:6,styles:_e,offset:null}}function s(_e,ce,re){return{type:0,name:_e,styles:ce,options:re}}function D(_e){return{type:5,steps:_e}}function A(_e,ce,re=null){return{type:1,expr:_e,animation:ce,options:re}}function E(_e=null){return{type:9,options:_e}}function w(_e,ce,re=null){return{type:11,selector:_e,animation:ce,options:re}}function j(_e){Promise.resolve(null).then(_e)}class W{constructor(ce=0,re=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=ce+re}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(ce=>ce()),this._onDoneFns=[])}onStart(ce){this._onStartFns.push(ce)}onDone(ce){this._onDoneFns.push(ce)}onDestroy(ce){this._onDestroyFns.push(ce)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){j(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(ce=>ce()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(ce=>ce()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(ce){this._position=this.totalTime?ce*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(ce){const re="start"==ce?this._onStartFns:this._onDoneFns;re.forEach(de=>de()),re.length=0}}class ie{constructor(ce){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=ce;let re=0,de=0,oe=0;const ae=this.players.length;0==ae?j(()=>this._onFinish()):this.players.forEach(b=>{b.onDone(()=>{++re==ae&&this._onFinish()}),b.onDestroy(()=>{++de==ae&&this._onDestroy()}),b.onStart(()=>{++oe==ae&&this._onStart()})}),this.totalTime=this.players.reduce((b,i)=>Math.max(b,i.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(ce=>ce()),this._onDoneFns=[])}init(){this.players.forEach(ce=>ce.init())}onStart(ce){this._onStartFns.push(ce)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(ce=>ce()),this._onStartFns=[])}onDone(ce){this._onDoneFns.push(ce)}onDestroy(ce){this._onDestroyFns.push(ce)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(ce=>ce.play())}pause(){this.players.forEach(ce=>ce.pause())}restart(){this.players.forEach(ce=>ce.restart())}finish(){this._onFinish(),this.players.forEach(ce=>ce.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(ce=>ce.destroy()),this._onDestroyFns.forEach(ce=>ce()),this._onDestroyFns=[])}reset(){this.players.forEach(ce=>ce.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(ce){const re=ce*this.totalTime;this.players.forEach(de=>{const oe=de.totalTime?Math.min(1,re/de.totalTime):1;de.setPosition(oe)})}getPosition(){const ce=this.players.reduce((re,de)=>null===re||de.totalTime>re.totalTime?de:re,null);return null!=ce?ce.getPosition():0}beforeDestroy(){this.players.forEach(ce=>{ce.beforeDestroy&&ce.beforeDestroy()})}triggerCallback(ce){const re="start"==ce?this._onStartFns:this._onDoneFns;re.forEach(de=>de()),re.length=0}}const ee="!"},5664:(Ve,Q,m)=>{"use strict";m.d(Q,{rt:()=>Ze,s1:()=>L,$s:()=>a,Qr:()=>Zt,kH:()=>jt,mK:()=>vt,Em:()=>I,tE:()=>Ii,qV:()=>Ge,qm:()=>hi,ic:()=>r,Kd:()=>Mt,X6:()=>q,yG:()=>$});var e=m(9808),t=m(5e3),y=m(7579),C=m(727),o=m(1135),M=m(9646),l=m(1159),N=m(8505),s=m(8372),D=m(9300),A=m(4004),O=m(5698),E=m(5684),P=m(1884),w=m(2722),Z=m(3191),j=m(925),W=m(7144);function ce(Ee,Y){return(Ee.getAttribute(Y)||"").match(/\S+/g)||[]}const re="cdk-describedby-message-container",de="cdk-describedby-message",oe="cdk-describedby-host";let ae=0;const b=new Map;let i=null,a=(()=>{class Ee{constructor(me){this._document=me}describe(me,De,et){if(!this._canBeDescribed(me,De))return;const $t=p(De,et);"string"!=typeof De?(u(De),b.set($t,{messageElement:De,referenceCount:0})):b.has($t)||this._createMessageElement(De,et),this._isElementDescribedByMessage(me,$t)||this._addMessageReference(me,$t)}removeDescription(me,De,et){if(!De||!this._isElementNode(me))return;const $t=p(De,et);if(this._isElementDescribedByMessage(me,$t)&&this._removeMessageReference(me,$t),"string"==typeof De){const Nt=b.get($t);Nt&&0===Nt.referenceCount&&this._deleteMessageElement($t)}i&&0===i.childNodes.length&&this._deleteMessagesContainer()}ngOnDestroy(){const me=this._document.querySelectorAll(`[${oe}]`);for(let De=0;De<me.length;De++)this._removeCdkDescribedByReferenceIds(me[De]),me[De].removeAttribute(oe);i&&this._deleteMessagesContainer(),b.clear()}_createMessageElement(me,De){const et=this._document.createElement("div");u(et),et.textContent=me,De&&et.setAttribute("role",De),this._createMessagesContainer(),i.appendChild(et),b.set(p(me,De),{messageElement:et,referenceCount:0})}_deleteMessageElement(me){var De;const et=b.get(me);null===(De=null==et?void 0:et.messageElement)||void 0===De||De.remove(),b.delete(me)}_createMessagesContainer(){if(!i){const me=this._document.getElementById(re);null==me||me.remove(),i=this._document.createElement("div"),i.id=re,i.style.visibility="hidden",i.classList.add("cdk-visually-hidden"),this._document.body.appendChild(i)}}_deleteMessagesContainer(){i&&(i.remove(),i=null)}_removeCdkDescribedByReferenceIds(me){const De=ce(me,"aria-describedby").filter(et=>0!=et.indexOf(de));me.setAttribute("aria-describedby",De.join(" "))}_addMessageReference(me,De){const et=b.get(De);(function ee(Ee,Y,me){const De=ce(Ee,Y);De.some(et=>et.trim()==me.trim())||(De.push(me.trim()),Ee.setAttribute(Y,De.join(" ")))})(me,"aria-describedby",et.messageElement.id),me.setAttribute(oe,""),et.referenceCount++}_removeMessageReference(me,De){const et=b.get(De);et.referenceCount--,function _e(Ee,Y,me){const et=ce(Ee,Y).filter($t=>$t!=me.trim());et.length?Ee.setAttribute(Y,et.join(" ")):Ee.removeAttribute(Y)}(me,"aria-describedby",et.messageElement.id),me.removeAttribute(oe)}_isElementDescribedByMessage(me,De){const et=ce(me,"aria-describedby"),$t=b.get(De),Nt=$t&&$t.messageElement.id;return!!Nt&&-1!=et.indexOf(Nt)}_canBeDescribed(me,De){if(!this._isElementNode(me))return!1;if(De&&"object"==typeof De)return!0;const et=null==De?"":`${De}`.trim(),$t=me.getAttribute("aria-label");return!(!et||$t&&$t.trim()===et)}_isElementNode(me){return me.nodeType===this._document.ELEMENT_NODE}}return Ee.\u0275fac=function(me){return new(me||Ee)(t.LFG(e.K0))},Ee.\u0275prov=t.Yz7({token:Ee,factory:Ee.\u0275fac,providedIn:"root"}),Ee})();function p(Ee,Y){return"string"==typeof Ee?`${Y||""}/${Ee}`:Ee}function u(Ee){Ee.id||(Ee.id=`${de}-${ae++}`)}class _{constructor(Y){this._items=Y,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new y.x,this._typeaheadSubscription=C.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=me=>me.disabled,this._pressedLetters=[],this.tabOut=new y.x,this.change=new y.x,Y instanceof t.n_E&&Y.changes.subscribe(me=>{if(this._activeItem){const et=me.toArray().indexOf(this._activeItem);et>-1&&et!==this._activeItemIndex&&(this._activeItemIndex=et)}})}skipPredicate(Y){return this._skipPredicateFn=Y,this}withWrap(Y=!0){return this._wrap=Y,this}withVerticalOrientation(Y=!0){return this._vertical=Y,this}withHorizontalOrientation(Y){return this._horizontal=Y,this}withAllowedModifierKeys(Y){return this._allowedModifierKeys=Y,this}withTypeAhead(Y=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,N.b)(me=>this._pressedLetters.push(me)),(0,s.b)(Y),(0,D.h)(()=>this._pressedLetters.length>0),(0,A.U)(()=>this._pressedLetters.join(""))).subscribe(me=>{const De=this._getItemsArray();for(let et=1;et<De.length+1;et++){const $t=(this._activeItemIndex+et)%De.length,Nt=De[$t];if(!this._skipPredicateFn(Nt)&&0===Nt.getLabel().toUpperCase().trim().indexOf(me)){this.setActiveItem($t);break}}this._pressedLetters=[]}),this}withHomeAndEnd(Y=!0){return this._homeAndEnd=Y,this}setActiveItem(Y){const me=this._activeItem;this.updateActiveItem(Y),this._activeItem!==me&&this.change.next(this._activeItemIndex)}onKeydown(Y){const me=Y.keyCode,et=["altKey","ctrlKey","metaKey","shiftKey"].every($t=>!Y[$t]||this._allowedModifierKeys.indexOf($t)>-1);switch(me){case l.Mf:return void this.tabOut.next();case l.JH:if(this._vertical&&et){this.setNextItemActive();break}return;case l.LH:if(this._vertical&&et){this.setPreviousItemActive();break}return;case l.SV:if(this._horizontal&&et){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case l.oh:if(this._horizontal&&et){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case l.Sd:if(this._homeAndEnd&&et){this.setFirstItemActive();break}return;case l.uR:if(this._homeAndEnd&&et){this.setLastItemActive();break}return;default:return void((et||(0,l.Vb)(Y,"shiftKey"))&&(Y.key&&1===Y.key.length?this._letterKeyStream.next(Y.key.toLocaleUpperCase()):(me>=l.A&&me<=l.Z||me>=l.xE&&me<=l.aO)&&this._letterKeyStream.next(String.fromCharCode(me))))}this._pressedLetters=[],Y.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(Y){const me=this._getItemsArray(),De="number"==typeof Y?Y:me.indexOf(Y),et=me[De];this._activeItem=null==et?null:et,this._activeItemIndex=De}_setActiveItemByDelta(Y){this._wrap?this._setActiveInWrapMode(Y):this._setActiveInDefaultMode(Y)}_setActiveInWrapMode(Y){const me=this._getItemsArray();for(let De=1;De<=me.length;De++){const et=(this._activeItemIndex+Y*De+me.length)%me.length;if(!this._skipPredicateFn(me[et]))return void this.setActiveItem(et)}}_setActiveInDefaultMode(Y){this._setActiveItemByIndex(this._activeItemIndex+Y,Y)}_setActiveItemByIndex(Y,me){const De=this._getItemsArray();if(De[Y]){for(;this._skipPredicateFn(De[Y]);)if(!De[Y+=me])return;this.setActiveItem(Y)}}_getItemsArray(){return this._items instanceof t.n_E?this._items.toArray():this._items}}class L extends _{setActiveItem(Y){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(Y),this.activeItem&&this.activeItem.setActiveStyles()}}class I extends _{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(Y){return this._origin=Y,this}setActiveItem(Y){super.setActiveItem(Y),this.activeItem&&this.activeItem.focus(this._origin)}}let r=(()=>{class Ee{constructor(me){this._platform=me}isDisabled(me){return me.hasAttribute("disabled")}isVisible(me){return function G(Ee){return!!(Ee.offsetWidth||Ee.offsetHeight||"function"==typeof Ee.getClientRects&&Ee.getClientRects().length)}(me)&&"visible"===getComputedStyle(me).visibility}isTabbable(me){if(!this._platform.isBrowser)return!1;const De=function v(Ee){try{return Ee.frameElement}catch(Y){return null}}(function we(Ee){return Ee.ownerDocument&&Ee.ownerDocument.defaultView||window}(me));if(De&&(-1===Ie(De)||!this.isVisible(De)))return!1;let et=me.nodeName.toLowerCase(),$t=Ie(me);return me.hasAttribute("contenteditable")?-1!==$t:!("iframe"===et||"object"===et||this._platform.WEBKIT&&this._platform.IOS&&!function K(Ee){let Y=Ee.nodeName.toLowerCase(),me="input"===Y&&Ee.type;return"text"===me||"password"===me||"select"===Y||"textarea"===Y}(me))&&("audio"===et?!!me.hasAttribute("controls")&&-1!==$t:"video"===et?-1!==$t&&(null!==$t||this._platform.FIREFOX||me.hasAttribute("controls")):me.tabIndex>=0)}isFocusable(me,De){return function Me(Ee){return!function U(Ee){return function Ce(Ee){return"input"==Ee.nodeName.toLowerCase()}(Ee)&&"hidden"==Ee.type}(Ee)&&(function F(Ee){let Y=Ee.nodeName.toLowerCase();return"input"===Y||"select"===Y||"button"===Y||"textarea"===Y}(Ee)||function ye(Ee){return function Be(Ee){return"a"==Ee.nodeName.toLowerCase()}(Ee)&&Ee.hasAttribute("href")}(Ee)||Ee.hasAttribute("contenteditable")||ze(Ee))}(me)&&!this.isDisabled(me)&&((null==De?void 0:De.ignoreVisibility)||this.isVisible(me))}}return Ee.\u0275fac=function(me){return new(me||Ee)(t.LFG(j.t4))},Ee.\u0275prov=t.Yz7({token:Ee,factory:Ee.\u0275fac,providedIn:"root"}),Ee})();function ze(Ee){if(!Ee.hasAttribute("tabindex")||void 0===Ee.tabIndex)return!1;let Y=Ee.getAttribute("tabindex");return!(!Y||isNaN(parseInt(Y,10)))}function Ie(Ee){if(!ze(Ee))return null;const Y=parseInt(Ee.getAttribute("tabindex")||"",10);return isNaN(Y)?-1:Y}class z{constructor(Y,me,De,et,$t=!1){this._element=Y,this._checker=me,this._ngZone=De,this._document=et,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,$t||this.attachAnchors()}get enabled(){return this._enabled}set enabled(Y){this._enabled=Y,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Y,this._startAnchor),this._toggleAnchorTabIndex(Y,this._endAnchor))}destroy(){const Y=this._startAnchor,me=this._endAnchor;Y&&(Y.removeEventListener("focus",this.startAnchorListener),Y.remove()),me&&(me.removeEventListener("focus",this.endAnchorListener),me.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(Y){return new Promise(me=>{this._executeOnStable(()=>me(this.focusInitialElement(Y)))})}focusFirstTabbableElementWhenReady(Y){return new Promise(me=>{this._executeOnStable(()=>me(this.focusFirstTabbableElement(Y)))})}focusLastTabbableElementWhenReady(Y){return new Promise(me=>{this._executeOnStable(()=>me(this.focusLastTabbableElement(Y)))})}_getRegionBoundary(Y){const me=this._element.querySelectorAll(`[cdk-focus-region-${Y}], [cdkFocusRegion${Y}], [cdk-focus-${Y}]`);return"start"==Y?me.length?me[0]:this._getFirstTabbableElement(this._element):me.length?me[me.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(Y){const me=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(me){if(!this._checker.isFocusable(me)){const De=this._getFirstTabbableElement(me);return null==De||De.focus(Y),!!De}return me.focus(Y),!0}return this.focusFirstTabbableElement(Y)}focusFirstTabbableElement(Y){const me=this._getRegionBoundary("start");return me&&me.focus(Y),!!me}focusLastTabbableElement(Y){const me=this._getRegionBoundary("end");return me&&me.focus(Y),!!me}hasAttached(){return this._hasAttached}_getFirstTabbableElement(Y){if(this._checker.isFocusable(Y)&&this._checker.isTabbable(Y))return Y;const me=Y.children;for(let De=0;De<me.length;De++){const et=me[De].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(me[De]):null;if(et)return et}return null}_getLastTabbableElement(Y){if(this._checker.isFocusable(Y)&&this._checker.isTabbable(Y))return Y;const me=Y.children;for(let De=me.length-1;De>=0;De--){const et=me[De].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(me[De]):null;if(et)return et}return null}_createAnchor(){const Y=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,Y),Y.classList.add("cdk-visually-hidden"),Y.classList.add("cdk-focus-trap-anchor"),Y.setAttribute("aria-hidden","true"),Y}_toggleAnchorTabIndex(Y,me){Y?me.setAttribute("tabindex","0"):me.removeAttribute("tabindex")}toggleAnchors(Y){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Y,this._startAnchor),this._toggleAnchorTabIndex(Y,this._endAnchor))}_executeOnStable(Y){this._ngZone.isStable?Y():this._ngZone.onStable.pipe((0,O.q)(1)).subscribe(Y)}}let Ge=(()=>{class Ee{constructor(me,De,et){this._checker=me,this._ngZone=De,this._document=et}create(me,De=!1){return new z(me,this._checker,this._ngZone,this._document,De)}}return Ee.\u0275fac=function(me){return new(me||Ee)(t.LFG(r),t.LFG(t.R0b),t.LFG(e.K0))},Ee.\u0275prov=t.Yz7({token:Ee,factory:Ee.\u0275fac,providedIn:"root"}),Ee})(),vt=(()=>{class Ee{constructor(me,De,et){this._elementRef=me,this._focusTrapFactory=De,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(me){this.focusTrap.enabled=(0,Z.Ig)(me)}get autoCapture(){return this._autoCapture}set autoCapture(me){this._autoCapture=(0,Z.Ig)(me)}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(me){const De=me.autoCapture;De&&!De.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,j.ht)(),this.focusTrap.focusInitialElementWhenReady()}}return Ee.\u0275fac=function(me){return new(me||Ee)(t.Y36(t.SBq),t.Y36(Ge),t.Y36(e.K0))},Ee.\u0275dir=t.lG2({type:Ee,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[t.TTD]}),Ee})();function q(Ee){return 0===Ee.offsetX&&0===Ee.offsetY}function $(Ee){const Y=Ee.touches&&Ee.touches[0]||Ee.changedTouches&&Ee.changedTouches[0];return!(!Y||-1!==Y.identifier||null!=Y.radiusX&&1!==Y.radiusX||null!=Y.radiusY&&1!==Y.radiusY)}const le=new t.OlP("cdk-input-modality-detector-options"),xe={ignoreKeys:[l.zL,l.jx,l.b2,l.MW,l.JU]},lt=(0,j.i$)({passive:!0,capture:!0});let nt=(()=>{class Ee{constructor(me,De,et,$t){this._platform=me,this._mostRecentTarget=null,this._modality=new o.X(null),this._lastTouchMs=0,this._onKeydown=Nt=>{var Jt,ct;(null===(ct=null===(Jt=this._options)||void 0===Jt?void 0:Jt.ignoreKeys)||void 0===ct?void 0:ct.some(Pe=>Pe===Nt.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=(0,j.sA)(Nt))},this._onMousedown=Nt=>{Date.now()-this._lastTouchMs<650||(this._modality.next(q(Nt)?"keyboard":"mouse"),this._mostRecentTarget=(0,j.sA)(Nt))},this._onTouchstart=Nt=>{$(Nt)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,j.sA)(Nt))},this._options=Object.assign(Object.assign({},xe),$t),this.modalityDetected=this._modality.pipe((0,E.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,P.x)()),me.isBrowser&&De.runOutsideAngular(()=>{et.addEventListener("keydown",this._onKeydown,lt),et.addEventListener("mousedown",this._onMousedown,lt),et.addEventListener("touchstart",this._onTouchstart,lt)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,lt),document.removeEventListener("mousedown",this._onMousedown,lt),document.removeEventListener("touchstart",this._onTouchstart,lt))}}return Ee.\u0275fac=function(me){return new(me||Ee)(t.LFG(j.t4),t.LFG(t.R0b),t.LFG(e.K0),t.LFG(le,8))},Ee.\u0275prov=t.Yz7({token:Ee,factory:Ee.\u0275fac,providedIn:"root"}),Ee})();const ft=new t.OlP("liveAnnouncerElement",{providedIn:"root",factory:function it(){return null}}),rt=new t.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let Mt=(()=>{class Ee{constructor(me,De,et,$t){this._ngZone=De,this._defaultOptions=$t,this._document=et,this._liveElement=me||this._createLiveElement()}announce(me,...De){const et=this._defaultOptions;let $t,Nt;return 1===De.length&&"number"==typeof De[0]?Nt=De[0]:[$t,Nt]=De,this.clear(),clearTimeout(this._previousTimeout),$t||($t=et&&et.politeness?et.politeness:"polite"),null==Nt&&et&&(Nt=et.duration),this._liveElement.setAttribute("aria-live",$t),this._ngZone.runOutsideAngular(()=>new Promise(Jt=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=me,Jt(),"number"==typeof Nt&&(this._previousTimeout=setTimeout(()=>this.clear(),Nt))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){var me;clearTimeout(this._previousTimeout),null===(me=this._liveElement)||void 0===me||me.remove(),this._liveElement=null}_createLiveElement(){const me="cdk-live-announcer-element",De=this._document.getElementsByClassName(me),et=this._document.createElement("div");for(let $t=0;$t<De.length;$t++)De[$t].remove();return et.classList.add(me),et.classList.add("cdk-visually-hidden"),et.setAttribute("aria-atomic","true"),et.setAttribute("aria-live","polite"),this._document.body.appendChild(et),et}}return Ee.\u0275fac=function(me){return new(me||Ee)(t.LFG(ft,8),t.LFG(t.R0b),t.LFG(e.K0),t.LFG(rt,8))},Ee.\u0275prov=t.Yz7({token:Ee,factory:Ee.\u0275fac,providedIn:"root"}),Ee})(),Zt=(()=>{class Ee{constructor(me,De,et,$t){this._elementRef=me,this._liveAnnouncer=De,this._contentObserver=et,this._ngZone=$t,this._politeness="polite"}get politeness(){return this._politeness}set politeness(me){this._politeness="off"===me||"assertive"===me?me:"polite","off"===this._politeness?this._subscription&&(this._subscription.unsubscribe(),this._subscription=null):this._subscription||(this._subscription=this._ngZone.runOutsideAngular(()=>this._contentObserver.observe(this._elementRef).subscribe(()=>{const De=this._elementRef.nativeElement.textContent;De!==this._previousAnnouncedText&&(this._liveAnnouncer.announce(De,this._politeness),this._previousAnnouncedText=De)})))}ngOnDestroy(){this._subscription&&this._subscription.unsubscribe()}}return Ee.\u0275fac=function(me){return new(me||Ee)(t.Y36(t.SBq),t.Y36(Mt),t.Y36(W.yq),t.Y36(t.R0b))},Ee.\u0275dir=t.lG2({type:Ee,selectors:[["","cdkAriaLive",""]],inputs:{politeness:["cdkAriaLive","politeness"]},exportAs:["cdkAriaLive"]}),Ee})();const Ft=new t.OlP("cdk-focus-monitor-default-options"),Vt=(0,j.i$)({passive:!0,capture:!0});let Ii=(()=>{class Ee{constructor(me,De,et,$t,Nt){this._ngZone=me,this._platform=De,this._inputModalityDetector=et,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=setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new y.x,this._rootNodeFocusAndBlurListener=Jt=>{const ct=(0,j.sA)(Jt),Pe="focus"===Jt.type?this._onFocus:this._onBlur;for(let Fe=ct;Fe;Fe=Fe.parentElement)Pe.call(this,Jt,Fe)},this._document=$t,this._detectionMode=(null==Nt?void 0:Nt.detectionMode)||0}monitor(me,De=!1){const et=(0,Z.fI)(me);if(!this._platform.isBrowser||1!==et.nodeType)return(0,M.of)(null);const $t=(0,j.kV)(et)||this._getDocument(),Nt=this._elementInfo.get(et);if(Nt)return De&&(Nt.checkChildren=!0),Nt.subject;const Jt={checkChildren:De,subject:new y.x,rootNode:$t};return this._elementInfo.set(et,Jt),this._registerGlobalListeners(Jt),Jt.subject}stopMonitoring(me){const De=(0,Z.fI)(me),et=this._elementInfo.get(De);et&&(et.subject.complete(),this._setClasses(De),this._elementInfo.delete(De),this._removeGlobalListeners(et))}focusVia(me,De,et){const $t=(0,Z.fI)(me);$t===this._getDocument().activeElement?this._getClosestElementsInfo($t).forEach(([Jt,ct])=>this._originChanged(Jt,De,ct)):(this._setOrigin(De),"function"==typeof $t.focus&&$t.focus(et))}ngOnDestroy(){this._elementInfo.forEach((me,De)=>this.stopMonitoring(De))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(me){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(me)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(me){return 1===this._detectionMode||!!(null==me?void 0:me.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(me,De){me.classList.toggle("cdk-focused",!!De),me.classList.toggle("cdk-touch-focused","touch"===De),me.classList.toggle("cdk-keyboard-focused","keyboard"===De),me.classList.toggle("cdk-mouse-focused","mouse"===De),me.classList.toggle("cdk-program-focused","program"===De)}_setOrigin(me,De=!1){this._ngZone.runOutsideAngular(()=>{this._origin=me,this._originFromTouchInteraction="touch"===me&&De,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(me,De){const et=this._elementInfo.get(De),$t=(0,j.sA)(me);!et||!et.checkChildren&&De!==$t||this._originChanged(De,this._getFocusOrigin($t),et)}_onBlur(me,De){const et=this._elementInfo.get(De);!et||et.checkChildren&&me.relatedTarget instanceof Node&&De.contains(me.relatedTarget)||(this._setClasses(De),this._emitOrigin(et.subject,null))}_emitOrigin(me,De){this._ngZone.run(()=>me.next(De))}_registerGlobalListeners(me){if(!this._platform.isBrowser)return;const De=me.rootNode,et=this._rootNodeFocusListenerCount.get(De)||0;et||this._ngZone.runOutsideAngular(()=>{De.addEventListener("focus",this._rootNodeFocusAndBlurListener,Vt),De.addEventListener("blur",this._rootNodeFocusAndBlurListener,Vt)}),this._rootNodeFocusListenerCount.set(De,et+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,w.R)(this._stopInputModalityDetector)).subscribe($t=>{this._setOrigin($t,!0)}))}_removeGlobalListeners(me){const De=me.rootNode;if(this._rootNodeFocusListenerCount.has(De)){const et=this._rootNodeFocusListenerCount.get(De);et>1?this._rootNodeFocusListenerCount.set(De,et-1):(De.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Vt),De.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Vt),this._rootNodeFocusListenerCount.delete(De))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(me,De,et){this._setClasses(me,De),this._emitOrigin(et.subject,De),this._lastFocusOrigin=De}_getClosestElementsInfo(me){const De=[];return this._elementInfo.forEach((et,$t)=>{($t===me||et.checkChildren&&$t.contains(me))&&De.push([$t,et])}),De}}return Ee.\u0275fac=function(me){return new(me||Ee)(t.LFG(t.R0b),t.LFG(j.t4),t.LFG(nt),t.LFG(e.K0,8),t.LFG(Ft,8))},Ee.\u0275prov=t.Yz7({token:Ee,factory:Ee.\u0275fac,providedIn:"root"}),Ee})(),jt=(()=>{class Ee{constructor(me,De){this._elementRef=me,this._focusMonitor=De,this.cdkFocusChange=new t.vpe}ngAfterViewInit(){const me=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(me,1===me.nodeType&&me.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(De=>this.cdkFocusChange.emit(De))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return Ee.\u0275fac=function(me){return new(me||Ee)(t.Y36(t.SBq),t.Y36(Ii))},Ee.\u0275dir=t.lG2({type:Ee,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),Ee})();const ei="cdk-high-contrast-black-on-white",Pi="cdk-high-contrast-white-on-black",ai="cdk-high-contrast-active";let hi=(()=>{class Ee{constructor(me,De){this._platform=me,this._document=De}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const me=this._document.createElement("div");me.style.backgroundColor="rgb(1,2,3)",me.style.position="absolute",this._document.body.appendChild(me);const De=this._document.defaultView||window,et=De&&De.getComputedStyle?De.getComputedStyle(me):null,$t=(et&&et.backgroundColor||"").replace(/ /g,"");switch(me.remove(),$t){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 me=this._document.body.classList;me.remove(ai),me.remove(ei),me.remove(Pi),this._hasCheckedHighContrastMode=!0;const De=this.getHighContrastMode();1===De?(me.add(ai),me.add(ei)):2===De&&(me.add(ai),me.add(Pi))}}}return Ee.\u0275fac=function(me){return new(me||Ee)(t.LFG(j.t4),t.LFG(e.K0))},Ee.\u0275prov=t.Yz7({token:Ee,factory:Ee.\u0275fac,providedIn:"root"}),Ee})(),Ze=(()=>{class Ee{constructor(me){me._applyBodyHighContrastModeCssClasses()}}return Ee.\u0275fac=function(me){return new(me||Ee)(t.LFG(hi))},Ee.\u0275mod=t.oAB({type:Ee}),Ee.\u0275inj=t.cJS({imports:[[j.ud,W.Q8]]}),Ee})()},226:(Ve,Q,m)=>{"use strict";m.d(Q,{vT:()=>s,Is:()=>l});var e=m(5e3),t=m(9808);const y=new e.OlP("cdk-dir-doc",{providedIn:"root",factory:function C(){return(0,e.f3M)(t.K0)}}),o=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let l=(()=>{class D{constructor(O){if(this.value="ltr",this.change=new e.vpe,O){const P=O.documentElement?O.documentElement.dir:null;this.value=function M(D){const A=(null==D?void 0:D.toLowerCase())||"";return"auto"===A&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?o.test(navigator.language)?"rtl":"ltr":"rtl"===A?"rtl":"ltr"}((O.body?O.body.dir:null)||P||"ltr")}}ngOnDestroy(){this.change.complete()}}return D.\u0275fac=function(O){return new(O||D)(e.LFG(y,8))},D.\u0275prov=e.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"}),D})(),s=(()=>{class D{}return D.\u0275fac=function(O){return new(O||D)},D.\u0275mod=e.oAB({type:D}),D.\u0275inj=e.cJS({}),D})()},3191:(Ve,Q,m)=>{"use strict";m.d(Q,{t6:()=>C,Eq:()=>o,Ig:()=>t,HM:()=>M,fI:()=>l,su:()=>y,du:()=>N});var e=m(5e3);function t(s){return null!=s&&"false"!=`${s}`}function y(s,D=0){return C(s)?Number(s):D}function C(s){return!isNaN(parseFloat(s))&&!isNaN(Number(s))}function o(s){return Array.isArray(s)?s:[s]}function M(s){return null==s?"":"string"==typeof s?s:`${s}px`}function l(s){return s instanceof e.SBq?s.nativeElement:s}function N(s,D=/\s+/){const A=[];if(null!=s){const O=Array.isArray(s)?s:`${s}`.split(D);for(const E of O){const P=`${E}`.trim();P&&A.push(P)}}return A}},449:(Ve,Q,m)=>{"use strict";m.d(Q,{o2:()=>y,Ov:()=>N,A8:()=>D,yy:()=>M,eX:()=>l,k:()=>A,Z9:()=>C});var e=m(7579),t=m(5e3);class y{}function C(O){return O&&"function"==typeof O.connect}class M{applyChanges(E,P,w,Z,j){E.forEachOperation((W,ie,ee)=>{let _e,ce;if(null==W.previousIndex){const re=w(W,ie,ee);_e=P.createEmbeddedView(re.templateRef,re.context,re.index),ce=1}else null==ee?(P.remove(ie),ce=3):(_e=P.get(ie),P.move(_e,ee),ce=2);j&&j({context:null==_e?void 0:_e.context,operation:ce,record:W})})}detach(){}}class l{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(E,P,w,Z,j){E.forEachOperation((W,ie,ee)=>{let _e,ce;null==W.previousIndex?(_e=this._insertView(()=>w(W,ie,ee),ee,P,Z(W)),ce=_e?1:0):null==ee?(this._detachAndCacheView(ie,P),ce=3):(_e=this._moveView(ie,ee,P,Z(W)),ce=2),j&&j({context:null==_e?void 0:_e.context,operation:ce,record:W})})}detach(){for(const E of this._viewCache)E.destroy();this._viewCache=[]}_insertView(E,P,w,Z){const j=this._insertViewFromCache(P,w);if(j)return void(j.context.$implicit=Z);const W=E();return w.createEmbeddedView(W.templateRef,W.context,W.index)}_detachAndCacheView(E,P){const w=P.detach(E);this._maybeCacheView(w,P)}_moveView(E,P,w,Z){const j=w.get(E);return w.move(j,P),j.context.$implicit=Z,j}_maybeCacheView(E,P){if(this._viewCache.length<this.viewCacheSize)this._viewCache.push(E);else{const w=P.indexOf(E);-1===w?E.destroy():P.remove(w)}}_insertViewFromCache(E,P){const w=this._viewCache.pop();return w&&P.insert(w,E),w||null}}class N{constructor(E=!1,P,w=!0){this._multiple=E,this._emitChanges=w,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new e.x,P&&P.length&&(E?P.forEach(Z=>this._markSelected(Z)):this._markSelected(P[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(P=>this._markSelected(P)),this._emitChangeEvent()}deselect(...E){this._verifyValueAssignment(E),E.forEach(P=>this._unmarkSelected(P)),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 D=(()=>{class O{constructor(){this._listeners=[]}notify(P,w){for(let Z of this._listeners)Z(P,w)}listen(P){return this._listeners.push(P),()=>{this._listeners=this._listeners.filter(w=>P!==w)}}ngOnDestroy(){this._listeners=[]}}return O.\u0275fac=function(P){return new(P||O)},O.\u0275prov=t.Yz7({token:O,factory:O.\u0275fac,providedIn:"root"}),O})();const A=new t.OlP("_ViewRepeater")},1159:(Ve,Q,m)=>{"use strict";m.d(Q,{A:()=>F,zL:()=>N,jx:()=>l,JH:()=>ee,uR:()=>w,K5:()=>o,hY:()=>A,Sd:()=>Z,oh:()=>j,b2:()=>ui,MW:()=>it,aO:()=>I,VM:()=>P,Ku:()=>E,SV:()=>ie,JU:()=>M,L_:()=>O,Mf:()=>y,LH:()=>W,Z:()=>ft,xE:()=>oe,Vb:()=>Ci});const y=9,o=13,M=16,l=17,N=18,A=27,O=32,E=33,P=34,w=35,Z=36,j=37,W=38,ie=39,ee=40,oe=48,I=57,F=65,ft=90,it=91,ui=224;function Ci(Yi,...$i){return $i.length?$i.some(Cn=>Yi[Cn]):Yi.altKey||Yi.shiftKey||Yi.ctrlKey||Yi.metaKey}},5113:(Ve,Q,m)=>{"use strict";m.d(Q,{Yg:()=>ee,u3:()=>ce,xu:()=>P});var e=m(5e3),t=m(3191),y=m(7579),C=m(9841),o=m(7272),M=m(8306),l=m(5698),N=m(5684),s=m(8372),D=m(4004),A=m(8675),O=m(2722),E=m(925);let P=(()=>{class re{}return re.\u0275fac=function(oe){return new(oe||re)},re.\u0275mod=e.oAB({type:re}),re.\u0275inj=e.cJS({}),re})();const w=new Set;let Z,j=(()=>{class re{constructor(oe){this._platform=oe,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):ie}matchMedia(oe){return(this._platform.WEBKIT||this._platform.BLINK)&&function W(re){if(!w.has(re))try{Z||(Z=document.createElement("style"),Z.setAttribute("type","text/css"),document.head.appendChild(Z)),Z.sheet&&(Z.sheet.insertRule(`@media ${re} {body{ }}`,0),w.add(re))}catch(de){console.error(de)}}(oe),this._matchMedia(oe)}}return re.\u0275fac=function(oe){return new(oe||re)(e.LFG(E.t4))},re.\u0275prov=e.Yz7({token:re,factory:re.\u0275fac,providedIn:"root"}),re})();function ie(re){return{matches:"all"===re||""===re,media:re,addListener:()=>{},removeListener:()=>{}}}let ee=(()=>{class re{constructor(oe,ae){this._mediaMatcher=oe,this._zone=ae,this._queries=new Map,this._destroySubject=new y.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(oe){return _e((0,t.Eq)(oe)).some(b=>this._registerQuery(b).mql.matches)}observe(oe){const b=_e((0,t.Eq)(oe)).map(a=>this._registerQuery(a).observable);let i=(0,C.a)(b);return i=(0,o.z)(i.pipe((0,l.q)(1)),i.pipe((0,N.T)(1),(0,s.b)(0))),i.pipe((0,D.U)(a=>{const p={matches:!1,breakpoints:{}};return a.forEach(({matches:u,query:_})=>{p.matches=p.matches||u,p.breakpoints[_]=u}),p}))}_registerQuery(oe){if(this._queries.has(oe))return this._queries.get(oe);const ae=this._mediaMatcher.matchMedia(oe),i={observable:new M.y(a=>{const p=u=>this._zone.run(()=>a.next(u));return ae.addListener(p),()=>{ae.removeListener(p)}}).pipe((0,A.O)(ae),(0,D.U)(({matches:a})=>({query:oe,matches:a})),(0,O.R)(this._destroySubject)),mql:ae};return this._queries.set(oe,i),i}}return re.\u0275fac=function(oe){return new(oe||re)(e.LFG(j),e.LFG(e.R0b))},re.\u0275prov=e.Yz7({token:re,factory:re.\u0275fac,providedIn:"root"}),re})();function _e(re){return re.map(de=>de.split(",")).reduce((de,oe)=>de.concat(oe)).map(de=>de.trim())}const ce={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"}},7144:(Ve,Q,m)=>{"use strict";m.d(Q,{wD:()=>N,yq:()=>l,Q8:()=>s});var e=m(3191),t=m(5e3),y=m(8306),C=m(7579),o=m(8372);let M=(()=>{class D{create(O){return"undefined"==typeof MutationObserver?null:new MutationObserver(O)}}return D.\u0275fac=function(O){return new(O||D)},D.\u0275prov=t.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"}),D})(),l=(()=>{class D{constructor(O){this._mutationObserverFactory=O,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((O,E)=>this._cleanupObserver(E))}observe(O){const E=(0,e.fI)(O);return new y.y(P=>{const Z=this._observeElement(E).subscribe(P);return()=>{Z.unsubscribe(),this._unobserveElement(E)}})}_observeElement(O){if(this._observedElements.has(O))this._observedElements.get(O).count++;else{const E=new C.x,P=this._mutationObserverFactory.create(w=>E.next(w));P&&P.observe(O,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(O,{observer:P,stream:E,count:1})}return this._observedElements.get(O).stream}_unobserveElement(O){this._observedElements.has(O)&&(this._observedElements.get(O).count--,this._observedElements.get(O).count||this._cleanupObserver(O))}_cleanupObserver(O){if(this._observedElements.has(O)){const{observer:E,stream:P}=this._observedElements.get(O);E&&E.disconnect(),P.complete(),this._observedElements.delete(O)}}}return D.\u0275fac=function(O){return new(O||D)(t.LFG(M))},D.\u0275prov=t.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"}),D})(),N=(()=>{class D{constructor(O,E,P){this._contentObserver=O,this._elementRef=E,this._ngZone=P,this.event=new t.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(O){this._disabled=(0,e.Ig)(O),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(O){this._debounce=(0,e.su)(O),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const O=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?O.pipe((0,o.b)(this.debounce)):O).subscribe(this.event)})}_unsubscribe(){var O;null===(O=this._currentSubscription)||void 0===O||O.unsubscribe()}}return D.\u0275fac=function(O){return new(O||D)(t.Y36(l),t.Y36(t.SBq),t.Y36(t.R0b))},D.\u0275dir=t.lG2({type:D,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),D})(),s=(()=>{class D{}return D.\u0275fac=function(O){return new(O||D)},D.\u0275mod=t.oAB({type:D}),D.\u0275inj=t.cJS({providers:[M]}),D})()},9776:(Ve,Q,m)=>{"use strict";m.d(Q,{pI:()=>vt,xu:()=>Ge,_G:()=>r,aV:()=>Me,X_:()=>ae,Xj:()=>L,U8:()=>he});var e=m(5303),t=m(9808),y=m(5e3),C=m(3191),o=m(925),M=m(226),l=m(7429),N=m(7579),s=m(727),D=m(6451),A=m(4482),O=m(5403),P=m(5698),w=m(2722),Z=m(1159);const j=(0,o.Mq)();class W{constructor(q,$){this._viewportRuler=q,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=$}attach(){}enable(){if(this._canBeEnabled()){const q=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=q.style.left||"",this._previousHTMLStyles.top=q.style.top||"",q.style.left=(0,C.HM)(-this._previousScrollPosition.left),q.style.top=(0,C.HM)(-this._previousScrollPosition.top),q.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const q=this._document.documentElement,le=q.style,xe=this._document.body.style,Ue=le.scrollBehavior||"",lt=xe.scrollBehavior||"";this._isEnabled=!1,le.left=this._previousHTMLStyles.left,le.top=this._previousHTMLStyles.top,q.classList.remove("cdk-global-scrollblock"),j&&(le.scrollBehavior=xe.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),j&&(le.scrollBehavior=Ue,xe.scrollBehavior=lt)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const $=this._document.body,le=this._viewportRuler.getViewportSize();return $.scrollHeight>le.height||$.scrollWidth>le.width}}class ee{constructor(q,$,le,xe){this._scrollDispatcher=q,this._ngZone=$,this._viewportRuler=le,this._config=xe,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(q){this._overlayRef=q}enable(){if(this._scrollSubscription)return;const q=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=q.subscribe(()=>{const $=this._viewportRuler.getViewportScrollPosition().top;Math.abs($-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=q.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class _e{enable(){}disable(){}attach(){}}function ce(ke,q){return q.some($=>ke.bottom<$.top||ke.top>$.bottom||ke.right<$.left||ke.left>$.right)}function re(ke,q){return q.some($=>ke.top<$.top||ke.bottom>$.bottom||ke.left<$.left||ke.right>$.right)}class de{constructor(q,$,le,xe){this._scrollDispatcher=q,this._viewportRuler=$,this._ngZone=le,this._config=xe,this._scrollSubscription=null}attach(q){this._overlayRef=q}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 $=this._overlayRef.overlayElement.getBoundingClientRect(),{width:le,height:xe}=this._viewportRuler.getViewportSize();ce($,[{width:le,height:xe,bottom:xe,right:le,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 oe=(()=>{class ke{constructor($,le,xe,Ue){this._scrollDispatcher=$,this._viewportRuler=le,this._ngZone=xe,this.noop=()=>new _e,this.close=lt=>new ee(this._scrollDispatcher,this._ngZone,this._viewportRuler,lt),this.block=()=>new W(this._viewportRuler,this._document),this.reposition=lt=>new de(this._scrollDispatcher,this._viewportRuler,this._ngZone,lt),this._document=Ue}}return ke.\u0275fac=function($){return new($||ke)(y.LFG(e.mF),y.LFG(e.rL),y.LFG(y.R0b),y.LFG(t.K0))},ke.\u0275prov=y.Yz7({token:ke,factory:ke.\u0275fac,providedIn:"root"}),ke})();class ae{constructor(q){if(this.scrollStrategy=new _e,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,q){const $=Object.keys(q);for(const le of $)void 0!==q[le]&&(this[le]=q[le])}}}class a{constructor(q,$){this.connectionPair=q,this.scrollableViewProperties=$}}class _{constructor(q,$,le,xe,Ue,lt,nt,ft,it){this._portalOutlet=q,this._host=$,this._pane=le,this._config=xe,this._ngZone=Ue,this._keyboardDispatcher=lt,this._document=nt,this._location=ft,this._outsideClickDispatcher=it,this._backdropElement=null,this._backdropClick=new N.x,this._attachments=new N.x,this._detachments=new N.x,this._locationChanges=s.w0.EMPTY,this._backdropClickHandler=rt=>this._backdropClick.next(rt),this._keydownEvents=new N.x,this._outsidePointerEvents=new N.x,xe.scrollStrategy&&(this._scrollStrategy=xe.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=xe.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(q){let $=this._portalOutlet.attach(q);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,P.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),$}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const q=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),q}dispose(){var q;const $=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===(q=this._host)||void 0===q||q.remove(),this._previousHostParent=this._pane=this._host=null,$&&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(q){q!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=q,this.hasAttached()&&(q.attach(this),this.updatePosition()))}updateSize(q){this._config=Object.assign(Object.assign({},this._config),q),this._updateElementSize()}setDirection(q){this._config=Object.assign(Object.assign({},this._config),{direction:q}),this._updateElementDirection()}addPanelClass(q){this._pane&&this._toggleClasses(this._pane,q,!0)}removePanelClass(q){this._pane&&this._toggleClasses(this._pane,q,!1)}getDirection(){const q=this._config.direction;return q?"string"==typeof q?q:q.value:"ltr"}updateScrollStrategy(q){q!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=q,this.hasAttached()&&(q.attach(this),q.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const q=this._pane.style;q.width=(0,C.HM)(this._config.width),q.height=(0,C.HM)(this._config.height),q.minWidth=(0,C.HM)(this._config.minWidth),q.minHeight=(0,C.HM)(this._config.minHeight),q.maxWidth=(0,C.HM)(this._config.maxWidth),q.maxHeight=(0,C.HM)(this._config.maxHeight)}_togglePointerEvents(q){this._pane.style.pointerEvents=q?"":"none"}_attachBackdrop(){const q="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(q)})}):this._backdropElement.classList.add(q)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const q=this._backdropElement;if(!q)return;let $;const le=()=>{q&&(q.removeEventListener("click",this._backdropClickHandler),q.removeEventListener("transitionend",le),this._disposeBackdrop(q)),this._config.backdropClass&&this._toggleClasses(q,this._config.backdropClass,!1),clearTimeout($)};q.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{q.addEventListener("transitionend",le)}),q.style.pointerEvents="none",$=this._ngZone.runOutsideAngular(()=>setTimeout(le,500))}_toggleClasses(q,$,le){const xe=(0,C.Eq)($||[]).filter(Ue=>!!Ue);xe.length&&(le?q.classList.add(...xe):q.classList.remove(...xe))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const q=this._ngZone.onStable.pipe((0,w.R)((0,D.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()),q.unsubscribe())})})}_disposeScrollStrategy(){const q=this._scrollStrategy;q&&(q.disable(),q.detach&&q.detach())}_disposeBackdrop(q){q&&(q.remove(),this._backdropElement===q&&(this._backdropElement=null))}}let L=(()=>{class ke{constructor($,le){this._platform=le,this._document=$}ngOnDestroy(){var $;null===($=this._containerElement)||void 0===$||$.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const $="cdk-overlay-container";if(this._platform.isBrowser||(0,o.Oy)()){const xe=this._document.querySelectorAll(`.${$}[platform="server"], .${$}[platform="test"]`);for(let Ue=0;Ue<xe.length;Ue++)xe[Ue].remove()}const le=this._document.createElement("div");le.classList.add($),(0,o.Oy)()?le.setAttribute("platform","test"):this._platform.isBrowser||le.setAttribute("platform","server"),this._document.body.appendChild(le),this._containerElement=le}}return ke.\u0275fac=function($){return new($||ke)(y.LFG(t.K0),y.LFG(o.t4))},ke.\u0275prov=y.Yz7({token:ke,factory:ke.\u0275fac,providedIn:"root"}),ke})();const I="cdk-overlay-connected-position-bounding-box",x=/([A-Za-z%]+)$/;class r{constructor(q,$,le,xe,Ue){this._viewportRuler=$,this._document=le,this._platform=xe,this._overlayContainer=Ue,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 N.x,this._resizeSubscription=s.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(q)}get positions(){return this._preferredPositions}attach(q){this._validatePositions(),q.hostElement.classList.add(I),this._overlayRef=q,this._boundingBox=q.hostElement,this._pane=q.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();const q=this._originRect,$=this._overlayRect,le=this._viewportRect,xe=[];let Ue;for(let lt of this._preferredPositions){let nt=this._getOriginPoint(q,lt),ft=this._getOverlayPoint(nt,$,lt),it=this._getOverlayFit(ft,$,le,lt);if(it.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(lt,nt);this._canFitWithFlexibleDimensions(it,ft,le)?xe.push({position:lt,origin:nt,overlayRect:$,boundingBoxRect:this._calculateBoundingBoxRect(nt,lt)}):(!Ue||Ue.overlayFit.visibleArea<it.visibleArea)&&(Ue={overlayFit:it,overlayPoint:ft,originPoint:nt,position:lt,overlayRect:$})}if(xe.length){let lt=null,nt=-1;for(const ft of xe){const it=ft.boundingBoxRect.width*ft.boundingBoxRect.height*(ft.position.weight||1);it>nt&&(nt=it,lt=ft)}return this._isPushed=!1,void this._applyPosition(lt.position,lt.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(Ue.position,Ue.originPoint);this._applyPosition(Ue.position,Ue.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&v(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||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const q=this._lastPosition||this._preferredPositions[0],$=this._getOriginPoint(this._originRect,q);this._applyPosition(q,$)}}withScrollableContainers(q){return this._scrollables=q,this}withPositions(q){return this._preferredPositions=q,-1===q.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(q){return this._viewportMargin=q,this}withFlexibleDimensions(q=!0){return this._hasFlexibleDimensions=q,this}withGrowAfterOpen(q=!0){return this._growAfterOpen=q,this}withPush(q=!0){return this._canPush=q,this}withLockedPosition(q=!0){return this._positionLocked=q,this}setOrigin(q){return this._origin=q,this}withDefaultOffsetX(q){return this._offsetX=q,this}withDefaultOffsetY(q){return this._offsetY=q,this}withTransformOriginOn(q){return this._transformOriginSelector=q,this}_getOriginPoint(q,$){let le,xe;if("center"==$.originX)le=q.left+q.width/2;else{const Ue=this._isRtl()?q.right:q.left,lt=this._isRtl()?q.left:q.right;le="start"==$.originX?Ue:lt}return xe="center"==$.originY?q.top+q.height/2:"top"==$.originY?q.top:q.bottom,{x:le,y:xe}}_getOverlayPoint(q,$,le){let xe,Ue;return xe="center"==le.overlayX?-$.width/2:"start"===le.overlayX?this._isRtl()?-$.width:0:this._isRtl()?0:-$.width,Ue="center"==le.overlayY?-$.height/2:"top"==le.overlayY?0:-$.height,{x:q.x+xe,y:q.y+Ue}}_getOverlayFit(q,$,le,xe){const Ue=F($);let{x:lt,y:nt}=q,ft=this._getOffset(xe,"x"),it=this._getOffset(xe,"y");ft&&(lt+=ft),it&&(nt+=it);let Zt=0-nt,Ft=nt+Ue.height-le.height,Vt=this._subtractOverflows(Ue.width,0-lt,lt+Ue.width-le.width),Ii=this._subtractOverflows(Ue.height,Zt,Ft),jt=Vt*Ii;return{visibleArea:jt,isCompletelyWithinViewport:Ue.width*Ue.height===jt,fitsInViewportVertically:Ii===Ue.height,fitsInViewportHorizontally:Vt==Ue.width}}_canFitWithFlexibleDimensions(q,$,le){if(this._hasFlexibleDimensions){const xe=le.bottom-$.y,Ue=le.right-$.x,lt=G(this._overlayRef.getConfig().minHeight),nt=G(this._overlayRef.getConfig().minWidth),it=q.fitsInViewportHorizontally||null!=nt&&nt<=Ue;return(q.fitsInViewportVertically||null!=lt&&lt<=xe)&&it}return!1}_pushOverlayOnScreen(q,$,le){if(this._previousPushAmount&&this._positionLocked)return{x:q.x+this._previousPushAmount.x,y:q.y+this._previousPushAmount.y};const xe=F($),Ue=this._viewportRect,lt=Math.max(q.x+xe.width-Ue.width,0),nt=Math.max(q.y+xe.height-Ue.height,0),ft=Math.max(Ue.top-le.top-q.y,0),it=Math.max(Ue.left-le.left-q.x,0);let rt=0,Mt=0;return rt=xe.width<=Ue.width?it||-lt:q.x<this._viewportMargin?Ue.left-le.left-q.x:0,Mt=xe.height<=Ue.height?ft||-nt:q.y<this._viewportMargin?Ue.top-le.top-q.y:0,this._previousPushAmount={x:rt,y:Mt},{x:q.x+rt,y:q.y+Mt}}_applyPosition(q,$){if(this._setTransformOrigin(q),this._setOverlayElementStyles($,q),this._setBoundingBoxStyles($,q),q.panelClass&&this._addPanelClasses(q.panelClass),this._lastPosition=q,this._positionChanges.observers.length){const le=this._getScrollVisibility(),xe=new a(q,le);this._positionChanges.next(xe)}this._isInitialRender=!1}_setTransformOrigin(q){if(!this._transformOriginSelector)return;const $=this._boundingBox.querySelectorAll(this._transformOriginSelector);let le,xe=q.overlayY;le="center"===q.overlayX?"center":this._isRtl()?"start"===q.overlayX?"right":"left":"start"===q.overlayX?"left":"right";for(let Ue=0;Ue<$.length;Ue++)$[Ue].style.transformOrigin=`${le} ${xe}`}_calculateBoundingBoxRect(q,$){const le=this._viewportRect,xe=this._isRtl();let Ue,lt,nt,rt,Mt,Zt;if("top"===$.overlayY)lt=q.y,Ue=le.height-lt+this._viewportMargin;else if("bottom"===$.overlayY)nt=le.height-q.y+2*this._viewportMargin,Ue=le.height-nt+this._viewportMargin;else{const Ft=Math.min(le.bottom-q.y+le.top,q.y),Vt=this._lastBoundingBoxSize.height;Ue=2*Ft,lt=q.y-Ft,Ue>Vt&&!this._isInitialRender&&!this._growAfterOpen&&(lt=q.y-Vt/2)}if("end"===$.overlayX&&!xe||"start"===$.overlayX&&xe)Zt=le.width-q.x+this._viewportMargin,rt=q.x-this._viewportMargin;else if("start"===$.overlayX&&!xe||"end"===$.overlayX&&xe)Mt=q.x,rt=le.right-q.x;else{const Ft=Math.min(le.right-q.x+le.left,q.x),Vt=this._lastBoundingBoxSize.width;rt=2*Ft,Mt=q.x-Ft,rt>Vt&&!this._isInitialRender&&!this._growAfterOpen&&(Mt=q.x-Vt/2)}return{top:lt,left:Mt,bottom:nt,right:Zt,width:rt,height:Ue}}_setBoundingBoxStyles(q,$){const le=this._calculateBoundingBoxRect(q,$);!this._isInitialRender&&!this._growAfterOpen&&(le.height=Math.min(le.height,this._lastBoundingBoxSize.height),le.width=Math.min(le.width,this._lastBoundingBoxSize.width));const xe={};if(this._hasExactPosition())xe.top=xe.left="0",xe.bottom=xe.right=xe.maxHeight=xe.maxWidth="",xe.width=xe.height="100%";else{const Ue=this._overlayRef.getConfig().maxHeight,lt=this._overlayRef.getConfig().maxWidth;xe.height=(0,C.HM)(le.height),xe.top=(0,C.HM)(le.top),xe.bottom=(0,C.HM)(le.bottom),xe.width=(0,C.HM)(le.width),xe.left=(0,C.HM)(le.left),xe.right=(0,C.HM)(le.right),xe.alignItems="center"===$.overlayX?"center":"end"===$.overlayX?"flex-end":"flex-start",xe.justifyContent="center"===$.overlayY?"center":"bottom"===$.overlayY?"flex-end":"flex-start",Ue&&(xe.maxHeight=(0,C.HM)(Ue)),lt&&(xe.maxWidth=(0,C.HM)(lt))}this._lastBoundingBoxSize=le,v(this._boundingBox.style,xe)}_resetBoundingBoxStyles(){v(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){v(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(q,$){const le={},xe=this._hasExactPosition(),Ue=this._hasFlexibleDimensions,lt=this._overlayRef.getConfig();if(xe){const rt=this._viewportRuler.getViewportScrollPosition();v(le,this._getExactOverlayY($,q,rt)),v(le,this._getExactOverlayX($,q,rt))}else le.position="static";let nt="",ft=this._getOffset($,"x"),it=this._getOffset($,"y");ft&&(nt+=`translateX(${ft}px) `),it&&(nt+=`translateY(${it}px)`),le.transform=nt.trim(),lt.maxHeight&&(xe?le.maxHeight=(0,C.HM)(lt.maxHeight):Ue&&(le.maxHeight="")),lt.maxWidth&&(xe?le.maxWidth=(0,C.HM)(lt.maxWidth):Ue&&(le.maxWidth="")),v(this._pane.style,le)}_getExactOverlayY(q,$,le){let xe={top:"",bottom:""},Ue=this._getOverlayPoint($,this._overlayRect,q);this._isPushed&&(Ue=this._pushOverlayOnScreen(Ue,this._overlayRect,le));let lt=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return Ue.y-=lt,"bottom"===q.overlayY?xe.bottom=this._document.documentElement.clientHeight-(Ue.y+this._overlayRect.height)+"px":xe.top=(0,C.HM)(Ue.y),xe}_getExactOverlayX(q,$,le){let lt,xe={left:"",right:""},Ue=this._getOverlayPoint($,this._overlayRect,q);return this._isPushed&&(Ue=this._pushOverlayOnScreen(Ue,this._overlayRect,le)),lt=this._isRtl()?"end"===q.overlayX?"left":"right":"end"===q.overlayX?"right":"left","right"===lt?xe.right=this._document.documentElement.clientWidth-(Ue.x+this._overlayRect.width)+"px":xe.left=(0,C.HM)(Ue.x),xe}_getScrollVisibility(){const q=this._getOriginRect(),$=this._pane.getBoundingClientRect(),le=this._scrollables.map(xe=>xe.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:re(q,le),isOriginOutsideView:ce(q,le),isOverlayClipped:re($,le),isOverlayOutsideView:ce($,le)}}_subtractOverflows(q,...$){return $.reduce((le,xe)=>le-Math.max(xe,0),q)}_getNarrowedViewportRect(){const q=this._document.documentElement.clientWidth,$=this._document.documentElement.clientHeight,le=this._viewportRuler.getViewportScrollPosition();return{top:le.top+this._viewportMargin,left:le.left+this._viewportMargin,right:le.left+q-this._viewportMargin,bottom:le.top+$-this._viewportMargin,width:q-2*this._viewportMargin,height:$-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(q,$){return"x"===$?null==q.offsetX?this._offsetX:q.offsetX:null==q.offsetY?this._offsetY:q.offsetY}_validatePositions(){}_addPanelClasses(q){this._pane&&(0,C.Eq)(q).forEach($=>{""!==$&&-1===this._appliedPanelClasses.indexOf($)&&(this._appliedPanelClasses.push($),this._pane.classList.add($))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(q=>{this._pane.classList.remove(q)}),this._appliedPanelClasses=[])}_getOriginRect(){const q=this._origin;if(q instanceof y.SBq)return q.nativeElement.getBoundingClientRect();if(q instanceof Element)return q.getBoundingClientRect();const $=q.width||0,le=q.height||0;return{top:q.y,bottom:q.y+le,left:q.x,right:q.x+$,height:le,width:$}}}function v(ke,q){for(let $ in q)q.hasOwnProperty($)&&(ke[$]=q[$]);return ke}function G(ke){if("number"!=typeof ke&&null!=ke){const[q,$]=ke.split(x);return $&&"px"!==$?null:parseFloat(q)}return ke||null}function F(ke){return{top:Math.floor(ke.top),right:Math.floor(ke.right),bottom:Math.floor(ke.bottom),left:Math.floor(ke.left),width:Math.floor(ke.width),height:Math.floor(ke.height)}}const U="cdk-global-overlay-wrapper";class ye{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(q){const $=q.getConfig();this._overlayRef=q,this._width&&!$.width&&q.updateSize({width:this._width}),this._height&&!$.height&&q.updateSize({height:this._height}),q.hostElement.classList.add(U),this._isDisposed=!1}top(q=""){return this._bottomOffset="",this._topOffset=q,this._alignItems="flex-start",this}left(q=""){return this._rightOffset="",this._leftOffset=q,this._justifyContent="flex-start",this}bottom(q=""){return this._topOffset="",this._bottomOffset=q,this._alignItems="flex-end",this}right(q=""){return this._leftOffset="",this._rightOffset=q,this._justifyContent="flex-end",this}width(q=""){return this._overlayRef?this._overlayRef.updateSize({width:q}):this._width=q,this}height(q=""){return this._overlayRef?this._overlayRef.updateSize({height:q}):this._height=q,this}centerHorizontally(q=""){return this.left(q),this._justifyContent="center",this}centerVertically(q=""){return this.top(q),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const q=this._overlayRef.overlayElement.style,$=this._overlayRef.hostElement.style,le=this._overlayRef.getConfig(),{width:xe,height:Ue,maxWidth:lt,maxHeight:nt}=le,ft=!("100%"!==xe&&"100vw"!==xe||lt&&"100%"!==lt&&"100vw"!==lt),it=!("100%"!==Ue&&"100vh"!==Ue||nt&&"100%"!==nt&&"100vh"!==nt);q.position=this._cssPosition,q.marginLeft=ft?"0":this._leftOffset,q.marginTop=it?"0":this._topOffset,q.marginBottom=this._bottomOffset,q.marginRight=this._rightOffset,ft?$.justifyContent="flex-start":"center"===this._justifyContent?$.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?$.justifyContent="flex-end":"flex-end"===this._justifyContent&&($.justifyContent="flex-start"):$.justifyContent=this._justifyContent,$.alignItems=it?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const q=this._overlayRef.overlayElement.style,$=this._overlayRef.hostElement,le=$.style;$.classList.remove(U),le.justifyContent=le.alignItems=q.marginTop=q.marginBottom=q.marginLeft=q.marginRight=q.position="",this._overlayRef=null,this._isDisposed=!0}}let Ce=(()=>{class ke{constructor($,le,xe,Ue){this._viewportRuler=$,this._document=le,this._platform=xe,this._overlayContainer=Ue}global(){return new ye}flexibleConnectedTo($){return new r($,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return ke.\u0275fac=function($){return new($||ke)(y.LFG(e.rL),y.LFG(t.K0),y.LFG(o.t4),y.LFG(L))},ke.\u0275prov=y.Yz7({token:ke,factory:ke.\u0275fac,providedIn:"root"}),ke})(),Be=(()=>{class ke{constructor($){this._attachedOverlays=[],this._document=$}ngOnDestroy(){this.detach()}add($){this.remove($),this._attachedOverlays.push($)}remove($){const le=this._attachedOverlays.indexOf($);le>-1&&this._attachedOverlays.splice(le,1),0===this._attachedOverlays.length&&this.detach()}}return ke.\u0275fac=function($){return new($||ke)(y.LFG(t.K0))},ke.\u0275prov=y.Yz7({token:ke,factory:ke.\u0275fac,providedIn:"root"}),ke})(),ze=(()=>{class ke extends Be{constructor($){super($),this._keydownListener=le=>{const xe=this._attachedOverlays;for(let Ue=xe.length-1;Ue>-1;Ue--)if(xe[Ue]._keydownEvents.observers.length>0){xe[Ue]._keydownEvents.next(le);break}}}add($){super.add($),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return ke.\u0275fac=function($){return new($||ke)(y.LFG(t.K0))},ke.\u0275prov=y.Yz7({token:ke,factory:ke.\u0275fac,providedIn:"root"}),ke})(),Ie=(()=>{class ke extends Be{constructor($,le){super($),this._platform=le,this._cursorStyleIsSet=!1,this._pointerDownListener=xe=>{this._pointerDownEventTarget=(0,o.sA)(xe)},this._clickListener=xe=>{const Ue=(0,o.sA)(xe),lt="click"===xe.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:Ue;this._pointerDownEventTarget=null;const nt=this._attachedOverlays.slice();for(let ft=nt.length-1;ft>-1;ft--){const it=nt[ft];if(!(it._outsidePointerEvents.observers.length<1)&&it.hasAttached()){if(it.overlayElement.contains(Ue)||it.overlayElement.contains(lt))break;it._outsidePointerEvents.next(xe)}}}}add($){if(super.add($),!this._isAttached){const le=this._document.body;le.addEventListener("pointerdown",this._pointerDownListener,!0),le.addEventListener("click",this._clickListener,!0),le.addEventListener("auxclick",this._clickListener,!0),le.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=le.style.cursor,le.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const $=this._document.body;$.removeEventListener("pointerdown",this._pointerDownListener,!0),$.removeEventListener("click",this._clickListener,!0),$.removeEventListener("auxclick",this._clickListener,!0),$.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&($.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return ke.\u0275fac=function($){return new($||ke)(y.LFG(t.K0),y.LFG(o.t4))},ke.\u0275prov=y.Yz7({token:ke,factory:ke.\u0275fac,providedIn:"root"}),ke})(),K=0,Me=(()=>{class ke{constructor($,le,xe,Ue,lt,nt,ft,it,rt,Mt,Zt){this.scrollStrategies=$,this._overlayContainer=le,this._componentFactoryResolver=xe,this._positionBuilder=Ue,this._keyboardDispatcher=lt,this._injector=nt,this._ngZone=ft,this._document=it,this._directionality=rt,this._location=Mt,this._outsideClickDispatcher=Zt}create($){const le=this._createHostElement(),xe=this._createPaneElement(le),Ue=this._createPortalOutlet(xe),lt=new ae($);return lt.direction=lt.direction||this._directionality.value,new _(Ue,le,xe,lt,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement($){const le=this._document.createElement("div");return le.id="cdk-overlay-"+K++,le.classList.add("cdk-overlay-pane"),$.appendChild(le),le}_createHostElement(){const $=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild($),$}_createPortalOutlet($){return this._appRef||(this._appRef=this._injector.get(y.z2F)),new l.u0($,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return ke.\u0275fac=function($){return new($||ke)(y.LFG(oe),y.LFG(L),y.LFG(y._Vd),y.LFG(Ce),y.LFG(ze),y.LFG(y.zs3),y.LFG(y.R0b),y.LFG(t.K0),y.LFG(M.Is),y.LFG(t.Ye),y.LFG(Ie))},ke.\u0275prov=y.Yz7({token:ke,factory:ke.\u0275fac}),ke})();const we=[{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 y.OlP("cdk-connected-overlay-scroll-strategy");let Ge=(()=>{class ke{constructor($){this.elementRef=$}}return ke.\u0275fac=function($){return new($||ke)(y.Y36(y.SBq))},ke.\u0275dir=y.lG2({type:ke,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),ke})(),vt=(()=>{class ke{constructor($,le,xe,Ue,lt){this._overlay=$,this._dir=lt,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=s.w0.EMPTY,this._attachSubscription=s.w0.EMPTY,this._detachSubscription=s.w0.EMPTY,this._positionSubscription=s.w0.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new y.vpe,this.positionChange=new y.vpe,this.attach=new y.vpe,this.detach=new y.vpe,this.overlayKeydown=new y.vpe,this.overlayOutsideClick=new y.vpe,this._templatePortal=new l.UE(le,xe),this._scrollStrategyFactory=Ue,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX($){this._offsetX=$,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY($){this._offsetY=$,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop($){this._hasBackdrop=(0,C.Ig)($)}get lockPosition(){return this._lockPosition}set lockPosition($){this._lockPosition=(0,C.Ig)($)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions($){this._flexibleDimensions=(0,C.Ig)($)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen($){this._growAfterOpen=(0,C.Ig)($)}get push(){return this._push}set push($){this._push=(0,C.Ig)($)}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($){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),$.origin&&this.open&&this._position.apply()),$.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=we);const $=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=$.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=$.detachments().subscribe(()=>this.detach.emit()),$.keydownEvents().subscribe(le=>{this.overlayKeydown.next(le),le.keyCode===Z.hY&&!this.disableClose&&!(0,Z.Vb)(le)&&(le.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(le=>{this.overlayOutsideClick.next(le)})}_buildConfig(){const $=this._position=this.positionStrategy||this._createPositionStrategy(),le=new ae({direction:this._dir,positionStrategy:$,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(le.width=this.width),(this.height||0===this.height)&&(le.height=this.height),(this.minWidth||0===this.minWidth)&&(le.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(le.minHeight=this.minHeight),this.backdropClass&&(le.backdropClass=this.backdropClass),this.panelClass&&(le.panelClass=this.panelClass),le}_updatePositionStrategy($){const le=this.positions.map(xe=>({originX:xe.originX,originY:xe.originY,overlayX:xe.overlayX,overlayY:xe.overlayY,offsetX:xe.offsetX||this.offsetX,offsetY:xe.offsetY||this.offsetY,panelClass:xe.panelClass||void 0}));return $.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(le).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const $=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy($),$}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof Ge?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($=>{this.backdropClick.emit($)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function E(ke,q=!1){return(0,A.e)(($,le)=>{let xe=0;$.subscribe(new O.Q(le,Ue=>{const lt=ke(Ue,xe++);(lt||q)&&le.next(Ue),!lt&&le.complete()}))})}(()=>this.positionChange.observers.length>0)).subscribe($=>{this.positionChange.emit($),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return ke.\u0275fac=function($){return new($||ke)(y.Y36(Me),y.Y36(y.Rgc),y.Y36(y.s_b),y.Y36(z),y.Y36(M.Is,8))},ke.\u0275dir=y.lG2({type:ke,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:[y.TTD]}),ke})();const Ne={provide:z,deps:[Me],useFactory:function Re(ke){return()=>ke.scrollStrategies.reposition()}};let he=(()=>{class ke{}return ke.\u0275fac=function($){return new($||ke)},ke.\u0275mod=y.oAB({type:ke}),ke.\u0275inj=y.cJS({providers:[Me,Ne],imports:[[M.vT,l.eL,e.Cl],e.Cl]}),ke})()},925:(Ve,Q,m)=>{"use strict";m.d(Q,{t4:()=>C,ud:()=>o,sA:()=>ee,ht:()=>ie,kV:()=>W,Oy:()=>_e,_i:()=>w,qK:()=>N,i$:()=>A,Mq:()=>P});var e=m(5e3),t=m(9808);let y;try{y="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(ce){y=!1}let M,C=(()=>{class ce{constructor(de){this._platformId=de,this.isBrowser=this._platformId?(0,t.NF)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!y)&&"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 ce.\u0275fac=function(de){return new(de||ce)(e.LFG(e.Lbi))},ce.\u0275prov=e.Yz7({token:ce,factory:ce.\u0275fac,providedIn:"root"}),ce})(),o=(()=>{class ce{}return ce.\u0275fac=function(de){return new(de||ce)},ce.\u0275mod=e.oAB({type:ce}),ce.\u0275inj=e.cJS({}),ce})();const l=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function N(){if(M)return M;if("object"!=typeof document||!document)return M=new Set(l),M;let ce=document.createElement("input");return M=new Set(l.filter(re=>(ce.setAttribute("type",re),ce.type===re))),M}let s,O,E,Z;function A(ce){return function D(){if(null==s&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>s=!0}))}finally{s=s||!1}return s}()?ce:!!ce.capture}function P(){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 ce=Element.prototype.scrollTo;E=!!ce&&!/\{\s*\[native code\]\s*\}/.test(ce.toString())}}return E}function w(){if("object"!=typeof document||!document)return 0;if(null==O){const ce=document.createElement("div"),re=ce.style;ce.dir="rtl",re.width="1px",re.overflow="auto",re.visibility="hidden",re.pointerEvents="none",re.position="absolute";const de=document.createElement("div"),oe=de.style;oe.width="2px",oe.height="1px",ce.appendChild(de),document.body.appendChild(ce),O=0,0===ce.scrollLeft&&(ce.scrollLeft=1,O=0===ce.scrollLeft?1:2),ce.remove()}return O}function W(ce){if(function j(){if(null==Z){const ce="undefined"!=typeof document?document.head:null;Z=!(!ce||!ce.createShadowRoot&&!ce.attachShadow)}return Z}()){const re=ce.getRootNode?ce.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&re instanceof ShadowRoot)return re}return null}function ie(){let ce="undefined"!=typeof document&&document?document.activeElement:null;for(;ce&&ce.shadowRoot;){const re=ce.shadowRoot.activeElement;if(re===ce)break;ce=re}return ce}function ee(ce){return ce.composedPath?ce.composedPath()[0]:ce.target}function _e(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}},7429:(Ve,Q,m)=>{"use strict";m.d(Q,{en:()=>E,ig:()=>j,Pl:()=>ie,C5:()=>D,u0:()=>w,eL:()=>_e,UE:()=>A});var e=m(5e3),t=m(9808);class s{attach(de){return this._attachedHost=de,de.attach(this)}detach(){let de=this._attachedHost;null!=de&&(this._attachedHost=null,de.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(de){this._attachedHost=de}}class D extends s{constructor(de,oe,ae,b){super(),this.component=de,this.viewContainerRef=oe,this.injector=ae,this.componentFactoryResolver=b}}class A extends s{constructor(de,oe,ae){super(),this.templateRef=de,this.viewContainerRef=oe,this.context=ae}get origin(){return this.templateRef.elementRef}attach(de,oe=this.context){return this.context=oe,super.attach(de)}detach(){return this.context=void 0,super.detach()}}class O extends s{constructor(de){super(),this.element=de instanceof e.SBq?de.nativeElement:de}}class E{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(de){return de instanceof D?(this._attachedPortal=de,this.attachComponentPortal(de)):de instanceof A?(this._attachedPortal=de,this.attachTemplatePortal(de)):this.attachDomPortal&&de instanceof O?(this._attachedPortal=de,this.attachDomPortal(de)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(de){this._disposeFn=de}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class w extends E{constructor(de,oe,ae,b,i){super(),this.outletElement=de,this._componentFactoryResolver=oe,this._appRef=ae,this._defaultInjector=b,this.attachDomPortal=a=>{const p=a.element,u=this._document.createComment("dom-portal");p.parentNode.insertBefore(u,p),this.outletElement.appendChild(p),this._attachedPortal=a,super.setDisposeFn(()=>{u.parentNode&&u.parentNode.replaceChild(p,u)})},this._document=i}attachComponentPortal(de){const ae=(de.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(de.component);let b;return de.viewContainerRef?(b=de.viewContainerRef.createComponent(ae,de.viewContainerRef.length,de.injector||de.viewContainerRef.injector),this.setDisposeFn(()=>b.destroy())):(b=ae.create(de.injector||this._defaultInjector),this._appRef.attachView(b.hostView),this.setDisposeFn(()=>{this._appRef.detachView(b.hostView),b.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(b)),this._attachedPortal=de,b}attachTemplatePortal(de){let oe=de.viewContainerRef,ae=oe.createEmbeddedView(de.templateRef,de.context);return ae.rootNodes.forEach(b=>this.outletElement.appendChild(b)),ae.detectChanges(),this.setDisposeFn(()=>{let b=oe.indexOf(ae);-1!==b&&oe.remove(b)}),this._attachedPortal=de,ae}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(de){return de.hostView.rootNodes[0]}}let j=(()=>{class re extends A{constructor(oe,ae){super(oe,ae)}}return re.\u0275fac=function(oe){return new(oe||re)(e.Y36(e.Rgc),e.Y36(e.s_b))},re.\u0275dir=e.lG2({type:re,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[e.qOj]}),re})(),ie=(()=>{class re extends E{constructor(oe,ae,b){super(),this._componentFactoryResolver=oe,this._viewContainerRef=ae,this._isInitialized=!1,this.attached=new e.vpe,this.attachDomPortal=i=>{const a=i.element,p=this._document.createComment("dom-portal");i.setAttachedHost(this),a.parentNode.insertBefore(p,a),this._getRootNode().appendChild(a),this._attachedPortal=i,super.setDisposeFn(()=>{p.parentNode&&p.parentNode.replaceChild(a,p)})},this._document=b}get portal(){return this._attachedPortal}set portal(oe){this.hasAttached()&&!oe&&!this._isInitialized||(this.hasAttached()&&super.detach(),oe&&super.attach(oe),this._attachedPortal=oe)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(oe){oe.setAttachedHost(this);const ae=null!=oe.viewContainerRef?oe.viewContainerRef:this._viewContainerRef,i=(oe.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(oe.component),a=ae.createComponent(i,ae.length,oe.injector||ae.injector);return ae!==this._viewContainerRef&&this._getRootNode().appendChild(a.hostView.rootNodes[0]),super.setDisposeFn(()=>a.destroy()),this._attachedPortal=oe,this._attachedRef=a,this.attached.emit(a),a}attachTemplatePortal(oe){oe.setAttachedHost(this);const ae=this._viewContainerRef.createEmbeddedView(oe.templateRef,oe.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=oe,this._attachedRef=ae,this.attached.emit(ae),ae}_getRootNode(){const oe=this._viewContainerRef.element.nativeElement;return oe.nodeType===oe.ELEMENT_NODE?oe:oe.parentNode}}return re.\u0275fac=function(oe){return new(oe||re)(e.Y36(e._Vd),e.Y36(e.s_b),e.Y36(t.K0))},re.\u0275dir=e.lG2({type:re,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[e.qOj]}),re})(),_e=(()=>{class re{}return re.\u0275fac=function(oe){return new(oe||re)},re.\u0275mod=e.oAB({type:re}),re.\u0275inj=e.cJS({}),re})()},5303:(Ve,Q,m)=>{"use strict";m.d(Q,{PQ:()=>p,ZD:()=>G,mF:()=>a,Cl:()=>F,rL:()=>_});var e=m(3191),t=m(5e3),y=m(4408),C=m(727);const o={schedule(U){let ye=requestAnimationFrame,Ce=cancelAnimationFrame;const{delegate:Be}=o;Be&&(ye=Be.requestAnimationFrame,Ce=Be.cancelAnimationFrame);const ze=ye(Ie=>{Ce=void 0,U(Ie)});return new C.w0(()=>null==Ce?void 0:Ce(ze))},requestAnimationFrame(...U){const{delegate:ye}=o;return((null==ye?void 0:ye.requestAnimationFrame)||requestAnimationFrame)(...U)},cancelAnimationFrame(...U){const{delegate:ye}=o;return((null==ye?void 0:ye.cancelAnimationFrame)||cancelAnimationFrame)(...U)},delegate:void 0};var l=m(7565);new class N extends l.v{flush(ye){this._active=!0,this._scheduled=void 0;const{actions:Ce}=this;let Be,ze=-1;ye=ye||Ce.shift();const Ie=Ce.length;do{if(Be=ye.execute(ye.state,ye.delay))break}while(++ze<Ie&&(ye=Ce.shift()));if(this._active=!1,Be){for(;++ze<Ie&&(ye=Ce.shift());)ye.unsubscribe();throw Be}}}(class M extends y.o{constructor(ye,Ce){super(ye,Ce),this.scheduler=ye,this.work=Ce}requestAsyncId(ye,Ce,Be=0){return null!==Be&&Be>0?super.requestAsyncId(ye,Ce,Be):(ye.actions.push(this),ye._scheduled||(ye._scheduled=o.requestAnimationFrame(()=>ye.flush(void 0))))}recycleAsyncId(ye,Ce,Be=0){if(null!=Be&&Be>0||null==Be&&this.delay>0)return super.recycleAsyncId(ye,Ce,Be);0===ye.actions.length&&(o.cancelAnimationFrame(Ce),ye._scheduled=void 0)}});var A=m(7579),O=m(9646),E=m(8306),P=m(4968),Z=(m(3101),m(3601)),j=m(9300),W=m(2722),ie=m(9808),ee=m(925),_e=m(226);let a=(()=>{class U{constructor(Ce,Be,ze){this._ngZone=Ce,this._platform=Be,this._scrolled=new A.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=ze}register(Ce){this.scrollContainers.has(Ce)||this.scrollContainers.set(Ce,Ce.elementScrolled().subscribe(()=>this._scrolled.next(Ce)))}deregister(Ce){const Be=this.scrollContainers.get(Ce);Be&&(Be.unsubscribe(),this.scrollContainers.delete(Ce))}scrolled(Ce=20){return this._platform.isBrowser?new E.y(Be=>{this._globalSubscription||this._addGlobalListener();const ze=Ce>0?this._scrolled.pipe((0,Z.e)(Ce)).subscribe(Be):this._scrolled.subscribe(Be);return this._scrolledCount++,()=>{ze.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,O.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((Ce,Be)=>this.deregister(Be)),this._scrolled.complete()}ancestorScrolled(Ce,Be){const ze=this.getAncestorScrollContainers(Ce);return this.scrolled(Be).pipe((0,j.h)(Ie=>!Ie||ze.indexOf(Ie)>-1))}getAncestorScrollContainers(Ce){const Be=[];return this.scrollContainers.forEach((ze,Ie)=>{this._scrollableContainsElement(Ie,Ce)&&Be.push(Ie)}),Be}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(Ce,Be){let ze=(0,e.fI)(Be),Ie=Ce.getElementRef().nativeElement;do{if(ze==Ie)return!0}while(ze=ze.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const Ce=this._getWindow();return(0,P.R)(Ce.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return U.\u0275fac=function(Ce){return new(Ce||U)(t.LFG(t.R0b),t.LFG(ee.t4),t.LFG(ie.K0,8))},U.\u0275prov=t.Yz7({token:U,factory:U.\u0275fac,providedIn:"root"}),U})(),p=(()=>{class U{constructor(Ce,Be,ze,Ie){this.elementRef=Ce,this.scrollDispatcher=Be,this.ngZone=ze,this.dir=Ie,this._destroyed=new A.x,this._elementScrolled=new E.y(K=>this.ngZone.runOutsideAngular(()=>(0,P.R)(this.elementRef.nativeElement,"scroll").pipe((0,W.R)(this._destroyed)).subscribe(K)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(Ce){const Be=this.elementRef.nativeElement,ze=this.dir&&"rtl"==this.dir.value;null==Ce.left&&(Ce.left=ze?Ce.end:Ce.start),null==Ce.right&&(Ce.right=ze?Ce.start:Ce.end),null!=Ce.bottom&&(Ce.top=Be.scrollHeight-Be.clientHeight-Ce.bottom),ze&&0!=(0,ee._i)()?(null!=Ce.left&&(Ce.right=Be.scrollWidth-Be.clientWidth-Ce.left),2==(0,ee._i)()?Ce.left=Ce.right:1==(0,ee._i)()&&(Ce.left=Ce.right?-Ce.right:Ce.right)):null!=Ce.right&&(Ce.left=Be.scrollWidth-Be.clientWidth-Ce.right),this._applyScrollToOptions(Ce)}_applyScrollToOptions(Ce){const Be=this.elementRef.nativeElement;(0,ee.Mq)()?Be.scrollTo(Ce):(null!=Ce.top&&(Be.scrollTop=Ce.top),null!=Ce.left&&(Be.scrollLeft=Ce.left))}measureScrollOffset(Ce){const Be="left",Ie=this.elementRef.nativeElement;if("top"==Ce)return Ie.scrollTop;if("bottom"==Ce)return Ie.scrollHeight-Ie.clientHeight-Ie.scrollTop;const K=this.dir&&"rtl"==this.dir.value;return"start"==Ce?Ce=K?"right":Be:"end"==Ce&&(Ce=K?Be:"right"),K&&2==(0,ee._i)()?Ce==Be?Ie.scrollWidth-Ie.clientWidth-Ie.scrollLeft:Ie.scrollLeft:K&&1==(0,ee._i)()?Ce==Be?Ie.scrollLeft+Ie.scrollWidth-Ie.clientWidth:-Ie.scrollLeft:Ce==Be?Ie.scrollLeft:Ie.scrollWidth-Ie.clientWidth-Ie.scrollLeft}}return U.\u0275fac=function(Ce){return new(Ce||U)(t.Y36(t.SBq),t.Y36(a),t.Y36(t.R0b),t.Y36(_e.Is,8))},U.\u0275dir=t.lG2({type:U,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),U})(),_=(()=>{class U{constructor(Ce,Be,ze){this._platform=Ce,this._change=new A.x,this._changeListener=Ie=>{this._change.next(Ie)},this._document=ze,Be.runOutsideAngular(()=>{if(Ce.isBrowser){const Ie=this._getWindow();Ie.addEventListener("resize",this._changeListener),Ie.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const Ce=this._getWindow();Ce.removeEventListener("resize",this._changeListener),Ce.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const Ce={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),Ce}getViewportRect(){const Ce=this.getViewportScrollPosition(),{width:Be,height:ze}=this.getViewportSize();return{top:Ce.top,left:Ce.left,bottom:Ce.top+ze,right:Ce.left+Be,height:ze,width:Be}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const Ce=this._document,Be=this._getWindow(),ze=Ce.documentElement,Ie=ze.getBoundingClientRect();return{top:-Ie.top||Ce.body.scrollTop||Be.scrollY||ze.scrollTop||0,left:-Ie.left||Ce.body.scrollLeft||Be.scrollX||ze.scrollLeft||0}}change(Ce=20){return Ce>0?this._change.pipe((0,Z.e)(Ce)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const Ce=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:Ce.innerWidth,height:Ce.innerHeight}:{width:0,height:0}}}return U.\u0275fac=function(Ce){return new(Ce||U)(t.LFG(ee.t4),t.LFG(t.R0b),t.LFG(ie.K0,8))},U.\u0275prov=t.Yz7({token:U,factory:U.\u0275fac,providedIn:"root"}),U})(),G=(()=>{class U{}return U.\u0275fac=function(Ce){return new(Ce||U)},U.\u0275mod=t.oAB({type:U}),U.\u0275inj=t.cJS({}),U})(),F=(()=>{class U{}return U.\u0275fac=function(Ce){return new(Ce||U)},U.\u0275mod=t.oAB({type:U}),U.\u0275inj=t.cJS({imports:[[_e.vT,ee.ud,G],_e.vT,G]}),U})()},1555:(Ve,Q,m)=>{"use strict";m.d(Q,{be:()=>ee,KL:()=>P,u6:()=>w,B8:()=>_e,U5:()=>de,st:()=>ce,po:()=>re,gx:()=>ie});var e=m(5664),t=m(3191),y=m(1159),C=m(9808),o=m(5e3),M=m(925),l=m(7579),N=m(9646),s=m(8675),D=m(2722),A=m(226);function O(oe,ae){1&oe&&o.Hsn(0)}const E=["*"];let P=(()=>{class oe{constructor(b){this._elementRef=b}focus(){this._elementRef.nativeElement.focus()}}return oe.\u0275fac=function(b){return new(b||oe)(o.Y36(o.SBq))},oe.\u0275dir=o.lG2({type:oe,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),oe})(),w=(()=>{class oe{constructor(b){this.template=b}}return oe.\u0275fac=function(b){return new(b||oe)(o.Y36(o.Rgc))},oe.\u0275dir=o.lG2({type:oe,selectors:[["","cdkStepLabel",""]]}),oe})(),Z=0;const ie=new o.OlP("STEPPER_GLOBAL_OPTIONS");let ee=(()=>{class oe{constructor(b,i){this._stepper=b,this.interacted=!1,this.interactedStream=new o.vpe,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=i||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType}get editable(){return this._editable}set editable(b){this._editable=(0,t.Ig)(b)}get optional(){return this._optional}set optional(b){this._optional=(0,t.Ig)(b)}get completed(){return null==this._completedOverride?this._getDefaultCompleted():this._completedOverride}set completed(b){this._completedOverride=(0,t.Ig)(b)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return null==this._customError?this._getDefaultError():this._customError}set hasError(b){this._customError=(0,t.Ig)(b)}_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 b;return null!==(b=this._stepperOptions.showError)&&void 0!==b?b:null!=this._customError}}return oe.\u0275fac=function(b){return new(b||oe)(o.Y36((0,o.Gpc)(()=>_e)),o.Y36(ie,8))},oe.\u0275cmp=o.Xpm({type:oe,selectors:[["cdk-step"]],contentQueries:function(b,i,a){if(1&b&&o.Suo(a,w,5),2&b){let p;o.iGM(p=o.CRH())&&(i.stepLabel=p.first)}},viewQuery:function(b,i){if(1&b&&o.Gf(o.Rgc,7),2&b){let a;o.iGM(a=o.CRH())&&(i.content=a.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:[o.TTD],ngContentSelectors:E,decls:1,vars:0,template:function(b,i){1&b&&(o.F$t(),o.YNc(0,O,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),oe})(),_e=(()=>{class oe{constructor(b,i,a,p){this._dir=b,this._changeDetectorRef=i,this._elementRef=a,this._destroyed=new l.x,this.steps=new o.n_E,this._sortedHeaders=new o.n_E,this._linear=!1,this._selectedIndex=0,this.selectionChange=new o.vpe,this._orientation="horizontal",this._groupId=Z++}get linear(){return this._linear}set linear(b){this._linear=(0,t.Ig)(b)}get selectedIndex(){return this._selectedIndex}set selectedIndex(b){var i;const a=(0,t.su)(b);this.steps&&this._steps?(this._isValidIndex(b),null===(i=this.selected)||void 0===i||i._markAsInteracted(),this._selectedIndex!==a&&!this._anyControlsInvalidOrPending(a)&&(a>=this._selectedIndex||this.steps.toArray()[a].editable)&&this._updateSelectedItemIndex(b)):this._selectedIndex=a}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(b){this.selectedIndex=b&&this.steps?this.steps.toArray().indexOf(b):-1}get orientation(){return this._orientation}set orientation(b){this._orientation=b,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===b)}ngAfterContentInit(){this._steps.changes.pipe((0,s.O)(this._steps),(0,D.R)(this._destroyed)).subscribe(b=>{this.steps.reset(b.filter(i=>i._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe((0,s.O)(this._stepHeader),(0,D.R)(this._destroyed)).subscribe(b=>{this._sortedHeaders.reset(b.toArray().sort((i,a)=>i._elementRef.nativeElement.compareDocumentPosition(a._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,N.of)()).pipe((0,s.O)(this._layoutDirection()),(0,D.R)(this._destroyed)).subscribe(b=>this._keyManager.withHorizontalOrientation(b)),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(b=>b.reset()),this._stateChanged()}_getStepLabelId(b){return`cdk-step-label-${this._groupId}-${b}`}_getStepContentId(b){return`cdk-step-content-${this._groupId}-${b}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(b){const i=b-this._selectedIndex;return i<0?"rtl"===this._layoutDirection()?"next":"previous":i>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(b,i="number"){const a=this.steps.toArray()[b],p=this._isCurrentStep(b);return a._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(a,p):this._getGuidelineLogic(a,p,i)}_getDefaultIndicatorLogic(b,i){return b._showError()&&b.hasError&&!i?"error":!b.completed||i?"number":b.editable?"edit":"done"}_getGuidelineLogic(b,i,a="number"){return b._showError()&&b.hasError&&!i?"error":b.completed&&!i?"done":b.completed&&i?a:b.editable&&i?"edit":a}_isCurrentStep(b){return this._selectedIndex===b}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(b){const i=this.steps.toArray();this.selectionChange.emit({selectedIndex:b,previouslySelectedIndex:this._selectedIndex,selectedStep:i[b],previouslySelectedStep:i[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(b):this._keyManager.updateActiveItem(b),this._selectedIndex=b,this._stateChanged()}_onKeydown(b){const i=(0,y.Vb)(b),a=b.keyCode,p=this._keyManager;null==p.activeItemIndex||i||a!==y.L_&&a!==y.K5?p.onKeydown(b):(this.selectedIndex=p.activeItemIndex,b.preventDefault())}_anyControlsInvalidOrPending(b){return!!(this._linear&&b>=0)&&this.steps.toArray().slice(0,b).some(i=>{const a=i.stepControl;return(a?a.invalid||a.pending||!i.interacted:!i.completed)&&!i.optional&&!i._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){const b=this._elementRef.nativeElement,i=(0,M.ht)();return b===i||b.contains(i)}_isValidIndex(b){return b>-1&&(!this.steps||b<this.steps.length)}}return oe.\u0275fac=function(b){return new(b||oe)(o.Y36(A.Is,8),o.Y36(o.sBO),o.Y36(o.SBq),o.Y36(C.K0))},oe.\u0275dir=o.lG2({type:oe,selectors:[["","cdkStepper",""]],contentQueries:function(b,i,a){if(1&b&&(o.Suo(a,ee,5),o.Suo(a,P,5)),2&b){let p;o.iGM(p=o.CRH())&&(i._steps=p),o.iGM(p=o.CRH())&&(i._stepHeader=p)}},inputs:{linear:"linear",selectedIndex:"selectedIndex",selected:"selected",orientation:"orientation"},outputs:{selectionChange:"selectionChange"},exportAs:["cdkStepper"]}),oe})(),ce=(()=>{class oe{constructor(b){this._stepper=b,this.type="submit"}}return oe.\u0275fac=function(b){return new(b||oe)(o.Y36(_e))},oe.\u0275dir=o.lG2({type:oe,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(b,i){1&b&&o.NdJ("click",function(){return i._stepper.next()}),2&b&&o.Ikx("type",i.type)},inputs:{type:"type"}}),oe})(),re=(()=>{class oe{constructor(b){this._stepper=b,this.type="button"}}return oe.\u0275fac=function(b){return new(b||oe)(o.Y36(_e))},oe.\u0275dir=o.lG2({type:oe,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(b,i){1&b&&o.NdJ("click",function(){return i._stepper.previous()}),2&b&&o.Ikx("type",i.type)},inputs:{type:"type"}}),oe})(),de=(()=>{class oe{}return oe.\u0275fac=function(b){return new(b||oe)},oe.\u0275mod=o.oAB({type:oe}),oe.\u0275inj=o.cJS({imports:[[A.vT]]}),oe})()},8258:(Ve,Q,m)=>{"use strict";m.d(Q,{HI:()=>w,Xx:()=>i,_0:()=>de,nZ:()=>L,Hs:()=>oe,rO:()=>W,cu:()=>Z,XJ:()=>p,Ud:()=>u,VY:()=>P});var e=m(449),t=m(5191),y=m(7579),C=m(1135),o=m(9646),M=m(5698),l=m(9300),N=m(2722),s=m(5e3),D=m(3191),A=m(226);class P extends class O{constructor(){this.expansionModel=new e.Ov(!0)}toggle(x){this.expansionModel.toggle(this._trackByValue(x))}expand(x){this.expansionModel.select(this._trackByValue(x))}collapse(x){this.expansionModel.deselect(this._trackByValue(x))}isExpanded(x){return this.expansionModel.isSelected(this._trackByValue(x))}toggleDescendants(x){this.expansionModel.isSelected(this._trackByValue(x))?this.collapseDescendants(x):this.expandDescendants(x)}collapseAll(){this.expansionModel.clear()}expandDescendants(x){let r=[x];r.push(...this.getDescendants(x)),this.expansionModel.select(...r.map(v=>this._trackByValue(v)))}collapseDescendants(x){let r=[x];r.push(...this.getDescendants(x)),this.expansionModel.deselect(...r.map(v=>this._trackByValue(v)))}_trackByValue(x){return this.trackBy?this.trackBy(x):x}}{constructor(x,r){super(),this.getChildren=x,this.options=r,this.options&&(this.trackBy=this.options.trackBy)}expandAll(){this.expansionModel.clear();const x=this.dataNodes.reduce((r,v)=>[...r,...this.getDescendants(v),v],[]);this.expansionModel.select(...x.map(r=>this._trackByValue(r)))}getDescendants(x){const r=[];return this._getDescendants(r,x),r.splice(1)}_getDescendants(x,r){x.push(r);const v=this.getChildren(r);Array.isArray(v)?v.forEach(G=>this._getDescendants(x,G)):(0,t.b)(v)&&v.pipe((0,M.q)(1),(0,l.h)(Boolean)).subscribe(G=>{for(const F of G)this._getDescendants(x,F)})}}const w=new s.OlP("CDK_TREE_NODE_OUTLET_NODE");let Z=(()=>{class I{constructor(r,v){this.viewContainer=r,this._node=v}}return I.\u0275fac=function(r){return new(r||I)(s.Y36(s.s_b),s.Y36(w,8))},I.\u0275dir=s.lG2({type:I,selectors:[["","cdkTreeNodeOutlet",""]]}),I})();class j{constructor(x){this.$implicit=x}}let W=(()=>{class I{constructor(r){this.template=r}}return I.\u0275fac=function(r){return new(r||I)(s.Y36(s.Rgc))},I.\u0275dir=s.lG2({type:I,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:["cdkTreeNodeDefWhen","when"]}}),I})(),de=(()=>{class I{constructor(r,v){this._differs=r,this._changeDetectorRef=v,this._onDestroy=new y.x,this._levels=new Map,this.viewChange=new C.X({start:0,end:Number.MAX_VALUE})}get dataSource(){return this._dataSource}set dataSource(r){this._dataSource!==r&&this._switchDataSource(r)}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 r=this._nodeDefs.filter(v=>!v.when);this._defaultNodeDef=r[0],this.dataSource&&this._nodeDefs&&!this._dataSubscription&&this._observeRenderChanges()}_switchDataSource(r){this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),r||this._nodeOutlet.viewContainer.clear(),this._dataSource=r,this._nodeDefs&&this._observeRenderChanges()}_observeRenderChanges(){let r;(0,e.Z9)(this._dataSource)?r=this._dataSource.connect(this):(0,t.b)(this._dataSource)?r=this._dataSource:Array.isArray(this._dataSource)&&(r=(0,o.of)(this._dataSource)),r&&(this._dataSubscription=r.pipe((0,N.R)(this._onDestroy)).subscribe(v=>this.renderNodeChanges(v)))}renderNodeChanges(r,v=this._dataDiffer,G=this._nodeOutlet.viewContainer,F){const U=v.diff(r);!U||(U.forEachOperation((ye,Ce,Be)=>{if(null==ye.previousIndex)this.insertNode(r[Be],Be,G,F);else if(null==Be)G.remove(Ce),this._levels.delete(ye.item);else{const ze=G.get(Ce);G.move(ze,Be)}}),this._changeDetectorRef.detectChanges())}_getNodeDef(r,v){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find(F=>F.when&&F.when(v,r))||this._defaultNodeDef}insertNode(r,v,G,F){const U=this._getNodeDef(r,v),ye=new j(r);ye.level=this.treeControl.getLevel?this.treeControl.getLevel(r):void 0!==F&&this._levels.has(F)?this._levels.get(F)+1:0,this._levels.set(r,ye.level),(G||this._nodeOutlet.viewContainer).createEmbeddedView(U.template,ye,v),oe.mostRecentTreeNode&&(oe.mostRecentTreeNode.data=r)}}return I.\u0275fac=function(r){return new(r||I)(s.Y36(s.ZZ4),s.Y36(s.sBO))},I.\u0275cmp=s.Xpm({type:I,selectors:[["cdk-tree"]],contentQueries:function(r,v,G){if(1&r&&s.Suo(G,W,5),2&r){let F;s.iGM(F=s.CRH())&&(v._nodeDefs=F)}},viewQuery:function(r,v){if(1&r&&s.Gf(Z,7),2&r){let G;s.iGM(G=s.CRH())&&(v._nodeOutlet=G.first)}},hostAttrs:["role","tree",1,"cdk-tree"],inputs:{dataSource:"dataSource",treeControl:"treeControl",trackBy:"trackBy"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(r,v){1&r&&s.GkF(0,0)},directives:[Z],encapsulation:2}),I})(),oe=(()=>{class I{constructor(r,v){this._elementRef=r,this._tree=v,this._destroyed=new y.x,this._dataChanges=new y.x,I.mostRecentTreeNode=this,this.role="treeitem"}get role(){return"treeitem"}set role(r){this._elementRef.nativeElement.setAttribute("role",r)}get data(){return this._data}set data(r){r!==this._data&&(this._data=r,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 ae(I){let x=I.parentElement;for(;x&&!b(x);)x=x.parentElement;return x?x.classList.contains("cdk-nested-tree-node")?(0,D.su)(x.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(r){return new(r||I)(s.Y36(s.SBq),s.Y36(de))},I.\u0275dir=s.lG2({type:I,selectors:[["cdk-tree-node"]],hostAttrs:[1,"cdk-tree-node"],hostVars:1,hostBindings:function(r,v){2&r&&s.uIk("aria-expanded",v.isExpanded)},inputs:{role:"role"},exportAs:["cdkTreeNode"]}),I})();function b(I){const x=I.classList;return!(!(null==x?void 0:x.contains("cdk-nested-tree-node"))&&!(null==x?void 0:x.contains("cdk-tree")))}let i=(()=>{class I extends oe{constructor(r,v,G){super(r,v),this._differs=G}ngAfterContentInit(){this._dataDiffer=this._differs.find([]).create(this._tree.trackBy);const r=this._tree.treeControl.getChildren(this.data);Array.isArray(r)?this.updateChildrenNodes(r):(0,t.b)(r)&&r.pipe((0,N.R)(this._destroyed)).subscribe(v=>this.updateChildrenNodes(v)),this.nodeOutlet.changes.pipe((0,N.R)(this._destroyed)).subscribe(()=>this.updateChildrenNodes())}ngOnInit(){super.ngOnInit()}ngOnDestroy(){this._clear(),super.ngOnDestroy()}updateChildrenNodes(r){const v=this._getNodeOutlet();r&&(this._children=r),v&&this._children?this._tree.renderNodeChanges(this._children,this._dataDiffer,v.viewContainer,this._data):this._dataDiffer.diff([])}_clear(){const r=this._getNodeOutlet();r&&(r.viewContainer.clear(),this._dataDiffer.diff([]))}_getNodeOutlet(){const r=this.nodeOutlet;return r&&r.find(v=>!v._node||v._node===this)}}return I.\u0275fac=function(r){return new(r||I)(s.Y36(s.SBq),s.Y36(de),s.Y36(s.ZZ4))},I.\u0275dir=s.lG2({type:I,selectors:[["cdk-nested-tree-node"]],contentQueries:function(r,v,G){if(1&r&&s.Suo(G,Z,5),2&r){let F;s.iGM(F=s.CRH())&&(v.nodeOutlet=F)}},hostAttrs:[1,"cdk-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["cdkNestedTreeNode"],features:[s._Bn([{provide:oe,useExisting:I},{provide:w,useExisting:I}]),s.qOj]}),I})();const a=/([A-Za-z%]+)$/;let p=(()=>{class I{constructor(r,v,G,F){this._treeNode=r,this._tree=v,this._element=G,this._dir=F,this._destroyed=new y.x,this.indentUnits="px",this._indent=40,this._setPadding(),F&&F.change.pipe((0,N.R)(this._destroyed)).subscribe(()=>this._setPadding(!0)),r._dataChanges.subscribe(()=>this._setPadding())}get level(){return this._level}set level(r){this._setLevelInput(r)}get indent(){return this._indent}set indent(r){this._setIndentInput(r)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_paddingIndent(){const r=this._treeNode.data&&this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._treeNode.data):null,v=null==this._level?r:this._level;return"number"==typeof v?`${v*this._indent}${this.indentUnits}`:null}_setPadding(r=!1){const v=this._paddingIndent();if(v!==this._currentPadding||r){const G=this._element.nativeElement,F=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",U="paddingLeft"===F?"paddingRight":"paddingLeft";G.style[F]=v||"",G.style[U]="",this._currentPadding=v}}_setLevelInput(r){this._level=(0,D.su)(r,null),this._setPadding()}_setIndentInput(r){let v=r,G="px";if("string"==typeof r){const F=r.split(a);v=F[0],G=F[1]||G}this.indentUnits=G,this._indent=(0,D.su)(v),this._setPadding()}}return I.\u0275fac=function(r){return new(r||I)(s.Y36(oe),s.Y36(de),s.Y36(s.SBq),s.Y36(A.Is,8))},I.\u0275dir=s.lG2({type:I,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:["cdkTreeNodePadding","level"],indent:["cdkTreeNodePaddingIndent","indent"]}}),I})(),u=(()=>{class I{constructor(r,v){this._tree=r,this._treeNode=v,this._recursive=!1}get recursive(){return this._recursive}set recursive(r){this._recursive=(0,D.Ig)(r)}_toggle(r){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),r.stopPropagation()}}return I.\u0275fac=function(r){return new(r||I)(s.Y36(de),s.Y36(oe))},I.\u0275dir=s.lG2({type:I,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(r,v){1&r&&s.NdJ("click",function(F){return v._toggle(F)})},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}}),I})(),L=(()=>{class I{}return I.\u0275fac=function(r){return new(r||I)},I.\u0275mod=s.oAB({type:I}),I.\u0275inj=s.cJS({}),I})()},9808:(Ve,Q,m)=>{"use strict";m.d(Q,{mr:()=>ie,Ov:()=>xr,ez:()=>wa,K0:()=>l,uU:()=>Ga,JJ:()=>Ba,Do:()=>_e,Ts:()=>Kn,Nd:()=>Qn,V_:()=>D,Ye:()=>ce,S$:()=>j,i8:()=>hs,mk:()=>qi,sg:()=>gt,O5:()=>Ci,PC:()=>dn,RF:()=>Ln,n9:()=>_n,ED:()=>Pn,tP:()=>Lr,b0:()=>ee,lw:()=>N,OU:()=>ga,rS:()=>pa,gd:()=>ma,EM:()=>ra,JF:()=>ja,NF:()=>ha,PM:()=>pr,w_:()=>M,bD:()=>Nr,q:()=>y,Mx:()=>Si,HT:()=>o});var e=m(5e3);let t=null;function y(){return t}function o(Xe){t||(t=Xe)}class M{}const l=new e.OlP("DocumentToken");let N=(()=>{class Xe{historyGo(J){throw new Error("Not implemented")}}return Xe.\u0275fac=function(J){return new(J||Xe)},Xe.\u0275prov=e.Yz7({token:Xe,factory:function(){return function s(){return(0,e.LFG)(A)}()},providedIn:"platform"}),Xe})();const D=new e.OlP("Location Initialized");let A=(()=>{class Xe extends N{constructor(J){super(),this._doc=J,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return y().getBaseHref(this._doc)}onPopState(J){const ne=y().getGlobalEventTarget(this._doc,"window");return ne.addEventListener("popstate",J,!1),()=>ne.removeEventListener("popstate",J)}onHashChange(J){const ne=y().getGlobalEventTarget(this._doc,"window");return ne.addEventListener("hashchange",J,!1),()=>ne.removeEventListener("hashchange",J)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(J){this.location.pathname=J}pushState(J,ne,Qe){O()?this._history.pushState(J,ne,Qe):this.location.hash=Qe}replaceState(J,ne,Qe){O()?this._history.replaceState(J,ne,Qe):this.location.hash=Qe}forward(){this._history.forward()}back(){this._history.back()}historyGo(J=0){this._history.go(J)}getState(){return this._history.state}}return Xe.\u0275fac=function(J){return new(J||Xe)(e.LFG(l))},Xe.\u0275prov=e.Yz7({token:Xe,factory:function(){return function E(){return new A((0,e.LFG)(l))}()},providedIn:"platform"}),Xe})();function O(){return!!window.history.pushState}function P(Xe,ge){if(0==Xe.length)return ge;if(0==ge.length)return Xe;let J=0;return Xe.endsWith("/")&&J++,ge.startsWith("/")&&J++,2==J?Xe+ge.substring(1):1==J?Xe+ge:Xe+"/"+ge}function w(Xe){const ge=Xe.match(/#|\?|$/),J=ge&&ge.index||Xe.length;return Xe.slice(0,J-("/"===Xe[J-1]?1:0))+Xe.slice(J)}function Z(Xe){return Xe&&"?"!==Xe[0]?"?"+Xe:Xe}let j=(()=>{class Xe{historyGo(J){throw new Error("Not implemented")}}return Xe.\u0275fac=function(J){return new(J||Xe)},Xe.\u0275prov=e.Yz7({token:Xe,factory:function(){return function W(Xe){const ge=(0,e.LFG)(l).location;return new ee((0,e.LFG)(N),ge&&ge.origin||"")}()},providedIn:"root"}),Xe})();const ie=new e.OlP("appBaseHref");let ee=(()=>{class Xe extends j{constructor(J,ne){if(super(),this._platformLocation=J,this._removeListenerFns=[],null==ne&&(ne=this._platformLocation.getBaseHrefFromDOM()),null==ne)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=ne}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(J){this._removeListenerFns.push(this._platformLocation.onPopState(J),this._platformLocation.onHashChange(J))}getBaseHref(){return this._baseHref}prepareExternalUrl(J){return P(this._baseHref,J)}path(J=!1){const ne=this._platformLocation.pathname+Z(this._platformLocation.search),Qe=this._platformLocation.hash;return Qe&&J?`${ne}${Qe}`:ne}pushState(J,ne,Qe,Wt){const mi=this.prepareExternalUrl(Qe+Z(Wt));this._platformLocation.pushState(J,ne,mi)}replaceState(J,ne,Qe,Wt){const mi=this.prepareExternalUrl(Qe+Z(Wt));this._platformLocation.replaceState(J,ne,mi)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(J=0){var ne,Qe;null===(Qe=(ne=this._platformLocation).historyGo)||void 0===Qe||Qe.call(ne,J)}}return Xe.\u0275fac=function(J){return new(J||Xe)(e.LFG(N),e.LFG(ie,8))},Xe.\u0275prov=e.Yz7({token:Xe,factory:Xe.\u0275fac}),Xe})(),_e=(()=>{class Xe extends j{constructor(J,ne){super(),this._platformLocation=J,this._baseHref="",this._removeListenerFns=[],null!=ne&&(this._baseHref=ne)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(J){this._removeListenerFns.push(this._platformLocation.onPopState(J),this._platformLocation.onHashChange(J))}getBaseHref(){return this._baseHref}path(J=!1){let ne=this._platformLocation.hash;return null==ne&&(ne="#"),ne.length>0?ne.substring(1):ne}prepareExternalUrl(J){const ne=P(this._baseHref,J);return ne.length>0?"#"+ne:ne}pushState(J,ne,Qe,Wt){let mi=this.prepareExternalUrl(Qe+Z(Wt));0==mi.length&&(mi=this._platformLocation.pathname),this._platformLocation.pushState(J,ne,mi)}replaceState(J,ne,Qe,Wt){let mi=this.prepareExternalUrl(Qe+Z(Wt));0==mi.length&&(mi=this._platformLocation.pathname),this._platformLocation.replaceState(J,ne,mi)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(J=0){var ne,Qe;null===(Qe=(ne=this._platformLocation).historyGo)||void 0===Qe||Qe.call(ne,J)}}return Xe.\u0275fac=function(J){return new(J||Xe)(e.LFG(N),e.LFG(ie,8))},Xe.\u0275prov=e.Yz7({token:Xe,factory:Xe.\u0275fac}),Xe})(),ce=(()=>{class Xe{constructor(J,ne){this._subject=new e.vpe,this._urlChangeListeners=[],this._platformStrategy=J;const Qe=this._platformStrategy.getBaseHref();this._platformLocation=ne,this._baseHref=w(oe(Qe)),this._platformStrategy.onPopState(Wt=>{this._subject.emit({url:this.path(!0),pop:!0,state:Wt.state,type:Wt.type})})}path(J=!1){return this.normalize(this._platformStrategy.path(J))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(J,ne=""){return this.path()==this.normalize(J+Z(ne))}normalize(J){return Xe.stripTrailingSlash(function de(Xe,ge){return Xe&&ge.startsWith(Xe)?ge.substring(Xe.length):ge}(this._baseHref,oe(J)))}prepareExternalUrl(J){return J&&"/"!==J[0]&&(J="/"+J),this._platformStrategy.prepareExternalUrl(J)}go(J,ne="",Qe=null){this._platformStrategy.pushState(Qe,"",J,ne),this._notifyUrlChangeListeners(this.prepareExternalUrl(J+Z(ne)),Qe)}replaceState(J,ne="",Qe=null){this._platformStrategy.replaceState(Qe,"",J,ne),this._notifyUrlChangeListeners(this.prepareExternalUrl(J+Z(ne)),Qe)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(J=0){var ne,Qe;null===(Qe=(ne=this._platformStrategy).historyGo)||void 0===Qe||Qe.call(ne,J)}onUrlChange(J){this._urlChangeListeners.push(J),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(ne=>{this._notifyUrlChangeListeners(ne.url,ne.state)}))}_notifyUrlChangeListeners(J="",ne){this._urlChangeListeners.forEach(Qe=>Qe(J,ne))}subscribe(J,ne,Qe){return this._subject.subscribe({next:J,error:ne,complete:Qe})}}return Xe.normalizeQueryParams=Z,Xe.joinWithSlash=P,Xe.stripTrailingSlash=w,Xe.\u0275fac=function(J){return new(J||Xe)(e.LFG(j),e.LFG(N))},Xe.\u0275prov=e.Yz7({token:Xe,factory:function(){return function re(){return new ce((0,e.LFG)(j),(0,e.LFG)(N))}()},providedIn:"root"}),Xe})();function oe(Xe){return Xe.replace(/\/index.html$/,"")}var b=(()=>((b=b||{})[b.Decimal=0]="Decimal",b[b.Percent=1]="Percent",b[b.Currency=2]="Currency",b[b.Scientific=3]="Scientific",b))(),i=(()=>((i=i||{})[i.Zero=0]="Zero",i[i.One=1]="One",i[i.Two=2]="Two",i[i.Few=3]="Few",i[i.Many=4]="Many",i[i.Other=5]="Other",i))(),a=(()=>((a=a||{})[a.Format=0]="Format",a[a.Standalone=1]="Standalone",a))(),p=(()=>((p=p||{})[p.Narrow=0]="Narrow",p[p.Abbreviated=1]="Abbreviated",p[p.Wide=2]="Wide",p[p.Short=3]="Short",p))(),u=(()=>((u=u||{})[u.Short=0]="Short",u[u.Medium=1]="Medium",u[u.Long=2]="Long",u[u.Full=3]="Full",u))(),_=(()=>((_=_||{})[_.Decimal=0]="Decimal",_[_.Group=1]="Group",_[_.List=2]="List",_[_.PercentSign=3]="PercentSign",_[_.PlusSign=4]="PlusSign",_[_.MinusSign=5]="MinusSign",_[_.Exponential=6]="Exponential",_[_.SuperscriptingExponent=7]="SuperscriptingExponent",_[_.PerMille=8]="PerMille",_[_.Infinity=9]="Infinity",_[_.NaN=10]="NaN",_[_.TimeSeparator=11]="TimeSeparator",_[_.CurrencyDecimal=12]="CurrencyDecimal",_[_.CurrencyGroup=13]="CurrencyGroup",_))();function ye(Xe,ge){return Le((0,e.cg1)(Xe)[e.wAp.DateFormat],ge)}function Ce(Xe,ge){return Le((0,e.cg1)(Xe)[e.wAp.TimeFormat],ge)}function Be(Xe,ge){return Le((0,e.cg1)(Xe)[e.wAp.DateTimeFormat],ge)}function ze(Xe,ge){const J=(0,e.cg1)(Xe),ne=J[e.wAp.NumberSymbols][ge];if(void 0===ne){if(ge===_.CurrencyDecimal)return J[e.wAp.NumberSymbols][_.Decimal];if(ge===_.CurrencyGroup)return J[e.wAp.NumberSymbols][_.Group]}return ne}const Ge=e.kL8;function vt(Xe){if(!Xe[e.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${Xe[e.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Le(Xe,ge){for(let J=ge;J>-1;J--)if(void 0!==Xe[J])return Xe[J];throw new Error("Locale data API: locale data undefined")}function ke(Xe){const[ge,J]=Xe.split(":");return{hours:+ge,minutes:+J}}const xe=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Ue={},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 nt=(()=>((nt=nt||{})[nt.Short=0]="Short",nt[nt.ShortGMT=1]="ShortGMT",nt[nt.Long=2]="Long",nt[nt.Extended=3]="Extended",nt))(),ft=(()=>((ft=ft||{})[ft.FullYear=0]="FullYear",ft[ft.Month=1]="Month",ft[ft.Date=2]="Date",ft[ft.Hours=3]="Hours",ft[ft.Minutes=4]="Minutes",ft[ft.Seconds=5]="Seconds",ft[ft.FractionalSeconds=6]="FractionalSeconds",ft[ft.Day=7]="Day",ft))(),it=(()=>((it=it||{})[it.DayPeriods=0]="DayPeriods",it[it.Days=1]="Days",it[it.Months=2]="Months",it[it.Eras=3]="Eras",it))();function rt(Xe,ge,J,ne){let Qe=function Fe(Xe){if(st(Xe))return Xe;if("number"==typeof Xe&&!isNaN(Xe))return new Date(Xe);if("string"==typeof Xe){if(Xe=Xe.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(Xe)){const[Qe,Wt=1,mi=1]=Xe.split("-").map(Ct=>+Ct);return Mt(Qe,Wt-1,mi)}const J=parseFloat(Xe);if(!isNaN(Xe-J))return new Date(J);let ne;if(ne=Xe.match(xe))return function at(Xe){const ge=new Date(0);let J=0,ne=0;const Qe=Xe[8]?ge.setUTCFullYear:ge.setFullYear,Wt=Xe[8]?ge.setUTCHours:ge.setHours;Xe[9]&&(J=Number(Xe[9]+Xe[10]),ne=Number(Xe[9]+Xe[11])),Qe.call(ge,Number(Xe[1]),Number(Xe[2])-1,Number(Xe[3]));const mi=Number(Xe[4]||0)-J,Ct=Number(Xe[5]||0)-ne,ti=Number(Xe[6]||0),bt=Math.floor(1e3*parseFloat("0."+(Xe[7]||0)));return Wt.call(ge,mi,Ct,ti,bt),ge}(ne)}const ge=new Date(Xe);if(!st(ge))throw new Error(`Unable to convert "${Xe}" into a date`);return ge}(Xe);ge=Zt(J,ge)||ge;let Ct,mi=[];for(;ge;){if(Ct=lt.exec(ge),!Ct){mi.push(ge);break}{mi=mi.concat(Ct.slice(1));const Yt=mi.pop();if(!Yt)break;ge=Yt}}let ti=Qe.getTimezoneOffset();ne&&(ti=Jt(ne,ti),Qe=function Pe(Xe,ge,J){const ne=J?-1:1,Qe=Xe.getTimezoneOffset();return function ct(Xe,ge){return(Xe=new Date(Xe.getTime())).setMinutes(Xe.getMinutes()+ge),Xe}(Xe,ne*(Jt(ge,Qe)-Qe))}(Qe,ne,!0));let bt="";return mi.forEach(Yt=>{const xi=function Nt(Xe){if($t[Xe])return $t[Xe];let ge;switch(Xe){case"G":case"GG":case"GGG":ge=Pi(it.Eras,p.Abbreviated);break;case"GGGG":ge=Pi(it.Eras,p.Wide);break;case"GGGGG":ge=Pi(it.Eras,p.Narrow);break;case"y":ge=jt(ft.FullYear,1,0,!1,!0);break;case"yy":ge=jt(ft.FullYear,2,0,!0,!0);break;case"yyy":ge=jt(ft.FullYear,3,0,!1,!0);break;case"yyyy":ge=jt(ft.FullYear,4,0,!1,!0);break;case"Y":ge=et(1);break;case"YY":ge=et(2,!0);break;case"YYY":ge=et(3);break;case"YYYY":ge=et(4);break;case"M":case"L":ge=jt(ft.Month,1,1);break;case"MM":case"LL":ge=jt(ft.Month,2,1);break;case"MMM":ge=Pi(it.Months,p.Abbreviated);break;case"MMMM":ge=Pi(it.Months,p.Wide);break;case"MMMMM":ge=Pi(it.Months,p.Narrow);break;case"LLL":ge=Pi(it.Months,p.Abbreviated,a.Standalone);break;case"LLLL":ge=Pi(it.Months,p.Wide,a.Standalone);break;case"LLLLL":ge=Pi(it.Months,p.Narrow,a.Standalone);break;case"w":ge=De(1);break;case"ww":ge=De(2);break;case"W":ge=De(1,!0);break;case"d":ge=jt(ft.Date,1);break;case"dd":ge=jt(ft.Date,2);break;case"c":case"cc":ge=jt(ft.Day,1);break;case"ccc":ge=Pi(it.Days,p.Abbreviated,a.Standalone);break;case"cccc":ge=Pi(it.Days,p.Wide,a.Standalone);break;case"ccccc":ge=Pi(it.Days,p.Narrow,a.Standalone);break;case"cccccc":ge=Pi(it.Days,p.Short,a.Standalone);break;case"E":case"EE":case"EEE":ge=Pi(it.Days,p.Abbreviated);break;case"EEEE":ge=Pi(it.Days,p.Wide);break;case"EEEEE":ge=Pi(it.Days,p.Narrow);break;case"EEEEEE":ge=Pi(it.Days,p.Short);break;case"a":case"aa":case"aaa":ge=Pi(it.DayPeriods,p.Abbreviated);break;case"aaaa":ge=Pi(it.DayPeriods,p.Wide);break;case"aaaaa":ge=Pi(it.DayPeriods,p.Narrow);break;case"b":case"bb":case"bbb":ge=Pi(it.DayPeriods,p.Abbreviated,a.Standalone,!0);break;case"bbbb":ge=Pi(it.DayPeriods,p.Wide,a.Standalone,!0);break;case"bbbbb":ge=Pi(it.DayPeriods,p.Narrow,a.Standalone,!0);break;case"B":case"BB":case"BBB":ge=Pi(it.DayPeriods,p.Abbreviated,a.Format,!0);break;case"BBBB":ge=Pi(it.DayPeriods,p.Wide,a.Format,!0);break;case"BBBBB":ge=Pi(it.DayPeriods,p.Narrow,a.Format,!0);break;case"h":ge=jt(ft.Hours,1,-12);break;case"hh":ge=jt(ft.Hours,2,-12);break;case"H":ge=jt(ft.Hours,1);break;case"HH":ge=jt(ft.Hours,2);break;case"m":ge=jt(ft.Minutes,1);break;case"mm":ge=jt(ft.Minutes,2);break;case"s":ge=jt(ft.Seconds,1);break;case"ss":ge=jt(ft.Seconds,2);break;case"S":ge=jt(ft.FractionalSeconds,1);break;case"SS":ge=jt(ft.FractionalSeconds,2);break;case"SSS":ge=jt(ft.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":ge=hi(nt.Short);break;case"ZZZZZ":ge=hi(nt.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":ge=hi(nt.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":ge=hi(nt.Long);break;default:return null}return $t[Xe]=ge,ge}(Yt);bt+=xi?xi(Qe,J,ti):"''"===Yt?"'":Yt.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),bt}function Mt(Xe,ge,J){const ne=new Date(0);return ne.setFullYear(Xe,ge,J),ne.setHours(0,0,0),ne}function Zt(Xe,ge){const J=function I(Xe){return(0,e.cg1)(Xe)[e.wAp.LocaleId]}(Xe);if(Ue[J]=Ue[J]||{},Ue[J][ge])return Ue[J][ge];let ne="";switch(ge){case"shortDate":ne=ye(Xe,u.Short);break;case"mediumDate":ne=ye(Xe,u.Medium);break;case"longDate":ne=ye(Xe,u.Long);break;case"fullDate":ne=ye(Xe,u.Full);break;case"shortTime":ne=Ce(Xe,u.Short);break;case"mediumTime":ne=Ce(Xe,u.Medium);break;case"longTime":ne=Ce(Xe,u.Long);break;case"fullTime":ne=Ce(Xe,u.Full);break;case"short":const Qe=Zt(Xe,"shortTime"),Wt=Zt(Xe,"shortDate");ne=Ft(Be(Xe,u.Short),[Qe,Wt]);break;case"medium":const mi=Zt(Xe,"mediumTime"),Ct=Zt(Xe,"mediumDate");ne=Ft(Be(Xe,u.Medium),[mi,Ct]);break;case"long":const ti=Zt(Xe,"longTime"),bt=Zt(Xe,"longDate");ne=Ft(Be(Xe,u.Long),[ti,bt]);break;case"full":const Yt=Zt(Xe,"fullTime"),xi=Zt(Xe,"fullDate");ne=Ft(Be(Xe,u.Full),[Yt,xi])}return ne&&(Ue[J][ge]=ne),ne}function Ft(Xe,ge){return ge&&(Xe=Xe.replace(/\{([^}]+)}/g,function(J,ne){return null!=ge&&ne in ge?ge[ne]:J})),Xe}function Vt(Xe,ge,J="-",ne,Qe){let Wt="";(Xe<0||Qe&&Xe<=0)&&(Qe?Xe=1-Xe:(Xe=-Xe,Wt=J));let mi=String(Xe);for(;mi.length<ge;)mi="0"+mi;return ne&&(mi=mi.substr(mi.length-ge)),Wt+mi}function jt(Xe,ge,J=0,ne=!1,Qe=!1){return function(Wt,mi){let Ct=function ei(Xe,ge){switch(Xe){case ft.FullYear:return ge.getFullYear();case ft.Month:return ge.getMonth();case ft.Date:return ge.getDate();case ft.Hours:return ge.getHours();case ft.Minutes:return ge.getMinutes();case ft.Seconds:return ge.getSeconds();case ft.FractionalSeconds:return ge.getMilliseconds();case ft.Day:return ge.getDay();default:throw new Error(`Unknown DateType value "${Xe}".`)}}(Xe,Wt);if((J>0||Ct>-J)&&(Ct+=J),Xe===ft.Hours)0===Ct&&-12===J&&(Ct=12);else if(Xe===ft.FractionalSeconds)return function Ii(Xe,ge){return Vt(Xe,3).substr(0,ge)}(Ct,ge);const ti=ze(mi,_.MinusSign);return Vt(Ct,ge,ti,ne,Qe)}}function Pi(Xe,ge,J=a.Format,ne=!1){return function(Qe,Wt){return function ai(Xe,ge,J,ne,Qe,Wt){switch(J){case it.Months:return function v(Xe,ge,J){const ne=(0,e.cg1)(Xe),Wt=Le([ne[e.wAp.MonthsFormat],ne[e.wAp.MonthsStandalone]],ge);return Le(Wt,J)}(ge,Qe,ne)[Xe.getMonth()];case it.Days:return function r(Xe,ge,J){const ne=(0,e.cg1)(Xe),Wt=Le([ne[e.wAp.DaysFormat],ne[e.wAp.DaysStandalone]],ge);return Le(Wt,J)}(ge,Qe,ne)[Xe.getDay()];case it.DayPeriods:const mi=Xe.getHours(),Ct=Xe.getMinutes();if(Wt){const bt=function Re(Xe){const ge=(0,e.cg1)(Xe);return vt(ge),(ge[e.wAp.ExtraData][2]||[]).map(ne=>"string"==typeof ne?ke(ne):[ke(ne[0]),ke(ne[1])])}(ge),Yt=function Ne(Xe,ge,J){const ne=(0,e.cg1)(Xe);vt(ne);const Wt=Le([ne[e.wAp.ExtraData][0],ne[e.wAp.ExtraData][1]],ge)||[];return Le(Wt,J)||[]}(ge,Qe,ne),xi=bt.findIndex(Bi=>{if(Array.isArray(Bi)){const[yn,An]=Bi,Wi=mi>=yn.hours&&Ct>=yn.minutes,Cr=mi<An.hours||mi===An.hours&&Ct<An.minutes;if(yn.hours<An.hours){if(Wi&&Cr)return!0}else if(Wi||Cr)return!0}else if(Bi.hours===mi&&Bi.minutes===Ct)return!0;return!1});if(-1!==xi)return Yt[xi]}return function x(Xe,ge,J){const ne=(0,e.cg1)(Xe),Wt=Le([ne[e.wAp.DayPeriodsFormat],ne[e.wAp.DayPeriodsStandalone]],ge);return Le(Wt,J)}(ge,Qe,ne)[mi<12?0:1];case it.Eras:return function G(Xe,ge){return Le((0,e.cg1)(Xe)[e.wAp.Eras],ge)}(ge,ne)[Xe.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${J}`)}}(Qe,Wt,Xe,ge,J,ne)}}function hi(Xe){return function(ge,J,ne){const Qe=-1*ne,Wt=ze(J,_.MinusSign),mi=Qe>0?Math.floor(Qe/60):Math.ceil(Qe/60);switch(Xe){case nt.Short:return(Qe>=0?"+":"")+Vt(mi,2,Wt)+Vt(Math.abs(Qe%60),2,Wt);case nt.ShortGMT:return"GMT"+(Qe>=0?"+":"")+Vt(mi,1,Wt);case nt.Long:return"GMT"+(Qe>=0?"+":"")+Vt(mi,2,Wt)+":"+Vt(Math.abs(Qe%60),2,Wt);case nt.Extended:return 0===ne?"Z":(Qe>=0?"+":"")+Vt(mi,2,Wt)+":"+Vt(Math.abs(Qe%60),2,Wt);default:throw new Error(`Unknown zone width "${Xe}"`)}}}function me(Xe){return Mt(Xe.getFullYear(),Xe.getMonth(),Xe.getDate()+(4-Xe.getDay()))}function De(Xe,ge=!1){return function(J,ne){let Qe;if(ge){const Wt=new Date(J.getFullYear(),J.getMonth(),1).getDay()-1,mi=J.getDate();Qe=1+Math.floor((mi+Wt)/7)}else{const Wt=me(J),mi=function Y(Xe){const ge=Mt(Xe,0,1).getDay();return Mt(Xe,0,1+(ge<=4?4:11)-ge)}(Wt.getFullYear()),Ct=Wt.getTime()-mi.getTime();Qe=1+Math.round(Ct/6048e5)}return Vt(Qe,Xe,ze(ne,_.MinusSign))}}function et(Xe,ge=!1){return function(J,ne){return Vt(me(J).getFullYear(),Xe,ze(ne,_.MinusSign),ge)}}const $t={};function Jt(Xe,ge){Xe=Xe.replace(/:/g,"");const J=Date.parse("Jan 01, 1970 00:00:00 "+Xe)/6e4;return isNaN(J)?ge:J}function st(Xe){return Xe instanceof Date&&!isNaN(Xe.valueOf())}const At=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function Je(Xe){const ge=parseInt(Xe);if(isNaN(ge))throw new Error("Invalid integer literal when parsing "+Xe);return ge}class St{}let yi=(()=>{class Xe extends St{constructor(J){super(),this.locale=J}getPluralCategory(J,ne){switch(Ge(ne||this.locale)(J)){case i.Zero:return"zero";case i.One:return"one";case i.Two:return"two";case i.Few:return"few";case i.Many:return"many";default:return"other"}}}return Xe.\u0275fac=function(J){return new(J||Xe)(e.LFG(e.soG))},Xe.\u0275prov=e.Yz7({token:Xe,factory:Xe.\u0275fac}),Xe})();function Si(Xe,ge){ge=encodeURIComponent(ge);for(const J of Xe.split(";")){const ne=J.indexOf("="),[Qe,Wt]=-1==ne?[J,""]:[J.slice(0,ne),J.slice(ne+1)];if(Qe.trim()===ge)return decodeURIComponent(Wt)}return null}let qi=(()=>{class Xe{constructor(J,ne,Qe,Wt){this._iterableDiffers=J,this._keyValueDiffers=ne,this._ngEl=Qe,this._renderer=Wt,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(J){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof J?J.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(J){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof J?J.split(/\s+/):J,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 J=this._iterableDiffer.diff(this._rawClass);J&&this._applyIterableChanges(J)}else if(this._keyValueDiffer){const J=this._keyValueDiffer.diff(this._rawClass);J&&this._applyKeyValueChanges(J)}}_applyKeyValueChanges(J){J.forEachAddedItem(ne=>this._toggleClass(ne.key,ne.currentValue)),J.forEachChangedItem(ne=>this._toggleClass(ne.key,ne.currentValue)),J.forEachRemovedItem(ne=>{ne.previousValue&&this._toggleClass(ne.key,!1)})}_applyIterableChanges(J){J.forEachAddedItem(ne=>{if("string"!=typeof ne.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,e.AaK)(ne.item)}`);this._toggleClass(ne.item,!0)}),J.forEachRemovedItem(ne=>this._toggleClass(ne.item,!1))}_applyClasses(J){J&&(Array.isArray(J)||J instanceof Set?J.forEach(ne=>this._toggleClass(ne,!0)):Object.keys(J).forEach(ne=>this._toggleClass(ne,!!J[ne])))}_removeClasses(J){J&&(Array.isArray(J)||J instanceof Set?J.forEach(ne=>this._toggleClass(ne,!1)):Object.keys(J).forEach(ne=>this._toggleClass(ne,!1)))}_toggleClass(J,ne){(J=J.trim())&&J.split(/\s+/g).forEach(Qe=>{ne?this._renderer.addClass(this._ngEl.nativeElement,Qe):this._renderer.removeClass(this._ngEl.nativeElement,Qe)})}}return Xe.\u0275fac=function(J){return new(J||Xe)(e.Y36(e.ZZ4),e.Y36(e.aQg),e.Y36(e.SBq),e.Y36(e.Qsj))},Xe.\u0275dir=e.lG2({type:Xe,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),Xe})();class Kt{constructor(ge,J,ne,Qe){this.$implicit=ge,this.ngForOf=J,this.index=ne,this.count=Qe}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 gt=(()=>{class Xe{constructor(J,ne,Qe){this._viewContainer=J,this._template=ne,this._differs=Qe,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(J){this._ngForOf=J,this._ngForOfDirty=!0}set ngForTrackBy(J){this._trackByFn=J}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(J){J&&(this._template=J)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const J=this._ngForOf;if(!this._differ&&J)try{this._differ=this._differs.find(J).create(this.ngForTrackBy)}catch(ne){throw new Error(`Cannot find a differ supporting object '${J}' of type '${function ui(Xe){return Xe.name||typeof Xe}(J)}'. NgFor only supports binding to Iterables such as Arrays.`)}}if(this._differ){const J=this._differ.diff(this._ngForOf);J&&this._applyChanges(J)}}_applyChanges(J){const ne=[];J.forEachOperation((Qe,Wt,mi)=>{if(null==Qe.previousIndex){const Ct=this._viewContainer.createEmbeddedView(this._template,new Kt(null,this._ngForOf,-1,-1),null===mi?void 0:mi),ti=new Lt(Qe,Ct);ne.push(ti)}else if(null==mi)this._viewContainer.remove(null===Wt?void 0:Wt);else if(null!==Wt){const Ct=this._viewContainer.get(Wt);this._viewContainer.move(Ct,mi);const ti=new Lt(Qe,Ct);ne.push(ti)}});for(let Qe=0;Qe<ne.length;Qe++)this._perViewChange(ne[Qe].view,ne[Qe].record);for(let Qe=0,Wt=this._viewContainer.length;Qe<Wt;Qe++){const mi=this._viewContainer.get(Qe);mi.context.index=Qe,mi.context.count=Wt,mi.context.ngForOf=this._ngForOf}J.forEachIdentityChange(Qe=>{this._viewContainer.get(Qe.currentIndex).context.$implicit=Qe.item})}_perViewChange(J,ne){J.context.$implicit=ne.item}static ngTemplateContextGuard(J,ne){return!0}}return Xe.\u0275fac=function(J){return new(J||Xe)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(e.ZZ4))},Xe.\u0275dir=e.lG2({type:Xe,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),Xe})();class Lt{constructor(ge,J){this.record=ge,this.view=J}}let Ci=(()=>{class Xe{constructor(J,ne){this._viewContainer=J,this._context=new Yi,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=ne}set ngIf(J){this._context.$implicit=this._context.ngIf=J,this._updateView()}set ngIfThen(J){$i("ngIfThen",J),this._thenTemplateRef=J,this._thenViewRef=null,this._updateView()}set ngIfElse(J){$i("ngIfElse",J),this._elseTemplateRef=J,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(J,ne){return!0}}return Xe.\u0275fac=function(J){return new(J||Xe)(e.Y36(e.s_b),e.Y36(e.Rgc))},Xe.\u0275dir=e.lG2({type:Xe,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),Xe})();class Yi{constructor(){this.$implicit=null,this.ngIf=null}}function $i(Xe,ge){if(ge&&!ge.createEmbeddedView)throw new Error(`${Xe} must be a TemplateRef, but received '${(0,e.AaK)(ge)}'.`)}class Cn{constructor(ge,J){this._viewContainerRef=ge,this._templateRef=J,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(ge){ge&&!this._created?this.create():!ge&&this._created&&this.destroy()}}let Ln=(()=>{class Xe{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(J){this._ngSwitch=J,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(J){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(J)}_matchCase(J){const ne=J==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||ne,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),ne}_updateDefaultCases(J){if(this._defaultViews&&J!==this._defaultUsed){this._defaultUsed=J;for(let ne=0;ne<this._defaultViews.length;ne++)this._defaultViews[ne].enforceState(J)}}}return Xe.\u0275fac=function(J){return new(J||Xe)},Xe.\u0275dir=e.lG2({type:Xe,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),Xe})(),_n=(()=>{class Xe{constructor(J,ne,Qe){this.ngSwitch=Qe,Qe._addCase(),this._view=new Cn(J,ne)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return Xe.\u0275fac=function(J){return new(J||Xe)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(Ln,9))},Xe.\u0275dir=e.lG2({type:Xe,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),Xe})(),Pn=(()=>{class Xe{constructor(J,ne,Qe){Qe._addDefault(new Cn(J,ne))}}return Xe.\u0275fac=function(J){return new(J||Xe)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(Ln,9))},Xe.\u0275dir=e.lG2({type:Xe,selectors:[["","ngSwitchDefault",""]]}),Xe})(),dn=(()=>{class Xe{constructor(J,ne,Qe){this._ngEl=J,this._differs=ne,this._renderer=Qe,this._ngStyle=null,this._differ=null}set ngStyle(J){this._ngStyle=J,!this._differ&&J&&(this._differ=this._differs.find(J).create())}ngDoCheck(){if(this._differ){const J=this._differ.diff(this._ngStyle);J&&this._applyChanges(J)}}_setStyle(J,ne){const[Qe,Wt]=J.split(".");null!=(ne=null!=ne&&Wt?`${ne}${Wt}`:ne)?this._renderer.setStyle(this._ngEl.nativeElement,Qe,ne):this._renderer.removeStyle(this._ngEl.nativeElement,Qe)}_applyChanges(J){J.forEachRemovedItem(ne=>this._setStyle(ne.key,null)),J.forEachAddedItem(ne=>this._setStyle(ne.key,ne.currentValue)),J.forEachChangedItem(ne=>this._setStyle(ne.key,ne.currentValue))}}return Xe.\u0275fac=function(J){return new(J||Xe)(e.Y36(e.SBq),e.Y36(e.aQg),e.Y36(e.Qsj))},Xe.\u0275dir=e.lG2({type:Xe,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),Xe})(),Lr=(()=>{class Xe{constructor(J){this._viewContainerRef=J,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(J){if(J.ngTemplateOutlet){const ne=this._viewContainerRef;this._viewRef&&ne.remove(ne.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?ne.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&J.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return Xe.\u0275fac=function(J){return new(J||Xe)(e.Y36(e.s_b))},Xe.\u0275dir=e.lG2({type:Xe,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[e.TTD]}),Xe})();function Gn(Xe,ge){return Error(`InvalidPipeArgument: '${ge}' for pipe '${(0,e.AaK)(Xe)}'`)}class Or{createSubscription(ge,J){return ge.subscribe({next:J,error:ne=>{throw ne}})}dispose(ge){ge.unsubscribe()}onDestroy(ge){ge.unsubscribe()}}class Ra{createSubscription(ge,J){return ge.then(J,ne=>{throw ne})}dispose(ge){}onDestroy(ge){}}const Ma=new Ra,Fa=new Or;let xr=(()=>{class Xe{constructor(J){this._ref=J,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(J){return this._obj?J!==this._obj?(this._dispose(),this.transform(J)):this._latestValue:(J&&this._subscribe(J),this._latestValue)}_subscribe(J){this._obj=J,this._strategy=this._selectStrategy(J),this._subscription=this._strategy.createSubscription(J,ne=>this._updateLatestValue(J,ne))}_selectStrategy(J){if((0,e.QGY)(J))return Ma;if((0,e.F4k)(J))return Fa;throw Gn(Xe,J)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(J,ne){J===this._obj&&(this._latestValue=ne,this._ref.markForCheck())}}return Xe.\u0275fac=function(J){return new(J||Xe)(e.Y36(e.sBO,16))},Xe.\u0275pipe=e.Yjl({name:"async",type:Xe,pure:!1}),Xe})(),hs=(()=>{class Xe{transform(J){if(null==J)return null;if("string"!=typeof J)throw Gn(Xe,J);return J.toLowerCase()}}return Xe.\u0275fac=function(J){return new(J||Xe)},Xe.\u0275pipe=e.Yjl({name:"lowercase",type:Xe,pure:!0}),Xe})();const ur=/(?:[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 pa=(()=>{class Xe{transform(J){if(null==J)return null;if("string"!=typeof J)throw Gn(Xe,J);return J.replace(ur,ne=>ne[0].toUpperCase()+ne.substr(1).toLowerCase())}}return Xe.\u0275fac=function(J){return new(J||Xe)},Xe.\u0275pipe=e.Yjl({name:"titlecase",type:Xe,pure:!0}),Xe})(),ma=(()=>{class Xe{transform(J){if(null==J)return null;if("string"!=typeof J)throw Gn(Xe,J);return J.toUpperCase()}}return Xe.\u0275fac=function(J){return new(J||Xe)},Xe.\u0275pipe=e.Yjl({name:"uppercase",type:Xe,pure:!0}),Xe})();const Ir=new e.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let Ga=(()=>{class Xe{constructor(J,ne){this.locale=J,this.defaultTimezone=ne}transform(J,ne="mediumDate",Qe,Wt){var mi;if(null==J||""===J||J!=J)return null;try{return rt(J,ne,Wt||this.locale,null!==(mi=null!=Qe?Qe:this.defaultTimezone)&&void 0!==mi?mi:void 0)}catch(Ct){throw Gn(Xe,Ct.message)}}}return Xe.\u0275fac=function(J){return new(J||Xe)(e.Y36(e.soG,16),e.Y36(Ir,24))},Xe.\u0275pipe=e.Yjl({name:"date",type:Xe,pure:!0}),Xe})(),Kn=(()=>{class Xe{transform(J){return JSON.stringify(J,null,2)}}return Xe.\u0275fac=function(J){return new(J||Xe)},Xe.\u0275pipe=e.Yjl({name:"json",type:Xe,pure:!1}),Xe})(),Qn=(()=>{class Xe{constructor(J){this.differs=J,this.keyValues=[],this.compareFn=Tr}transform(J,ne=Tr){if(!J||!(J instanceof Map)&&"object"!=typeof J)return null;this.differ||(this.differ=this.differs.find(J).create());const Qe=this.differ.diff(J),Wt=ne!==this.compareFn;return Qe&&(this.keyValues=[],Qe.forEachItem(mi=>{this.keyValues.push(function vn(Xe,ge){return{key:Xe,value:ge}}(mi.key,mi.currentValue))})),(Qe||Wt)&&(this.keyValues.sort(ne),this.compareFn=ne),this.keyValues}}return Xe.\u0275fac=function(J){return new(J||Xe)(e.Y36(e.aQg,16))},Xe.\u0275pipe=e.Yjl({name:"keyvalue",type:Xe,pure:!1}),Xe})();function Tr(Xe,ge){const J=Xe.key,ne=ge.key;if(J===ne)return 0;if(void 0===J)return 1;if(void 0===ne)return-1;if(null===J)return 1;if(null===ne)return-1;if("string"==typeof J&&"string"==typeof ne)return J<ne?-1:1;if("number"==typeof J&&"number"==typeof ne)return J-ne;if("boolean"==typeof J&&"boolean"==typeof ne)return J<ne?-1:1;const Qe=String(J),Wt=String(ne);return Qe==Wt?0:Qe<Wt?-1:1}let Ba=(()=>{class Xe{constructor(J){this._locale=J}transform(J,ne,Qe){if(!function la(Xe){return!(null==Xe||""===Xe||Xe!=Xe)}(J))return null;Qe=Qe||this._locale;try{return function _t(Xe,ge,J){return function Di(Xe,ge,J,ne,Qe,Wt,mi=!1){let Ct="",ti=!1;if(isFinite(Xe)){let bt=function yt(Xe){let ne,Qe,Wt,mi,Ct,ge=Math.abs(Xe)+"",J=0;for((Qe=ge.indexOf("."))>-1&&(ge=ge.replace(".","")),(Wt=ge.search(/e/i))>0?(Qe<0&&(Qe=Wt),Qe+=+ge.slice(Wt+1),ge=ge.substring(0,Wt)):Qe<0&&(Qe=ge.length),Wt=0;"0"===ge.charAt(Wt);Wt++);if(Wt===(Ct=ge.length))ne=[0],Qe=1;else{for(Ct--;"0"===ge.charAt(Ct);)Ct--;for(Qe-=Wt,ne=[],mi=0;Wt<=Ct;Wt++,mi++)ne[mi]=Number(ge.charAt(Wt))}return Qe>22&&(ne=ne.splice(0,21),J=Qe-1,Qe=1),{digits:ne,exponent:J,integerLen:Qe}}(Xe);mi&&(bt=function qe(Xe){if(0===Xe.digits[0])return Xe;const ge=Xe.digits.length-Xe.integerLen;return Xe.exponent?Xe.exponent+=2:(0===ge?Xe.digits.push(0,0):1===ge&&Xe.digits.push(0),Xe.integerLen+=2),Xe}(bt));let Yt=ge.minInt,xi=ge.minFrac,Bi=ge.maxFrac;if(Wt){const Rn=Wt.match(At);if(null===Rn)throw new Error(`${Wt} is not a valid digit info`);const _a=Rn[1],Mr=Rn[3],ds=Rn[5];null!=_a&&(Yt=Je(_a)),null!=Mr&&(xi=Je(Mr)),null!=ds?Bi=Je(ds):null!=Mr&&xi>Bi&&(Bi=xi)}!function fe(Xe,ge,J){if(ge>J)throw new Error(`The minimum number of digits after fraction (${ge}) is higher than the maximum (${J}).`);let ne=Xe.digits,Qe=ne.length-Xe.integerLen;const Wt=Math.min(Math.max(ge,Qe),J);let mi=Wt+Xe.integerLen,Ct=ne[mi];if(mi>0){ne.splice(Math.max(Xe.integerLen,mi));for(let xi=mi;xi<ne.length;xi++)ne[xi]=0}else{Qe=Math.max(0,Qe),Xe.integerLen=1,ne.length=Math.max(1,mi=Wt+1),ne[0]=0;for(let xi=1;xi<mi;xi++)ne[xi]=0}if(Ct>=5)if(mi-1<0){for(let xi=0;xi>mi;xi--)ne.unshift(0),Xe.integerLen++;ne.unshift(1),Xe.integerLen++}else ne[mi-1]++;for(;Qe<Math.max(0,Wt);Qe++)ne.push(0);let ti=0!==Wt;const bt=ge+Xe.integerLen,Yt=ne.reduceRight(function(xi,Bi,yn,An){return An[yn]=(Bi+=xi)<10?Bi:Bi-10,ti&&(0===An[yn]&&yn>=bt?An.pop():ti=!1),Bi>=10?1:0},0);Yt&&(ne.unshift(Yt),Xe.integerLen++)}(bt,xi,Bi);let yn=bt.digits,An=bt.integerLen;const Wi=bt.exponent;let Cr=[];for(ti=yn.every(Rn=>!Rn);An<Yt;An++)yn.unshift(0);for(;An<0;An++)yn.unshift(0);An>0?Cr=yn.splice(An,yn.length):(Cr=yn,yn=[0]);const Un=[];for(yn.length>=ge.lgSize&&Un.unshift(yn.splice(-ge.lgSize,yn.length).join(""));yn.length>ge.gSize;)Un.unshift(yn.splice(-ge.gSize,yn.length).join(""));yn.length&&Un.unshift(yn.join("")),Ct=Un.join(ze(J,ne)),Cr.length&&(Ct+=ze(J,Qe)+Cr.join("")),Wi&&(Ct+=ze(J,_.Exponential)+"+"+Wi)}else Ct=ze(J,_.Infinity);return Ct=Xe<0&&!ti?ge.negPre+Ct+ge.negSuf:ge.posPre+Ct+ge.posSuf,Ct}(Xe,function ve(Xe,ge="-"){const J={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},ne=Xe.split(";"),Qe=ne[0],Wt=ne[1],mi=-1!==Qe.indexOf(".")?Qe.split("."):[Qe.substring(0,Qe.lastIndexOf("0")+1),Qe.substring(Qe.lastIndexOf("0")+1)],Ct=mi[0],ti=mi[1]||"";J.posPre=Ct.substr(0,Ct.indexOf("#"));for(let Yt=0;Yt<ti.length;Yt++){const xi=ti.charAt(Yt);"0"===xi?J.minFrac=J.maxFrac=Yt+1:"#"===xi?J.maxFrac=Yt+1:J.posSuf+=xi}const bt=Ct.split(",");if(J.gSize=bt[1]?bt[1].length:0,J.lgSize=bt[2]||bt[1]?(bt[2]||bt[1]).length:0,Wt){const Yt=Qe.length-J.posPre.length-J.posSuf.length,xi=Wt.indexOf("#");J.negPre=Wt.substr(0,xi).replace(/'/g,""),J.negSuf=Wt.substr(xi+Yt).replace(/'/g,"")}else J.negPre=ge+J.posPre,J.negSuf=J.posSuf;return J}(function Ie(Xe,ge){return(0,e.cg1)(Xe)[e.wAp.NumberFormats][ge]}(ge,b.Decimal),ze(ge,_.MinusSign)),ge,_.Group,_.Decimal,J)}(function Jr(Xe){if("string"==typeof Xe&&!isNaN(Number(Xe)-parseFloat(Xe)))return Number(Xe);if("number"!=typeof Xe)throw new Error(`${Xe} is not a number`);return Xe}(J),Qe,ne)}catch(Wt){throw Gn(Xe,Wt.message)}}}return Xe.\u0275fac=function(J){return new(J||Xe)(e.Y36(e.soG,16))},Xe.\u0275pipe=e.Yjl({name:"number",type:Xe,pure:!0}),Xe})();let ga=(()=>{class Xe{transform(J,ne,Qe){if(null==J)return null;if(!this.supports(J))throw Gn(Xe,J);return J.slice(ne,Qe)}supports(J){return"string"==typeof J||Array.isArray(J)}}return Xe.\u0275fac=function(J){return new(J||Xe)},Xe.\u0275pipe=e.Yjl({name:"slice",type:Xe,pure:!1}),Xe})(),wa=(()=>{class Xe{}return Xe.\u0275fac=function(J){return new(J||Xe)},Xe.\u0275mod=e.oAB({type:Xe}),Xe.\u0275inj=e.cJS({providers:[{provide:St,useClass:yi}]}),Xe})();const Nr="browser";function ha(Xe){return Xe===Nr}function pr(Xe){return"server"===Xe}let ra=(()=>{class Xe{}return Xe.\u0275prov=(0,e.Yz7)({token:Xe,providedIn:"root",factory:()=>new Gr((0,e.LFG)(l),window)}),Xe})();class Gr{constructor(ge,J){this.document=ge,this.window=J,this.offset=()=>[0,0]}setOffset(ge){this.offset=Array.isArray(ge)?()=>ge:ge}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(ge){this.supportsScrolling()&&this.window.scrollTo(ge[0],ge[1])}scrollToAnchor(ge){if(!this.supportsScrolling())return;const J=function Zn(Xe,ge){const J=Xe.getElementById(ge)||Xe.getElementsByName(ge)[0];if(J)return J;if("function"==typeof Xe.createTreeWalker&&Xe.body&&(Xe.body.createShadowRoot||Xe.body.attachShadow)){const ne=Xe.createTreeWalker(Xe.body,NodeFilter.SHOW_ELEMENT);let Qe=ne.currentNode;for(;Qe;){const Wt=Qe.shadowRoot;if(Wt){const mi=Wt.getElementById(ge)||Wt.querySelector(`[name="${ge}"]`);if(mi)return mi}Qe=ne.nextNode()}}return null}(this.document,ge);J&&(this.scrollToElement(J),this.attemptFocus(J))}setHistoryScrollRestoration(ge){if(this.supportScrollRestoration()){const J=this.window.history;J&&J.scrollRestoration&&(J.scrollRestoration=ge)}}scrollToElement(ge){const J=ge.getBoundingClientRect(),ne=J.left+this.window.pageXOffset,Qe=J.top+this.window.pageYOffset,Wt=this.offset();this.window.scrollTo(ne-Wt[0],Qe-Wt[1])}attemptFocus(ge){return ge.focus(),this.document.activeElement===ge}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const ge=Ha(this.window.history)||Ha(Object.getPrototypeOf(this.window.history));return!(!ge||!ge.writable&&!ge.set)}catch(ge){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(ge){return!1}}}function Ha(Xe){return Object.getOwnPropertyDescriptor(Xe,"scrollRestoration")}class ja{}},8138:(Ve,Q,m)=>{"use strict";m.d(Q,{TP:()=>I,eN:()=>_,JF:()=>Le,LE:()=>j});var e=m(9808),t=m(5e3),y=m(9646),C=m(8306),o=m(4351),M=m(9300),l=m(4004);class N{}class s{}class D{constructor(le){this.normalizedNames=new Map,this.lazyUpdate=null,le?this.lazyInit="string"==typeof le?()=>{this.headers=new Map,le.split("\n").forEach(xe=>{const Ue=xe.indexOf(":");if(Ue>0){const lt=xe.slice(0,Ue),nt=lt.toLowerCase(),ft=xe.slice(Ue+1).trim();this.maybeSetNormalizedName(lt,nt),this.headers.has(nt)?this.headers.get(nt).push(ft):this.headers.set(nt,[ft])}})}:()=>{this.headers=new Map,Object.keys(le).forEach(xe=>{let Ue=le[xe];const lt=xe.toLowerCase();"string"==typeof Ue&&(Ue=[Ue]),Ue.length>0&&(this.headers.set(lt,Ue),this.maybeSetNormalizedName(xe,lt))})}:this.headers=new Map}has(le){return this.init(),this.headers.has(le.toLowerCase())}get(le){this.init();const xe=this.headers.get(le.toLowerCase());return xe&&xe.length>0?xe[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(le){return this.init(),this.headers.get(le.toLowerCase())||null}append(le,xe){return this.clone({name:le,value:xe,op:"a"})}set(le,xe){return this.clone({name:le,value:xe,op:"s"})}delete(le,xe){return this.clone({name:le,value:xe,op:"d"})}maybeSetNormalizedName(le,xe){this.normalizedNames.has(xe)||this.normalizedNames.set(xe,le)}init(){this.lazyInit&&(this.lazyInit instanceof D?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(le=>this.applyUpdate(le)),this.lazyUpdate=null))}copyFrom(le){le.init(),Array.from(le.headers.keys()).forEach(xe=>{this.headers.set(xe,le.headers.get(xe)),this.normalizedNames.set(xe,le.normalizedNames.get(xe))})}clone(le){const xe=new D;return xe.lazyInit=this.lazyInit&&this.lazyInit instanceof D?this.lazyInit:this,xe.lazyUpdate=(this.lazyUpdate||[]).concat([le]),xe}applyUpdate(le){const xe=le.name.toLowerCase();switch(le.op){case"a":case"s":let Ue=le.value;if("string"==typeof Ue&&(Ue=[Ue]),0===Ue.length)return;this.maybeSetNormalizedName(le.name,xe);const lt=("a"===le.op?this.headers.get(xe):void 0)||[];lt.push(...Ue),this.headers.set(xe,lt);break;case"d":const nt=le.value;if(nt){let ft=this.headers.get(xe);if(!ft)return;ft=ft.filter(it=>-1===nt.indexOf(it)),0===ft.length?(this.headers.delete(xe),this.normalizedNames.delete(xe)):this.headers.set(xe,ft)}else this.headers.delete(xe),this.normalizedNames.delete(xe)}}forEach(le){this.init(),Array.from(this.normalizedNames.keys()).forEach(xe=>le(this.normalizedNames.get(xe),this.headers.get(xe)))}}class A{encodeKey(le){return w(le)}encodeValue(le){return w(le)}decodeKey(le){return decodeURIComponent(le)}decodeValue(le){return decodeURIComponent(le)}}const E=/%(\d[a-f0-9])/gi,P={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function w($){return encodeURIComponent($).replace(E,(le,xe)=>{var Ue;return null!==(Ue=P[xe])&&void 0!==Ue?Ue:le})}function Z($){return`${$}`}class j{constructor(le={}){if(this.updates=null,this.cloneFrom=null,this.encoder=le.encoder||new A,le.fromString){if(le.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function O($,le){const xe=new Map;return $.length>0&&$.replace(/^\?/,"").split("&").forEach(lt=>{const nt=lt.indexOf("="),[ft,it]=-1==nt?[le.decodeKey(lt),""]:[le.decodeKey(lt.slice(0,nt)),le.decodeValue(lt.slice(nt+1))],rt=xe.get(ft)||[];rt.push(it),xe.set(ft,rt)}),xe}(le.fromString,this.encoder)}else le.fromObject?(this.map=new Map,Object.keys(le.fromObject).forEach(xe=>{const Ue=le.fromObject[xe];this.map.set(xe,Array.isArray(Ue)?Ue:[Ue])})):this.map=null}has(le){return this.init(),this.map.has(le)}get(le){this.init();const xe=this.map.get(le);return xe?xe[0]:null}getAll(le){return this.init(),this.map.get(le)||null}keys(){return this.init(),Array.from(this.map.keys())}append(le,xe){return this.clone({param:le,value:xe,op:"a"})}appendAll(le){const xe=[];return Object.keys(le).forEach(Ue=>{const lt=le[Ue];Array.isArray(lt)?lt.forEach(nt=>{xe.push({param:Ue,value:nt,op:"a"})}):xe.push({param:Ue,value:lt,op:"a"})}),this.clone(xe)}set(le,xe){return this.clone({param:le,value:xe,op:"s"})}delete(le,xe){return this.clone({param:le,value:xe,op:"d"})}toString(){return this.init(),this.keys().map(le=>{const xe=this.encoder.encodeKey(le);return this.map.get(le).map(Ue=>xe+"="+this.encoder.encodeValue(Ue)).join("&")}).filter(le=>""!==le).join("&")}clone(le){const xe=new j({encoder:this.encoder});return xe.cloneFrom=this.cloneFrom||this,xe.updates=(this.updates||[]).concat(le),xe}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(le=>this.map.set(le,this.cloneFrom.map.get(le))),this.updates.forEach(le=>{switch(le.op){case"a":case"s":const xe=("a"===le.op?this.map.get(le.param):void 0)||[];xe.push(Z(le.value)),this.map.set(le.param,xe);break;case"d":if(void 0===le.value){this.map.delete(le.param);break}{let Ue=this.map.get(le.param)||[];const lt=Ue.indexOf(Z(le.value));-1!==lt&&Ue.splice(lt,1),Ue.length>0?this.map.set(le.param,Ue):this.map.delete(le.param)}}}),this.cloneFrom=this.updates=null)}}class ie{constructor(){this.map=new Map}set(le,xe){return this.map.set(le,xe),this}get(le){return this.map.has(le)||this.map.set(le,le.defaultValue()),this.map.get(le)}delete(le){return this.map.delete(le),this}keys(){return this.map.keys()}}function _e($){return"undefined"!=typeof ArrayBuffer&&$ instanceof ArrayBuffer}function ce($){return"undefined"!=typeof Blob&&$ instanceof Blob}function re($){return"undefined"!=typeof FormData&&$ instanceof FormData}class oe{constructor(le,xe,Ue,lt){let nt;if(this.url=xe,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=le.toUpperCase(),function ee($){switch($){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||lt?(this.body=void 0!==Ue?Ue:null,nt=lt):nt=Ue,nt&&(this.reportProgress=!!nt.reportProgress,this.withCredentials=!!nt.withCredentials,nt.responseType&&(this.responseType=nt.responseType),nt.headers&&(this.headers=nt.headers),nt.context&&(this.context=nt.context),nt.params&&(this.params=nt.params)),this.headers||(this.headers=new D),this.context||(this.context=new ie),this.params){const ft=this.params.toString();if(0===ft.length)this.urlWithParams=xe;else{const it=xe.indexOf("?");this.urlWithParams=xe+(-1===it?"?":it<xe.length-1?"&":"")+ft}}else this.params=new j,this.urlWithParams=xe}serializeBody(){return null===this.body?null:_e(this.body)||ce(this.body)||re(this.body)||function de($){return"undefined"!=typeof URLSearchParams&&$ instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof j?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||re(this.body)?null:ce(this.body)?this.body.type||null:_e(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof j?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(le={}){var xe;const Ue=le.method||this.method,lt=le.url||this.url,nt=le.responseType||this.responseType,ft=void 0!==le.body?le.body:this.body,it=void 0!==le.withCredentials?le.withCredentials:this.withCredentials,rt=void 0!==le.reportProgress?le.reportProgress:this.reportProgress;let Mt=le.headers||this.headers,Zt=le.params||this.params;const Ft=null!==(xe=le.context)&&void 0!==xe?xe:this.context;return void 0!==le.setHeaders&&(Mt=Object.keys(le.setHeaders).reduce((Vt,Ii)=>Vt.set(Ii,le.setHeaders[Ii]),Mt)),le.setParams&&(Zt=Object.keys(le.setParams).reduce((Vt,Ii)=>Vt.set(Ii,le.setParams[Ii]),Zt)),new oe(Ue,lt,ft,{params:Zt,headers:Mt,context:Ft,reportProgress:rt,responseType:nt,withCredentials:it})}}var ae=(()=>((ae=ae||{})[ae.Sent=0]="Sent",ae[ae.UploadProgress=1]="UploadProgress",ae[ae.ResponseHeader=2]="ResponseHeader",ae[ae.DownloadProgress=3]="DownloadProgress",ae[ae.Response=4]="Response",ae[ae.User=5]="User",ae))();class b{constructor(le,xe=200,Ue="OK"){this.headers=le.headers||new D,this.status=void 0!==le.status?le.status:xe,this.statusText=le.statusText||Ue,this.url=le.url||null,this.ok=this.status>=200&&this.status<300}}class i extends b{constructor(le={}){super(le),this.type=ae.ResponseHeader}clone(le={}){return new i({headers:le.headers||this.headers,status:void 0!==le.status?le.status:this.status,statusText:le.statusText||this.statusText,url:le.url||this.url||void 0})}}class a extends b{constructor(le={}){super(le),this.type=ae.Response,this.body=void 0!==le.body?le.body:null}clone(le={}){return new a({body:void 0!==le.body?le.body:this.body,headers:le.headers||this.headers,status:void 0!==le.status?le.status:this.status,statusText:le.statusText||this.statusText,url:le.url||this.url||void 0})}}class p extends b{constructor(le){super(le,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${le.url||"(unknown url)"}`:`Http failure response for ${le.url||"(unknown url)"}: ${le.status} ${le.statusText}`,this.error=le.error||null}}function u($,le){return{body:le,headers:$.headers,context:$.context,observe:$.observe,params:$.params,reportProgress:$.reportProgress,responseType:$.responseType,withCredentials:$.withCredentials}}let _=(()=>{class ${constructor(xe){this.handler=xe}request(xe,Ue,lt={}){let nt;if(xe instanceof oe)nt=xe;else{let rt,Mt;rt=lt.headers instanceof D?lt.headers:new D(lt.headers),lt.params&&(Mt=lt.params instanceof j?lt.params:new j({fromObject:lt.params})),nt=new oe(xe,Ue,void 0!==lt.body?lt.body:null,{headers:rt,context:lt.context,params:Mt,reportProgress:lt.reportProgress,responseType:lt.responseType||"json",withCredentials:lt.withCredentials})}const ft=(0,y.of)(nt).pipe((0,o.b)(rt=>this.handler.handle(rt)));if(xe instanceof oe||"events"===lt.observe)return ft;const it=ft.pipe((0,M.h)(rt=>rt instanceof a));switch(lt.observe||"body"){case"body":switch(nt.responseType){case"arraybuffer":return it.pipe((0,l.U)(rt=>{if(null!==rt.body&&!(rt.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return rt.body}));case"blob":return it.pipe((0,l.U)(rt=>{if(null!==rt.body&&!(rt.body instanceof Blob))throw new Error("Response is not a Blob.");return rt.body}));case"text":return it.pipe((0,l.U)(rt=>{if(null!==rt.body&&"string"!=typeof rt.body)throw new Error("Response is not a string.");return rt.body}));default:return it.pipe((0,l.U)(rt=>rt.body))}case"response":return it;default:throw new Error(`Unreachable: unhandled observe type ${lt.observe}}`)}}delete(xe,Ue={}){return this.request("DELETE",xe,Ue)}get(xe,Ue={}){return this.request("GET",xe,Ue)}head(xe,Ue={}){return this.request("HEAD",xe,Ue)}jsonp(xe,Ue){return this.request("JSONP",xe,{params:(new j).append(Ue,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(xe,Ue={}){return this.request("OPTIONS",xe,Ue)}patch(xe,Ue,lt={}){return this.request("PATCH",xe,u(lt,Ue))}post(xe,Ue,lt={}){return this.request("POST",xe,u(lt,Ue))}put(xe,Ue,lt={}){return this.request("PUT",xe,u(lt,Ue))}}return $.\u0275fac=function(xe){return new(xe||$)(t.LFG(N))},$.\u0275prov=t.Yz7({token:$,factory:$.\u0275fac}),$})();class L{constructor(le,xe){this.next=le,this.interceptor=xe}handle(le){return this.interceptor.intercept(le,this.next)}}const I=new t.OlP("HTTP_INTERCEPTORS");let x=(()=>{class ${intercept(xe,Ue){return Ue.handle(xe)}}return $.\u0275fac=function(xe){return new(xe||$)},$.\u0275prov=t.Yz7({token:$,factory:$.\u0275fac}),$})();const Be=/^\)\]\}',?\n/;let Ie=(()=>{class ${constructor(xe){this.xhrFactory=xe}handle(xe){if("JSONP"===xe.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new C.y(Ue=>{const lt=this.xhrFactory.build();if(lt.open(xe.method,xe.urlWithParams),xe.withCredentials&&(lt.withCredentials=!0),xe.headers.forEach((Ii,jt)=>lt.setRequestHeader(Ii,jt.join(","))),xe.headers.has("Accept")||lt.setRequestHeader("Accept","application/json, text/plain, */*"),!xe.headers.has("Content-Type")){const Ii=xe.detectContentTypeHeader();null!==Ii&&lt.setRequestHeader("Content-Type",Ii)}if(xe.responseType){const Ii=xe.responseType.toLowerCase();lt.responseType="json"!==Ii?Ii:"text"}const nt=xe.serializeBody();let ft=null;const it=()=>{if(null!==ft)return ft;const Ii=1223===lt.status?204:lt.status,jt=lt.statusText||"OK",ei=new D(lt.getAllResponseHeaders()),Pi=function ze($){return"responseURL"in $&&$.responseURL?$.responseURL:/^X-Request-URL:/m.test($.getAllResponseHeaders())?$.getResponseHeader("X-Request-URL"):null}(lt)||xe.url;return ft=new i({headers:ei,status:Ii,statusText:jt,url:Pi}),ft},rt=()=>{let{headers:Ii,status:jt,statusText:ei,url:Pi}=it(),ai=null;204!==jt&&(ai=void 0===lt.response?lt.responseText:lt.response),0===jt&&(jt=ai?200:0);let hi=jt>=200&&jt<300;if("json"===xe.responseType&&"string"==typeof ai){const Ze=ai;ai=ai.replace(Be,"");try{ai=""!==ai?JSON.parse(ai):null}catch(Ee){ai=Ze,hi&&(hi=!1,ai={error:Ee,text:ai})}}hi?(Ue.next(new a({body:ai,headers:Ii,status:jt,statusText:ei,url:Pi||void 0})),Ue.complete()):Ue.error(new p({error:ai,headers:Ii,status:jt,statusText:ei,url:Pi||void 0}))},Mt=Ii=>{const{url:jt}=it(),ei=new p({error:Ii,status:lt.status||0,statusText:lt.statusText||"Unknown Error",url:jt||void 0});Ue.error(ei)};let Zt=!1;const Ft=Ii=>{Zt||(Ue.next(it()),Zt=!0);let jt={type:ae.DownloadProgress,loaded:Ii.loaded};Ii.lengthComputable&&(jt.total=Ii.total),"text"===xe.responseType&&!!lt.responseText&&(jt.partialText=lt.responseText),Ue.next(jt)},Vt=Ii=>{let jt={type:ae.UploadProgress,loaded:Ii.loaded};Ii.lengthComputable&&(jt.total=Ii.total),Ue.next(jt)};return lt.addEventListener("load",rt),lt.addEventListener("error",Mt),lt.addEventListener("timeout",Mt),lt.addEventListener("abort",Mt),xe.reportProgress&&(lt.addEventListener("progress",Ft),null!==nt&&lt.upload&&lt.upload.addEventListener("progress",Vt)),lt.send(nt),Ue.next({type:ae.Sent}),()=>{lt.removeEventListener("error",Mt),lt.removeEventListener("abort",Mt),lt.removeEventListener("load",rt),lt.removeEventListener("timeout",Mt),xe.reportProgress&&(lt.removeEventListener("progress",Ft),null!==nt&&lt.upload&&lt.upload.removeEventListener("progress",Vt)),lt.readyState!==lt.DONE&&lt.abort()}})}}return $.\u0275fac=function(xe){return new(xe||$)(t.LFG(e.JF))},$.\u0275prov=t.Yz7({token:$,factory:$.\u0275fac}),$})();const K=new t.OlP("XSRF_COOKIE_NAME"),Me=new t.OlP("XSRF_HEADER_NAME");class we{}let z=(()=>{class ${constructor(xe,Ue,lt){this.doc=xe,this.platform=Ue,this.cookieName=lt,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const xe=this.doc.cookie||"";return xe!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,e.Mx)(xe,this.cookieName),this.lastCookieString=xe),this.lastToken}}return $.\u0275fac=function(xe){return new(xe||$)(t.LFG(e.K0),t.LFG(t.Lbi),t.LFG(K))},$.\u0275prov=t.Yz7({token:$,factory:$.\u0275fac}),$})(),Ge=(()=>{class ${constructor(xe,Ue){this.tokenService=xe,this.headerName=Ue}intercept(xe,Ue){const lt=xe.url.toLowerCase();if("GET"===xe.method||"HEAD"===xe.method||lt.startsWith("http://")||lt.startsWith("https://"))return Ue.handle(xe);const nt=this.tokenService.getToken();return null!==nt&&!xe.headers.has(this.headerName)&&(xe=xe.clone({headers:xe.headers.set(this.headerName,nt)})),Ue.handle(xe)}}return $.\u0275fac=function(xe){return new(xe||$)(t.LFG(we),t.LFG(Me))},$.\u0275prov=t.Yz7({token:$,factory:$.\u0275fac}),$})(),vt=(()=>{class ${constructor(xe,Ue){this.backend=xe,this.injector=Ue,this.chain=null}handle(xe){if(null===this.chain){const Ue=this.injector.get(I,[]);this.chain=Ue.reduceRight((lt,nt)=>new L(lt,nt),this.backend)}return this.chain.handle(xe)}}return $.\u0275fac=function(xe){return new(xe||$)(t.LFG(s),t.LFG(t.zs3))},$.\u0275prov=t.Yz7({token:$,factory:$.\u0275fac}),$})(),he=(()=>{class ${static disable(){return{ngModule:$,providers:[{provide:Ge,useClass:x}]}}static withOptions(xe={}){return{ngModule:$,providers:[xe.cookieName?{provide:K,useValue:xe.cookieName}:[],xe.headerName?{provide:Me,useValue:xe.headerName}:[]]}}}return $.\u0275fac=function(xe){return new(xe||$)},$.\u0275mod=t.oAB({type:$}),$.\u0275inj=t.cJS({providers:[Ge,{provide:I,useExisting:Ge,multi:!0},{provide:we,useClass:z},{provide:K,useValue:"XSRF-TOKEN"},{provide:Me,useValue:"X-XSRF-TOKEN"}]}),$})(),Le=(()=>{class ${}return $.\u0275fac=function(xe){return new(xe||$)},$.\u0275mod=t.oAB({type:$}),$.\u0275inj=t.cJS({providers:[_,{provide:N,useClass:vt},Ie,{provide:s,useExisting:Ie}],imports:[[he.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),$})()},5e3:(Ve,Q,m)=>{"use strict";m.d(Q,{deG:()=>fc,tb:()=>Vm,AFp:()=>zm,ip1:()=>_p,CZH:()=>$u,hGG:()=>x5,z2F:()=>P4,sBO:()=>Qg,Sil:()=>yp,_Vd:()=>T4,EJc:()=>Ym,SBq:()=>S4,qLn:()=>Ec,vpe:()=>lc,tBr:()=>Ho,XFs:()=>he,OlP:()=>Yr,zs3:()=>Rs,ZZ4:()=>W3,aQg:()=>j3,soG:()=>G3,YKP:()=>qp,h0i:()=>Qu,PXZ:()=>Zg,R0b:()=>So,FiY:()=>zo,Lbi:()=>Zm,g9A:()=>Um,n_E:()=>B3,Qsj:()=>D8,FYo:()=>Gp,JOm:()=>os,q3G:()=>ua,PiD:()=>Bl,tp0:()=>qs,Rgc:()=>I4,dDg:()=>qm,GfV:()=>Yp,s_b:()=>z3,ifc:()=>ft,eFA:()=>Jm,Ez6:()=>Be,G48:()=>Kg,Gpc:()=>A,f3M:()=>cl,X6Q:()=>qg,_c5:()=>p5,VLi:()=>Hg,c2e:()=>Gm,zSh:()=>y2,wAp:()=>wn,vHH:()=>w,EiD:()=>Eh,mCW:()=>hl,qzn:()=>sr,JVY:()=>Wo,pB0:()=>w0,eBb:()=>xc,L6k:()=>fo,LAX:()=>jo,cg1:()=>l0,kL8:()=>Gu,yhl:()=>Na,dqk:()=>Ft,sIi:()=>zc,CqO:()=>xu,QGY:()=>H2,F4k:()=>bu,RDi:()=>ra,AaK:()=>N,z3N:()=>ya,qOj:()=>A2,TTD:()=>Jr,_Bn:()=>Up,xp6:()=>R1,uIk:()=>S2,Tol:()=>e0,Gre:()=>a0,ekj:()=>rc,Suo:()=>vm,Xpm:()=>De,lG2:()=>at,Yz7:()=>Ce,cJS:()=>ze,oAB:()=>ct,Yjl:()=>st,Y36:()=>Zc,_UZ:()=>R2,GkF:()=>vu,BQk:()=>B2,ynx:()=>F2,qZA:()=>J1,TgZ:()=>N2,EpF:()=>yu,n5z:()=>so,Ikx:()=>ih,LFG:()=>Pa,$8M:()=>t1,$Z:()=>_u,NdJ:()=>X1,CRH:()=>ym,kcU:()=>kn,O4$:()=>on,oxw:()=>U2,ALo:()=>om,lcZ:()=>lm,xi3:()=>cm,Dn7:()=>hm,Hsn:()=>Mu,F$t:()=>Cu,Q6J:()=>k2,s9C:()=>Vc,MGl:()=>yr,DdM:()=>Xp,VKq:()=>$p,WLB:()=>em,kEZ:()=>tm,iGM:()=>gm,MAs:()=>au,Jf7:()=>Hh,CHM:()=>zs,oJD:()=>T0,LSH:()=>S0,kYT:()=>Pe,Udp:()=>wl,WFA:()=>z2,d8E:()=>Zu,YNc:()=>ru,W1O:()=>Mm,_uU:()=>X2,Oqu:()=>Kr,hij:()=>Al,AsE:()=>$s,lnq:()=>Iu,HOy:()=>$2,Gf:()=>_m});var e=m(7579),t=m(727),y=m(8306),C=m(6451),o=m(3099);function M(c){for(let h in c)if(c[h]===M)return h;throw Error("Could not find renamed property on target object.")}function l(c,h){for(const g in h)h.hasOwnProperty(g)&&!c.hasOwnProperty(g)&&(c[g]=h[g])}function N(c){if("string"==typeof c)return c;if(Array.isArray(c))return"["+c.map(N).join(", ")+"]";if(null==c)return""+c;if(c.overriddenName)return`${c.overriddenName}`;if(c.name)return`${c.name}`;const h=c.toString();if(null==h)return""+h;const g=h.indexOf("\n");return-1===g?h:h.substring(0,g)}function s(c,h){return null==c||""===c?null===h?"":h:null==h||""===h?c:c+" "+h}const D=M({__forward_ref__:M});function A(c){return c.__forward_ref__=A,c.toString=function(){return N(this())},c}function O(c){return E(c)?c():c}function E(c){return"function"==typeof c&&c.hasOwnProperty(D)&&c.__forward_ref__===A}class w extends Error{constructor(h,g){super(function j(c,h){return`${c?`NG0${c}: `:""}${h}`}(h,g)),this.code=h}}function W(c){return"string"==typeof c?c:null==c?"":String(c)}function ie(c){return"function"==typeof c?c.name||c.toString():"object"==typeof c&&null!=c&&"function"==typeof c.type?c.type.name||c.type.toString():W(c)}function re(c,h){const g=h?` in ${h}`:"";throw new w("201",`No provider for ${ie(c)} found${g}`)}function v(c,h){null==c&&function G(c,h,g,S){throw new Error(`ASSERTION ERROR: ${c}`+(null==S?"":` [Expected=> ${g} ${S} ${h} <=Actual]`))}(h,c,null,"!=")}function Ce(c){return{token:c.token,providedIn:c.providedIn||null,factory:c.factory,value:void 0}}const Be=Ce;function ze(c){return{providers:c.providers||[],imports:c.imports||[]}}function Ie(c){return K(c,Ge)||K(c,Re)}function K(c,h){return c.hasOwnProperty(h)?c[h]:null}function z(c){return c&&(c.hasOwnProperty(vt)||c.hasOwnProperty(Ne))?c[vt]:null}const Ge=M({\u0275prov:M}),vt=M({\u0275inj:M}),Re=M({ngInjectableDef:M}),Ne=M({ngInjectorDef:M});var he=(()=>((he=he||{})[he.Default=0]="Default",he[he.Host=1]="Host",he[he.Self=2]="Self",he[he.SkipSelf=4]="SkipSelf",he[he.Optional=8]="Optional",he))();let Le;function q(c){const h=Le;return Le=c,h}function $(c,h,g){const S=Ie(c);return S&&"root"==S.providedIn?void 0===S.value?S.value=S.factory():S.value:g&he.Optional?null:void 0!==h?h:void re(N(c),"Injector")}function xe(c){return{toString:c}.toString()}var Ue=(()=>((Ue=Ue||{})[Ue.OnPush=0]="OnPush",Ue[Ue.Default=1]="Default",Ue))(),ft=(()=>{return(c=ft||(ft={}))[c.Emulated=0]="Emulated",c[c.None=2]="None",c[c.ShadowDom=3]="ShadowDom",ft;var c})();const it="undefined"!=typeof globalThis&&globalThis,rt="undefined"!=typeof window&&window,Mt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Ft=it||"undefined"!=typeof global&&global||rt||Mt,jt={},ei=[],Pi=M({\u0275cmp:M}),ai=M({\u0275dir:M}),hi=M({\u0275pipe:M}),Ze=M({\u0275mod:M}),Ee=M({\u0275fac:M}),Y=M({__NG_ELEMENT_ID__:M});let me=0;function De(c){return xe(()=>{const g={},S={type:c.type,providersResolver:null,decls:c.decls,vars:c.vars,factory:null,template:c.template||null,consts:c.consts||null,ngContentSelectors:c.ngContentSelectors,hostBindings:c.hostBindings||null,hostVars:c.hostVars||0,hostAttrs:c.hostAttrs||null,contentQueries:c.contentQueries||null,declaredInputs:g,inputs:null,outputs:null,exportAs:c.exportAs||null,onPush:c.changeDetection===Ue.OnPush,directiveDefs:null,pipeDefs:null,selectors:c.selectors||ei,viewQuery:c.viewQuery||null,features:c.features||null,data:c.data||{},encapsulation:c.encapsulation||ft.Emulated,id:"c",styles:c.styles||ei,_:null,setInput:null,schemas:c.schemas||null,tView:null},R=c.directives,V=c.features,pe=c.pipes;return S.id+=me++,S.inputs=Fe(c.inputs,g),S.outputs=Fe(c.outputs),V&&V.forEach(Oe=>Oe(S)),S.directiveDefs=R?()=>("function"==typeof R?R():R).map($t):null,S.pipeDefs=pe?()=>("function"==typeof pe?pe():pe).map(Nt):null,S})}function $t(c){return At(c)||function li(c){return c[ai]||null}(c)}function Nt(c){return function Bt(c){return c[hi]||null}(c)}const Jt={};function ct(c){return xe(()=>{const h={type:c.type,bootstrap:c.bootstrap||ei,declarations:c.declarations||ei,imports:c.imports||ei,exports:c.exports||ei,transitiveCompileScopes:null,schemas:c.schemas||null,id:c.id||null};return null!=c.id&&(Jt[c.id]=c.type),h})}function Pe(c,h){return xe(()=>{const g=Rt(c,!0);g.declarations=h.declarations||ei,g.imports=h.imports||ei,g.exports=h.exports||ei})}function Fe(c,h){if(null==c)return jt;const g={};for(const S in c)if(c.hasOwnProperty(S)){let R=c[S],V=R;Array.isArray(R)&&(V=R[1],R=R[0]),g[R]=S,h&&(h[R]=V)}return g}const at=De;function st(c){return{type:c.type,name:c.name,factory:null,pure:!1!==c.pure,onDestroy:c.type.prototype.ngOnDestroy||null}}function At(c){return c[Pi]||null}function Rt(c,h){const g=c[Ze]||null;if(!g&&!0===h)throw new Error(`Type ${N(c)} does not have '\u0275mod' property.`);return g}function _n(c){return Array.isArray(c)&&"object"==typeof c[1]}function Pn(c){return Array.isArray(c)&&!0===c[1]}function dr(c){return 0!=(8&c.flags)}function wi(c){return 2==(2&c.flags)}function Fi(c){return 1==(1&c.flags)}function dn(c){return null!==c.template}function Lr(c){return 0!=(512&c[2])}function Pr(c,h){return c.hasOwnProperty(Ee)?c[Ee]:null}class la{constructor(h,g,S){this.previousValue=h,this.currentValue=g,this.firstChange=S}isFirstChange(){return this.firstChange}}function Jr(){return ga}function ga(c){return c.type.prototype.ngOnChanges&&(c.setInput=wa),$n}function $n(){const c=ca(this),h=null==c?void 0:c.current;if(h){const g=c.previous;if(g===jt)c.previous=h;else for(let S in h)g[S]=h[S];c.current=null,this.ngOnChanges(h)}}function wa(c,h,g,S){const R=ca(c)||function Aa(c,h){return c[Nr]=h}(c,{previous:jt,current:null}),V=R.current||(R.current={}),pe=R.previous,Oe=this.declaredInputs[g],We=pe[Oe];V[Oe]=new la(We&&We.currentValue,h,pe===jt),c[S]=h}Jr.ngInherit=!0;const Nr="__ngSimpleChanges__";function ca(c){return c[Nr]||null}const Sr="http://www.w3.org/2000/svg";let Oa;function ra(c){Oa=c}function Gr(){return void 0!==Oa?Oa:"undefined"!=typeof document?document:void 0}function Zn(c){return!!c.listen}const ns={createRenderer:(c,h)=>Gr()};function Xe(c){for(;Array.isArray(c);)c=c[0];return c}function ne(c,h){return Xe(h[c])}function Qe(c,h){return Xe(h[c.index])}function mi(c,h){return c.data[h]}function Ct(c,h){return c[h]}function ti(c,h){const g=h[c];return _n(g)?g:g[0]}function bt(c){return 4==(4&c[2])}function Yt(c){return 128==(128&c[2])}function Bi(c,h){return null==h?null:c[h]}function yn(c){c[18]=0}function An(c,h){c[5]+=h;let g=c,S=c[3];for(;null!==S&&(1===h&&1===g[5]||-1===h&&0===g[5]);)S[5]+=h,g=S,S=S[3]}const Wi={lFrame:gn(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Mr(){return Wi.bindingsEnabled}function ki(){return Wi.lFrame.lView}function Nn(){return Wi.lFrame.tView}function zs(c){return Wi.lFrame.contextLView=c,c[8]}function fr(){let c=Us();for(;null!==c&&64===c.type;)c=c.parent;return c}function Us(){return Wi.lFrame.currentTNode}function xt(c,h){const g=Wi.lFrame;g.currentTNode=c,g.isParent=h}function te(){return Wi.lFrame.isParent}function ue(){Wi.lFrame.isParent=!1}function kt(){return Wi.isInCheckNoChangesMode}function Qt(c){Wi.isInCheckNoChangesMode=c}function Xt(){const c=Wi.lFrame;let h=c.bindingRootIndex;return-1===h&&(h=c.bindingRootIndex=c.tView.bindingStartIndex),h}function pi(){return Wi.lFrame.bindingIndex}function Zi(){return Wi.lFrame.bindingIndex++}function tn(c){const h=Wi.lFrame,g=h.bindingIndex;return h.bindingIndex=h.bindingIndex+c,g}function tt(c,h){const g=Wi.lFrame;g.bindingIndex=g.bindingRootIndex=c,It(h)}function It(c){Wi.lFrame.currentDirectiveIndex=c}function zt(c){const h=Wi.lFrame.currentDirectiveIndex;return-1===h?null:c[h]}function ri(){return Wi.lFrame.currentQueryIndex}function vi(c){Wi.lFrame.currentQueryIndex=c}function Mi(c){const h=c[1];return 2===h.type?h.declTNode:1===h.type?c[6]:null}function Ai(c,h,g){if(g&he.SkipSelf){let R=h,V=c;for(;!(R=R.parent,null!==R||g&he.Host||(R=Mi(V),null===R||(V=V[15],10&R.type))););if(null===R)return!1;h=R,c=V}const S=Wi.lFrame=un();return S.currentTNode=h,S.lView=c,!0}function Ki(c){const h=un(),g=c[1];Wi.lFrame=h,h.currentTNode=g.firstChild,h.lView=c,h.tView=g,h.contextLView=c,h.bindingIndex=g.bindingStartIndex,h.inI18n=!1}function un(){const c=Wi.lFrame,h=null===c?null:c.child;return null===h?gn(c):h}function gn(c){const h={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:c,child:null,inI18n:!1};return null!==c&&(c.child=h),h}function En(){const c=Wi.lFrame;return Wi.lFrame=c.parent,c.currentTNode=null,c.lView=null,c}const zn=En;function Rr(){const c=En();c.isParent=!0,c.tView=null,c.selectedIndex=-1,c.contextLView=null,c.elementDepthCount=0,c.currentDirectiveIndex=-1,c.currentNamespace=null,c.bindingRootIndex=-1,c.bindingIndex=-1,c.currentQueryIndex=0}function Vn(){return Wi.lFrame.selectedIndex}function mr(c){Wi.lFrame.selectedIndex=c}function Hi(){const c=Wi.lFrame;return mi(c.tView,c.selectedIndex)}function on(){Wi.lFrame.currentNamespace=Sr}function kn(){!function jn(){Wi.lFrame.currentNamespace=null}()}function $r(c,h){for(let g=h.directiveStart,S=h.directiveEnd;g<S;g++){const V=c.data[g].type.prototype,{ngAfterContentInit:pe,ngAfterContentChecked:Oe,ngAfterViewInit:We,ngAfterViewChecked:ut,ngOnDestroy:Tt}=V;pe&&(c.contentHooks||(c.contentHooks=[])).push(-g,pe),Oe&&((c.contentHooks||(c.contentHooks=[])).push(g,Oe),(c.contentCheckHooks||(c.contentCheckHooks=[])).push(g,Oe)),We&&(c.viewHooks||(c.viewHooks=[])).push(-g,We),ut&&((c.viewHooks||(c.viewHooks=[])).push(g,ut),(c.viewCheckHooks||(c.viewCheckHooks=[])).push(g,ut)),null!=Tt&&(c.destroyHooks||(c.destroyHooks=[])).push(g,Tt)}}function Yn(c,h,g){ks(c,h,3,g)}function io(c,h,g,S){(3&c[2])===g&&ks(c,h,g,S)}function Ia(c,h){let g=c[2];(3&g)===h&&(g&=2047,g+=1,c[2]=g)}function ks(c,h,g,S){const V=null!=S?S:-1,pe=h.length-1;let Oe=0;for(let We=void 0!==S?65535&c[18]:0;We<pe;We++)if("number"==typeof h[We+1]){if(Oe=h[We],null!=S&&Oe>=S)break}else h[We]<0&&(c[18]+=65536),(Oe<V||-1==V)&&(Zs(c,g,h,We),c[18]=(4294901760&c[18])+We+2),We++}function Zs(c,h,g,S){const R=g[S]<0,V=g[S+1],Oe=c[R?-g[S]:g[S]];if(R){if(c[2]>>11<c[18]>>16&&(3&c[2])===h){c[2]+=2048;try{V.call(Oe)}finally{}}}else try{V.call(Oe)}finally{}}class us{constructor(h,g,S){this.factory=h,this.resolving=!1,this.canSeeViewProviders=g,this.injectImpl=S}}function Lo(c,h,g){const S=Zn(c);let R=0;for(;R<g.length;){const V=g[R];if("number"==typeof V){if(0!==V)break;R++;const pe=g[R++],Oe=g[R++],We=g[R++];S?c.setAttribute(h,Oe,We,pe):h.setAttributeNS(pe,Oe,We)}else{const pe=V,Oe=g[++R];nl(pe)?S&&c.setProperty(h,pe,Oe):S?c.setAttribute(h,pe,Oe):h.setAttribute(pe,Oe),R++}}return R}function il(c){return 3===c||4===c||6===c}function nl(c){return 64===c.charCodeAt(0)}function Oo(c,h){if(null!==h&&0!==h.length)if(null===c||0===c.length)c=h.slice();else{let g=-1;for(let S=0;S<h.length;S++){const R=h[S];"number"==typeof R?g=R:0===g||Ll(c,g,R,null,-1===g||2===g?h[++S]:null)}}return c}function Ll(c,h,g,S,R){let V=0,pe=c.length;if(-1===h)pe=-1;else for(;V<c.length;){const Oe=c[V++];if("number"==typeof Oe){if(Oe===h){pe=-1;break}if(Oe>h){pe=V-1;break}}}for(;V<c.length;){const Oe=c[V];if("number"==typeof Oe)break;if(Oe===g){if(null===S)return void(null!==R&&(c[V+1]=R));if(S===c[V+1])return void(c[V+2]=R)}V++,null!==S&&V++,null!==R&&V++}-1!==pe&&(c.splice(pe,0,h),V=pe+1),c.splice(V++,0,g),null!==S&&c.splice(V++,0,S),null!==R&&c.splice(V++,0,R)}function Io(c){return-1!==c}function ro(c){return 32767&c}function Gs(c,h){let g=function dc(c){return c>>16}(c),S=h;for(;g>0;)S=S[15],g--;return S}let rl=!0;function al(c){const h=rl;return rl=c,h}let $e=0;function Ot(c,h){const g=ii(c,h);if(-1!==g)return g;const S=h[1];S.firstCreatePass&&(c.injectorIndex=h.length,qt(S.data,c),qt(h,null),qt(S.blueprint,null));const R=Ei(c,h),V=c.injectorIndex;if(Io(R)){const pe=ro(R),Oe=Gs(R,h),We=Oe[1].data;for(let ut=0;ut<8;ut++)h[V+ut]=Oe[pe+ut]|We[pe+ut]}return h[V+8]=R,V}function qt(c,h){c.push(0,0,0,0,0,0,0,0,h)}function ii(c,h){return-1===c.injectorIndex||c.parent&&c.parent.injectorIndex===c.injectorIndex||null===h[c.injectorIndex+8]?-1:c.injectorIndex}function Ei(c,h){if(c.parent&&-1!==c.parent.injectorIndex)return c.parent.injectorIndex;let g=0,S=null,R=h;for(;null!==R;){const V=R[1],pe=V.type;if(S=2===pe?V.declTNode:1===pe?R[6]:null,null===S)return-1;if(g++,R=R[15],-1!==S.injectorIndex)return S.injectorIndex|g<<16}return-1}function an(c,h,g){!function dt(c,h,g){let S;"string"==typeof g?S=g.charCodeAt(0)||0:g.hasOwnProperty(Y)&&(S=g[Y]),null==S&&(S=g[Y]=$e++);const R=255&S;h.data[c+(R>>5)]|=1<<R}(c,h,g)}function xn(c,h,g){if(g&he.Optional)return c;re(h,"NodeInjector")}function er(c,h,g,S){if(g&he.Optional&&void 0===S&&(S=null),0==(g&(he.Self|he.Host))){const R=c[9],V=q(void 0);try{return R?R.get(h,S,g&he.Optional):$(h,S,g&he.Optional)}finally{q(V)}}return xn(S,h,g)}function ar(c,h,g,S=he.Default,R){if(null!==c){const V=function bs(c){if("string"==typeof c)return c.charCodeAt(0)||0;const h=c.hasOwnProperty(Y)?c[Y]:void 0;return"number"==typeof h?h>=0?255&h:ea:h}(g);if("function"==typeof V){if(!Ai(h,c,S))return S&he.Host?xn(R,g,S):er(h,g,S,R);try{const pe=V(S);if(null!=pe||S&he.Optional)return pe;re(g)}finally{zn()}}else if("number"==typeof V){let pe=null,Oe=ii(c,h),We=-1,ut=S&he.Host?h[16][6]:null;for((-1===Oe||S&he.SkipSelf)&&(We=-1===Oe?Ei(c,h):h[Oe+8],-1!==We&&Ol(S,!1)?(pe=h[1],Oe=ro(We),h=Gs(We,h)):Oe=-1);-1!==Oe;){const Tt=h[1];if(Ea(V,Oe,Tt.data)){const Gt=ys(Oe,h,g,pe,S,ut);if(Gt!==ao)return Gt}We=h[Oe+8],-1!==We&&Ol(S,h[1].data[Oe+8]===ut)&&Ea(V,Oe,h)?(pe=Tt,Oe=ro(We),h=Gs(We,h)):Oe=-1}}}return er(h,g,S,R)}const ao={};function ea(){return new yo(fr(),ki())}function ys(c,h,g,S,R,V){const pe=h[1],Oe=pe.data[c+8],Tt=fs(Oe,pe,g,null==S?wi(Oe)&&rl:S!=pe&&0!=(3&Oe.type),R&he.Host&&V===Oe);return null!==Tt?Ps(h,pe,Tt,Oe):ao}function fs(c,h,g,S,R){const V=c.providerIndexes,pe=h.data,Oe=1048575&V,We=c.directiveStart,Tt=V>>20,oi=R?Oe+Tt:c.directiveEnd;for(let gi=S?Oe:Oe+Tt;gi<oi;gi++){const Oi=pe[gi];if(gi<We&&g===Oi||gi>=We&&Oi.type===g)return gi}if(R){const gi=pe[We];if(gi&&dn(gi)&&gi.type===g)return We}return null}function Ps(c,h,g,S){let R=c[g];const V=h.data;if(function Jc(c){return c instanceof us}(R)){const pe=R;pe.resolving&&function ee(c,h){const g=h?`. Dependency path: ${h.join(" > ")} > ${c}`:"";throw new w("200",`Circular dependency in DI detected for ${c}${g}`)}(ie(V[g]));const Oe=al(pe.canSeeViewProviders);pe.resolving=!0;const We=pe.injectImpl?q(pe.injectImpl):null;Ai(c,S,he.Default);try{R=c[g]=pe.factory(void 0,V,c,S),h.firstCreatePass&&g>=S.directiveStart&&function Xr(c,h,g){const{ngOnChanges:S,ngOnInit:R,ngDoCheck:V}=h.type.prototype;if(S){const pe=ga(h);(g.preOrderHooks||(g.preOrderHooks=[])).push(c,pe),(g.preOrderCheckHooks||(g.preOrderCheckHooks=[])).push(c,pe)}R&&(g.preOrderHooks||(g.preOrderHooks=[])).push(0-c,R),V&&((g.preOrderHooks||(g.preOrderHooks=[])).push(c,V),(g.preOrderCheckHooks||(g.preOrderCheckHooks=[])).push(c,V))}(g,V[g],h)}finally{null!==We&&q(We),al(Oe),pe.resolving=!1,zn()}}return R}function Ea(c,h,g){return!!(g[h+(c>>5)]&1<<c)}function Ol(c,h){return!(c&he.Self||c&he.Host&&h)}class yo{constructor(h,g){this._tNode=h,this._lView=g}get(h,g,S){return ar(this._tNode,this._lView,h,S,g)}}function so(c){return xe(()=>{const h=c.prototype.constructor,g=h[Ee]||e1(h),S=Object.prototype;let R=Object.getPrototypeOf(c.prototype).constructor;for(;R&&R!==S;){const V=R[Ee]||e1(R);if(V&&V!==g)return V;R=Object.getPrototypeOf(R)}return V=>new V})}function e1(c){return E(c)?()=>{const h=e1(O(c));return h&&h()}:Pr(c)}function t1(c){return function Wn(c,h){if("class"===h)return c.classes;if("style"===h)return c.styles;const g=c.attrs;if(g){const S=g.length;let R=0;for(;R<S;){const V=g[R];if(il(V))break;if(0===V)R+=2;else if("number"==typeof V)for(R++;R<S&&"string"==typeof g[R];)R++;else{if(V===h)return g[R+1];R+=2}}}return null}(fr(),c)}const Po="__parameters__";function bo(c,h,g){return xe(()=>{const S=function uc(c){return function(...g){if(c){const S=c(...g);for(const R in S)this[R]=S[R]}}}(h);function R(...V){if(this instanceof R)return S.apply(this,V),this;const pe=new R(...V);return Oe.annotation=pe,Oe;function Oe(We,ut,Tt){const Gt=We.hasOwnProperty(Po)?We[Po]:Object.defineProperty(We,Po,{value:[]})[Po];for(;Gt.length<=Tt;)Gt.push(null);return(Gt[Tt]=Gt[Tt]||[]).push(pe),We}}return g&&(R.prototype=Object.create(g.prototype)),R.prototype.ngMetadataName=c,R.annotationCls=R,R})}class Yr{constructor(h,g){this._desc=h,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof g?this.__NG_ELEMENT_ID__=g:void 0!==g&&(this.\u0275prov=Ce({token:this,providedIn:g.providedIn||"root",factory:g.factory}))}toString(){return`InjectionToken ${this._desc}`}}const fc=new Yr("AnalyzeForEntryComponents");function ps(c,h){void 0===h&&(h=c);for(let g=0;g<c.length;g++){let S=c[g];Array.isArray(S)?(h===c&&(h=c.slice(0,g)),ps(S,h)):h!==c&&h.push(S)}return h}function xs(c,h){c.forEach(g=>Array.isArray(g)?xs(g,h):h(g))}function s1(c,h,g){h>=c.length?c.push(g):c.splice(h,0,g)}function Il(c,h){return h>=c.length-1?c.pop():c.splice(h,1)[0]}function Ws(c,h){const g=[];for(let S=0;S<c;S++)g.push(h);return g}function Ka(c,h,g){let S=as(c,h);return S>=0?c[1|S]=g:(S=~S,function m0(c,h,g,S){let R=c.length;if(R==h)c.push(g,S);else if(1===R)c.push(S,c[0]),c[0]=g;else{for(R--,c.push(c[R-1],c[R]);R>h;)c[R]=c[R-2],R--;c[h]=g,c[h+1]=S}}(c,S,h,g)),S}function Pl(c,h){const g=as(c,h);if(g>=0)return c[1|g]}function as(c,h){return function Nl(c,h,g){let S=0,R=c.length>>g;for(;R!==S;){const V=S+(R-S>>1),pe=c[V<<g];if(h===pe)return V<<g;pe>h?R=V:S=V+1}return~(R<<g)}(c,h,1)}const za={},Cs="__NG_DI_FLAG__",Ns="ngTempTokenPath",h1=/\n/gm,Fl="__source",yc=M({provide:String,useValue:M});let ta;function ll(c){const h=ta;return ta=c,h}function v0(c,h=he.Default){if(void 0===ta)throw new Error("inject() must be called from an injection context");return null===ta?$(c,void 0,h):ta.get(c,h&he.Optional?null:void 0,h)}function Pa(c,h=he.Default){return(function ke(){return Le}()||v0)(O(c),h)}const cl=Pa;function d1(c){const h=[];for(let g=0;g<c.length;g++){const S=O(c[g]);if(Array.isArray(S)){if(0===S.length)throw new Error("Arguments array must have arguments.");let R,V=he.Default;for(let pe=0;pe<S.length;pe++){const Oe=S[pe],We=u1(Oe);"number"==typeof We?-1===We?R=Oe.token:V|=We:R=Oe}h.push(Pa(R,V))}else h.push(Pa(S))}return h}function Bo(c,h){return c[Cs]=h,c.prototype[Cs]=h,c}function u1(c){return c[Cs]}const Ho=Bo(bo("Inject",c=>({token:c})),-1),zo=Bo(bo("Optional"),8),Bl=Bo(bo("Self"),2),qs=Bo(bo("SkipSelf"),4);let Yo,Hl;function ho(c){var h;return(null===(h=function g1(){if(void 0===Yo&&(Yo=null,Ft.trustedTypes))try{Yo=Ft.trustedTypes.createPolicy("angular",{createHTML:c=>c,createScript:c=>c,createScriptURL:c=>c})}catch(c){}return Yo}())||void 0===h?void 0:h.createHTML(c))||c}function He(c){var h;return(null===(h=function X(){if(void 0===Hl&&(Hl=null,Ft.trustedTypes))try{Hl=Ft.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:c=>c,createScript:c=>c,createScriptURL:c=>c})}catch(c){}return Hl}())||void 0===h?void 0:h.createHTML(c))||c}class pt{constructor(h){this.changingThisBreaksApplicationSecurity=h}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class fi extends pt{getTypeName(){return"HTML"}}class In extends pt{getTypeName(){return"Style"}}class tr extends pt{getTypeName(){return"Script"}}class Fn extends pt{getTypeName(){return"URL"}}class Br extends pt{getTypeName(){return"ResourceURL"}}function ya(c){return c instanceof pt?c.changingThisBreaksApplicationSecurity:c}function sr(c,h){const g=Na(c);if(null!=g&&g!==h){if("ResourceURL"===g&&"URL"===h)return!0;throw new Error(`Required a safe ${h}, got a ${g} (see https://g.co/ng/security#xss)`)}return g===h}function Na(c){return c instanceof pt&&c.getTypeName()||null}function Wo(c){return new fi(c)}function fo(c){return new In(c)}function xc(c){return new tr(c)}function jo(c){return new Fn(c)}function w0(c){return new Br(c)}class N4{constructor(h){this.inertDocumentHelper=h}getInertBodyElement(h){h="<body><remove></remove>"+h;try{const g=(new window.DOMParser).parseFromString(ho(h),"text/html").body;return null===g?this.inertDocumentHelper.getInertBodyElement(h):(g.removeChild(g.firstChild),g)}catch(g){return null}}}class R4{constructor(h){if(this.defaultDoc=h,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const g=this.inertDocument.createElement("html");this.inertDocument.appendChild(g);const S=this.inertDocument.createElement("body");g.appendChild(S)}}getInertBodyElement(h){const g=this.inertDocument.createElement("template");if("content"in g)return g.innerHTML=ho(h),g;const S=this.inertDocument.createElement("body");return S.innerHTML=ho(h),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(S),S}stripCustomNsAttrs(h){const g=h.attributes;for(let R=g.length-1;0<R;R--){const pe=g.item(R).name;("xmlns:ns1"===pe||0===pe.indexOf("ns1:"))&&h.removeAttribute(pe)}let S=h.firstChild;for(;S;)S.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(S),S=S.nextSibling}}const bh=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,H4=/^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 hl(c){return(c=String(c)).match(bh)||c.match(H4)?c:"unsafe:"+c}function Co(c){const h={};for(const g of c.split(","))h[g]=!0;return h}function zl(...c){const h={};for(const g of c)for(const S in g)g.hasOwnProperty(S)&&(h[S]=!0);return h}const tf=Co("area,br,col,hr,img,wbr"),nf=Co("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),xh=Co("rp,rt"),ul=zl(tf,zl(nf,Co("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")),zl(xh,Co("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")),zl(xh,nf)),A0=Co("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),v1=Co("srcset"),wh=zl(A0,v1,Co("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"),Co("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")),or=Co("script,style,template");class rf{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(h){let g=h.firstChild,S=!0;for(;g;)if(g.nodeType===Node.ELEMENT_NODE?S=this.startElement(g):g.nodeType===Node.TEXT_NODE?this.chars(g.nodeValue):this.sanitizedSomething=!0,S&&g.firstChild)g=g.firstChild;else for(;g;){g.nodeType===Node.ELEMENT_NODE&&this.endElement(g);let R=this.checkClobberedElement(g,g.nextSibling);if(R){g=R;break}g=this.checkClobberedElement(g,g.parentNode)}return this.buf.join("")}startElement(h){const g=h.nodeName.toLowerCase();if(!ul.hasOwnProperty(g))return this.sanitizedSomething=!0,!or.hasOwnProperty(g);this.buf.push("<"),this.buf.push(g);const S=h.attributes;for(let R=0;R<S.length;R++){const V=S.item(R),pe=V.name,Oe=pe.toLowerCase();if(!wh.hasOwnProperty(Oe)){this.sanitizedSomething=!0;continue}let We=V.value;A0[Oe]&&(We=hl(We)),v1[Oe]&&(c=We,We=(c=String(c)).split(",").map(h=>hl(h.trim())).join(", ")),this.buf.push(" ",pe,'="',Ah(We),'"')}var c;return this.buf.push(">"),!0}endElement(h){const g=h.nodeName.toLowerCase();ul.hasOwnProperty(g)&&!tf.hasOwnProperty(g)&&(this.buf.push("</"),this.buf.push(g),this.buf.push(">"))}chars(h){this.buf.push(Ah(h))}checkClobberedElement(h,g){if(g&&(h.compareDocumentPosition(g)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${h.outerHTML}`);return g}}const Cc=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Mc=/([^\#-~ |!])/g;function Ah(c){return c.replace(/&/g,"&amp;").replace(Cc,function(h){return"&#"+(1024*(h.charCodeAt(0)-55296)+(h.charCodeAt(1)-56320)+65536)+";"}).replace(Mc,function(h){return"&#"+h.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let y1;function Eh(c,h){let g=null;try{y1=y1||function ef(c){const h=new R4(c);return function F4(){try{return!!(new window.DOMParser).parseFromString(ho(""),"text/html")}catch(c){return!1}}()?new N4(h):h}(c);let S=h?String(h):"";g=y1.getInertBodyElement(S);let R=5,V=S;do{if(0===R)throw new Error("Failed to sanitize html because the input is unstable");R--,S=V,V=g.innerHTML,g=y1.getInertBodyElement(S)}while(S!==V);return ho((new rf).sanitizeChildren(E0(g)||g))}finally{if(g){const S=E0(g)||g;for(;S.firstChild;)S.removeChild(S.firstChild)}}}function E0(c){return"content"in c&&function af(c){return c.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===c.nodeName}(c)?c.content:null}var ua=(()=>((ua=ua||{})[ua.NONE=0]="NONE",ua[ua.HTML=1]="HTML",ua[ua.STYLE=2]="STYLE",ua[ua.SCRIPT=3]="SCRIPT",ua[ua.URL=4]="URL",ua[ua.RESOURCE_URL=5]="RESOURCE_URL",ua))();function T0(c){const h=wc();return h?He(h.sanitize(ua.HTML,c)||""):sr(c,"HTML")?He(ya(c)):Eh(Gr(),W(c))}function S0(c){const h=wc();return h?h.sanitize(ua.URL,c)||"":sr(c,"URL")?ya(c):hl(W(c))}function wc(){const c=ki();return c&&c[12]}const Lh="__ngContext__";function ss(c,h){c[Lh]=h}function b1(c){const h=function Ac(c){return c[Lh]||null}(c);return h?Array.isArray(h)?h:h.lView:null}function k0(c){return c.ngOriginalError}function yf(c,...h){c.error(...h)}class Ec{constructor(){this._console=console}handleError(h){const g=this._findOriginalError(h),S=function Ph(c){return c&&c.ngErrorLogger||yf}(h);S(this._console,"ERROR",h),g&&S(this._console,"ORIGINAL ERROR",g)}_findOriginalError(h){let g=h&&k0(h);for(;g&&k0(g);)g=k0(g);return g||null}}const Bh=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Ft))();function Hh(c){return c.ownerDocument.defaultView}function po(c){return c instanceof Function?c():c}var os=(()=>((os=os||{})[os.Important=1]="Important",os[os.DashCase=2]="DashCase",os))();function C1(c,h){return undefined(c,h)}function Tc(c){const h=c[3];return Pn(h)?h[3]:h}function M1(c){return If(c[13])}function R0(c){return If(c[4])}function If(c){for(;null!==c&&!Pn(c);)c=c[4];return c}function fl(c,h,g,S,R){if(null!=S){let V,pe=!1;Pn(S)?V=S:_n(S)&&(pe=!0,S=S[0]);const Oe=Xe(S);0===c&&null!==g?null==R?z0(h,g,Oe):Ms(h,g,Oe,R||null,!0):1===c&&null!==g?Ms(h,g,Oe,R||null,!0):2===c?function G0(c,h,g){const S=T1(c,h);S&&function E1(c,h,g,S){Zn(c)?c.removeChild(h,g,S):h.removeChild(g)}(c,S,h,g)}(h,Oe,pe):3===c&&h.destroyNode(Oe),null!=V&&function Y0(c,h,g,S,R){const V=g[7];V!==Xe(g)&&fl(h,c,S,V,R);for(let Oe=10;Oe<g.length;Oe++){const We=g[Oe];Vl(We[1],We,c,h,S,V)}}(h,c,V,g,R)}}function w1(c,h,g){return Zn(c)?c.createElement(h,g):null===g?c.createElement(h):c.createElementNS(g,h)}function Gh(c,h){const g=c[9],S=g.indexOf(h),R=h[3];1024&h[2]&&(h[2]&=-1025,An(R,-1)),g.splice(S,1)}function A1(c,h){if(c.length<=10)return;const g=10+h,S=c[g];if(S){const R=S[17];null!==R&&R!==c&&Gh(R,S),h>0&&(c[g-1][4]=S[4]);const V=Il(c,10+h);!function Zl(c,h){Vl(c,h,h[11],2,null,null),h[0]=null,h[6]=null}(S[1],S);const pe=V[19];null!==pe&&pe.detachView(V[1]),S[3]=null,S[4]=null,S[2]&=-129}return S}function pl(c,h){if(!(256&h[2])){const g=h[11];Zn(g)&&g.destroyNode&&Vl(c,h,g,3,null,null),function Nf(c){let h=c[13];if(!h)return Yh(c[1],c);for(;h;){let g=null;if(_n(h))g=h[13];else{const S=h[10];S&&(g=S)}if(!g){for(;h&&!h[4]&&h!==c;)_n(h)&&Yh(h[1],h),h=h[3];null===h&&(h=c),_n(h)&&Yh(h[1],h),g=h&&h[4]}h=g}}(h)}}function Yh(c,h){if(!(256&h[2])){h[2]&=-129,h[2]|=256,function Bf(c,h){let g;if(null!=c&&null!=(g=c.destroyHooks))for(let S=0;S<g.length;S+=2){const R=h[g[S]];if(!(R instanceof us)){const V=g[S+1];if(Array.isArray(V))for(let pe=0;pe<V.length;pe+=2){const Oe=R[V[pe]],We=V[pe+1];try{We.call(Oe)}finally{}}else try{V.call(R)}finally{}}}}(c,h),function Ff(c,h){const g=c.cleanup,S=h[7];let R=-1;if(null!==g)for(let V=0;V<g.length-1;V+=2)if("string"==typeof g[V]){const pe=g[V+1],Oe="function"==typeof pe?pe(h):Xe(h[pe]),We=S[R=g[V+2]],ut=g[V+3];"boolean"==typeof ut?Oe.removeEventListener(g[V],We,ut):ut>=0?S[R=ut]():S[R=-ut].unsubscribe(),V+=2}else{const pe=S[R=g[V+1]];g[V].call(pe)}if(null!==S){for(let V=R+1;V<S.length;V++)S[V]();h[7]=null}}(c,h),1===h[1].type&&Zn(h[11])&&h[11].destroy();const g=h[17];if(null!==g&&Pn(h[3])){g!==h[3]&&Gh(g,h);const S=h[19];null!==S&&S.detachView(c)}}}function Wh(c,h,g){return function H0(c,h,g){let S=h;for(;null!==S&&40&S.type;)S=(h=S).parent;if(null===S)return g[0];if(2&S.flags){const R=c.data[S.directiveStart].encapsulation;if(R===ft.None||R===ft.Emulated)return null}return Qe(S,g)}(c,h.parent,g)}function Ms(c,h,g,S,R){Zn(c)?c.insertBefore(h,g,S,R):h.insertBefore(g,S,R)}function z0(c,h,g){Zn(c)?c.appendChild(h,g):h.appendChild(g)}function Sc(c,h,g,S,R){null!==S?Ms(c,h,g,S,R):z0(c,h,g)}function T1(c,h){return Zn(c)?c.parentNode(h):h.parentNode}function ml(c,h,g){return qh(c,h,g)}let qh=function jh(c,h,g){return 40&c.type?Qe(c,g):null};function Dc(c,h,g,S){const R=Wh(c,S,h),V=h[11],Oe=ml(S.parent||h[6],S,h);if(null!=R)if(Array.isArray(g))for(let We=0;We<g.length;We++)Sc(V,R,g[We],Oe,!1);else Sc(V,R,g,Oe,!1)}function D1(c,h){if(null!==h){const g=h.type;if(3&g)return Qe(h,c);if(4&g)return L1(-1,c[h.index]);if(8&g){const S=h.child;if(null!==S)return D1(c,S);{const R=c[h.index];return Pn(R)?L1(-1,R):Xe(R)}}if(32&g)return C1(h,c)()||Xe(c[h.index]);{const S=V0(c,h);return null!==S?Array.isArray(S)?S[0]:D1(Tc(c[16]),S):D1(c,h.next)}}return null}function V0(c,h){return null!==h?c[16][6].projection[h.projection]:null}function L1(c,h){const g=10+c+1;if(g<h.length){const S=h[g],R=S[1].firstChild;if(null!==R)return D1(S,R)}return h[7]}function O1(c,h,g,S,R,V,pe){for(;null!=g;){const Oe=S[g.index],We=g.type;if(pe&&0===h&&(Oe&&ss(Xe(Oe),S),g.flags|=4),64!=(64&g.flags))if(8&We)O1(c,h,g.child,S,R,V,!1),fl(h,c,R,Oe,V);else if(32&We){const ut=C1(g,S);let Tt;for(;Tt=ut();)fl(h,c,R,Tt,V);fl(h,c,R,Oe,V)}else 16&We?Lc(c,h,S,g,R,V):fl(h,c,R,Oe,V);g=pe?g.projectionNext:g.next}}function Vl(c,h,g,S,R,V){O1(g,S,c.firstChild,h,R,V,!1)}function Lc(c,h,g,S,R,V){const pe=g[16],We=pe[6].projection[S.projection];if(Array.isArray(We))for(let ut=0;ut<We.length;ut++)fl(h,c,R,We[ut],V);else O1(c,h,We,pe[3],R,V,!0)}function Qh(c,h,g){Zn(c)?c.setAttribute(h,"style",g):h.style.cssText=g}function W0(c,h,g){Zn(c)?""===g?c.removeAttribute(h,"class"):c.setAttribute(h,"class",g):h.className=g}function Jh(c,h,g){let S=c.length;for(;;){const R=c.indexOf(h,g);if(-1===R)return R;if(0===R||c.charCodeAt(R-1)<=32){const V=h.length;if(R+V===S||c.charCodeAt(R+V)<=32)return R}g=R+1}}const Xh="ng-template";function Ar(c,h,g){let S=0;for(;S<c.length;){let R=c[S++];if(g&&"class"===R){if(R=c[S],-1!==Jh(R.toLowerCase(),h,0))return!0}else if(1===R){for(;S<c.length&&"string"==typeof(R=c[S++]);)if(R.toLowerCase()===h)return!0;return!1}}return!1}function j0(c){return 4===c.type&&c.value!==Xh}function $h(c,h,g){return h===(4!==c.type||g?c.value:Xh)}function I1(c,h,g){let S=4;const R=c.attrs||[],V=function P1(c){for(let h=0;h<c.length;h++)if(il(c[h]))return h;return c.length}(R);let pe=!1;for(let Oe=0;Oe<h.length;Oe++){const We=h[Oe];if("number"!=typeof We){if(!pe)if(4&S){if(S=2|1&S,""!==We&&!$h(c,We,g)||""===We&&1===h.length){if(Er(S))return!1;pe=!0}}else{const ut=8&S?We:h[++Oe];if(8&S&&null!==c.attrs){if(!Ar(c.attrs,ut,g)){if(Er(S))return!1;pe=!0}continue}const Gt=ed(8&S?"class":We,R,j0(c),g);if(-1===Gt){if(Er(S))return!1;pe=!0;continue}if(""!==ut){let oi;oi=Gt>V?"":R[Gt+1].toLowerCase();const gi=8&S?oi:null;if(gi&&-1!==Jh(gi,ut,0)||2&S&&ut!==oi){if(Er(S))return!1;pe=!0}}}}else{if(!pe&&!Er(S)&&!Er(We))return!1;if(pe&&Er(We))continue;pe=!1,S=We|1&S}}return Er(S)||pe}function Er(c){return 0==(1&c)}function ed(c,h,g,S){if(null===h)return-1;let R=0;if(S||!g){let V=!1;for(;R<h.length;){const pe=h[R];if(pe===c)return R;if(3===pe||6===pe)V=!0;else{if(1===pe||2===pe){let Oe=h[++R];for(;"string"==typeof Oe;)Oe=h[++R];continue}if(4===pe)break;if(0===pe){R+=4;continue}}R+=V?1:2}return-1}return function td(c,h){let g=c.indexOf(4);if(g>-1)for(g++;g<c.length;){const S=c[g];if("number"==typeof S)return-1;if(S===h)return g;g++}return-1}(h,c)}function qo(c,h,g=!1){for(let S=0;S<h.length;S++)if(I1(c,h[S],g))return!0;return!1}function Oc(c,h){e:for(let g=0;g<h.length;g++){const S=h[g];if(c.length===S.length){for(let R=0;R<c.length;R++)if(c[R]!==S[R])continue e;return!0}}return!1}function N1(c,h){return c?":not("+h.trim()+")":h}function zf(c){let h=c[0],g=1,S=2,R="",V=!1;for(;g<c.length;){let pe=c[g];if("string"==typeof pe)if(2&S){const Oe=c[++g];R+="["+pe+(Oe.length>0?'="'+Oe+'"':"")+"]"}else 8&S?R+="."+pe:4&S&&(R+=" "+pe);else""!==R&&!Er(pe)&&(h+=N1(V,R),R=""),S=pe,V=V||!Er(S);g++}return""!==R&&(h+=N1(V,R)),h}const Sn={};function R1(c){F1(Nn(),ki(),Vn()+c,kt())}function F1(c,h,g,S){if(!S)if(3==(3&h[2])){const V=c.preOrderCheckHooks;null!==V&&Yn(h,V,g)}else{const V=c.preOrderHooks;null!==V&&io(h,V,0,g)}mr(g)}function B1(c,h){return c<<17|h<<2}function ws(c){return c>>17&32767}function rd(c){return 2|c}function Ks(c){return(131068&c)>>2}function Jn(c,h){return-131069&c|h<<2}function H1(c){return 1|c}function hd(c,h){const g=c.contentQueries;if(null!==g)for(let S=0;S<g.length;S+=2){const R=g[S],V=g[S+1];if(-1!==V){const pe=c.data[V];vi(R),pe.contentQueries(2,h[V],V)}}}function Pc(c,h,g,S,R,V,pe,Oe,We,ut){const Tt=h.blueprint.slice();return Tt[0]=R,Tt[2]=140|S,yn(Tt),Tt[3]=Tt[15]=c,Tt[8]=g,Tt[10]=pe||c&&c[10],Tt[11]=Oe||c&&c[11],Tt[12]=We||c&&c[12]||null,Tt[9]=ut||c&&c[9]||null,Tt[6]=V,Tt[16]=2==h.type?c[16]:Tt,Tt}function Wl(c,h,g,S,R){let V=c.data[h];if(null===V)V=function l2(c,h,g,S,R){const V=Us(),pe=te(),We=c.data[h]=function Qf(c,h,g,S,R,V){return{type:g,index:S,insertBeforeIndex:null,injectorIndex:h?h.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:R,attrs:V,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:h,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,pe?V:V&&V.parent,g,h,S,R);return null===c.firstChild&&(c.firstChild=We),null!==V&&(pe?null==V.child&&null!==We.parent&&(V.child=We):null===V.next&&(V.next=We)),We}(c,h,g,S,R),function Mn(){return Wi.lFrame.inI18n}()&&(V.flags|=64);else if(64&V.type){V.type=g,V.value=S,V.attrs=R;const pe=function rs(){const c=Wi.lFrame,h=c.currentTNode;return c.isParent?h:h.parent}();V.injectorIndex=null===pe?-1:pe.injectorIndex}return xt(V,!0),V}function Nc(c,h,g,S){if(0===g)return-1;const R=h.length;for(let V=0;V<g;V++)h.push(S),c.blueprint.push(S),c.data.push(null);return R}function Jo(c,h,g){Ki(h);try{const S=c.viewQuery;null!==S&&g2(1,S,g);const R=c.template;null!==R&&dd(c,h,R,1,g),c.firstCreatePass&&(c.firstCreatePass=!1),c.staticContentQueries&&hd(c,h),c.staticViewQueries&&g2(2,c.viewQuery,g);const V=c.components;null!==V&&function qf(c,h){for(let g=0;g<h.length;g++)h6(c,h[g])}(h,V)}catch(S){throw c.firstCreatePass&&(c.incompleteFirstPass=!0,c.firstCreatePass=!1),S}finally{h[2]&=-5,Rr()}}function mo(c,h,g,S){const R=h[2];if(256==(256&R))return;Ki(h);const V=kt();try{yn(h),function Ti(c){return Wi.lFrame.bindingIndex=c}(c.bindingStartIndex),null!==g&&dd(c,h,g,2,S);const pe=3==(3&R);if(!V)if(pe){const ut=c.preOrderCheckHooks;null!==ut&&Yn(h,ut,null)}else{const ut=c.preOrderHooks;null!==ut&&io(h,ut,0,null),Ia(h,0)}if(function c6(c){for(let h=M1(c);null!==h;h=R0(h)){if(!h[2])continue;const g=h[9];for(let S=0;S<g.length;S++){const R=g[S],V=R[3];0==(1024&R[2])&&An(V,1),R[2]|=1024}}}(h),function l6(c){for(let h=M1(c);null!==h;h=R0(h))for(let g=10;g<h.length;g++){const S=h[g],R=S[1];Yt(S)&&mo(R,S,R.template,S[8])}}(h),null!==c.contentQueries&&hd(c,h),!V)if(pe){const ut=c.contentCheckHooks;null!==ut&&Yn(h,ut)}else{const ut=c.contentHooks;null!==ut&&io(h,ut,1),Ia(h,1)}!function Wf(c,h){const g=c.hostBindingOpCodes;if(null!==g)try{for(let S=0;S<g.length;S++){const R=g[S];if(R<0)mr(~R);else{const V=R,pe=g[++S],Oe=g[++S];tt(pe,V),Oe(2,h[V])}}}finally{mr(-1)}}(c,h);const Oe=c.components;null!==Oe&&function jf(c,h){for(let g=0;g<h.length;g++)Td(c,h[g])}(h,Oe);const We=c.viewQuery;if(null!==We&&g2(2,We,S),!V)if(pe){const ut=c.viewCheckHooks;null!==ut&&Yn(h,ut)}else{const ut=c.viewHooks;null!==ut&&io(h,ut,2),Ia(h,2)}!0===c.firstUpdatePass&&(c.firstUpdatePass=!1),V||(h[2]&=-73),1024&h[2]&&(h[2]&=-1025,An(h[3],-1))}finally{Rr()}}function Rc(c,h,g,S){const R=h[10],V=!kt(),pe=bt(h);try{V&&!pe&&R.begin&&R.begin(),pe&&Jo(c,h,S),mo(c,h,g,S)}finally{V&&!pe&&R.end&&R.end()}}function dd(c,h,g,S,R){const V=Vn(),pe=2&S;try{mr(-1),pe&&h.length>20&&F1(c,h,20,kt()),g(S,R)}finally{mr(V)}}function ud(c,h,g){if(dr(h)){const R=h.directiveEnd;for(let V=h.directiveStart;V<R;V++){const pe=c.data[V];pe.contentQueries&&pe.contentQueries(1,g[V],V)}}}function c2(c,h,g){!Mr()||(function t6(c,h,g,S){const R=g.directiveStart,V=g.directiveEnd;c.firstCreatePass||Ot(g,h),ss(S,h);const pe=g.initialInputs;for(let Oe=R;Oe<V;Oe++){const We=c.data[Oe],ut=dn(We);ut&&Ad(h,g,We);const Tt=Ps(h,c,Oe,g);ss(Tt,h),null!==pe&&s6(0,Oe-R,Tt,We,0,pe),ut&&(ti(g.index,h)[8]=Tt)}}(c,h,g,Qe(g,h)),128==(128&g.flags)&&function i6(c,h,g){const S=g.directiveStart,R=g.directiveEnd,pe=g.index,Oe=function Et(){return Wi.lFrame.currentDirectiveIndex}();try{mr(pe);for(let We=S;We<R;We++){const ut=c.data[We],Tt=h[We];It(We),(null!==ut.hostBindings||0!==ut.hostVars||null!==ut.hostAttrs)&&xd(ut,Tt)}}finally{mr(-1),It(Oe)}}(c,h,g))}function h2(c,h,g=Qe){const S=h.localNames;if(null!==S){let R=h.index+1;for(let V=0;V<S.length;V+=2){const pe=S[V+1],Oe=-1===pe?g(h,c):c[pe];c[R++]=Oe}}}function fd(c){const h=c.tView;return null===h||h.incompleteFirstPass?c.tView=Fc(1,null,c.template,c.decls,c.vars,c.directiveDefs,c.pipeDefs,c.viewQuery,c.schemas,c.consts):h}function Fc(c,h,g,S,R,V,pe,Oe,We,ut){const Tt=20+S,Gt=Tt+R,oi=function Kf(c,h){const g=[];for(let S=0;S<h;S++)g.push(S<c?null:Sn);return g}(Tt,Gt),gi="function"==typeof ut?ut():ut;return oi[1]={type:c,blueprint:oi,template:g,queries:null,viewQuery:Oe,declTNode:h,data:oi.slice().fill(null,Tt),bindingStartIndex:Tt,expandoStartIndex:Gt,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 V?V():V,pipeRegistry:"function"==typeof pe?pe():pe,firstChild:null,schemas:We,consts:gi,incompleteFirstPass:!1}}function gd(c,h,g,S){const R=_2(h);null===g?R.push(S):(R.push(g),c.firstCreatePass&&Dd(c).push(S,R.length-1))}function _d(c,h,g){for(let S in c)if(c.hasOwnProperty(S)){const R=c[S];(g=null===g?{}:g).hasOwnProperty(S)?g[S].push(h,R):g[S]=[h,R]}return g}function As(c,h,g,S,R,V,pe,Oe){const We=Qe(h,g);let Tt,ut=h.inputs;!Oe&&null!=ut&&(Tt=ut[S])?(Id(c,g,Tt,S,R),wi(h)&&function vd(c,h){const g=ti(h,c);16&g[2]||(g[2]|=64)}(g,h.index)):3&h.type&&(S=function Xf(c){return"class"===c?"className":"for"===c?"htmlFor":"formaction"===c?"formAction":"innerHtml"===c?"innerHTML":"readonly"===c?"readOnly":"tabindex"===c?"tabIndex":c}(S),R=null!=pe?pe(R,h.value||"",S):R,Zn(V)?V.setProperty(We,S,R):nl(S)||(We.setProperty?We.setProperty(S,R):We[S]=R))}function d2(c,h,g,S){let R=!1;if(Mr()){const V=function n6(c,h,g){const S=c.directiveRegistry;let R=null;if(S)for(let V=0;V<S.length;V++){const pe=S[V];qo(g,pe.selectors,!1)&&(R||(R=[]),an(Ot(g,h),c,pe.type),dn(pe)?(Cd(c,g),R.unshift(pe)):R.push(pe))}return R}(c,h,g),pe=null===S?null:{"":-1};if(null!==V){R=!0,Md(g,c.data.length,V.length);for(let Tt=0;Tt<V.length;Tt++){const Gt=V[Tt];Gt.providersResolver&&Gt.providersResolver(Gt)}let Oe=!1,We=!1,ut=Nc(c,h,V.length,null);for(let Tt=0;Tt<V.length;Tt++){const Gt=V[Tt];g.mergedAttrs=Oo(g.mergedAttrs,Gt.hostAttrs),wd(c,g,h,ut,Gt),a6(ut,Gt,pe),null!==Gt.contentQueries&&(g.flags|=8),(null!==Gt.hostBindings||null!==Gt.hostAttrs||0!==Gt.hostVars)&&(g.flags|=128);const oi=Gt.type.prototype;!Oe&&(oi.ngOnChanges||oi.ngOnInit||oi.ngDoCheck)&&((c.preOrderHooks||(c.preOrderHooks=[])).push(g.index),Oe=!0),!We&&(oi.ngOnChanges||oi.ngDoCheck)&&((c.preOrderCheckHooks||(c.preOrderCheckHooks=[])).push(g.index),We=!0),ut++}!function Jf(c,h){const S=h.directiveEnd,R=c.data,V=h.attrs,pe=[];let Oe=null,We=null;for(let ut=h.directiveStart;ut<S;ut++){const Tt=R[ut],Gt=Tt.inputs,oi=null===V||j0(h)?null:o6(Gt,V);pe.push(oi),Oe=_d(Gt,ut,Oe),We=_d(Tt.outputs,ut,We)}null!==Oe&&(Oe.hasOwnProperty("class")&&(h.flags|=16),Oe.hasOwnProperty("style")&&(h.flags|=32)),h.initialInputs=pe,h.inputs=Oe,h.outputs=We}(c,g)}pe&&function r6(c,h,g){if(h){const S=c.localNames=[];for(let R=0;R<h.length;R+=2){const V=g[h[R+1]];if(null==V)throw new w("301",`Export of name '${h[R+1]}' not found!`);S.push(h[R],V)}}}(g,S,pe)}return g.mergedAttrs=Oo(g.mergedAttrs,g.attrs),R}function u2(c,h,g,S,R,V){const pe=V.hostBindings;if(pe){let Oe=c.hostBindingOpCodes;null===Oe&&(Oe=c.hostBindingOpCodes=[]);const We=~h.index;(function bd(c){let h=c.length;for(;h>0;){const g=c[--h];if("number"==typeof g&&g<0)return g}return 0})(Oe)!=We&&Oe.push(We),Oe.push(S,R,pe)}}function xd(c,h){null!==c.hostBindings&&c.hostBindings(1,h)}function Cd(c,h){h.flags|=2,(c.components||(c.components=[])).push(h.index)}function a6(c,h,g){if(g){if(h.exportAs)for(let S=0;S<h.exportAs.length;S++)g[h.exportAs[S]]=c;dn(h)&&(g[""]=c)}}function Md(c,h,g){c.flags|=1,c.directiveStart=h,c.directiveEnd=h+g,c.providerIndexes=h}function wd(c,h,g,S,R){c.data[S]=R;const V=R.factory||(R.factory=Pr(R.type)),pe=new us(V,dn(R),null);c.blueprint[S]=pe,g[S]=pe,u2(c,h,0,S,Nc(c,g,R.hostVars,Sn),R)}function Ad(c,h,g){const S=Qe(h,c),R=fd(g),V=c[10],pe=G1(c,Pc(c,R,null,g.onPush?64:16,S,h,V,V.createRenderer(S,g),null,null));c[h.index]=pe}function go(c,h,g,S,R,V){const pe=Qe(c,h);!function V1(c,h,g,S,R,V,pe){if(null==V)Zn(c)?c.removeAttribute(h,R,g):h.removeAttribute(R);else{const Oe=null==pe?W(V):pe(V,S||"",R);Zn(c)?c.setAttribute(h,R,Oe,g):g?h.setAttributeNS(g,R,Oe):h.setAttribute(R,Oe)}}(h[11],pe,V,c.value,g,S,R)}function s6(c,h,g,S,R,V){const pe=V[h];if(null!==pe){const Oe=S.setInput;for(let We=0;We<pe.length;){const ut=pe[We++],Tt=pe[We++],Gt=pe[We++];null!==Oe?S.setInput(g,Gt,ut,Tt):g[Tt]=Gt}}}function o6(c,h){let g=null,S=0;for(;S<h.length;){const R=h[S];if(0!==R)if(5!==R){if("number"==typeof R)break;c.hasOwnProperty(R)&&(null===g&&(g=[]),g.push(R,c[R],h[S+1])),S+=2}else S+=2;else S+=4}return g}function Ed(c,h,g,S){return new Array(c,!0,!1,h,null,0,S,g,null,null)}function Td(c,h){const g=ti(h,c);if(Yt(g)){const S=g[1];80&g[2]?mo(S,g,S.template,g[8]):g[5]>0&&f2(g)}}function f2(c){for(let S=M1(c);null!==S;S=R0(S))for(let R=10;R<S.length;R++){const V=S[R];if(1024&V[2]){const pe=V[1];mo(pe,V,pe.template,V[8])}else V[5]>0&&f2(V)}const g=c[1].components;if(null!==g)for(let S=0;S<g.length;S++){const R=ti(g[S],c);Yt(R)&&R[5]>0&&f2(R)}}function h6(c,h){const g=ti(h,c),S=g[1];(function d6(c,h){for(let g=h.length;g<c.blueprint.length;g++)h.push(c.blueprint[g])})(S,g),Jo(S,g,g[8])}function G1(c,h){return c[13]?c[14][4]=h:c[13]=h,c[14]=h,h}function Y1(c){for(;c;){c[2]|=64;const h=Tc(c);if(Lr(c)&&!h)return c;c=h}return null}function m2(c,h,g){const S=h[10];S.begin&&S.begin();try{mo(c,h,c.template,g)}catch(R){throw Od(h,R),R}finally{S.end&&S.end()}}function Sd(c){!function p2(c){for(let h=0;h<c.components.length;h++){const g=c.components[h],S=b1(g),R=S[1];Rc(R,S,R.template,g)}}(c[8])}function g2(c,h,g){vi(0),h(c,g)}const m6=(()=>Promise.resolve(null))();function _2(c){return c[7]||(c[7]=[])}function Dd(c){return c.cleanup||(c.cleanup=[])}function Ld(c,h,g){return(null===c||dn(c))&&(g=function ge(c){for(;Array.isArray(c);){if("object"==typeof c[1])return c;c=c[0]}return null}(g[h.index])),g[11]}function Od(c,h){const g=c[9],S=g?g.get(Ec,null):null;S&&S.handleError(h)}function Id(c,h,g,S,R){for(let V=0;V<g.length;){const pe=g[V++],Oe=g[V++],We=h[pe],ut=c.data[pe];null!==ut.setInput?ut.setInput(We,R,S,Oe):We[Oe]=R}}function Mo(c,h,g){const S=ne(h,c);!function Zh(c,h,g){Zn(c)?c.setValue(h,g):h.textContent=g}(c[11],S,g)}function W1(c,h,g){let S=g?c.styles:null,R=g?c.classes:null,V=0;if(null!==h)for(let pe=0;pe<h.length;pe++){const Oe=h[pe];"number"==typeof Oe?V=Oe:1==V?R=s(R,Oe):2==V&&(S=s(S,Oe+": "+h[++pe]+";"))}g?c.styles=S:c.stylesWithoutHost=S,g?c.classes=R:c.classesWithoutHost=R}const v2=new Yr("INJECTOR",-1);class kd{get(h,g=za){if(g===za){const S=new Error(`NullInjectorError: No provider for ${N(h)}!`);throw S.name="NullInjectorError",S}return g}}const y2=new Yr("Set Injector scope."),Hc={},v6={};let b2;function Pd(){return void 0===b2&&(b2=new kd),b2}function x2(c,h=null,g=null,S){const R=Nd(c,h,g,S);return R._resolveInjectorDefTypes(),R}function Nd(c,h=null,g=null,S){return new y6(c,g,h||Pd(),S)}class y6{constructor(h,g,S,R=null){this.parent=S,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const V=[];g&&xs(g,Oe=>this.processProvider(Oe,h,g)),xs([h],Oe=>this.processInjectorType(Oe,[],V)),this.records.set(v2,jl(void 0,this));const pe=this.records.get(y2);this.scope=null!=pe?pe.value:null,this.source=R||("object"==typeof h?null:N(h))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(h=>h.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(h,g=za,S=he.Default){this.assertNotDestroyed();const R=ll(this),V=q(void 0);try{if(!(S&he.SkipSelf)){let Oe=this.records.get(h);if(void 0===Oe){const We=function E6(c){return"function"==typeof c||"object"==typeof c&&c instanceof Yr}(h)&&Ie(h);Oe=We&&this.injectableDefInScope(We)?jl(C2(h),Hc):null,this.records.set(h,Oe)}if(null!=Oe)return this.hydrate(h,Oe)}return(S&he.Self?Pd():this.parent).get(h,g=S&he.Optional&&g===za?null:g)}catch(pe){if("NullInjectorError"===pe.name){if((pe[Ns]=pe[Ns]||[]).unshift(N(h)),R)throw pe;return function ph(c,h,g,S){const R=c[Ns];throw h[Fl]&&R.unshift(h[Fl]),c.message=function f1(c,h,g,S=null){c=c&&"\n"===c.charAt(0)&&"\u0275"==c.charAt(1)?c.substr(2):c;let R=N(h);if(Array.isArray(h))R=h.map(N).join(" -> ");else if("object"==typeof h){let V=[];for(let pe in h)if(h.hasOwnProperty(pe)){let Oe=h[pe];V.push(pe+":"+("string"==typeof Oe?JSON.stringify(Oe):N(Oe)))}R=`{${V.join(", ")}}`}return`${g}${S?"("+S+")":""}[${R}]: ${c.replace(h1,"\n ")}`}("\n"+c.message,R,g,S),c.ngTokenPath=R,c[Ns]=null,c}(pe,h,"R3InjectorError",this.source)}throw pe}finally{q(V),ll(R)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(h=>this.get(h))}toString(){const h=[];return this.records.forEach((S,R)=>h.push(N(R))),`R3Injector[${h.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(h,g,S){if(!(h=O(h)))return!1;let R=z(h);const V=null==R&&h.ngModule||void 0,pe=void 0===V?h:V,Oe=-1!==S.indexOf(pe);if(void 0!==V&&(R=z(V)),null==R)return!1;if(null!=R.imports&&!Oe){let Tt;S.push(pe);try{xs(R.imports,Gt=>{this.processInjectorType(Gt,g,S)&&(void 0===Tt&&(Tt=[]),Tt.push(Gt))})}finally{}if(void 0!==Tt)for(let Gt=0;Gt<Tt.length;Gt++){const{ngModule:oi,providers:gi}=Tt[Gt];xs(gi,Oi=>this.processProvider(Oi,oi,gi||ei))}}this.injectorDefTypes.add(pe);const We=Pr(pe)||(()=>new pe);this.records.set(pe,jl(We,Hc));const ut=R.providers;if(null!=ut&&!Oe){const Tt=h;xs(ut,Gt=>this.processProvider(Gt,Tt,ut))}return void 0!==V&&void 0!==h.providers}processProvider(h,g,S){let R=Hr(h=O(h))?h:O(h&&h.provide);const V=function x6(c,h,g){return Fd(c)?jl(void 0,c.useValue):jl(Rd(c),Hc)}(h);if(Hr(h)||!0!==h.multi)this.records.get(R);else{let pe=this.records.get(R);pe||(pe=jl(void 0,Hc,!0),pe.factory=()=>d1(pe.multi),this.records.set(R,pe)),R=h,pe.multi.push(h)}this.records.set(R,V)}hydrate(h,g){return g.value===Hc&&(g.value=v6,g.value=g.factory()),"object"==typeof g.value&&g.value&&function A6(c){return null!==c&&"object"==typeof c&&"function"==typeof c.ngOnDestroy}(g.value)&&this.onDestroy.add(g.value),g.value}injectableDefInScope(h){if(!h.providedIn)return!1;const g=O(h.providedIn);return"string"==typeof g?"any"===g||g===this.scope:this.injectorDefTypes.has(g)}}function C2(c){const h=Ie(c),g=null!==h?h.factory:Pr(c);if(null!==g)return g;if(c instanceof Yr)throw new Error(`Token ${N(c)} is missing a \u0275prov definition.`);if(c instanceof Function)return function b6(c){const h=c.length;if(h>0){const S=Ws(h,"?");throw new Error(`Can't resolve all parameters for ${N(c)}: (${S.join(", ")}).`)}const g=function Me(c){const h=c&&(c[Ge]||c[Re]);if(h){const g=function we(c){if(c.hasOwnProperty("name"))return c.name;const h=(""+c).match(/^function\s*([^\s(]+)/);return null===h?"":h[1]}(c);return console.warn(`DEPRECATED: DI is instantiating a token "${g}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${g}" class.`),h}return null}(c);return null!==g?()=>g.factory(c):()=>new c}(c);throw new Error("unreachable")}function Rd(c,h,g){let S;if(Hr(c)){const R=O(c);return Pr(R)||C2(R)}if(Fd(c))S=()=>O(c.useValue);else if(function M6(c){return!(!c||!c.useFactory)}(c))S=()=>c.useFactory(...d1(c.deps||[]));else if(function C6(c){return!(!c||!c.useExisting)}(c))S=()=>Pa(O(c.useExisting));else{const R=O(c&&(c.useClass||c.provide));if(!function w6(c){return!!c.deps}(c))return Pr(R)||C2(R);S=()=>new R(...d1(c.deps))}return S}function jl(c,h,g=!1){return{factory:c,value:h,multi:g?[]:void 0}}function Fd(c){return null!==c&&"object"==typeof c&&yc in c}function Hr(c){return"function"==typeof c}let Rs=(()=>{class c{static create(g,S){var R;if(Array.isArray(g))return x2({name:""},S,g,"");{const V=null!==(R=g.name)&&void 0!==R?R:"";return x2({name:V},g.parent,g.providers,V)}}}return c.THROW_IF_NOT_FOUND=za,c.NULL=new kd,c.\u0275prov=Ce({token:c,providedIn:"any",factory:()=>Pa(v2)}),c.__NG_ELEMENT_ID__=-1,c})();function k6(c,h){$r(b1(c)[1],fr())}function A2(c){let h=function qd(c){return Object.getPrototypeOf(c.prototype).constructor}(c.type),g=!0;const S=[c];for(;h;){let R;if(dn(c))R=h.\u0275cmp||h.\u0275dir;else{if(h.\u0275cmp)throw new Error("Directives cannot inherit Components");R=h.\u0275dir}if(R){if(g){S.push(R);const pe=c;pe.inputs=E2(c.inputs),pe.declaredInputs=E2(c.declaredInputs),pe.outputs=E2(c.outputs);const Oe=R.hostBindings;Oe&&F6(c,Oe);const We=R.viewQuery,ut=R.contentQueries;if(We&&N6(c,We),ut&&R6(c,ut),l(c.inputs,R.inputs),l(c.declaredInputs,R.declaredInputs),l(c.outputs,R.outputs),dn(R)&&R.data.animation){const Tt=c.data;Tt.animation=(Tt.animation||[]).concat(R.data.animation)}}const V=R.features;if(V)for(let pe=0;pe<V.length;pe++){const Oe=V[pe];Oe&&Oe.ngInherit&&Oe(c),Oe===A2&&(g=!1)}}h=Object.getPrototypeOf(h)}!function P6(c){let h=0,g=null;for(let S=c.length-1;S>=0;S--){const R=c[S];R.hostVars=h+=R.hostVars,R.hostAttrs=Oo(R.hostAttrs,g=Oo(g,R.hostAttrs))}}(S)}function E2(c){return c===jt?{}:c===ei?[]:c}function N6(c,h){const g=c.viewQuery;c.viewQuery=g?(S,R)=>{h(S,R),g(S,R)}:h}function R6(c,h){const g=c.contentQueries;c.contentQueries=g?(S,R,V)=>{h(S,R,V),g(S,R,V)}:h}function F6(c,h){const g=c.hostBindings;c.hostBindings=g?(S,R)=>{h(S,R),g(S,R)}:h}let q1=null;function ql(){if(!q1){const c=Ft.Symbol;if(c&&c.iterator)q1=c.iterator;else{const h=Object.getOwnPropertyNames(Map.prototype);for(let g=0;g<h.length;++g){const S=h[g];"entries"!==S&&"size"!==S&&Map.prototype[S]===Map.prototype.entries&&(q1=S)}}}return q1}function zc(c){return!!T2(c)&&(Array.isArray(c)||!(c instanceof Map)&&ql()in c)}function T2(c){return null!==c&&("function"==typeof c||"object"==typeof c)}function _o(c,h,g){return c[h]=g}function ls(c,h,g){return!Object.is(c[h],g)&&(c[h]=g,!0)}function bl(c,h,g,S){const R=ls(c,h,g);return ls(c,h+1,S)||R}function K1(c,h,g,S,R){const V=bl(c,h,g,S);return ls(c,h+2,R)||V}function S2(c,h,g,S){const R=ki();return ls(R,Zi(),h)&&(Nn(),go(Hi(),R,c,h,g,S)),S2}function Ql(c,h,g,S){return ls(c,Zi(),g)?h+W(g)+S:Sn}function $l(c,h,g,S,R,V,pe,Oe,We,ut){const Gt=function Fs(c,h,g,S,R,V){const pe=bl(c,h,g,S);return bl(c,h+2,R,V)||pe}(c,pi(),g,R,pe,We);return tn(4),Gt?h+W(g)+S+W(R)+V+W(pe)+Oe+W(We)+ut:Sn}function ru(c,h,g,S,R,V,pe,Oe){const We=ki(),ut=Nn(),Tt=c+20,Gt=ut.firstCreatePass?function G6(c,h,g,S,R,V,pe,Oe,We){const ut=h.consts,Tt=Wl(h,c,4,pe||null,Bi(ut,Oe));d2(h,g,Tt,Bi(ut,We)),$r(h,Tt);const Gt=Tt.tViews=Fc(2,Tt,S,R,V,h.directiveRegistry,h.pipeRegistry,null,h.schemas,ut);return null!==h.queries&&(h.queries.template(h,Tt),Gt.queries=h.queries.embeddedTView(Tt)),Tt}(Tt,ut,We,h,g,S,R,V,pe):ut.data[Tt];xt(Gt,!1);const oi=We[11].createComment("");Dc(ut,We,oi,Gt),ss(oi,We),G1(We,We[Tt]=Ed(oi,We,oi,Gt)),Fi(Gt)&&c2(ut,We,Gt),null!=pe&&h2(We,Gt,Oe)}function au(c){return Ct(function wt(){return Wi.lFrame.contextLView}(),20+c)}function Zc(c,h=he.Default){const g=ki();return null===g?Pa(c,h):ar(fr(),g,O(c),h)}function _u(){throw new Error("invalid")}function k2(c,h,g){const S=ki();return ls(S,Zi(),h)&&As(Nn(),Hi(),S,c,h,S[11],g,!1),k2}function P2(c,h,g,S,R){const pe=R?"class":"style";Id(c,g,h.inputs[pe],pe,S)}function N2(c,h,g,S){const R=ki(),V=Nn(),pe=20+c,Oe=R[11],We=R[pe]=w1(Oe,h,function da(){return Wi.lFrame.currentNamespace}()),ut=V.firstCreatePass?function d4(c,h,g,S,R,V,pe){const Oe=h.consts,ut=Wl(h,c,2,R,Bi(Oe,V));return d2(h,g,ut,Bi(Oe,pe)),null!==ut.attrs&&W1(ut,ut.attrs,!1),null!==ut.mergedAttrs&&W1(ut,ut.mergedAttrs,!0),null!==h.queries&&h.queries.elementStart(h,ut),ut}(pe,V,R,0,h,g,S):V.data[pe];xt(ut,!0);const Tt=ut.mergedAttrs;null!==Tt&&Lo(Oe,We,Tt);const Gt=ut.classes;null!==Gt&&W0(Oe,We,Gt);const oi=ut.styles;null!==oi&&Qh(Oe,We,oi),64!=(64&ut.flags)&&Dc(V,R,We,ut),0===function Un(){return Wi.lFrame.elementDepthCount}()&&ss(We,R),function Rn(){Wi.lFrame.elementDepthCount++}(),Fi(ut)&&(c2(V,R,ut),ud(V,ut,R)),null!==S&&h2(R,ut)}function J1(){let c=fr();te()?ue():(c=c.parent,xt(c,!1));const h=c;!function _a(){Wi.lFrame.elementDepthCount--}();const g=Nn();g.firstCreatePass&&($r(g,c),dr(c)&&g.queries.elementEnd(c)),null!=h.classesWithoutHost&&function cc(c){return 0!=(16&c.flags)}(h)&&P2(g,h,ki(),h.classesWithoutHost,!0),null!=h.stylesWithoutHost&&function hc(c){return 0!=(32&c.flags)}(h)&&P2(g,h,ki(),h.stylesWithoutHost,!1)}function R2(c,h,g,S){N2(c,h,g,S),J1()}function F2(c,h,g){const S=ki(),R=Nn(),V=c+20,pe=R.firstCreatePass?function u4(c,h,g,S,R){const V=h.consts,pe=Bi(V,S),Oe=Wl(h,c,8,"ng-container",pe);return null!==pe&&W1(Oe,pe,!0),d2(h,g,Oe,Bi(V,R)),null!==h.queries&&h.queries.elementStart(h,Oe),Oe}(V,R,S,h,g):R.data[V];xt(pe,!0);const Oe=S[V]=S[11].createComment("");Dc(R,S,Oe,pe),ss(Oe,S),Fi(pe)&&(c2(R,S,pe),ud(R,pe,S)),null!=g&&h2(S,pe)}function B2(){let c=fr();const h=Nn();te()?ue():(c=c.parent,xt(c,!1)),h.firstCreatePass&&($r(h,c),dr(c)&&h.queries.elementEnd(c))}function vu(c,h,g){F2(c,h,g),B2()}function yu(){return ki()}function H2(c){return!!c&&"function"==typeof c.then}function bu(c){return!!c&&"function"==typeof c.subscribe}const xu=bu;function X1(c,h,g,S){const R=ki(),V=Nn(),pe=fr();return Dn(V,R,R[11],pe,c,h,!!g,S),X1}function z2(c,h){const g=fr(),S=ki(),R=Nn();return Dn(R,S,Ld(zt(R.data),g,S),g,c,h,!1),z2}function Dn(c,h,g,S,R,V,pe,Oe){const We=Fi(S),Tt=c.firstCreatePass&&Dd(c),Gt=h[8],oi=_2(h);let gi=!0;if(3&S.type||Oe){const rn=Qe(S,h),pn=Oe?Oe(rn):rn,Ri=oi.length,Tn=Oe?rr=>Oe(Xe(rr[S.index])):S.index;if(Zn(g)){let rr=null;if(!Oe&&We&&(rr=function f4(c,h,g,S){const R=c.cleanup;if(null!=R)for(let V=0;V<R.length-1;V+=2){const pe=R[V];if(pe===g&&R[V+1]===S){const Oe=h[7],We=R[V+2];return Oe.length>We?Oe[We]:null}"string"==typeof pe&&(V+=2)}return null}(c,h,R,S.index)),null!==rr)(rr.__ngLastListenerFn__||rr).__ngNextListenerFn__=V,rr.__ngLastListenerFn__=V,gi=!1;else{V=$1(S,h,Gt,V,!1);const Ur=g.listen(pn,R,V);oi.push(V,Ur),Tt&&Tt.push(R,Tn,Ri,Ri+1)}}else V=$1(S,h,Gt,V,!0),pn.addEventListener(R,V,pe),oi.push(V),Tt&&Tt.push(R,Tn,Ri,pe)}else V=$1(S,h,Gt,V,!1);const Oi=S.outputs;let Ji;if(gi&&null!==Oi&&(Ji=Oi[R])){const rn=Ji.length;if(rn)for(let pn=0;pn<rn;pn+=2){const Do=h[Ji[pn]][Ji[pn+1]].subscribe(V),dh=oi.length;oi.push(V,Do),Tt&&Tt.push(R,S.index,dh,-(dh+1))}}}function wo(c,h,g,S){try{return!1!==g(S)}catch(R){return Od(c,R),!1}}function $1(c,h,g,S,R){return function V(pe){if(pe===Function)return S;const Oe=2&c.flags?ti(c.index,h):h;0==(32&h[2])&&Y1(Oe);let We=wo(h,0,S,pe),ut=V.__ngNextListenerFn__;for(;ut;)We=wo(h,0,ut,pe)&&We,ut=ut.__ngNextListenerFn__;return R&&!1===We&&(pe.preventDefault(),pe.returnValue=!1),We}}function U2(c=1){return function Fr(c){return(Wi.lFrame.contextLView=function wr(c,h){for(;c>0;)h=h[15],c--;return h}(c,Wi.lFrame.contextLView))[8]}(c)}function Es(c,h){let g=null;const S=function k1(c){const h=c.attrs;if(null!=h){const g=h.indexOf(5);if(0==(1&g))return h[g+1]}return null}(c);for(let R=0;R<h.length;R++){const V=h[R];if("*"!==V){if(null===S?qo(c,V,!0):Oc(S,V))return R}else g=R}return g}function Cu(c){const h=ki()[16][6];if(!h.projection){const S=h.projection=Ws(c?c.length:1,null),R=S.slice();let V=h.child;for(;null!==V;){const pe=c?Es(V,c):0;null!==pe&&(R[pe]?R[pe].projectionNext=V:S[pe]=V,R[pe]=V),V=V.next}}}function Mu(c,h=0,g){const S=ki(),R=Nn(),V=Wl(R,20+c,16,null,g||null);null===V.projection&&(V.projection=h),ue(),64!=(64&V.flags)&&function Hf(c,h,g){Lc(h[11],0,h,g,Wh(c,g,h),ml(g.parent||h[6],g,h))}(R,S,V)}function Vc(c,h,g){return yr(c,"",h,"",g),Vc}function yr(c,h,g,S,R){const V=ki(),pe=Ql(V,h,g,S);return pe!==Sn&&As(Nn(),Hi(),V,c,pe,V[11],R,!1),yr}function Xa(c,h,g,S,R){const V=c[g+1],pe=null===h;let Oe=S?ws(V):Ks(V),We=!1;for(;0!==Oe&&(!1===We||pe);){const Tt=c[Oe+1];Tu(c[Oe],h)&&(We=!0,c[Oe+1]=S?H1(Tt):rd(Tt)),Oe=S?ws(Tt):Ks(Tt)}We&&(c[g+1]=S?rd(V):H1(V))}function Tu(c,h){return null===c||null==h||(Array.isArray(c)?c[1]:c)===h||!(!Array.isArray(c)||"string"!=typeof h)&&as(c,h)>=0}const ir={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Bs(c){return c.substring(ir.key,ir.keyEnd)}function V2(c,h){const g=ir.textEnd;return g===h?-1:(h=ir.keyEnd=function Ua(c,h,g){for(;h<g&&c.charCodeAt(h)>32;)h++;return h}(c,ir.key=h,g),Cl(c,h,g))}function Cl(c,h,g){for(;h<g&&c.charCodeAt(h)<=32;)h++;return h}function wl(c,h,g){return Ss(c,h,g,!1),wl}function rc(c,h){return Ss(c,h,null,!0),rc}function e0(c){Ds(Ka,ts,c,!0)}function ts(c,h){for(let g=function $a(c){return function Ts(c){ir.key=0,ir.keyEnd=0,ir.value=0,ir.valueEnd=0,ir.textEnd=c.length}(c),V2(c,Cl(c,0,ir.textEnd))}(h);g>=0;g=V2(h,g))Ka(c,Bs(h),!0)}function Ss(c,h,g,S){const R=ki(),V=Nn(),pe=tn(2);V.firstUpdatePass&&W2(V,c,pe,S),h!==Sn&&ls(R,pe,h)&&K2(V,V.data[Vn()],R,R[11],c,R[pe+1]=function Hs(c,h){return null==c||("string"==typeof h?c+=h:"object"==typeof c&&(c=N(ya(c)))),c}(h,g),S,pe)}function Ds(c,h,g,S){const R=Nn(),V=tn(2);R.firstUpdatePass&&W2(R,null,V,S);const pe=ki();if(g!==Sn&&ls(pe,V,g)){const Oe=R.data[Vn()];if(qr(Oe,S)&&!Y2(R,V)){let We=S?Oe.classesWithoutHost:Oe.stylesWithoutHost;null!==We&&(g=s(We,g||"")),P2(R,Oe,pe,g,S)}else!function Ou(c,h,g,S,R,V,pe,Oe){R===Sn&&(R=ei);let We=0,ut=0,Tt=0<R.length?R[0]:null,Gt=0<V.length?V[0]:null;for(;null!==Tt||null!==Gt;){const oi=We<R.length?R[We+1]:void 0,gi=ut<V.length?V[ut+1]:void 0;let Ji,Oi=null;Tt===Gt?(We+=2,ut+=2,oi!==gi&&(Oi=Gt,Ji=gi)):null===Gt||null!==Tt&&Tt<Gt?(We+=2,Oi=Tt):(ut+=2,Oi=Gt,Ji=gi),null!==Oi&&K2(c,h,g,S,Oi,Ji,pe,Oe),Tt=We<R.length?R[We]:null,Gt=ut<V.length?V[ut]:null}}(R,Oe,pe,pe[11],pe[V+1],pe[V+1]=function Wc(c,h,g){if(null==g||""===g)return ei;const S=[],R=ya(g);if(Array.isArray(R))for(let V=0;V<R.length;V++)c(S,R[V],!0);else if("object"==typeof R)for(const V in R)R.hasOwnProperty(V)&&c(S,V,R[V]);else"string"==typeof R&&h(S,R);return S}(c,h,g),S,V)}}function Y2(c,h){return h>=c.expandoStartIndex}function W2(c,h,g,S){const R=c.data;if(null===R[g+1]){const V=R[Vn()],pe=Y2(c,g);qr(V,S)&&null===h&&!pe&&(h=!1),h=function Du(c,h,g,S){const R=zt(c);let V=S?h.residualClasses:h.residualStyles;if(null===R)0===(S?h.classBindings:h.styleBindings)&&(g=Eo(g=Yc(null,c,h,g,S),h.attrs,S),V=null);else{const pe=h.directiveStylingLast;if(-1===pe||c[pe]!==R)if(g=Yc(R,c,h,g,S),null===V){let We=function t0(c,h,g){const S=g?h.classBindings:h.styleBindings;if(0!==Ks(S))return c[ws(S)]}(c,h,S);void 0!==We&&Array.isArray(We)&&(We=Yc(null,c,h,We[1],S),We=Eo(We,h.attrs,S),function j2(c,h,g,S){c[ws(g?h.classBindings:h.styleBindings)]=S}(c,h,S,We))}else V=function Lu(c,h,g){let S;const R=h.directiveEnd;for(let V=1+h.directiveStylingLast;V<R;V++)S=Eo(S,c[V].hostAttrs,g);return Eo(S,h.attrs,g)}(c,h,S)}return void 0!==V&&(S?h.residualClasses=V:h.residualStyles=V),g}(R,V,h,S),function $o(c,h,g,S,R,V){let pe=V?h.classBindings:h.styleBindings,Oe=ws(pe),We=Ks(pe);c[S]=g;let Tt,ut=!1;if(Array.isArray(g)){const Gt=g;Tt=Gt[1],(null===Tt||as(Gt,Tt)>0)&&(ut=!0)}else Tt=g;if(R)if(0!==We){const oi=ws(c[Oe+1]);c[S+1]=B1(oi,Oe),0!==oi&&(c[oi+1]=Jn(c[oi+1],S)),c[Oe+1]=function K0(c,h){return 131071&c|h<<17}(c[Oe+1],S)}else c[S+1]=B1(Oe,0),0!==Oe&&(c[Oe+1]=Jn(c[Oe+1],S)),Oe=S;else c[S+1]=B1(We,0),0===Oe?Oe=S:c[We+1]=Jn(c[We+1],S),We=S;ut&&(c[S+1]=rd(c[S+1])),Xa(c,Tt,S,!0),Xa(c,Tt,S,!1),function Eu(c,h,g,S,R){const V=R?c.residualClasses:c.residualStyles;null!=V&&"string"==typeof h&&as(V,h)>=0&&(g[S+1]=H1(g[S+1]))}(h,Tt,c,S,V),pe=B1(Oe,We),V?h.classBindings=pe:h.styleBindings=pe}(R,V,h,g,pe,S)}}function Yc(c,h,g,S,R){let V=null;const pe=g.directiveEnd;let Oe=g.directiveStylingLast;for(-1===Oe?Oe=g.directiveStart:Oe++;Oe<pe&&(V=h[Oe],S=Eo(S,V.hostAttrs,R),V!==c);)Oe++;return null!==c&&(g.directiveStylingLast=Oe),S}function Eo(c,h,g){const S=g?1:2;let R=-1;if(null!==h)for(let V=0;V<h.length;V++){const pe=h[V];"number"==typeof pe?R=pe:R===S&&(Array.isArray(c)||(c=void 0===c?[]:["",c]),Ka(c,pe,!!g||h[++V]))}return void 0===c?null:c}function K2(c,h,g,S,R,V,pe,Oe){if(!(3&h.type))return;const We=c.data,ut=We[Oe+1];J2(function Q0(c){return 1==(1&c)}(ut)?Q2(We,h,g,R,Ks(ut),pe):void 0)||(J2(V)||function q0(c){return 2==(2&c)}(ut)&&(V=Q2(We,null,g,R,Oe,pe)),function Kh(c,h,g,S,R){const V=Zn(c);if(h)R?V?c.addClass(g,S):g.classList.add(S):V?c.removeClass(g,S):g.classList.remove(S);else{let pe=-1===S.indexOf("-")?void 0:os.DashCase;if(null==R)V?c.removeStyle(g,S,pe):g.style.removeProperty(S);else{const Oe="string"==typeof R&&R.endsWith("!important");Oe&&(R=R.slice(0,-10),pe|=os.Important),V?c.setStyle(g,S,R,pe):g.style.setProperty(S,R,Oe?"important":"")}}}(S,pe,ne(Vn(),g),R,V))}function Q2(c,h,g,S,R,V){const pe=null===h;let Oe;for(;R>0;){const We=c[R],ut=Array.isArray(We),Tt=ut?We[1]:We,Gt=null===Tt;let oi=g[R+1];oi===Sn&&(oi=Gt?ei:void 0);let gi=Gt?Pl(oi,S):Tt===S?oi:void 0;if(ut&&!J2(gi)&&(gi=Pl(We,S)),J2(gi)&&(Oe=gi,pe))return Oe;const Oi=c[R+1];R=pe?ws(Oi):Ks(Oi)}if(null!==h){let We=V?h.residualClasses:h.residualStyles;null!=We&&(Oe=Pl(We,S))}return Oe}function J2(c){return void 0!==c}function qr(c,h){return 0!=(c.flags&(h?16:32))}function X2(c,h=""){const g=ki(),S=Nn(),R=c+20,V=S.firstCreatePass?Wl(S,R,1,h,null):S.data[R],pe=g[R]=function F0(c,h){return Zn(c)?c.createText(h):c.createTextNode(h)}(g[11],h);Dc(S,g,pe,V),xt(V,!1)}function Kr(c){return Al("",c,""),Kr}function Al(c,h,g){const S=ki(),R=Ql(S,c,h,g);return R!==Sn&&Mo(S,Vn(),R),Al}function $s(c,h,g,S,R){const V=ki(),pe=function Jl(c,h,g,S,R,V){const Oe=bl(c,pi(),g,R);return tn(2),Oe?h+W(g)+S+W(R)+V:Sn}(V,c,h,g,S,R);return pe!==Sn&&Mo(V,Vn(),pe),$s}function Iu(c,h,g,S,R,V,pe){const Oe=ki(),We=function Xl(c,h,g,S,R,V,pe,Oe){const ut=K1(c,pi(),g,R,pe);return tn(3),ut?h+W(g)+S+W(R)+V+W(pe)+Oe:Sn}(Oe,c,h,g,S,R,V,pe);return We!==Sn&&Mo(Oe,Vn(),We),Iu}function $2(c,h,g,S,R,V,pe,Oe,We){const ut=ki(),Tt=$l(ut,c,h,g,S,R,V,pe,Oe,We);return Tt!==Sn&&Mo(ut,Vn(),Tt),$2}function a0(c,h,g){Ds(Ka,ts,Ql(ki(),c,h,g),!0)}function ih(c,h,g){const S=ki();return ls(S,Zi(),h)&&As(Nn(),Hi(),S,c,h,S[11],g,!0),ih}function Zu(c,h,g){const S=ki();if(ls(S,Zi(),h)){const V=Nn(),pe=Hi();As(V,pe,S,c,h,Ld(zt(V.data),pe,S),g,!0)}return Zu}const El=void 0;var D3=["en",[["a","p"],["AM","PM"],El],[["AM","PM"],El,El],[["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"]],El,[["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"]],El,[["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}",El,"{1} 'at' {0}",El],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Vu(c){const g=Math.floor(Math.abs(c)),S=c.toString().replace(/^[^.]*\.?/,"").length;return 1===g&&0===S?1:5}];let sc={};function l0(c){const h=function L3(c){return c.toLowerCase().replace(/_/g,"-")}(c);let g=b4(h);if(g)return g;const S=h.split("-")[0];if(g=b4(S),g)return g;if("en"===S)return D3;throw new Error(`Missing locale data for the locale "${c}".`)}function Gu(c){return l0(c)[wn.PluralCase]}function b4(c){return c in sc||(sc[c]=Ft.ng&&Ft.ng.common&&Ft.ng.common.locales&&Ft.ng.common.locales[c]),sc[c]}var wn=(()=>((wn=wn||{})[wn.LocaleId=0]="LocaleId",wn[wn.DayPeriodsFormat=1]="DayPeriodsFormat",wn[wn.DayPeriodsStandalone=2]="DayPeriodsStandalone",wn[wn.DaysFormat=3]="DaysFormat",wn[wn.DaysStandalone=4]="DaysStandalone",wn[wn.MonthsFormat=5]="MonthsFormat",wn[wn.MonthsStandalone=6]="MonthsStandalone",wn[wn.Eras=7]="Eras",wn[wn.FirstDayOfWeek=8]="FirstDayOfWeek",wn[wn.WeekendRange=9]="WeekendRange",wn[wn.DateFormat=10]="DateFormat",wn[wn.TimeFormat=11]="TimeFormat",wn[wn.DateTimeFormat=12]="DateTimeFormat",wn[wn.NumberSymbols=13]="NumberSymbols",wn[wn.NumberFormats=14]="NumberFormats",wn[wn.CurrencyCode=15]="CurrencyCode",wn[wn.CurrencySymbol=16]="CurrencySymbol",wn[wn.CurrencyName=17]="CurrencyName",wn[wn.Currencies=18]="Currencies",wn[wn.Directionality=19]="Directionality",wn[wn.PluralCase=20]="PluralCase",wn[wn.ExtraData=21]="ExtraData",wn))();const c0="en-US";let rh=c0;function X3(c,h,g,S,R){if(c=O(c),Array.isArray(c))for(let V=0;V<c.length;V++)X3(c[V],h,g,S,R);else{const V=Nn(),pe=ki();let Oe=Hr(c)?c:O(c.provide),We=Rd(c);const ut=fr(),Tt=1048575&ut.providerIndexes,Gt=ut.directiveStart,oi=ut.providerIndexes>>20;if(Hr(c)||!c.multi){const gi=new us(We,R,Zc),Oi=ep(Oe,h,R?Tt:Tt+oi,Gt);-1===Oi?(an(Ot(ut,pe),V,Oe),$3(V,c,h.length),h.push(Oe),ut.directiveStart++,ut.directiveEnd++,R&&(ut.providerIndexes+=1048576),g.push(gi),pe.push(gi)):(g[Oi]=gi,pe[Oi]=gi)}else{const gi=ep(Oe,h,Tt+oi,Gt),Oi=ep(Oe,h,Tt,Tt+oi),Ji=gi>=0&&g[gi],rn=Oi>=0&&g[Oi];if(R&&!rn||!R&&!Ji){an(Ot(ut,pe),V,Oe);const pn=function M8(c,h,g,S,R){const V=new us(c,g,Zc);return V.multi=[],V.index=h,V.componentProviders=0,zp(V,R,S&&!g),V}(R?C8:x8,g.length,R,S,We);!R&&rn&&(g[Oi].providerFactory=pn),$3(V,c,h.length,0),h.push(Oe),ut.directiveStart++,ut.directiveEnd++,R&&(ut.providerIndexes+=1048576),g.push(pn),pe.push(pn)}else $3(V,c,gi>-1?gi:Oi,zp(g[R?Oi:gi],We,!R&&S));!R&&S&&rn&&g[Oi].componentProviders++}}}function $3(c,h,g,S){const R=Hr(h),V=function j1(c){return!!c.useClass}(h);if(R||V){const We=(V?O(h.useClass):h).prototype.ngOnDestroy;if(We){const ut=c.destroyHooks||(c.destroyHooks=[]);if(!R&&h.multi){const Tt=ut.indexOf(g);-1===Tt?ut.push(g,[S,We]):ut[Tt+1].push(S,We)}else ut.push(g,We)}}}function zp(c,h,g){return g&&c.componentProviders++,c.multi.push(h)-1}function ep(c,h,g,S){for(let R=g;R<S;R++)if(h[R]===c)return R;return-1}function x8(c,h,g,S){return tp(this.multi,[])}function C8(c,h,g,S){const R=this.multi;let V;if(this.providerFactory){const pe=this.providerFactory.componentProviders,Oe=Ps(g,g[1],this.providerFactory.index,S);V=Oe.slice(0,pe),tp(R,V);for(let We=pe;We<Oe.length;We++)V.push(Oe[We])}else V=[],tp(R,V);return V}function tp(c,h){for(let g=0;g<c.length;g++)h.push((0,c[g])());return h}function Up(c,h=[]){return g=>{g.providersResolver=(S,R)=>function b8(c,h,g){const S=Nn();if(S.firstCreatePass){const R=dn(c);X3(g,S.data,S.blueprint,R,!0),X3(h,S.data,S.blueprint,R,!1)}}(S,R?R(c):c,h)}}class Zp{}class E8{resolveComponentFactory(h){throw function A8(c){const h=Error(`No component factory found for ${N(c)}. Did you add it to @NgModule.entryComponents?`);return h.ngComponent=c,h}(h)}}let T4=(()=>{class c{}return c.NULL=new E8,c})();function T8(){return Ku(fr(),ki())}function Ku(c,h){return new S4(Qe(c,h))}let S4=(()=>{class c{constructor(g){this.nativeElement=g}}return c.__NG_ELEMENT_ID__=T8,c})();function S8(c){return c instanceof S4?c.nativeElement:c}class Gp{}let D8=(()=>{class c{}return c.__NG_ELEMENT_ID__=()=>function O8(){const c=ki(),g=ti(fr().index,c);return function L8(c){return c[11]}(_n(g)?g:c)}(),c})(),I8=(()=>{class c{}return c.\u0275prov=Ce({token:c,providedIn:"root",factory:()=>null}),c})();class Yp{constructor(h){this.full=h,this.major=h.split(".")[0],this.minor=h.split(".")[1],this.patch=h.split(".").slice(2).join(".")}}const k8=new Yp("13.0.3"),ip={};function F3(c,h,g,S,R=!1){for(;null!==g;){const V=h[g.index];if(null!==V&&S.push(Xe(V)),Pn(V))for(let Oe=10;Oe<V.length;Oe++){const We=V[Oe],ut=We[1].firstChild;null!==ut&&F3(We[1],We,ut,S)}const pe=g.type;if(8&pe)F3(c,h,g.child,S);else if(32&pe){const Oe=C1(g,h);let We;for(;We=Oe();)S.push(We)}else if(16&pe){const Oe=V0(h,g);if(Array.isArray(Oe))S.push(...Oe);else{const We=Tc(h[16]);F3(We[1],We,Oe,S,!0)}}g=R?g.projectionNext:g.next}return S}class D4{constructor(h,g){this._lView=h,this._cdRefInjectingView=g,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const h=this._lView,g=h[1];return F3(g,h,g.firstChild,[])}get context(){return this._lView[8]}set context(h){this._lView[8]=h}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const h=this._lView[3];if(Pn(h)){const g=h[8],S=g?g.indexOf(this):-1;S>-1&&(A1(h,S),Il(g,S))}this._attachedToViewContainer=!1}pl(this._lView[1],this._lView)}onDestroy(h){gd(this._lView[1],this._lView,null,h)}markForCheck(){Y1(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){m2(this._lView[1],this._lView,this.context)}checkNoChanges(){!function f6(c,h,g){Qt(!0);try{m2(c,h,g)}finally{Qt(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Pf(c,h){Vl(c,h,h[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(h){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=h}}class P8 extends D4{constructor(h){super(h),this._view=h}detectChanges(){Sd(this._view)}checkNoChanges(){!function p6(c){Qt(!0);try{Sd(c)}finally{Qt(!1)}}(this._view)}get context(){return null}}class Wp extends T4{constructor(h){super(),this.ngModule=h}resolveComponentFactory(h){const g=At(h);return new np(g,this.ngModule)}}function jp(c){const h=[];for(let g in c)c.hasOwnProperty(g)&&h.push({propName:c[g],templateName:g});return h}const R8=new Yr("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Bh});class np extends Zp{constructor(h,g){super(),this.componentDef=h,this.ngModule=g,this.componentType=h.type,this.selector=function id(c){return c.map(zf).join(",")}(h.selectors),this.ngContentSelectors=h.ngContentSelectors?h.ngContentSelectors:[],this.isBoundToModule=!!g}get inputs(){return jp(this.componentDef.inputs)}get outputs(){return jp(this.componentDef.outputs)}create(h,g,S,R){const V=(R=R||this.ngModule)?function F8(c,h){return{get:(g,S,R)=>{const V=c.get(g,ip,R);return V!==ip||S===ip?V:h.get(g,S,R)}}}(h,R.injector):h,pe=V.get(Gp,ns),Oe=V.get(I8,null),We=pe.createRenderer(null,this.componentDef),ut=this.componentDef.selectors[0][0]||"div",Tt=S?function md(c,h,g){if(Zn(c))return c.selectRootElement(h,g===ft.ShadowDom);let S="string"==typeof h?c.querySelector(h):h;return S.textContent="",S}(We,S,this.componentDef.encapsulation):w1(pe.createRenderer(null,this.componentDef),ut,function N8(c){const h=c.toLowerCase();return"svg"===h?Sr:"math"===h?"http://www.w3.org/1998/MathML/":null}(ut)),Gt=this.componentDef.onPush?576:528,oi=function jd(c,h){return{components:[],scheduler:c||Bh,clean:m6,playerHandler:h||null,flags:0}}(),gi=Fc(0,null,null,1,0,null,null,null,null,null),Oi=Pc(null,gi,oi,Gt,null,null,pe,We,Oe,V);let Ji,rn;Ki(Oi);try{const pn=function Yd(c,h,g,S,R,V){const pe=g[1];g[20]=c;const We=Wl(pe,20,2,"#host",null),ut=We.mergedAttrs=h.hostAttrs;null!==ut&&(W1(We,ut,!0),null!==c&&(Lo(R,c,ut),null!==We.classes&&W0(R,c,We.classes),null!==We.styles&&Qh(R,c,We.styles)));const Tt=S.createRenderer(c,h),Gt=Pc(g,fd(h),null,h.onPush?64:16,g[20],We,S,Tt,V||null,null);return pe.firstCreatePass&&(an(Ot(We,g),pe,h.type),Cd(pe,We),Md(We,g.length,1)),G1(g,Gt),g[20]=Gt}(Tt,this.componentDef,Oi,pe,We);if(Tt)if(S)Lo(We,Tt,["ng-version",k8.full]);else{const{attrs:Ri,classes:Tn}=function nd(c){const h=[],g=[];let S=1,R=2;for(;S<c.length;){let V=c[S];if("string"==typeof V)2===R?""!==V&&h.push(V,c[++S]):8===R&&g.push(V);else{if(!Er(R))break;R=V}S++}return{attrs:h,classes:g}}(this.componentDef.selectors[0]);Ri&&Lo(We,Tt,Ri),Tn&&Tn.length>0&&W0(We,Tt,Tn.join(" "))}if(rn=mi(gi,20),void 0!==g){const Ri=rn.projection=[];for(let Tn=0;Tn<this.ngContentSelectors.length;Tn++){const rr=g[Tn];Ri.push(null!=rr?Array.from(rr):null)}}Ji=function Wd(c,h,g,S,R){const V=g[1],pe=function Bc(c,h,g){const S=fr();c.firstCreatePass&&(g.providersResolver&&g.providersResolver(g),wd(c,S,h,Nc(c,h,1,null),g));const R=Ps(h,c,S.directiveStart,S);ss(R,h);const V=Qe(S,h);return V&&ss(V,h),R}(V,g,h);if(S.components.push(pe),c[8]=pe,R&&R.forEach(We=>We(pe,h)),h.contentQueries){const We=fr();h.contentQueries(1,pe,We.directiveStart)}const Oe=fr();return!V.firstCreatePass||null===h.hostBindings&&null===h.hostAttrs||(mr(Oe.index),u2(g[1],Oe,0,Oe.directiveStart,Oe.directiveEnd,h),xd(h,pe)),pe}(pn,this.componentDef,Oi,oi,[k6]),Jo(gi,Oi,null)}finally{Rr()}return new H8(this.componentType,Ji,Ku(rn,Oi),Oi,rn)}}class H8 extends class w8{}{constructor(h,g,S,R,V){super(),this.location=S,this._rootLView=R,this._tNode=V,this.instance=g,this.hostView=this.changeDetectorRef=new P8(R),this.componentType=h}get injector(){return new yo(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(h){this.hostView.onDestroy(h)}}class Qu{}class qp{}const Ju=new Map;class Jp extends Qu{constructor(h,g){super(),this._parent=g,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Wp(this);const S=Rt(h);this._bootstrapComponents=po(S.bootstrap),this._r3Injector=Nd(h,g,[{provide:Qu,useValue:this},{provide:T4,useValue:this.componentFactoryResolver}],N(h)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(h)}get(h,g=Rs.THROW_IF_NOT_FOUND,S=he.Default){return h===Rs||h===Qu||h===v2?this:this._r3Injector.get(h,g,S)}destroy(){const h=this._r3Injector;!h.destroyed&&h.destroy(),this.destroyCbs.forEach(g=>g()),this.destroyCbs=null}onDestroy(h){this.destroyCbs.push(h)}}class rp extends qp{constructor(h){super(),this.moduleType=h,null!==Rt(h)&&function U8(c){const h=new Set;!function g(S){const R=Rt(S,!0),V=R.id;null!==V&&(function Kp(c,h,g){if(h&&h!==g)throw new Error(`Duplicate module registered for ${c} - ${N(h)} vs ${N(h.name)}`)}(V,Ju.get(V),S),Ju.set(V,S));const pe=po(R.imports);for(const Oe of pe)h.has(Oe)||(h.add(Oe),g(Oe))}(c)}(h)}create(h){return new Jp(this.moduleType,h)}}function Xp(c,h,g){const S=Xt()+c,R=ki();return R[S]===Sn?_o(R,S,g?h.call(g):h()):function Uc(c,h){return c[h]}(R,S)}function $p(c,h,g,S){return im(ki(),Xt(),c,h,g,S)}function em(c,h,g,S,R){return nm(ki(),Xt(),c,h,g,S,R)}function tm(c,h,g,S,R,V){return rm(ki(),Xt(),c,h,g,S,R,V)}function L4(c,h){const g=c[h];return g===Sn?void 0:g}function im(c,h,g,S,R,V){const pe=h+g;return ls(c,pe,R)?_o(c,pe+1,V?S.call(V,R):S(R)):L4(c,pe+1)}function nm(c,h,g,S,R,V,pe){const Oe=h+g;return bl(c,Oe,R,V)?_o(c,Oe+2,pe?S.call(pe,R,V):S(R,V)):L4(c,Oe+2)}function rm(c,h,g,S,R,V,pe,Oe){const We=h+g;return K1(c,We,R,V,pe)?_o(c,We+3,Oe?S.call(Oe,R,V,pe):S(R,V,pe)):L4(c,We+3)}function om(c,h){const g=Nn();let S;const R=c+20;g.firstCreatePass?(S=function q8(c,h){if(h)for(let g=h.length-1;g>=0;g--){const S=h[g];if(c===S.name)return S}}(h,g.pipeRegistry),g.data[R]=S,S.onDestroy&&(g.destroyHooks||(g.destroyHooks=[])).push(R,S.onDestroy)):S=g.data[R];const V=S.factory||(S.factory=Pr(S.type)),pe=q(Zc);try{const Oe=al(!1),We=V();return al(Oe),function Y6(c,h,g,S){g>=c.data.length&&(c.data[g]=null,c.blueprint[g]=null),h[g]=S}(g,ki(),R,We),We}finally{q(pe)}}function lm(c,h,g){const S=c+20,R=ki(),V=Ct(R,S);return O4(R,S)?im(R,Xt(),h,V.transform,g,V):V.transform(g)}function cm(c,h,g,S){const R=c+20,V=ki(),pe=Ct(V,R);return O4(V,R)?nm(V,Xt(),h,pe.transform,g,S,pe):pe.transform(g,S)}function hm(c,h,g,S,R){const V=c+20,pe=ki(),Oe=Ct(pe,V);return O4(pe,V)?rm(pe,Xt(),h,Oe.transform,g,S,R,Oe):Oe.transform(g,S,R)}function O4(c,h){return c[1].data[h].pure}function ap(c){return h=>{setTimeout(c,void 0,h)}}const lc=class J8 extends e.x{constructor(h=!1){super(),this.__isAsync=h}emit(h){super.next(h)}subscribe(h,g,S){var R,V,pe;let Oe=h,We=g||(()=>null),ut=S;if(h&&"object"==typeof h){const Gt=h;Oe=null===(R=Gt.next)||void 0===R?void 0:R.bind(Gt),We=null===(V=Gt.error)||void 0===V?void 0:V.bind(Gt),ut=null===(pe=Gt.complete)||void 0===pe?void 0:pe.bind(Gt)}this.__isAsync&&(We=ap(We),Oe&&(Oe=ap(Oe)),ut&&(ut=ap(ut)));const Tt=super.subscribe({next:Oe,error:We,complete:ut});return h instanceof t.w0&&h.add(Tt),Tt}};function X8(){return this._results[ql()]()}class B3{constructor(h=!1){this._emitDistinctChangesOnly=h,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const g=ql(),S=B3.prototype;S[g]||(S[g]=X8)}get changes(){return this._changes||(this._changes=new lc)}get(h){return this._results[h]}map(h){return this._results.map(h)}filter(h){return this._results.filter(h)}find(h){return this._results.find(h)}reduce(h,g){return this._results.reduce(h,g)}forEach(h){this._results.forEach(h)}some(h){return this._results.some(h)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(h,g){const S=this;S.dirty=!1;const R=ps(h);(this._changesDetected=!function Ys(c,h,g){if(c.length!==h.length)return!1;for(let S=0;S<c.length;S++){let R=c[S],V=h[S];if(g&&(R=g(R),V=g(V)),V!==R)return!1}return!0}(S._results,R,g))&&(S._results=R,S.length=R.length,S.last=R[this.length-1],S.first=R[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 I4=(()=>{class c{}return c.__NG_ELEMENT_ID__=tg,c})();const $8=I4,eg=class extends $8{constructor(h,g,S){super(),this._declarationLView=h,this._declarationTContainer=g,this.elementRef=S}createEmbeddedView(h){const g=this._declarationTContainer.tViews,S=Pc(this._declarationLView,g,h,16,null,g.declTNode,null,null,null,null);S[17]=this._declarationLView[this._declarationTContainer.index];const V=this._declarationLView[19];return null!==V&&(S[19]=V.createEmbeddedView(g)),Jo(g,S,h),new D4(S)}};function tg(){return H3(fr(),ki())}function H3(c,h){return 4&c.type?new eg(h,c,Ku(c,h)):null}let z3=(()=>{class c{}return c.__NG_ELEMENT_ID__=ig,c})();function ig(){return fm(fr(),ki())}const ng=z3,dm=class extends ng{constructor(h,g,S){super(),this._lContainer=h,this._hostTNode=g,this._hostLView=S}get element(){return Ku(this._hostTNode,this._hostLView)}get injector(){return new yo(this._hostTNode,this._hostLView)}get parentInjector(){const h=Ei(this._hostTNode,this._hostLView);if(Io(h)){const g=Gs(h,this._hostLView),S=ro(h);return new yo(g[1].data[S+8],g)}return new yo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(h){const g=um(this._lContainer);return null!==g&&g[h]||null}get length(){return this._lContainer.length-10}createEmbeddedView(h,g,S){const R=h.createEmbeddedView(g||{});return this.insert(R,S),R}createComponent(h,g,S,R,V){const pe=h&&!function oo(c){return"function"==typeof c}(h);let Oe;if(pe)Oe=g;else{const Gt=g||{};Oe=Gt.index,S=Gt.injector,R=Gt.projectableNodes,V=Gt.ngModuleRef}const We=pe?h:new np(At(h)),ut=S||this.parentInjector;if(!V&&null==We.ngModule&&ut){const Gt=ut.get(Qu,null);Gt&&(V=Gt)}const Tt=We.create(ut,R,void 0,V);return this.insert(Tt.hostView,Oe),Tt}insert(h,g){const S=h._lView,R=S[1];if(function xi(c){return Pn(c[3])}(S)){const Tt=this.indexOf(h);if(-1!==Tt)this.detach(Tt);else{const Gt=S[3],oi=new dm(Gt,Gt[6],Gt[3]);oi.detach(oi.indexOf(h))}}const V=this._adjustIndex(g),pe=this._lContainer;!function Rf(c,h,g,S){const R=10+S,V=g.length;S>0&&(g[R-1][4]=h),S<V-10?(h[4]=g[R],s1(g,10+S,h)):(g.push(h),h[4]=null),h[3]=g;const pe=h[17];null!==pe&&g!==pe&&function Vh(c,h){const g=c[9];h[16]!==h[3][3][16]&&(c[2]=!0),null===g?c[9]=[h]:g.push(h)}(pe,h);const Oe=h[19];null!==Oe&&Oe.insertView(c),h[2]|=128}(R,S,pe,V);const Oe=L1(V,pe),We=S[11],ut=T1(We,pe[7]);return null!==ut&&function B0(c,h,g,S,R,V){S[0]=R,S[6]=h,Vl(c,S,g,1,R,V)}(R,pe[6],We,S,ut,Oe),h.attachToViewContainerRef(),s1(sp(pe),V,h),h}move(h,g){return this.insert(h,g)}indexOf(h){const g=um(this._lContainer);return null!==g?g.indexOf(h):-1}remove(h){const g=this._adjustIndex(h,-1),S=A1(this._lContainer,g);S&&(Il(sp(this._lContainer),g),pl(S[1],S))}detach(h){const g=this._adjustIndex(h,-1),S=A1(this._lContainer,g);return S&&null!=Il(sp(this._lContainer),g)?new D4(S):null}_adjustIndex(h,g=0){return null==h?this.length+g:h}};function um(c){return c[8]}function sp(c){return c[8]||(c[8]=[])}function fm(c,h){let g;const S=h[c.index];if(Pn(S))g=S;else{let R;if(8&c.type)R=Xe(S);else{const V=h[11];R=V.createComment("");const pe=Qe(c,h);Ms(V,T1(V,pe),R,function S1(c,h){return Zn(c)?c.nextSibling(h):h.nextSibling}(V,pe),!1)}h[c.index]=g=Ed(S,h,R,c),G1(h,g)}return new dm(g,c,h)}class op{constructor(h){this.queryList=h,this.matches=null}clone(){return new op(this.queryList)}setDirty(){this.queryList.setDirty()}}class lp{constructor(h=[]){this.queries=h}createEmbeddedView(h){const g=h.queries;if(null!==g){const S=null!==h.contentQueries?h.contentQueries[0]:g.length,R=[];for(let V=0;V<S;V++){const pe=g.getByIndex(V);R.push(this.queries[pe.indexInDeclarationView].clone())}return new lp(R)}return null}insertView(h){this.dirtyQueriesWithMatches(h)}detachView(h){this.dirtyQueriesWithMatches(h)}dirtyQueriesWithMatches(h){for(let g=0;g<this.queries.length;g++)null!==Cm(h,g).matches&&this.queries[g].setDirty()}}class pm{constructor(h,g,S=null){this.predicate=h,this.flags=g,this.read=S}}class cp{constructor(h=[]){this.queries=h}elementStart(h,g){for(let S=0;S<this.queries.length;S++)this.queries[S].elementStart(h,g)}elementEnd(h){for(let g=0;g<this.queries.length;g++)this.queries[g].elementEnd(h)}embeddedTView(h){let g=null;for(let S=0;S<this.length;S++){const R=null!==g?g.length:0,V=this.getByIndex(S).embeddedTView(h,R);V&&(V.indexInDeclarationView=S,null!==g?g.push(V):g=[V])}return null!==g?new cp(g):null}template(h,g){for(let S=0;S<this.queries.length;S++)this.queries[S].template(h,g)}getByIndex(h){return this.queries[h]}get length(){return this.queries.length}track(h){this.queries.push(h)}}class hp{constructor(h,g=-1){this.metadata=h,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=g}elementStart(h,g){this.isApplyingToNode(g)&&this.matchTNode(h,g)}elementEnd(h){this._declarationNodeIndex===h.index&&(this._appliesToNextNode=!1)}template(h,g){this.elementStart(h,g)}embeddedTView(h,g){return this.isApplyingToNode(h)?(this.crossesNgTemplate=!0,this.addMatch(-h.index,g),new hp(this.metadata)):null}isApplyingToNode(h){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const g=this._declarationNodeIndex;let S=h.parent;for(;null!==S&&8&S.type&&S.index!==g;)S=S.parent;return g===(null!==S?S.index:-1)}return this._appliesToNextNode}matchTNode(h,g){const S=this.metadata.predicate;if(Array.isArray(S))for(let R=0;R<S.length;R++){const V=S[R];this.matchTNodeWithReadOption(h,g,sg(g,V)),this.matchTNodeWithReadOption(h,g,fs(g,h,V,!1,!1))}else S===I4?4&g.type&&this.matchTNodeWithReadOption(h,g,-1):this.matchTNodeWithReadOption(h,g,fs(g,h,S,!1,!1))}matchTNodeWithReadOption(h,g,S){if(null!==S){const R=this.metadata.read;if(null!==R)if(R===S4||R===z3||R===I4&&4&g.type)this.addMatch(g.index,-2);else{const V=fs(g,h,R,!1,!1);null!==V&&this.addMatch(g.index,V)}else this.addMatch(g.index,S)}}addMatch(h,g){null===this.matches?this.matches=[h,g]:this.matches.push(h,g)}}function sg(c,h){const g=c.localNames;if(null!==g)for(let S=0;S<g.length;S+=2)if(g[S]===h)return g[S+1];return null}function lg(c,h,g,S){return-1===g?function og(c,h){return 11&c.type?Ku(c,h):4&c.type?H3(c,h):null}(h,c):-2===g?function cg(c,h,g){return g===S4?Ku(h,c):g===I4?H3(h,c):g===z3?fm(h,c):void 0}(c,h,S):Ps(c,c[1],g,h)}function mm(c,h,g,S){const R=h[19].queries[S];if(null===R.matches){const V=c.data,pe=g.matches,Oe=[];for(let We=0;We<pe.length;We+=2){const ut=pe[We];Oe.push(ut<0?null:lg(h,V[ut],pe[We+1],g.metadata.read))}R.matches=Oe}return R.matches}function dp(c,h,g,S){const R=c.queries.getByIndex(g),V=R.matches;if(null!==V){const pe=mm(c,h,R,g);for(let Oe=0;Oe<V.length;Oe+=2){const We=V[Oe];if(We>0)S.push(pe[Oe/2]);else{const ut=V[Oe+1],Tt=h[-We];for(let Gt=10;Gt<Tt.length;Gt++){const oi=Tt[Gt];oi[17]===oi[3]&&dp(oi[1],oi,ut,S)}if(null!==Tt[9]){const Gt=Tt[9];for(let oi=0;oi<Gt.length;oi++){const gi=Gt[oi];dp(gi[1],gi,ut,S)}}}}}return S}function gm(c){const h=ki(),g=Nn(),S=ri();vi(S+1);const R=Cm(g,S);if(c.dirty&&bt(h)===(2==(2&R.metadata.flags))){if(null===R.matches)c.reset([]);else{const V=R.crossesNgTemplate?dp(g,h,S,[]):mm(g,h,R,S);c.reset(V,S8),c.notifyOnChanges()}return!0}return!1}function _m(c,h,g){const S=Nn();S.firstCreatePass&&(xm(S,new pm(c,h,g),-1),2==(2&h)&&(S.staticViewQueries=!0)),bm(S,ki(),h)}function vm(c,h,g,S){const R=Nn();if(R.firstCreatePass){const V=fr();xm(R,new pm(h,g,S),V.index),function dg(c,h){const g=c.contentQueries||(c.contentQueries=[]);h!==(g.length?g[g.length-1]:-1)&&g.push(c.queries.length-1,h)}(R,c),2==(2&g)&&(R.staticContentQueries=!0)}bm(R,ki(),g)}function ym(){return function hg(c,h){return c[19].queries[h].queryList}(ki(),ri())}function bm(c,h,g){const S=new B3(4==(4&g));gd(c,h,S,S.destroy),null===h[19]&&(h[19]=new lp),h[19].queries.push(new op(S))}function xm(c,h,g){null===c.queries&&(c.queries=new cp),c.queries.track(new hp(h,g))}function Cm(c,h){return c.queries.getByIndex(h)}function Mm(c,h){return H3(c,h)}function V3(...c){}const _p=new Yr("Application Initializer");let $u=(()=>{class c{constructor(g){this.appInits=g,this.resolve=V3,this.reject=V3,this.initialized=!1,this.done=!1,this.donePromise=new Promise((S,R)=>{this.resolve=S,this.reject=R})}runInitializers(){if(this.initialized)return;const g=[],S=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let R=0;R<this.appInits.length;R++){const V=this.appInits[R]();if(H2(V))g.push(V);else if(xu(V)){const pe=new Promise((Oe,We)=>{V.subscribe({complete:Oe,error:We})});g.push(pe)}}Promise.all(g).then(()=>{S()}).catch(R=>{this.reject(R)}),0===g.length&&S(),this.initialized=!0}}return c.\u0275fac=function(g){return new(g||c)(Pa(_p,8))},c.\u0275prov=Ce({token:c,factory:c.\u0275fac}),c})();const zm=new Yr("AppId"),Dg={provide:zm,useFactory:function Sg(){return`${vp()}${vp()}${vp()}`},deps:[]};function vp(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Um=new Yr("Platform Initializer"),Zm=new Yr("Platform ID"),Vm=new Yr("appBootstrapListener");let Gm=(()=>{class c{log(g){console.log(g)}warn(g){console.warn(g)}}return c.\u0275fac=function(g){return new(g||c)},c.\u0275prov=Ce({token:c,factory:c.\u0275fac}),c})();const G3=new Yr("LocaleId"),Ym=new Yr("DefaultCurrencyCode");class Lg{constructor(h,g){this.ngModuleFactory=h,this.componentFactories=g}}let yp=(()=>{class c{compileModuleSync(g){return new rp(g)}compileModuleAsync(g){return Promise.resolve(this.compileModuleSync(g))}compileModuleAndAllComponentsSync(g){const S=this.compileModuleSync(g),V=po(Rt(g).declarations).reduce((pe,Oe)=>{const We=At(Oe);return We&&pe.push(new np(We)),pe},[]);return new Lg(S,V)}compileModuleAndAllComponentsAsync(g){return Promise.resolve(this.compileModuleAndAllComponentsSync(g))}clearCache(){}clearCacheFor(g){}getModuleId(g){}}return c.\u0275fac=function(g){return new(g||c)},c.\u0275prov=Ce({token:c,factory:c.\u0275fac}),c})();const Ig=(()=>Promise.resolve(0))();function bp(c){"undefined"==typeof Zone?Ig.then(()=>{c&&c.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",c)}class So{constructor({enableLongStackTrace:h=!1,shouldCoalesceEventChangeDetection:g=!1,shouldCoalesceRunChangeDetection:S=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new lc(!1),this.onMicrotaskEmpty=new lc(!1),this.onStable=new lc(!1),this.onError=new lc(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const R=this;R._nesting=0,R._outer=R._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(R._inner=R._inner.fork(new Zone.TaskTrackingZoneSpec)),h&&Zone.longStackTraceZoneSpec&&(R._inner=R._inner.fork(Zone.longStackTraceZoneSpec)),R.shouldCoalesceEventChangeDetection=!S&&g,R.shouldCoalesceRunChangeDetection=S,R.lastRequestAnimationFrameId=-1,R.nativeRequestAnimationFrame=function kg(){let c=Ft.requestAnimationFrame,h=Ft.cancelAnimationFrame;if("undefined"!=typeof Zone&&c&&h){const g=c[Zone.__symbol__("OriginalDelegate")];g&&(c=g);const S=h[Zone.__symbol__("OriginalDelegate")];S&&(h=S)}return{nativeRequestAnimationFrame:c,nativeCancelAnimationFrame:h}}().nativeRequestAnimationFrame,function Rg(c){const h=()=>{!function Ng(c){c.isCheckStableRunning||-1!==c.lastRequestAnimationFrameId||(c.lastRequestAnimationFrameId=c.nativeRequestAnimationFrame.call(Ft,()=>{c.fakeTopEventTask||(c.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{c.lastRequestAnimationFrameId=-1,Cp(c),c.isCheckStableRunning=!0,xp(c),c.isCheckStableRunning=!1},void 0,()=>{},()=>{})),c.fakeTopEventTask.invoke()}),Cp(c))}(c)};c._inner=c._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(g,S,R,V,pe,Oe)=>{try{return Wm(c),g.invokeTask(R,V,pe,Oe)}finally{(c.shouldCoalesceEventChangeDetection&&"eventTask"===V.type||c.shouldCoalesceRunChangeDetection)&&h(),jm(c)}},onInvoke:(g,S,R,V,pe,Oe,We)=>{try{return Wm(c),g.invoke(R,V,pe,Oe,We)}finally{c.shouldCoalesceRunChangeDetection&&h(),jm(c)}},onHasTask:(g,S,R,V)=>{g.hasTask(R,V),S===R&&("microTask"==V.change?(c._hasPendingMicrotasks=V.microTask,Cp(c),xp(c)):"macroTask"==V.change&&(c.hasPendingMacrotasks=V.macroTask))},onHandleError:(g,S,R,V)=>(g.handleError(R,V),c.runOutsideAngular(()=>c.onError.emit(V)),!1)})}(R)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!So.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(So.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(h,g,S){return this._inner.run(h,g,S)}runTask(h,g,S,R){const V=this._inner,pe=V.scheduleEventTask("NgZoneEvent: "+R,h,Pg,V3,V3);try{return V.runTask(pe,g,S)}finally{V.cancelTask(pe)}}runGuarded(h,g,S){return this._inner.runGuarded(h,g,S)}runOutsideAngular(h){return this._outer.run(h)}}const Pg={};function xp(c){if(0==c._nesting&&!c.hasPendingMicrotasks&&!c.isStable)try{c._nesting++,c.onMicrotaskEmpty.emit(null)}finally{if(c._nesting--,!c.hasPendingMicrotasks)try{c.runOutsideAngular(()=>c.onStable.emit(null))}finally{c.isStable=!0}}}function Cp(c){c.hasPendingMicrotasks=!!(c._hasPendingMicrotasks||(c.shouldCoalesceEventChangeDetection||c.shouldCoalesceRunChangeDetection)&&-1!==c.lastRequestAnimationFrameId)}function Wm(c){c._nesting++,c.isStable&&(c.isStable=!1,c.onUnstable.emit(null))}function jm(c){c._nesting--,xp(c)}class Fg{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new lc,this.onMicrotaskEmpty=new lc,this.onStable=new lc,this.onError=new lc}run(h,g,S){return h.apply(g,S)}runGuarded(h,g,S){return h.apply(g,S)}runOutsideAngular(h){return h()}runTask(h,g,S,R){return h.apply(g,S)}}let qm=(()=>{class c{constructor(g){this._ngZone=g,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),g.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{So.assertNotInAngularZone(),bp(()=>{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())bp(()=>{for(;0!==this._callbacks.length;){let g=this._callbacks.pop();clearTimeout(g.timeoutId),g.doneCb(this._didWork)}this._didWork=!1});else{let g=this.getPendingTasks();this._callbacks=this._callbacks.filter(S=>!S.updateCb||!S.updateCb(g)||(clearTimeout(S.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(g=>({source:g.source,creationLocation:g.creationLocation,data:g.data})):[]}addCallback(g,S,R){let V=-1;S&&S>0&&(V=setTimeout(()=>{this._callbacks=this._callbacks.filter(pe=>pe.timeoutId!==V),g(this._didWork,this.getPendingTasks())},S)),this._callbacks.push({doneCb:g,timeoutId:V,updateCb:R})}whenStable(g,S,R){if(R&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(g,S,R),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(g,S,R){return[]}}return c.\u0275fac=function(g){return new(g||c)(Pa(So))},c.\u0275prov=Ce({token:c,factory:c.\u0275fac}),c})(),Km=(()=>{class c{constructor(){this._applications=new Map,Mp.addToWindow(this)}registerApplication(g,S){this._applications.set(g,S)}unregisterApplication(g){this._applications.delete(g)}unregisterAllApplications(){this._applications.clear()}getTestability(g){return this._applications.get(g)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(g,S=!0){return Mp.findTestabilityInTree(this,g,S)}}return c.\u0275fac=function(g){return new(g||c)},c.\u0275prov=Ce({token:c,factory:c.\u0275fac}),c})();class Bg{addToWindow(h){}findTestabilityInTree(h,g,S){return null}}function Hg(c){Mp=c}let Dl,Mp=new Bg;const Qm=new Yr("AllowMultipleToken");class Zg{constructor(h,g){this.name=h,this.token=g}}function Jm(c,h,g=[]){const S=`Platform: ${h}`,R=new Yr(S);return(V=[])=>{let pe=Xm();if(!pe||pe.injector.get(Qm,!1))if(c)c(g.concat(V).concat({provide:R,useValue:!0}));else{const Oe=g.concat(V).concat({provide:R,useValue:!0},{provide:y2,useValue:"platform"});!function Vg(c){if(Dl&&!Dl.destroyed&&!Dl.injector.get(Qm,!1))throw new w("400","");Dl=c.get($m);const h=c.get(Um,null);h&&h.forEach(g=>g())}(Rs.create({providers:Oe,name:S}))}return function Gg(c){const h=Xm();if(!h)throw new w("401","");return h}()}}function Xm(){return Dl&&!Dl.destroyed?Dl:null}let $m=(()=>{class c{constructor(g){this._injector=g,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(g,S){const Oe=function Yg(c,h){let g;return g="noop"===c?new Fg:("zone.js"===c?void 0:c)||new So({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==h?void 0:h.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==h?void 0:h.ngZoneRunCoalescing)}),g}(S?S.ngZone:void 0,{ngZoneEventCoalescing:S&&S.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:S&&S.ngZoneRunCoalescing||!1}),We=[{provide:So,useValue:Oe}];return Oe.run(()=>{const ut=Rs.create({providers:We,parent:this.injector,name:g.moduleType.name}),Tt=g.create(ut),Gt=Tt.injector.get(Ec,null);if(!Gt)throw new w("402","");return Oe.runOutsideAngular(()=>{const oi=Oe.onError.subscribe({next:gi=>{Gt.handleError(gi)}});Tt.onDestroy(()=>{wp(this._modules,Tt),oi.unsubscribe()})}),function Wg(c,h,g){try{const S=g();return H2(S)?S.catch(R=>{throw h.runOutsideAngular(()=>c.handleError(R)),R}):S}catch(S){throw h.runOutsideAngular(()=>c.handleError(S)),S}}(Gt,Oe,()=>{const oi=Tt.injector.get($u);return oi.runInitializers(),oi.donePromise.then(()=>(function Wu(c){v(c,"Expected localeId to be defined"),"string"==typeof c&&(rh=c.toLowerCase().replace(/_/g,"-"))}(Tt.injector.get(G3,c0)||c0),this._moduleDoBootstrap(Tt),Tt))})})}bootstrapModule(g,S=[]){const R=e8({},S);return function zg(c,h,g){const S=new rp(g);return Promise.resolve(S)}(0,0,g).then(V=>this.bootstrapModuleFactory(V,R))}_moduleDoBootstrap(g){const S=g.injector.get(P4);if(g._bootstrapComponents.length>0)g._bootstrapComponents.forEach(R=>S.bootstrap(R));else{if(!g.instance.ngDoBootstrap)throw new w("403","");g.instance.ngDoBootstrap(S)}this._modules.push(g)}onDestroy(g){this._destroyListeners.push(g)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new w("404","");this._modules.slice().forEach(g=>g.destroy()),this._destroyListeners.forEach(g=>g()),this._destroyed=!0}get destroyed(){return this._destroyed}}return c.\u0275fac=function(g){return new(g||c)(Pa(Rs))},c.\u0275prov=Ce({token:c,factory:c.\u0275fac}),c})();function e8(c,h){return Array.isArray(h)?h.reduce(e8,c):Object.assign(Object.assign({},c),h)}let P4=(()=>{class c{constructor(g,S,R,V,pe){this._zone=g,this._injector=S,this._exceptionHandler=R,this._componentFactoryResolver=V,this._initStatus=pe,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const Oe=new y.y(ut=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{ut.next(this._stable),ut.complete()})}),We=new y.y(ut=>{let Tt;this._zone.runOutsideAngular(()=>{Tt=this._zone.onStable.subscribe(()=>{So.assertNotInAngularZone(),bp(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,ut.next(!0))})})});const Gt=this._zone.onUnstable.subscribe(()=>{So.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{ut.next(!1)}))});return()=>{Tt.unsubscribe(),Gt.unsubscribe()}});this.isStable=(0,C.T)(Oe,We.pipe((0,o.B)()))}bootstrap(g,S){if(!this._initStatus.done)throw new w("405","");let R;R=g instanceof Zp?g:this._componentFactoryResolver.resolveComponentFactory(g),this.componentTypes.push(R.componentType);const V=function Ug(c){return c.isBoundToModule}(R)?void 0:this._injector.get(Qu),Oe=R.create(Rs.NULL,[],S||R.selector,V),We=Oe.location.nativeElement,ut=Oe.injector.get(qm,null),Tt=ut&&Oe.injector.get(Km);return ut&&Tt&&Tt.registerApplication(We,ut),Oe.onDestroy(()=>{this.detachView(Oe.hostView),wp(this.components,Oe),Tt&&Tt.unregisterApplication(We)}),this._loadComponent(Oe),Oe}tick(){if(this._runningTick)throw new w("101","");try{this._runningTick=!0;for(let g of this._views)g.detectChanges()}catch(g){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(g))}finally{this._runningTick=!1}}attachView(g){const S=g;this._views.push(S),S.attachToAppRef(this)}detachView(g){const S=g;wp(this._views,S),S.detachFromAppRef()}_loadComponent(g){this.attachView(g.hostView),this.tick(),this.components.push(g),this._injector.get(Vm,[]).concat(this._bootstrapListeners).forEach(R=>R(g))}ngOnDestroy(){this._views.slice().forEach(g=>g.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return c.\u0275fac=function(g){return new(g||c)(Pa(So),Pa(Rs),Pa(Ec),Pa(T4),Pa($u))},c.\u0275prov=Ce({token:c,factory:c.\u0275fac}),c})();function wp(c,h){const g=c.indexOf(h);g>-1&&c.splice(g,1)}let i8=!0,n8=!1;function qg(){return n8=!0,i8}function Kg(){if(n8)throw new Error("Cannot enable prod mode after platform setup.");i8=!1}let Qg=(()=>{class c{}return c.__NG_ELEMENT_ID__=Jg,c})();function Jg(c){return function Xg(c,h,g){if(wi(c)&&!g){const S=ti(c.index,h);return new D4(S,S)}return 47&c.type?new D4(h[16],h):null}(fr(),ki(),16==(16&c))}class c8{constructor(){}supports(h){return zc(h)}create(h){return new r5(h)}}const n5=(c,h)=>h;class r5{constructor(h){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=h||n5}forEachItem(h){let g;for(g=this._itHead;null!==g;g=g._next)h(g)}forEachOperation(h){let g=this._itHead,S=this._removalsHead,R=0,V=null;for(;g||S;){const pe=!S||g&&g.currentIndex<d8(S,R,V)?g:S,Oe=d8(pe,R,V),We=pe.currentIndex;if(pe===S)R--,S=S._nextRemoved;else if(g=g._next,null==pe.previousIndex)R++;else{V||(V=[]);const ut=Oe-R,Tt=We-R;if(ut!=Tt){for(let oi=0;oi<ut;oi++){const gi=oi<V.length?V[oi]:V[oi]=0,Oi=gi+oi;Tt<=Oi&&Oi<ut&&(V[oi]=gi+1)}V[pe.previousIndex]=Tt-ut}}Oe!==We&&h(pe,Oe,We)}}forEachPreviousItem(h){let g;for(g=this._previousItHead;null!==g;g=g._nextPrevious)h(g)}forEachAddedItem(h){let g;for(g=this._additionsHead;null!==g;g=g._nextAdded)h(g)}forEachMovedItem(h){let g;for(g=this._movesHead;null!==g;g=g._nextMoved)h(g)}forEachRemovedItem(h){let g;for(g=this._removalsHead;null!==g;g=g._nextRemoved)h(g)}forEachIdentityChange(h){let g;for(g=this._identityChangesHead;null!==g;g=g._nextIdentityChange)h(g)}diff(h){if(null==h&&(h=[]),!zc(h))throw new Error(`Error trying to diff '${N(h)}'. Only arrays and iterables are allowed`);return this.check(h)?this:null}onDestroy(){}check(h){this._reset();let R,V,pe,g=this._itHead,S=!1;if(Array.isArray(h)){this.length=h.length;for(let Oe=0;Oe<this.length;Oe++)V=h[Oe],pe=this._trackByFn(Oe,V),null!==g&&Object.is(g.trackById,pe)?(S&&(g=this._verifyReinsertion(g,V,pe,Oe)),Object.is(g.item,V)||this._addIdentityChange(g,V)):(g=this._mismatch(g,V,pe,Oe),S=!0),g=g._next}else R=0,function V6(c,h){if(Array.isArray(c))for(let g=0;g<c.length;g++)h(c[g]);else{const g=c[ql()]();let S;for(;!(S=g.next()).done;)h(S.value)}}(h,Oe=>{pe=this._trackByFn(R,Oe),null!==g&&Object.is(g.trackById,pe)?(S&&(g=this._verifyReinsertion(g,Oe,pe,R)),Object.is(g.item,Oe)||this._addIdentityChange(g,Oe)):(g=this._mismatch(g,Oe,pe,R),S=!0),g=g._next,R++}),this.length=R;return this._truncate(g),this.collection=h,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let h;for(h=this._previousItHead=this._itHead;null!==h;h=h._next)h._nextPrevious=h._next;for(h=this._additionsHead;null!==h;h=h._nextAdded)h.previousIndex=h.currentIndex;for(this._additionsHead=this._additionsTail=null,h=this._movesHead;null!==h;h=h._nextMoved)h.previousIndex=h.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(h,g,S,R){let V;return null===h?V=this._itTail:(V=h._prev,this._remove(h)),null!==(h=null===this._unlinkedRecords?null:this._unlinkedRecords.get(S,null))?(Object.is(h.item,g)||this._addIdentityChange(h,g),this._reinsertAfter(h,V,R)):null!==(h=null===this._linkedRecords?null:this._linkedRecords.get(S,R))?(Object.is(h.item,g)||this._addIdentityChange(h,g),this._moveAfter(h,V,R)):h=this._addAfter(new a5(g,S),V,R),h}_verifyReinsertion(h,g,S,R){let V=null===this._unlinkedRecords?null:this._unlinkedRecords.get(S,null);return null!==V?h=this._reinsertAfter(V,h._prev,R):h.currentIndex!=R&&(h.currentIndex=R,this._addToMoves(h,R)),h}_truncate(h){for(;null!==h;){const g=h._next;this._addToRemovals(this._unlink(h)),h=g}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(h,g,S){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(h);const R=h._prevRemoved,V=h._nextRemoved;return null===R?this._removalsHead=V:R._nextRemoved=V,null===V?this._removalsTail=R:V._prevRemoved=R,this._insertAfter(h,g,S),this._addToMoves(h,S),h}_moveAfter(h,g,S){return this._unlink(h),this._insertAfter(h,g,S),this._addToMoves(h,S),h}_addAfter(h,g,S){return this._insertAfter(h,g,S),this._additionsTail=null===this._additionsTail?this._additionsHead=h:this._additionsTail._nextAdded=h,h}_insertAfter(h,g,S){const R=null===g?this._itHead:g._next;return h._next=R,h._prev=g,null===R?this._itTail=h:R._prev=h,null===g?this._itHead=h:g._next=h,null===this._linkedRecords&&(this._linkedRecords=new h8),this._linkedRecords.put(h),h.currentIndex=S,h}_remove(h){return this._addToRemovals(this._unlink(h))}_unlink(h){null!==this._linkedRecords&&this._linkedRecords.remove(h);const g=h._prev,S=h._next;return null===g?this._itHead=S:g._next=S,null===S?this._itTail=g:S._prev=g,h}_addToMoves(h,g){return h.previousIndex===g||(this._movesTail=null===this._movesTail?this._movesHead=h:this._movesTail._nextMoved=h),h}_addToRemovals(h){return null===this._unlinkedRecords&&(this._unlinkedRecords=new h8),this._unlinkedRecords.put(h),h.currentIndex=null,h._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=h,h._prevRemoved=null):(h._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=h),h}_addIdentityChange(h,g){return h.item=g,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=h:this._identityChangesTail._nextIdentityChange=h,h}}class a5{constructor(h,g){this.item=h,this.trackById=g,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class s5{constructor(){this._head=null,this._tail=null}add(h){null===this._head?(this._head=this._tail=h,h._nextDup=null,h._prevDup=null):(this._tail._nextDup=h,h._prevDup=this._tail,h._nextDup=null,this._tail=h)}get(h,g){let S;for(S=this._head;null!==S;S=S._nextDup)if((null===g||g<=S.currentIndex)&&Object.is(S.trackById,h))return S;return null}remove(h){const g=h._prevDup,S=h._nextDup;return null===g?this._head=S:g._nextDup=S,null===S?this._tail=g:S._prevDup=g,null===this._head}}class h8{constructor(){this.map=new Map}put(h){const g=h.trackById;let S=this.map.get(g);S||(S=new s5,this.map.set(g,S)),S.add(h)}get(h,g){const R=this.map.get(h);return R?R.get(h,g):null}remove(h){const g=h.trackById;return this.map.get(g).remove(h)&&this.map.delete(g),h}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function d8(c,h,g){const S=c.previousIndex;if(null===S)return S;let R=0;return g&&S<g.length&&(R=g[S]),S+h+R}class u8{constructor(){}supports(h){return h instanceof Map||T2(h)}create(){return new o5}}class o5{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(h){let g;for(g=this._mapHead;null!==g;g=g._next)h(g)}forEachPreviousItem(h){let g;for(g=this._previousMapHead;null!==g;g=g._nextPrevious)h(g)}forEachChangedItem(h){let g;for(g=this._changesHead;null!==g;g=g._nextChanged)h(g)}forEachAddedItem(h){let g;for(g=this._additionsHead;null!==g;g=g._nextAdded)h(g)}forEachRemovedItem(h){let g;for(g=this._removalsHead;null!==g;g=g._nextRemoved)h(g)}diff(h){if(h){if(!(h instanceof Map||T2(h)))throw new Error(`Error trying to diff '${N(h)}'. Only maps and objects are allowed`)}else h=new Map;return this.check(h)?this:null}onDestroy(){}check(h){this._reset();let g=this._mapHead;if(this._appendAfter=null,this._forEach(h,(S,R)=>{if(g&&g.key===R)this._maybeAddToChanges(g,S),this._appendAfter=g,g=g._next;else{const V=this._getOrCreateRecordForKey(R,S);g=this._insertBeforeOrAppend(g,V)}}),g){g._prev&&(g._prev._next=null),this._removalsHead=g;for(let S=g;null!==S;S=S._nextRemoved)S===this._mapHead&&(this._mapHead=null),this._records.delete(S.key),S._nextRemoved=S._next,S.previousValue=S.currentValue,S.currentValue=null,S._prev=null,S._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(h,g){if(h){const S=h._prev;return g._next=h,g._prev=S,h._prev=g,S&&(S._next=g),h===this._mapHead&&(this._mapHead=g),this._appendAfter=h,h}return this._appendAfter?(this._appendAfter._next=g,g._prev=this._appendAfter):this._mapHead=g,this._appendAfter=g,null}_getOrCreateRecordForKey(h,g){if(this._records.has(h)){const R=this._records.get(h);this._maybeAddToChanges(R,g);const V=R._prev,pe=R._next;return V&&(V._next=pe),pe&&(pe._prev=V),R._next=null,R._prev=null,R}const S=new l5(h);return this._records.set(h,S),S.currentValue=g,this._addToAdditions(S),S}_reset(){if(this.isDirty){let h;for(this._previousMapHead=this._mapHead,h=this._previousMapHead;null!==h;h=h._next)h._nextPrevious=h._next;for(h=this._changesHead;null!==h;h=h._nextChanged)h.previousValue=h.currentValue;for(h=this._additionsHead;null!=h;h=h._nextAdded)h.previousValue=h.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(h,g){Object.is(g,h.currentValue)||(h.previousValue=h.currentValue,h.currentValue=g,this._addToChanges(h))}_addToAdditions(h){null===this._additionsHead?this._additionsHead=this._additionsTail=h:(this._additionsTail._nextAdded=h,this._additionsTail=h)}_addToChanges(h){null===this._changesHead?this._changesHead=this._changesTail=h:(this._changesTail._nextChanged=h,this._changesTail=h)}_forEach(h,g){h instanceof Map?h.forEach(g):Object.keys(h).forEach(S=>g(h[S],S))}}class l5{constructor(h){this.key=h,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 f8(){return new W3([new c8])}let W3=(()=>{class c{constructor(g){this.factories=g}static create(g,S){if(null!=S){const R=S.factories.slice();g=g.concat(R)}return new c(g)}static extend(g){return{provide:c,useFactory:S=>c.create(g,S||f8()),deps:[[c,new qs,new zo]]}}find(g){const S=this.factories.find(R=>R.supports(g));if(null!=S)return S;throw new Error(`Cannot find a differ supporting object '${g}' of type '${function c5(c){return c.name||typeof c}(g)}'`)}}return c.\u0275prov=Ce({token:c,providedIn:"root",factory:f8}),c})();function p8(){return new j3([new u8])}let j3=(()=>{class c{constructor(g){this.factories=g}static create(g,S){if(S){const R=S.factories.slice();g=g.concat(R)}return new c(g)}static extend(g){return{provide:c,useFactory:S=>c.create(g,S||p8()),deps:[[c,new qs,new zo]]}}find(g){const S=this.factories.find(R=>R.supports(g));if(S)return S;throw new Error(`Cannot find a differ supporting object '${g}'`)}}return c.\u0275prov=Ce({token:c,providedIn:"root",factory:p8}),c})();const h5=[new u8],u5=new W3([new c8]),f5=new j3(h5),p5=Jm(null,"core",[{provide:Zm,useValue:"unknown"},{provide:$m,deps:[Rs]},{provide:Km,deps:[]},{provide:Gm,deps:[]}]),y5=[{provide:P4,useClass:P4,deps:[So,Rs,Ec,T4,$u]},{provide:R8,deps:[So],useFactory:function b5(c){let h=[];return c.onStable.subscribe(()=>{for(;h.length;)h.pop()()}),function(g){h.push(g)}}},{provide:$u,useClass:$u,deps:[[new zo,_p]]},{provide:yp,useClass:yp,deps:[]},Dg,{provide:W3,useFactory:function m5(){return u5},deps:[]},{provide:j3,useFactory:function g5(){return f5},deps:[]},{provide:G3,useFactory:function _5(c){return c||function v5(){return"undefined"!=typeof $localize&&$localize.locale||c0}()},deps:[[new Ho(G3),new zo,new qs]]},{provide:Ym,useValue:"USD"}];let x5=(()=>{class c{constructor(g){}}return c.\u0275fac=function(g){return new(g||c)(Pa(P4))},c.\u0275mod=ct({type:c}),c.\u0275inj=ze({providers:y5}),c})()},9042:(Ve,Q,m)=>{"use strict";function e(D){for(let A in D){let O=D[A]||"";switch(A){case"display":D.display="flex"===O?["-webkit-flex","flex"]:"inline-flex"===O?["-webkit-inline-flex","inline-flex"]:O;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":D["-webkit-"+A]=O;break;case"flex-direction":O=O||"row",D["-webkit-flex-direction"]=O,D["flex-direction"]=O;break;case"order":D.order=D["-webkit-"+A]=isNaN(+O)?"0":O}}return D}m.d(Q,{iQ:()=>y,GK:()=>e,Ar:()=>C,kt:()=>s,tj:()=>M});const t="inline",y=["row","column","row-reverse","column-reverse"];function C(D){let[A,O,E]=o(D);return function N(D,A=null,O=!1){return{display:O?"inline-flex":"flex","box-sizing":"border-box","flex-direction":D,"flex-wrap":A||null}}(A,O,E)}function o(D){D=D?D.toLowerCase():"";let[A,O,E]=D.split(" ");return y.find(P=>P===A)||(A=y[0]),O===t&&(O=E!==t?E:"",E=t),[A,l(O),!!E]}function M(D){let[A]=o(D);return A.indexOf("row")>-1}function l(D){if(D)switch(D.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":D="wrap-reverse";break;case"no":case"none":case"nowrap":D="nowrap";break;default:D="wrap"}return D}function s(D,...A){if(null==D)throw TypeError("Cannot convert undefined or null to object");for(let O of A)if(null!=O)for(let E in O)O.hasOwnProperty(E)&&(D[E]=O[E]);return D}},3270:(Ve,Q,m)=>{"use strict";m.d(Q,{Bs:()=>ie,iR:()=>Re,IR:()=>E,g5:()=>Z,WU:()=>j,yB:()=>Ge,wY:()=>W,QI:()=>_e,RK:()=>ce,Ot:()=>Ue});var e=m(5e3),t=m(9808),y=m(1135),C=m(8306),o=m(6451),M=m(7579),l=m(9042),N=m(9300),s=m(8505);const A={provide:e.tb,useFactory:function D(nt,ft){return()=>{if((0,t.NF)(ft)){const it=Array.from(nt.querySelectorAll(`[class*=${O}]`)),rt=/\bflex-layout-.+?\b/g;it.forEach(Mt=>{Mt.classList.contains(`${O}ssr`)&&Mt.parentNode?Mt.parentNode.removeChild(Mt):Mt.className.replace(rt,"")})}}},deps:[t.K0,e.Lbi],multi:!0},O="flex-layout-";let E=(()=>{class nt{}return nt.\u0275fac=function(it){return new(it||nt)},nt.\u0275mod=e.oAB({type:nt}),nt.\u0275inj=e.cJS({providers:[A]}),nt})();class P{constructor(ft=!1,it="all",rt="",Mt="",Zt=0){this.matches=ft,this.mediaQuery=it,this.mqAlias=rt,this.suffix=Mt,this.priority=Zt,this.property=""}clone(){return new P(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let w=(()=>{class nt{constructor(){this.stylesheet=new Map}addStyleToElement(it,rt,Mt){const Zt=this.stylesheet.get(it);Zt?Zt.set(rt,Mt):this.stylesheet.set(it,new Map([[rt,Mt]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(it,rt){const Mt=this.stylesheet.get(it);let Zt="";if(Mt){const Ft=Mt.get(rt);("number"==typeof Ft||"string"==typeof Ft)&&(Zt=Ft+"")}return Zt}}return nt.\u0275fac=function(it){return new(it||nt)},nt.\u0275prov=e.Yz7({token:nt,factory:nt.\u0275fac,providedIn:"root"}),nt})();const Z={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[]},j=new e.OlP("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>Z}),W=new e.OlP("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),ie=new e.OlP("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function ee(nt,ft){return nt=nt?nt.clone():new P,ft&&(nt.mqAlias=ft.alias,nt.mediaQuery=ft.mediaQuery,nt.suffix=ft.suffix,nt.priority=ft.priority),nt}class _e{constructor(){this.shouldCache=!0}sideEffect(ft,it,rt){}}let ce=(()=>{class nt{constructor(it,rt,Mt,Zt){this._serverStylesheet=it,this._serverModuleLoaded=rt,this._platformId=Mt,this.layoutConfig=Zt}applyStyleToElement(it,rt,Mt=null){let Zt={};"string"==typeof rt&&(Zt[rt]=Mt,rt=Zt),Zt=this.layoutConfig.disableVendorPrefixes?rt:(0,l.GK)(rt),this._applyMultiValueStyleToElement(Zt,it)}applyStyleToElements(it,rt=[]){const Mt=this.layoutConfig.disableVendorPrefixes?it:(0,l.GK)(it);rt.forEach(Zt=>{this._applyMultiValueStyleToElement(Mt,Zt)})}getFlowDirection(it){const rt="flex-direction";let Mt=this.lookupStyle(it,rt);return[Mt||"row",this.lookupInlineStyle(it,rt)||(0,t.PM)(this._platformId)&&this._serverModuleLoaded?Mt:""]}hasWrap(it){return"wrap"===this.lookupStyle(it,"flex-wrap")}lookupAttributeValue(it,rt){return it.getAttribute(rt)||""}lookupInlineStyle(it,rt){return(0,t.NF)(this._platformId)?it.style.getPropertyValue(rt):this._getServerStyle(it,rt)}lookupStyle(it,rt,Mt=!1){let Zt="";return it&&((Zt=this.lookupInlineStyle(it,rt))||((0,t.NF)(this._platformId)?Mt||(Zt=getComputedStyle(it).getPropertyValue(rt)):this._serverModuleLoaded&&(Zt=this._serverStylesheet.getStyleForElement(it,rt)))),Zt?Zt.trim():""}_applyMultiValueStyleToElement(it,rt){Object.keys(it).sort().forEach(Mt=>{const Zt=it[Mt],Ft=Array.isArray(Zt)?Zt:[Zt];Ft.sort();for(let Vt of Ft)Vt=Vt?Vt+"":"",(0,t.NF)(this._platformId)||!this._serverModuleLoaded?(0,t.NF)(this._platformId)?rt.style.setProperty(Mt,Vt):this._setServerStyle(rt,Mt,Vt):this._serverStylesheet.addStyleToElement(rt,Mt,Vt)})}_setServerStyle(it,rt,Mt){rt=rt.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const Zt=this._readStyleAttribute(it);Zt[rt]=Mt||"",this._writeStyleAttribute(it,Zt)}_getServerStyle(it,rt){return this._readStyleAttribute(it)[rt]||""}_readStyleAttribute(it){const rt={},Mt=it.getAttribute("style");if(Mt){const Zt=Mt.split(/;+/g);for(let Ft=0;Ft<Zt.length;Ft++){const Vt=Zt[Ft].trim();if(Vt.length>0){const Ii=Vt.indexOf(":");if(-1===Ii)throw new Error(`Invalid CSS style: ${Vt}`);rt[Vt.substr(0,Ii).trim()]=Vt.substr(Ii+1).trim()}}}return rt}_writeStyleAttribute(it,rt){let Mt="";for(const Zt in rt)rt[Zt]&&(Mt+=Zt+":"+rt[Zt]+";");it.setAttribute("style",Mt)}}return nt.\u0275fac=function(it){return new(it||nt)(e.LFG(w),e.LFG(W),e.LFG(e.Lbi),e.LFG(j))},nt.\u0275prov=e.Yz7({token:nt,factory:nt.\u0275fac,providedIn:"root"}),nt})();function re(nt,ft){return(ft&&ft.priority||0)-(nt&&nt.priority||0)}function de(nt,ft){return(nt.priority||0)-(ft.priority||0)}let oe=(()=>{class nt{constructor(it,rt,Mt){this._zone=it,this._platformId=rt,this._document=Mt,this.source=new y.X(new P(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const it=[];return this.registry.forEach((rt,Mt)=>{rt.matches&&it.push(Mt)}),it}isActive(it){const rt=this.registry.get(it);return rt?rt.matches:this.registerQuery(it).some(Mt=>Mt.matches)}observe(it,rt=!1){if(it&&it.length){const Mt=this._observable$.pipe((0,N.h)(Ft=>!rt||it.indexOf(Ft.mediaQuery)>-1)),Zt=new C.y(Ft=>{const Vt=this.registerQuery(it);if(Vt.length){const Ii=Vt.pop();Vt.forEach(jt=>{Ft.next(jt)}),this.source.next(Ii)}Ft.complete()});return(0,o.T)(Zt,Mt)}return this._observable$}registerQuery(it){const rt=Array.isArray(it)?it:[it],Mt=[];return function b(nt,ft){const it=nt.filter(rt=>!ae[rt]);if(it.length>0){const rt=it.join(", ");try{const Mt=ft.createElement("style");Mt.setAttribute("type","text/css"),Mt.styleSheet||Mt.appendChild(ft.createTextNode(`\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ${rt} {.fx-query-test{ }}\n`)),ft.head.appendChild(Mt),it.forEach(Zt=>ae[Zt]=Mt)}catch(Mt){console.error(Mt)}}}(rt,this._document),rt.forEach(Zt=>{const Ft=Ii=>{this._zone.run(()=>this.source.next(new P(Ii.matches,Zt)))};let Vt=this.registry.get(Zt);Vt||(Vt=this.buildMQL(Zt),Vt.addListener(Ft),this.pendingRemoveListenerFns.push(()=>Vt.removeListener(Ft)),this.registry.set(Zt,Vt)),Vt.matches&&Mt.push(new P(!0,Zt))}),Mt}ngOnDestroy(){let it;for(;it=this.pendingRemoveListenerFns.pop();)it()}buildMQL(it){return function i(nt,ft){return ft&&window.matchMedia("all").addListener?window.matchMedia(nt):{matches:"all"===nt||""===nt,media:nt,addListener:()=>{},removeListener:()=>{},onchange:null,addEventListener(){},removeEventListener(){},dispatchEvent:()=>!1}}(it,(0,t.NF)(this._platformId))}}return nt.\u0275fac=function(it){return new(it||nt)(e.LFG(e.R0b),e.LFG(e.Lbi),e.LFG(t.K0))},nt.\u0275prov=e.Yz7({token:nt,factory:nt.\u0275fac,providedIn:"root"}),nt})();const ae={},a=[{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}],p="(orientation: portrait) and (max-width: 599.98px)",u="(orientation: landscape) and (max-width: 959.98px)",_="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",L="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",I="(orientation: portrait) and (min-width: 840px)",x="(orientation: landscape) and (min-width: 1280px)",r={HANDSET:`${p}, ${u}`,TABLET:`${_} , ${L}`,WEB:`${I}, ${x} `,HANDSET_PORTRAIT:`${p}`,TABLET_PORTRAIT:`${_} `,WEB_PORTRAIT:`${I}`,HANDSET_LANDSCAPE:`${u}`,TABLET_LANDSCAPE:`${L}`,WEB_LANDSCAPE:`${x}`},v=[{alias:"handset",priority:2e3,mediaQuery:r.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:r.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:r.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:r.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:r.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:r.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:r.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:r.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:r.WEB_PORTRAIT,overlapping:!0}],G=/(\.|-|_)/g;function F(nt){let ft=nt.length>0?nt.charAt(0):"",it=nt.length>1?nt.slice(1):"";return ft.toUpperCase()+it}const Be=new e.OlP("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const nt=(0,e.f3M)(ie),ft=(0,e.f3M)(j),it=[].concat.apply([],(nt||[]).map(Mt=>Array.isArray(Mt)?Mt:[Mt]));return function Ce(nt,ft=[]){const it={};return nt.forEach(rt=>{it[rt.alias]=rt}),ft.forEach(rt=>{it[rt.alias]?(0,l.kt)(it[rt.alias],rt):it[rt.alias]=rt}),function ye(nt){return nt.forEach(ft=>{ft.suffix||(ft.suffix=function U(nt){return nt.replace(G,"|").split("|").map(F).join("")}(ft.alias),ft.overlapping=!!ft.overlapping)}),nt}(Object.keys(it).map(rt=>it[rt]))}((ft.disableDefaultBps?[]:a).concat(ft.addOrientationBps?v:[]),it)}});let ze=(()=>{class nt{constructor(it){this.findByMap=new Map,this.items=[...it].sort(de)}findByAlias(it){return it?this.findWithPredicate(it,rt=>rt.alias==it):null}findByQuery(it){return this.findWithPredicate(it,rt=>rt.mediaQuery==it)}get overlappings(){return this.items.filter(it=>1==it.overlapping)}get aliases(){return this.items.map(it=>it.alias)}get suffixes(){return this.items.map(it=>it.suffix?it.suffix:"")}findWithPredicate(it,rt){let Mt=this.findByMap.get(it);return Mt||(Mt=this.items.find(rt)||null,this.findByMap.set(it,Mt)),Mt||null}}return nt.\u0275fac=function(it){return new(it||nt)(e.LFG(Be))},nt.\u0275prov=e.Yz7({token:nt,factory:nt.\u0275fac,providedIn:"root"}),nt})();const Ie="print",K={alias:Ie,mediaQuery:Ie,priority:1e3};let Me=(()=>{class nt{constructor(it,rt,Mt){this.breakpoints=it,this.layoutConfig=rt,this._document=Mt,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.isPrinting=!1,this.queue=new we,this.deactivations=[]}withPrintQuery(it){return[...it,Ie]}isPrintEvent(it){return it.mediaQuery.startsWith(Ie)}get printAlias(){return this.layoutConfig.printWithBreakpoints||[]}get printBreakPoints(){return this.printAlias.map(it=>this.breakpoints.findByAlias(it)).filter(it=>null!==it)}getEventBreakpoints({mediaQuery:it}){const rt=this.breakpoints.findByQuery(it);return(rt?[...this.printBreakPoints,rt]:this.printBreakPoints).sort(re)}updateEvent(it){let rt=this.breakpoints.findByQuery(it.mediaQuery);return this.isPrintEvent(it)&&(rt=this.getEventBreakpoints(it)[0],it.mediaQuery=rt?rt.mediaQuery:""),ee(it,rt)}registerBeforeAfterPrintHooks(it){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const rt=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(it,this.getEventBreakpoints(new P(!0,Ie))),it.updateStyles())},Mt=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(it),it.updateStyles())};this._document.defaultView.addEventListener("beforeprint",rt),this._document.defaultView.addEventListener("afterprint",Mt),this.beforePrintEventListeners.push(rt),this.afterPrintEventListeners.push(Mt)}interceptEvents(it){return this.registerBeforeAfterPrintHooks(it),rt=>{this.isPrintEvent(rt)?rt.matches&&!this.isPrinting?(this.startPrinting(it,this.getEventBreakpoints(rt)),it.updateStyles()):!rt.matches&&this.isPrinting&&!this.isPrintingBeforeAfterEvent&&(this.stopPrinting(it),it.updateStyles()):this.collectActivations(rt)}}blockPropagation(){return it=>!(this.isPrinting||this.isPrintEvent(it))}startPrinting(it,rt){this.isPrinting=!0,it.activatedBreakpoints=this.queue.addPrintBreakpoints(rt)}stopPrinting(it){it.activatedBreakpoints=this.deactivations,this.deactivations=[],this.queue.clear(),this.isPrinting=!1}collectActivations(it){if(!this.isPrinting||this.isPrintingBeforeAfterEvent)if(it.matches)this.isPrintingBeforeAfterEvent||(this.deactivations=[]);else{const rt=this.breakpoints.findByQuery(it.mediaQuery);rt&&(this.deactivations.push(rt),this.deactivations.sort(re))}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(it=>this._document.defaultView.removeEventListener("beforeprint",it)),this.afterPrintEventListeners.forEach(it=>this._document.defaultView.removeEventListener("afterprint",it)))}}return nt.\u0275fac=function(it){return new(it||nt)(e.LFG(ze),e.LFG(j),e.LFG(t.K0))},nt.\u0275prov=e.Yz7({token:nt,factory:nt.\u0275fac,providedIn:"root"}),nt})();class we{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(ft){return ft.push(K),ft.sort(re),ft.forEach(it=>this.addBreakpoint(it)),this.printBreakpoints}addBreakpoint(ft){ft&&void 0===this.printBreakpoints.find(rt=>rt.mediaQuery===ft.mediaQuery)&&(this.printBreakpoints=function z(nt){return!!nt&&nt.mediaQuery.startsWith(Ie)}(ft)?[ft,...this.printBreakpoints]:[...this.printBreakpoints,ft])}clear(){this.printBreakpoints=[]}}let Ge=(()=>{class nt{constructor(it,rt,Mt){this.matchMedia=it,this.breakpoints=rt,this.hook=Mt,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 M.x,this.observeActivations()}get activatedAlias(){return this.activatedBreakpoints[0]?this.activatedBreakpoints[0].alias:""}onMediaChange(it){const rt=this.findByQuery(it.mediaQuery);rt&&((it=ee(it,rt)).matches&&-1===this.activatedBreakpoints.indexOf(rt)?(this.activatedBreakpoints.push(rt),this.activatedBreakpoints.sort(re),this.updateStyles()):!it.matches&&-1!==this.activatedBreakpoints.indexOf(rt)&&(this.activatedBreakpoints.splice(this.activatedBreakpoints.indexOf(rt),1),this.activatedBreakpoints.sort(re),this.updateStyles()))}init(it,rt,Mt,Zt,Ft=[]){vt(this.updateMap,it,rt,Mt),vt(this.clearMap,it,rt,Zt),this.buildElementKeyMap(it,rt),this.watchExtraTriggers(it,rt,Ft)}getValue(it,rt,Mt){const Zt=this.elementMap.get(it);if(Zt){const Ft=void 0!==Mt?Zt.get(Mt):this.getActivatedValues(Zt,rt);if(Ft)return Ft.get(rt)}}hasValue(it,rt){const Mt=this.elementMap.get(it);if(Mt){const Zt=this.getActivatedValues(Mt,rt);if(Zt)return void 0!==Zt.get(rt)||!1}return!1}setValue(it,rt,Mt,Zt){let Ft=this.elementMap.get(it);if(Ft){const Ii=(Ft.get(Zt)||new Map).set(rt,Mt);Ft.set(Zt,Ii),this.elementMap.set(it,Ft)}else Ft=(new Map).set(Zt,(new Map).set(rt,Mt)),this.elementMap.set(it,Ft);const Vt=this.getValue(it,rt);void 0!==Vt&&this.updateElement(it,rt,Vt)}trackValue(it,rt){return this.subject.asObservable().pipe((0,N.h)(Mt=>Mt.element===it&&Mt.key===rt))}updateStyles(){this.elementMap.forEach((it,rt)=>{const Mt=new Set(this.elementKeyMap.get(rt));let Zt=this.getActivatedValues(it);Zt&&Zt.forEach((Ft,Vt)=>{this.updateElement(rt,Vt,Ft),Mt.delete(Vt)}),Mt.forEach(Ft=>{if(Zt=this.getActivatedValues(it,Ft),Zt){const Vt=Zt.get(Ft);this.updateElement(rt,Ft,Vt)}else this.clearElement(rt,Ft)})})}clearElement(it,rt){const Mt=this.clearMap.get(it);if(Mt){const Zt=Mt.get(rt);Zt&&(Zt(),this.subject.next({element:it,key:rt,value:""}))}}updateElement(it,rt,Mt){const Zt=this.updateMap.get(it);if(Zt){const Ft=Zt.get(rt);Ft&&(Ft(Mt),this.subject.next({element:it,key:rt,value:Mt}))}}releaseElement(it){const rt=this.watcherMap.get(it);rt&&(rt.forEach(Zt=>Zt.unsubscribe()),this.watcherMap.delete(it));const Mt=this.elementMap.get(it);Mt&&(Mt.forEach((Zt,Ft)=>Mt.delete(Ft)),this.elementMap.delete(it))}triggerUpdate(it,rt){const Mt=this.elementMap.get(it);if(Mt){const Zt=this.getActivatedValues(Mt,rt);Zt&&(rt?this.updateElement(it,rt,Zt.get(rt)):Zt.forEach((Ft,Vt)=>this.updateElement(it,Vt,Ft)))}}buildElementKeyMap(it,rt){let Mt=this.elementKeyMap.get(it);Mt||(Mt=new Set,this.elementKeyMap.set(it,Mt)),Mt.add(rt)}watchExtraTriggers(it,rt,Mt){if(Mt&&Mt.length){let Zt=this.watcherMap.get(it);if(Zt||(Zt=new Map,this.watcherMap.set(it,Zt)),!Zt.get(rt)){const Vt=(0,o.T)(...Mt).subscribe(()=>{const Ii=this.getValue(it,rt);this.updateElement(it,rt,Ii)});Zt.set(rt,Vt)}}}findByQuery(it){return this.breakpoints.findByQuery(it)}getActivatedValues(it,rt){for(let Zt=0;Zt<this.activatedBreakpoints.length;Zt++){const Vt=it.get(this.activatedBreakpoints[Zt].alias);if(Vt&&(void 0===rt||Vt.has(rt)&&null!=Vt.get(rt)))return Vt}const Mt=it.get("");return void 0===rt||Mt&&Mt.has(rt)?Mt:void 0}observeActivations(){const rt=this.breakpoints.items.map(Mt=>Mt.mediaQuery);this.matchMedia.observe(this.hook.withPrintQuery(rt)).pipe((0,s.b)(this.hook.interceptEvents(this)),(0,N.h)(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return nt.\u0275fac=function(it){return new(it||nt)(e.LFG(oe),e.LFG(ze),e.LFG(Me))},nt.\u0275prov=e.Yz7({token:nt,factory:nt.\u0275fac,providedIn:"root"}),nt})();function vt(nt,ft,it,rt){if(void 0!==rt){let Mt=nt.get(ft);Mt||(Mt=new Map,nt.set(ft,Mt)),Mt.set(it,rt)}}let Re=(()=>{class nt{constructor(it,rt,Mt,Zt){this.elementRef=it,this.styleBuilder=rt,this.styler=Mt,this.marshal=Zt,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new M.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(it){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,it,this.marshal.activatedAlias)}ngOnChanges(it){Object.keys(it).forEach(rt=>{if(-1!==this.inputs.indexOf(rt)){const Mt=rt.split(".").slice(1).join(".");this.setValue(it[rt].currentValue,Mt)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(it=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),it)}addStyles(it,rt){const Mt=this.styleBuilder,Zt=Mt.shouldCache;let Ft=this.styleCache.get(it);(!Ft||!Zt)&&(Ft=Mt.buildStyles(it,rt),Zt&&this.styleCache.set(it,Ft)),this.mru=Object.assign({},Ft),this.applyStyleToElement(Ft),Mt.sideEffect(it,Ft,rt)}clearStyles(){Object.keys(this.mru).forEach(it=>{this.mru[it]=""}),this.applyStyleToElement(this.mru),this.mru={}}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(it,rt=!1){if(it){const[Mt,Zt]=this.styler.getFlowDirection(it);if(!Zt&&rt){const Ft=(0,l.Ar)(Mt);this.styler.applyStyleToElements(Ft,[it])}return Mt.trim()}return"row"}hasWrap(it){return this.styler.hasWrap(it)}applyStyleToElement(it,rt,Mt=this.nativeElement){this.styler.applyStyleToElement(Mt,it,rt)}setValue(it,rt){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,it,rt)}updateWithValue(it){this.currentValue!==it&&(this.addStyles(it),this.currentValue=it)}}return nt.\u0275fac=function(it){return new(it||nt)(e.Y36(e.SBq),e.Y36(_e),e.Y36(ce),e.Y36(Ge))},nt.\u0275dir=e.lG2({type:nt,features:[e.TTD]}),nt})();function Ue(nt,ft="1",it="1"){let rt=[ft,it,nt],Mt=nt.indexOf("calc");if(Mt>0){rt[2]=lt(nt.substring(Mt).trim());let Zt=nt.substr(0,Mt).trim().split(" ");2==Zt.length&&(rt[0]=Zt[0],rt[1]=Zt[1])}else if(0==Mt)rt[2]=lt(nt.trim());else{let Zt=nt.split(" ");rt=3===Zt.length?Zt:[ft,it,nt]}return rt}function lt(nt){return nt.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}},3322:(Ve,Q,m)=>{"use strict";m.d(Q,{oO:()=>Z,Zl:()=>L,aT:()=>r});var e=m(5e3),t=m(3270),y=m(9808),M=(m(3191),m(2722),m(2313));let E=(()=>{class v extends t.iR{constructor(F,U,ye,Ce,Be,ze,Ie){super(F,null,U,ye),this.ngClassInstance=Ie,this.DIRECTIVE_KEY="ngClass",this.ngClassInstance||(this.ngClassInstance=new y.mk(Ce,Be,F,ze)),this.init(),this.setValue("","")}set klass(F){this.ngClassInstance.klass=F,this.setValue(F,"")}updateWithValue(F){this.ngClassInstance.ngClass=F,this.ngClassInstance.ngDoCheck()}ngDoCheck(){this.ngClassInstance.ngDoCheck()}}return v.\u0275fac=function(F){return new(F||v)(e.Y36(e.SBq),e.Y36(t.RK),e.Y36(t.yB),e.Y36(e.ZZ4),e.Y36(e.aQg),e.Y36(e.Qsj),e.Y36(y.mk,10))},v.\u0275dir=e.lG2({type:v,inputs:{klass:["class","klass"]},features:[e.qOj]}),v})();const P=["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 v extends E{constructor(){super(...arguments),this.inputs=P}}return v.\u0275fac=function(){let G;return function(U){return(G||(G=e.n5z(v)))(U||v)}}(),v.\u0275dir=e.lG2({type:v,selectors:[["","ngClass",""],["","ngClass.xs",""],["","ngClass.sm",""],["","ngClass.md",""],["","ngClass.lg",""],["","ngClass.xl",""],["","ngClass.lt-sm",""],["","ngClass.lt-md",""],["","ngClass.lt-lg",""],["","ngClass.lt-xl",""],["","ngClass.gt-xs",""],["","ngClass.gt-sm",""],["","ngClass.gt-md",""],["","ngClass.gt-lg",""]],inputs:{ngClass:"ngClass","ngClass.xs":"ngClass.xs","ngClass.sm":"ngClass.sm","ngClass.md":"ngClass.md","ngClass.lg":"ngClass.lg","ngClass.xl":"ngClass.xl","ngClass.lt-sm":"ngClass.lt-sm","ngClass.lt-md":"ngClass.lt-md","ngClass.lt-lg":"ngClass.lt-lg","ngClass.lt-xl":"ngClass.lt-xl","ngClass.gt-xs":"ngClass.gt-xs","ngClass.gt-sm":"ngClass.gt-sm","ngClass.gt-md":"ngClass.gt-md","ngClass.gt-lg":"ngClass.gt-lg"},features:[e.qOj]}),v})();class re{constructor(G,F,U=!0){this.key=G,this.value=F,this.key=U?G.replace(/['"]/g,"").trim():G.trim(),this.value=U?F.replace(/['"]/g,"").trim():F.trim(),this.value=this.value.replace(/;/,"")}}function de(v){let G=typeof v;return"object"===G?v.constructor===Array?"array":v.constructor===Set?"set":"object":G}function i(v){const[G,...F]=v.split(":");return new re(G,F.join(":"))}function a(v,G){return G.key&&(v[G.key]=G.value),v}let p=(()=>{class v extends t.iR{constructor(F,U,ye,Ce,Be,ze,Ie,K,Me){super(F,null,U,ye),this.sanitizer=Ce,this.ngStyleInstance=Ie,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new y.PC(F,Be,ze)),this.init();const we=this.nativeElement.getAttribute("style")||"";this.fallbackStyles=this.buildStyleMap(we),this.isServer=K&&(0,y.PM)(Me)}updateWithValue(F){const U=this.buildStyleMap(F);this.ngStyleInstance.ngStyle=Object.assign(Object.assign({},this.fallbackStyles),U),this.isServer&&this.applyStyleToElement(U),this.ngStyleInstance.ngDoCheck()}clearStyles(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}buildStyleMap(F){const U=ye=>this.sanitizer.sanitize(e.q3G.STYLE,ye)||"";if(F)switch(de(F)){case"string":return I(function oe(v,G=";"){return String(v).trim().split(G).map(F=>F.trim()).filter(F=>""!==F)}(F),U);case"array":return I(F,U);default:return function b(v,G){let F=[];return"set"===de(v)?v.forEach(U=>F.push(U)):Object.keys(v).forEach(U=>{F.push(`${U}:${v[U]}`)}),function ae(v,G){return v.map(i).filter(U=>!!U).map(U=>(G&&(U.value=G(U.value)),U)).reduce(a,{})}(F,G)}(F,U)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return v.\u0275fac=function(F){return new(F||v)(e.Y36(e.SBq),e.Y36(t.RK),e.Y36(t.yB),e.Y36(M.H7),e.Y36(e.aQg),e.Y36(e.Qsj),e.Y36(y.PC,10),e.Y36(t.wY),e.Y36(e.Lbi))},v.\u0275dir=e.lG2({type:v,features:[e.qOj]}),v})();const u=["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 L=(()=>{class v extends p{constructor(){super(...arguments),this.inputs=u}}return v.\u0275fac=function(){let G;return function(U){return(G||(G=e.n5z(v)))(U||v)}}(),v.\u0275dir=e.lG2({type:v,selectors:[["","ngStyle",""],["","ngStyle.xs",""],["","ngStyle.sm",""],["","ngStyle.md",""],["","ngStyle.lg",""],["","ngStyle.xl",""],["","ngStyle.lt-sm",""],["","ngStyle.lt-md",""],["","ngStyle.lt-lg",""],["","ngStyle.lt-xl",""],["","ngStyle.gt-xs",""],["","ngStyle.gt-sm",""],["","ngStyle.gt-md",""],["","ngStyle.gt-lg",""]],inputs:{ngStyle:"ngStyle","ngStyle.xs":"ngStyle.xs","ngStyle.sm":"ngStyle.sm","ngStyle.md":"ngStyle.md","ngStyle.lg":"ngStyle.lg","ngStyle.xl":"ngStyle.xl","ngStyle.lt-sm":"ngStyle.lt-sm","ngStyle.lt-md":"ngStyle.lt-md","ngStyle.lt-lg":"ngStyle.lt-lg","ngStyle.lt-xl":"ngStyle.lt-xl","ngStyle.gt-xs":"ngStyle.gt-xs","ngStyle.gt-sm":"ngStyle.gt-sm","ngStyle.gt-md":"ngStyle.gt-md","ngStyle.gt-lg":"ngStyle.gt-lg"},features:[e.qOj]}),v})();function I(v,G){return v.map(i).filter(U=>!!U).map(U=>(G&&(U.value=G(U.value)),U)).reduce(a,{})}let r=(()=>{class v{}return v.\u0275fac=function(F){return new(F||v)},v.\u0275mod=e.oAB({type:v}),v.\u0275inj=e.cJS({imports:[[t.IR]]}),v})()},7093:(Ve,Q,m)=>{"use strict";m.d(Q,{yH:()=>_,Wh:()=>rt,xw:()=>A,ae:()=>hi});var e=m(5e3),t=m(226),y=m(3270),C=m(9042),M=(m(7579),m(2722));let l=(()=>{class Ze extends y.QI{buildStyles(Y){return(0,C.Ar)(Y)}}return Ze.\u0275fac=function(){let Ee;return function(me){return(Ee||(Ee=e.n5z(Ze)))(me||Ze)}}(),Ze.\u0275prov=e.Yz7({token:Ze,factory:Ze.\u0275fac,providedIn:"root"}),Ze})();const N=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"];let D=(()=>{class Ze extends y.iR{constructor(Y,me,De,et){super(Y,De,me,et),this.DIRECTIVE_KEY="layout",this.styleCache=O,this.init()}}return Ze.\u0275fac=function(Y){return new(Y||Ze)(e.Y36(e.SBq),e.Y36(y.RK),e.Y36(l),e.Y36(y.yB))},Ze.\u0275dir=e.lG2({type:Ze,features:[e.qOj]}),Ze})(),A=(()=>{class Ze extends D{constructor(){super(...arguments),this.inputs=N}}return Ze.\u0275fac=function(){let Ee;return function(me){return(Ee||(Ee=e.n5z(Ze)))(me||Ze)}}(),Ze.\u0275dir=e.lG2({type:Ze,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]}),Ze})();const O=new Map;let i=(()=>{class Ze extends y.QI{constructor(Y){super(),this.layoutConfig=Y}buildStyles(Y,me){let[De,et,...$t]=Y.split(" "),Nt=$t.join(" ");const Jt=me.direction.indexOf("column")>-1?"column":"row",ct=(0,C.tj)(Jt)?"max-width":"max-height",Pe=(0,C.tj)(Jt)?"min-width":"min-height",Fe=String(Nt).indexOf("calc")>-1,at=Fe||"auto"===Nt,st=String(Nt).indexOf("%")>-1&&!Fe,At=String(Nt).indexOf("px")>-1||String(Nt).indexOf("rem")>-1||String(Nt).indexOf("em")>-1||String(Nt).indexOf("vw")>-1||String(Nt).indexOf("vh")>-1;let li=Fe||At;De="0"==De?0:De,et="0"==et?0:et;const Bt=!De&&!et;let Rt={};const Li={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(Nt||""){case"":const si=!1!==this.layoutConfig.useColumnBasisZero;Nt="row"===Jt?"0%":si?"0.000000001px":"auto";break;case"initial":case"nogrow":De=0,Nt="auto";break;case"grow":Nt="100%";break;case"noshrink":et=0,Nt="auto";break;case"auto":break;case"none":De=0,et=0,Nt="auto";break;default:!li&&!st&&!isNaN(Nt)&&(Nt+="%"),"0%"===Nt&&(li=!0),"0px"===Nt&&(Nt="0%"),Rt=(0,C.kt)(Li,Fe?{"flex-grow":De,"flex-shrink":et,"flex-basis":li?Nt:"100%"}:{flex:`${De} ${et} ${li?Nt:"100%"}`})}return Rt.flex||Rt["flex-grow"]||(Rt=(0,C.kt)(Li,Fe?{"flex-grow":De,"flex-shrink":et,"flex-basis":Nt}:{flex:`${De} ${et} ${Nt}`})),"0%"!==Nt&&"0px"!==Nt&&"0.000000001px"!==Nt&&"auto"!==Nt&&(Rt[Pe]=Bt||li&&De?Nt:null,Rt[ct]=Bt||!at&&et?Nt:null),Rt[Pe]||Rt[ct]?me.hasWrap&&(Rt[Fe?"flex-basis":"flex"]=Rt[ct]?Fe?Rt[ct]:`${De} ${et} ${Rt[ct]}`:Fe?Rt[Pe]:`${De} ${et} ${Rt[Pe]}`):Rt=(0,C.kt)(Li,Fe?{"flex-grow":De,"flex-shrink":et,"flex-basis":Nt}:{flex:`${De} ${et} ${Nt}`}),(0,C.kt)(Rt,{"box-sizing":"border-box"})}}return Ze.\u0275fac=function(Y){return new(Y||Ze)(e.LFG(y.WU))},Ze.\u0275prov=e.Yz7({token:Ze,factory:Ze.\u0275fac,providedIn:"root"}),Ze})();const a=["fxFlex","fxFlex.xs","fxFlex.sm","fxFlex.md","fxFlex.lg","fxFlex.xl","fxFlex.lt-sm","fxFlex.lt-md","fxFlex.lt-lg","fxFlex.lt-xl","fxFlex.gt-xs","fxFlex.gt-sm","fxFlex.gt-md","fxFlex.gt-lg"];let u=(()=>{class Ze extends y.iR{constructor(Y,me,De,et,$t){super(Y,et,me,$t),this.layoutConfig=De,this.marshal=$t,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(Y){this.flexShrink=Y||"1",this.triggerReflow()}get grow(){return this.flexGrow}set grow(Y){this.flexGrow=Y||"1",this.triggerReflow()}ngOnInit(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe((0,M.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe((0,M.R)(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}onLayoutChange(Y){const De=Y.value.split(" ");this.direction=De[0],this.wrap=void 0!==De[1]&&"wrap"===De[1],this.triggerUpdate()}updateWithValue(Y){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 De=this.direction,et=De.startsWith("row"),$t=this.wrap;et&&$t?this.styleCache=x:et&&!$t?this.styleCache=L:!et&&$t?this.styleCache=r:!et&&!$t&&(this.styleCache=I);const Nt=String(Y).replace(";",""),Jt=(0,y.Ot)(Nt,this.flexGrow,this.flexShrink);this.addStyles(Jt.join(" "),{direction:De,hasWrap:$t})}triggerReflow(){const Y=this.activatedValue;if(void 0!==Y){const me=(0,y.Ot)(Y+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,me.join(" "))}}}return Ze.\u0275fac=function(Y){return new(Y||Ze)(e.Y36(e.SBq),e.Y36(y.RK),e.Y36(y.WU),e.Y36(i),e.Y36(y.yB))},Ze.\u0275dir=e.lG2({type:Ze,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[e.qOj]}),Ze})(),_=(()=>{class Ze extends u{constructor(){super(...arguments),this.inputs=a}}return Ze.\u0275fac=function(){let Ee;return function(me){return(Ee||(Ee=e.n5z(Ze)))(me||Ze)}}(),Ze.\u0275dir=e.lG2({type:Ze,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]}),Ze})();const L=new Map,I=new Map,x=new Map,r=new Map;let lt=(()=>{class Ze extends y.QI{buildStyles(Y,me){const De={},[et,$t]=Y.split(" ");switch(et){case"center":De["justify-content"]="center";break;case"space-around":De["justify-content"]="space-around";break;case"space-between":De["justify-content"]="space-between";break;case"space-evenly":De["justify-content"]="space-evenly";break;case"end":case"flex-end":De["justify-content"]="flex-end";break;default:De["justify-content"]="flex-start"}switch($t){case"start":case"flex-start":De["align-items"]=De["align-content"]="flex-start";break;case"center":De["align-items"]=De["align-content"]="center";break;case"end":case"flex-end":De["align-items"]=De["align-content"]="flex-end";break;case"space-between":De["align-content"]="space-between",De["align-items"]="stretch";break;case"space-around":De["align-content"]="space-around",De["align-items"]="stretch";break;case"baseline":De["align-content"]="stretch",De["align-items"]="baseline";break;default:De["align-items"]=De["align-content"]="stretch"}return(0,C.kt)(De,{display:me.inline?"inline-flex":"flex","flex-direction":me.layout,"box-sizing":"border-box","max-width":"stretch"===$t?(0,C.tj)(me.layout)?null:"100%":null,"max-height":"stretch"===$t&&(0,C.tj)(me.layout)?"100%":null})}}return Ze.\u0275fac=function(){let Ee;return function(me){return(Ee||(Ee=e.n5z(Ze)))(me||Ze)}}(),Ze.\u0275prov=e.Yz7({token:Ze,factory:Ze.\u0275fac,providedIn:"root"}),Ze})();const nt=["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 it=(()=>{class Ze extends y.iR{constructor(Y,me,De,et){super(Y,De,me,et),this.DIRECTIVE_KEY="layout-align",this.layout="row",this.inline=!1,this.init(),this.marshal.trackValue(this.nativeElement,"layout").pipe((0,M.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}updateWithValue(Y){const me=this.layout||"row",De=this.inline;"row"===me&&De?this.styleCache=Ii:"row"!==me||De?"row-reverse"===me&&De?this.styleCache=ei:"row-reverse"!==me||De?"column"===me&&De?this.styleCache=jt:"column"!==me||De?"column-reverse"===me&&De?this.styleCache=Pi:"column-reverse"===me&&!De&&(this.styleCache=Vt):this.styleCache=Zt:this.styleCache=Ft:this.styleCache=Mt,this.addStyles(Y,{layout:me,inline:De})}onLayoutChange(Y){const me=Y.value.split(" ");this.layout=me[0],this.inline=Y.value.includes("inline"),C.iQ.find(De=>De===this.layout)||(this.layout="row"),this.triggerUpdate()}}return Ze.\u0275fac=function(Y){return new(Y||Ze)(e.Y36(e.SBq),e.Y36(y.RK),e.Y36(lt),e.Y36(y.yB))},Ze.\u0275dir=e.lG2({type:Ze,features:[e.qOj]}),Ze})(),rt=(()=>{class Ze extends it{constructor(){super(...arguments),this.inputs=nt}}return Ze.\u0275fac=function(){let Ee;return function(me){return(Ee||(Ee=e.n5z(Ze)))(me||Ze)}}(),Ze.\u0275dir=e.lG2({type:Ze,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]}),Ze})();const Mt=new Map,Zt=new Map,Ft=new Map,Vt=new Map,Ii=new Map,jt=new Map,ei=new Map,Pi=new Map;let hi=(()=>{class Ze{}return Ze.\u0275fac=function(Y){return new(Y||Ze)},Ze.\u0275mod=e.oAB({type:Ze}),Ze.\u0275inj=e.cJS({imports:[[y.IR,t.vT]]}),Ze})()},3075:(Ve,Q,m)=>{"use strict";m.d(Q,{Zs:()=>$n,Fj:()=>P,qu:()=>ja,NI:()=>Ui,oH:()=>dr,u:()=>Ma,sg:()=>Fi,u5:()=>Ha,Fd:()=>Ba,qQ:()=>Pr,Cf:()=>j,JU:()=>N,a5:()=>we,JJ:()=>Ne,JL:()=>he,F:()=>ve,On:()=>qi,wV:()=>gt,UX:()=>Zn,Q7:()=>ga,kI:()=>ee,_Y:()=>ot});var e=m(5e3),t=m(9808),y=m(457),C=m(4128),o=m(4004);let M=(()=>{class ge{constructor(ne,Qe){this._renderer=ne,this._elementRef=Qe,this.onChange=Wt=>{},this.onTouched=()=>{}}setProperty(ne,Qe){this._renderer.setProperty(this._elementRef.nativeElement,ne,Qe)}registerOnTouched(ne){this.onTouched=ne}registerOnChange(ne){this.onChange=ne}setDisabledState(ne){this.setProperty("disabled",ne)}}return ge.\u0275fac=function(ne){return new(ne||ge)(e.Y36(e.Qsj),e.Y36(e.SBq))},ge.\u0275dir=e.lG2({type:ge}),ge})(),l=(()=>{class ge extends M{}return ge.\u0275fac=function(){let J;return function(Qe){return(J||(J=e.n5z(ge)))(Qe||ge)}}(),ge.\u0275dir=e.lG2({type:ge,features:[e.qOj]}),ge})();const N=new e.OlP("NgValueAccessor"),A={provide:N,useExisting:(0,e.Gpc)(()=>P),multi:!0},E=new e.OlP("CompositionEventMode");let P=(()=>{class ge extends M{constructor(ne,Qe,Wt){super(ne,Qe),this._compositionMode=Wt,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function O(){const ge=(0,t.q)()?(0,t.q)().getUserAgent():"";return/android (\d+)/.test(ge.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 ge.\u0275fac=function(ne){return new(ne||ge)(e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(E,8))},ge.\u0275dir=e.lG2({type:ge,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,Qe){1&ne&&e.NdJ("input",function(mi){return Qe._handleInput(mi.target.value)})("blur",function(){return Qe.onTouched()})("compositionstart",function(){return Qe._compositionStart()})("compositionend",function(mi){return Qe._compositionEnd(mi.target.value)})},features:[e._Bn([A]),e.qOj]}),ge})();function w(ge){return null==ge||0===ge.length}function Z(ge){return null!=ge&&"number"==typeof ge.length}const j=new e.OlP("NgValidators"),W=new e.OlP("NgAsyncValidators"),ie=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class ee{static min(J){return _e(J)}static max(J){return ce(J)}static required(J){return re(J)}static requiredTrue(J){return de(J)}static email(J){return function oe(ge){return w(ge.value)||ie.test(ge.value)?null:{email:!0}}(J)}static minLength(J){return function ae(ge){return J=>w(J.value)||!Z(J.value)?null:J.value.length<ge?{minlength:{requiredLength:ge,actualLength:J.value.length}}:null}(J)}static maxLength(J){return function b(ge){return J=>Z(J.value)&&J.value.length>ge?{maxlength:{requiredLength:ge,actualLength:J.value.length}}:null}(J)}static pattern(J){return function i(ge){if(!ge)return a;let J,ne;return"string"==typeof ge?(ne="","^"!==ge.charAt(0)&&(ne+="^"),ne+=ge,"$"!==ge.charAt(ge.length-1)&&(ne+="$"),J=new RegExp(ne)):(ne=ge.toString(),J=ge),Qe=>{if(w(Qe.value))return null;const Wt=Qe.value;return J.test(Wt)?null:{pattern:{requiredPattern:ne,actualValue:Wt}}}}(J)}static nullValidator(J){return null}static compose(J){return r(J)}static composeAsync(J){return G(J)}}function _e(ge){return J=>{if(w(J.value)||w(ge))return null;const ne=parseFloat(J.value);return!isNaN(ne)&&ne<ge?{min:{min:ge,actual:J.value}}:null}}function ce(ge){return J=>{if(w(J.value)||w(ge))return null;const ne=parseFloat(J.value);return!isNaN(ne)&&ne>ge?{max:{max:ge,actual:J.value}}:null}}function re(ge){return w(ge.value)?{required:!0}:null}function de(ge){return!0===ge.value?null:{required:!0}}function a(ge){return null}function p(ge){return null!=ge}function u(ge){const J=(0,e.QGY)(ge)?(0,y.D)(ge):ge;return(0,e.CqO)(J),J}function _(ge){let J={};return ge.forEach(ne=>{J=null!=ne?Object.assign(Object.assign({},J),ne):J}),0===Object.keys(J).length?null:J}function L(ge,J){return J.map(ne=>ne(ge))}function x(ge){return ge.map(J=>function I(ge){return!ge.validate}(J)?J:ne=>J.validate(ne))}function r(ge){if(!ge)return null;const J=ge.filter(p);return 0==J.length?null:function(ne){return _(L(ne,J))}}function v(ge){return null!=ge?r(x(ge)):null}function G(ge){if(!ge)return null;const J=ge.filter(p);return 0==J.length?null:function(ne){const Qe=L(ne,J).map(u);return(0,C.D)(Qe).pipe((0,o.U)(_))}}function F(ge){return null!=ge?G(x(ge)):null}function U(ge,J){return null===ge?[J]:Array.isArray(ge)?[...ge,J]:[ge,J]}function ye(ge){return ge._rawValidators}function Ce(ge){return ge._rawAsyncValidators}function Be(ge){return ge?Array.isArray(ge)?ge:[ge]:[]}function ze(ge,J){return Array.isArray(ge)?ge.includes(J):ge===J}function Ie(ge,J){const ne=Be(J);return Be(ge).forEach(Wt=>{ze(ne,Wt)||ne.push(Wt)}),ne}function K(ge,J){return Be(J).filter(ne=>!ze(ge,ne))}class Me{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(J){this._rawValidators=J||[],this._composedValidatorFn=v(this._rawValidators)}_setAsyncValidators(J){this._rawAsyncValidators=J||[],this._composedAsyncValidatorFn=F(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(J){this._onDestroyCallbacks.push(J)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(J=>J()),this._onDestroyCallbacks=[]}reset(J){this.control&&this.control.reset(J)}hasError(J,ne){return!!this.control&&this.control.hasError(J,ne)}getError(J,ne){return this.control?this.control.getError(J,ne):null}}class we extends Me{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class z extends Me{get formDirective(){return null}get path(){return null}}class Ge{constructor(J){this._cd=J}is(J){var ne,Qe,Wt;return"submitted"===J?!!(null===(ne=this._cd)||void 0===ne?void 0:ne.submitted):!!(null===(Wt=null===(Qe=this._cd)||void 0===Qe?void 0:Qe.control)||void 0===Wt?void 0:Wt[J])}}let Ne=(()=>{class ge extends Ge{constructor(ne){super(ne)}}return ge.\u0275fac=function(ne){return new(ne||ge)(e.Y36(we,2))},ge.\u0275dir=e.lG2({type:ge,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(ne,Qe){2&ne&&e.ekj("ng-untouched",Qe.is("untouched"))("ng-touched",Qe.is("touched"))("ng-pristine",Qe.is("pristine"))("ng-dirty",Qe.is("dirty"))("ng-valid",Qe.is("valid"))("ng-invalid",Qe.is("invalid"))("ng-pending",Qe.is("pending"))},features:[e.qOj]}),ge})(),he=(()=>{class ge extends Ge{constructor(ne){super(ne)}}return ge.\u0275fac=function(ne){return new(ne||ge)(e.Y36(z,10))},ge.\u0275dir=e.lG2({type:ge,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(ne,Qe){2&ne&&e.ekj("ng-untouched",Qe.is("untouched"))("ng-touched",Qe.is("touched"))("ng-pristine",Qe.is("pristine"))("ng-dirty",Qe.is("dirty"))("ng-valid",Qe.is("valid"))("ng-invalid",Qe.is("invalid"))("ng-pending",Qe.is("pending"))("ng-submitted",Qe.is("submitted"))},features:[e.qOj]}),ge})();function Mt(ge,J){return[...J.path,ge]}function Zt(ge,J){jt(ge,J),J.valueAccessor.writeValue(ge.value),function Pi(ge,J){J.valueAccessor.registerOnChange(ne=>{ge._pendingValue=ne,ge._pendingChange=!0,ge._pendingDirty=!0,"change"===ge.updateOn&&hi(ge,J)})}(ge,J),function Ze(ge,J){const ne=(Qe,Wt)=>{J.valueAccessor.writeValue(Qe),Wt&&J.viewToModelUpdate(Qe)};ge.registerOnChange(ne),J._registerOnDestroy(()=>{ge._unregisterOnChange(ne)})}(ge,J),function ai(ge,J){J.valueAccessor.registerOnTouched(()=>{ge._pendingTouched=!0,"blur"===ge.updateOn&&ge._pendingChange&&hi(ge,J),"submit"!==ge.updateOn&&ge.markAsTouched()})}(ge,J),function Ii(ge,J){if(J.valueAccessor.setDisabledState){const ne=Qe=>{J.valueAccessor.setDisabledState(Qe)};ge.registerOnDisabledChange(ne),J._registerOnDestroy(()=>{ge._unregisterOnDisabledChange(ne)})}}(ge,J)}function Ft(ge,J,ne=!0){const Qe=()=>{};J.valueAccessor&&(J.valueAccessor.registerOnChange(Qe),J.valueAccessor.registerOnTouched(Qe)),ei(ge,J),ge&&(J._invokeOnDestroyCallbacks(),ge._registerOnCollectionChange(()=>{}))}function Vt(ge,J){ge.forEach(ne=>{ne.registerOnValidatorChange&&ne.registerOnValidatorChange(J)})}function jt(ge,J){const ne=ye(ge);null!==J.validator?ge.setValidators(U(ne,J.validator)):"function"==typeof ne&&ge.setValidators([ne]);const Qe=Ce(ge);null!==J.asyncValidator?ge.setAsyncValidators(U(Qe,J.asyncValidator)):"function"==typeof Qe&&ge.setAsyncValidators([Qe]);const Wt=()=>ge.updateValueAndValidity();Vt(J._rawValidators,Wt),Vt(J._rawAsyncValidators,Wt)}function ei(ge,J){let ne=!1;if(null!==ge){if(null!==J.validator){const Wt=ye(ge);if(Array.isArray(Wt)&&Wt.length>0){const mi=Wt.filter(Ct=>Ct!==J.validator);mi.length!==Wt.length&&(ne=!0,ge.setValidators(mi))}}if(null!==J.asyncValidator){const Wt=Ce(ge);if(Array.isArray(Wt)&&Wt.length>0){const mi=Wt.filter(Ct=>Ct!==J.asyncValidator);mi.length!==Wt.length&&(ne=!0,ge.setAsyncValidators(mi))}}}const Qe=()=>{};return Vt(J._rawValidators,Qe),Vt(J._rawAsyncValidators,Qe),ne}function hi(ge,J){ge._pendingDirty&&ge.markAsDirty(),ge.setValue(ge._pendingValue,{emitModelToViewChange:!1}),J.viewToModelUpdate(ge._pendingValue),ge._pendingChange=!1}function Ee(ge,J){jt(ge,J)}function et(ge,J){if(!ge.hasOwnProperty("model"))return!1;const ne=ge.model;return!!ne.isFirstChange()||!Object.is(J,ne.currentValue)}function Nt(ge,J){ge._syncPendingControls(),J.forEach(ne=>{const Qe=ne.control;"submit"===Qe.updateOn&&Qe._pendingChange&&(ne.viewToModelUpdate(Qe._pendingValue),Qe._pendingChange=!1)})}function Jt(ge,J){if(!J)return null;let ne,Qe,Wt;return Array.isArray(J),J.forEach(mi=>{mi.constructor===P?ne=mi:function $t(ge){return Object.getPrototypeOf(ge.constructor)===l}(mi)?Qe=mi:Wt=mi}),Wt||Qe||ne||null}function ct(ge,J){const ne=ge.indexOf(J);ne>-1&&ge.splice(ne,1)}const Fe="VALID",at="INVALID",st="PENDING",At="DISABLED";function Bt(ge){return(ci(ge)?ge.validators:ge)||null}function Rt(ge){return Array.isArray(ge)?v(ge):ge||null}function Li(ge,J){return(ci(J)?J.asyncValidators:ge)||null}function si(ge){return Array.isArray(ge)?F(ge):ge||null}function ci(ge){return null!=ge&&!Array.isArray(ge)&&"object"==typeof ge}class sn{constructor(J,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=J,this._rawAsyncValidators=ne,this._composedValidatorFn=Rt(this._rawValidators),this._composedAsyncValidatorFn=si(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(J){this._rawValidators=this._composedValidatorFn=J}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(J){this._rawAsyncValidators=this._composedAsyncValidatorFn=J}get parent(){return this._parent}get valid(){return this.status===Fe}get invalid(){return this.status===at}get pending(){return this.status==st}get disabled(){return this.status===At}get enabled(){return this.status!==At}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(J){this._rawValidators=J,this._composedValidatorFn=Rt(J)}setAsyncValidators(J){this._rawAsyncValidators=J,this._composedAsyncValidatorFn=si(J)}addValidators(J){this.setValidators(Ie(J,this._rawValidators))}addAsyncValidators(J){this.setAsyncValidators(Ie(J,this._rawAsyncValidators))}removeValidators(J){this.setValidators(K(J,this._rawValidators))}removeAsyncValidators(J){this.setAsyncValidators(K(J,this._rawAsyncValidators))}hasValidator(J){return ze(this._rawValidators,J)}hasAsyncValidator(J){return ze(this._rawAsyncValidators,J)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(J={}){this.touched=!0,this._parent&&!J.onlySelf&&this._parent.markAsTouched(J)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(J=>J.markAllAsTouched())}markAsUntouched(J={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(ne=>{ne.markAsUntouched({onlySelf:!0})}),this._parent&&!J.onlySelf&&this._parent._updateTouched(J)}markAsDirty(J={}){this.pristine=!1,this._parent&&!J.onlySelf&&this._parent.markAsDirty(J)}markAsPristine(J={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(ne=>{ne.markAsPristine({onlySelf:!0})}),this._parent&&!J.onlySelf&&this._parent._updatePristine(J)}markAsPending(J={}){this.status=st,!1!==J.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!J.onlySelf&&this._parent.markAsPending(J)}disable(J={}){const ne=this._parentMarkedDirty(J.onlySelf);this.status=At,this.errors=null,this._forEachChild(Qe=>{Qe.disable(Object.assign(Object.assign({},J),{onlySelf:!0}))}),this._updateValue(),!1!==J.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},J),{skipPristineCheck:ne})),this._onDisabledChange.forEach(Qe=>Qe(!0))}enable(J={}){const ne=this._parentMarkedDirty(J.onlySelf);this.status=Fe,this._forEachChild(Qe=>{Qe.enable(Object.assign(Object.assign({},J),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:J.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},J),{skipPristineCheck:ne})),this._onDisabledChange.forEach(Qe=>Qe(!1))}_updateAncestors(J){this._parent&&!J.onlySelf&&(this._parent.updateValueAndValidity(J),J.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(J){this._parent=J}updateValueAndValidity(J={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Fe||this.status===st)&&this._runAsyncValidator(J.emitEvent)),!1!==J.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!J.onlySelf&&this._parent.updateValueAndValidity(J)}_updateTreeValidity(J={emitEvent:!0}){this._forEachChild(ne=>ne._updateTreeValidity(J)),this.updateValueAndValidity({onlySelf:!0,emitEvent:J.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?At:Fe}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(J){if(this.asyncValidator){this.status=st,this._hasOwnPendingAsyncValidator=!0;const ne=u(this.asyncValidator(this));this._asyncValidationSubscription=ne.subscribe(Qe=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(Qe,{emitEvent:J})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(J,ne={}){this.errors=J,this._updateControlsErrors(!1!==ne.emitEvent)}get(J){return function li(ge,J,ne){if(null==J||(Array.isArray(J)||(J=J.split(ne)),Array.isArray(J)&&0===J.length))return null;let Qe=ge;return J.forEach(Wt=>{Qe=Qe instanceof Di?Qe.controls.hasOwnProperty(Wt)?Qe.controls[Wt]:null:Qe instanceof Xi&&Qe.at(Wt)||null}),Qe}(this,J,".")}getError(J,ne){const Qe=ne?this.get(ne):this;return Qe&&Qe.errors?Qe.errors[J]:null}hasError(J,ne){return!!this.getError(J,ne)}get root(){let J=this;for(;J._parent;)J=J._parent;return J}_updateControlsErrors(J){this.status=this._calculateStatus(),J&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(J)}_initObservables(){this.valueChanges=new e.vpe,this.statusChanges=new e.vpe}_calculateStatus(){return this._allControlsDisabled()?At:this.errors?at:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(st)?st:this._anyControlsHaveStatus(at)?at:Fe}_anyControlsHaveStatus(J){return this._anyControls(ne=>ne.status===J)}_anyControlsDirty(){return this._anyControls(J=>J.dirty)}_anyControlsTouched(){return this._anyControls(J=>J.touched)}_updatePristine(J={}){this.pristine=!this._anyControlsDirty(),this._parent&&!J.onlySelf&&this._parent._updatePristine(J)}_updateTouched(J={}){this.touched=this._anyControlsTouched(),this._parent&&!J.onlySelf&&this._parent._updateTouched(J)}_isBoxedValue(J){return"object"==typeof J&&null!==J&&2===Object.keys(J).length&&"value"in J&&"disabled"in J}_registerOnCollectionChange(J){this._onCollectionChange=J}_setUpdateStrategy(J){ci(J)&&null!=J.updateOn&&(this._updateOn=J.updateOn)}_parentMarkedDirty(J){return!J&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Ui extends sn{constructor(J=null,ne,Qe){super(Bt(ne),Li(Qe,ne)),this._onChange=[],this._applyFormState(J),this._setUpdateStrategy(ne),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(J,ne={}){this.value=this._pendingValue=J,this._onChange.length&&!1!==ne.emitModelToViewChange&&this._onChange.forEach(Qe=>Qe(this.value,!1!==ne.emitViewToModelChange)),this.updateValueAndValidity(ne)}patchValue(J,ne={}){this.setValue(J,ne)}reset(J=null,ne={}){this._applyFormState(J),this.markAsPristine(ne),this.markAsUntouched(ne),this.setValue(this.value,ne),this._pendingChange=!1}_updateValue(){}_anyControls(J){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(J){this._onChange.push(J)}_unregisterOnChange(J){ct(this._onChange,J)}registerOnDisabledChange(J){this._onDisabledChange.push(J)}_unregisterOnDisabledChange(J){ct(this._onDisabledChange,J)}_forEachChild(J){}_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(J){this._isBoxedValue(J)?(this.value=this._pendingValue=J.value,J.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=J}}class Di extends sn{constructor(J,ne,Qe){super(Bt(ne),Li(Qe,ne)),this.controls=J,this._initObservables(),this._setUpdateStrategy(ne),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(J,ne){return this.controls[J]?this.controls[J]:(this.controls[J]=ne,ne.setParent(this),ne._registerOnCollectionChange(this._onCollectionChange),ne)}addControl(J,ne,Qe={}){this.registerControl(J,ne),this.updateValueAndValidity({emitEvent:Qe.emitEvent}),this._onCollectionChange()}removeControl(J,ne={}){this.controls[J]&&this.controls[J]._registerOnCollectionChange(()=>{}),delete this.controls[J],this.updateValueAndValidity({emitEvent:ne.emitEvent}),this._onCollectionChange()}setControl(J,ne,Qe={}){this.controls[J]&&this.controls[J]._registerOnCollectionChange(()=>{}),delete this.controls[J],ne&&this.registerControl(J,ne),this.updateValueAndValidity({emitEvent:Qe.emitEvent}),this._onCollectionChange()}contains(J){return this.controls.hasOwnProperty(J)&&this.controls[J].enabled}setValue(J,ne={}){this._checkAllValuesPresent(J),Object.keys(J).forEach(Qe=>{this._throwIfControlMissing(Qe),this.controls[Qe].setValue(J[Qe],{onlySelf:!0,emitEvent:ne.emitEvent})}),this.updateValueAndValidity(ne)}patchValue(J,ne={}){null!=J&&(Object.keys(J).forEach(Qe=>{this.controls[Qe]&&this.controls[Qe].patchValue(J[Qe],{onlySelf:!0,emitEvent:ne.emitEvent})}),this.updateValueAndValidity(ne))}reset(J={},ne={}){this._forEachChild((Qe,Wt)=>{Qe.reset(J[Wt],{onlySelf:!0,emitEvent:ne.emitEvent})}),this._updatePristine(ne),this._updateTouched(ne),this.updateValueAndValidity(ne)}getRawValue(){return this._reduceChildren({},(J,ne,Qe)=>(J[Qe]=ne instanceof Ui?ne.value:ne.getRawValue(),J))}_syncPendingControls(){let J=this._reduceChildren(!1,(ne,Qe)=>!!Qe._syncPendingControls()||ne);return J&&this.updateValueAndValidity({onlySelf:!0}),J}_throwIfControlMissing(J){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[J])throw new Error(`Cannot find form control with name: ${J}.`)}_forEachChild(J){Object.keys(this.controls).forEach(ne=>{const Qe=this.controls[ne];Qe&&J(Qe,ne)})}_setUpControls(){this._forEachChild(J=>{J.setParent(this),J._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(J){for(const ne of Object.keys(this.controls)){const Qe=this.controls[ne];if(this.contains(ne)&&J(Qe))return!0}return!1}_reduceValue(){return this._reduceChildren({},(J,ne,Qe)=>((ne.enabled||this.disabled)&&(J[Qe]=ne.value),J))}_reduceChildren(J,ne){let Qe=J;return this._forEachChild((Wt,mi)=>{Qe=ne(Qe,Wt,mi)}),Qe}_allControlsDisabled(){for(const J of Object.keys(this.controls))if(this.controls[J].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(J){this._forEachChild((ne,Qe)=>{if(void 0===J[Qe])throw new Error(`Must supply a value for form control with name: '${Qe}'.`)})}}class Xi extends sn{constructor(J,ne,Qe){super(Bt(ne),Li(Qe,ne)),this.controls=J,this._initObservables(),this._setUpdateStrategy(ne),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(J){return this.controls[J]}push(J,ne={}){this.controls.push(J),this._registerControl(J),this.updateValueAndValidity({emitEvent:ne.emitEvent}),this._onCollectionChange()}insert(J,ne,Qe={}){this.controls.splice(J,0,ne),this._registerControl(ne),this.updateValueAndValidity({emitEvent:Qe.emitEvent})}removeAt(J,ne={}){this.controls[J]&&this.controls[J]._registerOnCollectionChange(()=>{}),this.controls.splice(J,1),this.updateValueAndValidity({emitEvent:ne.emitEvent})}setControl(J,ne,Qe={}){this.controls[J]&&this.controls[J]._registerOnCollectionChange(()=>{}),this.controls.splice(J,1),ne&&(this.controls.splice(J,0,ne),this._registerControl(ne)),this.updateValueAndValidity({emitEvent:Qe.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(J,ne={}){this._checkAllValuesPresent(J),J.forEach((Qe,Wt)=>{this._throwIfControlMissing(Wt),this.at(Wt).setValue(Qe,{onlySelf:!0,emitEvent:ne.emitEvent})}),this.updateValueAndValidity(ne)}patchValue(J,ne={}){null!=J&&(J.forEach((Qe,Wt)=>{this.at(Wt)&&this.at(Wt).patchValue(Qe,{onlySelf:!0,emitEvent:ne.emitEvent})}),this.updateValueAndValidity(ne))}reset(J=[],ne={}){this._forEachChild((Qe,Wt)=>{Qe.reset(J[Wt],{onlySelf:!0,emitEvent:ne.emitEvent})}),this._updatePristine(ne),this._updateTouched(ne),this.updateValueAndValidity(ne)}getRawValue(){return this.controls.map(J=>J instanceof Ui?J.value:J.getRawValue())}clear(J={}){this.controls.length<1||(this._forEachChild(ne=>ne._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:J.emitEvent}))}_syncPendingControls(){let J=this.controls.reduce((ne,Qe)=>!!Qe._syncPendingControls()||ne,!1);return J&&this.updateValueAndValidity({onlySelf:!0}),J}_throwIfControlMissing(J){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(J))throw new Error(`Cannot find form control at index ${J}`)}_forEachChild(J){this.controls.forEach((ne,Qe)=>{J(ne,Qe)})}_updateValue(){this.value=this.controls.filter(J=>J.enabled||this.disabled).map(J=>J.value)}_anyControls(J){return this.controls.some(ne=>ne.enabled&&J(ne))}_setUpControls(){this._forEachChild(J=>this._registerControl(J))}_checkAllValuesPresent(J){this._forEachChild((ne,Qe)=>{if(void 0===J[Qe])throw new Error(`Must supply a value for form control at index: ${Qe}.`)})}_allControlsDisabled(){for(const J of this.controls)if(J.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(J){J.setParent(this),J._registerOnCollectionChange(this._onCollectionChange)}}const Ke={provide:z,useExisting:(0,e.Gpc)(()=>ve)},_t=(()=>Promise.resolve(null))();let ve=(()=>{class ge extends z{constructor(ne,Qe){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new e.vpe,this.form=new Di({},v(ne),F(Qe))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(ne){_t.then(()=>{const Qe=this._findContainer(ne.path);ne.control=Qe.registerControl(ne.name,ne.control),Zt(ne.control,ne),ne.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(ne)})}getControl(ne){return this.form.get(ne.path)}removeControl(ne){_t.then(()=>{const Qe=this._findContainer(ne.path);Qe&&Qe.removeControl(ne.name),ct(this._directives,ne)})}addFormGroup(ne){_t.then(()=>{const Qe=this._findContainer(ne.path),Wt=new Di({});Ee(Wt,ne),Qe.registerControl(ne.name,Wt),Wt.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(ne){_t.then(()=>{const Qe=this._findContainer(ne.path);Qe&&Qe.removeControl(ne.name)})}getFormGroup(ne){return this.form.get(ne.path)}updateModel(ne,Qe){_t.then(()=>{this.form.get(ne.path).setValue(Qe)})}setValue(ne){this.control.setValue(ne)}onSubmit(ne){return this.submitted=!0,Nt(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 ge.\u0275fac=function(ne){return new(ne||ge)(e.Y36(j,10),e.Y36(W,10))},ge.\u0275dir=e.lG2({type:ge,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(ne,Qe){1&ne&&e.NdJ("submit",function(mi){return Qe.onSubmit(mi)})("reset",function(){return Qe.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[e._Bn([Ke]),e.qOj]}),ge})();const Ni={provide:we,useExisting:(0,e.Gpc)(()=>qi)},Si=(()=>Promise.resolve(null))();let qi=(()=>{class ge extends we{constructor(ne,Qe,Wt,mi){super(),this.control=new Ui,this._registered=!1,this.update=new e.vpe,this._parent=ne,this._setValidators(Qe),this._setAsyncValidators(Wt),this.valueAccessor=Jt(0,mi)}ngOnChanges(ne){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in ne&&this._updateDisabled(ne),et(ne,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?Mt(this.name,this._parent):[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(){Zt(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){Si.then(()=>{this.control.setValue(ne,{emitViewToModelChange:!1})})}_updateDisabled(ne){const Qe=ne.isDisabled.currentValue,Wt=""===Qe||Qe&&"false"!==Qe;Si.then(()=>{Wt&&!this.control.disabled?this.control.disable():!Wt&&this.control.disabled&&this.control.enable()})}}return ge.\u0275fac=function(ne){return new(ne||ge)(e.Y36(z,9),e.Y36(j,10),e.Y36(W,10),e.Y36(N,10))},ge.\u0275dir=e.lG2({type:ge,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([Ni]),e.qOj,e.TTD]}),ge})(),ot=(()=>{class ge{}return ge.\u0275fac=function(ne){return new(ne||ge)},ge.\u0275dir=e.lG2({type:ge,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),ge})();const Kt={provide:N,useExisting:(0,e.Gpc)(()=>gt),multi:!0};let gt=(()=>{class ge extends l{writeValue(ne){this.setProperty("value",null==ne?"":ne)}registerOnChange(ne){this.onChange=Qe=>{ne(""==Qe?null:parseFloat(Qe))}}}return ge.\u0275fac=function(){let J;return function(Qe){return(J||(J=e.n5z(ge)))(Qe||ge)}}(),ge.\u0275dir=e.lG2({type:ge,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(ne,Qe){1&ne&&e.NdJ("input",function(mi){return Qe.onChange(mi.target.value)})("blur",function(){return Qe.onTouched()})},features:[e._Bn([Kt]),e.qOj]}),ge})(),Ci=(()=>{class ge{}return ge.\u0275fac=function(ne){return new(ne||ge)},ge.\u0275mod=e.oAB({type:ge}),ge.\u0275inj=e.cJS({}),ge})();const _n=new e.OlP("NgModelWithFormControlWarning"),Pn={provide:we,useExisting:(0,e.Gpc)(()=>dr)};let dr=(()=>{class ge extends we{constructor(ne,Qe,Wt,mi){super(),this._ngModelWarningConfig=mi,this.update=new e.vpe,this._ngModelWarningSent=!1,this._setValidators(ne),this._setAsyncValidators(Qe),this.valueAccessor=Jt(0,Wt)}set isDisabled(ne){}ngOnChanges(ne){if(this._isControlChanged(ne)){const Qe=ne.form.previousValue;Qe&&Ft(Qe,this,!1),Zt(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}et(ne,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Ft(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 ge._ngModelWarningSentOnce=!1,ge.\u0275fac=function(ne){return new(ne||ge)(e.Y36(j,10),e.Y36(W,10),e.Y36(N,10),e.Y36(_n,8))},ge.\u0275dir=e.lG2({type:ge,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[e._Bn([Pn]),e.qOj,e.TTD]}),ge})();const wi={provide:z,useExisting:(0,e.Gpc)(()=>Fi)};let Fi=(()=>{class ge extends z{constructor(ne,Qe){super(),this.validators=ne,this.asyncValidators=Qe,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new e.vpe,this._setValidators(ne),this._setAsyncValidators(Qe)}ngOnChanges(ne){this._checkFormPresent(),ne.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(ei(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 Qe=this.form.get(ne.path);return Zt(Qe,ne),Qe.updateValueAndValidity({emitEvent:!1}),this.directives.push(ne),Qe}getControl(ne){return this.form.get(ne.path)}removeControl(ne){Ft(ne.control||null,ne,!1),ct(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,Qe){this.form.get(ne.path).setValue(Qe)}onSubmit(ne){return this.submitted=!0,Nt(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 Qe=ne.control,Wt=this.form.get(ne.path);Qe!==Wt&&(Ft(Qe||null,ne),Wt instanceof Ui&&(Zt(Wt,ne),ne.control=Wt))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(ne){const Qe=this.form.get(ne.path);Ee(Qe,ne),Qe.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(ne){if(this.form){const Qe=this.form.get(ne.path);Qe&&function Y(ge,J){return ei(ge,J)}(Qe,ne)&&Qe.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){jt(this.form,this),this._oldForm&&ei(this._oldForm,this)}_checkFormPresent(){}}return ge.\u0275fac=function(ne){return new(ne||ge)(e.Y36(j,10),e.Y36(W,10))},ge.\u0275dir=e.lG2({type:ge,selectors:[["","formGroup",""]],hostBindings:function(ne,Qe){1&ne&&e.NdJ("submit",function(mi){return Qe.onSubmit(mi)})("reset",function(){return Qe.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[e._Bn([wi]),e.qOj,e.TTD]}),ge})();const Ra={provide:we,useExisting:(0,e.Gpc)(()=>Ma)};let Ma=(()=>{class ge extends we{constructor(ne,Qe,Wt,mi,Ct){super(),this._ngModelWarningConfig=Ct,this._added=!1,this.update=new e.vpe,this._ngModelWarningSent=!1,this._parent=ne,this._setValidators(Qe),this._setAsyncValidators(Wt),this.valueAccessor=Jt(0,mi)}set isDisabled(ne){}ngOnChanges(ne){this._added||this._setUpControl(),et(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 Mt(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 ge._ngModelWarningSentOnce=!1,ge.\u0275fac=function(ne){return new(ne||ge)(e.Y36(z,13),e.Y36(j,10),e.Y36(W,10),e.Y36(N,10),e.Y36(_n,8))},ge.\u0275dir=e.lG2({type:ge,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[e._Bn([Ra]),e.qOj,e.TTD]}),ge})();function vn(ge){return"number"==typeof ge?ge:parseFloat(ge)}let Qn=(()=>{class ge{constructor(){this._validator=a}ngOnChanges(ne){if(this.inputName in ne){const Qe=this.normalizeInput(ne[this.inputName].currentValue);this._validator=this.enabled()?this.createValidator(Qe):a,this._onChange&&this._onChange()}}validate(ne){return this._validator(ne)}registerOnValidatorChange(ne){this._onChange=ne}enabled(){return null!=this[this.inputName]}}return ge.\u0275fac=function(ne){return new(ne||ge)},ge.\u0275dir=e.lG2({type:ge,features:[e.TTD]}),ge})();const Tr={provide:j,useExisting:(0,e.Gpc)(()=>Ba),multi:!0};let Ba=(()=>{class ge extends Qn{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=ne=>vn(ne),this.createValidator=ne=>ce(ne)}}return ge.\u0275fac=function(){let J;return function(Qe){return(J||(J=e.n5z(ge)))(Qe||ge)}}(),ge.\u0275dir=e.lG2({type:ge,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(ne,Qe){2&ne&&e.uIk("max",Qe.enabled()?Qe.max:null)},inputs:{max:"max"},features:[e._Bn([Tr]),e.qOj]}),ge})();const Wa={provide:j,useExisting:(0,e.Gpc)(()=>Pr),multi:!0};let Pr=(()=>{class ge extends Qn{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=ne=>vn(ne),this.createValidator=ne=>_e(ne)}}return ge.\u0275fac=function(){let J;return function(Qe){return(J||(J=e.n5z(ge)))(Qe||ge)}}(),ge.\u0275dir=e.lG2({type:ge,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(ne,Qe){2&ne&&e.uIk("min",Qe.enabled()?Qe.min:null)},inputs:{min:"min"},features:[e._Bn([Wa]),e.qOj]}),ge})();const la={provide:j,useExisting:(0,e.Gpc)(()=>ga),multi:!0},Jr={provide:j,useExisting:(0,e.Gpc)(()=>$n),multi:!0};let ga=(()=>{class ge{constructor(){this._required=!1}get required(){return this._required}set required(ne){this._required=null!=ne&&!1!==ne&&"false"!=`${ne}`,this._onChange&&this._onChange()}validate(ne){return this.required?re(ne):null}registerOnValidatorChange(ne){this._onChange=ne}}return ge.\u0275fac=function(ne){return new(ne||ge)},ge.\u0275dir=e.lG2({type:ge,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(ne,Qe){2&ne&&e.uIk("required",Qe.required?"":null)},inputs:{required:"required"},features:[e._Bn([la])]}),ge})(),$n=(()=>{class ge extends ga{validate(ne){return this.required?de(ne):null}}return ge.\u0275fac=function(){let J;return function(Qe){return(J||(J=e.n5z(ge)))(Qe||ge)}}(),ge.\u0275dir=e.lG2({type:ge,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(ne,Qe){2&ne&&e.uIk("required",Qe.required?"":null)},features:[e._Bn([Jr]),e.qOj]}),ge})(),Gr=(()=>{class ge{}return ge.\u0275fac=function(ne){return new(ne||ge)},ge.\u0275mod=e.oAB({type:ge}),ge.\u0275inj=e.cJS({imports:[[Ci]]}),ge})(),Ha=(()=>{class ge{}return ge.\u0275fac=function(ne){return new(ne||ge)},ge.\u0275mod=e.oAB({type:ge}),ge.\u0275inj=e.cJS({imports:[Gr]}),ge})(),Zn=(()=>{class ge{static withConfig(ne){return{ngModule:ge,providers:[{provide:_n,useValue:ne.warnOnNgModelWithFormControl}]}}}return ge.\u0275fac=function(ne){return new(ne||ge)},ge.\u0275mod=e.oAB({type:ge}),ge.\u0275inj=e.cJS({imports:[Gr]}),ge})(),ja=(()=>{class ge{group(ne,Qe=null){const Wt=this._reduceControls(ne);let ti,mi=null,Ct=null;return null!=Qe&&(function ns(ge){return void 0!==ge.asyncValidators||void 0!==ge.validators||void 0!==ge.updateOn}(Qe)?(mi=null!=Qe.validators?Qe.validators:null,Ct=null!=Qe.asyncValidators?Qe.asyncValidators:null,ti=null!=Qe.updateOn?Qe.updateOn:void 0):(mi=null!=Qe.validator?Qe.validator:null,Ct=null!=Qe.asyncValidator?Qe.asyncValidator:null)),new Di(Wt,{asyncValidators:Ct,updateOn:ti,validators:mi})}control(ne,Qe,Wt){return new Ui(ne,Qe,Wt)}array(ne,Qe,Wt){const mi=ne.map(Ct=>this._createControl(Ct));return new Xi(mi,Qe,Wt)}_reduceControls(ne){const Qe={};return Object.keys(ne).forEach(Wt=>{Qe[Wt]=this._createControl(ne[Wt])}),Qe}_createControl(ne){return ne instanceof Ui||ne instanceof Di||ne instanceof Xi?ne:Array.isArray(ne)?this.control(ne[0],ne.length>1?ne[1]:null,ne.length>2?ne[2]:null):this.control(ne)}}return ge.\u0275fac=function(ne){return new(ne||ge)},ge.\u0275prov=e.Yz7({token:ge,factory:ge.\u0275fac,providedIn:Zn}),ge})()},1079:(Ve,Q,m)=>{"use strict";m.d(Q,{XC:()=>x,Bb:()=>Ie,ZL:()=>Ce});var e=m(5664),t=m(3191),y=m(5e3),C=m(508),o=m(727),M=m(7579),l=m(9770),N=m(6451),s=m(9646),D=m(4968),A=m(925),O=m(9808),E=m(9776),P=m(5303),w=m(1159),Z=m(7429),j=m(3075),W=m(7322),ie=m(5698),ee=m(3900),_e=m(9300),ce=m(4004),re=m(8505),de=m(4086),oe=m(226);const ae=["panel"];function b(K,Me){if(1&K&&(y.TgZ(0,"div",0,1),y.Hsn(2),y.qZA()),2&K){const we=Me.id,z=y.oxw();y.Q6J("id",z.id)("ngClass",z._classList),y.uIk("aria-label",z.ariaLabel||null)("aria-labelledby",z._getPanelAriaLabelledby(we))}}const i=["*"];let a=0;class p{constructor(Me,we){this.source=Me,this.option=we}}const u=(0,C.Kr)(class{}),_=new y.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function L(){return{autoActiveFirstOption:!1}}});let I=(()=>{class K extends u{constructor(we,z,Ge,vt){super(),this._changeDetectorRef=we,this._elementRef=z,this._activeOptionChanges=o.w0.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new y.vpe,this.opened=new y.vpe,this.closed=new y.vpe,this.optionActivated=new y.vpe,this._classList={},this.id="mat-autocomplete-"+a++,this.inertGroups=(null==vt?void 0:vt.SAFARI)||!1,this._autoActiveFirstOption=!!Ge.autoActiveFirstOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(we){this._autoActiveFirstOption=(0,t.Ig)(we)}set classList(we){this._classList=we&&we.length?(0,t.du)(we).reduce((z,Ge)=>(z[Ge]=!0,z),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new e.s1(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(we=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[we]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(we){this.panel&&(this.panel.nativeElement.scrollTop=we)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(we){const z=new p(this,we);this.optionSelected.emit(z)}_getPanelAriaLabelledby(we){return this.ariaLabel?null:this.ariaLabelledby?(we?we+" ":"")+this.ariaLabelledby:we}_setVisibilityClasses(we){we[this._visibleClass]=this.showPanel,we[this._hiddenClass]=!this.showPanel}}return K.\u0275fac=function(we){return new(we||K)(y.Y36(y.sBO),y.Y36(y.SBq),y.Y36(_),y.Y36(A.t4))},K.\u0275dir=y.lG2({type:K,viewQuery:function(we,z){if(1&we&&(y.Gf(y.Rgc,7),y.Gf(ae,5)),2&we){let Ge;y.iGM(Ge=y.CRH())&&(z.template=Ge.first),y.iGM(Ge=y.CRH())&&(z.panel=Ge.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:[y.qOj]}),K})(),x=(()=>{class K extends I{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return K.\u0275fac=function(){let Me;return function(z){return(Me||(Me=y.n5z(K)))(z||K)}}(),K.\u0275cmp=y.Xpm({type:K,selectors:[["mat-autocomplete"]],contentQueries:function(we,z,Ge){if(1&we&&(y.Suo(Ge,C.K7,5),y.Suo(Ge,C.ey,5)),2&we){let vt;y.iGM(vt=y.CRH())&&(z.optionGroups=vt),y.iGM(vt=y.CRH())&&(z.options=vt)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[y._Bn([{provide:C.HF,useExisting:K}]),y.qOj],ngContentSelectors:i,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(we,z){1&we&&(y.F$t(),y.YNc(0,b,3,4,"ng-template"))},directives:[O.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}),K})();const r=new y.OlP("mat-autocomplete-scroll-strategy"),G={provide:r,deps:[E.aV],useFactory:function v(K){return()=>K.scrollStrategies.reposition()}},F={provide:j.JU,useExisting:(0,y.Gpc)(()=>Ce),multi:!0};let ye=(()=>{class K{constructor(we,z,Ge,vt,Re,Ne,he,Le,ke,q,$){this._element=we,this._overlay=z,this._viewContainerRef=Ge,this._zone=vt,this._changeDetectorRef=Re,this._dir=he,this._formField=Le,this._document=ke,this._viewportRuler=q,this._defaults=$,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=o.w0.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new M.x,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=(0,l.P)(()=>this.autocomplete&&this.autocomplete.options?(0,N.T)(...this.autocomplete.options.map(le=>le.onSelectionChange)):this._zone.onStable.pipe((0,ie.q)(1),(0,ee.w)(()=>this.optionSelections))),this._scrollStrategy=Ne}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(we){this._autocompleteDisabled=(0,t.Ig)(we)}ngAfterViewInit(){const we=this._getWindow();void 0!==we&&this._zone.runOutsideAngular(()=>we.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(we){we.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const we=this._getWindow();void 0!==we&&we.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.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,N.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,_e.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,_e.h)(()=>this._overlayAttached)):(0,s.of)()).pipe((0,ce.U)(we=>we instanceof C.rN?we:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,N.T)((0,D.R)(this._document,"click"),(0,D.R)(this._document,"auxclick"),(0,D.R)(this._document,"touchend")).pipe((0,_e.h)(we=>{const z=(0,A.sA)(we),Ge=this._formField?this._formField._elementRef.nativeElement:null,vt=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&z!==this._element.nativeElement&&(!Ge||!Ge.contains(z))&&(!vt||!vt.contains(z))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(z)}))}writeValue(we){Promise.resolve(null).then(()=>this._setTriggerValue(we))}registerOnChange(we){this._onChange=we}registerOnTouched(we){this._onTouched=we}setDisabledState(we){this._element.nativeElement.disabled=we}_handleKeydown(we){const z=we.keyCode;if(z===w.hY&&!(0,w.Vb)(we)&&we.preventDefault(),this.activeOption&&z===w.K5&&this.panelOpen)this.activeOption._selectViaInteraction(),this._resetActiveItem(),we.preventDefault();else if(this.autocomplete){const Ge=this.autocomplete._keyManager.activeItem,vt=z===w.LH||z===w.JH;this.panelOpen||z===w.Mf?this.autocomplete._keyManager.onKeydown(we):vt&&this._canOpen()&&this.openPanel(),(vt||this.autocomplete._keyManager.activeItem!==Ge)&&this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0)}}_handleInput(we){let z=we.target,Ge=z.value;"number"===z.type&&(Ge=""==Ge?null:parseFloat(Ge)),this._previousValue!==Ge&&(this._previousValue=Ge,this._onChange(Ge),this._canOpen()&&this._document.activeElement===we.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_floatLabel(we=!1){this._formField&&"auto"===this._formField.floatLabel&&(we?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const we=this._zone.onStable.pipe((0,ie.q)(1)),z=this.autocomplete.options.changes.pipe((0,re.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,de.g)(0));return(0,N.T)(we,z).pipe((0,ee.w)(()=>{const Ge=this.panelOpen;return this._resetActiveItem(),this.autocomplete._setVisibility(),this.panelOpen&&(this._overlayRef.updatePosition(),Ge!==this.panelOpen&&this.autocomplete.opened.emit()),this.panelClosingActions}),(0,ie.q)(1)).subscribe(Ge=>this._setValueAndClose(Ge))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_setTriggerValue(we){const z=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(we):we,Ge=null!=z?z:"";this._formField?this._formField._control.value=Ge:this._element.nativeElement.value=Ge,this._previousValue=Ge}_setValueAndClose(we){we&&we.source&&(this._clearPreviousSelectedOption(we.source),this._setTriggerValue(we.source.value),this._onChange(we.source.value),this._element.nativeElement.focus(),this.autocomplete._emitSelectEvent(we.source)),this.closePanel()}_clearPreviousSelectedOption(we){this.autocomplete.options.forEach(z=>{z!==we&&z.selected&&z.deselect()})}_attachOverlay(){var we;let z=this._overlayRef;z?(this._positionStrategy.setOrigin(this._getConnectedElement()),z.updateSize({width:this._getPanelWidth()})):(this._portal=new Z.UE(this.autocomplete.template,this._viewContainerRef,{id:null===(we=this._formField)||void 0===we?void 0:we.getLabelId()}),z=this._overlay.create(this._getOverlayConfig()),this._overlayRef=z,z.keydownEvents().subscribe(vt=>{(vt.keyCode===w.hY&&!(0,w.Vb)(vt)||vt.keyCode===w.LH&&(0,w.Vb)(vt,"altKey"))&&(this._closeKeyEventStream.next(),this._resetActiveItem(),vt.stopPropagation(),vt.preventDefault())}),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&z&&z.updateSize({width:this._getPanelWidth()})})),z&&!z.hasAttached()&&(z.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const Ge=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&Ge!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){var we;return new E.X_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(we=this._defaults)||void 0===we?void 0:we.overlayPanelClass})}_getOverlayPosition(){const we=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(we),this._positionStrategy=we,we}_setStrategyPositions(we){const z=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Ge=this._aboveClass,vt=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:Ge},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:Ge}];let Re;Re="above"===this.position?vt:"below"===this.position?z:[...z,...vt],we.withPositions(Re)}_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 we=this.autocomplete;we.autoActiveFirstOption?we._keyManager.setFirstItemActive():we._keyManager.setActiveItem(-1)}_canOpen(){const we=this._element.nativeElement;return!we.readOnly&&!we.disabled&&!this._autocompleteDisabled}_getWindow(){var we;return(null===(we=this._document)||void 0===we?void 0:we.defaultView)||window}_scrollToOption(we){const z=this.autocomplete,Ge=(0,C.CB)(we,z.options,z.optionGroups);if(0===we&&1===Ge)z._setScrollTop(0);else if(z.panel){const vt=z.options.toArray()[we];if(vt){const Re=vt._getHostElement(),Ne=(0,C.jH)(Re.offsetTop,Re.offsetHeight,z._getScrollTop(),z.panel.nativeElement.offsetHeight);z._setScrollTop(Ne)}}}}return K.\u0275fac=function(we){return new(we||K)(y.Y36(y.SBq),y.Y36(E.aV),y.Y36(y.s_b),y.Y36(y.R0b),y.Y36(y.sBO),y.Y36(r),y.Y36(oe.Is,8),y.Y36(W.G_,9),y.Y36(O.K0,8),y.Y36(P.rL),y.Y36(_,8))},K.\u0275dir=y.lG2({type:K,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[y.TTD]}),K})(),Ce=(()=>{class K extends ye{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return K.\u0275fac=function(){let Me;return function(z){return(Me||(Me=y.n5z(K)))(z||K)}}(),K.\u0275dir=y.lG2({type:K,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(we,z){1&we&&y.NdJ("focusin",function(){return z._handleFocus()})("blur",function(){return z._onTouched()})("input",function(vt){return z._handleInput(vt)})("keydown",function(vt){return z._handleKeydown(vt)}),2&we&&y.uIk("autocomplete",z.autocompleteAttribute)("role",z.autocompleteDisabled?null:"combobox")("aria-autocomplete",z.autocompleteDisabled?null:"list")("aria-activedescendant",z.panelOpen&&z.activeOption?z.activeOption.id:null)("aria-expanded",z.autocompleteDisabled?null:z.panelOpen.toString())("aria-owns",z.autocompleteDisabled||!z.panelOpen||null==z.autocomplete?null:z.autocomplete.id)("aria-haspopup",!z.autocompleteDisabled)},exportAs:["matAutocompleteTrigger"],features:[y._Bn([F]),y.qOj]}),K})(),Ie=(()=>{class K{}return K.\u0275fac=function(we){return new(we||K)},K.\u0275mod=y.oAB({type:K}),K.\u0275inj=y.cJS({providers:[G],imports:[[E.U8,C.Ng,C.BQ,O.ez],P.ZD,C.Ng,C.BQ]}),K})()},7544:(Ve,Q,m)=>{"use strict";m.d(Q,{k:()=>s,g:()=>D});var e=m(5e3),t=m(508),y=m(5664),C=m(3191),o=m(6360);let M=0;const l=(0,t.Id)(class{}),N="mat-badge-content";let s=(()=>{class A extends l{constructor(E,P,w,Z,j){super(),this._ngZone=E,this._elementRef=P,this._ariaDescriber=w,this._renderer=Z,this._animationMode=j,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=M++,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,C.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,C.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"),P="mat-badge-active";return E.setAttribute("id",`mat-badge-content-${this._id}`),E.setAttribute("aria-hidden","true"),E.classList.add(N),"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(P)})}):E.classList.add(P),E}_updateRenderedContent(E){const P=`${null!=E?E:""}`.trim();this._isInitialized&&P&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=P),this._content=P}_updateHostAriaDescription(E){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),E&&this._ariaDescriber.describe(this._elementRef.nativeElement,E),this._description=E}_setColor(E){const P=this._elementRef.nativeElement.classList;P.remove(`mat-badge-${this._color}`),E&&P.add(`mat-badge-${E}`)}_clearExistingBadges(){const E=this._elementRef.nativeElement.querySelectorAll(`:scope > .${N}`);for(const P of Array.from(E))P!==this._badgeElement&&P.remove()}}return A.\u0275fac=function(E){return new(E||A)(e.Y36(e.R0b),e.Y36(e.SBq),e.Y36(y.$s),e.Y36(e.Qsj),e.Y36(o.Qb,8))},A.\u0275dir=e.lG2({type:A,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(E,P){2&E&&e.ekj("mat-badge-overlap",P.overlap)("mat-badge-above",P.isAbove())("mat-badge-below",!P.isAbove())("mat-badge-before",!P.isAfter())("mat-badge-after",P.isAfter())("mat-badge-small","small"===P.size)("mat-badge-medium","medium"===P.size)("mat-badge-large","large"===P.size)("mat-badge-hidden",P.hidden||!P.content)("mat-badge-disabled",P.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],position:["matBadgePosition","position"],content:["matBadge","content"],description:["matBadgeDescription","description"],size:["matBadgeSize","size"],hidden:["matBadgeHidden","hidden"]},features:[e.qOj]}),A})(),D=(()=>{class A{}return A.\u0275fac=function(E){return new(E||A)},A.\u0275mod=e.oAB({type:A}),A.\u0275inj=e.cJS({imports:[[y.rt,t.BQ],t.BQ]}),A})()},7423:(Ve,Q,m)=>{"use strict";m.d(Q,{lW:()=>A,ot:()=>E});var e=m(5e3),t=m(508),y=m(6360),C=m(5664);const o=["mat-button",""],M=["*"],s=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],D=(0,t.pj)((0,t.Id)((0,t.Kr)(class{constructor(P){this._elementRef=P}})));let A=(()=>{class P extends D{constructor(Z,j,W){super(Z),this._focusMonitor=j,this._animationMode=W,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const ie of s)this._hasHostAttributes(ie)&&this._getHostElement().classList.add(ie);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,j){Z?this._focusMonitor.focusVia(this._getHostElement(),Z,j):this._getHostElement().focus(j)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...Z){return Z.some(j=>this._getHostElement().hasAttribute(j))}}return P.\u0275fac=function(Z){return new(Z||P)(e.Y36(e.SBq),e.Y36(C.tE),e.Y36(y.Qb,8))},P.\u0275cmp=e.Xpm({type:P,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,j){if(1&Z&&e.Gf(t.wG,5),2&Z){let W;e.iGM(W=e.CRH())&&(j.ripple=W.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(Z,j){2&Z&&(e.uIk("disabled",j.disabled||null),e.ekj("_mat-animation-noopable","NoopAnimations"===j._animationMode)("mat-button-disabled",j.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[e.qOj],attrs:o,ngContentSelectors:M,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,j){1&Z&&(e.F$t(),e.TgZ(0,"span",0),e.Hsn(1),e.qZA(),e._UZ(2,"span",1),e._UZ(3,"span",2)),2&Z&&(e.xp6(2),e.ekj("mat-button-ripple-round",j.isRoundButton||j.isIconButton),e.Q6J("matRippleDisabled",j._isRippleDisabled())("matRippleCentered",j.isIconButton)("matRippleTrigger",j._getHostElement()))},directives:[t.wG],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-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;-moz-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;-moz-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;-moz-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}),P})(),E=(()=>{class P{}return P.\u0275fac=function(Z){return new(Z||P)},P.\u0275mod=e.oAB({type:P}),P.\u0275inj=e.cJS({imports:[[t.si,t.BQ],t.BQ]}),P})()},9224:(Ve,Q,m)=>{"use strict";m.d(Q,{a8:()=>_e,dn:()=>D,dk:()=>ce,QW:()=>de,$j:()=>O,n5:()=>A});var e=m(5e3),t=m(6360),y=m(508);const C=["*",[["mat-card-footer"]]],o=["*","mat-card-footer"],M=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],l=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"];let D=(()=>{class oe{}return oe.\u0275fac=function(b){return new(b||oe)},oe.\u0275dir=e.lG2({type:oe,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),oe})(),A=(()=>{class oe{}return oe.\u0275fac=function(b){return new(b||oe)},oe.\u0275dir=e.lG2({type:oe,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),oe})(),O=(()=>{class oe{}return oe.\u0275fac=function(b){return new(b||oe)},oe.\u0275dir=e.lG2({type:oe,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),oe})(),_e=(()=>{class oe{constructor(b){this._animationMode=b}}return oe.\u0275fac=function(b){return new(b||oe)(e.Y36(t.Qb,8))},oe.\u0275cmp=e.Xpm({type:oe,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(b,i){2&b&&e.ekj("_mat-animation-noopable","NoopAnimations"===i._animationMode)},exportAs:["matCard"],ngContentSelectors:o,decls:2,vars:0,template:function(b,i){1&b&&(e.F$t(C),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}.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}),oe})(),ce=(()=>{class oe{}return oe.\u0275fac=function(b){return new(b||oe)},oe.\u0275cmp=e.Xpm({type:oe,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:l,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(b,i){1&b&&(e.F$t(M),e.Hsn(0),e.TgZ(1,"div",0),e.Hsn(2,1),e.qZA(),e.Hsn(3,2))},encapsulation:2,changeDetection:0}),oe})(),de=(()=>{class oe{}return oe.\u0275fac=function(b){return new(b||oe)},oe.\u0275mod=e.oAB({type:oe}),oe.\u0275inj=e.cJS({imports:[[y.BQ],y.BQ]}),oe})()},7446:(Ve,Q,m)=>{"use strict";m.d(Q,{oG:()=>W,p9:()=>ce});var e=m(3191),t=m(5e3),y=m(3075),C=m(508),o=m(6360),M=m(5664),l=m(7144);const N=["input"],s=function(re){return{enterDuration:re}},D=["*"],A=new t.OlP("mat-checkbox-default-options",{providedIn:"root",factory:O});function O(){return{color:"accent",clickAction:"check-indeterminate"}}let E=0;const P=O(),w={provide:y.JU,useExisting:(0,t.Gpc)(()=>W),multi:!0};class Z{}const j=(0,C.sb)((0,C.pj)((0,C.Kr)((0,C.Id)(class{constructor(re){this._elementRef=re}}))));let W=(()=>{class re extends j{constructor(oe,ae,b,i,a,p,u){super(oe),this._changeDetectorRef=ae,this._focusMonitor=b,this._ngZone=i,this._animationMode=p,this._options=u,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId="mat-checkbox-"+ ++E,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new t.vpe,this.indeterminateChange=new t.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||P,this.color=this.defaultColor=this._options.color||P.color,this.tabIndex=parseInt(a)||0}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(oe){this._required=(0,e.Ig)(oe)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(oe=>{oe||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(oe){oe!=this.checked&&(this._checked=oe,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(oe){const ae=(0,e.Ig)(oe);ae!==this.disabled&&(this._disabled=ae,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(oe){const ae=oe!=this._indeterminate;this._indeterminate=(0,e.Ig)(oe),ae&&(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(oe){this.checked=!!oe}registerOnChange(oe){this._controlValueAccessorChangeFn=oe}registerOnTouched(oe){this._onTouched=oe}setDisabledState(oe){this.disabled=oe}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(oe){let ae=this._currentCheckState,b=this._elementRef.nativeElement;if(ae!==oe&&(this._currentAnimationClass.length>0&&b.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(ae,oe),this._currentCheckState=oe,this._currentAnimationClass.length>0)){b.classList.add(this._currentAnimationClass);const i=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{b.classList.remove(i)},1e3)})}}_emitChangeEvent(){const oe=new Z;oe.source=this,oe.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(oe),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked}_onInputClick(oe){var ae;const b=null===(ae=this._options)||void 0===ae?void 0:ae.clickAction;oe.stopPropagation(),this.disabled||"noop"===b?!this.disabled&&"noop"===b&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==b&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(oe,ae){oe?this._focusMonitor.focusVia(this._inputElement,oe,ae):this._inputElement.nativeElement.focus(ae)}_onInteractionEvent(oe){oe.stopPropagation()}_getAnimationClassForCheckStateTransition(oe,ae){if("NoopAnimations"===this._animationMode)return"";let b="";switch(oe){case 0:if(1===ae)b="unchecked-checked";else{if(3!=ae)return"";b="unchecked-indeterminate"}break;case 2:b=1===ae?"unchecked-checked":"unchecked-indeterminate";break;case 1:b=2===ae?"checked-unchecked":"checked-indeterminate";break;case 3:b=1===ae?"indeterminate-checked":"indeterminate-unchecked"}return`mat-checkbox-anim-${b}`}_syncIndeterminate(oe){const ae=this._inputElement;ae&&(ae.nativeElement.indeterminate=oe)}}return re.\u0275fac=function(oe){return new(oe||re)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(M.tE),t.Y36(t.R0b),t.$8M("tabindex"),t.Y36(o.Qb,8),t.Y36(A,8))},re.\u0275cmp=t.Xpm({type:re,selectors:[["mat-checkbox"]],viewQuery:function(oe,ae){if(1&oe&&(t.Gf(N,5),t.Gf(C.wG,5)),2&oe){let b;t.iGM(b=t.CRH())&&(ae._inputElement=b.first),t.iGM(b=t.CRH())&&(ae.ripple=b.first)}},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(oe,ae){2&oe&&(t.Ikx("id",ae.id),t.uIk("tabindex",null),t.ekj("mat-checkbox-indeterminate",ae.indeterminate)("mat-checkbox-checked",ae.checked)("mat-checkbox-disabled",ae.disabled)("mat-checkbox-label-before","before"==ae.labelPosition)("_mat-animation-noopable","NoopAnimations"===ae._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:[t._Bn([w]),t.qOj],ngContentSelectors:D,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",0,"xml","space","preserve","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(oe,ae){if(1&oe&&(t.F$t(),t.TgZ(0,"label",0,1),t.TgZ(2,"span",2),t.TgZ(3,"input",3,4),t.NdJ("change",function(i){return ae._onInteractionEvent(i)})("click",function(i){return ae._onInputClick(i)}),t.qZA(),t.TgZ(5,"span",5),t._UZ(6,"span",6),t.qZA(),t._UZ(7,"span",7),t.TgZ(8,"span",8),t.O4$(),t.TgZ(9,"svg",9),t._UZ(10,"path",10),t.qZA(),t.kcU(),t._UZ(11,"span",11),t.qZA(),t.qZA(),t.TgZ(12,"span",12,13),t.NdJ("cdkObserveContent",function(){return ae._onLabelTextChange()}),t.TgZ(14,"span",14),t._uU(15,"\xa0"),t.qZA(),t.Hsn(16),t.qZA(),t.qZA()),2&oe){const b=t.MAs(1),i=t.MAs(13);t.uIk("for",ae.inputId),t.xp6(2),t.ekj("mat-checkbox-inner-container-no-side-margin",!i.textContent||!i.textContent.trim()),t.xp6(1),t.Q6J("id",ae.inputId)("required",ae.required)("checked",ae.checked)("disabled",ae.disabled)("tabIndex",ae.tabIndex),t.uIk("value",ae.value)("name",ae.name)("aria-label",ae.ariaLabel||null)("aria-labelledby",ae.ariaLabelledby)("aria-checked",ae._getAriaChecked())("aria-describedby",ae.ariaDescribedby),t.xp6(2),t.Q6J("matRippleTrigger",b)("matRippleDisabled",ae._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",t.VKq(19,s,"NoopAnimations"===ae._animationMode?0:150))}},directives:[C.wG,l.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;-moz-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;-moz-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}),re})(),_e=(()=>{class re{}return re.\u0275fac=function(oe){return new(oe||re)},re.\u0275mod=t.oAB({type:re}),re.\u0275inj=t.cJS({}),re})(),ce=(()=>{class re{}return re.\u0275fac=function(oe){return new(oe||re)},re.\u0275mod=t.oAB({type:re}),re.\u0275inj=t.cJS({imports:[[C.si,C.BQ,l.Q8,_e],C.BQ,_e]}),re})()},508:(Ve,Q,m)=>{"use strict";m.d(Q,{yN:()=>ie,mZ:()=>ee,_A:()=>r,rD:()=>Ie,sG:()=>v,K7:()=>Zt,HF:()=>ft,Y2:()=>le,BQ:()=>de,X2:()=>K,uc:()=>z,XK:()=>Be,ey:()=>ei,Ng:()=>hi,rN:()=>Ii,nP:()=>lt,us:()=>nt,wG:()=>xe,si:()=>Ue,LF:()=>U,IR:()=>ke,CB:()=>Pi,jH:()=>ai,pj:()=>a,Kr:()=>p,Id:()=>i,FD:()=>_,dB:()=>L,sb:()=>u,E0:()=>Me});var e=m(5e3),t=m(226),C=m(9808),o=m(925),M=m(5664),l=m(3191),N=m(7579),s=m(8306),D=m(8675),A=m(6360),O=m(1159);function w(Ze,Ee){if(1&Ze&&e._UZ(0,"mat-pseudo-checkbox",4),2&Ze){const Y=e.oxw();e.Q6J("state",Y.selected?"checked":"unchecked")("disabled",Y.disabled)}}function Z(Ze,Ee){if(1&Ze&&(e.TgZ(0,"span",5),e._uU(1),e.qZA()),2&Ze){const Y=e.oxw();e.xp6(1),e.hij("(",Y.group.label,")")}}const j=["*"];let ie=(()=>{class Ze{}return Ze.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",Ze.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",Ze.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",Ze.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",Ze})(),ee=(()=>{class Ze{}return Ze.COMPLEX="375ms",Ze.ENTERING="225ms",Ze.EXITING="195ms",Ze})();const re=new e.OlP("mat-sanity-checks",{providedIn:"root",factory:function ce(){return!0}});let de=(()=>{class Ze{constructor(Y,me,De){this._sanityChecks=me,this._document=De,this._hasDoneGlobalChecks=!1,Y._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(Y){return!(0,o.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[Y])}}return Ze.\u0275fac=function(Y){return new(Y||Ze)(e.LFG(M.qm),e.LFG(re,8),e.LFG(C.K0))},Ze.\u0275mod=e.oAB({type:Ze}),Ze.\u0275inj=e.cJS({imports:[[t.vT],t.vT]}),Ze})();function i(Ze){return class extends Ze{constructor(...Ee){super(...Ee),this._disabled=!1}get disabled(){return this._disabled}set disabled(Ee){this._disabled=(0,l.Ig)(Ee)}}}function a(Ze,Ee){return class extends Ze{constructor(...Y){super(...Y),this.defaultColor=Ee,this.color=Ee}get color(){return this._color}set color(Y){const me=Y||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 p(Ze){return class extends Ze{constructor(...Ee){super(...Ee),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(Ee){this._disableRipple=(0,l.Ig)(Ee)}}}function u(Ze,Ee=0){return class extends Ze{constructor(...Y){super(...Y),this._tabIndex=Ee,this.defaultTabIndex=Ee}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(Y){this._tabIndex=null!=Y?(0,l.su)(Y):this.defaultTabIndex}}}function _(Ze){return class extends Ze{constructor(...Ee){super(...Ee),this.stateChanges=new N.x,this.errorState=!1}updateErrorState(){const Ee=this.errorState,et=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);et!==Ee&&(this.errorState=et,this.stateChanges.next())}}}function L(Ze){return class extends Ze{constructor(...Ee){super(...Ee),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new s.y(Y=>{this._isInitialized?this._notifySubscriber(Y):this._pendingSubscribers.push(Y)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(Ee){Ee.next(),Ee.complete()}}}const I=new e.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function x(){return(0,e.f3M)(e.soG)}});class r{constructor(){this._localeChanges=new N.x,this.localeChanges=this._localeChanges}getValidDateOrNull(Ee){return this.isDateInstance(Ee)&&this.isValid(Ee)?Ee:null}deserialize(Ee){return null==Ee||this.isDateInstance(Ee)&&this.isValid(Ee)?Ee:this.invalid()}setLocale(Ee){this.locale=Ee,this._localeChanges.next()}compareDate(Ee,Y){return this.getYear(Ee)-this.getYear(Y)||this.getMonth(Ee)-this.getMonth(Y)||this.getDate(Ee)-this.getDate(Y)}sameDate(Ee,Y){if(Ee&&Y){let me=this.isValid(Ee),De=this.isValid(Y);return me&&De?!this.compareDate(Ee,Y):me==De}return Ee==Y}clampDate(Ee,Y,me){return Y&&this.compareDate(Ee,Y)<0?Y:me&&this.compareDate(Ee,me)>0?me:Ee}}const v=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 F(Ze,Ee){const Y=Array(Ze);for(let me=0;me<Ze;me++)Y[me]=Ee(me);return Y}let U=(()=>{class Ze extends r{constructor(Y,me){super(),this.useUtcForDisplay=!1,super.setLocale(Y)}getYear(Y){return Y.getFullYear()}getMonth(Y){return Y.getMonth()}getDate(Y){return Y.getDate()}getDayOfWeek(Y){return Y.getDay()}getMonthNames(Y){const me=new Intl.DateTimeFormat(this.locale,{month:Y,timeZone:"utc"});return F(12,De=>this._format(me,new Date(2017,De,1)))}getDateNames(){const Y=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return F(31,me=>this._format(Y,new Date(2017,0,me+1)))}getDayOfWeekNames(Y){const me=new Intl.DateTimeFormat(this.locale,{weekday:Y,timeZone:"utc"});return F(7,De=>this._format(me,new Date(2017,0,De+1)))}getYearName(Y){const me=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(me,Y)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(Y){return this.getDate(this._createDateWithOverflow(this.getYear(Y),this.getMonth(Y)+1,0))}clone(Y){return new Date(Y.getTime())}createDate(Y,me,De){let et=this._createDateWithOverflow(Y,me,De);return et.getMonth(),et}today(){return new Date}parse(Y){return"number"==typeof Y?new Date(Y):Y?new Date(Date.parse(Y)):null}format(Y,me){if(!this.isValid(Y))throw Error("NativeDateAdapter: Cannot format invalid date.");const De=new Intl.DateTimeFormat(this.locale,Object.assign(Object.assign({},me),{timeZone:"utc"}));return this._format(De,Y)}addCalendarYears(Y,me){return this.addCalendarMonths(Y,12*me)}addCalendarMonths(Y,me){let De=this._createDateWithOverflow(this.getYear(Y),this.getMonth(Y)+me,this.getDate(Y));return this.getMonth(De)!=((this.getMonth(Y)+me)%12+12)%12&&(De=this._createDateWithOverflow(this.getYear(De),this.getMonth(De),0)),De}addCalendarDays(Y,me){return this._createDateWithOverflow(this.getYear(Y),this.getMonth(Y),this.getDate(Y)+me)}toIso8601(Y){return[Y.getUTCFullYear(),this._2digit(Y.getUTCMonth()+1),this._2digit(Y.getUTCDate())].join("-")}deserialize(Y){if("string"==typeof Y){if(!Y)return null;if(G.test(Y)){let me=new Date(Y);if(this.isValid(me))return me}}return super.deserialize(Y)}isDateInstance(Y){return Y instanceof Date}isValid(Y){return!isNaN(Y.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(Y,me,De){const et=new Date;return et.setFullYear(Y,me,De),et.setHours(0,0,0,0),et}_2digit(Y){return("00"+Y).slice(-2)}_format(Y,me){const De=new Date;return De.setUTCFullYear(me.getFullYear(),me.getMonth(),me.getDate()),De.setUTCHours(me.getHours(),me.getMinutes(),me.getSeconds(),me.getMilliseconds()),Y.format(De)}}return Ze.\u0275fac=function(Y){return new(Y||Ze)(e.LFG(I,8),e.LFG(o.t4))},Ze.\u0275prov=e.Yz7({token:Ze,factory:Ze.\u0275fac}),Ze})();const ye={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let Ce=(()=>{class Ze{}return Ze.\u0275fac=function(Y){return new(Y||Ze)},Ze.\u0275mod=e.oAB({type:Ze}),Ze.\u0275inj=e.cJS({providers:[{provide:r,useClass:U}],imports:[[o.ud]]}),Ze})(),Be=(()=>{class Ze{}return Ze.\u0275fac=function(Y){return new(Y||Ze)},Ze.\u0275mod=e.oAB({type:Ze}),Ze.\u0275inj=e.cJS({providers:[{provide:v,useValue:ye}],imports:[[Ce]]}),Ze})(),Ie=(()=>{class Ze{isErrorState(Y,me){return!!(Y&&Y.invalid&&(Y.touched||me&&me.submitted))}}return Ze.\u0275fac=function(Y){return new(Y||Ze)},Ze.\u0275prov=e.Yz7({token:Ze,factory:Ze.\u0275fac,providedIn:"root"}),Ze})(),K=(()=>{class Ze{}return Ze.\u0275fac=function(Y){return new(Y||Ze)},Ze.\u0275dir=e.lG2({type:Ze,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),Ze})();function Me(Ze,Ee,Y="mat"){Ze.changes.pipe((0,D.O)(Ze)).subscribe(({length:me})=>{we(Ee,`${Y}-2-line`,!1),we(Ee,`${Y}-3-line`,!1),we(Ee,`${Y}-multi-line`,!1),2===me||3===me?we(Ee,`${Y}-${me}-line`,!0):me>3&&we(Ee,`${Y}-multi-line`,!0)})}function we(Ze,Ee,Y){Ze.nativeElement.classList.toggle(Ee,Y)}let z=(()=>{class Ze{}return Ze.\u0275fac=function(Y){return new(Y||Ze)},Ze.\u0275mod=e.oAB({type:Ze}),Ze.\u0275inj=e.cJS({imports:[[de],de]}),Ze})();class Ge{constructor(Ee,Y,me){this._renderer=Ee,this.element=Y,this.config=me,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const vt={enterDuration:225,exitDuration:150},Ne=(0,o.i$)({passive:!0}),he=["mousedown","touchstart"],Le=["mouseup","mouseleave","touchend","touchcancel"];class ke{constructor(Ee,Y,me,De){this._target=Ee,this._ngZone=Y,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,De.isBrowser&&(this._containerElement=(0,l.fI)(me))}fadeInRipple(Ee,Y,me={}){const De=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),et=Object.assign(Object.assign({},vt),me.animation);me.centered&&(Ee=De.left+De.width/2,Y=De.top+De.height/2);const $t=me.radius||function $(Ze,Ee,Y){const me=Math.max(Math.abs(Ze-Y.left),Math.abs(Ze-Y.right)),De=Math.max(Math.abs(Ee-Y.top),Math.abs(Ee-Y.bottom));return Math.sqrt(me*me+De*De)}(Ee,Y,De),Nt=Ee-De.left,Jt=Y-De.top,ct=et.enterDuration,Pe=document.createElement("div");Pe.classList.add("mat-ripple-element"),Pe.style.left=Nt-$t+"px",Pe.style.top=Jt-$t+"px",Pe.style.height=2*$t+"px",Pe.style.width=2*$t+"px",null!=me.color&&(Pe.style.backgroundColor=me.color),Pe.style.transitionDuration=`${ct}ms`,this._containerElement.appendChild(Pe),function q(Ze){window.getComputedStyle(Ze).getPropertyValue("opacity")}(Pe),Pe.style.transform="scale(1)";const Fe=new Ge(this,Pe,me);return Fe.state=0,this._activeRipples.add(Fe),me.persistent||(this._mostRecentTransientRipple=Fe),this._runTimeoutOutsideZone(()=>{const at=Fe===this._mostRecentTransientRipple;Fe.state=1,!me.persistent&&(!at||!this._isPointerDown)&&Fe.fadeOut()},ct),Fe}fadeOutRipple(Ee){const Y=this._activeRipples.delete(Ee);if(Ee===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!Y)return;const me=Ee.element,De=Object.assign(Object.assign({},vt),Ee.config.animation);me.style.transitionDuration=`${De.exitDuration}ms`,me.style.opacity="0",Ee.state=2,this._runTimeoutOutsideZone(()=>{Ee.state=3,me.remove()},De.exitDuration)}fadeOutAll(){this._activeRipples.forEach(Ee=>Ee.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(Ee=>{Ee.config.persistent||Ee.fadeOut()})}setupTriggerEvents(Ee){const Y=(0,l.fI)(Ee);!Y||Y===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=Y,this._registerEvents(he))}handleEvent(Ee){"mousedown"===Ee.type?this._onMousedown(Ee):"touchstart"===Ee.type?this._onTouchStart(Ee):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Le),this._pointerUpEventsRegistered=!0)}_onMousedown(Ee){const Y=(0,M.X6)(Ee),me=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!Y&&!me&&(this._isPointerDown=!0,this.fadeInRipple(Ee.clientX,Ee.clientY,this._target.rippleConfig))}_onTouchStart(Ee){if(!this._target.rippleDisabled&&!(0,M.yG)(Ee)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const Y=Ee.changedTouches;for(let me=0;me<Y.length;me++)this.fadeInRipple(Y[me].clientX,Y[me].clientY,this._target.rippleConfig)}}_onPointerUp(){!this._isPointerDown||(this._isPointerDown=!1,this._activeRipples.forEach(Ee=>{!Ee.config.persistent&&(1===Ee.state||Ee.config.terminateOnPointerUp&&0===Ee.state)&&Ee.fadeOut()}))}_runTimeoutOutsideZone(Ee,Y=0){this._ngZone.runOutsideAngular(()=>setTimeout(Ee,Y))}_registerEvents(Ee){this._ngZone.runOutsideAngular(()=>{Ee.forEach(Y=>{this._triggerElement.addEventListener(Y,this,Ne)})})}_removeTriggerEvents(){this._triggerElement&&(he.forEach(Ee=>{this._triggerElement.removeEventListener(Ee,this,Ne)}),this._pointerUpEventsRegistered&&Le.forEach(Ee=>{this._triggerElement.removeEventListener(Ee,this,Ne)}))}}const le=new e.OlP("mat-ripple-global-options");let xe=(()=>{class Ze{constructor(Y,me,De,et,$t){this._elementRef=Y,this._animationMode=$t,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=et||{},this._rippleRenderer=new ke(this,me,Y,De)}get disabled(){return this._disabled}set disabled(Y){Y&&this.fadeOutAllNonPersistent(),this._disabled=Y,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(Y){this._trigger=Y,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(Y,me=0,De){return"number"==typeof Y?this._rippleRenderer.fadeInRipple(Y,me,Object.assign(Object.assign({},this.rippleConfig),De)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),Y))}}return Ze.\u0275fac=function(Y){return new(Y||Ze)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(o.t4),e.Y36(le,8),e.Y36(A.Qb,8))},Ze.\u0275dir=e.lG2({type:Ze,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(Y,me){2&Y&&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"]}),Ze})(),Ue=(()=>{class Ze{}return Ze.\u0275fac=function(Y){return new(Y||Ze)},Ze.\u0275mod=e.oAB({type:Ze}),Ze.\u0275inj=e.cJS({imports:[[de,o.ud],de]}),Ze})(),lt=(()=>{class Ze{constructor(Y){this._animationMode=Y,this.state="unchecked",this.disabled=!1}}return Ze.\u0275fac=function(Y){return new(Y||Ze)(e.Y36(A.Qb,8))},Ze.\u0275cmp=e.Xpm({type:Ze,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(Y,me){2&Y&&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(Y,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}),Ze})(),nt=(()=>{class Ze{}return Ze.\u0275fac=function(Y){return new(Y||Ze)},Ze.\u0275mod=e.oAB({type:Ze}),Ze.\u0275inj=e.cJS({imports:[[de]]}),Ze})();const ft=new e.OlP("MAT_OPTION_PARENT_COMPONENT"),Zt=new e.OlP("MatOptgroup");let Vt=0;class Ii{constructor(Ee,Y=!1){this.source=Ee,this.isUserInput=Y}}let jt=(()=>{class Ze{constructor(Y,me,De,et){this._element=Y,this._changeDetectorRef=me,this._parent=De,this.group=et,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+Vt++,this.onSelectionChange=new e.vpe,this._stateChanges=new N.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(Y){this._disabled=(0,l.Ig)(Y)}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(Y,me){const De=this._getHostElement();"function"==typeof De.focus&&De.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(Y){(Y.keyCode===O.K5||Y.keyCode===O.L_)&&!(0,O.Vb)(Y)&&(this._selectViaInteraction(),Y.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 Y=this.viewValue;Y!==this._mostRecentViewValue&&(this._mostRecentViewValue=Y,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(Y=!1){this.onSelectionChange.emit(new Ii(this,Y))}}return Ze.\u0275fac=function(Y){e.$Z()},Ze.\u0275dir=e.lG2({type:Ze,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),Ze})(),ei=(()=>{class Ze extends jt{constructor(Y,me,De,et){super(Y,me,De,et)}}return Ze.\u0275fac=function(Y){return new(Y||Ze)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(ft,8),e.Y36(Zt,8))},Ze.\u0275cmp=e.Xpm({type:Ze,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(Y,me){1&Y&&e.NdJ("click",function(){return me._selectViaInteraction()})("keydown",function(et){return me._handleKeydown(et)}),2&Y&&(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:j,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(Y,me){1&Y&&(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&Y&&(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:[C.O5,xe,lt],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;-moz-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}),Ze})();function Pi(Ze,Ee,Y){if(Y.length){let me=Ee.toArray(),De=Y.toArray(),et=0;for(let $t=0;$t<Ze+1;$t++)me[$t].group&&me[$t].group===De[et]&&et++;return et}return 0}function ai(Ze,Ee,Y,me){return Ze<Y?Ze:Ze+Ee>Y+me?Math.max(0,Ze-me+Ee):Y}let hi=(()=>{class Ze{}return Ze.\u0275fac=function(Y){return new(Y||Ze)},Ze.\u0275mod=e.oAB({type:Ze}),Ze.\u0275inj=e.cJS({imports:[[Ue,C.ez,de,nt]]}),Ze})()},6856:(Ve,Q,m)=>{"use strict";m.d(Q,{Mq:()=>Nt,hl:()=>st,FA:()=>ve,nW:()=>li});var e=m(5664),t=m(9776),y=m(7429),C=m(9808),o=m(5e3),M=m(7423),l=m(5303),N=m(508),s=m(7579),D=m(727),A=m(6451),O=m(9646),E=m(1159),P=m(5698),w=m(8675),Z=m(9300),j=m(226),W=m(3191),ie=m(925),ee=m(1777),_e=m(3075),ce=m(7322),re=m(7531);const de=["mat-calendar-body",""];function oe(qe,yt){if(1&qe&&(o.TgZ(0,"tr",2),o.TgZ(1,"td",3),o._uU(2),o.qZA(),o.qZA()),2&qe){const fe=o.oxw();o.xp6(1),o.Udp("padding-top",fe._cellPadding)("padding-bottom",fe._cellPadding),o.uIk("colspan",fe.numCols),o.xp6(1),o.hij(" ",fe.label," ")}}function ae(qe,yt){if(1&qe&&(o.TgZ(0,"td",3),o._uU(1),o.qZA()),2&qe){const fe=o.oxw(2);o.Udp("padding-top",fe._cellPadding)("padding-bottom",fe._cellPadding),o.uIk("colspan",fe._firstRowOffset),o.xp6(1),o.hij(" ",fe._firstRowOffset>=fe.labelMinRequiredCells?fe.label:""," ")}}function b(qe,yt){if(1&qe){const fe=o.EpF();o.TgZ(0,"td",7),o.NdJ("click",function(St){const yi=o.CHM(fe).$implicit;return o.oxw(2)._cellClicked(yi,St)}),o.TgZ(1,"div",8),o._uU(2),o.qZA(),o._UZ(3,"div",9),o.qZA()}if(2&qe){const fe=yt.$implicit,Je=yt.index,St=o.oxw().index,Pt=o.oxw();o.Udp("width",Pt._cellWidth)("padding-top",Pt._cellPadding)("padding-bottom",Pt._cellPadding),o.ekj("mat-calendar-body-disabled",!fe.enabled)("mat-calendar-body-active",Pt._isActiveCell(St,Je))("mat-calendar-body-range-start",Pt._isRangeStart(fe.compareValue))("mat-calendar-body-range-end",Pt._isRangeEnd(fe.compareValue))("mat-calendar-body-in-range",Pt._isInRange(fe.compareValue))("mat-calendar-body-comparison-bridge-start",Pt._isComparisonBridgeStart(fe.compareValue,St,Je))("mat-calendar-body-comparison-bridge-end",Pt._isComparisonBridgeEnd(fe.compareValue,St,Je))("mat-calendar-body-comparison-start",Pt._isComparisonStart(fe.compareValue))("mat-calendar-body-comparison-end",Pt._isComparisonEnd(fe.compareValue))("mat-calendar-body-in-comparison-range",Pt._isInComparisonRange(fe.compareValue))("mat-calendar-body-preview-start",Pt._isPreviewStart(fe.compareValue))("mat-calendar-body-preview-end",Pt._isPreviewEnd(fe.compareValue))("mat-calendar-body-in-preview",Pt._isInPreview(fe.compareValue)),o.Q6J("ngClass",fe.cssClasses)("tabindex",Pt._isActiveCell(St,Je)?0:-1),o.uIk("data-mat-row",St)("data-mat-col",Je)("aria-label",fe.ariaLabel)("aria-disabled",!fe.enabled||null)("aria-selected",Pt._isSelected(fe.compareValue))("aria-current",Pt.todayValue===fe.compareValue?"date":null),o.xp6(1),o.ekj("mat-calendar-body-selected",Pt._isSelected(fe.compareValue))("mat-calendar-body-comparison-identical",Pt._isComparisonIdentical(fe.compareValue))("mat-calendar-body-today",Pt.todayValue===fe.compareValue),o.xp6(1),o.hij(" ",fe.displayValue," ")}}function i(qe,yt){if(1&qe&&(o.TgZ(0,"tr",4),o.YNc(1,ae,2,6,"td",5),o.YNc(2,b,4,47,"td",6),o.qZA()),2&qe){const fe=yt.$implicit,Je=yt.index,St=o.oxw();o.xp6(1),o.Q6J("ngIf",0===Je&&St._firstRowOffset),o.xp6(1),o.Q6J("ngForOf",fe)}}function a(qe,yt){if(1&qe&&(o.TgZ(0,"th",5),o.TgZ(1,"abbr",6),o._uU(2),o.qZA(),o.qZA()),2&qe){const fe=yt.$implicit;o.uIk("aria-label",fe.long),o.xp6(1),o.uIk("title",fe.long),o.xp6(1),o.Oqu(fe.narrow)}}const p=["*"];function u(qe,yt){}function _(qe,yt){if(1&qe){const fe=o.EpF();o.TgZ(0,"mat-month-view",5),o.NdJ("activeDateChange",function(St){return o.CHM(fe),o.oxw().activeDate=St})("_userSelection",function(St){return o.CHM(fe),o.oxw()._dateSelected(St)}),o.qZA()}if(2&qe){const fe=o.oxw();o.Q6J("activeDate",fe.activeDate)("selected",fe.selected)("dateFilter",fe.dateFilter)("maxDate",fe.maxDate)("minDate",fe.minDate)("dateClass",fe.dateClass)("comparisonStart",fe.comparisonStart)("comparisonEnd",fe.comparisonEnd)}}function L(qe,yt){if(1&qe){const fe=o.EpF();o.TgZ(0,"mat-year-view",6),o.NdJ("activeDateChange",function(St){return o.CHM(fe),o.oxw().activeDate=St})("monthSelected",function(St){return o.CHM(fe),o.oxw()._monthSelectedInYearView(St)})("selectedChange",function(St){return o.CHM(fe),o.oxw()._goToDateInView(St,"month")}),o.qZA()}if(2&qe){const fe=o.oxw();o.Q6J("activeDate",fe.activeDate)("selected",fe.selected)("dateFilter",fe.dateFilter)("maxDate",fe.maxDate)("minDate",fe.minDate)("dateClass",fe.dateClass)}}function I(qe,yt){if(1&qe){const fe=o.EpF();o.TgZ(0,"mat-multi-year-view",7),o.NdJ("activeDateChange",function(St){return o.CHM(fe),o.oxw().activeDate=St})("yearSelected",function(St){return o.CHM(fe),o.oxw()._yearSelectedInMultiYearView(St)})("selectedChange",function(St){return o.CHM(fe),o.oxw()._goToDateInView(St,"year")}),o.qZA()}if(2&qe){const fe=o.oxw();o.Q6J("activeDate",fe.activeDate)("selected",fe.selected)("dateFilter",fe.dateFilter)("maxDate",fe.maxDate)("minDate",fe.minDate)("dateClass",fe.dateClass)}}function x(qe,yt){}const r=["button"];function v(qe,yt){1&qe&&(o.O4$(),o.TgZ(0,"svg",3),o._UZ(1,"path",4),o.qZA())}const G=[[["","matDatepickerToggleIcon",""]]],F=["[matDatepickerToggleIcon]"];class ze{constructor(yt,fe,Je,St,Pt={},yi=yt,Ni){this.value=yt,this.displayValue=fe,this.ariaLabel=Je,this.enabled=St,this.cssClasses=Pt,this.compareValue=yi,this.rawValue=Ni}}let Ie=(()=>{class qe{constructor(fe,Je){this._elementRef=fe,this._ngZone=Je,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new o.vpe,this.previewChange=new o.vpe,this._enterHandler=St=>{if(this._skipNextFocus&&"focus"===St.type)this._skipNextFocus=!1;else if(St.target&&this.isRange){const Pt=this._getCellFromElement(St.target);Pt&&this._ngZone.run(()=>this.previewChange.emit({value:Pt.enabled?Pt:null,event:St}))}},this._leaveHandler=St=>{null!==this.previewEnd&&this.isRange&&St.target&&K(St.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:St}))},Je.runOutsideAngular(()=>{const St=fe.nativeElement;St.addEventListener("mouseenter",this._enterHandler,!0),St.addEventListener("focus",this._enterHandler,!0),St.addEventListener("mouseleave",this._leaveHandler,!0),St.addEventListener("blur",this._leaveHandler,!0)})}_cellClicked(fe,Je){fe.enabled&&this.selectedValueChange.emit({value:fe.value,event:Je})}_isSelected(fe){return this.startValue===fe||this.endValue===fe}ngOnChanges(fe){const Je=fe.numCols,{rows:St,numCols:Pt}=this;(fe.rows||Je)&&(this._firstRowOffset=St&&St.length&&St[0].length?Pt-St[0].length:0),(fe.cellAspectRatio||Je||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/Pt+"%"),(Je||!this._cellWidth)&&(this._cellWidth=100/Pt+"%")}ngOnDestroy(){const fe=this._elementRef.nativeElement;fe.removeEventListener("mouseenter",this._enterHandler,!0),fe.removeEventListener("focus",this._enterHandler,!0),fe.removeEventListener("mouseleave",this._leaveHandler,!0),fe.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(fe,Je){let St=fe*this.numCols+Je;return fe&&(St-=this._firstRowOffset),St==this.activeCell}_focusActiveCell(fe=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,P.q)(1)).subscribe(()=>{const Je=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");Je&&(fe||(this._skipNextFocus=!0),Je.focus())})})}_isRangeStart(fe){return Me(fe,this.startValue,this.endValue)}_isRangeEnd(fe){return we(fe,this.startValue,this.endValue)}_isInRange(fe){return z(fe,this.startValue,this.endValue,this.isRange)}_isComparisonStart(fe){return Me(fe,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(fe,Je,St){if(!this._isComparisonStart(fe)||this._isRangeStart(fe)||!this._isInRange(fe))return!1;let Pt=this.rows[Je][St-1];if(!Pt){const yi=this.rows[Je-1];Pt=yi&&yi[yi.length-1]}return Pt&&!this._isRangeEnd(Pt.compareValue)}_isComparisonBridgeEnd(fe,Je,St){if(!this._isComparisonEnd(fe)||this._isRangeEnd(fe)||!this._isInRange(fe))return!1;let Pt=this.rows[Je][St+1];if(!Pt){const yi=this.rows[Je+1];Pt=yi&&yi[0]}return Pt&&!this._isRangeStart(Pt.compareValue)}_isComparisonEnd(fe){return we(fe,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(fe){return z(fe,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(fe){return this.comparisonStart===this.comparisonEnd&&fe===this.comparisonStart}_isPreviewStart(fe){return Me(fe,this.previewStart,this.previewEnd)}_isPreviewEnd(fe){return we(fe,this.previewStart,this.previewEnd)}_isInPreview(fe){return z(fe,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(fe){let Je;if(K(fe)?Je=fe:K(fe.parentNode)&&(Je=fe.parentNode),Je){const St=Je.getAttribute("data-mat-row"),Pt=Je.getAttribute("data-mat-col");if(St&&Pt)return this.rows[parseInt(St)][parseInt(Pt)]}return null}}return qe.\u0275fac=function(fe){return new(fe||qe)(o.Y36(o.SBq),o.Y36(o.R0b))},qe.\u0275cmp=o.Xpm({type:qe,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:[o.TTD],attrs:de,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",3,"ngClass","tabindex","mat-calendar-body-disabled","mat-calendar-body-active","mat-calendar-body-range-start","mat-calendar-body-range-end","mat-calendar-body-in-range","mat-calendar-body-comparison-bridge-start","mat-calendar-body-comparison-bridge-end","mat-calendar-body-comparison-start","mat-calendar-body-comparison-end","mat-calendar-body-in-comparison-range","mat-calendar-body-preview-start","mat-calendar-body-preview-end","mat-calendar-body-in-preview","width","paddingTop","paddingBottom","click",4,"ngFor","ngForOf"],["role","gridcell",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],[1,"mat-calendar-body-cell-preview"]],template:function(fe,Je){1&fe&&(o.YNc(0,oe,3,6,"tr",0),o.YNc(1,i,3,2,"tr",1)),2&fe&&(o.Q6J("ngIf",Je._firstRowOffset<Je.labelMinRequiredCells),o.xp6(1),o.Q6J("ngForOf",Je.rows))},directives:[C.O5,C.sg,C.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{position:relative;height:0;line-height:0;text-align:center;outline:none;cursor:pointer}.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:not(.mat-calendar-body-selected),.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){outline:dotted 2px}.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}),qe})();function K(qe){return"TD"===qe.nodeName}function Me(qe,yt,fe){return null!==fe&&yt!==fe&&qe<fe&&qe===yt}function we(qe,yt,fe){return null!==yt&&yt!==fe&&qe>=yt&&qe===fe}function z(qe,yt,fe,Je){return Je&&null!==yt&&null!==fe&&yt!==fe&&qe>=yt&&qe<=fe}class Ge{constructor(yt,fe){this.start=yt,this.end=fe}}let vt=(()=>{class qe{constructor(fe,Je){this.selection=fe,this._adapter=Je,this._selectionChanged=new s.x,this.selectionChanged=this._selectionChanged,this.selection=fe}updateSelection(fe,Je){const St=this.selection;this.selection=fe,this._selectionChanged.next({selection:fe,source:Je,oldValue:St})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(fe){return this._adapter.isDateInstance(fe)&&this._adapter.isValid(fe)}}return qe.\u0275fac=function(fe){o.$Z()},qe.\u0275prov=o.Yz7({token:qe,factory:qe.\u0275fac}),qe})(),Re=(()=>{class qe extends vt{constructor(fe){super(null,fe)}add(fe){super.updateSelection(fe,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const fe=new qe(this._adapter);return fe.updateSelection(this.selection,this),fe}}return qe.\u0275fac=function(fe){return new(fe||qe)(o.LFG(N._A))},qe.\u0275prov=o.Yz7({token:qe,factory:qe.\u0275fac}),qe})();const Le={provide:vt,deps:[[new o.FiY,new o.tp0,vt],N._A],useFactory:function he(qe,yt){return qe||new Re(yt)}},$=new o.OlP("MAT_DATE_RANGE_SELECTION_STRATEGY");let nt=(()=>{class qe{constructor(fe,Je,St,Pt,yi){this._changeDetectorRef=fe,this._dateFormats=Je,this._dateAdapter=St,this._dir=Pt,this._rangeStrategy=yi,this._rerenderSubscription=D.w0.EMPTY,this.selectedChange=new o.vpe,this._userSelection=new o.vpe,this.activeDateChange=new o.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(fe){const Je=this._activeDate,St=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(fe))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(St,this.minDate,this.maxDate),this._hasSameMonthAndYear(Je,this._activeDate)||this._init()}get selected(){return this._selected}set selected(fe){this._selected=fe instanceof Ge?fe:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(fe)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(fe){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(fe))}get maxDate(){return this._maxDate}set maxDate(fe){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(fe))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,w.O)(null)).subscribe(()=>this._init())}ngOnChanges(fe){const Je=fe.comparisonStart||fe.comparisonEnd;Je&&!Je.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(fe){const Je=fe.value,St=this._dateAdapter.getYear(this.activeDate),Pt=this._dateAdapter.getMonth(this.activeDate),yi=this._dateAdapter.createDate(St,Pt,Je);let Ni,Si;this._selected instanceof Ge?(Ni=this._getDateInCurrentMonth(this._selected.start),Si=this._getDateInCurrentMonth(this._selected.end)):Ni=Si=this._getDateInCurrentMonth(this._selected),(Ni!==Je||Si!==Je)&&this.selectedChange.emit(yi),this._userSelection.emit({value:yi,event:fe.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}_handleCalendarBodyKeydown(fe){const Je=this._activeDate,St=this._isRtl();switch(fe.keyCode){case E.oh:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,St?1:-1);break;case E.SV:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,St?-1:1);break;case E.LH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case E.JH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case E.Sd:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case E.uR:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case E.Ku:this.activeDate=fe.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case E.VM:this.activeDate=fe.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case E.K5:case E.L_:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&fe.preventDefault());case E.hY:return void(null!=this._previewEnd&&!(0,E.Vb)(fe)&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:fe}),fe.preventDefault(),fe.stopPropagation()));default:return}this._dateAdapter.compareDate(Je,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),fe.preventDefault()}_handleCalendarBodyKeyup(fe){(fe.keyCode===E.L_||fe.keyCode===E.K5)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:fe}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let fe=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(fe)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(fe){this._matCalendarBody._focusActiveCell(fe)}_previewChanged({event:fe,value:Je}){if(this._rangeStrategy){const Pt=this._rangeStrategy.createPreview(Je?Je.rawValue:null,this.selected,fe);this._previewStart=this._getCellCompareValue(Pt.start),this._previewEnd=this._getCellCompareValue(Pt.end),this._changeDetectorRef.detectChanges()}}_initWeekdays(){const fe=this._dateAdapter.getFirstDayOfWeek(),Je=this._dateAdapter.getDayOfWeekNames("narrow");let Pt=this._dateAdapter.getDayOfWeekNames("long").map((yi,Ni)=>({long:yi,narrow:Je[Ni]}));this._weekdays=Pt.slice(fe).concat(Pt.slice(0,fe))}_createWeekCells(){const fe=this._dateAdapter.getNumDaysInMonth(this.activeDate),Je=this._dateAdapter.getDateNames();this._weeks=[[]];for(let St=0,Pt=this._firstWeekOffset;St<fe;St++,Pt++){7==Pt&&(this._weeks.push([]),Pt=0);const yi=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),St+1),Ni=this._shouldEnableDate(yi),Si=this._dateAdapter.format(yi,this._dateFormats.display.dateA11yLabel),qi=this.dateClass?this.dateClass(yi,"month"):void 0;this._weeks[this._weeks.length-1].push(new ze(St+1,Je[St],Si,Ni,qi,this._getCellCompareValue(yi),yi))}}_shouldEnableDate(fe){return!!fe&&(!this.minDate||this._dateAdapter.compareDate(fe,this.minDate)>=0)&&(!this.maxDate||this._dateAdapter.compareDate(fe,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(fe))}_getDateInCurrentMonth(fe){return fe&&this._hasSameMonthAndYear(fe,this.activeDate)?this._dateAdapter.getDate(fe):null}_hasSameMonthAndYear(fe,Je){return!(!fe||!Je||this._dateAdapter.getMonth(fe)!=this._dateAdapter.getMonth(Je)||this._dateAdapter.getYear(fe)!=this._dateAdapter.getYear(Je))}_getCellCompareValue(fe){if(fe){const Je=this._dateAdapter.getYear(fe),St=this._dateAdapter.getMonth(fe),Pt=this._dateAdapter.getDate(fe);return new Date(Je,St,Pt).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(fe){fe instanceof Ge?(this._rangeStart=this._getCellCompareValue(fe.start),this._rangeEnd=this._getCellCompareValue(fe.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(fe),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(fe){return!this.dateFilter||this.dateFilter(fe)}}return qe.\u0275fac=function(fe){return new(fe||qe)(o.Y36(o.sBO),o.Y36(N.sG,8),o.Y36(N._A,8),o.Y36(j.Is,8),o.Y36($,8))},qe.\u0275cmp=o.Xpm({type:qe,selectors:[["mat-month-view"]],viewQuery:function(fe,Je){if(1&fe&&o.Gf(Ie,5),2&fe){let St;o.iGM(St=o.CRH())&&(Je._matCalendarBody=St.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:[o.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,"mat-calendar-abbr"]],template:function(fe,Je){1&fe&&(o.TgZ(0,"table",0),o.TgZ(1,"thead",1),o.TgZ(2,"tr"),o.YNc(3,a,3,3,"th",2),o.qZA(),o.TgZ(4,"tr"),o._UZ(5,"th",3),o.qZA(),o.qZA(),o.TgZ(6,"tbody",4),o.NdJ("selectedValueChange",function(Pt){return Je._dateSelected(Pt)})("previewChange",function(Pt){return Je._previewChanged(Pt)})("keyup",function(Pt){return Je._handleCalendarBodyKeyup(Pt)})("keydown",function(Pt){return Je._handleCalendarBodyKeydown(Pt)}),o.qZA(),o.qZA()),2&fe&&(o.xp6(3),o.Q6J("ngForOf",Je._weekdays),o.xp6(3),o.Q6J("label",Je._monthLabel)("rows",Je._weeks)("todayValue",Je._todayDate)("startValue",Je._rangeStart)("endValue",Je._rangeEnd)("comparisonStart",Je._comparisonRangeStart)("comparisonEnd",Je._comparisonRangeEnd)("previewStart",Je._previewStart)("previewEnd",Je._previewEnd)("isRange",Je._isRange)("labelMinRequiredCells",3)("activeCell",Je._dateAdapter.getDate(Je.activeDate)-1))},directives:[C.sg,Ie],encapsulation:2,changeDetection:0}),qe})(),rt=(()=>{class qe{constructor(fe,Je,St){this._changeDetectorRef=fe,this._dateAdapter=Je,this._dir=St,this._rerenderSubscription=D.w0.EMPTY,this.selectedChange=new o.vpe,this.yearSelected=new o.vpe,this.activeDateChange=new o.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(fe){let Je=this._activeDate;const St=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(fe))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(St,this.minDate,this.maxDate),Mt(this._dateAdapter,Je,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(fe){this._selected=fe instanceof Ge?fe:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(fe)),this._setSelectedYear(fe)}get minDate(){return this._minDate}set minDate(fe){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(fe))}get maxDate(){return this._maxDate}set maxDate(fe){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(fe))}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 Je=this._dateAdapter.getYear(this._activeDate)-Zt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let St=0,Pt=[];St<24;St++)Pt.push(Je+St),4==Pt.length&&(this._years.push(Pt.map(yi=>this._createCellForYear(yi))),Pt=[]);this._changeDetectorRef.markForCheck()}_yearSelected(fe){const Je=fe.value;this.yearSelected.emit(this._dateAdapter.createDate(Je,0,1));let St=this._dateAdapter.getMonth(this.activeDate),Pt=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(Je,St,1));this.selectedChange.emit(this._dateAdapter.createDate(Je,St,Math.min(this._dateAdapter.getDate(this.activeDate),Pt)))}_handleCalendarBodyKeydown(fe){const Je=this._activeDate,St=this._isRtl();switch(fe.keyCode){case E.oh:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,St?1:-1);break;case E.SV:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,St?-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,-Zt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case E.uR:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-Zt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case E.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,fe.altKey?-240:-24);break;case E.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,fe.altKey?240:24);break;case E.K5:case E.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(Je,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),fe.preventDefault()}_handleCalendarBodyKeyup(fe){(fe.keyCode===E.L_||fe.keyCode===E.K5)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:fe}),this._selectionKeyPressed=!1)}_getActiveCell(){return Zt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_createCellForYear(fe){const Je=this._dateAdapter.createDate(fe,0,1),St=this._dateAdapter.getYearName(Je),Pt=this.dateClass?this.dateClass(Je,"multi-year"):void 0;return new ze(fe,St,St,this._shouldEnableYear(fe),Pt)}_shouldEnableYear(fe){if(null==fe||this.maxDate&&fe>this._dateAdapter.getYear(this.maxDate)||this.minDate&&fe<this._dateAdapter.getYear(this.minDate))return!1;if(!this.dateFilter)return!0;for(let St=this._dateAdapter.createDate(fe,0,1);this._dateAdapter.getYear(St)==fe;St=this._dateAdapter.addCalendarDays(St,1))if(this.dateFilter(St))return!0;return!1}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setSelectedYear(fe){if(this._selectedYear=null,fe instanceof Ge){const Je=fe.start||fe.end;Je&&(this._selectedYear=this._dateAdapter.getYear(Je))}else fe&&(this._selectedYear=this._dateAdapter.getYear(fe))}}return qe.\u0275fac=function(fe){return new(fe||qe)(o.Y36(o.sBO),o.Y36(N._A,8),o.Y36(j.Is,8))},qe.\u0275cmp=o.Xpm({type:qe,selectors:[["mat-multi-year-view"]],viewQuery:function(fe,Je){if(1&fe&&o.Gf(Ie,5),2&fe){let St;o.iGM(St=o.CRH())&&(Je._matCalendarBody=St.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(fe,Je){1&fe&&(o.TgZ(0,"table",0),o.TgZ(1,"thead",1),o.TgZ(2,"tr"),o._UZ(3,"th",2),o.qZA(),o.qZA(),o.TgZ(4,"tbody",3),o.NdJ("selectedValueChange",function(Pt){return Je._yearSelected(Pt)})("keyup",function(Pt){return Je._handleCalendarBodyKeyup(Pt)})("keydown",function(Pt){return Je._handleCalendarBodyKeydown(Pt)}),o.qZA(),o.qZA()),2&fe&&(o.xp6(4),o.Q6J("rows",Je._years)("todayValue",Je._todayYear)("startValue",Je._selectedYear)("endValue",Je._selectedYear)("numCols",4)("cellAspectRatio",4/7)("activeCell",Je._getActiveCell()))},directives:[Ie],encapsulation:2,changeDetection:0}),qe})();function Mt(qe,yt,fe,Je,St){const Pt=qe.getYear(yt),yi=qe.getYear(fe),Ni=Ft(qe,Je,St);return Math.floor((Pt-Ni)/24)===Math.floor((yi-Ni)/24)}function Zt(qe,yt,fe,Je){return function Vt(qe,yt){return(qe%yt+yt)%yt}(qe.getYear(yt)-Ft(qe,fe,Je),24)}function Ft(qe,yt,fe){let Je=0;return fe?Je=qe.getYear(fe)-24+1:yt&&(Je=qe.getYear(yt)),Je}let Ii=(()=>{class qe{constructor(fe,Je,St,Pt){this._changeDetectorRef=fe,this._dateFormats=Je,this._dateAdapter=St,this._dir=Pt,this._rerenderSubscription=D.w0.EMPTY,this.selectedChange=new o.vpe,this.monthSelected=new o.vpe,this.activeDateChange=new o.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(fe){let Je=this._activeDate;const St=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(fe))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(St,this.minDate,this.maxDate),this._dateAdapter.getYear(Je)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(fe){this._selected=fe instanceof Ge?fe:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(fe)),this._setSelectedMonth(fe)}get minDate(){return this._minDate}set minDate(fe){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(fe))}get maxDate(){return this._maxDate}set maxDate(fe){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(fe))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,w.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(fe){const Je=fe.value,St=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Je,1);this.monthSelected.emit(St);const Pt=this._dateAdapter.getNumDaysInMonth(St);this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Je,Math.min(this._dateAdapter.getDate(this.activeDate),Pt)))}_handleCalendarBodyKeydown(fe){const Je=this._activeDate,St=this._isRtl();switch(fe.keyCode){case E.oh:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,St?1:-1);break;case E.SV:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,St?-1:1);break;case E.LH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case E.JH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case E.Sd:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case E.uR:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case E.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,fe.altKey?-10:-1);break;case E.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,fe.altKey?10:1);break;case E.K5:case E.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(Je,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),fe.preventDefault()}_handleCalendarBodyKeyup(fe){(fe.keyCode===E.L_||fe.keyCode===E.K5)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:fe}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let fe=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(Je=>Je.map(St=>this._createCellForMonth(St,fe[St]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_getMonthInCurrentYear(fe){return fe&&this._dateAdapter.getYear(fe)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(fe):null}_createCellForMonth(fe,Je){const St=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),fe,1),Pt=this._dateAdapter.format(St,this._dateFormats.display.monthYearA11yLabel),yi=this.dateClass?this.dateClass(St,"year"):void 0;return new ze(fe,Je.toLocaleUpperCase(),Pt,this._shouldEnableMonth(fe),yi)}_shouldEnableMonth(fe){const Je=this._dateAdapter.getYear(this.activeDate);if(null==fe||this._isYearAndMonthAfterMaxDate(Je,fe)||this._isYearAndMonthBeforeMinDate(Je,fe))return!1;if(!this.dateFilter)return!0;for(let Pt=this._dateAdapter.createDate(Je,fe,1);this._dateAdapter.getMonth(Pt)==fe;Pt=this._dateAdapter.addCalendarDays(Pt,1))if(this.dateFilter(Pt))return!0;return!1}_isYearAndMonthAfterMaxDate(fe,Je){if(this.maxDate){const St=this._dateAdapter.getYear(this.maxDate),Pt=this._dateAdapter.getMonth(this.maxDate);return fe>St||fe===St&&Je>Pt}return!1}_isYearAndMonthBeforeMinDate(fe,Je){if(this.minDate){const St=this._dateAdapter.getYear(this.minDate),Pt=this._dateAdapter.getMonth(this.minDate);return fe<St||fe===St&&Je<Pt}return!1}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setSelectedMonth(fe){this._selectedMonth=fe instanceof Ge?this._getMonthInCurrentYear(fe.start)||this._getMonthInCurrentYear(fe.end):this._getMonthInCurrentYear(fe)}}return qe.\u0275fac=function(fe){return new(fe||qe)(o.Y36(o.sBO),o.Y36(N.sG,8),o.Y36(N._A,8),o.Y36(j.Is,8))},qe.\u0275cmp=o.Xpm({type:qe,selectors:[["mat-year-view"]],viewQuery:function(fe,Je){if(1&fe&&o.Gf(Ie,5),2&fe){let St;o.iGM(St=o.CRH())&&(Je._matCalendarBody=St.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(fe,Je){1&fe&&(o.TgZ(0,"table",0),o.TgZ(1,"thead",1),o.TgZ(2,"tr"),o._UZ(3,"th",2),o.qZA(),o.qZA(),o.TgZ(4,"tbody",3),o.NdJ("selectedValueChange",function(Pt){return Je._monthSelected(Pt)})("keyup",function(Pt){return Je._handleCalendarBodyKeyup(Pt)})("keydown",function(Pt){return Je._handleCalendarBodyKeydown(Pt)}),o.qZA(),o.qZA()),2&fe&&(o.xp6(4),o.Q6J("label",Je._yearLabel)("rows",Je._months)("todayValue",Je._todayMonth)("startValue",Je._selectedMonth)("endValue",Je._selectedMonth)("labelMinRequiredCells",2)("numCols",4)("cellAspectRatio",4/7)("activeCell",Je._dateAdapter.getMonth(Je.activeDate)))},directives:[Ie],encapsulation:2,changeDetection:0}),qe})(),jt=(()=>{class qe{constructor(){this.changes=new s.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(fe,Je){return`${fe} \u2013 ${Je}`}}return qe.\u0275fac=function(fe){return new(fe||qe)},qe.\u0275prov=o.Yz7({token:qe,factory:qe.\u0275fac,providedIn:"root"}),qe})(),ei=0,Pi=(()=>{class qe{constructor(fe,Je,St,Pt,yi){this._intl=fe,this.calendar=Je,this._dateAdapter=St,this._dateFormats=Pt,this._buttonDescriptionId="mat-calendar-button-"+ei++,this.calendar.stateChanges.subscribe(()=>yi.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 Je=this._dateAdapter.getYear(this.calendar.activeDate)-Zt(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),St=Je+24-1,Pt=this._dateAdapter.getYearName(this._dateAdapter.createDate(Je,0,1)),yi=this._dateAdapter.getYearName(this._dateAdapter.createDate(St,0,1));return this._intl.formatYearRange(Pt,yi)}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-24)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:24)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(fe,Je){return"month"==this.calendar.currentView?this._dateAdapter.getYear(fe)==this._dateAdapter.getYear(Je)&&this._dateAdapter.getMonth(fe)==this._dateAdapter.getMonth(Je):"year"==this.calendar.currentView?this._dateAdapter.getYear(fe)==this._dateAdapter.getYear(Je):Mt(this._dateAdapter,fe,Je,this.calendar.minDate,this.calendar.maxDate)}}return qe.\u0275fac=function(fe){return new(fe||qe)(o.Y36(jt),o.Y36((0,o.Gpc)(()=>ai)),o.Y36(N._A,8),o.Y36(N.sG,8),o.Y36(o.sBO))},qe.\u0275cmp=o.Xpm({type:qe,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:p,decls:11,vars:10,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","cdkAriaLive","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(fe,Je){1&fe&&(o.F$t(),o.TgZ(0,"div",0),o.TgZ(1,"div",1),o.TgZ(2,"button",2),o.NdJ("click",function(){return Je.currentPeriodClicked()}),o.TgZ(3,"span"),o._uU(4),o.qZA(),o.O4$(),o.TgZ(5,"svg",3),o._UZ(6,"polygon",4),o.qZA(),o.qZA(),o.kcU(),o._UZ(7,"div",5),o.Hsn(8),o.TgZ(9,"button",6),o.NdJ("click",function(){return Je.previousClicked()}),o.qZA(),o.TgZ(10,"button",7),o.NdJ("click",function(){return Je.nextClicked()}),o.qZA(),o.qZA(),o.qZA()),2&fe&&(o.xp6(2),o.uIk("aria-label",Je.periodButtonLabel)("aria-describedby",Je._buttonDescriptionId),o.xp6(1),o.uIk("id",Je._buttonDescriptionId),o.xp6(1),o.Oqu(Je.periodButtonText),o.xp6(1),o.ekj("mat-calendar-invert","month"!==Je.calendar.currentView),o.xp6(4),o.Q6J("disabled",!Je.previousEnabled()),o.uIk("aria-label",Je.prevButtonLabel),o.xp6(1),o.Q6J("disabled",!Je.nextEnabled()),o.uIk("aria-label",Je.nextButtonLabel))},directives:[M.lW,e.Qr],encapsulation:2,changeDetection:0}),qe})(),ai=(()=>{class qe{constructor(fe,Je,St,Pt){this._dateAdapter=Je,this._dateFormats=St,this._changeDetectorRef=Pt,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new o.vpe,this.yearSelected=new o.vpe,this.monthSelected=new o.vpe,this.viewChanged=new o.vpe(!0),this._userSelection=new o.vpe,this.stateChanges=new s.x,this._intlChanges=fe.changes.subscribe(()=>{Pt.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(fe){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(fe))}get selected(){return this._selected}set selected(fe){this._selected=fe instanceof Ge?fe:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(fe))}get minDate(){return this._minDate}set minDate(fe){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(fe))}get maxDate(){return this._maxDate}set maxDate(fe){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(fe))}get activeDate(){return this._clampedActiveDate}set activeDate(fe){this._clampedActiveDate=this._dateAdapter.clampDate(fe,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(fe){const Je=this._currentView!==fe?fe:null;this._currentView=fe,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),Je&&this.viewChanged.emit(Je)}ngAfterContentInit(){this._calendarHeaderPortal=new y.C5(this.headerComponent||Pi),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(fe){const Je=fe.minDate||fe.maxDate||fe.dateFilter;if(Je&&!Je.firstChange){const St=this._getCurrentViewComponent();St&&(this._changeDetectorRef.detectChanges(),St._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(fe){const Je=fe.value;(this.selected instanceof Ge||Je&&!this._dateAdapter.sameDate(Je,this.selected))&&this.selectedChange.emit(Je),this._userSelection.emit(fe)}_yearSelectedInMultiYearView(fe){this.yearSelected.emit(fe)}_monthSelectedInYearView(fe){this.monthSelected.emit(fe)}_goToDateInView(fe,Je){this.activeDate=fe,this.currentView=Je}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return qe.\u0275fac=function(fe){return new(fe||qe)(o.Y36(jt),o.Y36(N._A,8),o.Y36(N.sG,8),o.Y36(o.sBO))},qe.\u0275cmp=o.Xpm({type:qe,selectors:[["mat-calendar"]],viewQuery:function(fe,Je){if(1&fe&&(o.Gf(nt,5),o.Gf(Ii,5),o.Gf(rt,5)),2&fe){let St;o.iGM(St=o.CRH())&&(Je.monthView=St.first),o.iGM(St=o.CRH())&&(Je.yearView=St.first),o.iGM(St=o.CRH())&&(Je.multiYearView=St.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:[o._Bn([Le]),o.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(fe,Je){1&fe&&(o.YNc(0,u,0,0,"ng-template",0),o.TgZ(1,"div",1),o.YNc(2,_,1,8,"mat-month-view",2),o.YNc(3,L,1,6,"mat-year-view",3),o.YNc(4,I,1,6,"mat-multi-year-view",4),o.qZA()),2&fe&&(o.Q6J("cdkPortalOutlet",Je._calendarHeaderPortal),o.xp6(1),o.Q6J("ngSwitch",Je.currentView),o.xp6(1),o.Q6J("ngSwitchCase","month"),o.xp6(1),o.Q6J("ngSwitchCase","year"),o.xp6(1),o.Q6J("ngSwitchCase","multi-year"))},directives:[y.Pl,e.kH,C.RF,C.n9,nt,Ii,rt],styles:['.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:.04}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px}.mat-calendar-abbr{text-decoration:none}\n'],encapsulation:2,changeDetection:0}),qe})();const hi={transformPanel:(0,ee.X$)("transformPanel",[(0,ee.eR)("void => enter-dropdown",(0,ee.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,ee.F4)([(0,ee.oB)({opacity:0,transform:"scale(1, 0.8)"}),(0,ee.oB)({opacity:1,transform:"scale(1, 1)"})]))),(0,ee.eR)("void => enter-dialog",(0,ee.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,ee.F4)([(0,ee.oB)({opacity:0,transform:"scale(0.7)"}),(0,ee.oB)({transform:"none",opacity:1})]))),(0,ee.eR)("* => void",(0,ee.jt)("100ms linear",(0,ee.oB)({opacity:0})))]),fadeInCalendar:(0,ee.X$)("fadeInCalendar",[(0,ee.SB)("void",(0,ee.oB)({opacity:0})),(0,ee.SB)("enter",(0,ee.oB)({opacity:1})),(0,ee.eR)("void => *",(0,ee.jt)("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let Ze=0;const Ee=new o.OlP("mat-datepicker-scroll-strategy"),me={provide:Ee,deps:[t.aV],useFactory:function Y(qe){return()=>qe.scrollStrategies.reposition()}},De=(0,N.pj)(class{constructor(qe){this._elementRef=qe}});let et=(()=>{class qe extends De{constructor(fe,Je,St,Pt,yi,Ni){super(fe),this._changeDetectorRef=Je,this._globalModel=St,this._dateAdapter=Pt,this._rangeSelectionStrategy=yi,this._subscriptions=new D.w0,this._animationDone=new s.x,this._actionsPortal=null,this._closeButtonText=Ni.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(fe){const Je=this._model.selection,St=fe.value,Pt=Je instanceof Ge;if(Pt&&this._rangeSelectionStrategy){const yi=this._rangeSelectionStrategy.selectionFinished(St,Je,fe.event);this._model.updateSelection(yi,this)}else St&&(Pt||!this._dateAdapter.sameDate(St,Je))&&this._model.add(St);(!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 qe.\u0275fac=function(fe){return new(fe||qe)(o.Y36(o.SBq),o.Y36(o.sBO),o.Y36(vt),o.Y36(N._A),o.Y36($,8),o.Y36(jt))},qe.\u0275cmp=o.Xpm({type:qe,selectors:[["mat-datepicker-content"]],viewQuery:function(fe,Je){if(1&fe&&o.Gf(ai,5),2&fe){let St;o.iGM(St=o.CRH())&&(Je._calendar=St.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(fe,Je){1&fe&&o.WFA("@transformPanel.done",function(){return Je._animationDone.next()}),2&fe&&(o.d8E("@transformPanel",Je._animationState),o.ekj("mat-datepicker-content-touch",Je.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[o.qOj],decls:5,vars:20,consts:[["cdkTrapFocus","",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(fe,Je){1&fe&&(o.TgZ(0,"div",0),o.TgZ(1,"mat-calendar",1),o.NdJ("yearSelected",function(Pt){return Je.datepicker._selectYear(Pt)})("monthSelected",function(Pt){return Je.datepicker._selectMonth(Pt)})("viewChanged",function(Pt){return Je.datepicker._viewChanged(Pt)})("_userSelection",function(Pt){return Je._handleUserSelection(Pt)}),o.qZA(),o.YNc(2,x,0,0,"ng-template",2),o.TgZ(3,"button",3),o.NdJ("focus",function(){return Je._closeButtonFocused=!0})("blur",function(){return Je._closeButtonFocused=!1})("click",function(){return Je.datepicker.close()}),o._uU(4),o.qZA(),o.qZA()),2&fe&&(o.ekj("mat-datepicker-content-container-with-actions",Je._actionsPortal),o.xp6(1),o.Q6J("id",Je.datepicker.id)("ngClass",Je.datepicker.panelClass)("startAt",Je.datepicker.startAt)("startView",Je.datepicker.startView)("minDate",Je.datepicker._getMinDate())("maxDate",Je.datepicker._getMaxDate())("dateFilter",Je.datepicker._getDateFilter())("headerComponent",Je.datepicker.calendarHeaderComponent)("selected",Je._getSelected())("dateClass",Je.datepicker.dateClass)("comparisonStart",Je.comparisonStart)("comparisonEnd",Je.comparisonEnd)("@fadeInCalendar","enter"),o.xp6(1),o.Q6J("cdkPortalOutlet",Je._actionsPortal),o.xp6(1),o.ekj("cdk-visually-hidden",!Je._closeButtonFocused),o.Q6J("color",Je.color||"primary"),o.xp6(1),o.Oqu(Je._closeButtonText))},directives:[e.mK,ai,C.mk,y.Pl,M.lW],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.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:[hi.transformPanel,hi.fadeInCalendar]},changeDetection:0}),qe})(),$t=(()=>{class qe{constructor(fe,Je,St,Pt,yi,Ni,Si){this._overlay=fe,this._ngZone=Je,this._viewContainerRef=St,this._dateAdapter=yi,this._dir=Ni,this._model=Si,this._inputStateChanges=D.w0.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new o.vpe,this.monthSelected=new o.vpe,this.viewChanged=new o.vpe(!0),this.openedStream=new o.vpe,this.closedStream=new o.vpe,this._opened=!1,this.id="mat-datepicker-"+Ze++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new s.x,this._scrollStrategy=Pt}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(fe){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(fe))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(fe){this._color=fe}get touchUi(){return this._touchUi}set touchUi(fe){this._touchUi=(0,W.Ig)(fe)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(fe){const Je=(0,W.Ig)(fe);Je!==this._disabled&&(this._disabled=Je,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(fe){this._restoreFocus=(0,W.Ig)(fe)}get panelClass(){return this._panelClass}set panelClass(fe){this._panelClass=(0,W.du)(fe)}get opened(){return this._opened}set opened(fe){(0,W.Ig)(fe)?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}ngOnChanges(fe){const Je=fe.xPosition||fe.yPosition;if(Je&&!Je.firstChange&&this._overlayRef){const St=this._overlayRef.getConfig().positionStrategy;St instanceof t._G&&(this._setConnectedPositions(St),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(fe){this._model.add(fe)}_selectYear(fe){this.yearSelected.emit(fe)}_selectMonth(fe){this.monthSelected.emit(fe)}_viewChanged(fe){this.viewChanged.emit(fe)}registerInput(fe){return this._inputStateChanges.unsubscribe(),this.datepickerInput=fe,this._inputStateChanges=fe.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(fe){this._actionsPortal=fe}removeActions(fe){fe===this._actionsPortal&&(this._actionsPortal=null)}open(){this._opened||this.disabled||(this._focusedElementBeforeOpen=(0,ie.ht)(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened)return;if(this._componentRef){const Je=this._componentRef.instance;Je._startExitAnimation(),Je._animationDone.pipe((0,P.q)(1)).subscribe(()=>this._destroyOverlay())}const fe=()=>{this._opened&&(this._opened=!1,this.closedStream.emit(),this._focusedElementBeforeOpen=null)};this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(fe)):fe()}_applyPendingSelection(){var fe,Je;null===(Je=null===(fe=this._componentRef)||void 0===fe?void 0:fe.instance)||void 0===Je||Je._applyPendingSelection()}_forwardContentValues(fe){fe.datepicker=this,fe.color=this.color,fe._actionsPortal=this._actionsPortal}_openOverlay(){this._destroyOverlay();const fe=this.touchUi,Je=this.datepickerInput.getOverlayLabelId(),St=new y.C5(et,this._viewContainerRef),Pt=this._overlayRef=this._overlay.create(new t.X_({positionStrategy:fe?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[fe?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:fe?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(fe?"dialog":"popup")})),yi=Pt.overlayElement;yi.setAttribute("role","dialog"),Je&&yi.setAttribute("aria-labelledby",Je),fe&&yi.setAttribute("aria-modal","true"),this._getCloseStream(Pt).subscribe(Ni=>{Ni&&Ni.preventDefault(),this.close()}),this._componentRef=Pt.attach(St),this._forwardContentValues(this._componentRef.instance),fe||this._ngZone.onStable.pipe((0,P.q)(1)).subscribe(()=>Pt.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const fe=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(fe)}_setConnectedPositions(fe){const Je="end"===this.xPosition?"end":"start",St="start"===Je?"end":"start",Pt="above"===this.yPosition?"bottom":"top",yi="top"===Pt?"bottom":"top";return fe.withPositions([{originX:Je,originY:yi,overlayX:Je,overlayY:Pt},{originX:Je,originY:Pt,overlayX:Je,overlayY:yi},{originX:St,originY:yi,overlayX:St,overlayY:Pt},{originX:St,originY:Pt,overlayX:St,overlayY:yi}])}_getCloseStream(fe){return(0,A.T)(fe.backdropClick(),fe.detachments(),fe.keydownEvents().pipe((0,Z.h)(Je=>Je.keyCode===E.hY&&!(0,E.Vb)(Je)||this.datepickerInput&&(0,E.Vb)(Je,"altKey")&&Je.keyCode===E.LH)))}}return qe.\u0275fac=function(fe){return new(fe||qe)(o.Y36(t.aV),o.Y36(o.R0b),o.Y36(o.s_b),o.Y36(Ee),o.Y36(N._A,8),o.Y36(j.Is,8),o.Y36(vt))},qe.\u0275dir=o.lG2({type:qe,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:[o.TTD]}),qe})(),Nt=(()=>{class qe extends $t{}return qe.\u0275fac=function(){let yt;return function(Je){return(yt||(yt=o.n5z(qe)))(Je||qe)}}(),qe.\u0275cmp=o.Xpm({type:qe,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[o._Bn([Le,{provide:$t,useExisting:qe}]),o.qOj],decls:0,vars:0,template:function(fe,Je){},encapsulation:2,changeDetection:0}),qe})();class Jt{constructor(yt,fe){this.target=yt,this.targetElement=fe,this.value=this.target.value}}let ct=(()=>{class qe{constructor(fe,Je,St){this._elementRef=fe,this._dateAdapter=Je,this._dateFormats=St,this.dateChange=new o.vpe,this.dateInput=new o.vpe,this.stateChanges=new s.x,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=D.w0.EMPTY,this._localeSubscription=D.w0.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=Pt=>{const yi=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Pt.value));return!yi||this._matchesFilter(yi)?null:{matDatepickerFilter:!0}},this._minValidator=Pt=>{const yi=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Pt.value)),Ni=this._getMinDate();return!Ni||!yi||this._dateAdapter.compareDate(Ni,yi)<=0?null:{matDatepickerMin:{min:Ni,actual:yi}}},this._maxValidator=Pt=>{const yi=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Pt.value)),Ni=this._getMaxDate();return!Ni||!yi||this._dateAdapter.compareDate(Ni,yi)>=0?null:{matDatepickerMax:{max:Ni,actual:yi}}},this._lastValueValid=!1,this._localeSubscription=Je.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(fe){this._assignValueProgrammatically(fe)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(fe){const Je=(0,W.Ig)(fe),St=this._elementRef.nativeElement;this._disabled!==Je&&(this._disabled=Je,this.stateChanges.next(void 0)),Je&&this._isInitialized&&St.blur&&St.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(fe){this._model=fe,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(Je=>{if(this._shouldHandleChangeEvent(Je)){const St=this._getValueFromModel(Je.selection);this._lastValueValid=this._isValidValue(St),this._cvaOnChange(St),this._onTouched(),this._formatValue(St),this.dateInput.emit(new Jt(this,this._elementRef.nativeElement)),this.dateChange.emit(new Jt(this,this._elementRef.nativeElement))}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(fe){(function Pe(qe,yt){const fe=Object.keys(qe);for(let Je of fe){const{previousValue:St,currentValue:Pt}=qe[Je];if(!yt.isDateInstance(St)||!yt.isDateInstance(Pt))return!0;if(!yt.sameDate(St,Pt))return!0}return!1})(fe,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(fe){this._validatorOnChange=fe}validate(fe){return this._validator?this._validator(fe):null}writeValue(fe){this._assignValueProgrammatically(fe)}registerOnChange(fe){this._cvaOnChange=fe}registerOnTouched(fe){this._onTouched=fe}setDisabledState(fe){this.disabled=fe}_onKeydown(fe){fe.altKey&&fe.keyCode===E.JH&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),fe.preventDefault())}_onInput(fe){const Je=this._lastValueValid;let St=this._dateAdapter.parse(fe,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(St),St=this._dateAdapter.getValidDateOrNull(St),this._dateAdapter.sameDate(St,this.value)?(fe&&!this.value&&this._cvaOnChange(St),Je!==this._lastValueValid&&this._validatorOnChange()):(this._assignValue(St),this._cvaOnChange(St),this.dateInput.emit(new Jt(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new Jt(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(fe){this._elementRef.nativeElement.value=fe?this._dateAdapter.format(fe,this._dateFormats.display.dateInput):""}_assignValue(fe){this._model?(this._assignValueToModel(fe),this._pendingValue=null):this._pendingValue=fe}_isValidValue(fe){return!fe||this._dateAdapter.isValid(fe)}_parentDisabled(){return!1}_assignValueProgrammatically(fe){fe=this._dateAdapter.deserialize(fe),this._lastValueValid=this._isValidValue(fe),fe=this._dateAdapter.getValidDateOrNull(fe),this._assignValue(fe),this._formatValue(fe)}_matchesFilter(fe){const Je=this._getDateFilter();return!Je||Je(fe)}}return qe.\u0275fac=function(fe){return new(fe||qe)(o.Y36(o.SBq),o.Y36(N._A,8),o.Y36(N.sG,8))},qe.\u0275dir=o.lG2({type:qe,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[o.TTD]}),qe})();const Fe={provide:_e.JU,useExisting:(0,o.Gpc)(()=>st),multi:!0},at={provide:_e.Cf,useExisting:(0,o.Gpc)(()=>st),multi:!0};let st=(()=>{class qe extends ct{constructor(fe,Je,St,Pt){super(fe,Je,St),this._formField=Pt,this._closedSubscription=D.w0.EMPTY,this._validator=_e.kI.compose(super._getValidators())}set matDatepicker(fe){fe&&(this._datepicker=fe,this._closedSubscription=fe.closedStream.subscribe(()=>this._onTouched()),this._registerModel(fe.registerInput(this)))}get min(){return this._min}set min(fe){const Je=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(fe));this._dateAdapter.sameDate(Je,this._min)||(this._min=Je,this._validatorOnChange())}get max(){return this._max}set max(fe){const Je=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(fe));this._dateAdapter.sameDate(Je,this._max)||(this._max=Je,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(fe){const Je=this._matchesFilter(this.value);this._dateFilter=fe,this._matchesFilter(this.value)!==Je&&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(fe){return fe}_assignValueToModel(fe){this._model&&this._model.updateSelection(fe,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(fe){return fe.source!==this}}return qe.\u0275fac=function(fe){return new(fe||qe)(o.Y36(o.SBq),o.Y36(N._A,8),o.Y36(N.sG,8),o.Y36(ce.G_,8))},qe.\u0275dir=o.lG2({type:qe,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(fe,Je){1&fe&&o.NdJ("input",function(Pt){return Je._onInput(Pt.target.value)})("change",function(){return Je._onChange()})("blur",function(){return Je._onBlur()})("keydown",function(Pt){return Je._onKeydown(Pt)}),2&fe&&(o.Ikx("disabled",Je.disabled),o.uIk("aria-haspopup",Je._datepicker?"dialog":null)("aria-owns",(null==Je._datepicker?null:Je._datepicker.opened)&&Je._datepicker.id||null)("min",Je.min?Je._dateAdapter.toIso8601(Je.min):null)("max",Je.max?Je._dateAdapter.toIso8601(Je.max):null)("data-mat-calendar",Je._datepicker?Je._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[o._Bn([Fe,at,{provide:re.Jk,useExisting:qe}]),o.qOj]}),qe})(),At=(()=>{class qe{}return qe.\u0275fac=function(fe){return new(fe||qe)},qe.\u0275dir=o.lG2({type:qe,selectors:[["","matDatepickerToggleIcon",""]]}),qe})(),li=(()=>{class qe{constructor(fe,Je,St){this._intl=fe,this._changeDetectorRef=Je,this._stateChanges=D.w0.EMPTY;const Pt=Number(St);this.tabIndex=Pt||0===Pt?Pt:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(fe){this._disabled=(0,W.Ig)(fe)}ngOnChanges(fe){fe.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(fe){this.datepicker&&!this.disabled&&(this.datepicker.open(),fe.stopPropagation())}_watchStateChanges(){const fe=this.datepicker?this.datepicker.stateChanges:(0,O.of)(),Je=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,O.of)(),St=this.datepicker?(0,A.T)(this.datepicker.openedStream,this.datepicker.closedStream):(0,O.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,A.T)(this._intl.changes,fe,Je,St).subscribe(()=>this._changeDetectorRef.markForCheck())}}return qe.\u0275fac=function(fe){return new(fe||qe)(o.Y36(jt),o.Y36(o.sBO),o.$8M("tabindex"))},qe.\u0275cmp=o.Xpm({type:qe,selectors:[["mat-datepicker-toggle"]],contentQueries:function(fe,Je,St){if(1&fe&&o.Suo(St,At,5),2&fe){let Pt;o.iGM(Pt=o.CRH())&&(Je._customIcon=Pt.first)}},viewQuery:function(fe,Je){if(1&fe&&o.Gf(r,5),2&fe){let St;o.iGM(St=o.CRH())&&(Je._button=St.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(fe,Je){1&fe&&o.NdJ("click",function(Pt){return Je._open(Pt)}),2&fe&&(o.uIk("tabindex",null)("data-mat-calendar",Je.datepicker?Je.datepicker.id:null),o.ekj("mat-datepicker-toggle-active",Je.datepicker&&Je.datepicker.opened)("mat-accent",Je.datepicker&&"accent"===Je.datepicker.color)("mat-warn",Je.datepicker&&"warn"===Je.datepicker.color))},inputs:{datepicker:["for","datepicker"],tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[o.TTD],ngContentSelectors:F,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple"],["button",""],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",4,"ngIf"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(fe,Je){1&fe&&(o.F$t(G),o.TgZ(0,"button",0,1),o.YNc(2,v,2,0,"svg",2),o.Hsn(3),o.qZA()),2&fe&&(o.Q6J("disabled",Je.disabled)("disableRipple",Je.disableRipple),o.uIk("aria-haspopup",Je.datepicker?"dialog":null)("aria-label",Je.ariaLabel||Je._intl.openCalendarLabel)("tabindex",Je.disabled?-1:Je.tabIndex),o.xp6(2),o.Q6J("ngIf",!Je._customIcon))},directives:[M.lW,C.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}),qe})(),ve=(()=>{class qe{}return qe.\u0275fac=function(fe){return new(fe||qe)},qe.\u0275mod=o.oAB({type:qe}),qe.\u0275inj=o.cJS({providers:[jt,me],imports:[[C.ez,M.ot,t.U8,e.rt,y.eL,N.BQ],l.ZD]}),qe})()},8966:(Ve,Q,m)=>{"use strict";m.d(Q,{WI:()=>i,Bq:()=>a,uw:()=>x,ZT:()=>G,Is:()=>Be,so:()=>ae});var e=m(9776),t=m(7429),y=m(5e3),C=m(508),o=m(226),M=m(7579),l=m(9770),N=m(727),s=m(9646),D=m(9300),A=m(5698),O=m(8675),E=m(925),P=m(9808),w=m(1777),Z=m(5664),j=m(1159),W=m(6360);function ie(ze,Ie){}class ee{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.closeOnNavigation=!0}}const _e={dialogContainer:(0,w.X$)("dialogContainer",[(0,w.SB)("void, exit",(0,w.oB)({opacity:0,transform:"scale(0.7)"})),(0,w.SB)("enter",(0,w.oB)({transform:"none"})),(0,w.eR)("* => enter",(0,w.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,w.oB)({transform:"none",opacity:1}))),(0,w.eR)("* => void, * => exit",(0,w.jt)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",(0,w.oB)({opacity:0})))])};let re=(()=>{class ze extends t.en{constructor(K,Me,we,z,Ge,vt,Re,Ne){super(),this._elementRef=K,this._focusTrapFactory=Me,this._changeDetectorRef=we,this._config=Ge,this._interactivityChecker=vt,this._ngZone=Re,this._focusMonitor=Ne,this._animationStateChanged=new y.vpe,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=he=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(he)),this._ariaLabelledBy=Ge.ariaLabelledBy||null,this._document=z}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement()}attachComponentPortal(K){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(K)}attachTemplatePortal(K){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(K)}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(K,Me){this._interactivityChecker.isFocusable(K)||(K.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{K.addEventListener("blur",()=>K.removeAttribute("tabindex")),K.addEventListener("mousedown",()=>K.removeAttribute("tabindex"))})),K.focus(Me)}_focusByCssSelector(K,Me){let we=this._elementRef.nativeElement.querySelector(K);we&&this._forceFocus(we,Me)}_trapFocus(){const K=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||K.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(Me=>{Me||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 K=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&K&&"function"==typeof K.focus){const Me=(0,E.ht)(),we=this._elementRef.nativeElement;(!Me||Me===this._document.body||Me===we||we.contains(Me))&&(this._focusMonitor?(this._focusMonitor.focusVia(K,this._closeInteractionType),this._closeInteractionType=null):K.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,E.ht)())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const K=this._elementRef.nativeElement,Me=(0,E.ht)();return K===Me||K.contains(Me)}}return ze.\u0275fac=function(K){return new(K||ze)(y.Y36(y.SBq),y.Y36(Z.qV),y.Y36(y.sBO),y.Y36(P.K0,8),y.Y36(ee),y.Y36(Z.ic),y.Y36(y.R0b),y.Y36(Z.tE))},ze.\u0275dir=y.lG2({type:ze,viewQuery:function(K,Me){if(1&K&&y.Gf(t.Pl,7),2&K){let we;y.iGM(we=y.CRH())&&(Me._portalOutlet=we.first)}},features:[y.qOj]}),ze})(),de=(()=>{class ze extends re{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:K,totalTime:Me}){"enter"===K?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:Me})):"exit"===K&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:Me}))}_onAnimationStart({toState:K,totalTime:Me}){"enter"===K?this._animationStateChanged.next({state:"opening",totalTime:Me}):("exit"===K||"void"===K)&&this._animationStateChanged.next({state:"closing",totalTime:Me})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return ze.\u0275fac=function(){let Ie;return function(Me){return(Ie||(Ie=y.n5z(ze)))(Me||ze)}}(),ze.\u0275cmp=y.Xpm({type:ze,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(K,Me){1&K&&y.WFA("@dialogContainer.start",function(z){return Me._onAnimationStart(z)})("@dialogContainer.done",function(z){return Me._onAnimationDone(z)}),2&K&&(y.Ikx("id",Me._id),y.uIk("role",Me._config.role)("aria-labelledby",Me._config.ariaLabel?null:Me._ariaLabelledBy)("aria-label",Me._config.ariaLabel)("aria-describedby",Me._config.ariaDescribedBy||null),y.d8E("@dialogContainer",Me._state))},features:[y.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(K,Me){1&K&&y.YNc(0,ie,0,0,"ng-template",0)},directives:[t.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:[_e.dialogContainer]}}),ze})(),oe=0;class ae{constructor(Ie,K,Me="mat-dialog-"+oe++){this._overlayRef=Ie,this._containerInstance=K,this.id=Me,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new M.x,this._afterClosed=new M.x,this._beforeClosed=new M.x,this._state=0,K._id=Me,K._animationStateChanged.pipe((0,D.h)(we=>"opened"===we.state),(0,A.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),K._animationStateChanged.pipe((0,D.h)(we=>"closed"===we.state),(0,A.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),Ie.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),Ie.keydownEvents().pipe((0,D.h)(we=>we.keyCode===j.hY&&!this.disableClose&&!(0,j.Vb)(we))).subscribe(we=>{we.preventDefault(),b(this,"keyboard")}),Ie.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():b(this,"mouse")})}close(Ie){this._result=Ie,this._containerInstance._animationStateChanged.pipe((0,D.h)(K=>"closing"===K.state),(0,A.q)(1)).subscribe(K=>{this._beforeClosed.next(Ie),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),K.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(Ie){let K=this._getPositionStrategy();return Ie&&(Ie.left||Ie.right)?Ie.left?K.left(Ie.left):K.right(Ie.right):K.centerHorizontally(),Ie&&(Ie.top||Ie.bottom)?Ie.top?K.top(Ie.top):K.bottom(Ie.bottom):K.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(Ie="",K=""){return this._overlayRef.updateSize({width:Ie,height:K}),this._overlayRef.updatePosition(),this}addPanelClass(Ie){return this._overlayRef.addPanelClass(Ie),this}removePanelClass(Ie){return this._overlayRef.removePanelClass(Ie),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function b(ze,Ie,K){return void 0!==ze._containerInstance&&(ze._containerInstance._closeInteractionType=Ie),ze.close(K)}const i=new y.OlP("MatDialogData"),a=new y.OlP("mat-dialog-default-options"),p=new y.OlP("mat-dialog-scroll-strategy"),L={provide:p,deps:[e.aV],useFactory:function _(ze){return()=>ze.scrollStrategies.block()}};let I=(()=>{class ze{constructor(K,Me,we,z,Ge,vt,Re,Ne,he,Le){this._overlay=K,this._injector=Me,this._defaultOptions=we,this._parentDialog=z,this._overlayContainer=Ge,this._dialogRefConstructor=Re,this._dialogContainerType=Ne,this._dialogDataToken=he,this._animationMode=Le,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new M.x,this._afterOpenedAtThisLevel=new M.x,this._ariaHiddenElements=new Map,this._dialogAnimatingOpen=!1,this.afterAllClosed=(0,l.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,O.O)(void 0))),this._scrollStrategy=vt}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const K=this._parentDialog;return K?K._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(K,Me){if(Me=function r(ze,Ie){return Object.assign(Object.assign({},Ie),ze)}(Me,this._defaultOptions||new ee),Me.id&&this.getDialogById(Me.id),this._dialogAnimatingOpen)return this._lastDialogRef;const we=this._createOverlay(Me),z=this._attachDialogContainer(we,Me);if("NoopAnimations"!==this._animationMode){const vt=z._animationStateChanged.subscribe(Re=>{"opening"===Re.state&&(this._dialogAnimatingOpen=!0),"opened"===Re.state&&(this._dialogAnimatingOpen=!1,vt.unsubscribe())});this._animationStateSubscriptions||(this._animationStateSubscriptions=new N.w0),this._animationStateSubscriptions.add(vt)}const Ge=this._attachDialogContent(K,z,we,Me);return this._lastDialogRef=Ge,this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(Ge),Ge.afterClosed().subscribe(()=>this._removeOpenDialog(Ge)),this.afterOpened.next(Ge),z._initializeWithAttachedContent(),Ge}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(K){return this.openDialogs.find(Me=>Me.id===K)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._animationStateSubscriptions&&this._animationStateSubscriptions.unsubscribe()}_createOverlay(K){const Me=this._getOverlayConfig(K);return this._overlay.create(Me)}_getOverlayConfig(K){const Me=new e.X_({positionStrategy:this._overlay.position().global(),scrollStrategy:K.scrollStrategy||this._scrollStrategy(),panelClass:K.panelClass,hasBackdrop:K.hasBackdrop,direction:K.direction,minWidth:K.minWidth,minHeight:K.minHeight,maxWidth:K.maxWidth,maxHeight:K.maxHeight,disposeOnNavigation:K.closeOnNavigation});return K.backdropClass&&(Me.backdropClass=K.backdropClass),Me}_attachDialogContainer(K,Me){const z=y.zs3.create({parent:Me&&Me.viewContainerRef&&Me.viewContainerRef.injector||this._injector,providers:[{provide:ee,useValue:Me}]}),Ge=new t.C5(this._dialogContainerType,Me.viewContainerRef,z,Me.componentFactoryResolver);return K.attach(Ge).instance}_attachDialogContent(K,Me,we,z){const Ge=new this._dialogRefConstructor(we,Me,z.id);if(K instanceof y.Rgc)Me.attachTemplatePortal(new t.UE(K,null,{$implicit:z.data,dialogRef:Ge}));else{const vt=this._createInjector(z,Ge,Me),Re=Me.attachComponentPortal(new t.C5(K,z.viewContainerRef,vt));Ge.componentInstance=Re.instance}return Ge.updateSize(z.width,z.height).updatePosition(z.position),Ge}_createInjector(K,Me,we){const z=K&&K.viewContainerRef&&K.viewContainerRef.injector,Ge=[{provide:this._dialogContainerType,useValue:we},{provide:this._dialogDataToken,useValue:K.data},{provide:this._dialogRefConstructor,useValue:Me}];return K.direction&&(!z||!z.get(o.Is,null,y.XFs.Optional))&&Ge.push({provide:o.Is,useValue:{value:K.direction,change:(0,s.of)()}}),y.zs3.create({parent:z||this._injector,providers:Ge})}_removeOpenDialog(K){const Me=this.openDialogs.indexOf(K);Me>-1&&(this.openDialogs.splice(Me,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((we,z)=>{we?z.setAttribute("aria-hidden",we):z.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const K=this._overlayContainer.getContainerElement();if(K.parentElement){const Me=K.parentElement.children;for(let we=Me.length-1;we>-1;we--){let z=Me[we];z!==K&&"SCRIPT"!==z.nodeName&&"STYLE"!==z.nodeName&&!z.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(z,z.getAttribute("aria-hidden")),z.setAttribute("aria-hidden","true"))}}}_closeDialogs(K){let Me=K.length;for(;Me--;)K[Me].close()}}return ze.\u0275fac=function(K){y.$Z()},ze.\u0275dir=y.lG2({type:ze}),ze})(),x=(()=>{class ze extends I{constructor(K,Me,we,z,Ge,vt,Re,Ne){super(K,Me,z,vt,Re,Ge,ae,de,i,Ne)}}return ze.\u0275fac=function(K){return new(K||ze)(y.LFG(e.aV),y.LFG(y.zs3),y.LFG(P.Ye,8),y.LFG(a,8),y.LFG(p),y.LFG(ze,12),y.LFG(e.Xj),y.LFG(W.Qb,8))},ze.\u0275prov=y.Yz7({token:ze,factory:ze.\u0275fac}),ze})(),G=(()=>{class ze{constructor(K,Me,we){this.dialogRef=K,this._elementRef=Me,this._dialog=we,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=function Ce(ze,Ie){let K=ze.nativeElement.parentElement;for(;K&&!K.classList.contains("mat-dialog-container");)K=K.parentElement;return K?Ie.find(Me=>Me.id===K.id):null}(this._elementRef,this._dialog.openDialogs))}ngOnChanges(K){const Me=K._matDialogClose||K._matDialogCloseResult;Me&&(this.dialogResult=Me.currentValue)}_onButtonClick(K){b(this.dialogRef,0===K.screenX&&0===K.screenY?"keyboard":"mouse",this.dialogResult)}}return ze.\u0275fac=function(K){return new(K||ze)(y.Y36(ae,8),y.Y36(y.SBq),y.Y36(x))},ze.\u0275dir=y.lG2({type:ze,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(K,Me){1&K&&y.NdJ("click",function(z){return Me._onButtonClick(z)}),2&K&&y.uIk("aria-label",Me.ariaLabel||null)("type",Me.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[y.TTD]}),ze})(),Be=(()=>{class ze{}return ze.\u0275fac=function(K){return new(K||ze)},ze.\u0275mod=y.oAB({type:ze}),ze.\u0275inj=y.cJS({providers:[x,L],imports:[[e.U8,t.eL,C.BQ],C.BQ]}),ze})()},4834:(Ve,Q,m)=>{"use strict";m.d(Q,{d:()=>C,t:()=>o});var e=m(5e3),t=m(3191),y=m(508);let C=(()=>{class M{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(N){this._vertical=(0,t.Ig)(N)}get inset(){return this._inset}set inset(N){this._inset=(0,t.Ig)(N)}}return M.\u0275fac=function(N){return new(N||M)},M.\u0275cmp=e.Xpm({type:M,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(N,s){2&N&&(e.uIk("aria-orientation",s.vertical?"vertical":"horizontal"),e.ekj("mat-divider-vertical",s.vertical)("mat-divider-horizontal",!s.vertical)("mat-divider-inset",s.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(N,s){},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}),M})(),o=(()=>{class M{}return M.\u0275fac=function(N){return new(N||M)},M.\u0275mod=e.oAB({type:M}),M.\u0275inj=e.cJS({imports:[[y.BQ],y.BQ]}),M})()},1125:(Ve,Q,m)=>{"use strict";m.d(Q,{pp:()=>Ie,To:()=>K,ib:()=>G,u4:()=>Be,yz:()=>Ce,yK:()=>ze});var e=m(5e3),t=m(3191),y=m(7579),C=m(727),o=m(449);let M=0;const l=new e.OlP("CdkAccordion");let N=(()=>{class Me{constructor(){this._stateChanges=new y.x,this._openCloseAllActions=new y.x,this.id="cdk-accordion-"+M++,this._multi=!1}get multi(){return this._multi}set multi(z){this._multi=(0,t.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 Me.\u0275fac=function(z){return new(z||Me)},Me.\u0275dir=e.lG2({type:Me,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[e._Bn([{provide:l,useExisting:Me}]),e.TTD]}),Me})(),s=0,D=(()=>{class Me{constructor(z,Ge,vt){this.accordion=z,this._changeDetectorRef=Ge,this._expansionDispatcher=vt,this._openCloseAllSubscription=C.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-"+s++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=vt.listen((Re,Ne)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===Ne&&this.id!==Re&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(z){z=(0,t.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,t.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 Me.\u0275fac=function(z){return new(z||Me)(e.Y36(l,12),e.Y36(e.sBO),e.Y36(o.A8))},Me.\u0275dir=e.lG2({type:Me,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:l,useValue:void 0}])]}),Me})(),A=(()=>{class Me{}return Me.\u0275fac=function(z){return new(z||Me)},Me.\u0275mod=e.oAB({type:Me}),Me.\u0275inj=e.cJS({}),Me})();var O=m(7429),E=m(9808),P=m(508),w=m(5664),Z=m(1884),j=m(8675),W=m(9300),ie=m(5698),ee=m(1159),_e=m(6360),ce=m(515),re=m(6451),de=m(1777);const oe=["body"];function ae(Me,we){}const b=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],i=["mat-expansion-panel-header","*","mat-action-row"];function a(Me,we){if(1&Me&&e._UZ(0,"span",2),2&Me){const z=e.oxw();e.Q6J("@indicatorRotate",z._getExpandedState())}}const p=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],u=["mat-panel-title","mat-panel-description","*"],_=new e.OlP("MAT_ACCORDION"),L="225ms cubic-bezier(0.4,0.0,0.2,1)",I={indicatorRotate:(0,de.X$)("indicatorRotate",[(0,de.SB)("collapsed, void",(0,de.oB)({transform:"rotate(0deg)"})),(0,de.SB)("expanded",(0,de.oB)({transform:"rotate(180deg)"})),(0,de.eR)("expanded <=> collapsed, void => collapsed",(0,de.jt)(L))]),bodyExpansion:(0,de.X$)("bodyExpansion",[(0,de.SB)("collapsed, void",(0,de.oB)({height:"0px",visibility:"hidden"})),(0,de.SB)("expanded",(0,de.oB)({height:"*",visibility:"visible"})),(0,de.eR)("expanded <=> collapsed, void => collapsed",(0,de.jt)(L))])};let x=(()=>{class Me{constructor(z){this._template=z}}return Me.\u0275fac=function(z){return new(z||Me)(e.Y36(e.Rgc))},Me.\u0275dir=e.lG2({type:Me,selectors:[["ng-template","matExpansionPanelContent",""]]}),Me})(),r=0;const v=new e.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let G=(()=>{class Me extends D{constructor(z,Ge,vt,Re,Ne,he,Le){super(z,Ge,vt),this._viewContainerRef=Re,this._animationMode=he,this._hideToggle=!1,this.afterExpand=new e.vpe,this.afterCollapse=new e.vpe,this._inputChanges=new y.x,this._headerId="mat-expansion-panel-header-"+r++,this._bodyAnimationDone=new y.x,this.accordion=z,this._document=Ne,this._bodyAnimationDone.pipe((0,Z.x)((ke,q)=>ke.fromState===q.fromState&&ke.toState===q.toState)).subscribe(ke=>{"void"!==ke.fromState&&("expanded"===ke.toState?this.afterExpand.emit():"collapsed"===ke.toState&&this.afterCollapse.emit())}),Le&&(this.hideToggle=Le.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(z){this._hideToggle=(0,t.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,j.O)(null),(0,W.h)(()=>this.expanded&&!this._portal),(0,ie.q)(1)).subscribe(()=>{this._portal=new O.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,Ge=this._body.nativeElement;return z===Ge||Ge.contains(z)}return!1}}return Me.\u0275fac=function(z){return new(z||Me)(e.Y36(_,12),e.Y36(e.sBO),e.Y36(o.A8),e.Y36(e.s_b),e.Y36(E.K0),e.Y36(_e.Qb,8),e.Y36(v,8))},Me.\u0275cmp=e.Xpm({type:Me,selectors:[["mat-expansion-panel"]],contentQueries:function(z,Ge,vt){if(1&z&&e.Suo(vt,x,5),2&z){let Re;e.iGM(Re=e.CRH())&&(Ge._lazyContent=Re.first)}},viewQuery:function(z,Ge){if(1&z&&e.Gf(oe,5),2&z){let vt;e.iGM(vt=e.CRH())&&(Ge._body=vt.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(z,Ge){2&z&&e.ekj("mat-expanded",Ge.expanded)("_mat-animation-noopable","NoopAnimations"===Ge._animationMode)("mat-expansion-panel-spacing",Ge._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:_,useValue:void 0}]),e.qOj,e.TTD],ngContentSelectors:i,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(z,Ge){1&z&&(e.F$t(b),e.Hsn(0),e.TgZ(1,"div",0,1),e.NdJ("@bodyExpansion.done",function(Re){return Ge._bodyAnimationDone.next(Re)}),e.TgZ(3,"div",2),e.Hsn(4,1),e.YNc(5,ae,0,0,"ng-template",3),e.qZA(),e.Hsn(6,2),e.qZA()),2&z&&(e.xp6(1),e.Q6J("@bodyExpansion",Ge._getExpandedState())("id",Ge.id),e.uIk("aria-labelledby",Ge._headerId),e.xp6(4),e.Q6J("cdkPortalOutlet",Ge._portal))},directives:[O.Pl],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-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 button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[I.bodyExpansion]},changeDetection:0}),Me})();class U{}const ye=(0,P.sb)(U);let Ce=(()=>{class Me extends ye{constructor(z,Ge,vt,Re,Ne,he,Le){super(),this.panel=z,this._element=Ge,this._focusMonitor=vt,this._changeDetectorRef=Re,this._animationMode=he,this._parentChangeSubscription=C.w0.EMPTY;const ke=z.accordion?z.accordion._stateChanges.pipe((0,W.h)(q=>!(!q.hideToggle&&!q.togglePosition))):ce.E;this.tabIndex=parseInt(Le||"")||0,this._parentChangeSubscription=(0,re.T)(z.opened,z.closed,ke,z._inputChanges.pipe((0,W.h)(q=>!!(q.hideToggle||q.disabled||q.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),z.closed.pipe((0,W.h)(()=>z._containsFocus())).subscribe(()=>vt.focusVia(Ge,"program")),Ne&&(this.expandedHeight=Ne.expandedHeight,this.collapsedHeight=Ne.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 ee.L_:case ee.K5:(0,ee.Vb)(z)||(z.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(z))}}focus(z,Ge){z?this._focusMonitor.focusVia(this._element,z,Ge):this._element.nativeElement.focus(Ge)}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 Me.\u0275fac=function(z){return new(z||Me)(e.Y36(G,1),e.Y36(e.SBq),e.Y36(w.tE),e.Y36(e.sBO),e.Y36(v,8),e.Y36(_e.Qb,8),e.$8M("tabindex"))},Me.\u0275cmp=e.Xpm({type:Me,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(z,Ge){1&z&&e.NdJ("click",function(){return Ge._toggle()})("keydown",function(Re){return Ge._keydown(Re)}),2&z&&(e.uIk("id",Ge.panel._headerId)("tabindex",Ge.tabIndex)("aria-controls",Ge._getPanelId())("aria-expanded",Ge._isExpanded())("aria-disabled",Ge.panel.disabled),e.Udp("height",Ge._getHeaderHeight()),e.ekj("mat-expanded",Ge._isExpanded())("mat-expansion-toggle-indicator-after","after"===Ge._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===Ge._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===Ge._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[e.qOj],ngContentSelectors:u,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(z,Ge){1&z&&(e.F$t(p),e.TgZ(0,"span",0),e.Hsn(1),e.Hsn(2,1),e.Hsn(3,2),e.qZA(),e.YNc(4,a,1,1,"span",1)),2&z&&(e.xp6(4),e.Q6J("ngIf",Ge._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}[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}),Me})(),Be=(()=>{class Me{}return Me.\u0275fac=function(z){return new(z||Me)},Me.\u0275dir=e.lG2({type:Me,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),Me})(),ze=(()=>{class Me{}return Me.\u0275fac=function(z){return new(z||Me)},Me.\u0275dir=e.lG2({type:Me,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),Me})(),Ie=(()=>{class Me extends N{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,t.Ig)(z)}ngAfterContentInit(){this._headers.changes.pipe((0,j.O)(this._headers)).subscribe(z=>{this._ownHeaders.reset(z.filter(Ge=>Ge.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 Me.\u0275fac=function(){let we;return function(Ge){return(we||(we=e.n5z(Me)))(Ge||Me)}}(),Me.\u0275dir=e.lG2({type:Me,selectors:[["mat-accordion"]],contentQueries:function(z,Ge,vt){if(1&z&&e.Suo(vt,Ce,5),2&z){let Re;e.iGM(Re=e.CRH())&&(Ge._headers=Re)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(z,Ge){2&z&&e.ekj("mat-accordion-multi",Ge.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[e._Bn([{provide:_,useExisting:Me}]),e.qOj]}),Me})(),K=(()=>{class Me{}return Me.\u0275fac=function(z){return new(z||Me)},Me.\u0275mod=e.oAB({type:Me}),Me.\u0275inj=e.cJS({imports:[[E.ez,P.BQ,A,O.eL]]}),Me})()},7322:(Ve,Q,m)=>{"use strict";m.d(Q,{G_:()=>he,TO:()=>I,KE:()=>Le,Eo:()=>r,lN:()=>ke,bx:()=>Ce,R9:()=>we});var e=m(7144),t=m(9808),y=m(5e3),C=m(508),o=m(3191),M=m(7579),l=m(6451),N=m(4968),s=m(8675),D=m(2722),A=m(5698),O=m(1777),E=m(6360),P=m(226),w=m(925);const Z=["connectionContainer"],j=["inputContainer"],W=["label"];function ie(q,$){1&q&&(y.ynx(0),y.TgZ(1,"div",14),y._UZ(2,"div",15),y._UZ(3,"div",16),y._UZ(4,"div",17),y.qZA(),y.TgZ(5,"div",18),y._UZ(6,"div",15),y._UZ(7,"div",16),y._UZ(8,"div",17),y.qZA(),y.BQk())}function ee(q,$){if(1&q){const le=y.EpF();y.TgZ(0,"div",19),y.NdJ("cdkObserveContent",function(){return y.CHM(le),y.oxw().updateOutlineGap()}),y.Hsn(1,1),y.qZA()}if(2&q){const le=y.oxw();y.Q6J("cdkObserveContentDisabled","outline"!=le.appearance)}}function _e(q,$){if(1&q&&(y.ynx(0),y.Hsn(1,2),y.TgZ(2,"span"),y._uU(3),y.qZA(),y.BQk()),2&q){const le=y.oxw(2);y.xp6(3),y.Oqu(le._control.placeholder)}}function ce(q,$){1&q&&y.Hsn(0,3,["*ngSwitchCase","true"])}function re(q,$){1&q&&(y.TgZ(0,"span",23),y._uU(1," *"),y.qZA())}function de(q,$){if(1&q){const le=y.EpF();y.TgZ(0,"label",20,21),y.NdJ("cdkObserveContent",function(){return y.CHM(le),y.oxw().updateOutlineGap()}),y.YNc(2,_e,4,1,"ng-container",12),y.YNc(3,ce,1,0,"ng-content",12),y.YNc(4,re,2,0,"span",22),y.qZA()}if(2&q){const le=y.oxw();y.ekj("mat-empty",le._control.empty&&!le._shouldAlwaysFloat())("mat-form-field-empty",le._control.empty&&!le._shouldAlwaysFloat())("mat-accent","accent"==le.color)("mat-warn","warn"==le.color),y.Q6J("cdkObserveContentDisabled","outline"!=le.appearance)("id",le._labelId)("ngSwitch",le._hasLabel()),y.uIk("for",le._control.id)("aria-owns",le._control.id),y.xp6(2),y.Q6J("ngSwitchCase",!1),y.xp6(1),y.Q6J("ngSwitchCase",!0),y.xp6(1),y.Q6J("ngIf",!le.hideRequiredMarker&&le._control.required&&!le._control.disabled)}}function oe(q,$){1&q&&(y.TgZ(0,"div",24),y.Hsn(1,4),y.qZA())}function ae(q,$){if(1&q&&(y.TgZ(0,"div",25),y._UZ(1,"span",26),y.qZA()),2&q){const le=y.oxw();y.xp6(1),y.ekj("mat-accent","accent"==le.color)("mat-warn","warn"==le.color)}}function b(q,$){if(1&q&&(y.TgZ(0,"div"),y.Hsn(1,5),y.qZA()),2&q){const le=y.oxw();y.Q6J("@transitionMessages",le._subscriptAnimationState)}}function i(q,$){if(1&q&&(y.TgZ(0,"div",30),y._uU(1),y.qZA()),2&q){const le=y.oxw(2);y.Q6J("id",le._hintLabelId),y.xp6(1),y.Oqu(le.hintLabel)}}function a(q,$){if(1&q&&(y.TgZ(0,"div",27),y.YNc(1,i,2,2,"div",28),y.Hsn(2,6),y._UZ(3,"div",29),y.Hsn(4,7),y.qZA()),2&q){const le=y.oxw();y.Q6J("@transitionMessages",le._subscriptAnimationState),y.xp6(1),y.Q6J("ngIf",le.hintLabel)}}const p=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],u=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let _=0;const L=new y.OlP("MatError");let I=(()=>{class q{constructor(le,xe){this.id="mat-error-"+_++,le||xe.nativeElement.setAttribute("aria-live","polite")}}return q.\u0275fac=function(le){return new(le||q)(y.$8M("aria-live"),y.Y36(y.SBq))},q.\u0275dir=y.lG2({type:q,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(le,xe){2&le&&y.uIk("id",xe.id)},inputs:{id:"id"},features:[y._Bn([{provide:L,useExisting:q}])]}),q})();const x={transitionMessages:(0,O.X$)("transitionMessages",[(0,O.SB)("enter",(0,O.oB)({opacity:1,transform:"translateY(0%)"})),(0,O.eR)("void => enter",[(0,O.oB)({opacity:0,transform:"translateY(-5px)"}),(0,O.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let r=(()=>{class q{}return q.\u0275fac=function(le){return new(le||q)},q.\u0275dir=y.lG2({type:q}),q})(),U=0;const ye=new y.OlP("MatHint");let Ce=(()=>{class q{constructor(){this.align="start",this.id="mat-hint-"+U++}}return q.\u0275fac=function(le){return new(le||q)},q.\u0275dir=y.lG2({type:q,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(le,xe){2&le&&(y.uIk("id",xe.id)("align",null),y.ekj("mat-form-field-hint-end","end"===xe.align))},inputs:{align:"align",id:"id"},features:[y._Bn([{provide:ye,useExisting:q}])]}),q})(),Be=(()=>{class q{}return q.\u0275fac=function(le){return new(le||q)},q.\u0275dir=y.lG2({type:q,selectors:[["mat-label"]]}),q})(),ze=(()=>{class q{}return q.\u0275fac=function(le){return new(le||q)},q.\u0275dir=y.lG2({type:q,selectors:[["mat-placeholder"]]}),q})();const Ie=new y.OlP("MatPrefix"),Me=new y.OlP("MatSuffix");let we=(()=>{class q{}return q.\u0275fac=function(le){return new(le||q)},q.\u0275dir=y.lG2({type:q,selectors:[["","matSuffix",""]],features:[y._Bn([{provide:Me,useExisting:q}])]}),q})(),z=0;const Re=(0,C.pj)(class{constructor(q){this._elementRef=q}},"primary"),Ne=new y.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),he=new y.OlP("MatFormField");let Le=(()=>{class q extends Re{constructor(le,xe,Ue,lt,nt,ft,it){super(le),this._changeDetectorRef=xe,this._dir=Ue,this._defaults=lt,this._platform=nt,this._ngZone=ft,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new M.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"!==it,this.appearance=lt&&lt.appearance?lt.appearance:"legacy",this._hideRequiredMarker=!(!lt||null==lt.hideRequiredMarker)&&lt.hideRequiredMarker}get appearance(){return this._appearance}set appearance(le){const xe=this._appearance;this._appearance=le||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&xe!==le&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(le){this._hideRequiredMarker=(0,o.Ig)(le)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(le){this._hintLabel=le,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(le){le!==this._floatLabel&&(this._floatLabel=le||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(le){this._explicitFormFieldControl=le}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const le=this._control;le.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${le.controlType}`),le.stateChanges.pipe((0,s.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),le.ngControl&&le.ngControl.valueChanges&&le.ngControl.valueChanges.pipe((0,D.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,D.R)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,l.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,s.O)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,s.O)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,D.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(le){const xe=this._control?this._control.ngControl:null;return xe&&xe[le]}_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,N.R)(this._label.nativeElement,"transitionend").pipe((0,A.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 le=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&le.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const xe=this._hintChildren?this._hintChildren.find(lt=>"start"===lt.align):null,Ue=this._hintChildren?this._hintChildren.find(lt=>"end"===lt.align):null;xe?le.push(xe.id):this._hintLabel&&le.push(this._hintLabelId),Ue&&le.push(Ue.id)}else this._errorChildren&&le.push(...this._errorChildren.map(xe=>xe.id));this._control.setDescribedByIds(le)}}_validateControlChild(){}updateOutlineGap(){const le=this._label?this._label.nativeElement:null;if(!("outline"===this.appearance&&le&&le.children.length&&le.textContent.trim()&&this._platform.isBrowser))return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let xe=0,Ue=0;const lt=this._connectionContainerRef.nativeElement,nt=lt.querySelectorAll(".mat-form-field-outline-start"),ft=lt.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const it=lt.getBoundingClientRect();if(0===it.width&&0===it.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const rt=this._getStartEnd(it),Mt=le.children,Zt=this._getStartEnd(Mt[0].getBoundingClientRect());let Ft=0;for(let Vt=0;Vt<Mt.length;Vt++)Ft+=Mt[Vt].offsetWidth;xe=Math.abs(Zt-rt)-5,Ue=Ft>0?.75*Ft+10:0}for(let it=0;it<nt.length;it++)nt[it].style.width=`${xe}px`;for(let it=0;it<ft.length;it++)ft[it].style.width=`${Ue}px`;this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}_getStartEnd(le){return this._dir&&"rtl"===this._dir.value?le.right:le.left}_isAttachedToDOM(){const le=this._elementRef.nativeElement;if(le.getRootNode){const xe=le.getRootNode();return xe&&xe!==le}return document.documentElement.contains(le)}}return q.\u0275fac=function(le){return new(le||q)(y.Y36(y.SBq),y.Y36(y.sBO),y.Y36(P.Is,8),y.Y36(Ne,8),y.Y36(w.t4),y.Y36(y.R0b),y.Y36(E.Qb,8))},q.\u0275cmp=y.Xpm({type:q,selectors:[["mat-form-field"]],contentQueries:function(le,xe,Ue){if(1&le&&(y.Suo(Ue,r,5),y.Suo(Ue,r,7),y.Suo(Ue,Be,5),y.Suo(Ue,Be,7),y.Suo(Ue,ze,5),y.Suo(Ue,L,5),y.Suo(Ue,ye,5),y.Suo(Ue,Ie,5),y.Suo(Ue,Me,5)),2&le){let lt;y.iGM(lt=y.CRH())&&(xe._controlNonStatic=lt.first),y.iGM(lt=y.CRH())&&(xe._controlStatic=lt.first),y.iGM(lt=y.CRH())&&(xe._labelChildNonStatic=lt.first),y.iGM(lt=y.CRH())&&(xe._labelChildStatic=lt.first),y.iGM(lt=y.CRH())&&(xe._placeholderChild=lt.first),y.iGM(lt=y.CRH())&&(xe._errorChildren=lt),y.iGM(lt=y.CRH())&&(xe._hintChildren=lt),y.iGM(lt=y.CRH())&&(xe._prefixChildren=lt),y.iGM(lt=y.CRH())&&(xe._suffixChildren=lt)}},viewQuery:function(le,xe){if(1&le&&(y.Gf(Z,7),y.Gf(j,5),y.Gf(W,5)),2&le){let Ue;y.iGM(Ue=y.CRH())&&(xe._connectionContainerRef=Ue.first),y.iGM(Ue=y.CRH())&&(xe._inputContainerRef=Ue.first),y.iGM(Ue=y.CRH())&&(xe._label=Ue.first)}},hostAttrs:[1,"mat-form-field"],hostVars:40,hostBindings:function(le,xe){2&le&&y.ekj("mat-form-field-appearance-standard","standard"==xe.appearance)("mat-form-field-appearance-fill","fill"==xe.appearance)("mat-form-field-appearance-outline","outline"==xe.appearance)("mat-form-field-appearance-legacy","legacy"==xe.appearance)("mat-form-field-invalid",xe._control.errorState)("mat-form-field-can-float",xe._canLabelFloat())("mat-form-field-should-float",xe._shouldLabelFloat())("mat-form-field-has-label",xe._hasFloatingLabel())("mat-form-field-hide-placeholder",xe._hideControlPlaceholder())("mat-form-field-disabled",xe._control.disabled)("mat-form-field-autofilled",xe._control.autofilled)("mat-focused",xe._control.focused)("ng-untouched",xe._shouldForward("untouched"))("ng-touched",xe._shouldForward("touched"))("ng-pristine",xe._shouldForward("pristine"))("ng-dirty",xe._shouldForward("dirty"))("ng-valid",xe._shouldForward("valid"))("ng-invalid",xe._shouldForward("invalid"))("ng-pending",xe._shouldForward("pending"))("_mat-animation-noopable",!xe._animationsEnabled)},inputs:{color:"color",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel",floatLabel:"floatLabel"},exportAs:["matFormField"],features:[y._Bn([{provide:he,useExisting:q}]),y.qOj],ngContentSelectors:u,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(le,xe){1&le&&(y.F$t(p),y.TgZ(0,"div",0),y.TgZ(1,"div",1,2),y.NdJ("click",function(lt){return xe._control.onContainerClick&&xe._control.onContainerClick(lt)}),y.YNc(3,ie,9,0,"ng-container",3),y.YNc(4,ee,2,1,"div",4),y.TgZ(5,"div",5,6),y.Hsn(7),y.TgZ(8,"span",7),y.YNc(9,de,5,16,"label",8),y.qZA(),y.qZA(),y.YNc(10,oe,2,0,"div",9),y.qZA(),y.YNc(11,ae,2,4,"div",10),y.TgZ(12,"div",11),y.YNc(13,b,2,1,"div",12),y.YNc(14,a,5,2,"div",13),y.qZA(),y.qZA()),2&le&&(y.xp6(3),y.Q6J("ngIf","outline"==xe.appearance),y.xp6(1),y.Q6J("ngIf",xe._prefixChildren.length),y.xp6(5),y.Q6J("ngIf",xe._hasFloatingLabel()),y.xp6(1),y.Q6J("ngIf",xe._suffixChildren.length),y.xp6(1),y.Q6J("ngIf","outline"!=xe.appearance),y.xp6(1),y.Q6J("ngSwitch",xe._getDisplayedMessages()),y.xp6(1),y.Q6J("ngSwitchCase","error"),y.xp6(1),y.Q6J("ngSwitchCase","hint"))},directives:[t.O5,t.RF,t.n9,e.wD],styles:[".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.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-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;-moz-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;-moz-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;-moz-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;-moz-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}.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}.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:[x.transitionMessages]},changeDetection:0}),q})(),ke=(()=>{class q{}return q.\u0275fac=function(le){return new(le||q)},q.\u0275mod=y.oAB({type:q}),q.\u0275inj=y.cJS({imports:[[t.ez,C.BQ,e.Q8],C.BQ]}),q})()},3954:(Ve,Q,m)=>{"use strict";m.d(Q,{Il:()=>oe,N6:()=>ae,DX:()=>O});var e=m(5e3),t=m(508),y=m(3191),C=m(226);const o=["*"];class s{constructor(){this.columnIndex=0,this.rowIndex=0}get rowCount(){return this.rowIndex+1}get rowspan(){const a=Math.max(...this.tracker);return a>1?this.rowCount+a-1:this.rowCount}update(a,p){this.columnIndex=0,this.rowIndex=0,this.tracker=new Array(a),this.tracker.fill(0,0,this.tracker.length),this.positions=p.map(u=>this._trackTile(u))}_trackTile(a){const p=this._findMatchingGap(a.colspan);return this._markTilePosition(p,a),this.columnIndex=p+a.colspan,new D(this.rowIndex,p)}_findMatchingGap(a){let p=-1,u=-1;do{this.columnIndex+a>this.tracker.length?(this._nextRow(),p=this.tracker.indexOf(0,this.columnIndex),u=this._findGapEndIndex(p)):(p=this.tracker.indexOf(0,this.columnIndex),-1!=p?(u=this._findGapEndIndex(p),this.columnIndex=p+1):(this._nextRow(),p=this.tracker.indexOf(0,this.columnIndex),u=this._findGapEndIndex(p)))}while(u-p<a||0==u);return Math.max(p,0)}_nextRow(){this.columnIndex=0,this.rowIndex++;for(let a=0;a<this.tracker.length;a++)this.tracker[a]=Math.max(0,this.tracker[a]-1)}_findGapEndIndex(a){for(let p=a+1;p<this.tracker.length;p++)if(0!=this.tracker[p])return p;return this.tracker.length}_markTilePosition(a,p){for(let u=0;u<p.colspan;u++)this.tracker[a+u]=p.rowspan}}class D{constructor(a,p){this.row=a,this.col=p}}const A=new e.OlP("MAT_GRID_LIST");let O=(()=>{class i{constructor(p,u){this._element=p,this._gridList=u,this._rowspan=1,this._colspan=1}get rowspan(){return this._rowspan}set rowspan(p){this._rowspan=Math.round((0,y.su)(p))}get colspan(){return this._colspan}set colspan(p){this._colspan=Math.round((0,y.su)(p))}_setStyle(p,u){this._element.nativeElement.style[p]=u}}return i.\u0275fac=function(p){return new(p||i)(e.Y36(e.SBq),e.Y36(A,8))},i.\u0275cmp=e.Xpm({type:i,selectors:[["mat-grid-tile"]],hostAttrs:[1,"mat-grid-tile"],hostVars:2,hostBindings:function(p,u){2&p&&e.uIk("rowspan",u.rowspan)("colspan",u.colspan)},inputs:{rowspan:"rowspan",colspan:"colspan"},exportAs:["matGridTile"],ngContentSelectors:o,decls:2,vars:0,consts:[[1,"mat-grid-tile-content"]],template:function(p,u){1&p&&(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}),i})();const j=/^-?\d+((\.\d+)?[A-Za-z%$]?)+$/;class W{constructor(){this._rows=0,this._rowspan=0}init(a,p,u,_){this._gutterSize=re(a),this._rows=p.rowCount,this._rowspan=p.rowspan,this._cols=u,this._direction=_}getBaseTileSize(a,p){return`(${a}% - (${this._gutterSize} * ${p}))`}getTilePosition(a,p){return 0===p?"0":ce(`(${a} + ${this._gutterSize}) * ${p}`)}getTileSize(a,p){return`(${a} * ${p}) + (${p-1} * ${this._gutterSize})`}setStyle(a,p,u){let _=100/this._cols,L=(this._cols-1)/this._cols;this.setColStyles(a,u,_,L),this.setRowStyles(a,p,_,L)}setColStyles(a,p,u,_){let L=this.getBaseTileSize(u,_);a._setStyle("rtl"===this._direction?"right":"left",this.getTilePosition(L,p)),a._setStyle("width",ce(this.getTileSize(L,a.colspan)))}getGutterSpan(){return`${this._gutterSize} * (${this._rowspan} - 1)`}getTileSpan(a){return`${this._rowspan} * ${this.getTileSize(a,1)}`}getComputedHeight(){return null}}class ie extends W{constructor(a){super(),this.fixedRowHeight=a}init(a,p,u,_){super.init(a,p,u,_),this.fixedRowHeight=re(this.fixedRowHeight),j.test(this.fixedRowHeight)}setRowStyles(a,p){a._setStyle("top",this.getTilePosition(this.fixedRowHeight,p)),a._setStyle("height",ce(this.getTileSize(this.fixedRowHeight,a.rowspan)))}getComputedHeight(){return["height",ce(`${this.getTileSpan(this.fixedRowHeight)} + ${this.getGutterSpan()}`)]}reset(a){a._setListStyle(["height",null]),a._tiles&&a._tiles.forEach(p=>{p._setStyle("top",null),p._setStyle("height",null)})}}class ee extends W{constructor(a){super(),this._parseRatio(a)}setRowStyles(a,p,u,_){this.baseTileHeight=this.getBaseTileSize(u/this.rowHeightRatio,_),a._setStyle("marginTop",this.getTilePosition(this.baseTileHeight,p)),a._setStyle("paddingTop",ce(this.getTileSize(this.baseTileHeight,a.rowspan)))}getComputedHeight(){return["paddingBottom",ce(`${this.getTileSpan(this.baseTileHeight)} + ${this.getGutterSpan()}`)]}reset(a){a._setListStyle(["paddingBottom",null]),a._tiles.forEach(p=>{p._setStyle("marginTop",null),p._setStyle("paddingTop",null)})}_parseRatio(a){const p=a.split(":");this.rowHeightRatio=parseFloat(p[0])/parseFloat(p[1])}}class _e extends W{setRowStyles(a,p){let L=this.getBaseTileSize(100/this._rowspan,(this._rows-1)/this._rows);a._setStyle("top",this.getTilePosition(L,p)),a._setStyle("height",ce(this.getTileSize(L,a.rowspan)))}reset(a){a._tiles&&a._tiles.forEach(p=>{p._setStyle("top",null),p._setStyle("height",null)})}}function ce(i){return`calc(${i})`}function re(i){return i.match(/([A-Za-z%]+)$/)?i:`${i}px`}let oe=(()=>{class i{constructor(p,u){this._element=p,this._dir=u,this._gutter="1px"}get cols(){return this._cols}set cols(p){this._cols=Math.max(1,Math.round((0,y.su)(p)))}get gutterSize(){return this._gutter}set gutterSize(p){this._gutter=`${null==p?"":p}`}get rowHeight(){return this._rowHeight}set rowHeight(p){const u=`${null==p?"":p}`;u!==this._rowHeight&&(this._rowHeight=u,this._setTileStyler(this._rowHeight))}ngOnInit(){this._checkCols(),this._checkRowHeight()}ngAfterContentChecked(){this._layoutTiles()}_checkCols(){}_checkRowHeight(){this._rowHeight||this._setTileStyler("1:1")}_setTileStyler(p){this._tileStyler&&this._tileStyler.reset(this),this._tileStyler="fit"===p?new _e:p&&p.indexOf(":")>-1?new ee(p):new ie(p)}_layoutTiles(){this._tileCoordinator||(this._tileCoordinator=new s);const p=this._tileCoordinator,u=this._tiles.filter(L=>!L._gridList||L._gridList===this),_=this._dir?this._dir.value:"ltr";this._tileCoordinator.update(this.cols,u),this._tileStyler.init(this.gutterSize,p,this.cols,_),u.forEach((L,I)=>{const x=p.positions[I];this._tileStyler.setStyle(L,x.row,x.col)}),this._setListStyle(this._tileStyler.getComputedHeight())}_setListStyle(p){p&&(this._element.nativeElement.style[p[0]]=p[1])}}return i.\u0275fac=function(p){return new(p||i)(e.Y36(e.SBq),e.Y36(C.Is,8))},i.\u0275cmp=e.Xpm({type:i,selectors:[["mat-grid-list"]],contentQueries:function(p,u,_){if(1&p&&e.Suo(_,O,5),2&p){let L;e.iGM(L=e.CRH())&&(u._tiles=L)}},hostAttrs:[1,"mat-grid-list"],hostVars:1,hostBindings:function(p,u){2&p&&e.uIk("cols",u.cols)},inputs:{cols:"cols",gutterSize:"gutterSize",rowHeight:"rowHeight"},exportAs:["matGridList"],features:[e._Bn([{provide:A,useExisting:i}])],ngContentSelectors:o,decls:2,vars:0,template:function(p,u){1&p&&(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}),i})(),ae=(()=>{class i{}return i.\u0275fac=function(p){return new(p||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[[t.uc,t.BQ],t.uc,t.BQ]}),i})()},5245:(Ve,Q,m)=>{"use strict";m.d(Q,{Hw:()=>G,Ps:()=>F});var e=m(5e3),t=m(508),y=m(3191),C=m(9808),o=m(9646),M=m(2843),l=m(4128),N=m(727),s=m(8505),D=m(4004),A=m(262),O=m(8746),E=m(3099),P=m(5698),w=m(8138),Z=m(2313);const j=["*"];let W;function ee(U){var ye;return(null===(ye=function ie(){if(void 0===W&&(W=null,"undefined"!=typeof window)){const U=window;void 0!==U.trustedTypes&&(W=U.trustedTypes.createPolicy("angular#components",{createHTML:ye=>ye}))}return W}())||void 0===ye?void 0:ye.createHTML(U))||U}function _e(U){return Error(`Unable to find icon with the name "${U}"`)}function re(U){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${U}".`)}function de(U){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${U}".`)}class oe{constructor(ye,Ce,Be){this.url=ye,this.svgText=Ce,this.options=Be}}let ae=(()=>{class U{constructor(Ce,Be,ze,Ie){this._httpClient=Ce,this._sanitizer=Be,this._errorHandler=Ie,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=ze}addSvgIcon(Ce,Be,ze){return this.addSvgIconInNamespace("",Ce,Be,ze)}addSvgIconLiteral(Ce,Be,ze){return this.addSvgIconLiteralInNamespace("",Ce,Be,ze)}addSvgIconInNamespace(Ce,Be,ze,Ie){return this._addSvgIconConfig(Ce,Be,new oe(ze,null,Ie))}addSvgIconResolver(Ce){return this._resolvers.push(Ce),this}addSvgIconLiteralInNamespace(Ce,Be,ze,Ie){const K=this._sanitizer.sanitize(e.q3G.HTML,ze);if(!K)throw de(ze);const Me=ee(K);return this._addSvgIconConfig(Ce,Be,new oe("",Me,Ie))}addSvgIconSet(Ce,Be){return this.addSvgIconSetInNamespace("",Ce,Be)}addSvgIconSetLiteral(Ce,Be){return this.addSvgIconSetLiteralInNamespace("",Ce,Be)}addSvgIconSetInNamespace(Ce,Be,ze){return this._addSvgIconSetConfig(Ce,new oe(Be,null,ze))}addSvgIconSetLiteralInNamespace(Ce,Be,ze){const Ie=this._sanitizer.sanitize(e.q3G.HTML,Be);if(!Ie)throw de(Be);const K=ee(Ie);return this._addSvgIconSetConfig(Ce,new oe("",K,ze))}registerFontClassAlias(Ce,Be=Ce){return this._fontCssClassesByAlias.set(Ce,Be),this}classNameForFontAlias(Ce){return this._fontCssClassesByAlias.get(Ce)||Ce}setDefaultFontSetClass(Ce){return this._defaultFontSetClass=Ce,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(Ce){const Be=this._sanitizer.sanitize(e.q3G.RESOURCE_URL,Ce);if(!Be)throw re(Ce);const ze=this._cachedIconsByUrl.get(Be);return ze?(0,o.of)(a(ze)):this._loadSvgIconFromConfig(new oe(Ce,null)).pipe((0,s.b)(Ie=>this._cachedIconsByUrl.set(Be,Ie)),(0,D.U)(Ie=>a(Ie)))}getNamedSvgIcon(Ce,Be=""){const ze=p(Be,Ce);let Ie=this._svgIconConfigs.get(ze);if(Ie)return this._getSvgFromConfig(Ie);if(Ie=this._getIconConfigFromResolvers(Be,Ce),Ie)return this._svgIconConfigs.set(ze,Ie),this._getSvgFromConfig(Ie);const K=this._iconSetConfigs.get(Be);return K?this._getSvgFromIconSetConfigs(Ce,K):(0,M._)(_e(ze))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(Ce){return Ce.svgText?(0,o.of)(a(this._svgElementFromConfig(Ce))):this._loadSvgIconFromConfig(Ce).pipe((0,D.U)(Be=>a(Be)))}_getSvgFromIconSetConfigs(Ce,Be){const ze=this._extractIconWithNameFromAnySet(Ce,Be);if(ze)return(0,o.of)(ze);const Ie=Be.filter(K=>!K.svgText).map(K=>this._loadSvgIconSetFromConfig(K).pipe((0,A.K)(Me=>{const z=`Loading icon set URL: ${this._sanitizer.sanitize(e.q3G.RESOURCE_URL,K.url)} failed: ${Me.message}`;return this._errorHandler.handleError(new Error(z)),(0,o.of)(null)})));return(0,l.D)(Ie).pipe((0,D.U)(()=>{const K=this._extractIconWithNameFromAnySet(Ce,Be);if(!K)throw _e(Ce);return K}))}_extractIconWithNameFromAnySet(Ce,Be){for(let ze=Be.length-1;ze>=0;ze--){const Ie=Be[ze];if(Ie.svgText&&Ie.svgText.toString().indexOf(Ce)>-1){const K=this._svgElementFromConfig(Ie),Me=this._extractSvgIconFromSet(K,Ce,Ie.options);if(Me)return Me}}return null}_loadSvgIconFromConfig(Ce){return this._fetchIcon(Ce).pipe((0,s.b)(Be=>Ce.svgText=Be),(0,D.U)(()=>this._svgElementFromConfig(Ce)))}_loadSvgIconSetFromConfig(Ce){return Ce.svgText?(0,o.of)(null):this._fetchIcon(Ce).pipe((0,s.b)(Be=>Ce.svgText=Be))}_extractSvgIconFromSet(Ce,Be,ze){const Ie=Ce.querySelector(`[id="${Be}"]`);if(!Ie)return null;const K=Ie.cloneNode(!0);if(K.removeAttribute("id"),"svg"===K.nodeName.toLowerCase())return this._setSvgAttributes(K,ze);if("symbol"===K.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(K),ze);const Me=this._svgElementFromString(ee("<svg></svg>"));return Me.appendChild(K),this._setSvgAttributes(Me,ze)}_svgElementFromString(Ce){const Be=this._document.createElement("DIV");Be.innerHTML=Ce;const ze=Be.querySelector("svg");if(!ze)throw Error("<svg> tag not found");return ze}_toSvgElement(Ce){const Be=this._svgElementFromString(ee("<svg></svg>")),ze=Ce.attributes;for(let Ie=0;Ie<ze.length;Ie++){const{name:K,value:Me}=ze[Ie];"id"!==K&&Be.setAttribute(K,Me)}for(let Ie=0;Ie<Ce.childNodes.length;Ie++)Ce.childNodes[Ie].nodeType===this._document.ELEMENT_NODE&&Be.appendChild(Ce.childNodes[Ie].cloneNode(!0));return Be}_setSvgAttributes(Ce,Be){return Ce.setAttribute("fit",""),Ce.setAttribute("height","100%"),Ce.setAttribute("width","100%"),Ce.setAttribute("preserveAspectRatio","xMidYMid meet"),Ce.setAttribute("focusable","false"),Be&&Be.viewBox&&Ce.setAttribute("viewBox",Be.viewBox),Ce}_fetchIcon(Ce){var Be;const{url:ze,options:Ie}=Ce,K=null!==(Be=null==Ie?void 0:Ie.withCredentials)&&void 0!==Be&&Be;if(!this._httpClient)throw function ce(){return Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.")}();if(null==ze)throw Error(`Cannot fetch icon from URL "${ze}".`);const Me=this._sanitizer.sanitize(e.q3G.RESOURCE_URL,ze);if(!Me)throw re(ze);const we=this._inProgressUrlFetches.get(Me);if(we)return we;const z=this._httpClient.get(Me,{responseType:"text",withCredentials:K}).pipe((0,D.U)(Ge=>ee(Ge)),(0,O.x)(()=>this._inProgressUrlFetches.delete(Me)),(0,E.B)());return this._inProgressUrlFetches.set(Me,z),z}_addSvgIconConfig(Ce,Be,ze){return this._svgIconConfigs.set(p(Ce,Be),ze),this}_addSvgIconSetConfig(Ce,Be){const ze=this._iconSetConfigs.get(Ce);return ze?ze.push(Be):this._iconSetConfigs.set(Ce,[Be]),this}_svgElementFromConfig(Ce){if(!Ce.svgElement){const Be=this._svgElementFromString(Ce.svgText);this._setSvgAttributes(Be,Ce.options),Ce.svgElement=Be}return Ce.svgElement}_getIconConfigFromResolvers(Ce,Be){for(let ze=0;ze<this._resolvers.length;ze++){const Ie=this._resolvers[ze](Be,Ce);if(Ie)return u(Ie)?new oe(Ie.url,null,Ie.options):new oe(Ie,null)}}}return U.\u0275fac=function(Ce){return new(Ce||U)(e.LFG(w.eN,8),e.LFG(Z.H7),e.LFG(C.K0,8),e.LFG(e.qLn))},U.\u0275prov=e.Yz7({token:U,factory:U.\u0275fac,providedIn:"root"}),U})();function a(U){return U.cloneNode(!0)}function p(U,ye){return U+":"+ye}function u(U){return!(!U.url||!U.options)}const _=(0,t.pj)(class{constructor(U){this._elementRef=U}}),L=new e.OlP("mat-icon-location",{providedIn:"root",factory:function I(){const U=(0,e.f3M)(C.K0),ye=U?U.location:null;return{getPathname:()=>ye?ye.pathname+ye.search:""}}}),x=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],r=x.map(U=>`[${U}]`).join(", "),v=/^url\(['"]?#(.*?)['"]?\)$/;let G=(()=>{class U extends _{constructor(Ce,Be,ze,Ie,K){super(Ce),this._iconRegistry=Be,this._location=Ie,this._errorHandler=K,this._inline=!1,this._currentIconFetch=N.w0.EMPTY,ze||Ce.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(Ce){this._inline=(0,y.Ig)(Ce)}get svgIcon(){return this._svgIcon}set svgIcon(Ce){Ce!==this._svgIcon&&(Ce?this._updateSvgIcon(Ce):this._svgIcon&&this._clearSvgElement(),this._svgIcon=Ce)}get fontSet(){return this._fontSet}set fontSet(Ce){const Be=this._cleanupFontValue(Ce);Be!==this._fontSet&&(this._fontSet=Be,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(Ce){const Be=this._cleanupFontValue(Ce);Be!==this._fontIcon&&(this._fontIcon=Be,this._updateFontIconClasses())}_splitIconName(Ce){if(!Ce)return["",""];const Be=Ce.split(":");switch(Be.length){case 1:return["",Be[0]];case 2:return Be;default:throw Error(`Invalid icon name: "${Ce}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const Ce=this._elementsWithExternalReferences;if(Ce&&Ce.size){const Be=this._location.getPathname();Be!==this._previousPath&&(this._previousPath=Be,this._prependPathToReferences(Be))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(Ce){this._clearSvgElement();const Be=Ce.querySelectorAll("style");for(let Ie=0;Ie<Be.length;Ie++)Be[Ie].textContent+=" ";const ze=this._location.getPathname();this._previousPath=ze,this._cacheChildrenWithExternalReferences(Ce),this._prependPathToReferences(ze),this._elementRef.nativeElement.appendChild(Ce)}_clearSvgElement(){const Ce=this._elementRef.nativeElement;let Be=Ce.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();Be--;){const ze=Ce.childNodes[Be];(1!==ze.nodeType||"svg"===ze.nodeName.toLowerCase())&&ze.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const Ce=this._elementRef.nativeElement,Be=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();Be!=this._previousFontSetClass&&(this._previousFontSetClass&&Ce.classList.remove(this._previousFontSetClass),Be&&Ce.classList.add(Be),this._previousFontSetClass=Be),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&Ce.classList.remove(this._previousFontIconClass),this.fontIcon&&Ce.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(Ce){return"string"==typeof Ce?Ce.trim().split(" ")[0]:Ce}_prependPathToReferences(Ce){const Be=this._elementsWithExternalReferences;Be&&Be.forEach((ze,Ie)=>{ze.forEach(K=>{Ie.setAttribute(K.name,`url('${Ce}#${K.value}')`)})})}_cacheChildrenWithExternalReferences(Ce){const Be=Ce.querySelectorAll(r),ze=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let Ie=0;Ie<Be.length;Ie++)x.forEach(K=>{const Me=Be[Ie],we=Me.getAttribute(K),z=we?we.match(v):null;if(z){let Ge=ze.get(Me);Ge||(Ge=[],ze.set(Me,Ge)),Ge.push({name:K,value:z[1]})}})}_updateSvgIcon(Ce){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),Ce){const[Be,ze]=this._splitIconName(Ce);Be&&(this._svgNamespace=Be),ze&&(this._svgName=ze),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(ze,Be).pipe((0,P.q)(1)).subscribe(Ie=>this._setSvgElement(Ie),Ie=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${Be}:${ze}! ${Ie.message}`))})}}}return U.\u0275fac=function(Ce){return new(Ce||U)(e.Y36(e.SBq),e.Y36(ae),e.$8M("aria-hidden"),e.Y36(L),e.Y36(e.qLn))},U.\u0275cmp=e.Xpm({type:U,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(Ce,Be){2&Ce&&(e.uIk("data-mat-icon-type",Be._usingFontIcon()?"font":"svg")("data-mat-icon-name",Be._svgName||Be.fontIcon)("data-mat-icon-namespace",Be._svgNamespace||Be.fontSet),e.ekj("mat-icon-inline",Be.inline)("mat-icon-no-color","primary"!==Be.color&&"accent"!==Be.color&&"warn"!==Be.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[e.qOj],ngContentSelectors:j,decls:1,vars:0,template:function(Ce,Be){1&Ce&&(e.F$t(),e.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;-moz-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}),U})(),F=(()=>{class U{}return U.\u0275fac=function(Ce){return new(Ce||U)},U.\u0275mod=e.oAB({type:U}),U.\u0275inj=e.cJS({imports:[[t.BQ],t.BQ]}),U})()},7531:(Ve,Q,m)=>{"use strict";m.d(Q,{Jk:()=>w,Nt:()=>ie,c:()=>ee});var e=m(3191),t=m(925),y=m(5e3),C=m(3075),o=m(508),M=m(7322),l=m(7579),N=m(515);const s=(0,t.i$)({passive:!0});let D=(()=>{class _e{constructor(re,de){this._platform=re,this._ngZone=de,this._monitoredElements=new Map}monitor(re){if(!this._platform.isBrowser)return N.E;const de=(0,e.fI)(re),oe=this._monitoredElements.get(de);if(oe)return oe.subject;const ae=new l.x,b="cdk-text-field-autofilled",i=a=>{"cdk-text-field-autofill-start"!==a.animationName||de.classList.contains(b)?"cdk-text-field-autofill-end"===a.animationName&&de.classList.contains(b)&&(de.classList.remove(b),this._ngZone.run(()=>ae.next({target:a.target,isAutofilled:!1}))):(de.classList.add(b),this._ngZone.run(()=>ae.next({target:a.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{de.addEventListener("animationstart",i,s),de.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(de,{subject:ae,unlisten:()=>{de.removeEventListener("animationstart",i,s)}}),ae}stopMonitoring(re){const de=(0,e.fI)(re),oe=this._monitoredElements.get(de);oe&&(oe.unlisten(),oe.subject.complete(),de.classList.remove("cdk-text-field-autofill-monitored"),de.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(de))}ngOnDestroy(){this._monitoredElements.forEach((re,de)=>this.stopMonitoring(de))}}return _e.\u0275fac=function(re){return new(re||_e)(y.LFG(t.t4),y.LFG(y.R0b))},_e.\u0275prov=y.Yz7({token:_e,factory:_e.\u0275fac,providedIn:"root"}),_e})(),E=(()=>{class _e{}return _e.\u0275fac=function(re){return new(re||_e)},_e.\u0275mod=y.oAB({type:_e}),_e.\u0275inj=y.cJS({imports:[[t.ud]]}),_e})();const w=new y.OlP("MAT_INPUT_VALUE_ACCESSOR"),Z=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let j=0;const W=(0,o.FD)(class{constructor(_e,ce,re,de){this._defaultErrorStateMatcher=_e,this._parentForm=ce,this._parentFormGroup=re,this.ngControl=de}});let ie=(()=>{class _e extends W{constructor(re,de,oe,ae,b,i,a,p,u,_){super(i,ae,b,oe),this._elementRef=re,this._platform=de,this._autofillMonitor=p,this._formField=_,this._uid="mat-input-"+j++,this.focused=!1,this.stateChanges=new l.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(x=>(0,t.qK)().has(x));const L=this._elementRef.nativeElement,I=L.nodeName.toLowerCase();this._inputValueAccessor=a||L,this._previousNativeValue=this.value,this.id=this.id,de.IOS&&u.runOutsideAngular(()=>{re.nativeElement.addEventListener("keyup",x=>{const r=x.target;!r.value&&0===r.selectionStart&&0===r.selectionEnd&&(r.setSelectionRange(1,1),r.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===I,this._isTextarea="textarea"===I,this._isInFormField=!!_,this._isNativeSelect&&(this.controlType=L.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(re){this._disabled=(0,e.Ig)(re),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(re){this._id=re||this._uid}get required(){var re,de,oe,ae;return null!==(ae=null!==(re=this._required)&&void 0!==re?re:null===(oe=null===(de=this.ngControl)||void 0===de?void 0:de.control)||void 0===oe?void 0:oe.hasValidator(C.kI.required))&&void 0!==ae&&ae}set required(re){this._required=(0,e.Ig)(re)}get type(){return this._type}set type(re){this._type=re||"text",this._validateType(),!this._isTextarea&&(0,t.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(re){re!==this.value&&(this._inputValueAccessor.value=re,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(re){this._readonly=(0,e.Ig)(re)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(re=>{this.autofilled=re.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(re){this._elementRef.nativeElement.focus(re)}_focusChanged(re){re!==this.focused&&(this.focused=re,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var re,de;const oe=(null===(de=null===(re=this._formField)||void 0===re?void 0:re._hideControlPlaceholder)||void 0===de?void 0:de.call(re))?null:this.placeholder;if(oe!==this._previousPlaceholder){const ae=this._elementRef.nativeElement;this._previousPlaceholder=oe,oe?ae.setAttribute("placeholder",oe):ae.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const re=this._elementRef.nativeElement.value;this._previousNativeValue!==re&&(this._previousNativeValue=re,this.stateChanges.next())}_validateType(){Z.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let re=this._elementRef.nativeElement.validity;return re&&re.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const re=this._elementRef.nativeElement,de=re.options[0];return this.focused||re.multiple||!this.empty||!!(re.selectedIndex>-1&&de&&de.label)}return this.focused||!this.empty}setDescribedByIds(re){re.length?this._elementRef.nativeElement.setAttribute("aria-describedby",re.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const re=this._elementRef.nativeElement;return this._isNativeSelect&&(re.multiple||re.size>1)}}return _e.\u0275fac=function(re){return new(re||_e)(y.Y36(y.SBq),y.Y36(t.t4),y.Y36(C.a5,10),y.Y36(C.F,8),y.Y36(C.sg,8),y.Y36(o.rD),y.Y36(w,10),y.Y36(D),y.Y36(y.R0b),y.Y36(M.G_,8))},_e.\u0275dir=y.lG2({type:_e,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:11,hostBindings:function(re,de){1&re&&y.NdJ("focus",function(){return de._focusChanged(!0)})("blur",function(){return de._focusChanged(!1)})("input",function(){return de._onInput()}),2&re&&(y.Ikx("disabled",de.disabled)("required",de.required),y.uIk("id",de.id)("data-placeholder",de.placeholder)("readonly",de.readonly&&!de._isNativeSelect||null)("aria-invalid",de.empty&&de.required?null:de.errorState)("aria-required",de.required),y.ekj("mat-input-server",de._isServer)("mat-native-select-inline",de._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[y._Bn([{provide:M.Eo,useExisting:_e}]),y.qOj,y.TTD]}),_e})(),ee=(()=>{class _e{}return _e.\u0275fac=function(re){return new(re||_e)},_e.\u0275mod=y.oAB({type:_e}),_e.\u0275inj=y.cJS({providers:[o.rD],imports:[[E,M.lN,o.BQ],E,M.lN]}),_e})()},4623:(Ve,Q,m)=>{"use strict";m.d(Q,{i$:()=>ae,Tg:()=>p,ie:()=>v});var e=m(9808),t=m(5e3),y=m(508),C=m(3191),o=m(7579),M=m(2722),O=(m(8675),m(5664),m(449),m(1159),m(3075),m(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]","*"],_e=(0,y.Id)((0,y.Kr)(class{})),ce=(0,y.Kr)(class{}),re=new t.OlP("MatList"),de=new t.OlP("MatNavList");let ae=(()=>{class G extends _e{constructor(U){super(),this._elementRef=U,this._stateChanges=new o.x,"action-list"===this._getListType()&&U.nativeElement.classList.add("mat-action-list")}_getListType(){const U=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===U?"list":"mat-action-list"===U?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return G.\u0275fac=function(U){return new(U||G)(t.Y36(t.SBq))},G.\u0275cmp=t.Xpm({type:G,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[t._Bn([{provide:re,useExisting:G}]),t.qOj,t.TTD],ngContentSelectors:E,decls:1,vars:0,template:function(U,ye){1&U&&(t.F$t(),t.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.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{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{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 button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}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}),G})(),b=(()=>{class G{}return G.\u0275fac=function(U){return new(U||G)},G.\u0275dir=t.lG2({type:G,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),G})(),i=(()=>{class G{}return G.\u0275fac=function(U){return new(U||G)},G.\u0275dir=t.lG2({type:G,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),G})(),p=(()=>{class G extends ce{constructor(U,ye,Ce,Be){super(),this._element=U,this._isInteractiveList=!1,this._destroyed=new o.x,this._disabled=!1,this._isInteractiveList=!!(Ce||Be&&"action-list"===Be._getListType()),this._list=Ce||Be;const ze=this._getHostElement();"button"===ze.nodeName.toLowerCase()&&!ze.hasAttribute("type")&&ze.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe((0,M.R)(this._destroyed)).subscribe(()=>{ye.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(U){this._disabled=(0,C.Ig)(U)}ngAfterContentInit(){(0,y.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 G.\u0275fac=function(U){return new(U||G)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(de,8),t.Y36(re,8))},G.\u0275cmp=t.Xpm({type:G,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(U,ye,Ce){if(1&U&&(t.Suo(Ce,b,5),t.Suo(Ce,i,5),t.Suo(Ce,y.X2,5)),2&U){let Be;t.iGM(Be=t.CRH())&&(ye._avatar=Be.first),t.iGM(Be=t.CRH())&&(ye._icon=Be.first),t.iGM(Be=t.CRH())&&(ye._lines=Be)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(U,ye){2&U&&t.ekj("mat-list-item-disabled",ye.disabled)("mat-list-item-avatar",ye._avatar||ye._icon)("mat-list-item-with-avatar",ye._avatar||ye._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[t.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(U,ye){1&U&&(t.F$t(w),t.TgZ(0,"div",0),t._UZ(1,"div",1),t.Hsn(2),t.TgZ(3,"div",2),t.Hsn(4,1),t.qZA(),t.Hsn(5,2),t.qZA()),2&U&&(t.xp6(1),t.Q6J("matRippleTrigger",ye._getHostElement())("matRippleDisabled",ye._isRippleDisabled()))},directives:[y.wG],encapsulation:2,changeDetection:0}),G})(),v=(()=>{class G{}return G.\u0275fac=function(U){return new(U||G)},G.\u0275mod=t.oAB({type:G}),G.\u0275inj=t.cJS({imports:[[y.uc,y.si,y.BQ,y.us,e.ez],y.uc,y.BQ,y.us,O.t]}),G})()},2181:(Ve,Q,m)=>{"use strict";m.d(Q,{VK:()=>Ie,OP:()=>U,Tx:()=>Ne,p6:()=>Re});var e=m(5664),t=m(3191),y=m(1159),C=m(5e3),o=m(7579),M=m(727),l=m(6451),N=m(9646),s=m(3101),D=m(8675),A=m(3900),O=m(5698),E=m(9300),P=m(2722),w=m(4086),Z=m(1777),j=m(7429),W=m(9808),ie=m(508),ee=m(9776),_e=m(925),ce=m(226),re=m(5303);const de=["mat-menu-item",""];function oe(he,Le){1&he&&(C.O4$(),C.TgZ(0,"svg",2),C._UZ(1,"polygon",3),C.qZA())}const ae=["*"];function b(he,Le){if(1&he){const ke=C.EpF();C.TgZ(0,"div",0),C.NdJ("keydown",function($){return C.CHM(ke),C.oxw()._handleKeydown($)})("click",function(){return C.CHM(ke),C.oxw().closed.emit("click")})("@transformMenu.start",function($){return C.CHM(ke),C.oxw()._onAnimationStart($)})("@transformMenu.done",function($){return C.CHM(ke),C.oxw()._onAnimationDone($)}),C.TgZ(1,"div",1),C.Hsn(2),C.qZA(),C.qZA()}if(2&he){const ke=C.oxw();C.Q6J("id",ke.panelId)("ngClass",ke._classList)("@transformMenu",ke._panelAnimationState),C.uIk("aria-label",ke.ariaLabel||null)("aria-labelledby",ke.ariaLabelledby||null)("aria-describedby",ke.ariaDescribedby||null)}}const i={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)")])])},u=new C.OlP("MatMenuContent"),G=new C.OlP("MAT_MENU_PANEL"),F=(0,ie.Kr)((0,ie.Id)(class{}));let U=(()=>{class he extends F{constructor(ke,q,$,le,xe){super(),this._elementRef=ke,this._focusMonitor=$,this._parentMenu=le,this._changeDetectorRef=xe,this.role="menuitem",this._hovered=new o.x,this._focused=new o.x,this._highlighted=!1,this._triggersSubmenu=!1,le&&le.addItem&&le.addItem(this)}focus(ke,q){this._focusMonitor&&ke?this._focusMonitor.focusVia(this._getHostElement(),ke,q):this._getHostElement().focus(q),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(ke){this.disabled&&(ke.preventDefault(),ke.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var ke;const q=this._elementRef.nativeElement.cloneNode(!0),$=q.querySelectorAll("mat-icon, .material-icons");for(let le=0;le<$.length;le++)$[le].remove();return(null===(ke=q.textContent)||void 0===ke?void 0:ke.trim())||""}_setHighlighted(ke){var q;this._highlighted=ke,null===(q=this._changeDetectorRef)||void 0===q||q.markForCheck()}}return he.\u0275fac=function(ke){return new(ke||he)(C.Y36(C.SBq),C.Y36(W.K0),C.Y36(e.tE),C.Y36(G,8),C.Y36(C.sBO))},he.\u0275cmp=C.Xpm({type:he,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:10,hostBindings:function(ke,q){1&ke&&C.NdJ("click",function(le){return q._checkDisabled(le)})("mouseenter",function(){return q._handleMouseEnter()}),2&ke&&(C.uIk("role",q.role)("tabindex",q._getTabIndex())("aria-disabled",q.disabled.toString())("disabled",q.disabled||null),C.ekj("mat-menu-item",!0)("mat-menu-item-highlighted",q._highlighted)("mat-menu-item-submenu-trigger",q._triggersSubmenu))},inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[C.qOj],attrs:de,ngContentSelectors:ae,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(ke,q){1&ke&&(C.F$t(),C.Hsn(0),C._UZ(1,"div",0),C.YNc(2,oe,2,0,"svg",1)),2&ke&&(C.xp6(1),C.Q6J("matRippleDisabled",q.disableRipple||q.disabled)("matRippleTrigger",q._getHostElement()),C.xp6(1),C.Q6J("ngIf",q._triggersSubmenu))},directives:[ie.wG,W.O5],encapsulation:2,changeDetection:0}),he})();const ye=new C.OlP("mat-menu-default-options",{providedIn:"root",factory:function Ce(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let Be=0,ze=(()=>{class he{constructor(ke,q,$){this._elementRef=ke,this._ngZone=q,this._defaultOptions=$,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new C.n_E,this._tabSubscription=M.w0.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new o.x,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new C.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+Be++}get xPosition(){return this._xPosition}set xPosition(ke){this._xPosition=ke,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(ke){this._yPosition=ke,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(ke){this._overlapTrigger=(0,t.Ig)(ke)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(ke){this._hasBackdrop=(0,t.Ig)(ke)}set panelClass(ke){const q=this._previousPanelClass;q&&q.length&&q.split(" ").forEach($=>{this._classList[$]=!1}),this._previousPanelClass=ke,ke&&ke.length&&(ke.split(" ").forEach($=>{this._classList[$]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(ke){this.panelClass=ke}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,D.O)(this._directDescendantItems),(0,A.w)(ke=>(0,l.T)(...ke.map(q=>q._focused)))).subscribe(ke=>this._keyManager.updateActiveItem(ke))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe((0,D.O)(this._directDescendantItems),(0,A.w)(q=>(0,l.T)(...q.map($=>$._hovered))))}addItem(ke){}removeItem(ke){}_handleKeydown(ke){const q=ke.keyCode,$=this._keyManager;switch(q){case y.hY:(0,y.Vb)(ke)||(ke.preventDefault(),this.closed.emit("keydown"));break;case y.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case y.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:(q===y.LH||q===y.JH)&&$.setFocusOrigin("keyboard"),$.onKeydown(ke)}}focusFirstItem(ke="program"){this.lazyContent?this._ngZone.onStable.pipe((0,O.q)(1)).subscribe(()=>this._focusFirstItem(ke)):this._focusFirstItem(ke)}_focusFirstItem(ke){const q=this._keyManager;if(q.setFocusOrigin(ke).setFirstItemActive(),!q.activeItem&&this._directDescendantItems.length){let $=this._directDescendantItems.first._getHostElement().parentElement;for(;$;){if("menu"===$.getAttribute("role")){$.focus();break}$=$.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(ke){const q=Math.min(this._baseElevation+ke,24),$=`${this._elevationPrefix}${q}`,le=Object.keys(this._classList).find(xe=>xe.startsWith(this._elevationPrefix));(!le||le===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[$]=!0,this._previousElevation=$)}setPositionClasses(ke=this.xPosition,q=this.yPosition){const $=this._classList;$["mat-menu-before"]="before"===ke,$["mat-menu-after"]="after"===ke,$["mat-menu-above"]="above"===q,$["mat-menu-below"]="below"===q}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(ke){this._animationDone.next(ke),this._isAnimating=!1}_onAnimationStart(ke){this._isAnimating=!0,"enter"===ke.toState&&0===this._keyManager.activeItemIndex&&(ke.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,D.O)(this._allItems)).subscribe(ke=>{this._directDescendantItems.reset(ke.filter(q=>q._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return he.\u0275fac=function(ke){return new(ke||he)(C.Y36(C.SBq),C.Y36(C.R0b),C.Y36(ye))},he.\u0275dir=C.lG2({type:he,contentQueries:function(ke,q,$){if(1&ke&&(C.Suo($,u,5),C.Suo($,U,5),C.Suo($,U,4)),2&ke){let le;C.iGM(le=C.CRH())&&(q.lazyContent=le.first),C.iGM(le=C.CRH())&&(q._allItems=le),C.iGM(le=C.CRH())&&(q.items=le)}},viewQuery:function(ke,q){if(1&ke&&C.Gf(C.Rgc,5),2&ke){let $;C.iGM($=C.CRH())&&(q.templateRef=$.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"}}),he})(),Ie=(()=>{class he extends ze{constructor(ke,q,$){super(ke,q,$),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return he.\u0275fac=function(ke){return new(ke||he)(C.Y36(C.SBq),C.Y36(C.R0b),C.Y36(ye))},he.\u0275cmp=C.Xpm({type:he,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(ke,q){2&ke&&C.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[C._Bn([{provide:G,useExisting:he}]),C.qOj],ngContentSelectors:ae,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(ke,q){1&ke&&(C.F$t(),C.YNc(0,b,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;-moz-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]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,data:{animation:[i.transformMenu,i.fadeInItems]},changeDetection:0}),he})();const K=new C.OlP("mat-menu-scroll-strategy"),we={provide:K,deps:[ee.aV],useFactory:function Me(he){return()=>he.scrollStrategies.reposition()}},Ge=(0,_e.i$)({passive:!0});let vt=(()=>{class he{constructor(ke,q,$,le,xe,Ue,lt,nt){this._overlay=ke,this._element=q,this._viewContainerRef=$,this._menuItemInstance=Ue,this._dir=lt,this._focusMonitor=nt,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=M.w0.EMPTY,this._hoverSubscription=M.w0.EMPTY,this._menuCloseSubscription=M.w0.EMPTY,this._handleTouchStart=ft=>{(0,e.yG)(ft)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new C.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new C.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=le,this._parentMaterialMenu=xe instanceof ze?xe:void 0,q.nativeElement.addEventListener("touchstart",this._handleTouchStart,Ge),Ue&&(Ue._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(ke){this.menu=ke}get menu(){return this._menu}set menu(ke){ke!==this._menu&&(this._menu=ke,this._menuCloseSubscription.unsubscribe(),ke&&(this._menuCloseSubscription=ke.close.subscribe(q=>{this._destroyMenu(q),("click"===q||"tab"===q)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(q)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Ge),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 ke=this._createOverlay(),q=ke.getConfig();this._setPosition(q.positionStrategy),q.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,ke.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof ze&&this.menu._startAnimation()}closeMenu(){this.menu.close.emit()}focus(ke,q){this._focusMonitor&&ke?this._focusMonitor.focusVia(this._element,ke,q):this._element.nativeElement.focus(q)}updatePosition(){var ke;null===(ke=this._overlayRef)||void 0===ke||ke.updatePosition()}_destroyMenu(ke){if(!this._overlayRef||!this.menuOpen)return;const q=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===ke||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,q instanceof ze?(q._resetAnimation(),q.lazyContent?q._animationDone.pipe((0,E.h)($=>"void"===$.toState),(0,O.q)(1),(0,P.R)(q.lazyContent._attached)).subscribe({next:()=>q.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),q.lazyContent&&q.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 ke=0,q=this.menu.parentMenu;for(;q;)ke++,q=q.parentMenu;this.menu.setElevation(ke)}}_setIsMenuOpen(ke){this._menuOpen=ke,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(ke)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const ke=this._getOverlayConfig();this._subscribeToPositions(ke.positionStrategy),this._overlayRef=this._overlay.create(ke),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new ee.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(ke){this.menu.setPositionClasses&&ke.positionChanges.subscribe(q=>{this.menu.setPositionClasses("start"===q.connectionPair.overlayX?"after":"before","top"===q.connectionPair.overlayY?"below":"above")})}_setPosition(ke){let[q,$]="before"===this.menu.xPosition?["end","start"]:["start","end"],[le,xe]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[Ue,lt]=[le,xe],[nt,ft]=[q,$],it=0;this.triggersSubmenu()?(ft=q="before"===this.menu.xPosition?"start":"end",$=nt="end"===q?"start":"end",it="bottom"===le?8:-8):this.menu.overlapTrigger||(Ue="top"===le?"bottom":"top",lt="top"===xe?"bottom":"top"),ke.withPositions([{originX:q,originY:Ue,overlayX:nt,overlayY:le,offsetY:it},{originX:$,originY:Ue,overlayX:ft,overlayY:le,offsetY:it},{originX:q,originY:lt,overlayX:nt,overlayY:xe,offsetY:-it},{originX:$,originY:lt,overlayX:ft,overlayY:xe,offsetY:-it}])}_menuClosingActions(){const ke=this._overlayRef.backdropClick(),q=this._overlayRef.detachments(),$=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,N.of)(),le=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,E.h)(xe=>xe!==this._menuItemInstance),(0,E.h)(()=>this._menuOpen)):(0,N.of)();return(0,l.T)(ke,$,le,q)}_handleMousedown(ke){(0,e.X6)(ke)||(this._openedBy=0===ke.button?"mouse":void 0,this.triggersSubmenu()&&ke.preventDefault())}_handleKeydown(ke){const q=ke.keyCode;(q===y.K5||q===y.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(q===y.SV&&"ltr"===this.dir||q===y.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(ke){this.triggersSubmenu()?(ke.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,E.h)(ke=>ke===this._menuItemInstance&&!ke.disabled),(0,w.g)(0,s.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof ze&&this.menu._isAnimating?this.menu._animationDone.pipe((0,O.q)(1),(0,w.g)(0,s.E),(0,P.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new j.UE(this.menu.templateRef,this._viewContainerRef)),this._portal}}return he.\u0275fac=function(ke){return new(ke||he)(C.Y36(ee.aV),C.Y36(C.SBq),C.Y36(C.s_b),C.Y36(K),C.Y36(G,8),C.Y36(U,10),C.Y36(ce.Is,8),C.Y36(e.tE))},he.\u0275dir=C.lG2({type:he,hostAttrs:["aria-haspopup","true"],hostVars:2,hostBindings:function(ke,q){1&ke&&C.NdJ("click",function(le){return q._handleClick(le)})("mousedown",function(le){return q._handleMousedown(le)})("keydown",function(le){return q._handleKeydown(le)}),2&ke&&C.uIk("aria-expanded",q.menuOpen||null)("aria-controls",q.menuOpen?q.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"}}),he})(),Re=(()=>{class he extends vt{}return he.\u0275fac=function(){let Le;return function(q){return(Le||(Le=C.n5z(he)))(q||he)}}(),he.\u0275dir=C.lG2({type:he,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[C.qOj]}),he})(),Ne=(()=>{class he{}return he.\u0275fac=function(ke){return new(ke||he)},he.\u0275mod=C.oAB({type:he}),he.\u0275inj=C.cJS({providers:[we],imports:[[W.ez,ie.BQ,ie.si,ee.U8],re.ZD,ie.BQ]}),he})()},6087:(Ve,Q,m)=>{"use strict";m.d(Q,{NW:()=>de,ye:()=>Z,TU:()=>oe});var e=m(9808),t=m(5e3),y=m(508),C=m(7423),o=m(4107),M=m(7238),l=m(3191),N=m(7579),s=m(7322);function D(ae,b){if(1&ae&&(t.TgZ(0,"mat-option",19),t._uU(1),t.qZA()),2&ae){const i=b.$implicit;t.Q6J("value",i),t.xp6(1),t.hij(" ",i," ")}}function A(ae,b){if(1&ae){const i=t.EpF();t.TgZ(0,"mat-form-field",16),t.TgZ(1,"mat-select",17),t.NdJ("selectionChange",function(p){return t.CHM(i),t.oxw(2)._changePageSize(p.value)}),t.YNc(2,D,2,2,"mat-option",18),t.qZA(),t.qZA()}if(2&ae){const i=t.oxw(2);t.Q6J("appearance",i._formFieldAppearance)("color",i.color),t.xp6(1),t.Q6J("value",i.pageSize)("disabled",i.disabled)("aria-label",i._intl.itemsPerPageLabel),t.xp6(1),t.Q6J("ngForOf",i._displayedPageSizeOptions)}}function O(ae,b){if(1&ae&&(t.TgZ(0,"div",20),t._uU(1),t.qZA()),2&ae){const i=t.oxw(2);t.xp6(1),t.Oqu(i.pageSize)}}function E(ae,b){if(1&ae&&(t.TgZ(0,"div",12),t.TgZ(1,"div",13),t._uU(2),t.qZA(),t.YNc(3,A,3,6,"mat-form-field",14),t.YNc(4,O,2,1,"div",15),t.qZA()),2&ae){const i=t.oxw();t.xp6(2),t.hij(" ",i._intl.itemsPerPageLabel," "),t.xp6(1),t.Q6J("ngIf",i._displayedPageSizeOptions.length>1),t.xp6(1),t.Q6J("ngIf",i._displayedPageSizeOptions.length<=1)}}function P(ae,b){if(1&ae){const i=t.EpF();t.TgZ(0,"button",21),t.NdJ("click",function(){return t.CHM(i),t.oxw().firstPage()}),t.O4$(),t.TgZ(1,"svg",7),t._UZ(2,"path",22),t.qZA(),t.qZA()}if(2&ae){const i=t.oxw();t.Q6J("matTooltip",i._intl.firstPageLabel)("matTooltipDisabled",i._previousButtonsDisabled())("matTooltipPosition","above")("disabled",i._previousButtonsDisabled()),t.uIk("aria-label",i._intl.firstPageLabel)}}function w(ae,b){if(1&ae){const i=t.EpF();t.O4$(),t.kcU(),t.TgZ(0,"button",23),t.NdJ("click",function(){return t.CHM(i),t.oxw().lastPage()}),t.O4$(),t.TgZ(1,"svg",7),t._UZ(2,"path",24),t.qZA(),t.qZA()}if(2&ae){const i=t.oxw();t.Q6J("matTooltip",i._intl.lastPageLabel)("matTooltipDisabled",i._nextButtonsDisabled())("matTooltipPosition","above")("disabled",i._nextButtonsDisabled()),t.uIk("aria-label",i._intl.lastPageLabel)}}let Z=(()=>{class ae{constructor(){this.changes=new N.x,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(i,a,p)=>{if(0==p||0==a)return`0 of ${p}`;const u=i*a;return`${u+1} \u2013 ${u<(p=Math.max(p,0))?Math.min(u+a,p):u+a} of ${p}`}}}return ae.\u0275fac=function(i){return new(i||ae)},ae.\u0275prov=t.Yz7({token:ae,factory:ae.\u0275fac,providedIn:"root"}),ae})();const W={provide:Z,deps:[[new t.FiY,new t.tp0,Z]],useFactory:function j(ae){return ae||new Z}},_e=new t.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),ce=(0,y.Id)((0,y.dB)(class{}));let re=(()=>{class ae extends ce{constructor(i,a,p){if(super(),this._intl=i,this._changeDetectorRef=a,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.page=new t.vpe,this._intlChanges=i.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),p){const{pageSize:u,pageSizeOptions:_,hidePageSize:L,showFirstLastButtons:I}=p;null!=u&&(this._pageSize=u),null!=_&&(this._pageSizeOptions=_),null!=L&&(this._hidePageSize=L),null!=I&&(this._showFirstLastButtons=I)}}get pageIndex(){return this._pageIndex}set pageIndex(i){this._pageIndex=Math.max((0,l.su)(i),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(i){this._length=(0,l.su)(i),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(i){this._pageSize=Math.max((0,l.su)(i),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(i){this._pageSizeOptions=(i||[]).map(a=>(0,l.su)(a)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(i){this._hidePageSize=(0,l.Ig)(i)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(i){this._showFirstLastButtons=(0,l.Ig)(i)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const i=this.pageIndex;this.pageIndex++,this._emitPageEvent(i)}previousPage(){if(!this.hasPreviousPage())return;const i=this.pageIndex;this.pageIndex--,this._emitPageEvent(i)}firstPage(){if(!this.hasPreviousPage())return;const i=this.pageIndex;this.pageIndex=0,this._emitPageEvent(i)}lastPage(){if(!this.hasNextPage())return;const i=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(i)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const i=this.getNumberOfPages()-1;return this.pageIndex<i&&0!=this.pageSize}getNumberOfPages(){return this.pageSize?Math.ceil(this.length/this.pageSize):0}_changePageSize(i){const p=this.pageIndex;this.pageIndex=Math.floor(this.pageIndex*this.pageSize/i)||0,this.pageSize=i,this._emitPageEvent(p)}_nextButtonsDisabled(){return this.disabled||!this.hasNextPage()}_previousButtonsDisabled(){return this.disabled||!this.hasPreviousPage()}_updateDisplayedPageSizeOptions(){!this._initialized||(this.pageSize||(this._pageSize=0!=this.pageSizeOptions.length?this.pageSizeOptions[0]:50),this._displayedPageSizeOptions=this.pageSizeOptions.slice(),-1===this._displayedPageSizeOptions.indexOf(this.pageSize)&&this._displayedPageSizeOptions.push(this.pageSize),this._displayedPageSizeOptions.sort((i,a)=>i-a),this._changeDetectorRef.markForCheck())}_emitPageEvent(i){this.page.emit({previousPageIndex:i,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return ae.\u0275fac=function(i){t.$Z()},ae.\u0275dir=t.lG2({type:ae,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons"},outputs:{page:"page"},features:[t.qOj]}),ae})(),de=(()=>{class ae extends re{constructor(i,a,p){super(i,a,p),p&&null!=p.formFieldAppearance&&(this._formFieldAppearance=p.formFieldAppearance)}}return ae.\u0275fac=function(i){return new(i||ae)(t.Y36(Z),t.Y36(t.sBO),t.Y36(_e,8))},ae.\u0275cmp=t.Xpm({type:ae,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[t.qOj],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(i,a){1&i&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.YNc(2,E,5,3,"div",2),t.TgZ(3,"div",3),t.TgZ(4,"div",4),t._uU(5),t.qZA(),t.YNc(6,P,3,5,"button",5),t.TgZ(7,"button",6),t.NdJ("click",function(){return a.previousPage()}),t.O4$(),t.TgZ(8,"svg",7),t._UZ(9,"path",8),t.qZA(),t.qZA(),t.kcU(),t.TgZ(10,"button",9),t.NdJ("click",function(){return a.nextPage()}),t.O4$(),t.TgZ(11,"svg",7),t._UZ(12,"path",10),t.qZA(),t.qZA(),t.YNc(13,w,3,5,"button",11),t.qZA(),t.qZA(),t.qZA()),2&i&&(t.xp6(2),t.Q6J("ngIf",!a.hidePageSize),t.xp6(3),t.hij(" ",a._intl.getRangeLabel(a.pageIndex,a.pageSize,a.length)," "),t.xp6(1),t.Q6J("ngIf",a.showFirstLastButtons),t.xp6(1),t.Q6J("matTooltip",a._intl.previousPageLabel)("matTooltipDisabled",a._previousButtonsDisabled())("matTooltipPosition","above")("disabled",a._previousButtonsDisabled()),t.uIk("aria-label",a._intl.previousPageLabel),t.xp6(3),t.Q6J("matTooltip",a._intl.nextPageLabel)("matTooltipDisabled",a._nextButtonsDisabled())("matTooltipPosition","above")("disabled",a._nextButtonsDisabled()),t.uIk("aria-label",a._intl.nextPageLabel),t.xp6(3),t.Q6J("ngIf",a.showFirstLastButtons))},directives:[e.O5,C.lW,M.gM,s.KE,o.gD,e.sg,y.ey],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}),ae})(),oe=(()=>{class ae{}return ae.\u0275fac=function(i){return new(i||ae)},ae.\u0275mod=t.oAB({type:ae}),ae.\u0275inj=t.cJS({providers:[W],imports:[[e.ez,C.ot,o.LD,M.AV,y.BQ]]}),ae})()},5899:(Ve,Q,m)=>{"use strict";m.d(Q,{pW:()=>w,Cv:()=>j});var e=m(5e3),t=m(9808),y=m(508),C=m(3191),o=m(6360),M=m(727),l=m(4968),N=m(9300);const s=["primaryValueBar"],D=(0,y.pj)(class{constructor(W){this._elementRef=W}},"primary"),A=new e.OlP("mat-progress-bar-location",{providedIn:"root",factory:function O(){const W=(0,e.f3M)(t.K0),ie=W?W.location:null;return{getPathname:()=>ie?ie.pathname+ie.search:""}}}),E=new e.OlP("MAT_PROGRESS_BAR_DEFAULT_OPTIONS");let P=0,w=(()=>{class W extends D{constructor(ee,_e,ce,re,de){super(ee),this._ngZone=_e,this._animationMode=ce,this._isNoopAnimation=!1,this._value=0,this._bufferValue=0,this.animationEnd=new e.vpe,this._animationEndSubscription=M.w0.EMPTY,this.mode="determinate",this.progressbarId="mat-progress-bar-"+P++;const oe=re?re.getPathname().split("#")[0]:"";this._rectangleFillValue=`url('${oe}#${this.progressbarId}')`,this._isNoopAnimation="NoopAnimations"===ce,de&&(de.color&&(this.color=this.defaultColor=de.color),this.mode=de.mode||this.mode)}get value(){return this._value}set value(ee){this._value=Z((0,C.su)(ee)||0)}get bufferValue(){return this._bufferValue}set bufferValue(ee){this._bufferValue=Z(ee||0)}_primaryTransform(){return{transform:`scale3d(${this.value/100}, 1, 1)`}}_bufferTransform(){return"buffer"===this.mode?{transform:`scale3d(${this.bufferValue/100}, 1, 1)`}:null}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{const ee=this._primaryValueBar.nativeElement;this._animationEndSubscription=(0,l.R)(ee,"transitionend").pipe((0,N.h)(_e=>_e.target===ee)).subscribe(()=>{("determinate"===this.mode||"buffer"===this.mode)&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))})})}ngOnDestroy(){this._animationEndSubscription.unsubscribe()}}return W.\u0275fac=function(ee){return new(ee||W)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(o.Qb,8),e.Y36(A,8),e.Y36(E,8))},W.\u0275cmp=e.Xpm({type:W,selectors:[["mat-progress-bar"]],viewQuery:function(ee,_e){if(1&ee&&e.Gf(s,5),2&ee){let ce;e.iGM(ce=e.CRH())&&(_e._primaryValueBar=ce.first)}},hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-progress-bar"],hostVars:4,hostBindings:function(ee,_e){2&ee&&(e.uIk("aria-valuenow","indeterminate"===_e.mode||"query"===_e.mode?null:_e.value)("mode",_e.mode),e.ekj("_mat-animation-noopable",_e._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(ee,_e){1&ee&&(e.TgZ(0,"div",0),e.O4$(),e.TgZ(1,"svg",1),e.TgZ(2,"defs"),e.TgZ(3,"pattern",2),e._UZ(4,"circle",3),e.qZA(),e.qZA(),e._UZ(5,"rect",4),e.qZA(),e.kcU(),e._UZ(6,"div",5),e._UZ(7,"div",6,7),e._UZ(9,"div",8),e.qZA()),2&ee&&(e.xp6(3),e.Q6J("id",_e.progressbarId),e.xp6(2),e.uIk("fill",_e._rectangleFillValue),e.xp6(1),e.Q6J("ngStyle",_e._bufferTransform()),e.xp6(1),e.Q6J("ngStyle",_e._primaryTransform()))},directives:[t.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,ie=0,ee=100){return Math.max(ie,Math.min(ee,W))}let j=(()=>{class W{}return W.\u0275fac=function(ee){return new(ee||W)},W.\u0275mod=e.oAB({type:W}),W.\u0275inj=e.cJS({imports:[[t.ez,y.BQ],y.BQ]}),W})()},773:(Ve,Q,m)=>{"use strict";m.d(Q,{Cq:()=>ee,$g:()=>ie});var e=m(5e3),t=m(9808),y=m(508),C=m(3191),o=m(925),M=m(6360);function l(_e,ce){if(1&_e&&(e.O4$(),e._UZ(0,"circle",3)),2&_e){const re=e.oxw();e.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+re._spinnerAnimationLabel)("stroke-dashoffset",re._getStrokeDashOffset(),"px")("stroke-dasharray",re._getStrokeCircumference(),"px")("stroke-width",re._getCircleStrokeWidth(),"%"),e.uIk("r",re._getCircleRadius())}}function N(_e,ce){if(1&_e&&(e.O4$(),e._UZ(0,"circle",3)),2&_e){const re=e.oxw();e.Udp("stroke-dashoffset",re._getStrokeDashOffset(),"px")("stroke-dasharray",re._getStrokeCircumference(),"px")("stroke-width",re._getCircleStrokeWidth(),"%"),e.uIk("r",re._getCircleRadius())}}function s(_e,ce){if(1&_e&&(e.O4$(),e._UZ(0,"circle",3)),2&_e){const re=e.oxw();e.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+re._spinnerAnimationLabel)("stroke-dashoffset",re._getStrokeDashOffset(),"px")("stroke-dasharray",re._getStrokeCircumference(),"px")("stroke-width",re._getCircleStrokeWidth(),"%"),e.uIk("r",re._getCircleRadius())}}function D(_e,ce){if(1&_e&&(e.O4$(),e._UZ(0,"circle",3)),2&_e){const re=e.oxw();e.Udp("stroke-dashoffset",re._getStrokeDashOffset(),"px")("stroke-dasharray",re._getStrokeCircumference(),"px")("stroke-width",re._getCircleStrokeWidth(),"%"),e.uIk("r",re._getCircleRadius())}}const P=(0,y.pj)(class{constructor(_e){this._elementRef=_e}},"primary"),w=new e.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function Z(){return{diameter:100}}});class W extends P{constructor(ce,re,de,oe,ae){super(ce),this._document=de,this._diameter=100,this._value=0,this.mode="determinate";const b=W._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),b.has(de.head)||b.set(de.head,new Set([100])),this._noopAnimations="NoopAnimations"===oe&&!!ae&&!ae._forceAnimations,ae&&(ae.diameter&&(this.diameter=ae.diameter),ae.strokeWidth&&(this.strokeWidth=ae.strokeWidth))}get diameter(){return this._diameter}set diameter(ce){this._diameter=(0,C.su)(ce),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(ce){this._strokeWidth=(0,C.su)(ce)}get value(){return"determinate"===this.mode?this._value:0}set value(ce){this._value=Math.max(0,Math.min(100,(0,C.su)(ce)))}ngOnInit(){const ce=this._elementRef.nativeElement;this._styleRoot=(0,o.kV)(ce)||this._document.head,this._attachStyleNode(),ce.classList.add("mat-progress-spinner-indeterminate-animation")}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const ce=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${ce} ${ce}`}_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}_attachStyleNode(){const ce=this._styleRoot,re=this._diameter,de=W._diameters;let oe=de.get(ce);if(!oe||!oe.has(re)){const ae=this._document.createElement("style");ae.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),ae.textContent=this._getAnimationText(),ce.appendChild(ae),oe||(oe=new Set,de.set(ce,oe)),oe.add(re)}}_getAnimationText(){const ce=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*ce).replace(/END_VALUE/g,""+.2*ce).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}W._diameters=new WeakMap,W.\u0275fac=function(ce){return new(ce||W)(e.Y36(e.SBq),e.Y36(o.t4),e.Y36(t.K0,8),e.Y36(M.Qb,8),e.Y36(w))},W.\u0275cmp=e.Xpm({type:W,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(ce,re){2&ce&&(e.uIk("aria-valuemin","determinate"===re.mode?0:null)("aria-valuemax","determinate"===re.mode?100:null)("aria-valuenow","determinate"===re.mode?re.value:null)("mode",re.mode),e.Udp("width",re.diameter,"px")("height",re.diameter,"px"),e.ekj("_mat-animation-noopable",re._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[e.qOj],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(ce,re){1&ce&&(e.O4$(),e.TgZ(0,"svg",0),e.YNc(1,l,1,9,"circle",1),e.YNc(2,N,1,7,"circle",2),e.qZA()),2&ce&&(e.Udp("width",re.diameter,"px")("height",re.diameter,"px"),e.Q6J("ngSwitch","indeterminate"===re.mode),e.uIk("viewBox",re._getViewBox()),e.xp6(1),e.Q6J("ngSwitchCase",!0),e.xp6(1),e.Q6J("ngSwitchCase",!1))},directives:[t.RF,t.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;transform-origin:center;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 ie=(()=>{class _e extends W{constructor(re,de,oe,ae,b){super(re,de,oe,ae,b),this.mode="indeterminate"}}return _e.\u0275fac=function(re){return new(re||_e)(e.Y36(e.SBq),e.Y36(o.t4),e.Y36(t.K0,8),e.Y36(M.Qb,8),e.Y36(w))},_e.\u0275cmp=e.Xpm({type:_e,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(re,de){2&re&&(e.Udp("width",de.diameter,"px")("height",de.diameter,"px"),e.ekj("_mat-animation-noopable",de._noopAnimations))},inputs:{color:"color"},features:[e.qOj],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(re,de){1&re&&(e.O4$(),e.TgZ(0,"svg",0),e.YNc(1,s,1,9,"circle",1),e.YNc(2,D,1,7,"circle",2),e.qZA()),2&re&&(e.Udp("width",de.diameter,"px")("height",de.diameter,"px"),e.Q6J("ngSwitch","indeterminate"===de.mode),e.uIk("viewBox",de._getViewBox()),e.xp6(1),e.Q6J("ngSwitchCase",!0),e.xp6(1),e.Q6J("ngSwitchCase",!1))},directives:[t.RF,t.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;transform-origin:center;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}),_e})(),ee=(()=>{class _e{}return _e.\u0275fac=function(re){return new(re||_e)},_e.\u0275mod=e.oAB({type:_e}),_e.\u0275inj=e.cJS({imports:[[y.BQ,t.ez],y.BQ]}),_e})()},9814:(Ve,Q,m)=>{"use strict";m.d(Q,{U0:()=>ce,VQ:()=>W,Fk:()=>re});var e=m(5e3),t=m(508),y=m(3191),C=m(3075),o=m(6360),M=m(5664),l=m(449);const N=["input"],s=function(de){return{enterDuration:de}},D=["*"],A=new e.OlP("mat-radio-default-options",{providedIn:"root",factory:function O(){return{color:"accent"}}});let E=0;const P={provide:C.JU,useExisting:(0,e.Gpc)(()=>W),multi:!0};class w{constructor(oe,ae){this.source=oe,this.value=ae}}const Z=new e.OlP("MatRadioGroup");let j=(()=>{class de{constructor(ae){this._changeDetector=ae,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(ae){this._name=ae,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(ae){this._labelPosition="before"===ae?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(ae){this._value!==ae&&(this._value=ae,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(ae){this._selected=ae,this.value=ae?ae.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(ae){this._disabled=(0,y.Ig)(ae),this._markRadiosForCheck()}get required(){return this._required}set required(ae){this._required=(0,y.Ig)(ae),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(ae=>{ae.name=this.name,ae._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(b=>{b.checked=this.value===b.value,b.checked&&(this._selected=b)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new w(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(ae=>ae._markForCheck())}writeValue(ae){this.value=ae,this._changeDetector.markForCheck()}registerOnChange(ae){this._controlValueAccessorChangeFn=ae}registerOnTouched(ae){this.onTouched=ae}setDisabledState(ae){this.disabled=ae,this._changeDetector.markForCheck()}}return de.\u0275fac=function(ae){return new(ae||de)(e.Y36(e.sBO))},de.\u0275dir=e.lG2({type:de,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),de})(),W=(()=>{class de extends j{}return de.\u0275fac=function(){let oe;return function(b){return(oe||(oe=e.n5z(de)))(b||de)}}(),de.\u0275dir=e.lG2({type:de,selectors:[["mat-radio-group"]],contentQueries:function(ae,b,i){if(1&ae&&e.Suo(i,ce,5),2&ae){let a;e.iGM(a=e.CRH())&&(b._radios=a)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[e._Bn([P,{provide:Z,useExisting:de}]),e.qOj]}),de})();class ie{constructor(oe){this._elementRef=oe}}const ee=(0,t.Kr)((0,t.sb)(ie));let _e=(()=>{class de extends ee{constructor(ae,b,i,a,p,u,_,L){super(b),this._changeDetector=i,this._focusMonitor=a,this._radioDispatcher=p,this._providerOverride=_,this._uniqueId="mat-radio-"+ ++E,this.id=this._uniqueId,this.change=new e.vpe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=ae,this._noopAnimations="NoopAnimations"===u,L&&(this.tabIndex=(0,y.su)(L,0)),this._removeUniqueSelectionListener=p.listen((I,x)=>{I!==this.id&&x===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(ae){const b=(0,y.Ig)(ae);this._checked!==b&&(this._checked=b,b&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!b&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),b&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(ae){this._value!==ae&&(this._value=ae,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===ae),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(ae){this._labelPosition=ae}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(ae){this._setDisabled((0,y.Ig)(ae))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(ae){this._required=(0,y.Ig)(ae)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(ae){this._color=ae}get inputId(){return`${this.id||this._uniqueId}-input`}focus(ae,b){b?this._focusMonitor.focusVia(this._inputElement,b,ae):this._inputElement.nativeElement.focus(ae)}_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)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(ae=>{!ae&&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(ae){ae.stopPropagation()}_onInputInteraction(ae){if(ae.stopPropagation(),!this.checked&&!this.disabled){const b=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),b&&this.radioGroup._emitChangeEvent())}}_setDisabled(ae){this._disabled!==ae&&(this._disabled=ae,this._changeDetector.markForCheck())}}return de.\u0275fac=function(ae){e.$Z()},de.\u0275dir=e.lG2({type:de,viewQuery:function(ae,b){if(1&ae&&e.Gf(N,5),2&ae){let i;e.iGM(i=e.CRH())&&(b._inputElement=i.first)}},inputs:{id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},features:[e.qOj]}),de})(),ce=(()=>{class de extends _e{constructor(ae,b,i,a,p,u,_,L){super(ae,b,i,a,p,u,_,L)}}return de.\u0275fac=function(ae){return new(ae||de)(e.Y36(Z,8),e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(M.tE),e.Y36(l.A8),e.Y36(o.Qb,8),e.Y36(A,8),e.$8M("tabindex"))},de.\u0275cmp=e.Xpm({type:de,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(ae,b){1&ae&&e.NdJ("focus",function(){return b._inputElement.nativeElement.focus()}),2&ae&&(e.uIk("tabindex",null)("id",b.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),e.ekj("mat-radio-checked",b.checked)("mat-radio-disabled",b.disabled)("_mat-animation-noopable",b._noopAnimations)("mat-primary","primary"===b.color)("mat-accent","accent"===b.color)("mat-warn","warn"===b.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[e.qOj],ngContentSelectors:D,decls:13,vars:20,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","cdk-visually-hidden",3,"id","checked","disabled","tabIndex","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(ae,b){if(1&ae&&(e.F$t(),e.TgZ(0,"label",0,1),e.TgZ(2,"span",2),e._UZ(3,"span",3),e._UZ(4,"span",4),e.TgZ(5,"input",5,6),e.NdJ("change",function(a){return b._onInputInteraction(a)})("click",function(a){return b._onInputClick(a)}),e.qZA(),e.TgZ(7,"span",7),e._UZ(8,"span",8),e.qZA(),e.qZA(),e.TgZ(9,"span",9),e.TgZ(10,"span",10),e._uU(11,"\xa0"),e.qZA(),e.Hsn(12),e.qZA(),e.qZA()),2&ae){const i=e.MAs(1);e.uIk("for",b.inputId),e.xp6(5),e.Q6J("id",b.inputId)("checked",b.checked)("disabled",b.disabled)("tabIndex",b.tabIndex)("required",b.required),e.uIk("name",b.name)("value",b.value)("aria-label",b.ariaLabel)("aria-labelledby",b.ariaLabelledby)("aria-describedby",b.ariaDescribedby),e.xp6(2),e.Q6J("matRippleTrigger",i)("matRippleDisabled",b._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",e.VKq(18,s,b._noopAnimations?0:150)),e.xp6(2),e.ekj("mat-radio-label-before","before"==b.labelPosition)}},directives:[t.wG],styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;-moz-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;-moz-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{bottom:0;left:50%}.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}),de})(),re=(()=>{class de{}return de.\u0275fac=function(ae){return new(ae||de)},de.\u0275mod=e.oAB({type:de}),de.\u0275inj=e.cJS({imports:[[t.si,t.BQ],t.BQ]}),de})()},4107:(Ve,Q,m)=>{"use strict";m.d(Q,{gD:()=>Ne,LD:()=>he,$L:()=>vt});var e=m(9776),t=m(9808),y=m(5e3),C=m(508),o=m(7322),M=m(5303),l=m(5664),N=m(3191),s=m(449),D=m(1159),A=m(3075),O=m(7579),E=m(9770),P=m(6451),w=m(8675),Z=m(3900),j=m(5698),W=m(9300),ie=m(4004),ee=m(1884),_e=m(2722),ce=m(1777),re=m(226);const de=["trigger"],oe=["panel"];function ae(Le,ke){if(1&Le&&(y.TgZ(0,"span",8),y._uU(1),y.qZA()),2&Le){const q=y.oxw();y.xp6(1),y.Oqu(q.placeholder)}}function b(Le,ke){if(1&Le&&(y.TgZ(0,"span",12),y._uU(1),y.qZA()),2&Le){const q=y.oxw(2);y.xp6(1),y.Oqu(q.triggerValue)}}function i(Le,ke){1&Le&&y.Hsn(0,0,["*ngSwitchCase","true"])}function a(Le,ke){if(1&Le&&(y.TgZ(0,"span",9),y.YNc(1,b,2,1,"span",10),y.YNc(2,i,1,0,"ng-content",11),y.qZA()),2&Le){const q=y.oxw();y.Q6J("ngSwitch",!!q.customTrigger),y.xp6(2),y.Q6J("ngSwitchCase",!0)}}function p(Le,ke){if(1&Le){const q=y.EpF();y.TgZ(0,"div",13),y.TgZ(1,"div",14,15),y.NdJ("@transformPanel.done",function(le){return y.CHM(q),y.oxw()._panelDoneAnimatingStream.next(le.toState)})("keydown",function(le){return y.CHM(q),y.oxw()._handleKeydown(le)}),y.Hsn(3,1),y.qZA(),y.qZA()}if(2&Le){const q=y.oxw();y.Q6J("@transformPanelWrap",void 0),y.xp6(1),y.Gre("mat-select-panel ",q._getPanelTheme(),""),y.Udp("transform-origin",q._transformOrigin)("font-size",q._triggerFontSize,"px"),y.Q6J("ngClass",q.panelClass)("@transformPanel",q.multiple?"showing-multiple":"showing"),y.uIk("id",q.id+"-panel")("aria-multiselectable",q.multiple)("aria-label",q.ariaLabel||null)("aria-labelledby",q._getPanelAriaLabelledby())}}const u=[[["mat-select-trigger"]],"*"],_=["mat-select-trigger","*"],L={transformPanelWrap:(0,ce.X$)("transformPanelWrap",[(0,ce.eR)("* => void",(0,ce.IO)("@transformPanel",[(0,ce.pV)()],{optional:!0}))]),transformPanel:(0,ce.X$)("transformPanel",[(0,ce.SB)("void",(0,ce.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,ce.SB)("showing",(0,ce.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,ce.SB)("showing-multiple",(0,ce.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,ce.eR)("void => *",(0,ce.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,ce.eR)("* => void",(0,ce.jt)("100ms 25ms linear",(0,ce.oB)({opacity:0})))])};let v=0;const G=256,ze=new y.OlP("mat-select-scroll-strategy"),K=new y.OlP("MAT_SELECT_CONFIG"),Me={provide:ze,deps:[e.aV],useFactory:function Ie(Le){return()=>Le.scrollStrategies.reposition()}};class we{constructor(ke,q){this.source=ke,this.value=q}}const z=(0,C.Kr)((0,C.sb)((0,C.Id)((0,C.FD)(class{constructor(Le,ke,q,$,le){this._elementRef=Le,this._defaultErrorStateMatcher=ke,this._parentForm=q,this._parentFormGroup=$,this.ngControl=le}})))),Ge=new y.OlP("MatSelectTrigger");let vt=(()=>{class Le{}return Le.\u0275fac=function(q){return new(q||Le)},Le.\u0275dir=y.lG2({type:Le,selectors:[["mat-select-trigger"]],features:[y._Bn([{provide:Ge,useExisting:Le}])]}),Le})(),Re=(()=>{class Le extends z{constructor(q,$,le,xe,Ue,lt,nt,ft,it,rt,Mt,Zt,Ft,Vt){var Ii,jt,ei;super(Ue,xe,nt,ft,rt),this._viewportRuler=q,this._changeDetectorRef=$,this._ngZone=le,this._dir=lt,this._parentFormField=it,this._liveAnnouncer=Ft,this._defaultOptions=Vt,this._panelOpen=!1,this._compareWith=(Pi,ai)=>Pi===ai,this._uid="mat-select-"+v++,this._triggerAriaLabelledBy=null,this._destroy=new O.x,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+v++,this._panelDoneAnimatingStream=new O.x,this._overlayPanelClass=(null===(Ii=this._defaultOptions)||void 0===Ii?void 0:Ii.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=null!==(ei=null===(jt=this._defaultOptions)||void 0===jt?void 0:jt.disableOptionCentering)&&void 0!==ei&&ei,this.ariaLabel="",this.optionSelectionChanges=(0,E.P)(()=>{const Pi=this.options;return Pi?Pi.changes.pipe((0,w.O)(Pi),(0,Z.w)(()=>(0,P.T)(...Pi.map(ai=>ai.onSelectionChange)))):this._ngZone.onStable.pipe((0,j.q)(1),(0,Z.w)(()=>this.optionSelectionChanges))}),this.openedChange=new y.vpe,this._openedStream=this.openedChange.pipe((0,W.h)(Pi=>Pi),(0,ie.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,W.h)(Pi=>!Pi),(0,ie.U)(()=>{})),this.selectionChange=new y.vpe,this.valueChange=new y.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==Vt?void 0:Vt.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=Vt.typeaheadDebounceInterval),this._scrollStrategyFactory=Zt,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(Mt)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(q){this._placeholder=q,this.stateChanges.next()}get required(){var q,$,le,xe;return null!==(xe=null!==(q=this._required)&&void 0!==q?q:null===(le=null===($=this.ngControl)||void 0===$?void 0:$.control)||void 0===le?void 0:le.hasValidator(A.kI.required))&&void 0!==xe&&xe}set required(q){this._required=(0,N.Ig)(q),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(q){this._multiple=(0,N.Ig)(q)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(q){this._disableOptionCentering=(0,N.Ig)(q)}get compareWith(){return this._compareWith}set compareWith(q){this._compareWith=q,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(q){(q!==this._value||this._multiple&&Array.isArray(q))&&(this.options&&this._setSelectionByValue(q),this._value=q)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(q){this._typeaheadDebounceInterval=(0,N.su)(q)}get id(){return this._id}set id(q){this._id=q||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new s.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,ee.x)(),(0,_e.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,_e.R)(this._destroy)).subscribe(q=>{q.added.forEach($=>$.select()),q.removed.forEach($=>$.deselect())}),this.options.changes.pipe((0,w.O)(null),(0,_e.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const q=this._getTriggerAriaLabelledby();if(q!==this._triggerAriaLabelledBy){const $=this._elementRef.nativeElement;this._triggerAriaLabelledBy=q,q?$.setAttribute("aria-labelledby",q):$.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}ngOnChanges(q){q.disabled&&this.stateChanges.next(),q.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(q){this.value=q}registerOnChange(q){this._onChange=q}registerOnTouched(q){this._onTouched=q}setDisabledState(q){this.disabled=q,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){var q,$;return this.multiple?(null===(q=this._selectionModel)||void 0===q?void 0:q.selected)||[]:null===($=this._selectionModel)||void 0===$?void 0:$.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const q=this._selectionModel.selected.map($=>$.viewValue);return this._isRtl()&&q.reverse(),q.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(q){this.disabled||(this.panelOpen?this._handleOpenKeydown(q):this._handleClosedKeydown(q))}_handleClosedKeydown(q){const $=q.keyCode,le=$===D.JH||$===D.LH||$===D.oh||$===D.SV,xe=$===D.K5||$===D.L_,Ue=this._keyManager;if(!Ue.isTyping()&&xe&&!(0,D.Vb)(q)||(this.multiple||q.altKey)&&le)q.preventDefault(),this.open();else if(!this.multiple){const lt=this.selected;Ue.onKeydown(q);const nt=this.selected;nt&&lt!==nt&&this._liveAnnouncer.announce(nt.viewValue,1e4)}}_handleOpenKeydown(q){const $=this._keyManager,le=q.keyCode,xe=le===D.JH||le===D.LH,Ue=$.isTyping();if(xe&&q.altKey)q.preventDefault(),this.close();else if(Ue||le!==D.K5&&le!==D.L_||!$.activeItem||(0,D.Vb)(q))if(!Ue&&this._multiple&&le===D.A&&q.ctrlKey){q.preventDefault();const lt=this.options.some(nt=>!nt.disabled&&!nt.selected);this.options.forEach(nt=>{nt.disabled||(lt?nt.select():nt.deselect())})}else{const lt=$.activeItemIndex;$.onKeydown(q),this._multiple&&xe&&q.shiftKey&&$.activeItem&&$.activeItemIndex!==lt&&$.activeItem._selectViaInteraction()}else q.preventDefault(),$.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,j.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._setSelectionByValue(this.ngControl?this.ngControl.value:this._value),this.stateChanges.next()})}_setSelectionByValue(q){if(this._selectionModel.selected.forEach($=>$.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&q)Array.isArray(q),q.forEach($=>this._selectValue($)),this._sortValues();else{const $=this._selectValue(q);$?this._keyManager.updateActiveItem($):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(q){const $=this.options.find(le=>{if(this._selectionModel.isSelected(le))return!1;try{return null!=le.value&&this._compareWith(le.value,q)}catch(xe){return!1}});return $&&this._selectionModel.select($),$}_initKeyManager(){this._keyManager=new l.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,_e.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe((0,_e.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 q=(0,P.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,_e.R)(q)).subscribe($=>{this._onSelect($.source,$.isUserInput),$.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,P.T)(...this.options.map($=>$._stateChanges)).pipe((0,_e.R)(q)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(q,$){const le=this._selectionModel.isSelected(q);null!=q.value||this._multiple?(le!==q.selected&&(q.selected?this._selectionModel.select(q):this._selectionModel.deselect(q)),$&&this._keyManager.setActiveItem(q),this.multiple&&(this._sortValues(),$&&this.focus())):(q.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(q.value)),le!==this._selectionModel.isSelected(q)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const q=this.options.toArray();this._selectionModel.sort(($,le)=>this.sortComparator?this.sortComparator($,le,q):q.indexOf($)-q.indexOf(le)),this.stateChanges.next()}}_propagateChanges(q){let $=null;$=this.multiple?this.selected.map(le=>le.value):this.selected?this.selected.value:q,this._value=$,this.valueChange.emit($),this._onChange($),this.selectionChange.emit(this._getChangeEvent($)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var q;return!this._panelOpen&&!this.disabled&&(null===(q=this.options)||void 0===q?void 0:q.length)>0}focus(q){this._elementRef.nativeElement.focus(q)}_getPanelAriaLabelledby(){var q;if(this.ariaLabel)return null;const $=null===(q=this._parentFormField)||void 0===q?void 0:q.getLabelId();return this.ariaLabelledby?($?$+" ":"")+this.ariaLabelledby:$}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var q;if(this.ariaLabel)return null;const $=null===(q=this._parentFormField)||void 0===q?void 0:q.getLabelId();let le=($?$+" ":"")+this._valueId;return this.ariaLabelledby&&(le+=" "+this.ariaLabelledby),le}_panelDoneAnimating(q){this.openedChange.emit(q)}setDescribedByIds(q){this._ariaDescribedby=q.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return Le.\u0275fac=function(q){return new(q||Le)(y.Y36(M.rL),y.Y36(y.sBO),y.Y36(y.R0b),y.Y36(C.rD),y.Y36(y.SBq),y.Y36(re.Is,8),y.Y36(A.F,8),y.Y36(A.sg,8),y.Y36(o.G_,8),y.Y36(A.a5,10),y.$8M("tabindex"),y.Y36(ze),y.Y36(l.Kd),y.Y36(K,8))},Le.\u0275dir=y.lG2({type:Le,viewQuery:function(q,$){if(1&q&&(y.Gf(de,5),y.Gf(oe,5),y.Gf(e.pI,5)),2&q){let le;y.iGM(le=y.CRH())&&($.trigger=le.first),y.iGM(le=y.CRH())&&($.panel=le.first),y.iGM(le=y.CRH())&&($._overlayDir=le.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:[y.qOj,y.TTD]}),Le})(),Ne=(()=>{class Le extends Re{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(q,$,le){const xe=this._getItemHeight();return Math.min(Math.max(0,xe*q-$+xe/2),le)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,_e.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,j.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(q){const $=(0,C.CB)(q,this.options,this.optionGroups),le=this._getItemHeight();this.panel.nativeElement.scrollTop=0===q&&1===$?0:(0,C.jH)((q+$)*le,le,this.panel.nativeElement.scrollTop,G)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(q){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(q)}_getChangeEvent(q){return new we(this,q)}_calculateOverlayOffsetX(){const q=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),$=this._viewportRuler.getViewportSize(),le=this._isRtl(),xe=this.multiple?56:32;let Ue;if(this.multiple)Ue=40;else if(this.disableOptionCentering)Ue=16;else{let ft=this._selectionModel.selected[0]||this.options.first;Ue=ft&&ft.group?32:16}le||(Ue*=-1);const lt=0-(q.left+Ue-(le?xe:0)),nt=q.right+Ue-$.width+(le?0:xe);lt>0?Ue+=lt+8:nt>0&&(Ue-=nt+8),this._overlayDir.offsetX=Math.round(Ue),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(q,$,le){const xe=this._getItemHeight(),Ue=(xe-this._triggerRect.height)/2,lt=Math.floor(G/xe);let nt;return this.disableOptionCentering?0:(nt=0===this._scrollTop?q*xe:this._scrollTop===le?(q-(this._getItemCount()-lt))*xe+(xe-(this._getItemCount()*xe-G)%xe):$-xe/2,Math.round(-1*nt-Ue))}_checkOverlayWithinViewport(q){const $=this._getItemHeight(),le=this._viewportRuler.getViewportSize(),xe=this._triggerRect.top-8,Ue=le.height-this._triggerRect.bottom-8,lt=Math.abs(this._offsetY),ft=Math.min(this._getItemCount()*$,G)-lt-this._triggerRect.height;ft>Ue?this._adjustPanelUp(ft,Ue):lt>xe?this._adjustPanelDown(lt,xe,q):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(q,$){const le=Math.round(q-$);this._scrollTop-=le,this._offsetY-=le,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(q,$,le){const xe=Math.round(q-$);if(this._scrollTop+=xe,this._offsetY+=xe,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=le)return this._scrollTop=le,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const q=this._getItemHeight(),$=this._getItemCount(),le=Math.min($*q,G),Ue=$*q-le;let lt;lt=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),lt+=(0,C.CB)(lt,this.options,this.optionGroups);const nt=le/2;this._scrollTop=this._calculateOverlayScroll(lt,nt,Ue),this._offsetY=this._calculateOverlayOffsetY(lt,nt,Ue),this._checkOverlayWithinViewport(Ue)}_getOriginBasedOnOption(){const q=this._getItemHeight(),$=(q-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-$+q/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return Le.\u0275fac=function(){let ke;return function($){return(ke||(ke=y.n5z(Le)))($||Le)}}(),Le.\u0275cmp=y.Xpm({type:Le,selectors:[["mat-select"]],contentQueries:function(q,$,le){if(1&q&&(y.Suo(le,Ge,5),y.Suo(le,C.ey,5),y.Suo(le,C.K7,5)),2&q){let xe;y.iGM(xe=y.CRH())&&($.customTrigger=xe.first),y.iGM(xe=y.CRH())&&($.options=xe),y.iGM(xe=y.CRH())&&($.optionGroups=xe)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(q,$){1&q&&y.NdJ("keydown",function(xe){return $._handleKeydown(xe)})("focus",function(){return $._onFocus()})("blur",function(){return $._onBlur()}),2&q&&(y.uIk("id",$.id)("tabindex",$.tabIndex)("aria-controls",$.panelOpen?$.id+"-panel":null)("aria-expanded",$.panelOpen)("aria-label",$.ariaLabel||null)("aria-required",$.required.toString())("aria-disabled",$.disabled.toString())("aria-invalid",$.errorState)("aria-describedby",$._ariaDescribedby||null)("aria-activedescendant",$._getAriaActiveDescendant()),y.ekj("mat-select-disabled",$.disabled)("mat-select-invalid",$.errorState)("mat-select-required",$.required)("mat-select-empty",$.empty)("mat-select-multiple",$.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[y._Bn([{provide:o.Eo,useExisting:Le},{provide:C.HF,useExisting:Le}]),y.qOj],ngContentSelectors:_,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(q,$){if(1&q&&(y.F$t(u),y.TgZ(0,"div",0,1),y.NdJ("click",function(){return $.toggle()}),y.TgZ(3,"div",2),y.YNc(4,ae,2,1,"span",3),y.YNc(5,a,3,2,"span",4),y.qZA(),y.TgZ(6,"div",5),y._UZ(7,"div",6),y.qZA(),y.qZA(),y.YNc(8,p,4,14,"ng-template",7),y.NdJ("backdropClick",function(){return $.close()})("attach",function(){return $._onAttached()})("detach",function(){return $.close()})),2&q){const le=y.MAs(1);y.uIk("aria-owns",$.panelOpen?$.id+"-panel":null),y.xp6(3),y.Q6J("ngSwitch",$.empty),y.uIk("id",$._valueId),y.xp6(1),y.Q6J("ngSwitchCase",!0),y.xp6(1),y.Q6J("ngSwitchCase",!1),y.xp6(3),y.Q6J("cdkConnectedOverlayPanelClass",$._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",$._scrollStrategy)("cdkConnectedOverlayOrigin",le)("cdkConnectedOverlayOpen",$.panelOpen)("cdkConnectedOverlayPositions",$._positions)("cdkConnectedOverlayMinWidth",null==$._triggerRect?null:$._triggerRect.width)("cdkConnectedOverlayOffsetY",$._offsetY)}},directives:[e.xu,t.RF,t.n9,e.pI,t.ED,t.mk],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;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{display:table-cell;vertical-align:middle}.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-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;opacity:0}\n'],encapsulation:2,data:{animation:[L.transformPanelWrap,L.transformPanel]},changeDetection:0}),Le})(),he=(()=>{class Le{}return Le.\u0275fac=function(q){return new(q||Le)},Le.\u0275mod=y.oAB({type:Le}),Le.\u0275inj=y.cJS({providers:[Me],imports:[[t.ez,e.U8,C.Ng,C.BQ],M.ZD,o.lN,C.Ng,C.BQ]}),Le})()},2638:(Ve,Q,m)=>{"use strict";m.d(Q,{JX:()=>Ce,TM:()=>Be,Rh:()=>ye,SJ:()=>ze});var e=m(925),t=m(5303),y=m(9808),C=m(5e3),o=m(508),M=m(3191),l=m(1159),N=m(7579),s=m(4968),D=m(6451),A=m(9300),O=m(4004),E=m(9718),P=m(2722),w=m(1884),Z=m(5698),j=m(8675),W=m(8372),ie=m(1777),ee=m(6360),_e=m(5664),ce=m(226);const re=["*"];function de(Ie,K){if(1&Ie){const Me=C.EpF();C.TgZ(0,"div",2),C.NdJ("click",function(){return C.CHM(Me),C.oxw()._onBackdropClicked()}),C.qZA()}if(2&Ie){const Me=C.oxw();C.ekj("mat-drawer-shown",Me._isShowingBackdrop())}}function oe(Ie,K){1&Ie&&(C.TgZ(0,"mat-drawer-content"),C.Hsn(1,2),C.qZA())}const ae=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],b=["mat-drawer","mat-drawer-content","*"];function i(Ie,K){if(1&Ie){const Me=C.EpF();C.TgZ(0,"div",2),C.NdJ("click",function(){return C.CHM(Me),C.oxw()._onBackdropClicked()}),C.qZA()}if(2&Ie){const Me=C.oxw();C.ekj("mat-drawer-shown",Me._isShowingBackdrop())}}function a(Ie,K){1&Ie&&(C.TgZ(0,"mat-sidenav-content",3),C.Hsn(1,2),C.qZA())}const p=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],u=["mat-sidenav","mat-sidenav-content","*"],L={transformDrawer:(0,ie.X$)("transform",[(0,ie.SB)("open, open-instant",(0,ie.oB)({transform:"none",visibility:"visible"})),(0,ie.SB)("void",(0,ie.oB)({"box-shadow":"none",visibility:"hidden"})),(0,ie.eR)("void => open-instant",(0,ie.jt)("0ms")),(0,ie.eR)("void <=> open, open-instant => void",(0,ie.jt)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},x=new C.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function v(){return!1}}),r=new C.OlP("MAT_DRAWER_CONTAINER");let G=(()=>{class Ie extends t.PQ{constructor(Me,we,z,Ge,vt){super(z,Ge,vt),this._changeDetectorRef=Me,this._container=we}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return Ie.\u0275fac=function(Me){return new(Me||Ie)(C.Y36(C.sBO),C.Y36((0,C.Gpc)(()=>U)),C.Y36(C.SBq),C.Y36(t.mF),C.Y36(C.R0b))},Ie.\u0275cmp=C.Xpm({type:Ie,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(Me,we){2&Me&&C.Udp("margin-left",we._container._contentMargins.left,"px")("margin-right",we._container._contentMargins.right,"px")},features:[C.qOj],ngContentSelectors:re,decls:1,vars:0,template:function(Me,we){1&Me&&(C.F$t(),C.Hsn(0))},encapsulation:2,changeDetection:0}),Ie})(),F=(()=>{class Ie{constructor(Me,we,z,Ge,vt,Re,Ne,he){this._elementRef=Me,this._focusTrapFactory=we,this._focusMonitor=z,this._platform=Ge,this._ngZone=vt,this._interactivityChecker=Re,this._doc=Ne,this._container=he,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new N.x,this._animationEnd=new N.x,this._animationState="void",this.openedChange=new C.vpe(!0),this._openedStream=this.openedChange.pipe((0,A.h)(Le=>Le),(0,O.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,A.h)(Le=>Le.fromState!==Le.toState&&0===Le.toState.indexOf("open")),(0,E.h)(void 0)),this._closedStream=this.openedChange.pipe((0,A.h)(Le=>!Le),(0,O.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,A.h)(Le=>Le.fromState!==Le.toState&&"void"===Le.toState),(0,E.h)(void 0)),this._destroyed=new N.x,this.onPositionChanged=new C.vpe,this._modeChanged=new N.x,this.openedChange.subscribe(Le=>{Le?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{(0,s.R)(this._elementRef.nativeElement,"keydown").pipe((0,A.h)(Le=>Le.keyCode===l.hY&&!this.disableClose&&!(0,l.Vb)(Le)),(0,P.R)(this._destroyed)).subscribe(Le=>this._ngZone.run(()=>{this.close(),Le.stopPropagation(),Le.preventDefault()}))}),this._animationEnd.pipe((0,w.x)((Le,ke)=>Le.fromState===ke.fromState&&Le.toState===ke.toState)).subscribe(Le=>{const{fromState:ke,toState:q}=Le;(0===q.indexOf("open")&&"void"===ke||"void"===q&&0===ke.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(Me){(Me="end"===Me?"end":"start")!=this._position&&(this._position=Me,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(Me){this._mode=Me,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(Me){this._disableClose=(0,M.Ig)(Me)}get autoFocus(){const Me=this._autoFocus;return null==Me?"side"===this.mode?"dialog":"first-tabbable":Me}set autoFocus(Me){("true"===Me||"false"===Me)&&(Me=(0,M.Ig)(Me)),this._autoFocus=Me}get opened(){return this._opened}set opened(Me){this.toggle((0,M.Ig)(Me))}_forceFocus(Me,we){this._interactivityChecker.isFocusable(Me)||(Me.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{Me.addEventListener("blur",()=>Me.removeAttribute("tabindex")),Me.addEventListener("mousedown",()=>Me.removeAttribute("tabindex"))})),Me.focus(we)}_focusByCssSelector(Me,we){let z=this._elementRef.nativeElement.querySelector(Me);z&&this._forceFocus(z,we)}_takeFocus(){if(!this._focusTrap)return;const Me=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(we=>{!we&&"function"==typeof this._elementRef.nativeElement.focus&&Me.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(Me){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,Me):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){var Me;const we=null===(Me=this._doc)||void 0===Me?void 0:Me.activeElement;return!!we&&this._elementRef.nativeElement.contains(we)}ngAfterContentInit(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState()}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&this._focusTrap.destroy(),this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(Me){return this.toggle(!0,Me)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(Me=!this.opened,we){Me&&we&&(this._openedVia=we);const z=this._setOpen(Me,!Me&&this._isFocusWithinDrawer(),this._openedVia||"program");return Me||(this._openedVia=null),z}_setOpen(Me,we,z){return this._opened=Me,Me?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",we&&this._restoreFocus(z)),this._updateFocusTrapState(),new Promise(Ge=>{this.openedChange.pipe((0,Z.q)(1)).subscribe(vt=>Ge(vt?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}}return Ie.\u0275fac=function(Me){return new(Me||Ie)(C.Y36(C.SBq),C.Y36(_e.qV),C.Y36(_e.tE),C.Y36(e.t4),C.Y36(C.R0b),C.Y36(_e.ic),C.Y36(y.K0,8),C.Y36(r,8))},Ie.\u0275cmp=C.Xpm({type:Ie,selectors:[["mat-drawer"]],hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(Me,we){1&Me&&C.WFA("@transform.start",function(Ge){return we._animationStarted.next(Ge)})("@transform.done",function(Ge){return we._animationEnd.next(Ge)}),2&Me&&(C.uIk("align",null),C.d8E("@transform",we._animationState),C.ekj("mat-drawer-end","end"===we.position)("mat-drawer-over","over"===we.mode)("mat-drawer-push","push"===we.mode)("mat-drawer-side","side"===we.mode)("mat-drawer-opened",we.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:re,decls:2,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(Me,we){1&Me&&(C.F$t(),C.TgZ(0,"div",0),C.Hsn(1),C.qZA())},directives:[t.PQ],encapsulation:2,data:{animation:[L.transformDrawer]},changeDetection:0}),Ie})(),U=(()=>{class Ie{constructor(Me,we,z,Ge,vt,Re=!1,Ne){this._dir=Me,this._element=we,this._ngZone=z,this._changeDetectorRef=Ge,this._animationMode=Ne,this._drawers=new C.n_E,this.backdropClick=new C.vpe,this._destroyed=new N.x,this._doCheckSubject=new N.x,this._contentMargins={left:null,right:null},this._contentMarginChanges=new N.x,Me&&Me.change.pipe((0,P.R)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),vt.change().pipe((0,P.R)(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=Re}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(Me){this._autosize=(0,M.Ig)(Me)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(Me){this._backdropOverride=null==Me?null:(0,M.Ig)(Me)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe((0,j.O)(this._allDrawers),(0,P.R)(this._destroyed)).subscribe(Me=>{this._drawers.reset(Me.filter(we=>!we._container||we._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe((0,j.O)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(Me=>{this._watchDrawerToggle(Me),this._watchDrawerPosition(Me),this._watchDrawerMode(Me)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,W.b)(10),(0,P.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(Me=>Me.open())}close(){this._drawers.forEach(Me=>Me.close())}updateContentMargins(){let Me=0,we=0;if(this._left&&this._left.opened)if("side"==this._left.mode)Me+=this._left._getWidth();else if("push"==this._left.mode){const z=this._left._getWidth();Me+=z,we-=z}if(this._right&&this._right.opened)if("side"==this._right.mode)we+=this._right._getWidth();else if("push"==this._right.mode){const z=this._right._getWidth();we+=z,Me-=z}Me=Me||null,we=we||null,(Me!==this._contentMargins.left||we!==this._contentMargins.right)&&(this._contentMargins={left:Me,right:we},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(Me){Me._animationStarted.pipe((0,A.h)(we=>we.fromState!==we.toState),(0,P.R)(this._drawers.changes)).subscribe(we=>{"open-instant"!==we.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==Me.mode&&Me.openedChange.pipe((0,P.R)(this._drawers.changes)).subscribe(()=>this._setContainerClass(Me.opened))}_watchDrawerPosition(Me){!Me||Me.onPositionChanged.pipe((0,P.R)(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,Z.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(Me){Me&&Me._modeChanged.pipe((0,P.R)((0,D.T)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(Me){const we=this._element.nativeElement.classList,z="mat-drawer-container-has-open";Me?we.add(z):we.remove(z)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(Me=>{"end"==Me.position?this._end=Me:this._start=Me}),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(Me=>Me&&!Me.disableClose&&this._canHaveBackdrop(Me)).forEach(Me=>Me._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(Me){return"side"!==Me.mode||!!this._backdropOverride}_isDrawerOpen(Me){return null!=Me&&Me.opened}}return Ie.\u0275fac=function(Me){return new(Me||Ie)(C.Y36(ce.Is,8),C.Y36(C.SBq),C.Y36(C.R0b),C.Y36(C.sBO),C.Y36(t.rL),C.Y36(x),C.Y36(ee.Qb,8))},Ie.\u0275cmp=C.Xpm({type:Ie,selectors:[["mat-drawer-container"]],contentQueries:function(Me,we,z){if(1&Me&&(C.Suo(z,G,5),C.Suo(z,F,5)),2&Me){let Ge;C.iGM(Ge=C.CRH())&&(we._content=Ge.first),C.iGM(Ge=C.CRH())&&(we._allDrawers=Ge)}},viewQuery:function(Me,we){if(1&Me&&C.Gf(G,5),2&Me){let z;C.iGM(z=C.CRH())&&(we._userContent=z.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(Me,we){2&Me&&C.ekj("mat-drawer-container-explicit-backdrop",we._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[C._Bn([{provide:r,useExisting:Ie}])],ngContentSelectors:b,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(Me,we){1&Me&&(C.F$t(ae),C.YNc(0,de,1,2,"div",0),C.Hsn(1),C.Hsn(2,1),C.YNc(3,oe,2,0,"mat-drawer-content",1)),2&Me&&(C.Q6J("ngIf",we.hasBackdrop),C.xp6(3),C.Q6J("ngIf",!we._content))},directives:[y.O5,G],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-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0}),Ie})(),ye=(()=>{class Ie extends G{constructor(Me,we,z,Ge,vt){super(Me,we,z,Ge,vt)}}return Ie.\u0275fac=function(Me){return new(Me||Ie)(C.Y36(C.sBO),C.Y36((0,C.Gpc)(()=>Be)),C.Y36(C.SBq),C.Y36(t.mF),C.Y36(C.R0b))},Ie.\u0275cmp=C.Xpm({type:Ie,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(Me,we){2&Me&&C.Udp("margin-left",we._container._contentMargins.left,"px")("margin-right",we._container._contentMargins.right,"px")},features:[C.qOj],ngContentSelectors:re,decls:1,vars:0,template:function(Me,we){1&Me&&(C.F$t(),C.Hsn(0))},encapsulation:2,changeDetection:0}),Ie})(),Ce=(()=>{class Ie extends F{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(Me){this._fixedInViewport=(0,M.Ig)(Me)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(Me){this._fixedTopGap=(0,M.su)(Me)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(Me){this._fixedBottomGap=(0,M.su)(Me)}}return Ie.\u0275fac=function(){let K;return function(we){return(K||(K=C.n5z(Ie)))(we||Ie)}}(),Ie.\u0275cmp=C.Xpm({type:Ie,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(Me,we){2&Me&&(C.uIk("align",null),C.Udp("top",we.fixedInViewport?we.fixedTopGap:null,"px")("bottom",we.fixedInViewport?we.fixedBottomGap:null,"px"),C.ekj("mat-drawer-end","end"===we.position)("mat-drawer-over","over"===we.mode)("mat-drawer-push","push"===we.mode)("mat-drawer-side","side"===we.mode)("mat-drawer-opened",we.opened)("mat-sidenav-fixed",we.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[C.qOj],ngContentSelectors:re,decls:2,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(Me,we){1&Me&&(C.F$t(),C.TgZ(0,"div",0),C.Hsn(1),C.qZA())},directives:[t.PQ],encapsulation:2,data:{animation:[L.transformDrawer]},changeDetection:0}),Ie})(),Be=(()=>{class Ie extends U{}return Ie.\u0275fac=function(){let K;return function(we){return(K||(K=C.n5z(Ie)))(we||Ie)}}(),Ie.\u0275cmp=C.Xpm({type:Ie,selectors:[["mat-sidenav-container"]],contentQueries:function(Me,we,z){if(1&Me&&(C.Suo(z,ye,5),C.Suo(z,Ce,5)),2&Me){let Ge;C.iGM(Ge=C.CRH())&&(we._content=Ge.first),C.iGM(Ge=C.CRH())&&(we._allDrawers=Ge)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(Me,we){2&Me&&C.ekj("mat-drawer-container-explicit-backdrop",we._backdropOverride)},exportAs:["matSidenavContainer"],features:[C._Bn([{provide:r,useExisting:Ie}]),C.qOj],ngContentSelectors:u,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],["cdkScrollable","",4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"],["cdkScrollable",""]],template:function(Me,we){1&Me&&(C.F$t(p),C.YNc(0,i,1,2,"div",0),C.Hsn(1),C.Hsn(2,1),C.YNc(3,a,2,0,"mat-sidenav-content",1)),2&Me&&(C.Q6J("ngIf",we.hasBackdrop),C.xp6(3),C.Q6J("ngIf",!we._content))},directives:[y.O5,ye,t.PQ],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-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0}),Ie})(),ze=(()=>{class Ie{}return Ie.\u0275fac=function(Me){return new(Me||Ie)},Ie.\u0275mod=C.oAB({type:Ie}),Ie.\u0275inj=C.cJS({imports:[[y.ez,o.BQ,e.ud,t.ZD],t.ZD,o.BQ]}),Ie})()},2368:(Ve,Q,m)=>{"use strict";m.d(Q,{Rr:()=>W,rP:()=>ce});var e=m(7144),t=m(5e3),y=m(508),C=m(3191),o=m(3075),M=m(6360),l=m(5664);const N=["thumbContainer"],s=["toggleBar"],D=["input"],A=function(re){return{enterDuration:re}},O=["*"],E=new t.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let P=0;const w={provide:o.JU,useExisting:(0,t.Gpc)(()=>W),multi:!0};class Z{constructor(de,oe){this.source=de,this.checked=oe}}const j=(0,y.sb)((0,y.pj)((0,y.Kr)((0,y.Id)(class{constructor(re){this._elementRef=re}}))));let W=(()=>{class re extends j{constructor(oe,ae,b,i,a,p){super(oe),this._focusMonitor=ae,this._changeDetectorRef=b,this.defaults=a,this._onChange=u=>{},this._onTouched=()=>{},this._uniqueId="mat-slide-toggle-"+ ++P,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 t.vpe,this.toggleChange=new t.vpe,this.tabIndex=parseInt(i)||0,this.color=this.defaultColor=a.color||"accent",this._noopAnimations="NoopAnimations"===p}get required(){return this._required}set required(oe){this._required=(0,C.Ig)(oe)}get checked(){return this._checked}set checked(oe){this._checked=(0,C.Ig)(oe),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(oe=>{oe||Promise.resolve().then(()=>this._onTouched())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onChangeEvent(oe){oe.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(oe){oe.stopPropagation()}writeValue(oe){this.checked=!!oe}registerOnChange(oe){this._onChange=oe}registerOnTouched(oe){this._onTouched=oe}setDisabledState(oe){this.disabled=oe,this._changeDetectorRef.markForCheck()}focus(oe,ae){ae?this._focusMonitor.focusVia(this._inputElement,ae,oe):this._inputElement.nativeElement.focus(oe)}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 re.\u0275fac=function(oe){return new(oe||re)(t.Y36(t.SBq),t.Y36(l.tE),t.Y36(t.sBO),t.$8M("tabindex"),t.Y36(E),t.Y36(M.Qb,8))},re.\u0275cmp=t.Xpm({type:re,selectors:[["mat-slide-toggle"]],viewQuery:function(oe,ae){if(1&oe&&(t.Gf(N,5),t.Gf(s,5),t.Gf(D,5)),2&oe){let b;t.iGM(b=t.CRH())&&(ae._thumbEl=b.first),t.iGM(b=t.CRH())&&(ae._thumbBarEl=b.first),t.iGM(b=t.CRH())&&(ae._inputElement=b.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:12,hostBindings:function(oe,ae){2&oe&&(t.Ikx("id",ae.id),t.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),t.ekj("mat-checked",ae.checked)("mat-disabled",ae.disabled)("mat-slide-toggle-label-before","before"==ae.labelPosition)("_mat-animation-noopable",ae._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:[t._Bn([w]),t.qOj],ngContentSelectors:O,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(oe,ae){if(1&oe&&(t.F$t(),t.TgZ(0,"label",0,1),t.TgZ(2,"div",2,3),t.TgZ(4,"input",4,5),t.NdJ("change",function(i){return ae._onChangeEvent(i)})("click",function(i){return ae._onInputClick(i)}),t.qZA(),t.TgZ(6,"div",6,7),t._UZ(8,"div",8),t.TgZ(9,"div",9),t._UZ(10,"div",10),t.qZA(),t.qZA(),t.qZA(),t.TgZ(11,"span",11,12),t.NdJ("cdkObserveContent",function(){return ae._onLabelTextChange()}),t.TgZ(13,"span",13),t._uU(14,"\xa0"),t.qZA(),t.Hsn(15),t.qZA(),t.qZA()),2&oe){const b=t.MAs(1),i=t.MAs(12);t.uIk("for",ae.inputId),t.xp6(2),t.ekj("mat-slide-toggle-bar-no-side-margin",!i.textContent||!i.textContent.trim()),t.xp6(2),t.Q6J("id",ae.inputId)("required",ae.required)("tabIndex",ae.tabIndex)("checked",ae.checked)("disabled",ae.disabled),t.uIk("name",ae.name)("aria-checked",ae.checked.toString())("aria-label",ae.ariaLabel)("aria-labelledby",ae.ariaLabelledby)("aria-describedby",ae.ariaDescribedby),t.xp6(5),t.Q6J("matRippleTrigger",b)("matRippleDisabled",ae.disableRipple||ae.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",t.VKq(18,A,ae._noopAnimations?0:150))}},directives:[y.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;-moz-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%}.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}),re})(),_e=(()=>{class re{}return re.\u0275fac=function(oe){return new(oe||re)},re.\u0275mod=t.oAB({type:re}),re.\u0275inj=t.cJS({}),re})(),ce=(()=>{class re{}return re.\u0275fac=function(oe){return new(oe||re)},re.\u0275mod=t.oAB({type:re}),re.\u0275inj=t.cJS({imports:[[_e,y.si,y.BQ,e.Q8],_e,y.BQ]}),re})()},7261:(Ve,Q,m)=>{"use strict";m.d(Q,{Ve:()=>de,ux:()=>ae,ZX:()=>re});var e=m(9776),t=m(7429),y=m(9808),C=m(5e3),o=m(508),M=m(7423),l=m(7579),N=m(5698),s=m(2722),D=m(1777),A=m(925),O=m(5113),E=m(5664);function P(b,i){if(1&b){const a=C.EpF();C.TgZ(0,"div",1),C.TgZ(1,"button",2),C.NdJ("click",function(){return C.CHM(a),C.oxw().action()}),C._uU(2),C.qZA(),C.qZA()}if(2&b){const a=C.oxw();C.xp6(2),C.Oqu(a.data.action)}}function w(b,i){}const Z=new C.OlP("MatSnackBarData");class j{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 ie{constructor(i,a){this._overlayRef=a,this._afterDismissed=new l.x,this._afterOpened=new l.x,this._onAction=new l.x,this._dismissedByAction=!1,this.containerInstance=i,this.onAction().subscribe(()=>this.dismiss()),i._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()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(i){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(i,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 ee=(()=>{class b{constructor(a,p){this.snackBarRef=a,this.data=p}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return b.\u0275fac=function(a){return new(a||b)(C.Y36(ie),C.Y36(Z))},b.\u0275cmp=C.Xpm({type:b,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(a,p){1&a&&(C.TgZ(0,"span"),C._uU(1),C.qZA(),C.YNc(2,P,3,1,"div",0)),2&a&&(C.xp6(1),C.Oqu(p.data.message),C.xp6(1),C.Q6J("ngIf",p.hasAction))},directives:[y.O5,M.lW],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}\n"],encapsulation:2,changeDetection:0}),b})();const _e={snackBarState:(0,D.X$)("state",[(0,D.SB)("void, hidden",(0,D.oB)({transform:"scale(0.8)",opacity:0})),(0,D.SB)("visible",(0,D.oB)({transform:"scale(1)",opacity:1})),(0,D.eR)("* => visible",(0,D.jt)("150ms cubic-bezier(0, 0, 0.2, 1)")),(0,D.eR)("* => void, * => hidden",(0,D.jt)("75ms cubic-bezier(0.4, 0.0, 1, 1)",(0,D.oB)({opacity:0})))])};let ce=(()=>{class b extends t.en{constructor(a,p,u,_,L){super(),this._ngZone=a,this._elementRef=p,this._changeDetectorRef=u,this._platform=_,this.snackBarConfig=L,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new l.x,this._onExit=new l.x,this._onEnter=new l.x,this._animationState="void",this.attachDomPortal=I=>(this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachDomPortal(I)),this._live="assertive"!==L.politeness||L.announcementMessage?"off"===L.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(a){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(a)}attachTemplatePortal(a){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(a)}onAnimationEnd(a){const{fromState:p,toState:u}=a;if(("void"===u&&"void"!==p||"hidden"===u)&&this._completeExit(),"visible"===u){const _=this._onEnter;this._ngZone.run(()=>{_.next(),_.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return 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,N.q)(1)).subscribe(()=>{this._onExit.next(),this._onExit.complete()})}_applySnackBarClasses(){const a=this._elementRef.nativeElement,p=this.snackBarConfig.panelClass;p&&(Array.isArray(p)?p.forEach(u=>a.classList.add(u)):a.classList.add(p)),"center"===this.snackBarConfig.horizontalPosition&&a.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&a.classList.add("mat-snack-bar-top")}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const a=this._elementRef.nativeElement.querySelector("[aria-hidden]"),p=this._elementRef.nativeElement.querySelector("[aria-live]");if(a&&p){let u=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&a.contains(document.activeElement)&&(u=document.activeElement),a.removeAttribute("aria-hidden"),p.appendChild(a),null==u||u.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return b.\u0275fac=function(a){return new(a||b)(C.Y36(C.R0b),C.Y36(C.SBq),C.Y36(C.sBO),C.Y36(A.t4),C.Y36(j))},b.\u0275cmp=C.Xpm({type:b,selectors:[["snack-bar-container"]],viewQuery:function(a,p){if(1&a&&C.Gf(t.Pl,7),2&a){let u;C.iGM(u=C.CRH())&&(p._portalOutlet=u.first)}},hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(a,p){1&a&&C.WFA("@state.done",function(_){return p.onAnimationEnd(_)}),2&a&&C.d8E("@state",p._animationState)},features:[C.qOj],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(a,p){1&a&&(C.TgZ(0,"div",0),C.YNc(1,w,0,0,"ng-template",1),C.qZA(),C._UZ(2,"div")),2&a&&(C.xp6(2),C.uIk("aria-live",p._live)("role",p._role))},directives:[t.Pl],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}\n"],encapsulation:2,data:{animation:[_e.snackBarState]}}),b})(),re=(()=>{class b{}return b.\u0275fac=function(a){return new(a||b)},b.\u0275mod=C.oAB({type:b}),b.\u0275inj=C.cJS({imports:[[e.U8,t.eL,y.ez,M.ot,o.BQ],o.BQ]}),b})();const de=new C.OlP("mat-snack-bar-default-options",{providedIn:"root",factory:function oe(){return new j}});let ae=(()=>{class b{constructor(a,p,u,_,L,I){this._overlay=a,this._live=p,this._injector=u,this._breakpointObserver=_,this._parentSnackBar=L,this._defaultConfig=I,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=ee,this.snackBarContainerComponent=ce,this.handsetCssClass="mat-snack-bar-handset"}get _openedSnackBarRef(){const a=this._parentSnackBar;return a?a._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(a){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=a:this._snackBarRefAtThisLevel=a}openFromComponent(a,p){return this._attach(a,p)}openFromTemplate(a,p){return this._attach(a,p)}open(a,p="",u){const _=Object.assign(Object.assign({},this._defaultConfig),u);return _.data={message:a,action:p},_.announcementMessage===a&&(_.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,_)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(a,p){const _=C.zs3.create({parent:p&&p.viewContainerRef&&p.viewContainerRef.injector||this._injector,providers:[{provide:j,useValue:p}]}),L=new t.C5(this.snackBarContainerComponent,p.viewContainerRef,_),I=a.attach(L);return I.instance.snackBarConfig=p,I.instance}_attach(a,p){const u=Object.assign(Object.assign(Object.assign({},new j),this._defaultConfig),p),_=this._createOverlay(u),L=this._attachSnackBarContainer(_,u),I=new ie(L,_);if(a instanceof C.Rgc){const x=new t.UE(a,null,{$implicit:u.data,snackBarRef:I});I.instance=L.attachTemplatePortal(x)}else{const x=this._createInjector(u,I),r=new t.C5(a,void 0,x),v=L.attachComponentPortal(r);I.instance=v.instance}return this._breakpointObserver.observe(O.u3.HandsetPortrait).pipe((0,s.R)(_.detachments())).subscribe(x=>{_.overlayElement.classList.toggle(this.handsetCssClass,x.matches)}),u.announcementMessage&&L._onAnnounce.subscribe(()=>{this._live.announce(u.announcementMessage,u.politeness)}),this._animateSnackBar(I,u),this._openedSnackBarRef=I,this._openedSnackBarRef}_animateSnackBar(a,p){a.afterDismissed().subscribe(()=>{this._openedSnackBarRef==a&&(this._openedSnackBarRef=null),p.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{a.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):a.containerInstance.enter(),p.duration&&p.duration>0&&a.afterOpened().subscribe(()=>a._dismissAfter(p.duration))}_createOverlay(a){const p=new e.X_;p.direction=a.direction;let u=this._overlay.position().global();const _="rtl"===a.direction,L="left"===a.horizontalPosition||"start"===a.horizontalPosition&&!_||"end"===a.horizontalPosition&&_,I=!L&&"center"!==a.horizontalPosition;return L?u.left("0"):I?u.right("0"):u.centerHorizontally(),"top"===a.verticalPosition?u.top("0"):u.bottom("0"),p.positionStrategy=u,this._overlay.create(p)}_createInjector(a,p){return C.zs3.create({parent:a&&a.viewContainerRef&&a.viewContainerRef.injector||this._injector,providers:[{provide:ie,useValue:p},{provide:Z,useValue:a.data}]})}}return b.\u0275fac=function(a){return new(a||b)(C.LFG(e.aV),C.LFG(E.Kd),C.LFG(C.zs3),C.LFG(O.Yg),C.LFG(b,12),C.LFG(de))},b.\u0275prov=C.Yz7({token:b,factory:b.\u0275fac,providedIn:re}),b})()},4847:(Ve,Q,m)=>{"use strict";m.d(Q,{YE:()=>de,nU:()=>b,JX:()=>i});var e=m(5e3),t=m(3191),y=m(1159),C=m(508),o=m(7579),M=m(6451),l=m(1777),N=m(5664),s=m(9808);const D=["mat-sort-header",""];function A(a,p){if(1&a){const u=e.EpF();e.TgZ(0,"div",3),e.NdJ("@arrowPosition.start",function(){return e.CHM(u),e.oxw()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return e.CHM(u),e.oxw()._disableViewStateAnimation=!1}),e._UZ(1,"div",4),e.TgZ(2,"div",5),e._UZ(3,"div",6),e._UZ(4,"div",7),e._UZ(5,"div",8),e.qZA(),e.qZA()}if(2&a){const u=e.oxw();e.Q6J("@arrowOpacity",u._getArrowViewState())("@arrowPosition",u._getArrowViewState())("@allowChildren",u._getArrowDirectionState()),e.xp6(2),e.Q6J("@indicator",u._getArrowDirectionState()),e.xp6(1),e.Q6J("@leftPointer",u._getArrowDirectionState()),e.xp6(1),e.Q6J("@rightPointer",u._getArrowDirectionState())}}const O=["*"],E=C.mZ.ENTERING+" "+C.yN.STANDARD_CURVE,P={indicator:(0,l.X$)("indicator",[(0,l.SB)("active-asc, asc",(0,l.oB)({transform:"translateY(0px)"})),(0,l.SB)("active-desc, desc",(0,l.oB)({transform:"translateY(10px)"})),(0,l.eR)("active-asc <=> active-desc",(0,l.jt)(E))]),leftPointer:(0,l.X$)("leftPointer",[(0,l.SB)("active-asc, asc",(0,l.oB)({transform:"rotate(-45deg)"})),(0,l.SB)("active-desc, desc",(0,l.oB)({transform:"rotate(45deg)"})),(0,l.eR)("active-asc <=> active-desc",(0,l.jt)(E))]),rightPointer:(0,l.X$)("rightPointer",[(0,l.SB)("active-asc, asc",(0,l.oB)({transform:"rotate(45deg)"})),(0,l.SB)("active-desc, desc",(0,l.oB)({transform:"rotate(-45deg)"})),(0,l.eR)("active-asc <=> active-desc",(0,l.jt)(E))]),arrowOpacity:(0,l.X$)("arrowOpacity",[(0,l.SB)("desc-to-active, asc-to-active, active",(0,l.oB)({opacity:1})),(0,l.SB)("desc-to-hint, asc-to-hint, hint",(0,l.oB)({opacity:.54})),(0,l.SB)("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",(0,l.oB)({opacity:0})),(0,l.eR)("* => asc, * => desc, * => active, * => hint, * => void",(0,l.jt)("0ms")),(0,l.eR)("* <=> *",(0,l.jt)(E))]),arrowPosition:(0,l.X$)("arrowPosition",[(0,l.eR)("* => desc-to-hint, * => desc-to-active",(0,l.jt)(E,(0,l.F4)([(0,l.oB)({transform:"translateY(-25%)"}),(0,l.oB)({transform:"translateY(0)"})]))),(0,l.eR)("* => hint-to-desc, * => active-to-desc",(0,l.jt)(E,(0,l.F4)([(0,l.oB)({transform:"translateY(0)"}),(0,l.oB)({transform:"translateY(25%)"})]))),(0,l.eR)("* => asc-to-hint, * => asc-to-active",(0,l.jt)(E,(0,l.F4)([(0,l.oB)({transform:"translateY(25%)"}),(0,l.oB)({transform:"translateY(0)"})]))),(0,l.eR)("* => hint-to-asc, * => active-to-asc",(0,l.jt)(E,(0,l.F4)([(0,l.oB)({transform:"translateY(0)"}),(0,l.oB)({transform:"translateY(-25%)"})]))),(0,l.SB)("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",(0,l.oB)({transform:"translateY(0)"})),(0,l.SB)("hint-to-desc, active-to-desc, desc",(0,l.oB)({transform:"translateY(-25%)"})),(0,l.SB)("hint-to-asc, active-to-asc, asc",(0,l.oB)({transform:"translateY(25%)"}))]),allowChildren:(0,l.X$)("allowChildren",[(0,l.eR)("* <=> *",[(0,l.IO)("@*",(0,l.pV)(),{optional:!0})])])};let ie=(()=>{class a{constructor(){this.changes=new o.x}}return a.\u0275fac=function(u){return new(u||a)},a.\u0275prov=e.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"}),a})();const _e={provide:ie,deps:[[new e.FiY,new e.tp0,ie]],useFactory:function ee(a){return a||new ie}},ce=new e.OlP("MAT_SORT_DEFAULT_OPTIONS"),re=(0,C.dB)((0,C.Id)(class{}));let de=(()=>{class a extends re{constructor(u){super(),this._defaultOptions=u,this.sortables=new Map,this._stateChanges=new o.x,this.start="asc",this._direction="",this.sortChange=new e.vpe}get direction(){return this._direction}set direction(u){this._direction=u}get disableClear(){return this._disableClear}set disableClear(u){this._disableClear=(0,t.Ig)(u)}register(u){this.sortables.set(u.id,u)}deregister(u){this.sortables.delete(u.id)}sort(u){this.active!=u.id?(this.active=u.id,this.direction=u.start?u.start:this.start):this.direction=this.getNextSortDirection(u),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(u){var _,L,I;if(!u)return"";const x=null!==(L=null!==(_=null==u?void 0:u.disableClear)&&void 0!==_?_:this.disableClear)&&void 0!==L?L:!!(null===(I=this._defaultOptions)||void 0===I?void 0:I.disableClear);let r=function oe(a,p){let u=["asc","desc"];return"desc"==a&&u.reverse(),p||u.push(""),u}(u.start||this.start,x),v=r.indexOf(this.direction)+1;return v>=r.length&&(v=0),r[v]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return a.\u0275fac=function(u){return new(u||a)(e.Y36(ce,8))},a.\u0275dir=e.lG2({type:a,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[e.qOj,e.TTD]}),a})();const ae=(0,C.Id)(class{});let b=(()=>{class a extends ae{constructor(u,_,L,I,x,r,v){super(),this._intl=u,this._changeDetectorRef=_,this._sort=L,this._columnDef=I,this._focusMonitor=x,this._elementRef=r,this._ariaDescriber=v,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(u){this._updateSortActionDescription(u)}get disableClear(){return this._disableClear}set disableClear(u){this._disableClear=(0,t.Ig)(u)}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('[role="button"]'),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(u=>{const _=!!u;_!==this._showIndicatorHint&&(this._setIndicatorHintVisible(_),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(u){this._isDisabled()&&u||(this._showIndicatorHint=u,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(u){this._viewState=u||{},this._disableViewStateAnimation&&(this._viewState={toState:u.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(u){!this._isDisabled()&&(u.keyCode===y.L_||u.keyCode===y.K5)&&(u.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 u=this._viewState.fromState;return(u?`${u}-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(u){var _,L;this._sortButton&&(null===(_=this._ariaDescriber)||void 0===_||_.removeDescription(this._sortButton,this._sortActionDescription),null===(L=this._ariaDescriber)||void 0===L||L.describe(this._sortButton,u)),this._sortActionDescription=u}_handleStateChanges(){this._rerenderSubscription=(0,M.T)(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}}return a.\u0275fac=function(u){return new(u||a)(e.Y36(ie),e.Y36(e.sBO),e.Y36(de,8),e.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),e.Y36(N.tE),e.Y36(e.SBq),e.Y36(N.$s,8))},a.\u0275cmp=e.Xpm({type:a,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(u,_){1&u&&e.NdJ("click",function(){return _._handleClick()})("keydown",function(I){return _._handleKeydown(I)})("mouseenter",function(){return _._setIndicatorHintVisible(!0)})("mouseleave",function(){return _._setIndicatorHintVisible(!1)}),2&u&&(e.uIk("aria-sort",_._getAriaSortAttribute()),e.ekj("mat-sort-header-disabled",_._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[e.qOj],attrs:D,ngContentSelectors:O,decls:4,vars:6,consts:[["role","button",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(u,_){1&u&&(e.F$t(),e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.Hsn(2),e.qZA(),e.YNc(3,A,6,6,"div",2),e.qZA()),2&u&&(e.ekj("mat-sort-header-sorted",_._isSorted())("mat-sort-header-position-before","before"==_.arrowPosition),e.uIk("tabindex",_._isDisabled()?null:0),e.xp6(3),e.Q6J("ngIf",_._renderArrow()))},directives:[s.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:[P.indicator,P.leftPointer,P.rightPointer,P.arrowOpacity,P.arrowPosition,P.allowChildren]},changeDetection:0}),a})(),i=(()=>{class a{}return a.\u0275fac=function(u){return new(u||a)},a.\u0275mod=e.oAB({type:a}),a.\u0275inj=e.cJS({providers:[_e],imports:[[s.ez,C.BQ]]}),a})()},5615:(Ve,Q,m)=>{"use strict";m.d(Q,{C0:()=>we,VY:()=>F,Vq:()=>Re,z9:()=>K,T5:()=>Le,Ic:()=>Ne,fd:()=>he});var e=m(7429),t=m(1555),y=m(9808),C=m(5e3),o=m(7423),M=m(508),l=m(5245),N=m(7579),s=m(727),D=m(5664),A=m(3900),O=m(4004),E=m(8675),P=m(2722),w=m(1884),Z=m(1777),j=m(226);function W(ke,q){if(1&ke&&C.GkF(0,8),2&ke){const $=C.oxw();C.Q6J("ngTemplateOutlet",$.iconOverrides[$.state])("ngTemplateOutletContext",$._getIconContext())}}function ie(ke,q){if(1&ke&&(C.TgZ(0,"span"),C._uU(1),C.qZA()),2&ke){const $=C.oxw(2);C.xp6(1),C.Oqu($._getDefaultTextForState($.state))}}function ee(ke,q){if(1&ke&&(C.TgZ(0,"span",13),C._uU(1),C.qZA()),2&ke){const $=C.oxw(2);C.xp6(1),C.Oqu($._intl.completedLabel)}}function _e(ke,q){if(1&ke&&(C.TgZ(0,"span",13),C._uU(1),C.qZA()),2&ke){const $=C.oxw(2);C.xp6(1),C.Oqu($._intl.editableLabel)}}function ce(ke,q){if(1&ke&&(C.TgZ(0,"mat-icon"),C._uU(1),C.qZA()),2&ke){const $=C.oxw(2);C.xp6(1),C.Oqu($._getDefaultTextForState($.state))}}function re(ke,q){if(1&ke&&(C.ynx(0,9),C.YNc(1,ie,2,1,"span",10),C.YNc(2,ee,2,1,"span",11),C.YNc(3,_e,2,1,"span",11),C.YNc(4,ce,2,1,"mat-icon",12),C.BQk()),2&ke){const $=C.oxw();C.Q6J("ngSwitch",$.state),C.xp6(1),C.Q6J("ngSwitchCase","number"),C.xp6(1),C.Q6J("ngIf","done"===$.state),C.xp6(1),C.Q6J("ngIf","edit"===$.state)}}function de(ke,q){if(1&ke&&(C.TgZ(0,"div",14),C.GkF(1,15),C.qZA()),2&ke){const $=C.oxw();C.xp6(1),C.Q6J("ngTemplateOutlet",$._templateLabel().template)}}function oe(ke,q){if(1&ke&&(C.TgZ(0,"div",14),C._uU(1),C.qZA()),2&ke){const $=C.oxw();C.xp6(1),C.Oqu($.label)}}function ae(ke,q){if(1&ke&&(C.TgZ(0,"div",16),C._uU(1),C.qZA()),2&ke){const $=C.oxw();C.xp6(1),C.Oqu($._intl.optionalLabel)}}function b(ke,q){if(1&ke&&(C.TgZ(0,"div",17),C._uU(1),C.qZA()),2&ke){const $=C.oxw();C.xp6(1),C.Oqu($.errorMessage)}}function i(ke,q){}function a(ke,q){if(1&ke&&(C.Hsn(0),C.YNc(1,i,0,0,"ng-template",0)),2&ke){const $=C.oxw();C.xp6(1),C.Q6J("cdkPortalOutlet",$._portal)}}const p=["*"];function u(ke,q){1&ke&&C._UZ(0,"div",9)}const _=function(ke,q){return{step:ke,i:q}};function L(ke,q){if(1&ke&&(C.ynx(0),C.GkF(1,7),C.YNc(2,u,1,0,"div",8),C.BQk()),2&ke){const $=q.$implicit,le=q.index,xe=q.last;C.oxw(2);const Ue=C.MAs(4);C.xp6(1),C.Q6J("ngTemplateOutlet",Ue)("ngTemplateOutletContext",C.WLB(3,_,$,le)),C.xp6(1),C.Q6J("ngIf",!xe)}}function I(ke,q){if(1&ke){const $=C.EpF();C.TgZ(0,"div",10),C.NdJ("@horizontalStepTransition.done",function(xe){return C.CHM($),C.oxw(2)._animationDone.next(xe)}),C.GkF(1,11),C.qZA()}if(2&ke){const $=q.$implicit,le=q.index,xe=C.oxw(2);C.Q6J("@horizontalStepTransition",xe._getAnimationDirection(le))("id",xe._getStepContentId(le)),C.uIk("aria-labelledby",xe._getStepLabelId(le))("aria-expanded",xe.selectedIndex===le),C.xp6(1),C.Q6J("ngTemplateOutlet",$.content)}}function x(ke,q){if(1&ke&&(C.ynx(0),C.TgZ(1,"div",3),C.YNc(2,L,3,6,"ng-container",4),C.qZA(),C.TgZ(3,"div",5),C.YNc(4,I,2,5,"div",6),C.qZA(),C.BQk()),2&ke){const $=C.oxw();C.xp6(2),C.Q6J("ngForOf",$.steps),C.xp6(2),C.Q6J("ngForOf",$.steps)}}function r(ke,q){if(1&ke){const $=C.EpF();C.TgZ(0,"div",13),C.GkF(1,7),C.TgZ(2,"div",14),C.TgZ(3,"div",15),C.NdJ("@verticalStepTransition.done",function(xe){return C.CHM($),C.oxw(2)._animationDone.next(xe)}),C.TgZ(4,"div",16),C.GkF(5,11),C.qZA(),C.qZA(),C.qZA(),C.qZA()}if(2&ke){const $=q.$implicit,le=q.index,xe=q.last,Ue=C.oxw(2),lt=C.MAs(4);C.xp6(1),C.Q6J("ngTemplateOutlet",lt)("ngTemplateOutletContext",C.WLB(9,_,$,le)),C.xp6(1),C.ekj("mat-stepper-vertical-line",!xe),C.xp6(1),C.Q6J("@verticalStepTransition",Ue._getAnimationDirection(le))("id",Ue._getStepContentId(le)),C.uIk("aria-labelledby",Ue._getStepLabelId(le))("aria-expanded",Ue.selectedIndex===le),C.xp6(2),C.Q6J("ngTemplateOutlet",$.content)}}function v(ke,q){if(1&ke&&(C.ynx(0),C.YNc(1,r,6,12,"div",12),C.BQk()),2&ke){const $=C.oxw();C.xp6(1),C.Q6J("ngForOf",$.steps)}}function G(ke,q){if(1&ke){const $=C.EpF();C.TgZ(0,"mat-step-header",17),C.NdJ("click",function(){return C.CHM($).step.select()})("keydown",function(xe){return C.CHM($),C.oxw()._onKeydown(xe)}),C.qZA()}if(2&ke){const $=q.step,le=q.i,xe=C.oxw();C.ekj("mat-horizontal-stepper-header","horizontal"===xe.orientation)("mat-vertical-stepper-header","vertical"===xe.orientation),C.Q6J("tabIndex",xe._getFocusIndex()===le?0:-1)("id",xe._getStepLabelId(le))("index",le)("state",xe._getIndicatorType(le,$.state))("label",$.stepLabel||$.label)("selected",xe.selectedIndex===le)("active",xe._stepIsNavigable(le,$))("optional",$.optional)("errorMessage",$.errorMessage)("iconOverrides",xe._iconOverrides)("disableRipple",xe.disableRipple||!xe._stepIsNavigable(le,$))("color",$.color||xe.color),C.uIk("aria-posinset",le+1)("aria-setsize",xe.steps.length)("aria-controls",xe._getStepContentId(le))("aria-selected",xe.selectedIndex==le)("aria-label",$.ariaLabel||null)("aria-labelledby",!$.ariaLabel&&$.ariaLabelledby?$.ariaLabelledby:null)("aria-disabled",!xe._stepIsNavigable(le,$)||null)}}let F=(()=>{class ke extends t.u6{}return ke.\u0275fac=function(){let q;return function(le){return(q||(q=C.n5z(ke)))(le||ke)}}(),ke.\u0275dir=C.lG2({type:ke,selectors:[["","matStepLabel",""]],features:[C.qOj]}),ke})(),U=(()=>{class ke{constructor(){this.changes=new N.x,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return ke.\u0275fac=function($){return new($||ke)},ke.\u0275prov=C.Yz7({token:ke,factory:ke.\u0275fac,providedIn:"root"}),ke})();const Ce={provide:U,deps:[[new C.FiY,new C.tp0,U]],useFactory:function ye(ke){return ke||new U}},Be=(0,M.pj)(class extends t.KL{constructor(q){super(q)}},"primary");let ze=(()=>{class ke extends Be{constructor($,le,xe,Ue){super(xe),this._intl=$,this._focusMonitor=le,this._intlSubscription=$.changes.subscribe(()=>Ue.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus($,le){$?this._focusMonitor.focusVia(this._elementRef,$,le):this._elementRef.nativeElement.focus(le)}_stringLabel(){return this.label instanceof F?null:this.label}_templateLabel(){return this.label instanceof F?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState($){return"number"==$?`${this.index+1}`:"edit"==$?"create":"error"==$?"warning":$}}return ke.\u0275fac=function($){return new($||ke)(C.Y36(U),C.Y36(D.tE),C.Y36(C.SBq),C.Y36(C.sBO))},ke.\u0275cmp=C.Xpm({type:ke,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:[C.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"],[4,"ngSwitchCase"],["class","cdk-visually-hidden",4,"ngIf"],[4,"ngSwitchDefault"],[1,"cdk-visually-hidden"],[1,"mat-step-text-label"],[3,"ngTemplateOutlet"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function($,le){1&$&&(C._UZ(0,"div",0),C.TgZ(1,"div"),C.TgZ(2,"div",1),C.YNc(3,W,1,2,"ng-container",2),C.YNc(4,re,5,4,"ng-container",3),C.qZA(),C.qZA(),C.TgZ(5,"div",4),C.YNc(6,de,2,1,"div",5),C.YNc(7,oe,2,1,"div",5),C.YNc(8,ae,2,1,"div",6),C.YNc(9,b,2,1,"div",7),C.qZA()),2&$&&(C.Q6J("matRippleTrigger",le._getHostElement())("matRippleDisabled",le.disableRipple),C.xp6(1),C.Gre("mat-step-icon-state-",le.state," mat-step-icon"),C.ekj("mat-step-icon-selected",le.selected),C.xp6(1),C.Q6J("ngSwitch",!(!le.iconOverrides||!le.iconOverrides[le.state])),C.xp6(1),C.Q6J("ngSwitchCase",!0),C.xp6(2),C.ekj("mat-step-label-active",le.active)("mat-step-label-selected",le.selected)("mat-step-label-error","error"==le.state),C.xp6(1),C.Q6J("ngIf",le._templateLabel()),C.xp6(1),C.Q6J("ngIf",le._stringLabel()),C.xp6(1),C.Q6J("ngIf",le.optional&&"error"!=le.state),C.xp6(1),C.Q6J("ngIf","error"==le.state))},directives:[M.wG,y.RF,y.n9,y.ED,y.O5,y.tP,l.Hw],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,.mat-step-icon .mat-icon{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.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}),ke})();const Ie={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 K=(()=>{class ke{constructor($){this.templateRef=$}}return ke.\u0275fac=function($){return new($||ke)(C.Y36(C.Rgc))},ke.\u0275dir=C.lG2({type:ke,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),ke})(),Me=(()=>{class ke{constructor($){this._template=$}}return ke.\u0275fac=function($){return new($||ke)(C.Y36(C.Rgc))},ke.\u0275dir=C.lG2({type:ke,selectors:[["ng-template","matStepContent",""]]}),ke})(),we=(()=>{class ke extends t.be{constructor($,le,xe,Ue){super($,Ue),this._errorStateMatcher=le,this._viewContainerRef=xe,this._isSelected=s.w0.EMPTY}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe((0,A.w)(()=>this._stepper.selectionChange.pipe((0,O.U)($=>$.selectedStep===this),(0,E.O)(this._stepper.selected===this)))).subscribe($=>{$&&this._lazyContent&&!this._portal&&(this._portal=new e.UE(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState($,le){return this._errorStateMatcher.isErrorState($,le)||!!($&&$.invalid&&this.interacted)}}return ke.\u0275fac=function($){return new($||ke)(C.Y36((0,C.Gpc)(()=>Re)),C.Y36(M.rD,4),C.Y36(C.s_b),C.Y36(t.gx,8))},ke.\u0275cmp=C.Xpm({type:ke,selectors:[["mat-step"]],contentQueries:function($,le,xe){if(1&$&&(C.Suo(xe,F,5),C.Suo(xe,Me,5)),2&$){let Ue;C.iGM(Ue=C.CRH())&&(le.stepLabel=Ue.first),C.iGM(Ue=C.CRH())&&(le._lazyContent=Ue.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[C._Bn([{provide:M.rD,useExisting:ke},{provide:t.be,useExisting:ke}]),C.qOj],ngContentSelectors:p,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function($,le){1&$&&(C.F$t(),C.YNc(0,a,2,1,"ng-template"))},directives:[e.Pl],encapsulation:2,changeDetection:0}),ke})(),z=(()=>{class ke extends t.B8{}return ke.\u0275fac=function(){let q;return function(le){return(q||(q=C.n5z(ke)))(le||ke)}}(),ke.\u0275dir=C.lG2({type:ke,features:[C.qOj]}),ke})(),Ge=(()=>{class ke extends z{}return ke.\u0275fac=function(){let q;return function(le){return(q||(q=C.n5z(ke)))(le||ke)}}(),ke.\u0275dir=C.lG2({type:ke,selectors:[["mat-horizontal-stepper"]],features:[C.qOj]}),ke})(),vt=(()=>{class ke extends z{}return ke.\u0275fac=function(){let q;return function(le){return(q||(q=C.n5z(ke)))(le||ke)}}(),ke.\u0275dir=C.lG2({type:ke,selectors:[["mat-vertical-stepper"]],features:[C.qOj]}),ke})(),Re=(()=>{class ke extends t.B8{constructor($,le,xe,Ue){super($,le,xe,Ue),this.steps=new C.n_E,this.animationDone=new C.vpe,this.labelPosition="end",this._iconOverrides={},this._animationDone=new N.x;const lt=xe.nativeElement.nodeName.toLowerCase();this.orientation="mat-vertical-stepper"===lt?"vertical":"horizontal"}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:$,templateRef:le})=>this._iconOverrides[$]=le),this.steps.changes.pipe((0,P.R)(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe((0,w.x)(($,le)=>$.fromState===le.fromState&&$.toState===le.toState),(0,P.R)(this._destroyed)).subscribe($=>{"current"===$.toState&&this.animationDone.emit()})}_stepIsNavigable($,le){return le.completed||this.selectedIndex===$||!this.linear}}return ke.\u0275fac=function($){return new($||ke)(C.Y36(j.Is,8),C.Y36(C.sBO),C.Y36(C.SBq),C.Y36(y.K0))},ke.\u0275cmp=C.Xpm({type:ke,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function($,le,xe){if(1&$&&(C.Suo(xe,we,5),C.Suo(xe,K,5)),2&$){let Ue;C.iGM(Ue=C.CRH())&&(le._steps=Ue),C.iGM(Ue=C.CRH())&&(le._icons=Ue)}},viewQuery:function($,le){if(1&$&&C.Gf(ze,5),2&$){let xe;C.iGM(xe=C.CRH())&&(le._stepHeader=xe)}},hostAttrs:["role","tablist"],hostVars:9,hostBindings:function($,le){2&$&&(C.uIk("aria-orientation",le.orientation),C.ekj("mat-stepper-horizontal","horizontal"===le.orientation)("mat-stepper-vertical","vertical"===le.orientation)("mat-stepper-label-position-end","horizontal"===le.orientation&&"end"==le.labelPosition)("mat-stepper-label-position-bottom","horizontal"===le.orientation&&"bottom"==le.labelPosition))},inputs:{selectedIndex:"selectedIndex",disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[C._Bn([{provide:t.B8,useExisting:ke},{provide:Ge,useExisting:ke},{provide:vt,useExisting:ke}]),C.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($,le){1&$&&(C.ynx(0,0),C.YNc(1,x,5,2,"ng-container",1),C.YNc(2,v,2,1,"ng-container",1),C.BQk(),C.YNc(3,G,1,23,"ng-template",null,2,C.W1O)),2&$&&(C.Q6J("ngSwitch",le.orientation),C.xp6(1),C.Q6J("ngSwitchCase","horizontal"),C.xp6(1),C.Q6J("ngSwitchCase","vertical"))},directives:[y.RF,y.n9,y.sg,y.tP,y.O5,ze],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:[Ie.horizontalStepTransition,Ie.verticalStepTransition]},changeDetection:0}),ke})(),Ne=(()=>{class ke extends t.st{}return ke.\u0275fac=function(){let q;return function(le){return(q||(q=C.n5z(ke)))(le||ke)}}(),ke.\u0275dir=C.lG2({type:ke,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function($,le){2&$&&C.Ikx("type",le.type)},inputs:{type:"type"},features:[C.qOj]}),ke})(),he=(()=>{class ke extends t.po{}return ke.\u0275fac=function(){let q;return function(le){return(q||(q=C.n5z(ke)))(le||ke)}}(),ke.\u0275dir=C.lG2({type:ke,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function($,le){2&$&&C.Ikx("type",le.type)},inputs:{type:"type"},features:[C.qOj]}),ke})(),Le=(()=>{class ke{}return ke.\u0275fac=function($){return new($||ke)},ke.\u0275mod=C.oAB({type:ke}),ke.\u0275inj=C.cJS({providers:[Ce,M.rD],imports:[[M.BQ,y.ez,e.eL,o.ot,t.U5,l.Ps,M.si],M.BQ]}),ke})()},2075:(Ve,Q,m)=>{"use strict";m.d(Q,{ev:()=>Fe,Dz:()=>et,w1:()=>Jt,yh:()=>Pe,mD:()=>Nt,Q2:()=>Bt,Ke:()=>st,ge:()=>ct,fO:()=>$t,XQ:()=>li,as:()=>at,Gk:()=>Rt,nj:()=>At,BZ:()=>De,by:()=>Xi,p0:()=>sn});var e=m(5e3),t=m(3191),y=m(449),C=m(9808),o=m(7579),M=m(457),l=m(1135),N=m(5191),s=m(9646),D=m(2722),A=m(5698),O=m(226),E=m(925),P=m(5303);const w=[[["caption"]],[["colgroup"],["col"]]],Z=["caption","colgroup, col"];function ie(Ke){return class extends Ke{constructor(..._t){super(..._t),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(_t){const ve=this._sticky;this._sticky=(0,t.Ig)(_t),this._hasStickyChanged=ve!==this._sticky}hasStickyChanged(){const _t=this._hasStickyChanged;return this._hasStickyChanged=!1,_t}resetStickyChanged(){this._hasStickyChanged=!1}}}const ee=new e.OlP("CDK_TABLE");let ce=(()=>{class Ke{constructor(ve){this.template=ve}}return Ke.\u0275fac=function(ve){return new(ve||Ke)(e.Y36(e.Rgc))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","cdkCellDef",""]]}),Ke})(),re=(()=>{class Ke{constructor(ve){this.template=ve}}return Ke.\u0275fac=function(ve){return new(ve||Ke)(e.Y36(e.Rgc))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","cdkHeaderCellDef",""]]}),Ke})(),de=(()=>{class Ke{constructor(ve){this.template=ve}}return Ke.\u0275fac=function(ve){return new(ve||Ke)(e.Y36(e.Rgc))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","cdkFooterCellDef",""]]}),Ke})();class oe{}const ae=ie(oe);let b=(()=>{class Ke extends ae{constructor(ve){super(),this._table=ve,this._stickyEnd=!1}get name(){return this._name}set name(ve){this._setNameInput(ve)}get stickyEnd(){return this._stickyEnd}set stickyEnd(ve){const qe=this._stickyEnd;this._stickyEnd=(0,t.Ig)(ve),this._hasStickyChanged=qe!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(ve){ve&&(this._name=ve,this.cssClassFriendlyName=ve.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return Ke.\u0275fac=function(ve){return new(ve||Ke)(e.Y36(ee,8))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","cdkColumnDef",""]],contentQueries:function(ve,qe,yt){if(1&ve&&(e.Suo(yt,ce,5),e.Suo(yt,re,5),e.Suo(yt,de,5)),2&ve){let fe;e.iGM(fe=e.CRH())&&(qe.cell=fe.first),e.iGM(fe=e.CRH())&&(qe.headerCell=fe.first),e.iGM(fe=e.CRH())&&(qe.footerCell=fe.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[e._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:Ke}]),e.qOj]}),Ke})();class i{constructor(_t,ve){const qe=ve.nativeElement.classList;for(const yt of _t._columnCssClassName)qe.add(yt)}}let a=(()=>{class Ke extends i{constructor(ve,qe){super(ve,qe)}}return Ke.\u0275fac=function(ve){return new(ve||Ke)(e.Y36(b),e.Y36(e.SBq))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[e.qOj]}),Ke})(),p=(()=>{class Ke extends i{constructor(ve,qe){var yt;if(super(ve,qe),1===(null===(yt=ve._table)||void 0===yt?void 0:yt._elementRef.nativeElement.nodeType)){const fe=ve._table._elementRef.nativeElement.getAttribute("role");qe.nativeElement.setAttribute("role","grid"===fe||"treegrid"===fe?"gridcell":"cell")}}}return Ke.\u0275fac=function(ve){return new(ve||Ke)(e.Y36(b),e.Y36(e.SBq))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:[1,"cdk-footer-cell"],features:[e.qOj]}),Ke})(),u=(()=>{class Ke extends i{constructor(ve,qe){var yt;if(super(ve,qe),1===(null===(yt=ve._table)||void 0===yt?void 0:yt._elementRef.nativeElement.nodeType)){const fe=ve._table._elementRef.nativeElement.getAttribute("role");qe.nativeElement.setAttribute("role","grid"===fe||"treegrid"===fe?"gridcell":"cell")}}}return Ke.\u0275fac=function(ve){return new(ve||Ke)(e.Y36(b),e.Y36(e.SBq))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[e.qOj]}),Ke})();class _{constructor(){this.tasks=[],this.endTasks=[]}}const L=new e.OlP("_COALESCED_STYLE_SCHEDULER");let I=(()=>{class Ke{constructor(ve){this._ngZone=ve,this._currentSchedule=null,this._destroyed=new o.x}schedule(ve){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(ve)}scheduleEnd(ve){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(ve)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new _,this._getScheduleObservable().pipe((0,D.R)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const ve=this._currentSchedule;this._currentSchedule=new _;for(const qe of ve.tasks)qe();for(const qe of ve.endTasks)qe()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,M.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,A.q)(1))}}return Ke.\u0275fac=function(ve){return new(ve||Ke)(e.LFG(e.R0b))},Ke.\u0275prov=e.Yz7({token:Ke,factory:Ke.\u0275fac}),Ke})(),r=(()=>{class Ke{constructor(ve,qe){this.template=ve,this._differs=qe}ngOnChanges(ve){if(!this._columnsDiffer){const qe=ve.columns&&ve.columns.currentValue||[];this._columnsDiffer=this._differs.find(qe).create(),this._columnsDiffer.diff(qe)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(ve){return this instanceof F?ve.headerCell.template:this instanceof Ce?ve.footerCell.template:ve.cell.template}}return Ke.\u0275fac=function(ve){return new(ve||Ke)(e.Y36(e.Rgc),e.Y36(e.ZZ4))},Ke.\u0275dir=e.lG2({type:Ke,features:[e.TTD]}),Ke})();class v extends r{}const G=ie(v);let F=(()=>{class Ke extends G{constructor(ve,qe,yt){super(ve,qe),this._table=yt}ngOnChanges(ve){super.ngOnChanges(ve)}}return Ke.\u0275fac=function(ve){return new(ve||Ke)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(ee,8))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[e.qOj,e.TTD]}),Ke})();class U extends r{}const ye=ie(U);let Ce=(()=>{class Ke extends ye{constructor(ve,qe,yt){super(ve,qe),this._table=yt}ngOnChanges(ve){super.ngOnChanges(ve)}}return Ke.\u0275fac=function(ve){return new(ve||Ke)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(ee,8))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[e.qOj,e.TTD]}),Ke})(),Be=(()=>{class Ke extends r{constructor(ve,qe,yt){super(ve,qe),this._table=yt}}return Ke.\u0275fac=function(ve){return new(ve||Ke)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(ee,8))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[e.qOj]}),Ke})(),ze=(()=>{class Ke{constructor(ve){this._viewContainer=ve,Ke.mostRecentCellOutlet=this}ngOnDestroy(){Ke.mostRecentCellOutlet===this&&(Ke.mostRecentCellOutlet=null)}}return Ke.mostRecentCellOutlet=null,Ke.\u0275fac=function(ve){return new(ve||Ke)(e.Y36(e.s_b))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","cdkCellOutlet",""]]}),Ke})(),Ie=(()=>{class Ke{}return Ke.\u0275fac=function(ve){return new(ve||Ke)},Ke.\u0275cmp=e.Xpm({type:Ke,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ve,qe){1&ve&&e.GkF(0,0)},directives:[ze],encapsulation:2}),Ke})(),K=(()=>{class Ke{}return Ke.\u0275fac=function(ve){return new(ve||Ke)},Ke.\u0275cmp=e.Xpm({type:Ke,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ve,qe){1&ve&&e.GkF(0,0)},directives:[ze],encapsulation:2}),Ke})(),Me=(()=>{class Ke{}return Ke.\u0275fac=function(ve){return new(ve||Ke)},Ke.\u0275cmp=e.Xpm({type:Ke,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ve,qe){1&ve&&e.GkF(0,0)},directives:[ze],encapsulation:2}),Ke})(),we=(()=>{class Ke{constructor(ve){this.templateRef=ve,this._contentClassName="cdk-no-data-row"}}return Ke.\u0275fac=function(ve){return new(ve||Ke)(e.Y36(e.Rgc))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["ng-template","cdkNoDataRow",""]]}),Ke})();const z=["top","bottom","left","right"];class Ge{constructor(_t,ve,qe,yt,fe=!0,Je=!0,St){this._isNativeHtmlTable=_t,this._stickCellCss=ve,this.direction=qe,this._coalescedStyleScheduler=yt,this._isBrowser=fe,this._needsPositionStickyOnElement=Je,this._positionListener=St,this._cachedCellWidths=[],this._borderCellCss={top:`${ve}-border-elem-top`,bottom:`${ve}-border-elem-bottom`,left:`${ve}-border-elem-left`,right:`${ve}-border-elem-right`}}clearStickyPositioning(_t,ve){const qe=[];for(const yt of _t)if(yt.nodeType===yt.ELEMENT_NODE){qe.push(yt);for(let fe=0;fe<yt.children.length;fe++)qe.push(yt.children[fe])}this._coalescedStyleScheduler.schedule(()=>{for(const yt of qe)this._removeStickyStyle(yt,ve)})}updateStickyColumns(_t,ve,qe,yt=!0){if(!_t.length||!this._isBrowser||!ve.some(qi=>qi)&&!qe.some(qi=>qi))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const fe=_t[0],Je=fe.children.length,St=this._getCellWidths(fe,yt),Pt=this._getStickyStartColumnPositions(St,ve),yi=this._getStickyEndColumnPositions(St,qe),Ni=ve.lastIndexOf(!0),Si=qe.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const qi="rtl"===this.direction,ot=qi?"right":"left",Kt=qi?"left":"right";for(const gt of _t)for(let Lt=0;Lt<Je;Lt++){const ui=gt.children[Lt];ve[Lt]&&this._addStickyStyle(ui,ot,Pt[Lt],Lt===Ni),qe[Lt]&&this._addStickyStyle(ui,Kt,yi[Lt],Lt===Si)}this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:-1===Ni?[]:St.slice(0,Ni+1).map((gt,Lt)=>ve[Lt]?gt:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===Si?[]:St.slice(Si).map((gt,Lt)=>qe[Lt+Si]?gt:null).reverse()}))})}stickRows(_t,ve,qe){if(!this._isBrowser)return;const yt="bottom"===qe?_t.slice().reverse():_t,fe="bottom"===qe?ve.slice().reverse():ve,Je=[],St=[],Pt=[];for(let Ni=0,Si=0;Ni<yt.length;Ni++){if(!fe[Ni])continue;Je[Ni]=Si;const qi=yt[Ni];Pt[Ni]=this._isNativeHtmlTable?Array.from(qi.children):[qi];const ot=qi.getBoundingClientRect().height;Si+=ot,St[Ni]=ot}const yi=fe.lastIndexOf(!0);this._coalescedStyleScheduler.schedule(()=>{var Ni,Si;for(let qi=0;qi<yt.length;qi++){if(!fe[qi])continue;const ot=Je[qi],Kt=qi===yi;for(const gt of Pt[qi])this._addStickyStyle(gt,qe,ot,Kt)}"top"===qe?null===(Ni=this._positionListener)||void 0===Ni||Ni.stickyHeaderRowsUpdated({sizes:St,offsets:Je,elements:Pt}):null===(Si=this._positionListener)||void 0===Si||Si.stickyFooterRowsUpdated({sizes:St,offsets:Je,elements:Pt})})}updateStickyFooterContainer(_t,ve){if(!this._isNativeHtmlTable)return;const qe=_t.querySelector("tfoot");this._coalescedStyleScheduler.schedule(()=>{ve.some(yt=>!yt)?this._removeStickyStyle(qe,["bottom"]):this._addStickyStyle(qe,"bottom",0,!1)})}_removeStickyStyle(_t,ve){for(const yt of ve)_t.style[yt]="",_t.classList.remove(this._borderCellCss[yt]);z.some(yt=>-1===ve.indexOf(yt)&&_t.style[yt])?_t.style.zIndex=this._getCalculatedZIndex(_t):(_t.style.zIndex="",this._needsPositionStickyOnElement&&(_t.style.position=""),_t.classList.remove(this._stickCellCss))}_addStickyStyle(_t,ve,qe,yt){_t.classList.add(this._stickCellCss),yt&&_t.classList.add(this._borderCellCss[ve]),_t.style[ve]=`${qe}px`,_t.style.zIndex=this._getCalculatedZIndex(_t),this._needsPositionStickyOnElement&&(_t.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(_t){const ve={top:100,bottom:10,left:1,right:1};let qe=0;for(const yt of z)_t.style[yt]&&(qe+=ve[yt]);return qe?`${qe}`:""}_getCellWidths(_t,ve=!0){if(!ve&&this._cachedCellWidths.length)return this._cachedCellWidths;const qe=[],yt=_t.children;for(let fe=0;fe<yt.length;fe++)qe.push(yt[fe].getBoundingClientRect().width);return this._cachedCellWidths=qe,qe}_getStickyStartColumnPositions(_t,ve){const qe=[];let yt=0;for(let fe=0;fe<_t.length;fe++)ve[fe]&&(qe[fe]=yt,yt+=_t[fe]);return qe}_getStickyEndColumnPositions(_t,ve){const qe=[];let yt=0;for(let fe=_t.length;fe>0;fe--)ve[fe]&&(qe[fe]=yt,yt+=_t[fe]);return qe}}const le=new e.OlP("CDK_SPL");let Ue=(()=>{class Ke{constructor(ve,qe){this.viewContainer=ve,this.elementRef=qe}}return Ke.\u0275fac=function(ve){return new(ve||Ke)(e.Y36(e.s_b),e.Y36(e.SBq))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","rowOutlet",""]]}),Ke})(),lt=(()=>{class Ke{constructor(ve,qe){this.viewContainer=ve,this.elementRef=qe}}return Ke.\u0275fac=function(ve){return new(ve||Ke)(e.Y36(e.s_b),e.Y36(e.SBq))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","headerRowOutlet",""]]}),Ke})(),nt=(()=>{class Ke{constructor(ve,qe){this.viewContainer=ve,this.elementRef=qe}}return Ke.\u0275fac=function(ve){return new(ve||Ke)(e.Y36(e.s_b),e.Y36(e.SBq))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","footerRowOutlet",""]]}),Ke})(),ft=(()=>{class Ke{constructor(ve,qe){this.viewContainer=ve,this.elementRef=qe}}return Ke.\u0275fac=function(ve){return new(ve||Ke)(e.Y36(e.s_b),e.Y36(e.SBq))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","noDataRowOutlet",""]]}),Ke})(),Mt=(()=>{class Ke{constructor(ve,qe,yt,fe,Je,St,Pt,yi,Ni,Si,qi){this._differs=ve,this._changeDetectorRef=qe,this._elementRef=yt,this._dir=Je,this._platform=Pt,this._viewRepeater=yi,this._coalescedStyleScheduler=Ni,this._viewportRuler=Si,this._stickyPositioningListener=qi,this._onDestroy=new o.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 l.X({start:0,end:Number.MAX_VALUE}),fe||this._elementRef.nativeElement.setAttribute("role","table"),this._document=St,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(ve){this._trackByFn=ve}get dataSource(){return this._dataSource}set dataSource(ve){this._dataSource!==ve&&this._switchDataSource(ve)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(ve){this._multiTemplateDataRows=(0,t.Ig)(ve),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(ve){this._fixedLayout=(0,t.Ig)(ve),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((ve,qe)=>this.trackBy?this.trackBy(qe.dataIndex,qe.data):qe),this._viewportRuler.change().pipe((0,D.R)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const qe=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||qe,this._forceRecalculateCellWidths=qe,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.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),(0,y.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const ve=this._dataDiffer.diff(this._renderRows);if(!ve)return this._updateNoDataRow(),void this.contentChanged.next();const qe=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(ve,qe,(yt,fe,Je)=>this._getEmbeddedViewArgs(yt.item,Je),yt=>yt.item.data,yt=>{1===yt.operation&&yt.context&&this._renderCellTemplateForItem(yt.record.item.rowDef,yt.context)}),this._updateRowIndexContext(),ve.forEachIdentityChange(yt=>{qe.get(yt.currentIndex).context.$implicit=yt.item.data}),this._updateNoDataRow(),this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(ve){this._customColumnDefs.add(ve)}removeColumnDef(ve){this._customColumnDefs.delete(ve)}addRowDef(ve){this._customRowDefs.add(ve)}removeRowDef(ve){this._customRowDefs.delete(ve)}addHeaderRowDef(ve){this._customHeaderRowDefs.add(ve),this._headerRowDefChanged=!0}removeHeaderRowDef(ve){this._customHeaderRowDefs.delete(ve),this._headerRowDefChanged=!0}addFooterRowDef(ve){this._customFooterRowDefs.add(ve),this._footerRowDefChanged=!0}removeFooterRowDef(ve){this._customFooterRowDefs.delete(ve),this._footerRowDefChanged=!0}setNoDataRow(ve){this._customNoDataRow=ve}updateStickyHeaderRowStyles(){const ve=this._getRenderedRows(this._headerRowOutlet),yt=this._elementRef.nativeElement.querySelector("thead");yt&&(yt.style.display=ve.length?"":"none");const fe=this._headerRowDefs.map(Je=>Je.sticky);this._stickyStyler.clearStickyPositioning(ve,["top"]),this._stickyStyler.stickRows(ve,fe,"top"),this._headerRowDefs.forEach(Je=>Je.resetStickyChanged())}updateStickyFooterRowStyles(){const ve=this._getRenderedRows(this._footerRowOutlet),yt=this._elementRef.nativeElement.querySelector("tfoot");yt&&(yt.style.display=ve.length?"":"none");const fe=this._footerRowDefs.map(Je=>Je.sticky);this._stickyStyler.clearStickyPositioning(ve,["bottom"]),this._stickyStyler.stickRows(ve,fe,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,fe),this._footerRowDefs.forEach(Je=>Je.resetStickyChanged())}updateStickyColumnStyles(){const ve=this._getRenderedRows(this._headerRowOutlet),qe=this._getRenderedRows(this._rowOutlet),yt=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...ve,...qe,...yt],["left","right"]),this._stickyColumnStylesNeedReset=!1),ve.forEach((fe,Je)=>{this._addStickyColumnStyles([fe],this._headerRowDefs[Je])}),this._rowDefs.forEach(fe=>{const Je=[];for(let St=0;St<qe.length;St++)this._renderRows[St].rowDef===fe&&Je.push(qe[St]);this._addStickyColumnStyles(Je,fe)}),yt.forEach((fe,Je)=>{this._addStickyColumnStyles([fe],this._footerRowDefs[Je])}),Array.from(this._columnDefsByName.values()).forEach(fe=>fe.resetStickyChanged())}_getAllRenderRows(){const ve=[],qe=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let yt=0;yt<this._data.length;yt++){let fe=this._data[yt];const Je=this._getRenderRowsForData(fe,yt,qe.get(fe));this._cachedRenderRowsMap.has(fe)||this._cachedRenderRowsMap.set(fe,new WeakMap);for(let St=0;St<Je.length;St++){let Pt=Je[St];const yi=this._cachedRenderRowsMap.get(Pt.data);yi.has(Pt.rowDef)?yi.get(Pt.rowDef).push(Pt):yi.set(Pt.rowDef,[Pt]),ve.push(Pt)}}return ve}_getRenderRowsForData(ve,qe,yt){return this._getRowDefs(ve,qe).map(Je=>{const St=yt&&yt.has(Je)?yt.get(Je):[];if(St.length){const Pt=St.shift();return Pt.dataIndex=qe,Pt}return{data:ve,rowDef:Je,dataIndex:qe}})}_cacheColumnDefs(){this._columnDefsByName.clear(),Zt(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(qe=>{this._columnDefsByName.has(qe.name),this._columnDefsByName.set(qe.name,qe)})}_cacheRowDefs(){this._headerRowDefs=Zt(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=Zt(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=Zt(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const ve=this._rowDefs.filter(qe=>!qe.when);this._defaultRowDef=ve[0]}_renderUpdatedColumns(){const ve=(Je,St)=>Je||!!St.getColumnsDiff(),qe=this._rowDefs.reduce(ve,!1);qe&&this._forceRenderDataRows();const yt=this._headerRowDefs.reduce(ve,!1);yt&&this._forceRenderHeaderRows();const fe=this._footerRowDefs.reduce(ve,!1);return fe&&this._forceRenderFooterRows(),qe||yt||fe}_switchDataSource(ve){this._data=[],(0,y.Z9)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),ve||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=ve}_observeRenderChanges(){if(!this.dataSource)return;let ve;(0,y.Z9)(this.dataSource)?ve=this.dataSource.connect(this):(0,N.b)(this.dataSource)?ve=this.dataSource:Array.isArray(this.dataSource)&&(ve=(0,s.of)(this.dataSource)),this._renderChangeSubscription=ve.pipe((0,D.R)(this._onDestroy)).subscribe(qe=>{this._data=qe||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((ve,qe)=>this._renderRow(this._headerRowOutlet,ve,qe)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((ve,qe)=>this._renderRow(this._footerRowOutlet,ve,qe)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(ve,qe){const yt=Array.from(qe.columns||[]).map(St=>this._columnDefsByName.get(St)),fe=yt.map(St=>St.sticky),Je=yt.map(St=>St.stickyEnd);this._stickyStyler.updateStickyColumns(ve,fe,Je,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(ve){const qe=[];for(let yt=0;yt<ve.viewContainer.length;yt++){const fe=ve.viewContainer.get(yt);qe.push(fe.rootNodes[0])}return qe}_getRowDefs(ve,qe){if(1==this._rowDefs.length)return[this._rowDefs[0]];let yt=[];if(this.multiTemplateDataRows)yt=this._rowDefs.filter(fe=>!fe.when||fe.when(qe,ve));else{let fe=this._rowDefs.find(Je=>Je.when&&Je.when(qe,ve))||this._defaultRowDef;fe&&yt.push(fe)}return yt}_getEmbeddedViewArgs(ve,qe){return{templateRef:ve.rowDef.template,context:{$implicit:ve.data},index:qe}}_renderRow(ve,qe,yt,fe={}){const Je=ve.viewContainer.createEmbeddedView(qe.template,fe,yt);return this._renderCellTemplateForItem(qe,fe),Je}_renderCellTemplateForItem(ve,qe){for(let yt of this._getCellTemplates(ve))ze.mostRecentCellOutlet&&ze.mostRecentCellOutlet._viewContainer.createEmbeddedView(yt,qe);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const ve=this._rowOutlet.viewContainer;for(let qe=0,yt=ve.length;qe<yt;qe++){const Je=ve.get(qe).context;Je.count=yt,Je.first=0===qe,Je.last=qe===yt-1,Je.even=qe%2==0,Je.odd=!Je.even,this.multiTemplateDataRows?(Je.dataIndex=this._renderRows[qe].dataIndex,Je.renderIndex=qe):Je.index=this._renderRows[qe].dataIndex}}_getCellTemplates(ve){return ve&&ve.columns?Array.from(ve.columns,qe=>{const yt=this._columnDefsByName.get(qe);return ve.extractCellTemplate(yt)}):[]}_applyNativeTableSections(){const ve=this._document.createDocumentFragment(),qe=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const yt of qe){const fe=this._document.createElement(yt.tag);fe.setAttribute("role","rowgroup");for(const Je of yt.outlets)fe.appendChild(Je.elementRef.nativeElement);ve.appendChild(fe)}this._elementRef.nativeElement.appendChild(ve)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const ve=(qe,yt)=>qe||yt.hasStickyChanged();this._headerRowDefs.reduce(ve,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(ve,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(ve,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new Ge(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,s.of)()).pipe((0,D.R)(this._onDestroy)).subscribe(qe=>{this._stickyStyler.direction=qe,this.updateStickyColumnStyles()})}_getOwnDefs(ve){return ve.filter(qe=>!qe._table||qe._table===this)}_updateNoDataRow(){const ve=this._customNoDataRow||this._noDataRow;if(!ve)return;const qe=0===this._rowOutlet.viewContainer.length;if(qe===this._isShowingNoDataRow)return;const yt=this._noDataRowOutlet.viewContainer;if(qe){const fe=yt.createEmbeddedView(ve.templateRef),Je=fe.rootNodes[0];1===fe.rootNodes.length&&(null==Je?void 0:Je.nodeType)===this._document.ELEMENT_NODE&&(Je.setAttribute("role","row"),Je.classList.add(ve._contentClassName))}else yt.clear();this._isShowingNoDataRow=qe}}return Ke.\u0275fac=function(ve){return new(ve||Ke)(e.Y36(e.ZZ4),e.Y36(e.sBO),e.Y36(e.SBq),e.$8M("role"),e.Y36(O.Is,8),e.Y36(C.K0),e.Y36(E.t4),e.Y36(y.k),e.Y36(L),e.Y36(P.rL),e.Y36(le,12))},Ke.\u0275cmp=e.Xpm({type:Ke,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(ve,qe,yt){if(1&ve&&(e.Suo(yt,we,5),e.Suo(yt,b,5),e.Suo(yt,Be,5),e.Suo(yt,F,5),e.Suo(yt,Ce,5)),2&ve){let fe;e.iGM(fe=e.CRH())&&(qe._noDataRow=fe.first),e.iGM(fe=e.CRH())&&(qe._contentColumnDefs=fe),e.iGM(fe=e.CRH())&&(qe._contentRowDefs=fe),e.iGM(fe=e.CRH())&&(qe._contentHeaderRowDefs=fe),e.iGM(fe=e.CRH())&&(qe._contentFooterRowDefs=fe)}},viewQuery:function(ve,qe){if(1&ve&&(e.Gf(Ue,7),e.Gf(lt,7),e.Gf(nt,7),e.Gf(ft,7)),2&ve){let yt;e.iGM(yt=e.CRH())&&(qe._rowOutlet=yt.first),e.iGM(yt=e.CRH())&&(qe._headerRowOutlet=yt.first),e.iGM(yt=e.CRH())&&(qe._footerRowOutlet=yt.first),e.iGM(yt=e.CRH())&&(qe._noDataRowOutlet=yt.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(ve,qe){2&ve&&e.ekj("cdk-table-fixed-layout",qe.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[e._Bn([{provide:ee,useExisting:Ke},{provide:y.k,useClass:y.yy},{provide:L,useClass:I},{provide:le,useValue:null}])],ngContentSelectors:Z,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(ve,qe){1&ve&&(e.F$t(w),e.Hsn(0),e.Hsn(1,1),e.GkF(2,0),e.GkF(3,1),e.GkF(4,2),e.GkF(5,3))},directives:[lt,Ue,ft,nt],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),Ke})();function Zt(Ke,_t){return Ke.concat(Array.from(_t))}let Ii=(()=>{class Ke{}return Ke.\u0275fac=function(ve){return new(ve||Ke)},Ke.\u0275mod=e.oAB({type:Ke}),Ke.\u0275inj=e.cJS({imports:[[P.Cl]]}),Ke})();var jt=m(508),ei=m(6451),Pi=m(9841),ai=m(4004);const hi=[[["caption"]],[["colgroup"],["col"]]],Ze=["caption","colgroup, col"];let De=(()=>{class Ke extends Mt{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return Ke.\u0275fac=function(){let _t;return function(qe){return(_t||(_t=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275cmp=e.Xpm({type:Ke,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(ve,qe){2&ve&&e.ekj("mat-table-fixed-layout",qe.fixedLayout)},exportAs:["matTable"],features:[e._Bn([{provide:y.k,useClass:y.yy},{provide:Mt,useExisting:Ke},{provide:ee,useExisting:Ke},{provide:L,useClass:I},{provide:le,useValue:null}]),e.qOj],ngContentSelectors:Ze,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(ve,qe){1&ve&&(e.F$t(hi),e.Hsn(0),e.Hsn(1,1),e.GkF(2,0),e.GkF(3,1),e.GkF(4,2),e.GkF(5,3))},directives:[lt,Ue,ft,nt],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-row::after,mat-header-row::after,mat-footer-row::after{display:inline-block;min-height:inherit;content:""}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:-webkit-sticky !important;position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}\n'],encapsulation:2}),Ke})(),et=(()=>{class Ke extends ce{}return Ke.\u0275fac=function(){let _t;return function(qe){return(_t||(_t=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","matCellDef",""]],features:[e._Bn([{provide:ce,useExisting:Ke}]),e.qOj]}),Ke})(),$t=(()=>{class Ke extends re{}return Ke.\u0275fac=function(){let _t;return function(qe){return(_t||(_t=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","matHeaderCellDef",""]],features:[e._Bn([{provide:re,useExisting:Ke}]),e.qOj]}),Ke})(),Nt=(()=>{class Ke extends de{}return Ke.\u0275fac=function(){let _t;return function(qe){return(_t||(_t=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","matFooterCellDef",""]],features:[e._Bn([{provide:de,useExisting:Ke}]),e.qOj]}),Ke})(),Jt=(()=>{class Ke extends b{get name(){return this._name}set name(ve){this._setNameInput(ve)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return Ke.\u0275fac=function(){let _t;return function(qe){return(_t||(_t=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[e._Bn([{provide:b,useExisting:Ke},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:Ke}]),e.qOj]}),Ke})(),ct=(()=>{class Ke extends a{}return Ke.\u0275fac=function(){let _t;return function(qe){return(_t||(_t=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275dir=e.lG2({type:Ke,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[e.qOj]}),Ke})(),Pe=(()=>{class Ke extends p{}return Ke.\u0275fac=function(){let _t;return function(qe){return(_t||(_t=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275dir=e.lG2({type:Ke,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:["role","gridcell",1,"mat-footer-cell"],features:[e.qOj]}),Ke})(),Fe=(()=>{class Ke extends u{}return Ke.\u0275fac=function(){let _t;return function(qe){return(_t||(_t=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275dir=e.lG2({type:Ke,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[e.qOj]}),Ke})(),at=(()=>{class Ke extends F{}return Ke.\u0275fac=function(){let _t;return function(qe){return(_t||(_t=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[e._Bn([{provide:F,useExisting:Ke}]),e.qOj]}),Ke})(),st=(()=>{class Ke extends Ce{}return Ke.\u0275fac=function(){let _t;return function(qe){return(_t||(_t=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[e._Bn([{provide:Ce,useExisting:Ke}]),e.qOj]}),Ke})(),At=(()=>{class Ke extends Be{}return Ke.\u0275fac=function(){let _t;return function(qe){return(_t||(_t=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[e._Bn([{provide:Be,useExisting:Ke}]),e.qOj]}),Ke})(),li=(()=>{class Ke extends Ie{}return Ke.\u0275fac=function(){let _t;return function(qe){return(_t||(_t=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275cmp=e.Xpm({type:Ke,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[e._Bn([{provide:Ie,useExisting:Ke}]),e.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ve,qe){1&ve&&e.GkF(0,0)},directives:[ze],encapsulation:2}),Ke})(),Bt=(()=>{class Ke extends K{}return Ke.\u0275fac=function(){let _t;return function(qe){return(_t||(_t=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275cmp=e.Xpm({type:Ke,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-footer-row"],exportAs:["matFooterRow"],features:[e._Bn([{provide:K,useExisting:Ke}]),e.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ve,qe){1&ve&&e.GkF(0,0)},directives:[ze],encapsulation:2}),Ke})(),Rt=(()=>{class Ke extends Me{}return Ke.\u0275fac=function(){let _t;return function(qe){return(_t||(_t=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275cmp=e.Xpm({type:Ke,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[e._Bn([{provide:Me,useExisting:Ke}]),e.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ve,qe){1&ve&&e.GkF(0,0)},directives:[ze],encapsulation:2}),Ke})(),sn=(()=>{class Ke{}return Ke.\u0275fac=function(ve){return new(ve||Ke)},Ke.\u0275mod=e.oAB({type:Ke}),Ke.\u0275inj=e.cJS({imports:[[Ii,jt.BQ],jt.BQ]}),Ke})();class Di extends y.o2{constructor(_t=[]){super(),this._renderData=new l.X([]),this._filter=new l.X(""),this._internalPageChanges=new o.x,this._renderChangesSubscription=null,this.sortingDataAccessor=(ve,qe)=>{const yt=ve[qe];if((0,t.t6)(yt)){const fe=Number(yt);return fe<9007199254740991?fe:yt}return yt},this.sortData=(ve,qe)=>{const yt=qe.active,fe=qe.direction;return yt&&""!=fe?ve.sort((Je,St)=>{let Pt=this.sortingDataAccessor(Je,yt),yi=this.sortingDataAccessor(St,yt);const Ni=typeof Pt,Si=typeof yi;Ni!==Si&&("number"===Ni&&(Pt+=""),"number"===Si&&(yi+=""));let qi=0;return null!=Pt&&null!=yi?Pt>yi?qi=1:Pt<yi&&(qi=-1):null!=Pt?qi=1:null!=yi&&(qi=-1),qi*("asc"==fe?1:-1)}):ve},this.filterPredicate=(ve,qe)=>{const yt=Object.keys(ve).reduce((Je,St)=>Je+ve[St]+"\u25ec","").toLowerCase(),fe=qe.trim().toLowerCase();return-1!=yt.indexOf(fe)},this._data=new l.X(_t),this._updateChangeSubscription()}get data(){return this._data.value}set data(_t){this._data.next(_t),this._renderChangesSubscription||this._filterData(_t)}get filter(){return this._filter.value}set filter(_t){this._filter.next(_t),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(_t){this._sort=_t,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(_t){this._paginator=_t,this._updateChangeSubscription()}_updateChangeSubscription(){var _t;const ve=this._sort?(0,ei.T)(this._sort.sortChange,this._sort.initialized):(0,s.of)(null),qe=this._paginator?(0,ei.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,s.of)(null),fe=(0,Pi.a)([this._data,this._filter]).pipe((0,ai.U)(([Pt])=>this._filterData(Pt))),Je=(0,Pi.a)([fe,ve]).pipe((0,ai.U)(([Pt])=>this._orderData(Pt))),St=(0,Pi.a)([Je,qe]).pipe((0,ai.U)(([Pt])=>this._pageData(Pt)));null===(_t=this._renderChangesSubscription)||void 0===_t||_t.unsubscribe(),this._renderChangesSubscription=St.subscribe(Pt=>this._renderData.next(Pt))}_filterData(_t){return this.filteredData=null==this.filter||""===this.filter?_t:_t.filter(ve=>this.filterPredicate(ve,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(_t){return this.sort?this.sortData(_t.slice(),this.sort):_t}_pageData(_t){if(!this.paginator)return _t;const ve=this.paginator.pageIndex*this.paginator.pageSize;return _t.slice(ve,ve+this.paginator.pageSize)}_updatePaginator(_t){Promise.resolve().then(()=>{const ve=this.paginator;if(ve&&(ve.length=_t,ve.pageIndex>0)){const qe=Math.ceil(ve.length/ve.pageSize)-1||0,yt=Math.min(ve.pageIndex,qe);yt!==ve.pageIndex&&(ve.pageIndex=yt,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var _t;null===(_t=this._renderChangesSubscription)||void 0===_t||_t.unsubscribe(),this._renderChangesSubscription=null}}class Xi extends Di{}},3251:(Ve,Q,m)=>{"use strict";m.d(Q,{uX:()=>vt,SP:()=>Vt,uD:()=>we,Nj:()=>ai,BU:()=>jt,Nh:()=>hi});var e=m(5664),t=m(7144),y=m(7429),C=m(9808),o=m(5e3),M=m(508),l=m(6360),N=m(7579),s=m(727),D=m(4968),A=m(9646),O=m(6451),E=m(2805),P=m(1777),w=m(8675),Z=m(1884),j=m(2722),W=m(226),ie=m(3191),ee=m(1159),_e=m(925),ce=m(5303);function re(Ze,Ee){1&Ze&&o.Hsn(0)}const de=["*"];function oe(Ze,Ee){}const ae=function(Ze){return{animationDuration:Ze}},b=function(Ze,Ee){return{value:Ze,params:Ee}},i=["tabListContainer"],a=["tabList"],p=["tabListInner"],u=["nextPaginator"],_=["previousPaginator"],L=["tabBodyWrapper"],I=["tabHeader"];function x(Ze,Ee){}function r(Ze,Ee){if(1&Ze&&o.YNc(0,x,0,0,"ng-template",9),2&Ze){const Y=o.oxw().$implicit;o.Q6J("cdkPortalOutlet",Y.templateLabel)}}function v(Ze,Ee){if(1&Ze&&o._uU(0),2&Ze){const Y=o.oxw().$implicit;o.Oqu(Y.textLabel)}}function G(Ze,Ee){if(1&Ze){const Y=o.EpF();o.TgZ(0,"div",6),o.NdJ("click",function(){const De=o.CHM(Y),et=De.$implicit,$t=De.index,Nt=o.oxw(),Jt=o.MAs(1);return Nt._handleClick(et,Jt,$t)})("cdkFocusChange",function(De){const $t=o.CHM(Y).index;return o.oxw()._tabFocusChanged(De,$t)}),o.TgZ(1,"div",7),o.YNc(2,r,1,1,"ng-template",8),o.YNc(3,v,1,1,"ng-template",8),o.qZA(),o.qZA()}if(2&Ze){const Y=Ee.$implicit,me=Ee.index,De=o.oxw();o.ekj("mat-tab-label-active",De.selectedIndex==me),o.Q6J("id",De._getTabLabelId(me))("disabled",Y.disabled)("matRippleDisabled",Y.disabled||De.disableRipple),o.uIk("tabIndex",De._getTabIndex(Y,me))("aria-posinset",me+1)("aria-setsize",De._tabs.length)("aria-controls",De._getTabContentId(me))("aria-selected",De.selectedIndex==me)("aria-label",Y.ariaLabel||null)("aria-labelledby",!Y.ariaLabel&&Y.ariaLabelledby?Y.ariaLabelledby:null),o.xp6(2),o.Q6J("ngIf",Y.templateLabel),o.xp6(1),o.Q6J("ngIf",!Y.templateLabel)}}function F(Ze,Ee){if(1&Ze){const Y=o.EpF();o.TgZ(0,"mat-tab-body",10),o.NdJ("_onCentered",function(){return o.CHM(Y),o.oxw()._removeTabBodyWrapperHeight()})("_onCentering",function(De){return o.CHM(Y),o.oxw()._setTabBodyWrapperHeight(De)}),o.qZA()}if(2&Ze){const Y=Ee.$implicit,me=Ee.index,De=o.oxw();o.ekj("mat-tab-body-active",De.selectedIndex===me),o.Q6J("id",De._getTabContentId(me))("content",Y.content)("position",Y.position)("origin",Y.origin)("animationDuration",De.animationDuration),o.uIk("tabindex",null!=De.contentTabIndex&&De.selectedIndex===me?De.contentTabIndex:null)("aria-labelledby",De._getTabLabelId(me))}}const U=["mat-tab-nav-bar",""],ye=new o.OlP("MatInkBarPositioner",{providedIn:"root",factory:function Ce(){return Ee=>({left:Ee?(Ee.offsetLeft||0)+"px":"0",width:Ee?(Ee.offsetWidth||0)+"px":"0"})}});let Be=(()=>{class Ze{constructor(Y,me,De,et){this._elementRef=Y,this._ngZone=me,this._inkBarPositioner=De,this._animationMode=et}alignToElement(Y){this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._setStyles(Y))}):this._setStyles(Y)}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}_setStyles(Y){const me=this._inkBarPositioner(Y),De=this._elementRef.nativeElement;De.style.left=me.left,De.style.width=me.width}}return Ze.\u0275fac=function(Y){return new(Y||Ze)(o.Y36(o.SBq),o.Y36(o.R0b),o.Y36(ye),o.Y36(l.Qb,8))},Ze.\u0275dir=o.lG2({type:Ze,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(Y,me){2&Y&&o.ekj("_mat-animation-noopable","NoopAnimations"===me._animationMode)}}),Ze})();const ze=new o.OlP("MatTabContent"),K=new o.OlP("MatTabLabel"),Me=new o.OlP("MAT_TAB");let we=(()=>{class Ze extends y.ig{constructor(Y,me,De){super(Y,me),this._closestTab=De}}return Ze.\u0275fac=function(Y){return new(Y||Ze)(o.Y36(o.Rgc),o.Y36(o.s_b),o.Y36(Me,8))},Ze.\u0275dir=o.lG2({type:Ze,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[o._Bn([{provide:K,useExisting:Ze}]),o.qOj]}),Ze})();const z=(0,M.Id)(class{}),Ge=new o.OlP("MAT_TAB_GROUP");let vt=(()=>{class Ze extends z{constructor(Y,me){super(),this._viewContainerRef=Y,this._closestTabGroup=me,this.textLabel="",this._contentPortal=null,this._stateChanges=new N.x,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(Y){this._setTemplateLabelInput(Y)}get content(){return this._contentPortal}ngOnChanges(Y){(Y.hasOwnProperty("textLabel")||Y.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new y.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(Y){Y&&Y._closestTab===this&&(this._templateLabel=Y)}}return Ze.\u0275fac=function(Y){return new(Y||Ze)(o.Y36(o.s_b),o.Y36(Ge,8))},Ze.\u0275cmp=o.Xpm({type:Ze,selectors:[["mat-tab"]],contentQueries:function(Y,me,De){if(1&Y&&(o.Suo(De,K,5),o.Suo(De,ze,7,o.Rgc)),2&Y){let et;o.iGM(et=o.CRH())&&(me.templateLabel=et.first),o.iGM(et=o.CRH())&&(me._explicitContent=et.first)}},viewQuery:function(Y,me){if(1&Y&&o.Gf(o.Rgc,7),2&Y){let De;o.iGM(De=o.CRH())&&(me._implicitContent=De.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[o._Bn([{provide:Me,useExisting:Ze}]),o.qOj,o.TTD],ngContentSelectors:de,decls:1,vars:0,template:function(Y,me){1&Y&&(o.F$t(),o.YNc(0,re,1,0,"ng-template"))},encapsulation:2}),Ze})();const Re={translateTab:(0,P.X$)("translateTab",[(0,P.SB)("center, void, left-origin-center, right-origin-center",(0,P.oB)({transform:"none"})),(0,P.SB)("left",(0,P.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),(0,P.SB)("right",(0,P.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),(0,P.eR)("* => left, * => right, left => center, right => center",(0,P.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,P.eR)("void => left-origin-center",[(0,P.oB)({transform:"translate3d(-100%, 0, 0)"}),(0,P.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,P.eR)("void => right-origin-center",[(0,P.oB)({transform:"translate3d(100%, 0, 0)"}),(0,P.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let Ne=(()=>{class Ze extends y.Pl{constructor(Y,me,De,et){super(Y,me,et),this._host=De,this._centeringSub=s.w0.EMPTY,this._leavingSub=s.w0.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,w.O)(this._host._isCenterPosition(this._host._position))).subscribe(Y=>{Y&&!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 Ze.\u0275fac=function(Y){return new(Y||Ze)(o.Y36(o._Vd),o.Y36(o.s_b),o.Y36((0,o.Gpc)(()=>Le)),o.Y36(C.K0))},Ze.\u0275dir=o.lG2({type:Ze,selectors:[["","matTabBodyHost",""]],features:[o.qOj]}),Ze})(),he=(()=>{class Ze{constructor(Y,me,De){this._elementRef=Y,this._dir=me,this._dirChangeSubscription=s.w0.EMPTY,this._translateTabComplete=new N.x,this._onCentering=new o.vpe,this._beforeCentering=new o.vpe,this._afterLeavingCenter=new o.vpe,this._onCentered=new o.vpe(!0),this.animationDuration="500ms",me&&(this._dirChangeSubscription=me.change.subscribe(et=>{this._computePositionAnimationState(et),De.markForCheck()})),this._translateTabComplete.pipe((0,Z.x)((et,$t)=>et.fromState===$t.fromState&&et.toState===$t.toState)).subscribe(et=>{this._isCenterPosition(et.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(et.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(Y){this._positionIndex=Y,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(Y){const me=this._isCenterPosition(Y.toState);this._beforeCentering.emit(me),me&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(Y){return"center"==Y||"left-origin-center"==Y||"right-origin-center"==Y}_computePositionAnimationState(Y=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==Y?"left":"right":this._positionIndex>0?"ltr"==Y?"right":"left":"center"}_computePositionFromOrigin(Y){const me=this._getLayoutDirection();return"ltr"==me&&Y<=0||"rtl"==me&&Y>0?"left-origin-center":"right-origin-center"}}return Ze.\u0275fac=function(Y){return new(Y||Ze)(o.Y36(o.SBq),o.Y36(W.Is,8),o.Y36(o.sBO))},Ze.\u0275dir=o.lG2({type:Ze,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),Ze})(),Le=(()=>{class Ze extends he{constructor(Y,me,De){super(Y,me,De)}}return Ze.\u0275fac=function(Y){return new(Y||Ze)(o.Y36(o.SBq),o.Y36(W.Is,8),o.Y36(o.sBO))},Ze.\u0275cmp=o.Xpm({type:Ze,selectors:[["mat-tab-body"]],viewQuery:function(Y,me){if(1&Y&&o.Gf(y.Pl,5),2&Y){let De;o.iGM(De=o.CRH())&&(me._portalHost=De.first)}},hostAttrs:[1,"mat-tab-body"],features:[o.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(Y,me){1&Y&&(o.TgZ(0,"div",0,1),o.NdJ("@translateTab.start",function(et){return me._onTranslateTabStarted(et)})("@translateTab.done",function(et){return me._translateTabComplete.next(et)}),o.YNc(2,oe,0,0,"ng-template",2),o.qZA()),2&Y&&o.Q6J("@translateTab",o.WLB(3,b,me._position,o.VKq(1,ae,me.animationDuration)))},directives:[Ne],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[Re.translateTab]}}),Ze})();const ke=new o.OlP("MAT_TABS_CONFIG"),q=(0,M.Id)(class{});let $=(()=>{class Ze extends q{constructor(Y){super(),this.elementRef=Y}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return Ze.\u0275fac=function(Y){return new(Y||Ze)(o.Y36(o.SBq))},Ze.\u0275dir=o.lG2({type:Ze,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(Y,me){2&Y&&(o.uIk("aria-disabled",!!me.disabled),o.ekj("mat-tab-disabled",me.disabled))},inputs:{disabled:"disabled"},features:[o.qOj]}),Ze})();const le=(0,_e.i$)({passive:!0});let nt=(()=>{class Ze{constructor(Y,me,De,et,$t,Nt,Jt){this._elementRef=Y,this._changeDetectorRef=me,this._viewportRuler=De,this._dir=et,this._ngZone=$t,this._platform=Nt,this._animationMode=Jt,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new N.x,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new N.x,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new o.vpe,this.indexFocused=new o.vpe,$t.runOutsideAngular(()=>{(0,D.R)(Y.nativeElement,"mouseleave").pipe((0,j.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get selectedIndex(){return this._selectedIndex}set selectedIndex(Y){Y=(0,ie.su)(Y),this._selectedIndex!=Y&&(this._selectedIndexChanged=!0,this._selectedIndex=Y,this._keyManager&&this._keyManager.updateActiveItem(Y))}ngAfterViewInit(){(0,D.R)(this._previousPaginator.nativeElement,"touchstart",le).pipe((0,j.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,D.R)(this._nextPaginator.nativeElement,"touchstart",le).pipe((0,j.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const Y=this._dir?this._dir.change:(0,A.of)("ltr"),me=this._viewportRuler.change(150),De=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new e.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(De):De(),(0,O.T)(Y,me,this._items.changes).pipe((0,j.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>Promise.resolve().then(De)),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe((0,j.R)(this._destroyed)).subscribe(et=>{this.indexFocused.emit(et),this._setTabFocus(et)})}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(Y){if(!(0,ee.Vb)(Y))switch(Y.keyCode){case ee.K5:case ee.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(Y));break;default:this._keyManager.onKeydown(Y)}}_onContentChanges(){const Y=this._elementRef.nativeElement.textContent;Y!==this._currentTextContent&&(this._currentTextContent=Y||"",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(Y){!this._isValidIndex(Y)||this.focusIndex===Y||!this._keyManager||this._keyManager.setActiveItem(Y)}_isValidIndex(Y){if(!this._items)return!0;const me=this._items?this._items.toArray()[Y]:null;return!!me&&!me.disabled}_setTabFocus(Y){if(this._showPaginationControls&&this._scrollToLabel(Y),this._items&&this._items.length){this._items.toArray()[Y].focus();const me=this._tabListContainer.nativeElement;me.scrollLeft="ltr"==this._getLayoutDirection()?0:me.scrollWidth-me.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const Y=this.scrollDistance,me="ltr"===this._getLayoutDirection()?-Y:Y;this._tabList.nativeElement.style.transform=`translateX(${Math.round(me)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(Y){this._scrollTo(Y)}_scrollHeader(Y){return this._scrollTo(this._scrollDistance+("before"==Y?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(Y){this._stopInterval(),this._scrollHeader(Y)}_scrollToLabel(Y){if(this.disablePagination)return;const me=this._items?this._items.toArray()[Y]:null;if(!me)return;const De=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:et,offsetWidth:$t}=me.elementRef.nativeElement;let Nt,Jt;"ltr"==this._getLayoutDirection()?(Nt=et,Jt=Nt+$t):(Jt=this._tabListInner.nativeElement.offsetWidth-et,Nt=Jt-$t);const ct=this.scrollDistance,Pe=this.scrollDistance+De;Nt<ct?this.scrollDistance-=ct-Nt+60:Jt>Pe&&(this.scrollDistance+=Jt-Pe+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const Y=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;Y||(this.scrollDistance=0),Y!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=Y}}_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 Y=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,me=Y?Y.elementRef.nativeElement:null;me?this._inkBar.alignToElement(me):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(Y,me){me&&null!=me.button&&0!==me.button||(this._stopInterval(),(0,E.H)(650,100).pipe((0,j.R)((0,O.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:De,distance:et}=this._scrollHeader(Y);(0===et||et>=De)&&this._stopInterval()}))}_scrollTo(Y){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const me=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(me,Y)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:me,distance:this._scrollDistance}}}return Ze.\u0275fac=function(Y){return new(Y||Ze)(o.Y36(o.SBq),o.Y36(o.sBO),o.Y36(ce.rL),o.Y36(W.Is,8),o.Y36(o.R0b),o.Y36(_e.t4),o.Y36(l.Qb,8))},Ze.\u0275dir=o.lG2({type:Ze,inputs:{disablePagination:"disablePagination"}}),Ze})(),ft=(()=>{class Ze extends nt{constructor(Y,me,De,et,$t,Nt,Jt){super(Y,me,De,et,$t,Nt,Jt),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(Y){this._disableRipple=(0,ie.Ig)(Y)}_itemSelected(Y){Y.preventDefault()}}return Ze.\u0275fac=function(Y){return new(Y||Ze)(o.Y36(o.SBq),o.Y36(o.sBO),o.Y36(ce.rL),o.Y36(W.Is,8),o.Y36(o.R0b),o.Y36(_e.t4),o.Y36(l.Qb,8))},Ze.\u0275dir=o.lG2({type:Ze,inputs:{disableRipple:"disableRipple"},features:[o.qOj]}),Ze})(),it=(()=>{class Ze extends ft{constructor(Y,me,De,et,$t,Nt,Jt){super(Y,me,De,et,$t,Nt,Jt)}}return Ze.\u0275fac=function(Y){return new(Y||Ze)(o.Y36(o.SBq),o.Y36(o.sBO),o.Y36(ce.rL),o.Y36(W.Is,8),o.Y36(o.R0b),o.Y36(_e.t4),o.Y36(l.Qb,8))},Ze.\u0275cmp=o.Xpm({type:Ze,selectors:[["mat-tab-header"]],contentQueries:function(Y,me,De){if(1&Y&&o.Suo(De,$,4),2&Y){let et;o.iGM(et=o.CRH())&&(me._items=et)}},viewQuery:function(Y,me){if(1&Y&&(o.Gf(Be,7),o.Gf(i,7),o.Gf(a,7),o.Gf(p,7),o.Gf(u,5),o.Gf(_,5)),2&Y){let De;o.iGM(De=o.CRH())&&(me._inkBar=De.first),o.iGM(De=o.CRH())&&(me._tabListContainer=De.first),o.iGM(De=o.CRH())&&(me._tabList=De.first),o.iGM(De=o.CRH())&&(me._tabListInner=De.first),o.iGM(De=o.CRH())&&(me._nextPaginator=De.first),o.iGM(De=o.CRH())&&(me._previousPaginator=De.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(Y,me){2&Y&&o.ekj("mat-tab-header-pagination-controls-enabled",me._showPaginationControls)("mat-tab-header-rtl","rtl"==me._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[o.qOj],ngContentSelectors:de,decls:14,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","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","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(Y,me){1&Y&&(o.F$t(),o.TgZ(0,"div",0,1),o.NdJ("click",function(){return me._handlePaginatorClick("before")})("mousedown",function(et){return me._handlePaginatorPress("before",et)})("touchend",function(){return me._stopInterval()}),o._UZ(2,"div",2),o.qZA(),o.TgZ(3,"div",3,4),o.NdJ("keydown",function(et){return me._handleKeydown(et)}),o.TgZ(5,"div",5,6),o.NdJ("cdkObserveContent",function(){return me._onContentChanges()}),o.TgZ(7,"div",7,8),o.Hsn(9),o.qZA(),o._UZ(10,"mat-ink-bar"),o.qZA(),o.qZA(),o.TgZ(11,"div",9,10),o.NdJ("mousedown",function(et){return me._handlePaginatorPress("after",et)})("click",function(){return me._handlePaginatorClick("after")})("touchend",function(){return me._stopInterval()}),o._UZ(13,"div",2),o.qZA()),2&Y&&(o.ekj("mat-tab-header-pagination-disabled",me._disableScrollBefore),o.Q6J("matRippleDisabled",me._disableScrollBefore||me.disableRipple),o.xp6(5),o.ekj("_mat-animation-noopable","NoopAnimations"===me._animationMode),o.xp6(6),o.ekj("mat-tab-header-pagination-disabled",me._disableScrollAfter),o.Q6J("matRippleDisabled",me._disableScrollAfter||me.disableRipple))},directives:[M.wG,t.wD,Be],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-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}.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;content:"";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}),Ze})(),rt=0;class Mt{}const Zt=(0,M.pj)((0,M.Kr)(class{constructor(Ze){this._elementRef=Ze}}),"primary");let Ft=(()=>{class Ze extends Zt{constructor(Y,me,De,et){var $t;super(Y),this._changeDetectorRef=me,this._animationMode=et,this._tabs=new o.n_E,this._indexToSelect=0,this._tabBodyWrapperHeight=0,this._tabsSubscription=s.w0.EMPTY,this._tabLabelSubscription=s.w0.EMPTY,this._selectedIndex=null,this.headerPosition="above",this.selectedIndexChange=new o.vpe,this.focusChange=new o.vpe,this.animationDone=new o.vpe,this.selectedTabChange=new o.vpe(!0),this._groupId=rt++,this.animationDuration=De&&De.animationDuration?De.animationDuration:"500ms",this.disablePagination=!(!De||null==De.disablePagination)&&De.disablePagination,this.dynamicHeight=!(!De||null==De.dynamicHeight)&&De.dynamicHeight,this.contentTabIndex=null!==($t=null==De?void 0:De.contentTabIndex)&&void 0!==$t?$t:null}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(Y){this._dynamicHeight=(0,ie.Ig)(Y)}get selectedIndex(){return this._selectedIndex}set selectedIndex(Y){this._indexToSelect=(0,ie.su)(Y,null)}get animationDuration(){return this._animationDuration}set animationDuration(Y){this._animationDuration=/^\d+$/.test(Y)?Y+"ms":Y}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(Y){this._contentTabIndex=(0,ie.su)(Y,null)}get backgroundColor(){return this._backgroundColor}set backgroundColor(Y){const me=this._elementRef.nativeElement;me.classList.remove(`mat-background-${this.backgroundColor}`),Y&&me.classList.add(`mat-background-${Y}`),this._backgroundColor=Y}ngAfterContentChecked(){const Y=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=Y){const me=null==this._selectedIndex;if(!me){this.selectedTabChange.emit(this._createChangeEvent(Y));const De=this._tabBodyWrapper.nativeElement;De.style.minHeight=De.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((De,et)=>De.isActive=et===Y),me||(this.selectedIndexChange.emit(Y),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((me,De)=>{me.position=De-Y,null!=this._selectedIndex&&0==me.position&&!me.origin&&(me.origin=Y-this._selectedIndex)}),this._selectedIndex!==Y&&(this._selectedIndex=Y,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{if(this._clampTabIndex(this._indexToSelect)===this._selectedIndex){const me=this._tabs.toArray();for(let De=0;De<me.length;De++)if(me[De].isActive){this._indexToSelect=this._selectedIndex=De;break}}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe((0,w.O)(this._allTabs)).subscribe(Y=>{this._tabs.reset(Y.filter(me=>me._closestTabGroup===this||!me._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}focusTab(Y){const me=this._tabHeader;me&&(me.focusIndex=Y)}_focusChanged(Y){this.focusChange.emit(this._createChangeEvent(Y))}_createChangeEvent(Y){const me=new Mt;return me.index=Y,this._tabs&&this._tabs.length&&(me.tab=this._tabs.toArray()[Y]),me}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,O.T)(...this._tabs.map(Y=>Y._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(Y){return Math.min(this._tabs.length-1,Math.max(Y||0,0))}_getTabLabelId(Y){return`mat-tab-label-${this._groupId}-${Y}`}_getTabContentId(Y){return`mat-tab-content-${this._groupId}-${Y}`}_setTabBodyWrapperHeight(Y){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const me=this._tabBodyWrapper.nativeElement;me.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(me.style.height=Y+"px")}_removeTabBodyWrapperHeight(){const Y=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=Y.clientHeight,Y.style.height="",this.animationDone.emit()}_handleClick(Y,me,De){Y.disabled||(this.selectedIndex=me.focusIndex=De)}_getTabIndex(Y,me){return Y.disabled?null:this.selectedIndex===me?0:-1}_tabFocusChanged(Y,me){Y&&"mouse"!==Y&&"touch"!==Y&&(this._tabHeader.focusIndex=me)}}return Ze.\u0275fac=function(Y){return new(Y||Ze)(o.Y36(o.SBq),o.Y36(o.sBO),o.Y36(ke,8),o.Y36(l.Qb,8))},Ze.\u0275dir=o.lG2({type:Ze,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:[o.qOj]}),Ze})(),Vt=(()=>{class Ze extends Ft{constructor(Y,me,De,et){super(Y,me,De,et)}}return Ze.\u0275fac=function(Y){return new(Y||Ze)(o.Y36(o.SBq),o.Y36(o.sBO),o.Y36(ke,8),o.Y36(l.Qb,8))},Ze.\u0275cmp=o.Xpm({type:Ze,selectors:[["mat-tab-group"]],contentQueries:function(Y,me,De){if(1&Y&&o.Suo(De,vt,5),2&Y){let et;o.iGM(et=o.CRH())&&(me._allTabs=et)}},viewQuery:function(Y,me){if(1&Y&&(o.Gf(L,5),o.Gf(I,5)),2&Y){let De;o.iGM(De=o.CRH())&&(me._tabBodyWrapper=De.first),o.iGM(De=o.CRH())&&(me._tabHeader=De.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(Y,me){2&Y&&o.ekj("mat-tab-group-dynamic-height",me.dynamicHeight)("mat-tab-group-inverted-header","below"===me.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[o._Bn([{provide:Ge,useExisting:Ze}]),o.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","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(Y,me){1&Y&&(o.TgZ(0,"mat-tab-header",0,1),o.NdJ("indexFocused",function(et){return me._focusChanged(et)})("selectFocusedIndex",function(et){return me.selectedIndex=et}),o.YNc(2,G,4,14,"div",2),o.qZA(),o.TgZ(3,"div",3,4),o.YNc(5,F,1,9,"mat-tab-body",5),o.qZA()),2&Y&&(o.Q6J("selectedIndex",me.selectedIndex||0)("disableRipple",me.disableRipple)("disablePagination",me.disablePagination),o.xp6(2),o.Q6J("ngForOf",me._tabs),o.xp6(1),o.ekj("_mat-animation-noopable","NoopAnimations"===me._animationMode),o.xp6(2),o.Q6J("ngForOf",me._tabs))},directives:[it,C.sg,$,M.wG,e.kH,C.O5,y.Pl,Le],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}),Ze})(),Ii=(()=>{class Ze extends nt{constructor(Y,me,De,et,$t,Nt,Jt){super(Y,et,$t,me,De,Nt,Jt),this._disableRipple=!1,this.color="primary"}get backgroundColor(){return this._backgroundColor}set backgroundColor(Y){const me=this._elementRef.nativeElement.classList;me.remove(`mat-background-${this.backgroundColor}`),Y&&me.add(`mat-background-${Y}`),this._backgroundColor=Y}get disableRipple(){return this._disableRipple}set disableRipple(Y){this._disableRipple=(0,ie.Ig)(Y)}_itemSelected(){}ngAfterContentInit(){this._items.changes.pipe((0,w.O)(null),(0,j.R)(this._destroyed)).subscribe(()=>{this.updateActiveLink()}),super.ngAfterContentInit()}updateActiveLink(){if(!this._items)return;const Y=this._items.toArray();for(let me=0;me<Y.length;me++)if(Y[me].active)return this.selectedIndex=me,void this._changeDetectorRef.markForCheck();this.selectedIndex=-1,this._inkBar.hide()}}return Ze.\u0275fac=function(Y){return new(Y||Ze)(o.Y36(o.SBq),o.Y36(W.Is,8),o.Y36(o.R0b),o.Y36(o.sBO),o.Y36(ce.rL),o.Y36(_e.t4),o.Y36(l.Qb,8))},Ze.\u0275dir=o.lG2({type:Ze,inputs:{backgroundColor:"backgroundColor",disableRipple:"disableRipple",color:"color"},features:[o.qOj]}),Ze})(),jt=(()=>{class Ze extends Ii{constructor(Y,me,De,et,$t,Nt,Jt){super(Y,me,De,et,$t,Nt,Jt)}}return Ze.\u0275fac=function(Y){return new(Y||Ze)(o.Y36(o.SBq),o.Y36(W.Is,8),o.Y36(o.R0b),o.Y36(o.sBO),o.Y36(ce.rL),o.Y36(_e.t4),o.Y36(l.Qb,8))},Ze.\u0275cmp=o.Xpm({type:Ze,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(Y,me,De){if(1&Y&&o.Suo(De,ai,5),2&Y){let et;o.iGM(et=o.CRH())&&(me._items=et)}},viewQuery:function(Y,me){if(1&Y&&(o.Gf(Be,7),o.Gf(i,7),o.Gf(a,7),o.Gf(p,7),o.Gf(u,5),o.Gf(_,5)),2&Y){let De;o.iGM(De=o.CRH())&&(me._inkBar=De.first),o.iGM(De=o.CRH())&&(me._tabListContainer=De.first),o.iGM(De=o.CRH())&&(me._tabList=De.first),o.iGM(De=o.CRH())&&(me._tabListInner=De.first),o.iGM(De=o.CRH())&&(me._nextPaginator=De.first),o.iGM(De=o.CRH())&&(me._previousPaginator=De.first)}},hostAttrs:[1,"mat-tab-nav-bar","mat-tab-header"],hostVars:10,hostBindings:function(Y,me){2&Y&&o.ekj("mat-tab-header-pagination-controls-enabled",me._showPaginationControls)("mat-tab-header-rtl","rtl"==me._getLayoutDirection())("mat-primary","warn"!==me.color&&"accent"!==me.color)("mat-accent","accent"===me.color)("mat-warn","warn"===me.color)},inputs:{color:"color"},exportAs:["matTabNavBar","matTabNav"],features:[o.qOj],attrs:U,ngContentSelectors:de,decls:14,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","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","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(Y,me){1&Y&&(o.F$t(),o.TgZ(0,"div",0,1),o.NdJ("click",function(){return me._handlePaginatorClick("before")})("mousedown",function(et){return me._handlePaginatorPress("before",et)})("touchend",function(){return me._stopInterval()}),o._UZ(2,"div",2),o.qZA(),o.TgZ(3,"div",3,4),o.NdJ("keydown",function(et){return me._handleKeydown(et)}),o.TgZ(5,"div",5,6),o.NdJ("cdkObserveContent",function(){return me._onContentChanges()}),o.TgZ(7,"div",7,8),o.Hsn(9),o.qZA(),o._UZ(10,"mat-ink-bar"),o.qZA(),o.qZA(),o.TgZ(11,"div",9,10),o.NdJ("mousedown",function(et){return me._handlePaginatorPress("after",et)})("click",function(){return me._handlePaginatorClick("after")})("touchend",function(){return me._stopInterval()}),o._UZ(13,"div",2),o.qZA()),2&Y&&(o.ekj("mat-tab-header-pagination-disabled",me._disableScrollBefore),o.Q6J("matRippleDisabled",me._disableScrollBefore||me.disableRipple),o.xp6(5),o.ekj("_mat-animation-noopable","NoopAnimations"===me._animationMode),o.xp6(6),o.ekj("mat-tab-header-pagination-disabled",me._disableScrollAfter),o.Q6J("matRippleDisabled",me._disableScrollAfter||me.disableRipple))},directives:[M.wG,t.wD,Be],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-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}.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;content:"";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}),Ze})();const ei=(0,M.sb)((0,M.Kr)((0,M.Id)(class{})));let Pi=(()=>{class Ze extends ei{constructor(Y,me,De,et,$t,Nt){super(),this._tabNavBar=Y,this.elementRef=me,this._focusMonitor=$t,this._isActive=!1,this.rippleConfig=De||{},this.tabIndex=parseInt(et)||0,"NoopAnimations"===Nt&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0})}get active(){return this._isActive}set active(Y){(0,ie.Ig)(Y)!==this._isActive&&(this._isActive=Y,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)}}return Ze.\u0275fac=function(Y){return new(Y||Ze)(o.Y36(Ii),o.Y36(o.SBq),o.Y36(M.Y2,8),o.$8M("tabindex"),o.Y36(e.tE),o.Y36(l.Qb,8))},Ze.\u0275dir=o.lG2({type:Ze,inputs:{active:"active"},features:[o.qOj]}),Ze})(),ai=(()=>{class Ze extends Pi{constructor(Y,me,De,et,$t,Nt,Jt,ct){super(Y,me,$t,Nt,Jt,ct),this._tabLinkRipple=new M.IR(this,De,me,et),this._tabLinkRipple.setupTriggerEvents(me.nativeElement)}ngOnDestroy(){super.ngOnDestroy(),this._tabLinkRipple._removeTriggerEvents()}}return Ze.\u0275fac=function(Y){return new(Y||Ze)(o.Y36(jt),o.Y36(o.SBq),o.Y36(o.R0b),o.Y36(_e.t4),o.Y36(M.Y2,8),o.$8M("tabindex"),o.Y36(e.tE),o.Y36(l.Qb,8))},Ze.\u0275dir=o.lG2({type:Ze,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:7,hostBindings:function(Y,me){1&Y&&o.NdJ("focus",function(){return me._handleFocus()}),2&Y&&(o.uIk("aria-current",me.active?"page":null)("aria-disabled",me.disabled)("tabIndex",me.tabIndex),o.ekj("mat-tab-disabled",me.disabled)("mat-tab-label-active",me.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[o.qOj]}),Ze})(),hi=(()=>{class Ze{}return Ze.\u0275fac=function(Y){return new(Y||Ze)},Ze.\u0275mod=o.oAB({type:Ze}),Ze.\u0275inj=o.cJS({imports:[[C.ez,M.BQ,y.eL,M.si,t.Q8,e.rt],M.BQ]}),Ze})()},4594:(Ve,Q,m)=>{"use strict";m.d(Q,{Ye:()=>s,g0:()=>A});var e=m(5e3),t=m(508),y=m(9808),C=m(925);const o=["*",[["mat-toolbar-row"]]],M=["*","mat-toolbar-row"],l=(0,t.pj)(class{constructor(O){this._elementRef=O}});let N=(()=>{class O{}return O.\u0275fac=function(P){return new(P||O)},O.\u0275dir=e.lG2({type:O,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),O})(),s=(()=>{class O extends l{constructor(P,w,Z){super(P),this._platform=w,this._document=Z}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return O.\u0275fac=function(P){return new(P||O)(e.Y36(e.SBq),e.Y36(C.t4),e.Y36(y.K0))},O.\u0275cmp=e.Xpm({type:O,selectors:[["mat-toolbar"]],contentQueries:function(P,w,Z){if(1&P&&e.Suo(Z,N,5),2&P){let j;e.iGM(j=e.CRH())&&(w._toolbarRows=j)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(P,w){2&P&&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:M,decls:2,vars:0,template:function(P,w){1&P&&(e.F$t(o),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}),O})(),A=(()=>{class O{}return O.\u0275fac=function(P){return new(P||O)},O.\u0275mod=e.oAB({type:O}),O.\u0275inj=e.cJS({imports:[[t.BQ],t.BQ]}),O})()},7238:(Ve,Q,m)=>{"use strict";m.d(Q,{gM:()=>p,AV:()=>L});var e=m(9776),t=m(5664),y=m(9808),C=m(5e3),o=m(508),M=m(5303),l=m(3191),N=m(1159),s=m(5113),D=m(925),A=m(7429),O=m(7579),E=m(2722),P=m(5698),w=m(1777),Z=m(226);const j={tooltipState:(0,w.X$)("state",[(0,w.SB)("initial, void, hidden",(0,w.oB)({opacity:0,transform:"scale(0)"})),(0,w.SB)("visible",(0,w.oB)({transform:"scale(1)"})),(0,w.eR)("* => visible",(0,w.jt)("200ms cubic-bezier(0, 0, 0.2, 1)",(0,w.F4)([(0,w.oB)({opacity:0,transform:"scale(0)",offset:0}),(0,w.oB)({opacity:.5,transform:"scale(0.99)",offset:.5}),(0,w.oB)({opacity:1,transform:"scale(1)",offset:1})]))),(0,w.eR)("* => hidden",(0,w.jt)("100ms cubic-bezier(0, 0, 0.2, 1)",(0,w.oB)({opacity:0})))])},ee="tooltip-panel",_e=(0,D.i$)({passive:!0}),de=new C.OlP("mat-tooltip-scroll-strategy"),ae={provide:de,deps:[e.aV],useFactory:function oe(I){return()=>I.scrollStrategies.reposition({scrollThrottle:20})}},b=new C.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function i(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let a=(()=>{class I{constructor(r,v,G,F,U,ye,Ce,Be,ze,Ie,K,Me){this._overlay=r,this._elementRef=v,this._scrollDispatcher=G,this._viewContainerRef=F,this._ngZone=U,this._platform=ye,this._ariaDescriber=Ce,this._focusMonitor=Be,this._dir=Ie,this._defaultOptions=K,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 O.x,this._handleKeydown=we=>{this._isTooltipVisible()&&we.keyCode===N.hY&&!(0,N.Vb)(we)&&(we.preventDefault(),we.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=ze,this._document=Me,K&&(K.position&&(this.position=K.position),K.touchGestures&&(this.touchGestures=K.touchGestures)),Ie.change.pipe((0,E.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),U.runOutsideAngular(()=>{v.nativeElement.addEventListener("keydown",this._handleKeydown)})}get position(){return this._position}set position(r){var v;r!==this._position&&(this._position=r,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(v=this._tooltipInstance)||void 0===v||v.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(r){this._disabled=(0,l.Ig)(r),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get message(){return this._message}set message(r){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=r?String(r).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(r){this._tooltipClass=r,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,E.R)(this._destroyed)).subscribe(r=>{r?"keyboard"===r&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const r=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),r.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(([v,G])=>{r.removeEventListener(v,G,_e)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(r,this.message,"tooltip"),this._focusMonitor.stopMonitoring(r)}show(r=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const v=this._createOverlay();this._detach(),this._portal=this._portal||new A.C5(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=v.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe((0,E.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(r)}hide(r=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(r)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const r=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),v=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(r);return v.positionChanges.pipe((0,E.R)(this._destroyed)).subscribe(G=>{this._updateCurrentPositionClass(G.connectionPair),this._tooltipInstance&&G.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:v,panelClass:`${this._cssClassPrefix}-${ee}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,E.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,E.R)(this._destroyed)).subscribe(()=>{var G;return null===(G=this._tooltipInstance)||void 0===G?void 0:G._handleBodyInteraction()}),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(r){const v=r.getConfig().positionStrategy,G=this._getOrigin(),F=this._getOverlayPosition();v.withPositions([this._addOffset(Object.assign(Object.assign({},G.main),F.main)),this._addOffset(Object.assign(Object.assign({},G.fallback),F.fallback))])}_addOffset(r){return r}_getOrigin(){const r=!this._dir||"ltr"==this._dir.value,v=this.position;let G;"above"==v||"below"==v?G={originX:"center",originY:"above"==v?"top":"bottom"}:"before"==v||"left"==v&&r||"right"==v&&!r?G={originX:"start",originY:"center"}:("after"==v||"right"==v&&r||"left"==v&&!r)&&(G={originX:"end",originY:"center"});const{x:F,y:U}=this._invertPosition(G.originX,G.originY);return{main:G,fallback:{originX:F,originY:U}}}_getOverlayPosition(){const r=!this._dir||"ltr"==this._dir.value,v=this.position;let G;"above"==v?G={overlayX:"center",overlayY:"bottom"}:"below"==v?G={overlayX:"center",overlayY:"top"}:"before"==v||"left"==v&&r||"right"==v&&!r?G={overlayX:"end",overlayY:"center"}:("after"==v||"right"==v&&r||"left"==v&&!r)&&(G={overlayX:"start",overlayY:"center"});const{x:F,y:U}=this._invertPosition(G.overlayX,G.overlayY);return{main:G,fallback:{overlayX:F,overlayY:U}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,P.q)(1),(0,E.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(r){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=r,this._tooltipInstance._markForCheck())}_invertPosition(r,v){return"above"===this.position||"below"===this.position?"top"===v?v="bottom":"bottom"===v&&(v="top"):"end"===r?r="start":"start"===r&&(r="end"),{x:r,y:v}}_updateCurrentPositionClass(r){const{overlayY:v,originX:G,originY:F}=r;let U;if(U="center"===v?this._dir&&"rtl"===this._dir.value?"end"===G?"left":"right":"start"===G?"left":"right":"bottom"===v&&"top"===F?"above":"below",U!==this._currentPosition){const ye=this._overlayRef;if(ye){const Ce=`${this._cssClassPrefix}-${ee}-`;ye.removePanelClass(Ce+this._currentPosition),ye.addPanelClass(Ce+U)}this._currentPosition=U}}_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 r=[];if(this._platformSupportsMouseEvents())r.push(["mouseleave",()=>this.hide()],["wheel",v=>this._wheelListener(v)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const v=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};r.push(["touchend",v],["touchcancel",v])}this._addListeners(r),this._passiveListeners.push(...r)}_addListeners(r){r.forEach(([v,G])=>{this._elementRef.nativeElement.addEventListener(v,G,_e)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(r){if(this._isTooltipVisible()){const v=this._document.elementFromPoint(r.clientX,r.clientY),G=this._elementRef.nativeElement;v!==G&&!G.contains(v)&&this.hide()}}_disableNativeGesturesIfNecessary(){const r=this.touchGestures;if("off"!==r){const v=this._elementRef.nativeElement,G=v.style;("on"===r||"INPUT"!==v.nodeName&&"TEXTAREA"!==v.nodeName)&&(G.userSelect=G.msUserSelect=G.webkitUserSelect=G.MozUserSelect="none"),("on"===r||!v.draggable)&&(G.webkitUserDrag="none"),G.touchAction="none",G.webkitTapHighlightColor="transparent"}}}return I.\u0275fac=function(r){C.$Z()},I.\u0275dir=C.lG2({type:I,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),I})(),p=(()=>{class I extends a{constructor(r,v,G,F,U,ye,Ce,Be,ze,Ie,K,Me){super(r,v,G,F,U,ye,Ce,Be,ze,Ie,K,Me),this._tooltipComponent=_}}return I.\u0275fac=function(r){return new(r||I)(C.Y36(e.aV),C.Y36(C.SBq),C.Y36(M.mF),C.Y36(C.s_b),C.Y36(C.R0b),C.Y36(D.t4),C.Y36(t.$s),C.Y36(t.tE),C.Y36(de),C.Y36(Z.Is,8),C.Y36(b,8),C.Y36(y.K0))},I.\u0275dir=C.lG2({type:I,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[C.qOj]}),I})(),u=(()=>{class I{constructor(r){this._changeDetectorRef=r,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new O.x}show(r){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._onShow(),this._markForCheck()},r)}hide(r){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},r)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(r){const v=r.toState;"hidden"===v&&!this.isVisible()&&this._onHide.next(),("visible"===v||"hidden"===v)&&(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_onShow(){}}return I.\u0275fac=function(r){return new(r||I)(C.Y36(C.sBO))},I.\u0275dir=C.lG2({type:I}),I})(),_=(()=>{class I extends u{constructor(r,v){super(r),this._breakpointObserver=v,this._isHandset=this._breakpointObserver.observe(s.u3.Handset)}}return I.\u0275fac=function(r){return new(r||I)(C.Y36(C.sBO),C.Y36(s.Yg))},I.\u0275cmp=C.Xpm({type:I,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(r,v){2&r&&C.Udp("zoom","visible"===v._visibility?1:null)},features:[C.qOj],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(r,v){if(1&r&&(C.TgZ(0,"div",0),C.NdJ("@state.start",function(){return v._animationStart()})("@state.done",function(F){return v._animationDone(F)}),C.ALo(1,"async"),C._uU(2),C.qZA()),2&r){let G;C.ekj("mat-tooltip-handset",null==(G=C.lcZ(1,5,v._isHandset))?null:G.matches),C.Q6J("ngClass",v.tooltipClass)("@state",v._visibility),C.xp6(2),C.Oqu(v.message)}},directives:[y.mk],pipes:[y.Ov],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[j.tooltipState]},changeDetection:0}),I})(),L=(()=>{class I{}return I.\u0275fac=function(r){return new(r||I)},I.\u0275mod=C.oAB({type:I}),I.\u0275inj=C.cJS({providers:[ae],imports:[[t.rt,y.ez,e.U8,o.BQ],o.BQ,M.ZD]}),I})()},149:(Ve,Q,m)=>{"use strict";m.d(Q,{GZ:()=>O,gi:()=>w,dp:()=>W,WX:()=>_e,uo:()=>D,fQ:()=>A,Ar:()=>P,eu:()=>Z});var e=m(8258),t=m(5e3),y=m(508),C=m(3191),o=m(449),M=m(1135),l=m(6451),N=m(4004);const s=(0,y.sb)((0,y.Id)(e.Hs));let D=(()=>{class ce extends s{constructor(de,oe,ae){super(de,oe),this.tabIndex=Number(ae)||0}ngOnInit(){super.ngOnInit()}ngOnDestroy(){super.ngOnDestroy()}}return ce.\u0275fac=function(de){return new(de||ce)(t.Y36(t.SBq),t.Y36(e._0),t.$8M("tabindex"))},ce.\u0275dir=t.lG2({type:ce,selectors:[["mat-tree-node"]],hostAttrs:[1,"mat-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["matTreeNode"],features:[t._Bn([{provide:e.Hs,useExisting:ce}]),t.qOj]}),ce})(),A=(()=>{class ce extends e.rO{}return ce.\u0275fac=function(){let re;return function(oe){return(re||(re=t.n5z(ce)))(oe||ce)}}(),ce.\u0275dir=t.lG2({type:ce,selectors:[["","matTreeNodeDef",""]],inputs:{when:["matTreeNodeDefWhen","when"],data:["matTreeNode","data"]},features:[t._Bn([{provide:e.rO,useExisting:ce}]),t.qOj]}),ce})(),O=(()=>{class ce extends e.Xx{constructor(de,oe,ae,b){super(de,oe,ae),this._disabled=!1,this.tabIndex=Number(b)||0}get disabled(){return this._disabled}set disabled(de){this._disabled=(0,C.Ig)(de)}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(de){this._tabIndex=null!=de?de:0}ngOnInit(){super.ngOnInit()}ngAfterContentInit(){super.ngAfterContentInit()}ngOnDestroy(){super.ngOnDestroy()}}return ce.\u0275fac=function(de){return new(de||ce)(t.Y36(t.SBq),t.Y36(e._0),t.Y36(t.ZZ4),t.$8M("tabindex"))},ce.\u0275dir=t.lG2({type:ce,selectors:[["mat-nested-tree-node"]],hostAttrs:[1,"mat-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex",node:["matNestedTreeNode","node"]},exportAs:["matNestedTreeNode"],features:[t._Bn([{provide:e.Xx,useExisting:ce},{provide:e.Hs,useExisting:ce},{provide:e.HI,useExisting:ce}]),t.qOj]}),ce})(),P=(()=>{class ce{constructor(de,oe){this.viewContainer=de,this._node=oe}}return ce.\u0275fac=function(de){return new(de||ce)(t.Y36(t.s_b),t.Y36(e.HI,8))},ce.\u0275dir=t.lG2({type:ce,selectors:[["","matTreeNodeOutlet",""]],features:[t._Bn([{provide:e.cu,useExisting:ce}])]}),ce})(),w=(()=>{class ce extends e._0{}return ce.\u0275fac=function(){let re;return function(oe){return(re||(re=t.n5z(ce)))(oe||ce)}}(),ce.\u0275cmp=t.Xpm({type:ce,selectors:[["mat-tree"]],viewQuery:function(de,oe){if(1&de&&t.Gf(P,7),2&de){let ae;t.iGM(ae=t.CRH())&&(oe._nodeOutlet=ae.first)}},hostAttrs:["role","tree",1,"mat-tree"],exportAs:["matTree"],features:[t._Bn([{provide:e._0,useExisting:ce}]),t.qOj],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(de,oe){1&de&&t.GkF(0,0)},directives:[P],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}),ce})(),Z=(()=>{class ce extends e.Ud{}return ce.\u0275fac=function(){let re;return function(oe){return(re||(re=t.n5z(ce)))(oe||ce)}}(),ce.\u0275dir=t.lG2({type:ce,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:["matTreeNodeToggleRecursive","recursive"]},features:[t._Bn([{provide:e.Ud,useExisting:ce}]),t.qOj]}),ce})(),W=(()=>{class ce{}return ce.\u0275fac=function(de){return new(de||ce)},ce.\u0275mod=t.oAB({type:ce}),ce.\u0275inj=t.cJS({imports:[[e.nZ,y.BQ],y.BQ]}),ce})();class _e extends o.o2{constructor(){super(...arguments),this._data=new M.X([])}get data(){return this._data.value}set data(re){this._data.next(re)}connect(re){return(0,l.T)(re.viewChange,this._data).pipe((0,N.U)(()=>this.data))}disconnect(){}}},6360:(Ve,Q,m)=>{"use strict";m.d(Q,{Qb:()=>ki,PW:()=>Us});var e=m(5e3),t=m(2313),y=m(1777);function C(){return"undefined"!=typeof window&&void 0!==window.document}function o(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function M(xt){switch(xt.length){case 0:return new y.ZN;case 1:return xt[0];default:return new y.ZE(xt)}}function l(xt,te,ue,je,wt={},kt={}){const Qt=[],Xt=[];let pi=-1,Ti=null;if(je.forEach(Zi=>{const tn=Zi.offset,Mn=tn==pi,On=Mn&&Ti||{};Object.keys(Zi).forEach(tt=>{let Et=tt,It=Zi[tt];if("offset"!==tt)switch(Et=te.normalizePropertyName(Et,Qt),It){case y.k1:It=wt[tt];break;case y.l3:It=kt[tt];break;default:It=te.normalizeStyleValue(tt,Et,It,Qt)}On[Et]=It}),Mn||Xt.push(On),Ti=On,pi=tn}),Qt.length){const Zi="\n - ";throw new Error(`Unable to animate due to the following errors:${Zi}${Qt.join(Zi)}`)}return Xt}function N(xt,te,ue,je){switch(te){case"start":xt.onStart(()=>je(ue&&s(ue,"start",xt)));break;case"done":xt.onDone(()=>je(ue&&s(ue,"done",xt)));break;case"destroy":xt.onDestroy(()=>je(ue&&s(ue,"destroy",xt)))}}function s(xt,te,ue){const je=ue.totalTime,kt=D(xt.element,xt.triggerName,xt.fromState,xt.toState,te||xt.phaseName,null==je?xt.totalTime:je,!!ue.disabled),Qt=xt._data;return null!=Qt&&(kt._data=Qt),kt}function D(xt,te,ue,je,wt="",kt=0,Qt){return{element:xt,triggerName:te,fromState:ue,toState:je,phaseName:wt,totalTime:kt,disabled:!!Qt}}function A(xt,te,ue){let je;return xt instanceof Map?(je=xt.get(te),je||xt.set(te,je=ue)):(je=xt[te],je||(je=xt[te]=ue)),je}function O(xt){const te=xt.indexOf(":");return[xt.substring(1,te),xt.substr(te+1)]}let E=(xt,te)=>!1,P=(xt,te)=>!1,w=(xt,te,ue)=>[];const Z=o();(Z||"undefined"!=typeof Element)&&(E=C()?(xt,te)=>{for(;te&&te!==document.documentElement;){if(te===xt)return!0;te=te.parentNode||te.host}return!1}:(xt,te)=>xt.contains(te),P=(()=>{if(Z||Element.prototype.matches)return(xt,te)=>xt.matches(te);{const xt=Element.prototype,te=xt.matchesSelector||xt.mozMatchesSelector||xt.msMatchesSelector||xt.oMatchesSelector||xt.webkitMatchesSelector;return te?(ue,je)=>te.apply(ue,[je]):P}})(),w=(xt,te,ue)=>{let je=[];if(ue){const wt=xt.querySelectorAll(te);for(let kt=0;kt<wt.length;kt++)je.push(wt[kt])}else{const wt=xt.querySelector(te);wt&&je.push(wt)}return je});let W=null,ie=!1;function ee(xt){W||(W=function _e(){return"undefined"!=typeof document?document.body:null}()||{},ie=!!W.style&&"WebkitAppearance"in W.style);let te=!0;return W.style&&!function j(xt){return"ebkit"==xt.substring(1,6)}(xt)&&(te=xt in W.style,!te&&ie&&(te="Webkit"+xt.charAt(0).toUpperCase()+xt.substr(1)in W.style)),te}const ce=P,re=E,de=w;function oe(xt){const te={};return Object.keys(xt).forEach(ue=>{const je=ue.replace(/([a-z])([A-Z])/g,"$1-$2");te[je]=xt[ue]}),te}let ae=(()=>{class xt{validateStyleProperty(ue){return ee(ue)}matchesElement(ue,je){return ce(ue,je)}containsElement(ue,je){return re(ue,je)}query(ue,je,wt){return de(ue,je,wt)}computeStyle(ue,je,wt){return wt||""}animate(ue,je,wt,kt,Qt,Xt=[],pi){return new y.ZN(wt,kt)}}return xt.\u0275fac=function(ue){return new(ue||xt)},xt.\u0275prov=e.Yz7({token:xt,factory:xt.\u0275fac}),xt})(),b=(()=>{class xt{}return xt.NOOP=new ae,xt})();const u="ng-enter",_="ng-leave",x="ng-trigger",r=".ng-trigger",v="ng-animating",G=".ng-animating";function F(xt){if("number"==typeof xt)return xt;const te=xt.match(/^(-?[\.\d]+)(m?s)/);return!te||te.length<2?0:U(parseFloat(te[1]),te[2])}function U(xt,te){return"s"===te?1e3*xt:xt}function ye(xt,te,ue){return xt.hasOwnProperty("duration")?xt:function Ce(xt,te,ue){let wt,kt=0,Qt="";if("string"==typeof xt){const Xt=xt.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===Xt)return te.push(`The provided timing value "${xt}" is invalid.`),{duration:0,delay:0,easing:""};wt=U(parseFloat(Xt[1]),Xt[2]);const pi=Xt[3];null!=pi&&(kt=U(parseFloat(pi),Xt[4]));const Ti=Xt[5];Ti&&(Qt=Ti)}else wt=xt;if(!ue){let Xt=!1,pi=te.length;wt<0&&(te.push("Duration values below 0 are not allowed for this animation step."),Xt=!0),kt<0&&(te.push("Delay values below 0 are not allowed for this animation step."),Xt=!0),Xt&&te.splice(pi,0,`The provided timing value "${xt}" is invalid.`)}return{duration:wt,delay:kt,easing:Qt}}(xt,te,ue)}function Be(xt,te={}){return Object.keys(xt).forEach(ue=>{te[ue]=xt[ue]}),te}function Ie(xt,te,ue={}){if(te)for(let je in xt)ue[je]=xt[je];else Be(xt,ue);return ue}function K(xt,te,ue){return ue?te+":"+ue+";":""}function Me(xt){let te="";for(let ue=0;ue<xt.style.length;ue++){const je=xt.style.item(ue);te+=K(0,je,xt.style.getPropertyValue(je))}for(const ue in xt.style)xt.style.hasOwnProperty(ue)&&!ue.startsWith("_")&&(te+=K(0,$(ue),xt.style[ue]));xt.setAttribute("style",te)}function we(xt,te,ue){xt.style&&(Object.keys(te).forEach(je=>{const wt=q(je);ue&&!ue.hasOwnProperty(je)&&(ue[je]=xt.style[wt]),xt.style[wt]=te[je]}),o()&&Me(xt))}function z(xt,te){xt.style&&(Object.keys(te).forEach(ue=>{const je=q(ue);xt.style[je]=""}),o()&&Me(xt))}function Ge(xt){return Array.isArray(xt)?1==xt.length?xt[0]:(0,y.vP)(xt):xt}const Re=new RegExp("{{\\s*(.+?)\\s*}}","g");function Ne(xt){let te=[];if("string"==typeof xt){let ue;for(;ue=Re.exec(xt);)te.push(ue[1]);Re.lastIndex=0}return te}function he(xt,te,ue){const je=xt.toString(),wt=je.replace(Re,(kt,Qt)=>{let Xt=te[Qt];return te.hasOwnProperty(Qt)||(ue.push(`Please provide a value for the animation param ${Qt}`),Xt=""),Xt.toString()});return wt==je?xt:wt}function Le(xt){const te=[];let ue=xt.next();for(;!ue.done;)te.push(ue.value),ue=xt.next();return te}const ke=/-+([a-z0-9])/g;function q(xt){return xt.replace(ke,(...te)=>te[1].toUpperCase())}function $(xt){return xt.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function le(xt,te){return 0===xt||0===te}function xe(xt,te,ue){const je=Object.keys(ue);if(je.length&&te.length){let kt=te[0],Qt=[];if(je.forEach(Xt=>{kt.hasOwnProperty(Xt)||Qt.push(Xt),kt[Xt]=ue[Xt]}),Qt.length)for(var wt=1;wt<te.length;wt++){let Xt=te[wt];Qt.forEach(function(pi){Xt[pi]=lt(xt,pi)})}}return te}function Ue(xt,te,ue){switch(te.type){case 7:return xt.visitTrigger(te,ue);case 0:return xt.visitState(te,ue);case 1:return xt.visitTransition(te,ue);case 2:return xt.visitSequence(te,ue);case 3:return xt.visitGroup(te,ue);case 4:return xt.visitAnimate(te,ue);case 5:return xt.visitKeyframes(te,ue);case 6:return xt.visitStyle(te,ue);case 8:return xt.visitReference(te,ue);case 9:return xt.visitAnimateChild(te,ue);case 10:return xt.visitAnimateRef(te,ue);case 11:return xt.visitQuery(te,ue);case 12:return xt.visitStagger(te,ue);default:throw new Error(`Unable to resolve animation metadata node #${te.type}`)}}function lt(xt,te){return window.getComputedStyle(xt)[te]}function ft(xt,te){const ue=[];return"string"==typeof xt?xt.split(/\s*,\s*/).forEach(je=>function it(xt,te,ue){if(":"==xt[0]){const pi=function rt(xt,te){switch(xt){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(ue,je)=>parseFloat(je)>parseFloat(ue);case":decrement":return(ue,je)=>parseFloat(je)<parseFloat(ue);default:return te.push(`The transition alias value "${xt}" is not supported`),"* => *"}}(xt,ue);if("function"==typeof pi)return void te.push(pi);xt=pi}const je=xt.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==je||je.length<4)return ue.push(`The provided transition expression "${xt}" is not supported`),te;const wt=je[1],kt=je[2],Qt=je[3];te.push(Ft(wt,Qt));"<"==kt[0]&&!("*"==wt&&"*"==Qt)&&te.push(Ft(Qt,wt))}(je,ue,te)):ue.push(xt),ue}const Mt=new Set(["true","1"]),Zt=new Set(["false","0"]);function Ft(xt,te){const ue=Mt.has(xt)||Zt.has(xt),je=Mt.has(te)||Zt.has(te);return(wt,kt)=>{let Qt="*"==xt||xt==wt,Xt="*"==te||te==kt;return!Qt&&ue&&"boolean"==typeof wt&&(Qt=wt?Mt.has(xt):Zt.has(xt)),!Xt&&je&&"boolean"==typeof kt&&(Xt=kt?Mt.has(te):Zt.has(te)),Qt&&Xt}}const Ii=new RegExp("s*:selfs*,?","g");function jt(xt,te,ue){return new Pi(xt).build(te,ue)}class Pi{constructor(te){this._driver=te}build(te,ue){const je=new Ze(ue);return this._resetContextStyleTimingState(je),Ue(this,Ge(te),je)}_resetContextStyleTimingState(te){te.currentQuerySelector="",te.collectedStyles={},te.collectedStyles[""]={},te.currentTime=0}visitTrigger(te,ue){let je=ue.queryCount=0,wt=ue.depCount=0;const kt=[],Qt=[];return"@"==te.name.charAt(0)&&ue.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),te.definitions.forEach(Xt=>{if(this._resetContextStyleTimingState(ue),0==Xt.type){const pi=Xt,Ti=pi.name;Ti.toString().split(/\s*,\s*/).forEach(Zi=>{pi.name=Zi,kt.push(this.visitState(pi,ue))}),pi.name=Ti}else if(1==Xt.type){const pi=this.visitTransition(Xt,ue);je+=pi.queryCount,wt+=pi.depCount,Qt.push(pi)}else ue.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:te.name,states:kt,transitions:Qt,queryCount:je,depCount:wt,options:null}}visitState(te,ue){const je=this.visitStyle(te.styles,ue),wt=te.options&&te.options.params||null;if(je.containsDynamicStyles){const kt=new Set,Qt=wt||{};if(je.styles.forEach(Xt=>{if(Y(Xt)){const pi=Xt;Object.keys(pi).forEach(Ti=>{Ne(pi[Ti]).forEach(Zi=>{Qt.hasOwnProperty(Zi)||kt.add(Zi)})})}}),kt.size){const Xt=Le(kt.values());ue.errors.push(`state("${te.name}", ...) must define default values for all the following style substitutions: ${Xt.join(", ")}`)}}return{type:0,name:te.name,style:je,options:wt?{params:wt}:null}}visitTransition(te,ue){ue.queryCount=0,ue.depCount=0;const je=Ue(this,Ge(te.animation),ue);return{type:1,matchers:ft(te.expr,ue.errors),animation:je,queryCount:ue.queryCount,depCount:ue.depCount,options:De(te.options)}}visitSequence(te,ue){return{type:2,steps:te.steps.map(je=>Ue(this,je,ue)),options:De(te.options)}}visitGroup(te,ue){const je=ue.currentTime;let wt=0;const kt=te.steps.map(Qt=>{ue.currentTime=je;const Xt=Ue(this,Qt,ue);return wt=Math.max(wt,ue.currentTime),Xt});return ue.currentTime=wt,{type:3,steps:kt,options:De(te.options)}}visitAnimate(te,ue){const je=function me(xt,te){let ue=null;if(xt.hasOwnProperty("duration"))ue=xt;else if("number"==typeof xt)return et(ye(xt,te).duration,0,"");const je=xt;if(je.split(/\s+/).some(kt=>"{"==kt.charAt(0)&&"{"==kt.charAt(1))){const kt=et(0,0,"");return kt.dynamic=!0,kt.strValue=je,kt}return ue=ue||ye(je,te),et(ue.duration,ue.delay,ue.easing)}(te.timings,ue.errors);ue.currentAnimateTimings=je;let wt,kt=te.styles?te.styles:(0,y.oB)({});if(5==kt.type)wt=this.visitKeyframes(kt,ue);else{let Qt=te.styles,Xt=!1;if(!Qt){Xt=!0;const Ti={};je.easing&&(Ti.easing=je.easing),Qt=(0,y.oB)(Ti)}ue.currentTime+=je.duration+je.delay;const pi=this.visitStyle(Qt,ue);pi.isEmptyStep=Xt,wt=pi}return ue.currentAnimateTimings=null,{type:4,timings:je,style:wt,options:null}}visitStyle(te,ue){const je=this._makeStyleAst(te,ue);return this._validateStyleAst(je,ue),je}_makeStyleAst(te,ue){const je=[];Array.isArray(te.styles)?te.styles.forEach(Qt=>{"string"==typeof Qt?Qt==y.l3?je.push(Qt):ue.errors.push(`The provided style string value ${Qt} is not allowed.`):je.push(Qt)}):je.push(te.styles);let wt=!1,kt=null;return je.forEach(Qt=>{if(Y(Qt)){const Xt=Qt,pi=Xt.easing;if(pi&&(kt=pi,delete Xt.easing),!wt)for(let Ti in Xt)if(Xt[Ti].toString().indexOf("{{")>=0){wt=!0;break}}}),{type:6,styles:je,easing:kt,offset:te.offset,containsDynamicStyles:wt,options:null}}_validateStyleAst(te,ue){const je=ue.currentAnimateTimings;let wt=ue.currentTime,kt=ue.currentTime;je&&kt>0&&(kt-=je.duration+je.delay),te.styles.forEach(Qt=>{"string"!=typeof Qt&&Object.keys(Qt).forEach(Xt=>{if(!this._driver.validateStyleProperty(Xt))return void ue.errors.push(`The provided animation property "${Xt}" is not a supported CSS property for animations`);const pi=ue.collectedStyles[ue.currentQuerySelector],Ti=pi[Xt];let Zi=!0;Ti&&(kt!=wt&&kt>=Ti.startTime&&wt<=Ti.endTime&&(ue.errors.push(`The CSS property "${Xt}" that exists between the times of "${Ti.startTime}ms" and "${Ti.endTime}ms" is also being animated in a parallel animation between the times of "${kt}ms" and "${wt}ms"`),Zi=!1),kt=Ti.startTime),Zi&&(pi[Xt]={startTime:kt,endTime:wt}),ue.options&&function vt(xt,te,ue){const je=te.params||{},wt=Ne(xt);wt.length&&wt.forEach(kt=>{je.hasOwnProperty(kt)||ue.push(`Unable to resolve the local animation param ${kt} in the given list of values`)})}(Qt[Xt],ue.options,ue.errors)})})}visitKeyframes(te,ue){const je={type:5,styles:[],options:null};if(!ue.currentAnimateTimings)return ue.errors.push("keyframes() must be placed inside of a call to animate()"),je;let kt=0;const Qt=[];let Xt=!1,pi=!1,Ti=0;const Zi=te.steps.map(zt=>{const ri=this._makeStyleAst(zt,ue);let vi=null!=ri.offset?ri.offset:function Ee(xt){if("string"==typeof xt)return null;let te=null;if(Array.isArray(xt))xt.forEach(ue=>{if(Y(ue)&&ue.hasOwnProperty("offset")){const je=ue;te=parseFloat(je.offset),delete je.offset}});else if(Y(xt)&&xt.hasOwnProperty("offset")){const ue=xt;te=parseFloat(ue.offset),delete ue.offset}return te}(ri.styles),Mi=0;return null!=vi&&(kt++,Mi=ri.offset=vi),pi=pi||Mi<0||Mi>1,Xt=Xt||Mi<Ti,Ti=Mi,Qt.push(Mi),ri});pi&&ue.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),Xt&&ue.errors.push("Please ensure that all keyframe offsets are in order");const tn=te.steps.length;let Mn=0;kt>0&&kt<tn?ue.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==kt&&(Mn=1/(tn-1));const On=tn-1,tt=ue.currentTime,Et=ue.currentAnimateTimings,It=Et.duration;return Zi.forEach((zt,ri)=>{const vi=Mn>0?ri==On?1:Mn*ri:Qt[ri],Mi=vi*It;ue.currentTime=tt+Et.delay+Mi,Et.duration=Mi,this._validateStyleAst(zt,ue),zt.offset=vi,je.styles.push(zt)}),je}visitReference(te,ue){return{type:8,animation:Ue(this,Ge(te.animation),ue),options:De(te.options)}}visitAnimateChild(te,ue){return ue.depCount++,{type:9,options:De(te.options)}}visitAnimateRef(te,ue){return{type:10,animation:this.visitReference(te.animation,ue),options:De(te.options)}}visitQuery(te,ue){const je=ue.currentQuerySelector,wt=te.options||{};ue.queryCount++,ue.currentQuery=te;const[kt,Qt]=function ai(xt){const te=!!xt.split(/\s*,\s*/).find(ue=>":self"==ue);return te&&(xt=xt.replace(Ii,"")),xt=xt.replace(/@\*/g,r).replace(/@\w+/g,ue=>r+"-"+ue.substr(1)).replace(/:animating/g,G),[xt,te]}(te.selector);ue.currentQuerySelector=je.length?je+" "+kt:kt,A(ue.collectedStyles,ue.currentQuerySelector,{});const Xt=Ue(this,Ge(te.animation),ue);return ue.currentQuery=null,ue.currentQuerySelector=je,{type:11,selector:kt,limit:wt.limit||0,optional:!!wt.optional,includeSelf:Qt,animation:Xt,originalSelector:te.selector,options:De(te.options)}}visitStagger(te,ue){ue.currentQuery||ue.errors.push("stagger() can only be used inside of query()");const je="full"===te.timings?{duration:0,delay:0,easing:"full"}:ye(te.timings,ue.errors,!0);return{type:12,animation:Ue(this,Ge(te.animation),ue),timings:je,options:null}}}class Ze{constructor(te){this.errors=te,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}}function Y(xt){return!Array.isArray(xt)&&"object"==typeof xt}function De(xt){return xt?(xt=Be(xt)).params&&(xt.params=function hi(xt){return xt?Be(xt):null}(xt.params)):xt={},xt}function et(xt,te,ue){return{duration:xt,delay:te,easing:ue}}function $t(xt,te,ue,je,wt,kt,Qt=null,Xt=!1){return{type:1,element:xt,keyframes:te,preStyleProps:ue,postStyleProps:je,duration:wt,delay:kt,totalTime:wt+kt,easing:Qt,subTimeline:Xt}}class Nt{constructor(){this._map=new Map}consume(te){let ue=this._map.get(te);return ue?this._map.delete(te):ue=[],ue}append(te,ue){let je=this._map.get(te);je||this._map.set(te,je=[]),je.push(...ue)}has(te){return this._map.has(te)}clear(){this._map.clear()}}const Pe=new RegExp(":enter","g"),at=new RegExp(":leave","g");function st(xt,te,ue,je,wt,kt={},Qt={},Xt,pi,Ti=[]){return(new At).buildKeyframes(xt,te,ue,je,wt,kt,Qt,Xt,pi,Ti)}class At{buildKeyframes(te,ue,je,wt,kt,Qt,Xt,pi,Ti,Zi=[]){Ti=Ti||new Nt;const tn=new Bt(te,ue,Ti,wt,kt,Zi,[]);tn.options=pi,tn.currentTimeline.setStyles([Qt],null,tn.errors,pi),Ue(this,je,tn);const Mn=tn.timelines.filter(On=>On.containsAnimation());if(Mn.length&&Object.keys(Xt).length){const On=Mn[Mn.length-1];On.allowOnlyTimelineStyles()||On.setStyles([Xt],null,tn.errors,pi)}return Mn.length?Mn.map(On=>On.buildKeyframes()):[$t(ue,[],[],[],0,0,"",!1)]}visitTrigger(te,ue){}visitState(te,ue){}visitTransition(te,ue){}visitAnimateChild(te,ue){const je=ue.subInstructions.consume(ue.element);if(je){const wt=ue.createSubContext(te.options),kt=ue.currentTimeline.currentTime,Qt=this._visitSubInstructions(je,wt,wt.options);kt!=Qt&&ue.transformIntoNewTimeline(Qt)}ue.previousNode=te}visitAnimateRef(te,ue){const je=ue.createSubContext(te.options);je.transformIntoNewTimeline(),this.visitReference(te.animation,je),ue.transformIntoNewTimeline(je.currentTimeline.currentTime),ue.previousNode=te}_visitSubInstructions(te,ue,je){let kt=ue.currentTimeline.currentTime;const Qt=null!=je.duration?F(je.duration):null,Xt=null!=je.delay?F(je.delay):null;return 0!==Qt&&te.forEach(pi=>{const Ti=ue.appendInstructionToTimeline(pi,Qt,Xt);kt=Math.max(kt,Ti.duration+Ti.delay)}),kt}visitReference(te,ue){ue.updateOptions(te.options,!0),Ue(this,te.animation,ue),ue.previousNode=te}visitSequence(te,ue){const je=ue.subContextCount;let wt=ue;const kt=te.options;if(kt&&(kt.params||kt.delay)&&(wt=ue.createSubContext(kt),wt.transformIntoNewTimeline(),null!=kt.delay)){6==wt.previousNode.type&&(wt.currentTimeline.snapshotCurrentStyles(),wt.previousNode=li);const Qt=F(kt.delay);wt.delayNextStep(Qt)}te.steps.length&&(te.steps.forEach(Qt=>Ue(this,Qt,wt)),wt.currentTimeline.applyStylesToKeyframe(),wt.subContextCount>je&&wt.transformIntoNewTimeline()),ue.previousNode=te}visitGroup(te,ue){const je=[];let wt=ue.currentTimeline.currentTime;const kt=te.options&&te.options.delay?F(te.options.delay):0;te.steps.forEach(Qt=>{const Xt=ue.createSubContext(te.options);kt&&Xt.delayNextStep(kt),Ue(this,Qt,Xt),wt=Math.max(wt,Xt.currentTimeline.currentTime),je.push(Xt.currentTimeline)}),je.forEach(Qt=>ue.currentTimeline.mergeTimelineCollectedStyles(Qt)),ue.transformIntoNewTimeline(wt),ue.previousNode=te}_visitTiming(te,ue){if(te.dynamic){const je=te.strValue;return ye(ue.params?he(je,ue.params,ue.errors):je,ue.errors)}return{duration:te.duration,delay:te.delay,easing:te.easing}}visitAnimate(te,ue){const je=ue.currentAnimateTimings=this._visitTiming(te.timings,ue),wt=ue.currentTimeline;je.delay&&(ue.incrementTime(je.delay),wt.snapshotCurrentStyles());const kt=te.style;5==kt.type?this.visitKeyframes(kt,ue):(ue.incrementTime(je.duration),this.visitStyle(kt,ue),wt.applyStylesToKeyframe()),ue.currentAnimateTimings=null,ue.previousNode=te}visitStyle(te,ue){const je=ue.currentTimeline,wt=ue.currentAnimateTimings;!wt&&je.getCurrentStyleProperties().length&&je.forwardFrame();const kt=wt&&wt.easing||te.easing;te.isEmptyStep?je.applyEmptyStep(kt):je.setStyles(te.styles,kt,ue.errors,ue.options),ue.previousNode=te}visitKeyframes(te,ue){const je=ue.currentAnimateTimings,wt=ue.currentTimeline.duration,kt=je.duration,Xt=ue.createSubContext().currentTimeline;Xt.easing=je.easing,te.styles.forEach(pi=>{Xt.forwardTime((pi.offset||0)*kt),Xt.setStyles(pi.styles,pi.easing,ue.errors,ue.options),Xt.applyStylesToKeyframe()}),ue.currentTimeline.mergeTimelineCollectedStyles(Xt),ue.transformIntoNewTimeline(wt+kt),ue.previousNode=te}visitQuery(te,ue){const je=ue.currentTimeline.currentTime,wt=te.options||{},kt=wt.delay?F(wt.delay):0;kt&&(6===ue.previousNode.type||0==je&&ue.currentTimeline.getCurrentStyleProperties().length)&&(ue.currentTimeline.snapshotCurrentStyles(),ue.previousNode=li);let Qt=je;const Xt=ue.invokeQuery(te.selector,te.originalSelector,te.limit,te.includeSelf,!!wt.optional,ue.errors);ue.currentQueryTotal=Xt.length;let pi=null;Xt.forEach((Ti,Zi)=>{ue.currentQueryIndex=Zi;const tn=ue.createSubContext(te.options,Ti);kt&&tn.delayNextStep(kt),Ti===ue.element&&(pi=tn.currentTimeline),Ue(this,te.animation,tn),tn.currentTimeline.applyStylesToKeyframe(),Qt=Math.max(Qt,tn.currentTimeline.currentTime)}),ue.currentQueryIndex=0,ue.currentQueryTotal=0,ue.transformIntoNewTimeline(Qt),pi&&(ue.currentTimeline.mergeTimelineCollectedStyles(pi),ue.currentTimeline.snapshotCurrentStyles()),ue.previousNode=te}visitStagger(te,ue){const je=ue.parentContext,wt=ue.currentTimeline,kt=te.timings,Qt=Math.abs(kt.duration),Xt=Qt*(ue.currentQueryTotal-1);let pi=Qt*ue.currentQueryIndex;switch(kt.duration<0?"reverse":kt.easing){case"reverse":pi=Xt-pi;break;case"full":pi=je.currentStaggerTime}const Zi=ue.currentTimeline;pi&&Zi.delayNextStep(pi);const tn=Zi.currentTime;Ue(this,te.animation,ue),ue.previousNode=te,je.currentStaggerTime=wt.currentTime-tn+(wt.startTime-je.currentTimeline.startTime)}}const li={};class Bt{constructor(te,ue,je,wt,kt,Qt,Xt,pi){this._driver=te,this.element=ue,this.subInstructions=je,this._enterClassName=wt,this._leaveClassName=kt,this.errors=Qt,this.timelines=Xt,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=li,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=pi||new Rt(this._driver,ue,0),Xt.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(te,ue){if(!te)return;const je=te;let wt=this.options;null!=je.duration&&(wt.duration=F(je.duration)),null!=je.delay&&(wt.delay=F(je.delay));const kt=je.params;if(kt){let Qt=wt.params;Qt||(Qt=this.options.params={}),Object.keys(kt).forEach(Xt=>{(!ue||!Qt.hasOwnProperty(Xt))&&(Qt[Xt]=he(kt[Xt],Qt,this.errors))})}}_copyOptions(){const te={};if(this.options){const ue=this.options.params;if(ue){const je=te.params={};Object.keys(ue).forEach(wt=>{je[wt]=ue[wt]})}}return te}createSubContext(te=null,ue,je){const wt=ue||this.element,kt=new Bt(this._driver,wt,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(wt,je||0));return kt.previousNode=this.previousNode,kt.currentAnimateTimings=this.currentAnimateTimings,kt.options=this._copyOptions(),kt.updateOptions(te),kt.currentQueryIndex=this.currentQueryIndex,kt.currentQueryTotal=this.currentQueryTotal,kt.parentContext=this,this.subContextCount++,kt}transformIntoNewTimeline(te){return this.previousNode=li,this.currentTimeline=this.currentTimeline.fork(this.element,te),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(te,ue,je){const wt={duration:null!=ue?ue:te.duration,delay:this.currentTimeline.currentTime+(null!=je?je:0)+te.delay,easing:""},kt=new Li(this._driver,te.element,te.keyframes,te.preStyleProps,te.postStyleProps,wt,te.stretchStartingKeyframe);return this.timelines.push(kt),wt}incrementTime(te){this.currentTimeline.forwardTime(this.currentTimeline.duration+te)}delayNextStep(te){te>0&&this.currentTimeline.delayNextStep(te)}invokeQuery(te,ue,je,wt,kt,Qt){let Xt=[];if(wt&&Xt.push(this.element),te.length>0){te=(te=te.replace(Pe,"."+this._enterClassName)).replace(at,"."+this._leaveClassName);let Ti=this._driver.query(this.element,te,1!=je);0!==je&&(Ti=je<0?Ti.slice(Ti.length+je,Ti.length):Ti.slice(0,je)),Xt.push(...Ti)}return!kt&&0==Xt.length&&Qt.push(`\`query("${ue}")\` returned zero elements. (Use \`query("${ue}", { optional: true })\` if you wish to allow this.)`),Xt}}class Rt{constructor(te,ue,je,wt){this._driver=te,this.element=ue,this.startTime=je,this._elementTimelineStylesLookup=wt,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(ue),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(ue,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(te){const ue=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||ue?(this.forwardTime(this.currentTime+te),ue&&this.snapshotCurrentStyles()):this.startTime+=te}fork(te,ue){return this.applyStylesToKeyframe(),new Rt(this._driver,te,ue||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(te){this.applyStylesToKeyframe(),this.duration=te,this._loadKeyframe()}_updateStyle(te,ue){this._localTimelineStyles[te]=ue,this._globalTimelineStyles[te]=ue,this._styleSummary[te]={time:this.currentTime,value:ue}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(te){te&&(this._previousKeyframe.easing=te),Object.keys(this._globalTimelineStyles).forEach(ue=>{this._backFill[ue]=this._globalTimelineStyles[ue]||y.l3,this._currentKeyframe[ue]=y.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(te,ue,je,wt){ue&&(this._previousKeyframe.easing=ue);const kt=wt&&wt.params||{},Qt=function ci(xt,te){const ue={};let je;return xt.forEach(wt=>{"*"===wt?(je=je||Object.keys(te),je.forEach(kt=>{ue[kt]=y.l3})):Ie(wt,!1,ue)}),ue}(te,this._globalTimelineStyles);Object.keys(Qt).forEach(Xt=>{const pi=he(Qt[Xt],kt,je);this._pendingStyles[Xt]=pi,this._localTimelineStyles.hasOwnProperty(Xt)||(this._backFill[Xt]=this._globalTimelineStyles.hasOwnProperty(Xt)?this._globalTimelineStyles[Xt]:y.l3),this._updateStyle(Xt,pi)})}applyStylesToKeyframe(){const te=this._pendingStyles,ue=Object.keys(te);0!=ue.length&&(this._pendingStyles={},ue.forEach(je=>{this._currentKeyframe[je]=te[je]}),Object.keys(this._localTimelineStyles).forEach(je=>{this._currentKeyframe.hasOwnProperty(je)||(this._currentKeyframe[je]=this._localTimelineStyles[je])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(te=>{const ue=this._localTimelineStyles[te];this._pendingStyles[te]=ue,this._updateStyle(te,ue)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const te=[];for(let ue in this._currentKeyframe)te.push(ue);return te}mergeTimelineCollectedStyles(te){Object.keys(te._styleSummary).forEach(ue=>{const je=this._styleSummary[ue],wt=te._styleSummary[ue];(!je||wt.time>je.time)&&this._updateStyle(ue,wt.value)})}buildKeyframes(){this.applyStylesToKeyframe();const te=new Set,ue=new Set,je=1===this._keyframes.size&&0===this.duration;let wt=[];this._keyframes.forEach((Xt,pi)=>{const Ti=Ie(Xt,!0);Object.keys(Ti).forEach(Zi=>{const tn=Ti[Zi];tn==y.k1?te.add(Zi):tn==y.l3&&ue.add(Zi)}),je||(Ti.offset=pi/this.duration),wt.push(Ti)});const kt=te.size?Le(te.values()):[],Qt=ue.size?Le(ue.values()):[];if(je){const Xt=wt[0],pi=Be(Xt);Xt.offset=0,pi.offset=1,wt=[Xt,pi]}return $t(this.element,wt,kt,Qt,this.duration,this.startTime,this.easing,!1)}}class Li extends Rt{constructor(te,ue,je,wt,kt,Qt,Xt=!1){super(te,ue,Qt.delay),this.keyframes=je,this.preStyleProps=wt,this.postStyleProps=kt,this._stretchStartingKeyframe=Xt,this.timings={duration:Qt.duration,delay:Qt.delay,easing:Qt.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let te=this.keyframes,{delay:ue,duration:je,easing:wt}=this.timings;if(this._stretchStartingKeyframe&&ue){const kt=[],Qt=je+ue,Xt=ue/Qt,pi=Ie(te[0],!1);pi.offset=0,kt.push(pi);const Ti=Ie(te[0],!1);Ti.offset=si(Xt),kt.push(Ti);const Zi=te.length-1;for(let tn=1;tn<=Zi;tn++){let Mn=Ie(te[tn],!1);Mn.offset=si((ue+Mn.offset*je)/Qt),kt.push(Mn)}je=Qt,ue=0,wt="",te=kt}return $t(this.element,te,this.preStyleProps,this.postStyleProps,je,ue,wt,!0)}}function si(xt,te=3){const ue=Math.pow(10,te-1);return Math.round(xt*ue)/ue}class Ui{}class Xi extends Ui{normalizePropertyName(te,ue){return q(te)}normalizeStyleValue(te,ue,je,wt){let kt="";const Qt=je.toString().trim();if(Ke[ue]&&0!==je&&"0"!==je)if("number"==typeof je)kt="px";else{const Xt=je.match(/^[+-]?[\d\.]+([a-z]*)$/);Xt&&0==Xt[1].length&&wt.push(`Please provide a CSS unit value for ${te}:${je}`)}return Qt+kt}}const Ke=(()=>function _t(xt){const te={};return xt.forEach(ue=>te[ue]=!0),te}("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 ve(xt,te,ue,je,wt,kt,Qt,Xt,pi,Ti,Zi,tn,Mn){return{type:0,element:xt,triggerName:te,isRemovalTransition:wt,fromState:ue,fromStyles:kt,toState:je,toStyles:Qt,timelines:Xt,queriedElements:pi,preStyleProps:Ti,postStyleProps:Zi,totalTime:tn,errors:Mn}}const qe={};class yt{constructor(te,ue,je){this._triggerName=te,this.ast=ue,this._stateStyles=je}match(te,ue,je,wt){return function fe(xt,te,ue,je,wt){return xt.some(kt=>kt(te,ue,je,wt))}(this.ast.matchers,te,ue,je,wt)}buildStyles(te,ue,je){const wt=this._stateStyles["*"],kt=this._stateStyles[te],Qt=wt?wt.buildStyles(ue,je):{};return kt?kt.buildStyles(ue,je):Qt}build(te,ue,je,wt,kt,Qt,Xt,pi,Ti,Zi){const tn=[],Mn=this.ast.options&&this.ast.options.params||qe,tt=this.buildStyles(je,Xt&&Xt.params||qe,tn),Et=pi&&pi.params||qe,It=this.buildStyles(wt,Et,tn),zt=new Set,ri=new Map,vi=new Map,Mi="void"===wt,Ai={params:Object.assign(Object.assign({},Mn),Et)},Ki=Zi?[]:st(te,ue,this.ast.animation,kt,Qt,tt,It,Ai,Ti,tn);let un=0;if(Ki.forEach(En=>{un=Math.max(En.duration+En.delay,un)}),tn.length)return ve(ue,this._triggerName,je,wt,Mi,tt,It,[],[],ri,vi,un,tn);Ki.forEach(En=>{const zn=En.element,Rr=A(ri,zn,{});En.preStyleProps.forEach(wr=>Rr[wr]=!0);const Fr=A(vi,zn,{});En.postStyleProps.forEach(wr=>Fr[wr]=!0),zn!==ue&&zt.add(zn)});const gn=Le(zt.values());return ve(ue,this._triggerName,je,wt,Mi,tt,It,Ki,gn,ri,vi,un)}}class Je{constructor(te,ue,je){this.styles=te,this.defaultParams=ue,this.normalizer=je}buildStyles(te,ue){const je={},wt=Be(this.defaultParams);return Object.keys(te).forEach(kt=>{const Qt=te[kt];null!=Qt&&(wt[kt]=Qt)}),this.styles.styles.forEach(kt=>{if("string"!=typeof kt){const Qt=kt;Object.keys(Qt).forEach(Xt=>{let pi=Qt[Xt];pi.length>1&&(pi=he(pi,wt,ue));const Ti=this.normalizer.normalizePropertyName(Xt,ue);pi=this.normalizer.normalizeStyleValue(Xt,Ti,pi,ue),je[Ti]=pi})}}),je}}class Pt{constructor(te,ue,je){this.name=te,this.ast=ue,this._normalizer=je,this.transitionFactories=[],this.states={},ue.states.forEach(wt=>{this.states[wt.name]=new Je(wt.style,wt.options&&wt.options.params||{},je)}),Ni(this.states,"true","1"),Ni(this.states,"false","0"),ue.transitions.forEach(wt=>{this.transitionFactories.push(new yt(te,wt,this.states))}),this.fallbackTransition=function yi(xt,te,ue){return new yt(xt,{type:1,animation:{type:2,steps:[],options:null},matchers:[(Qt,Xt)=>!0],options:null,queryCount:0,depCount:0},te)}(te,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(te,ue,je,wt){return this.transitionFactories.find(Qt=>Qt.match(te,ue,je,wt))||null}matchStyles(te,ue,je){return this.fallbackTransition.buildStyles(te,ue,je)}}function Ni(xt,te,ue){xt.hasOwnProperty(te)?xt.hasOwnProperty(ue)||(xt[ue]=xt[te]):xt.hasOwnProperty(ue)&&(xt[te]=xt[ue])}const Si=new Nt;class qi{constructor(te,ue,je){this.bodyNode=te,this._driver=ue,this._normalizer=je,this._animations={},this._playersById={},this.players=[]}register(te,ue){const je=[],wt=jt(this._driver,ue,je);if(je.length)throw new Error(`Unable to build the animation due to the following errors: ${je.join("\n")}`);this._animations[te]=wt}_buildPlayer(te,ue,je){const wt=te.element,kt=l(0,this._normalizer,0,te.keyframes,ue,je);return this._driver.animate(wt,kt,te.duration,te.delay,te.easing,[],!0)}create(te,ue,je={}){const wt=[],kt=this._animations[te];let Qt;const Xt=new Map;if(kt?(Qt=st(this._driver,ue,kt,u,_,{},{},je,Si,wt),Qt.forEach(Zi=>{const tn=A(Xt,Zi.element,{});Zi.postStyleProps.forEach(Mn=>tn[Mn]=null)})):(wt.push("The requested animation doesn't exist or has already been destroyed"),Qt=[]),wt.length)throw new Error(`Unable to create the animation due to the following errors: ${wt.join("\n")}`);Xt.forEach((Zi,tn)=>{Object.keys(Zi).forEach(Mn=>{Zi[Mn]=this._driver.computeStyle(tn,Mn,y.l3)})});const Ti=M(Qt.map(Zi=>{const tn=Xt.get(Zi.element);return this._buildPlayer(Zi,{},tn)}));return this._playersById[te]=Ti,Ti.onDestroy(()=>this.destroy(te)),this.players.push(Ti),Ti}destroy(te){const ue=this._getPlayer(te);ue.destroy(),delete this._playersById[te];const je=this.players.indexOf(ue);je>=0&&this.players.splice(je,1)}_getPlayer(te){const ue=this._playersById[te];if(!ue)throw new Error(`Unable to find the timeline player referenced by ${te}`);return ue}listen(te,ue,je,wt){const kt=D(ue,"","","");return N(this._getPlayer(te),je,kt,wt),()=>{}}command(te,ue,je,wt){if("register"==je)return void this.register(te,wt[0]);if("create"==je)return void this.create(te,ue,wt[0]||{});const kt=this._getPlayer(te);switch(je){case"play":kt.play();break;case"pause":kt.pause();break;case"reset":kt.reset();break;case"restart":kt.restart();break;case"finish":kt.finish();break;case"init":kt.init();break;case"setPosition":kt.setPosition(parseFloat(wt[0]));break;case"destroy":this.destroy(te)}}}const ot="ng-animate-queued",gt="ng-animate-disabled",Lt=".ng-animate-disabled",Yi=[],$i={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Cn={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ln="__ng_removed";class _n{constructor(te,ue=""){this.namespaceId=ue;const je=te&&te.hasOwnProperty("value");if(this.value=function La(xt){return null!=xt?xt:null}(je?te.value:te),je){const kt=Be(te);delete kt.value,this.options=kt}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(te){const ue=te.params;if(ue){const je=this.options.params;Object.keys(ue).forEach(wt=>{null==je[wt]&&(je[wt]=ue[wt])})}}}const Pn="void",dr=new _n(Pn);class wi{constructor(te,ue,je){this.id=te,this.hostElement=ue,this._engine=je,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+te,ur(ue,this._hostClassName)}listen(te,ue,je,wt){if(!this._triggers.hasOwnProperty(ue))throw new Error(`Unable to listen on the animation trigger event "${je}" because the animation trigger "${ue}" doesn't exist!`);if(null==je||0==je.length)throw new Error(`Unable to listen on the animation trigger "${ue}" because the provided event is undefined!`);if(!function Or(xt){return"start"==xt||"done"==xt}(je))throw new Error(`The provided animation trigger event "${je}" for the animation trigger "${ue}" is not supported!`);const kt=A(this._elementListeners,te,[]),Qt={name:ue,phase:je,callback:wt};kt.push(Qt);const Xt=A(this._engine.statesByElement,te,{});return Xt.hasOwnProperty(ue)||(ur(te,x),ur(te,x+"-"+ue),Xt[ue]=dr),()=>{this._engine.afterFlush(()=>{const pi=kt.indexOf(Qt);pi>=0&&kt.splice(pi,1),this._triggers[ue]||delete Xt[ue]})}}register(te,ue){return!this._triggers[te]&&(this._triggers[te]=ue,!0)}_getTrigger(te){const ue=this._triggers[te];if(!ue)throw new Error(`The provided animation trigger "${te}" has not been registered!`);return ue}trigger(te,ue,je,wt=!0){const kt=this._getTrigger(ue),Qt=new dn(this.id,ue,te);let Xt=this._engine.statesByElement.get(te);Xt||(ur(te,x),ur(te,x+"-"+ue),this._engine.statesByElement.set(te,Xt={}));let pi=Xt[ue];const Ti=new _n(je,this.id);if(!(je&&je.hasOwnProperty("value"))&&pi&&Ti.absorbOptions(pi.options),Xt[ue]=Ti,pi||(pi=dr),Ti.value!==Pn&&pi.value===Ti.value){if(!function Ya(xt,te){const ue=Object.keys(xt),je=Object.keys(te);if(ue.length!=je.length)return!1;for(let wt=0;wt<ue.length;wt++){const kt=ue[wt];if(!te.hasOwnProperty(kt)||xt[kt]!==te[kt])return!1}return!0}(pi.params,Ti.params)){const Et=[],It=kt.matchStyles(pi.value,pi.params,Et),zt=kt.matchStyles(Ti.value,Ti.params,Et);Et.length?this._engine.reportError(Et):this._engine.afterFlush(()=>{z(te,It),we(te,zt)})}return}const Mn=A(this._engine.playersByElement,te,[]);Mn.forEach(Et=>{Et.namespaceId==this.id&&Et.triggerName==ue&&Et.queued&&Et.destroy()});let On=kt.matchTransition(pi.value,Ti.value,te,Ti.params),tt=!1;if(!On){if(!wt)return;On=kt.fallbackTransition,tt=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:te,triggerName:ue,transition:On,fromState:pi,toState:Ti,player:Qt,isFallbackTransition:tt}),tt||(ur(te,ot),Qt.onStart(()=>{pa(te,ot)})),Qt.onDone(()=>{let Et=this.players.indexOf(Qt);Et>=0&&this.players.splice(Et,1);const It=this._engine.playersByElement.get(te);if(It){let zt=It.indexOf(Qt);zt>=0&&It.splice(zt,1)}}),this.players.push(Qt),Mn.push(Qt),Qt}deregister(te){delete this._triggers[te],this._engine.statesByElement.forEach((ue,je)=>{delete ue[te]}),this._elementListeners.forEach((ue,je)=>{this._elementListeners.set(je,ue.filter(wt=>wt.name!=te))})}clearElementCache(te){this._engine.statesByElement.delete(te),this._elementListeners.delete(te);const ue=this._engine.playersByElement.get(te);ue&&(ue.forEach(je=>je.destroy()),this._engine.playersByElement.delete(te))}_signalRemovalForInnerTriggers(te,ue){const je=this._engine.driver.query(te,r,!0);je.forEach(wt=>{if(wt[Ln])return;const kt=this._engine.fetchNamespacesByElement(wt);kt.size?kt.forEach(Qt=>Qt.triggerLeaveAnimation(wt,ue,!1,!0)):this.clearElementCache(wt)}),this._engine.afterFlushAnimationsDone(()=>je.forEach(wt=>this.clearElementCache(wt)))}triggerLeaveAnimation(te,ue,je,wt){const kt=this._engine.statesByElement.get(te);if(kt){const Qt=[];if(Object.keys(kt).forEach(Xt=>{if(this._triggers[Xt]){const pi=this.trigger(te,Xt,Pn,wt);pi&&Qt.push(pi)}}),Qt.length)return this._engine.markElementAsRemoved(this.id,te,!0,ue),je&&M(Qt).onDone(()=>this._engine.processLeaveNode(te)),!0}return!1}prepareLeaveAnimationListeners(te){const ue=this._elementListeners.get(te),je=this._engine.statesByElement.get(te);if(ue&&je){const wt=new Set;ue.forEach(kt=>{const Qt=kt.name;if(wt.has(Qt))return;wt.add(Qt);const pi=this._triggers[Qt].fallbackTransition,Ti=je[Qt]||dr,Zi=new _n(Pn),tn=new dn(this.id,Qt,te);this._engine.totalQueuedPlayers++,this._queue.push({element:te,triggerName:Qt,transition:pi,fromState:Ti,toState:Zi,player:tn,isFallbackTransition:!0})})}}removeNode(te,ue){const je=this._engine;if(te.childElementCount&&this._signalRemovalForInnerTriggers(te,ue),this.triggerLeaveAnimation(te,ue,!0))return;let wt=!1;if(je.totalAnimations){const kt=je.players.length?je.playersByQueriedElement.get(te):[];if(kt&&kt.length)wt=!0;else{let Qt=te;for(;Qt=Qt.parentNode;)if(je.statesByElement.get(Qt)){wt=!0;break}}}if(this.prepareLeaveAnimationListeners(te),wt)je.markElementAsRemoved(this.id,te,!1,ue);else{const kt=te[Ln];(!kt||kt===$i)&&(je.afterFlush(()=>this.clearElementCache(te)),je.destroyInnerAnimations(te),je._onRemovalComplete(te,ue))}}insertNode(te,ue){ur(te,this._hostClassName)}drainQueuedTransitions(te){const ue=[];return this._queue.forEach(je=>{const wt=je.player;if(wt.destroyed)return;const kt=je.element,Qt=this._elementListeners.get(kt);Qt&&Qt.forEach(Xt=>{if(Xt.name==je.triggerName){const pi=D(kt,je.triggerName,je.fromState.value,je.toState.value);pi._data=te,N(je.player,Xt.phase,pi,Xt.callback)}}),wt.markedForDestroy?this._engine.afterFlush(()=>{wt.destroy()}):ue.push(je)}),this._queue=[],ue.sort((je,wt)=>{const kt=je.transition.ast.depCount,Qt=wt.transition.ast.depCount;return 0==kt||0==Qt?kt-Qt:this._engine.driver.containsElement(je.element,wt.element)?1:-1})}destroy(te){this.players.forEach(ue=>ue.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,te)}elementContainsData(te){let ue=!1;return this._elementListeners.has(te)&&(ue=!0),ue=!!this._queue.find(je=>je.element===te)||ue,ue}}class Fi{constructor(te,ue,je){this.bodyNode=te,this.driver=ue,this._normalizer=je,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=(wt,kt)=>{}}_onRemovalComplete(te,ue){this.onRemovalComplete(te,ue)}get queuedPlayers(){const te=[];return this._namespaceList.forEach(ue=>{ue.players.forEach(je=>{je.queued&&te.push(je)})}),te}createNamespace(te,ue){const je=new wi(te,ue,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,ue)?this._balanceNamespaceList(je,ue):(this.newHostElements.set(ue,je),this.collectEnterElement(ue)),this._namespaceLookup[te]=je}_balanceNamespaceList(te,ue){const je=this._namespaceList.length-1;if(je>=0){let wt=!1;for(let kt=je;kt>=0;kt--)if(this.driver.containsElement(this._namespaceList[kt].hostElement,ue)){this._namespaceList.splice(kt+1,0,te),wt=!0;break}wt||this._namespaceList.splice(0,0,te)}else this._namespaceList.push(te);return this.namespacesByHostElement.set(ue,te),te}register(te,ue){let je=this._namespaceLookup[te];return je||(je=this.createNamespace(te,ue)),je}registerTrigger(te,ue,je){let wt=this._namespaceLookup[te];wt&&wt.register(ue,je)&&this.totalAnimations++}destroy(te,ue){if(!te)return;const je=this._fetchNamespace(te);this.afterFlush(()=>{this.namespacesByHostElement.delete(je.hostElement),delete this._namespaceLookup[te];const wt=this._namespaceList.indexOf(je);wt>=0&&this._namespaceList.splice(wt,1)}),this.afterFlushAnimationsDone(()=>je.destroy(ue))}_fetchNamespace(te){return this._namespaceLookup[te]}fetchNamespacesByElement(te){const ue=new Set,je=this.statesByElement.get(te);if(je){const wt=Object.keys(je);for(let kt=0;kt<wt.length;kt++){const Qt=je[wt[kt]].namespaceId;if(Qt){const Xt=this._fetchNamespace(Qt);Xt&&ue.add(Xt)}}}return ue}trigger(te,ue,je,wt){if(Gn(ue)){const kt=this._fetchNamespace(te);if(kt)return kt.trigger(ue,je,wt),!0}return!1}insertNode(te,ue,je,wt){if(!Gn(ue))return;const kt=ue[Ln];if(kt&&kt.setForRemoval){kt.setForRemoval=!1,kt.setForMove=!0;const Qt=this.collectedLeaveElements.indexOf(ue);Qt>=0&&this.collectedLeaveElements.splice(Qt,1)}if(te){const Qt=this._fetchNamespace(te);Qt&&Qt.insertNode(ue,je)}wt&&this.collectEnterElement(ue)}collectEnterElement(te){this.collectedEnterElements.push(te)}markElementAsDisabled(te,ue){ue?this.disabledNodes.has(te)||(this.disabledNodes.add(te),ur(te,gt)):this.disabledNodes.has(te)&&(this.disabledNodes.delete(te),pa(te,gt))}removeNode(te,ue,je,wt){if(Gn(ue)){const kt=te?this._fetchNamespace(te):null;if(kt?kt.removeNode(ue,wt):this.markElementAsRemoved(te,ue,!1,wt),je){const Qt=this.namespacesByHostElement.get(ue);Qt&&Qt.id!==te&&Qt.removeNode(ue,wt)}}else this._onRemovalComplete(ue,wt)}markElementAsRemoved(te,ue,je,wt){this.collectedLeaveElements.push(ue),ue[Ln]={namespaceId:te,setForRemoval:wt,hasAnimation:je,removedBeforeQueried:!1}}listen(te,ue,je,wt,kt){return Gn(ue)?this._fetchNamespace(te).listen(ue,je,wt,kt):()=>{}}_buildInstruction(te,ue,je,wt,kt){return te.transition.build(this.driver,te.element,te.fromState.value,te.toState.value,je,wt,te.fromState.options,te.toState.options,ue,kt)}destroyInnerAnimations(te){let ue=this.driver.query(te,r,!0);ue.forEach(je=>this.destroyActiveAnimationsForElement(je)),0!=this.playersByQueriedElement.size&&(ue=this.driver.query(te,G,!0),ue.forEach(je=>this.finishActiveQueriedAnimationOnElement(je)))}destroyActiveAnimationsForElement(te){const ue=this.playersByElement.get(te);ue&&ue.forEach(je=>{je.queued?je.markedForDestroy=!0:je.destroy()})}finishActiveQueriedAnimationOnElement(te){const ue=this.playersByQueriedElement.get(te);ue&&ue.forEach(je=>je.finish())}whenRenderingDone(){return new Promise(te=>{if(this.players.length)return M(this.players).onDone(()=>te());te()})}processLeaveNode(te){const ue=te[Ln];if(ue&&ue.setForRemoval){if(te[Ln]=$i,ue.namespaceId){this.destroyInnerAnimations(te);const je=this._fetchNamespace(ue.namespaceId);je&&je.clearElementCache(te)}this._onRemovalComplete(te,ue.setForRemoval)}this.driver.matchesElement(te,Lt)&&this.markElementAsDisabled(te,!1),this.driver.query(te,Lt,!0).forEach(je=>{this.markElementAsDisabled(je,!1)})}flush(te=-1){let ue=[];if(this.newHostElements.size&&(this.newHostElements.forEach((je,wt)=>this._balanceNamespaceList(je,wt)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let je=0;je<this.collectedEnterElements.length;je++)ur(this.collectedEnterElements[je],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const je=[];try{ue=this._flushAnimations(je,te)}finally{for(let wt=0;wt<je.length;wt++)je[wt]()}}else for(let je=0;je<this.collectedLeaveElements.length;je++)this.processLeaveNode(this.collectedLeaveElements[je]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(je=>je()),this._flushFns=[],this._whenQuietFns.length){const je=this._whenQuietFns;this._whenQuietFns=[],ue.length?M(ue).onDone(()=>{je.forEach(wt=>wt())}):je.forEach(wt=>wt())}}reportError(te){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${te.join("\n")}`)}_flushAnimations(te,ue){const je=new Nt,wt=[],kt=new Map,Qt=[],Xt=new Map,pi=new Map,Ti=new Map,Zi=new Set;this.disabledNodes.forEach(Hi=>{Zi.add(Hi);const on=this.driver.query(Hi,".ng-animate-queued",!0);for(let nn=0;nn<on.length;nn++)Zi.add(on[nn])});const tn=this.bodyNode,Mn=Array.from(this.statesByElement.keys()),On=Fa(Mn,this.collectedEnterElements),tt=new Map;let Et=0;On.forEach((Hi,on)=>{const nn=u+Et++;tt.set(on,nn),Hi.forEach(kn=>ur(kn,nn))});const It=[],zt=new Set,ri=new Set;for(let Hi=0;Hi<this.collectedLeaveElements.length;Hi++){const on=this.collectedLeaveElements[Hi],nn=on[Ln];nn&&nn.setForRemoval&&(It.push(on),zt.add(on),nn.hasAnimation?this.driver.query(on,".ng-star-inserted",!0).forEach(kn=>zt.add(kn)):ri.add(on))}const vi=new Map,Mi=Fa(Mn,Array.from(zt));Mi.forEach((Hi,on)=>{const nn=_+Et++;vi.set(on,nn),Hi.forEach(kn=>ur(kn,nn))}),te.push(()=>{On.forEach((Hi,on)=>{const nn=tt.get(on);Hi.forEach(kn=>pa(kn,nn))}),Mi.forEach((Hi,on)=>{const nn=vi.get(on);Hi.forEach(kn=>pa(kn,nn))}),It.forEach(Hi=>{this.processLeaveNode(Hi)})});const Ai=[],Ki=[];for(let Hi=this._namespaceList.length-1;Hi>=0;Hi--)this._namespaceList[Hi].drainQueuedTransitions(ue).forEach(nn=>{const kn=nn.player,jn=nn.element;if(Ai.push(kn),this.collectedEnterElements.length){const Ia=jn[Ln];if(Ia&&Ia.setForMove)return void kn.destroy()}const da=!tn||!this.driver.containsElement(tn,jn),Xr=vi.get(jn),$r=tt.get(jn),Yn=this._buildInstruction(nn,je,$r,Xr,da);if(Yn.errors&&Yn.errors.length)Ki.push(Yn);else{if(da)return kn.onStart(()=>z(jn,Yn.fromStyles)),kn.onDestroy(()=>we(jn,Yn.toStyles)),void wt.push(kn);if(nn.isFallbackTransition)return kn.onStart(()=>z(jn,Yn.fromStyles)),kn.onDestroy(()=>we(jn,Yn.toStyles)),void wt.push(kn);Yn.timelines.forEach(Ia=>Ia.stretchStartingKeyframe=!0),je.append(jn,Yn.timelines),Qt.push({instruction:Yn,player:kn,element:jn}),Yn.queriedElements.forEach(Ia=>A(Xt,Ia,[]).push(kn)),Yn.preStyleProps.forEach((Ia,ks)=>{const Zs=Object.keys(Ia);if(Zs.length){let va=pi.get(ks);va||pi.set(ks,va=new Set),Zs.forEach(us=>va.add(us))}}),Yn.postStyleProps.forEach((Ia,ks)=>{const Zs=Object.keys(Ia);let va=Ti.get(ks);va||Ti.set(ks,va=new Set),Zs.forEach(us=>va.add(us))})}});if(Ki.length){const Hi=[];Ki.forEach(on=>{Hi.push(`@${on.triggerName} has failed due to:\n`),on.errors.forEach(nn=>Hi.push(`- ${nn}\n`))}),Ai.forEach(on=>on.destroy()),this.reportError(Hi)}const un=new Map,gn=new Map;Qt.forEach(Hi=>{const on=Hi.element;je.has(on)&&(gn.set(on,on),this._beforeAnimationBuild(Hi.player.namespaceId,Hi.instruction,un))}),wt.forEach(Hi=>{const on=Hi.element;this._getPreviousPlayers(on,!1,Hi.namespaceId,Hi.triggerName,null).forEach(kn=>{A(un,on,[]).push(kn),kn.destroy()})});const En=It.filter(Hi=>Zr(Hi,pi,Ti)),zn=new Map;Ma(zn,this.driver,ri,Ti,y.l3).forEach(Hi=>{Zr(Hi,pi,Ti)&&En.push(Hi)});const Fr=new Map;On.forEach((Hi,on)=>{Ma(Fr,this.driver,new Set(Hi),pi,y.k1)}),En.forEach(Hi=>{const on=zn.get(Hi),nn=Fr.get(Hi);zn.set(Hi,Object.assign(Object.assign({},on),nn))});const wr=[],Vn=[],mr={};Qt.forEach(Hi=>{const{element:on,player:nn,instruction:kn}=Hi;if(je.has(on)){if(Zi.has(on))return nn.onDestroy(()=>we(on,kn.toStyles)),nn.disabled=!0,nn.overrideTotalTime(kn.totalTime),void wt.push(nn);let jn=mr;if(gn.size>1){let Xr=on;const $r=[];for(;Xr=Xr.parentNode;){const Yn=gn.get(Xr);if(Yn){jn=Yn;break}$r.push(Xr)}$r.forEach(Yn=>gn.set(Yn,jn))}const da=this._buildAnimation(nn.namespaceId,kn,un,kt,Fr,zn);if(nn.setRealPlayer(da),jn===mr)wr.push(nn);else{const Xr=this.playersByElement.get(jn);Xr&&Xr.length&&(nn.parentPlayer=M(Xr)),wt.push(nn)}}else z(on,kn.fromStyles),nn.onDestroy(()=>we(on,kn.toStyles)),Vn.push(nn),Zi.has(on)&&wt.push(nn)}),Vn.forEach(Hi=>{const on=kt.get(Hi.element);if(on&&on.length){const nn=M(on);Hi.setRealPlayer(nn)}}),wt.forEach(Hi=>{Hi.parentPlayer?Hi.syncPlayerEvents(Hi.parentPlayer):Hi.destroy()});for(let Hi=0;Hi<It.length;Hi++){const on=It[Hi],nn=on[Ln];if(pa(on,_),nn&&nn.hasAnimation)continue;let kn=[];if(Xt.size){let da=Xt.get(on);da&&da.length&&kn.push(...da);let Xr=this.driver.query(on,G,!0);for(let $r=0;$r<Xr.length;$r++){let Yn=Xt.get(Xr[$r]);Yn&&Yn.length&&kn.push(...Yn)}}const jn=kn.filter(da=>!da.destroyed);jn.length?ma(this,on,jn):this.processLeaveNode(on)}return It.length=0,wr.forEach(Hi=>{this.players.push(Hi),Hi.onDone(()=>{Hi.destroy();const on=this.players.indexOf(Hi);this.players.splice(on,1)}),Hi.play()}),wr}elementContainsData(te,ue){let je=!1;const wt=ue[Ln];return wt&&wt.setForRemoval&&(je=!0),this.playersByElement.has(ue)&&(je=!0),this.playersByQueriedElement.has(ue)&&(je=!0),this.statesByElement.has(ue)&&(je=!0),this._fetchNamespace(te).elementContainsData(ue)||je}afterFlush(te){this._flushFns.push(te)}afterFlushAnimationsDone(te){this._whenQuietFns.push(te)}_getPreviousPlayers(te,ue,je,wt,kt){let Qt=[];if(ue){const Xt=this.playersByQueriedElement.get(te);Xt&&(Qt=Xt)}else{const Xt=this.playersByElement.get(te);if(Xt){const pi=!kt||kt==Pn;Xt.forEach(Ti=>{Ti.queued||!pi&&Ti.triggerName!=wt||Qt.push(Ti)})}}return(je||wt)&&(Qt=Qt.filter(Xt=>!(je&&je!=Xt.namespaceId||wt&&wt!=Xt.triggerName))),Qt}_beforeAnimationBuild(te,ue,je){const kt=ue.element,Qt=ue.isRemovalTransition?void 0:te,Xt=ue.isRemovalTransition?void 0:ue.triggerName;for(const pi of ue.timelines){const Ti=pi.element,Zi=Ti!==kt,tn=A(je,Ti,[]);this._getPreviousPlayers(Ti,Zi,Qt,Xt,ue.toState).forEach(On=>{const tt=On.getRealPlayer();tt.beforeDestroy&&tt.beforeDestroy(),On.destroy(),tn.push(On)})}z(kt,ue.fromStyles)}_buildAnimation(te,ue,je,wt,kt,Qt){const Xt=ue.triggerName,pi=ue.element,Ti=[],Zi=new Set,tn=new Set,Mn=ue.timelines.map(tt=>{const Et=tt.element;Zi.add(Et);const It=Et[Ln];if(It&&It.removedBeforeQueried)return new y.ZN(tt.duration,tt.delay);const zt=Et!==pi,ri=function Ir(xt){const te=[];return Ga(xt,te),te}((je.get(Et)||Yi).map(un=>un.getRealPlayer())).filter(un=>!!un.element&&un.element===Et),vi=kt.get(Et),Mi=Qt.get(Et),Ai=l(0,this._normalizer,0,tt.keyframes,vi,Mi),Ki=this._buildPlayer(tt,Ai,ri);if(tt.subTimeline&&wt&&tn.add(Et),zt){const un=new dn(te,Xt,Et);un.setRealPlayer(Ki),Ti.push(un)}return Ki});Ti.forEach(tt=>{A(this.playersByQueriedElement,tt.element,[]).push(tt),tt.onDone(()=>function Lr(xt,te,ue){let je;if(xt instanceof Map){if(je=xt.get(te),je){if(je.length){const wt=je.indexOf(ue);je.splice(wt,1)}0==je.length&&xt.delete(te)}}else if(je=xt[te],je){if(je.length){const wt=je.indexOf(ue);je.splice(wt,1)}0==je.length&&delete xt[te]}return je}(this.playersByQueriedElement,tt.element,tt))}),Zi.forEach(tt=>ur(tt,v));const On=M(Mn);return On.onDestroy(()=>{Zi.forEach(tt=>pa(tt,v)),we(pi,ue.toStyles)}),tn.forEach(tt=>{A(wt,tt,[]).push(On)}),On}_buildPlayer(te,ue,je){return ue.length>0?this.driver.animate(te.element,ue,te.duration,te.delay,te.easing,je):new y.ZN(te.duration,te.delay)}}class dn{constructor(te,ue,je){this.namespaceId=te,this.triggerName=ue,this.element=je,this._player=new y.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(te){this._containsRealPlayer||(this._player=te,Object.keys(this._queuedCallbacks).forEach(ue=>{this._queuedCallbacks[ue].forEach(je=>N(te,ue,void 0,je))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(te.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(te){this.totalTime=te}syncPlayerEvents(te){const ue=this._player;ue.triggerCallback&&te.onStart(()=>ue.triggerCallback("start")),te.onDone(()=>this.finish()),te.onDestroy(()=>this.destroy())}_queueEvent(te,ue){A(this._queuedCallbacks,te,[]).push(ue)}onDone(te){this.queued&&this._queueEvent("done",te),this._player.onDone(te)}onStart(te){this.queued&&this._queueEvent("start",te),this._player.onStart(te)}onDestroy(te){this.queued&&this._queueEvent("destroy",te),this._player.onDestroy(te)}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(te){this.queued||this._player.setPosition(te)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(te){const ue=this._player;ue.triggerCallback&&ue.triggerCallback(te)}}function Gn(xt){return xt&&1===xt.nodeType}function Ra(xt,te){const ue=xt.style.display;return xt.style.display=null!=te?te:"none",ue}function Ma(xt,te,ue,je,wt){const kt=[];ue.forEach(pi=>kt.push(Ra(pi)));const Qt=[];je.forEach((pi,Ti)=>{const Zi={};pi.forEach(tn=>{const Mn=Zi[tn]=te.computeStyle(Ti,tn,wt);(!Mn||0==Mn.length)&&(Ti[Ln]=Cn,Qt.push(Ti))}),xt.set(Ti,Zi)});let Xt=0;return ue.forEach(pi=>Ra(pi,kt[Xt++])),Qt}function Fa(xt,te){const ue=new Map;if(xt.forEach(Xt=>ue.set(Xt,[])),0==te.length)return ue;const wt=new Set(te),kt=new Map;function Qt(Xt){if(!Xt)return 1;let pi=kt.get(Xt);if(pi)return pi;const Ti=Xt.parentNode;return pi=ue.has(Ti)?Ti:wt.has(Ti)?1:Qt(Ti),kt.set(Xt,pi),pi}return te.forEach(Xt=>{const pi=Qt(Xt);1!==pi&&ue.get(pi).push(Xt)}),ue}const xr="$$classes";function ur(xt,te){if(xt.classList)xt.classList.add(te);else{let ue=xt[xr];ue||(ue=xt[xr]={}),ue[te]=!0}}function pa(xt,te){if(xt.classList)xt.classList.remove(te);else{let ue=xt[xr];ue&&delete ue[te]}}function ma(xt,te,ue){M(ue).onDone(()=>xt.processLeaveNode(te))}function Ga(xt,te){for(let ue=0;ue<xt.length;ue++){const je=xt[ue];je instanceof y.ZE?Ga(je.players,te):te.push(je)}}function Zr(xt,te,ue){const je=ue.get(xt);if(!je)return!1;let wt=te.get(xt);return wt?je.forEach(kt=>wt.add(kt)):te.set(xt,je),ue.delete(xt),!0}class kr{constructor(te,ue,je){this.bodyNode=te,this._driver=ue,this._normalizer=je,this._triggerCache={},this.onRemovalComplete=(wt,kt)=>{},this._transitionEngine=new Fi(te,ue,je),this._timelineEngine=new qi(te,ue,je),this._transitionEngine.onRemovalComplete=(wt,kt)=>this.onRemovalComplete(wt,kt)}registerTrigger(te,ue,je,wt,kt){const Qt=te+"-"+wt;let Xt=this._triggerCache[Qt];if(!Xt){const pi=[],Ti=jt(this._driver,kt,pi);if(pi.length)throw new Error(`The animation trigger "${wt}" has failed to build due to the following errors:\n - ${pi.join("\n - ")}`);Xt=function St(xt,te,ue){return new Pt(xt,te,ue)}(wt,Ti,this._normalizer),this._triggerCache[Qt]=Xt}this._transitionEngine.registerTrigger(ue,wt,Xt)}register(te,ue){this._transitionEngine.register(te,ue)}destroy(te,ue){this._transitionEngine.destroy(te,ue)}onInsert(te,ue,je,wt){this._transitionEngine.insertNode(te,ue,je,wt)}onRemove(te,ue,je,wt){this._transitionEngine.removeNode(te,ue,wt||!1,je)}disableAnimations(te,ue){this._transitionEngine.markElementAsDisabled(te,ue)}process(te,ue,je,wt){if("@"==je.charAt(0)){const[kt,Qt]=O(je);this._timelineEngine.command(kt,ue,Qt,wt)}else this._transitionEngine.trigger(te,ue,je,wt)}listen(te,ue,je,wt,kt){if("@"==je.charAt(0)){const[Qt,Xt]=O(je);return this._timelineEngine.listen(Qt,ue,Xt,kt)}return this._transitionEngine.listen(te,ue,je,wt,kt)}flush(te=-1){this._transitionEngine.flush(te)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function Kn(xt,te){let ue=null,je=null;return Array.isArray(te)&&te.length?(ue=Qn(te[0]),te.length>1&&(je=Qn(te[te.length-1]))):te&&(ue=Qn(te)),ue||je?new vn(xt,ue,je):null}let vn=(()=>{class xt{constructor(ue,je,wt){this._element=ue,this._startStyles=je,this._endStyles=wt,this._state=0;let kt=xt.initialStylesByElement.get(ue);kt||xt.initialStylesByElement.set(ue,kt={}),this._initialStyles=kt}start(){this._state<1&&(this._startStyles&&we(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(we(this._element,this._initialStyles),this._endStyles&&(we(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(xt.initialStylesByElement.delete(this._element),this._startStyles&&(z(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(z(this._element,this._endStyles),this._endStyles=null),we(this._element,this._initialStyles),this._state=3)}}return xt.initialStylesByElement=new WeakMap,xt})();function Qn(xt){let te=null;const ue=Object.keys(xt);for(let je=0;je<ue.length;je++){const wt=ue[je];Tr(wt)&&(te=te||{},te[wt]=xt[wt])}return te}function Tr(xt){return"display"===xt||"position"===xt}const Wa="animation",Pr="animationend";class Jr{constructor(te,ue,je,wt,kt,Qt,Xt){this._element=te,this._name=ue,this._duration=je,this._delay=wt,this._easing=kt,this._fillMode=Qt,this._onDoneFn=Xt,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=pi=>this._handleCallback(pi)}apply(){(function $n(xt,te){const ue=ha(xt,"").trim();let je=0;ue.length&&(je=function pr(xt,te){let ue=0;for(let je=0;je<xt.length;je++)xt.charAt(je)===te&&ue++;return ue}(ue,",")+1,te=`${ue}, ${te}`),Vr(xt,"",te)})(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),Aa(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){ga(this._element,this._name,"paused")}resume(){ga(this._element,this._name,"running")}setPosition(te){const ue=Nr(this._element,this._name);this._position=te*this._duration,Vr(this._element,"Delay",`-${this._position}ms`,ue)}getPosition(){return this._position}_handleCallback(te){const ue=te._ngTestManualTimestamp||Date.now(),je=1e3*parseFloat(te.elapsedTime.toFixed(3));te.animationName==this._name&&Math.max(ue-this._startTime,0)>=this._delay&&je>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),Aa(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function wa(xt,te){const je=ha(xt,"").split(","),wt=ca(je,te);wt>=0&&(je.splice(wt,1),Vr(xt,"",je.join(",")))}(this._element,this._name))}}function ga(xt,te,ue){Vr(xt,"PlayState",ue,Nr(xt,te))}function Nr(xt,te){const ue=ha(xt,"");return ue.indexOf(",")>0?ca(ue.split(","),te):ca([ue],te)}function ca(xt,te){for(let ue=0;ue<xt.length;ue++)if(xt[ue].indexOf(te)>=0)return ue;return-1}function Aa(xt,te,ue){ue?xt.removeEventListener(Pr,te):xt.addEventListener(Pr,te)}function Vr(xt,te,ue,je){const wt=Wa+te;if(null!=je){const kt=xt.style[wt];if(kt.length){const Qt=kt.split(",");Qt[je]=ue,ue=Qt.join(",")}}xt.style[wt]=ue}function ha(xt,te){return xt.style[Wa+te]||""}class Oa{constructor(te,ue,je,wt,kt,Qt,Xt,pi){this.element=te,this.keyframes=ue,this.animationName=je,this._duration=wt,this._delay=kt,this._finalStyles=Xt,this._specialStyles=pi,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=Qt||"linear",this.totalTime=wt+kt,this._buildStyler()}onStart(te){this._onStartFns.push(te)}onDone(te){this._onDoneFns.push(te)}onDestroy(te){this._onDestroyFns.push(te)}destroy(){this.init(),!(this._state>=4)&&(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(te=>te()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(te=>te()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(te=>te()),this._onStartFns=[]}finish(){this.init(),!(this._state>=3)&&(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(te){this._styler.setPosition(te)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new Jr(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(te){const ue="start"==te?this._onStartFns:this._onDoneFns;ue.forEach(je=>je()),ue.length=0}beforeDestroy(){this.init();const te={};if(this.hasStarted()){const ue=this._state>=3;Object.keys(this._finalStyles).forEach(je=>{"offset"!=je&&(te[je]=ue?this._finalStyles[je]:lt(this.element,je))})}this.currentSnapshot=te}}class ra extends y.ZN{constructor(te,ue){super(),this.element=te,this._startingStyles={},this.__initialized=!1,this._styles=oe(ue)}init(){this.__initialized||!this._startingStyles||(this.__initialized=!0,Object.keys(this._styles).forEach(te=>{this._startingStyles[te]=this.element.style[te]}),super.init())}play(){!this._startingStyles||(this.init(),Object.keys(this._styles).forEach(te=>this.element.style.setProperty(te,this._styles[te])),super.play())}destroy(){!this._startingStyles||(Object.keys(this._startingStyles).forEach(te=>{const ue=this._startingStyles[te];ue?this.element.style.setProperty(te,ue):this.element.style.removeProperty(te)}),this._startingStyles=null,super.destroy())}}class Zn{constructor(){this._count=0}validateStyleProperty(te){return ee(te)}matchesElement(te,ue){return ce(te,ue)}containsElement(te,ue){return re(te,ue)}query(te,ue,je){return de(te,ue,je)}computeStyle(te,ue,je){return window.getComputedStyle(te)[ue]}buildKeyframeElement(te,ue,je){je=je.map(Xt=>oe(Xt));let wt=`@keyframes ${ue} {\n`,kt="";je.forEach(Xt=>{kt=" ";const pi=parseFloat(Xt.offset);wt+=`${kt}${100*pi}% {\n`,kt+=" ",Object.keys(Xt).forEach(Ti=>{const Zi=Xt[Ti];switch(Ti){case"offset":return;case"easing":return void(Zi&&(wt+=`${kt}animation-timing-function: ${Zi};\n`));default:return void(wt+=`${kt}${Ti}: ${Zi};\n`)}}),wt+=`${kt}}\n`}),wt+="}\n";const Qt=document.createElement("style");return Qt.textContent=wt,Qt}animate(te,ue,je,wt,kt,Qt=[],Xt){const pi=Qt.filter(It=>It instanceof Oa),Ti={};le(je,wt)&&pi.forEach(It=>{let zt=It.currentSnapshot;Object.keys(zt).forEach(ri=>Ti[ri]=zt[ri])});const Zi=function ja(xt){let te={};return xt&&(Array.isArray(xt)?xt:[xt]).forEach(je=>{Object.keys(je).forEach(wt=>{"offset"==wt||"easing"==wt||(te[wt]=je[wt])})}),te}(ue=xe(te,ue,Ti));if(0==je)return new ra(te,Zi);const tn="gen_css_kf_"+this._count++,Mn=this.buildKeyframeElement(te,tn,ue);(function ns(xt){var te;const ue=null===(te=xt.getRootNode)||void 0===te?void 0:te.call(xt);return"undefined"!=typeof ShadowRoot&&ue instanceof ShadowRoot?ue:document.head})(te).appendChild(Mn);const tt=Kn(te,ue),Et=new Oa(te,ue,tn,je,wt,kt,Zi,tt);return Et.onDestroy(()=>function Xe(xt){xt.parentNode.removeChild(xt)}(Mn)),Et}}class ne{constructor(te,ue,je,wt){this.element=te,this.keyframes=ue,this.options=je,this._specialStyles=wt,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=je.duration,this._delay=je.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(te=>te()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const te=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,te,this.options),this._finalKeyframe=te.length?te[te.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(te,ue,je){return te.animate(ue,je)}onStart(te){this._onStartFns.push(te)}onDone(te){this._onDoneFns.push(te)}onDestroy(te){this._onDestroyFns.push(te)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(te=>te()),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(te=>te()),this._onDestroyFns=[])}setPosition(te){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=te*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const te={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(ue=>{"offset"!=ue&&(te[ue]=this._finished?this._finalKeyframe[ue]:lt(this.element,ue))}),this.currentSnapshot=te}triggerCallback(te){const ue="start"==te?this._onStartFns:this._onDoneFns;ue.forEach(je=>je()),ue.length=0}}class Qe{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(mi().toString()),this._cssKeyframesDriver=new Zn}validateStyleProperty(te){return ee(te)}matchesElement(te,ue){return ce(te,ue)}containsElement(te,ue){return re(te,ue)}query(te,ue,je){return de(te,ue,je)}computeStyle(te,ue,je){return window.getComputedStyle(te)[ue]}overrideWebAnimationsSupport(te){this._isNativeImpl=te}animate(te,ue,je,wt,kt,Qt=[],Xt){if(!Xt&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(te,ue,je,wt,kt,Qt);const Zi={duration:je,delay:wt,fill:0==wt?"both":"forwards"};kt&&(Zi.easing=kt);const tn={},Mn=Qt.filter(tt=>tt instanceof ne);le(je,wt)&&Mn.forEach(tt=>{let Et=tt.currentSnapshot;Object.keys(Et).forEach(It=>tn[It]=Et[It])});const On=Kn(te,ue=xe(te,ue=ue.map(tt=>Ie(tt,!1)),tn));return new ne(te,ue,Zi,On)}}function mi(){return C()&&Element.prototype.animate||{}}var Ct=m(9808);let ti=(()=>{class xt extends y._j{constructor(ue,je){super(),this._nextAnimationId=0,this._renderer=ue.createRenderer(je.body,{id:"0",encapsulation:e.ifc.None,styles:[],data:{animation:[]}})}build(ue){const je=this._nextAnimationId.toString();this._nextAnimationId++;const wt=Array.isArray(ue)?(0,y.vP)(ue):ue;return xi(this._renderer,null,je,"register",[wt]),new bt(je,this._renderer)}}return xt.\u0275fac=function(ue){return new(ue||xt)(e.LFG(e.FYo),e.LFG(Ct.K0))},xt.\u0275prov=e.Yz7({token:xt,factory:xt.\u0275fac}),xt})();class bt extends y.LC{constructor(te,ue){super(),this._id=te,this._renderer=ue}create(te,ue){return new Yt(this._id,te,ue||{},this._renderer)}}class Yt{constructor(te,ue,je,wt){this.id=te,this.element=ue,this._renderer=wt,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",je)}_listen(te,ue){return this._renderer.listen(this.element,`@@${this.id}:${te}`,ue)}_command(te,...ue){return xi(this._renderer,this.element,this.id,te,ue)}onDone(te){this._listen("done",te)}onStart(te){this._listen("start",te)}onDestroy(te){this._listen("destroy",te)}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(te){this._command("setPosition",te)}getPosition(){var te,ue;return null!==(ue=null===(te=this._renderer.engine.players[+this.id])||void 0===te?void 0:te.getPosition())&&void 0!==ue?ue:0}}function xi(xt,te,ue,je,wt){return xt.setProperty(te,`@@${ue}:${je}`,wt)}const yn="@.disabled";let An=(()=>{class xt{constructor(ue,je,wt){this.delegate=ue,this.engine=je,this._zone=wt,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),je.onRemovalComplete=(kt,Qt)=>{const Xt=null==Qt?void 0:Qt.parentNode(kt);Xt&&Qt.removeChild(Xt,kt)}}createRenderer(ue,je){const kt=this.delegate.createRenderer(ue,je);if(!(ue&&je&&je.data&&je.data.animation)){let Zi=this._rendererCache.get(kt);return Zi||(Zi=new Wi("",kt,this.engine),this._rendererCache.set(kt,Zi)),Zi}const Qt=je.id,Xt=je.id+"-"+this._currentId;this._currentId++,this.engine.register(Xt,ue);const pi=Zi=>{Array.isArray(Zi)?Zi.forEach(pi):this.engine.registerTrigger(Qt,Xt,ue,Zi.name,Zi)};return je.data.animation.forEach(pi),new Cr(this,Xt,kt,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(ue,je,wt){ue>=0&&ue<this._microtaskId?this._zone.run(()=>je(wt)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(kt=>{const[Qt,Xt]=kt;Qt(Xt)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([je,wt]))}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 xt.\u0275fac=function(ue){return new(ue||xt)(e.LFG(e.FYo),e.LFG(kr),e.LFG(e.R0b))},xt.\u0275prov=e.Yz7({token:xt,factory:xt.\u0275fac}),xt})();class Wi{constructor(te,ue,je){this.namespaceId=te,this.delegate=ue,this.engine=je,this.destroyNode=this.delegate.destroyNode?wt=>ue.destroyNode(wt):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(te,ue){return this.delegate.createElement(te,ue)}createComment(te){return this.delegate.createComment(te)}createText(te){return this.delegate.createText(te)}appendChild(te,ue){this.delegate.appendChild(te,ue),this.engine.onInsert(this.namespaceId,ue,te,!1)}insertBefore(te,ue,je,wt=!0){this.delegate.insertBefore(te,ue,je),this.engine.onInsert(this.namespaceId,ue,te,wt)}removeChild(te,ue,je){this.engine.onRemove(this.namespaceId,ue,this.delegate,je)}selectRootElement(te,ue){return this.delegate.selectRootElement(te,ue)}parentNode(te){return this.delegate.parentNode(te)}nextSibling(te){return this.delegate.nextSibling(te)}setAttribute(te,ue,je,wt){this.delegate.setAttribute(te,ue,je,wt)}removeAttribute(te,ue,je){this.delegate.removeAttribute(te,ue,je)}addClass(te,ue){this.delegate.addClass(te,ue)}removeClass(te,ue){this.delegate.removeClass(te,ue)}setStyle(te,ue,je,wt){this.delegate.setStyle(te,ue,je,wt)}removeStyle(te,ue,je){this.delegate.removeStyle(te,ue,je)}setProperty(te,ue,je){"@"==ue.charAt(0)&&ue==yn?this.disableAnimations(te,!!je):this.delegate.setProperty(te,ue,je)}setValue(te,ue){this.delegate.setValue(te,ue)}listen(te,ue,je){return this.delegate.listen(te,ue,je)}disableAnimations(te,ue){this.engine.disableAnimations(te,ue)}}class Cr extends Wi{constructor(te,ue,je,wt){super(ue,je,wt),this.factory=te,this.namespaceId=ue}setProperty(te,ue,je){"@"==ue.charAt(0)?"."==ue.charAt(1)&&ue==yn?this.disableAnimations(te,je=void 0===je||!!je):this.engine.process(this.namespaceId,te,ue.substr(1),je):this.delegate.setProperty(te,ue,je)}listen(te,ue,je){if("@"==ue.charAt(0)){const wt=function Un(xt){switch(xt){case"body":return document.body;case"document":return document;case"window":return window;default:return xt}}(te);let kt=ue.substr(1),Qt="";return"@"!=kt.charAt(0)&&([kt,Qt]=function Rn(xt){const te=xt.indexOf(".");return[xt.substring(0,te),xt.substr(te+1)]}(kt)),this.engine.listen(this.namespaceId,wt,kt,Qt,Xt=>{this.factory.scheduleListenerCallback(Xt._data||-1,je,Xt)})}return this.delegate.listen(te,ue,je)}}let _a=(()=>{class xt extends kr{constructor(ue,je,wt){super(ue.body,je,wt)}ngOnDestroy(){this.flush()}}return xt.\u0275fac=function(ue){return new(ue||xt)(e.LFG(Ct.K0),e.LFG(b),e.LFG(Ui))},xt.\u0275prov=e.Yz7({token:xt,factory:xt.\u0275fac}),xt})();const ki=new e.OlP("AnimationModuleType"),Nn=[{provide:y._j,useClass:ti},{provide:Ui,useFactory:function ds(){return new Xi}},{provide:kr,useClass:_a},{provide:e.FYo,useFactory:function vs(xt,te,ue){return new An(xt,te,ue)},deps:[t.se,kr,e.R0b]}],zs=[{provide:b,useFactory:function Mr(){return function Wt(){return"function"==typeof mi()}()?new Qe:new Zn}},{provide:ki,useValue:"BrowserAnimations"},...Nn],fr=[{provide:b,useClass:ae},{provide:ki,useValue:"NoopAnimations"},...Nn];let Us=(()=>{class xt{static withConfig(ue){return{ngModule:xt,providers:ue.disableAnimations?fr:zs}}}return xt.\u0275fac=function(ue){return new(ue||xt)},xt.\u0275mod=e.oAB({type:xt}),xt.\u0275inj=e.cJS({providers:zs,imports:[t.b2]}),xt})()},2313:(Ve,Q,m)=>{"use strict";m.d(Q,{b2:()=>vt,H7:()=>$t,t6:()=>et,q6:()=>z,se:()=>u});var e=m(9808),t=m(5e3);class y extends e.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class C extends y{static makeCurrent(){(0,e.HT)(new C)}onAndCancel(Fe,at,st){return Fe.addEventListener(at,st,!1),()=>{Fe.removeEventListener(at,st,!1)}}dispatchEvent(Fe,at){Fe.dispatchEvent(at)}remove(Fe){Fe.parentNode&&Fe.parentNode.removeChild(Fe)}createElement(Fe,at){return(at=at||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,at){return"window"===at?window:"document"===at?Fe:"body"===at?Fe.body:null}getBaseHref(Fe){const at=function M(){return o=o||document.querySelector("base"),o?o.getAttribute("href"):null}();return null==at?null:function N(Pe){l=l||document.createElement("a"),l.setAttribute("href",Pe);const Fe=l.pathname;return"/"===Fe.charAt(0)?Fe:`/${Fe}`}(at)}resetBaseElement(){o=null}getUserAgent(){return window.navigator.userAgent}getCookie(Fe){return(0,e.Mx)(document.cookie,Fe)}}let l,o=null;const s=new t.OlP("TRANSITION_ID"),A=[{provide:t.ip1,useFactory:function D(Pe,Fe,at){return()=>{at.get(t.CZH).donePromise.then(()=>{const st=(0,e.q)(),At=Fe.querySelectorAll(`style[ng-transition="${Pe}"]`);for(let li=0;li<At.length;li++)st.remove(At[li])})}},deps:[s,e.K0,t.zs3],multi:!0}];class O{static init(){(0,t.VLi)(new O)}addToWindow(Fe){t.dqk.getAngularTestability=(st,At=!0)=>{const li=Fe.findTestabilityInTree(st,At);if(null==li)throw new Error("Could not find testability for element.");return li},t.dqk.getAllAngularTestabilities=()=>Fe.getAllTestabilities(),t.dqk.getAllAngularRootElements=()=>Fe.getAllRootElements(),t.dqk.frameworkStabilizers||(t.dqk.frameworkStabilizers=[]),t.dqk.frameworkStabilizers.push(st=>{const At=t.dqk.getAllAngularTestabilities();let li=At.length,Bt=!1;const Rt=function(Li){Bt=Bt||Li,li--,0==li&&st(Bt)};At.forEach(function(Li){Li.whenStable(Rt)})})}findTestabilityInTree(Fe,at,st){if(null==at)return null;const At=Fe.getTestability(at);return null!=At?At:st?(0,e.q)().isShadowRoot(at)?this.findTestabilityInTree(Fe,at.host,!0):this.findTestabilityInTree(Fe,at.parentElement,!0):null}}let E=(()=>{class Pe{build(){return new XMLHttpRequest}}return Pe.\u0275fac=function(at){return new(at||Pe)},Pe.\u0275prov=t.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})();const P=new t.OlP("EventManagerPlugins");let w=(()=>{class Pe{constructor(at,st){this._zone=st,this._eventNameToPlugin=new Map,at.forEach(At=>At.manager=this),this._plugins=at.slice().reverse()}addEventListener(at,st,At){return this._findPluginFor(st).addEventListener(at,st,At)}addGlobalEventListener(at,st,At){return this._findPluginFor(st).addGlobalEventListener(at,st,At)}getZone(){return this._zone}_findPluginFor(at){const st=this._eventNameToPlugin.get(at);if(st)return st;const At=this._plugins;for(let li=0;li<At.length;li++){const Bt=At[li];if(Bt.supports(at))return this._eventNameToPlugin.set(at,Bt),Bt}throw new Error(`No event manager plugin found for event ${at}`)}}return Pe.\u0275fac=function(at){return new(at||Pe)(t.LFG(P),t.LFG(t.R0b))},Pe.\u0275prov=t.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})();class Z{constructor(Fe){this._doc=Fe}addGlobalEventListener(Fe,at,st){const At=(0,e.q)().getGlobalEventTarget(this._doc,Fe);if(!At)throw new Error(`Unsupported event target ${At} for event ${at}`);return this.addEventListener(At,at,st)}}let j=(()=>{class Pe{constructor(){this._stylesSet=new Set}addStyles(at){const st=new Set;at.forEach(At=>{this._stylesSet.has(At)||(this._stylesSet.add(At),st.add(At))}),this.onStylesAdded(st)}onStylesAdded(at){}getAllStyles(){return Array.from(this._stylesSet)}}return Pe.\u0275fac=function(at){return new(at||Pe)},Pe.\u0275prov=t.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})(),W=(()=>{class Pe extends j{constructor(at){super(),this._doc=at,this._hostNodes=new Map,this._hostNodes.set(at.head,[])}_addStylesToHost(at,st,At){at.forEach(li=>{const Bt=this._doc.createElement("style");Bt.textContent=li,At.push(st.appendChild(Bt))})}addHost(at){const st=[];this._addStylesToHost(this._stylesSet,at,st),this._hostNodes.set(at,st)}removeHost(at){const st=this._hostNodes.get(at);st&&st.forEach(ie),this._hostNodes.delete(at)}onStylesAdded(at){this._hostNodes.forEach((st,At)=>{this._addStylesToHost(at,At,st)})}ngOnDestroy(){this._hostNodes.forEach(at=>at.forEach(ie))}}return Pe.\u0275fac=function(at){return new(at||Pe)(t.LFG(e.K0))},Pe.\u0275prov=t.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})();function ie(Pe){(0,e.q)().remove(Pe)}const ee={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},_e=/%COMP%/g;function i(Pe,Fe,at){for(let st=0;st<Fe.length;st++){let At=Fe[st];Array.isArray(At)?i(Pe,At,at):(At=At.replace(_e,Pe),at.push(At))}return at}function a(Pe){return Fe=>{if("__ngUnwrap__"===Fe)return Pe;!1===Pe(Fe)&&(Fe.preventDefault(),Fe.returnValue=!1)}}let u=(()=>{class Pe{constructor(at,st,At){this.eventManager=at,this.sharedStylesHost=st,this.appId=At,this.rendererByCompId=new Map,this.defaultRenderer=new _(at)}createRenderer(at,st){if(!at||!st)return this.defaultRenderer;switch(st.encapsulation){case t.ifc.Emulated:{let At=this.rendererByCompId.get(st.id);return At||(At=new x(this.eventManager,this.sharedStylesHost,st,this.appId),this.rendererByCompId.set(st.id,At)),At.applyToHost(at),At}case 1:case t.ifc.ShadowDom:return new r(this.eventManager,this.sharedStylesHost,at,st);default:if(!this.rendererByCompId.has(st.id)){const At=i(st.id,st.styles,[]);this.sharedStylesHost.addStyles(At),this.rendererByCompId.set(st.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return Pe.\u0275fac=function(at){return new(at||Pe)(t.LFG(w),t.LFG(W),t.LFG(t.AFp))},Pe.\u0275prov=t.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})();class _{constructor(Fe){this.eventManager=Fe,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(Fe,at){return at?document.createElementNS(ee[at]||at,Fe):document.createElement(Fe)}createComment(Fe){return document.createComment(Fe)}createText(Fe){return document.createTextNode(Fe)}appendChild(Fe,at){Fe.appendChild(at)}insertBefore(Fe,at,st){Fe&&Fe.insertBefore(at,st)}removeChild(Fe,at){Fe&&Fe.removeChild(at)}selectRootElement(Fe,at){let st="string"==typeof Fe?document.querySelector(Fe):Fe;if(!st)throw new Error(`The selector "${Fe}" did not match any elements`);return at||(st.textContent=""),st}parentNode(Fe){return Fe.parentNode}nextSibling(Fe){return Fe.nextSibling}setAttribute(Fe,at,st,At){if(At){at=At+":"+at;const li=ee[At];li?Fe.setAttributeNS(li,at,st):Fe.setAttribute(at,st)}else Fe.setAttribute(at,st)}removeAttribute(Fe,at,st){if(st){const At=ee[st];At?Fe.removeAttributeNS(At,at):Fe.removeAttribute(`${st}:${at}`)}else Fe.removeAttribute(at)}addClass(Fe,at){Fe.classList.add(at)}removeClass(Fe,at){Fe.classList.remove(at)}setStyle(Fe,at,st,At){At&(t.JOm.DashCase|t.JOm.Important)?Fe.style.setProperty(at,st,At&t.JOm.Important?"important":""):Fe.style[at]=st}removeStyle(Fe,at,st){st&t.JOm.DashCase?Fe.style.removeProperty(at):Fe.style[at]=""}setProperty(Fe,at,st){Fe[at]=st}setValue(Fe,at){Fe.nodeValue=at}listen(Fe,at,st){return"string"==typeof Fe?this.eventManager.addGlobalEventListener(Fe,at,a(st)):this.eventManager.addEventListener(Fe,at,a(st))}}class x extends _{constructor(Fe,at,st,At){super(Fe),this.component=st;const li=i(At+"-"+st.id,st.styles,[]);at.addStyles(li),this.contentAttr=function ae(Pe){return"_ngcontent-%COMP%".replace(_e,Pe)}(At+"-"+st.id),this.hostAttr=function b(Pe){return"_nghost-%COMP%".replace(_e,Pe)}(At+"-"+st.id)}applyToHost(Fe){super.setAttribute(Fe,this.hostAttr,"")}createElement(Fe,at){const st=super.createElement(Fe,at);return super.setAttribute(st,this.contentAttr,""),st}}class r extends _{constructor(Fe,at,st,At){super(Fe),this.sharedStylesHost=at,this.hostEl=st,this.shadowRoot=st.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const li=i(At.id,At.styles,[]);for(let Bt=0;Bt<li.length;Bt++){const Rt=document.createElement("style");Rt.textContent=li[Bt],this.shadowRoot.appendChild(Rt)}}nodeOrShadowRoot(Fe){return Fe===this.hostEl?this.shadowRoot:Fe}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(Fe,at){return super.appendChild(this.nodeOrShadowRoot(Fe),at)}insertBefore(Fe,at,st){return super.insertBefore(this.nodeOrShadowRoot(Fe),at,st)}removeChild(Fe,at){return super.removeChild(this.nodeOrShadowRoot(Fe),at)}parentNode(Fe){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(Fe)))}}let v=(()=>{class Pe extends Z{constructor(at){super(at)}supports(at){return!0}addEventListener(at,st,At){return at.addEventListener(st,At,!1),()=>this.removeEventListener(at,st,At)}removeEventListener(at,st,At){return at.removeEventListener(st,At)}}return Pe.\u0275fac=function(at){return new(at||Pe)(t.LFG(e.K0))},Pe.\u0275prov=t.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})();const G=["alt","control","meta","shift"],U={"\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"},ye={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"},Ce={alt:Pe=>Pe.altKey,control:Pe=>Pe.ctrlKey,meta:Pe=>Pe.metaKey,shift:Pe=>Pe.shiftKey};let Be=(()=>{class Pe extends Z{constructor(at){super(at)}supports(at){return null!=Pe.parseEventName(at)}addEventListener(at,st,At){const li=Pe.parseEventName(st),Bt=Pe.eventCallback(li.fullKey,At,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,e.q)().onAndCancel(at,li.domEventName,Bt))}static parseEventName(at){const st=at.toLowerCase().split("."),At=st.shift();if(0===st.length||"keydown"!==At&&"keyup"!==At)return null;const li=Pe._normalizeKey(st.pop());let Bt="";if(G.forEach(Li=>{const si=st.indexOf(Li);si>-1&&(st.splice(si,1),Bt+=Li+".")}),Bt+=li,0!=st.length||0===li.length)return null;const Rt={};return Rt.domEventName=At,Rt.fullKey=Bt,Rt}static getEventFullKey(at){let st="",At=function ze(Pe){let Fe=Pe.key;if(null==Fe){if(Fe=Pe.keyIdentifier,null==Fe)return"Unidentified";Fe.startsWith("U+")&&(Fe=String.fromCharCode(parseInt(Fe.substring(2),16)),3===Pe.location&&ye.hasOwnProperty(Fe)&&(Fe=ye[Fe]))}return U[Fe]||Fe}(at);return At=At.toLowerCase()," "===At?At="space":"."===At&&(At="dot"),G.forEach(li=>{li!=At&&Ce[li](at)&&(st+=li+".")}),st+=At,st}static eventCallback(at,st,At){return li=>{Pe.getEventFullKey(li)===at&&At.runGuarded(()=>st(li))}}static _normalizeKey(at){return"esc"===at?"escape":at}}return Pe.\u0275fac=function(at){return new(at||Pe)(t.LFG(e.K0))},Pe.\u0275prov=t.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})();const z=(0,t.eFA)(t._c5,"browser",[{provide:t.Lbi,useValue:e.bD},{provide:t.g9A,useValue:function Ie(){C.makeCurrent(),O.init()},multi:!0},{provide:e.K0,useFactory:function Me(){return(0,t.RDi)(document),document},deps:[]}]),Ge=[{provide:t.zSh,useValue:"root"},{provide:t.qLn,useFactory:function K(){return new t.qLn},deps:[]},{provide:P,useClass:v,multi:!0,deps:[e.K0,t.R0b,t.Lbi]},{provide:P,useClass:Be,multi:!0,deps:[e.K0]},{provide:u,useClass:u,deps:[w,W,t.AFp]},{provide:t.FYo,useExisting:u},{provide:j,useExisting:W},{provide:W,useClass:W,deps:[e.K0]},{provide:t.dDg,useClass:t.dDg,deps:[t.R0b]},{provide:w,useClass:w,deps:[P,t.R0b]},{provide:e.JF,useClass:E,deps:[]}];let vt=(()=>{class Pe{constructor(at){if(at)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(at){return{ngModule:Pe,providers:[{provide:t.AFp,useValue:at.appId},{provide:s,useExisting:t.AFp},A]}}}return Pe.\u0275fac=function(at){return new(at||Pe)(t.LFG(Pe,12))},Pe.\u0275mod=t.oAB({type:Pe}),Pe.\u0275inj=t.cJS({providers:Ge,imports:[e.ez,t.hGG]}),Pe})();"undefined"!=typeof window&&window;const Ze={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},Ee=new t.OlP("HammerGestureConfig"),Y=new t.OlP("HammerLoader");let me=(()=>{class Pe{constructor(){this.events=[],this.overrides={}}buildHammer(at){const st=new Hammer(at,this.options);st.get("pinch").set({enable:!0}),st.get("rotate").set({enable:!0});for(const At in this.overrides)st.get(At).set(this.overrides[At]);return st}}return Pe.\u0275fac=function(at){return new(at||Pe)},Pe.\u0275prov=t.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})(),De=(()=>{class Pe extends Z{constructor(at,st,At,li){super(at),this._config=st,this.console=At,this.loader=li,this._loaderPromise=null}supports(at){return!(!Ze.hasOwnProperty(at.toLowerCase())&&!this.isCustomEvent(at)||!window.Hammer&&!this.loader)}addEventListener(at,st,At){const li=this.manager.getZone();if(st=st.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||this.loader();let Bt=!1,Rt=()=>{Bt=!0};return this._loaderPromise.then(()=>{window.Hammer?Bt||(Rt=this.addEventListener(at,st,At)):Rt=()=>{}}).catch(()=>{Rt=()=>{}}),()=>{Rt()}}return li.runOutsideAngular(()=>{const Bt=this._config.buildHammer(at),Rt=function(Li){li.runGuarded(function(){At(Li)})};return Bt.on(st,Rt),()=>{Bt.off(st,Rt),"function"==typeof Bt.destroy&&Bt.destroy()}})}isCustomEvent(at){return this._config.events.indexOf(at)>-1}}return Pe.\u0275fac=function(at){return new(at||Pe)(t.LFG(e.K0),t.LFG(Ee),t.LFG(t.c2e),t.LFG(Y,8))},Pe.\u0275prov=t.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})(),et=(()=>{class Pe{}return Pe.\u0275fac=function(at){return new(at||Pe)},Pe.\u0275mod=t.oAB({type:Pe}),Pe.\u0275inj=t.cJS({providers:[{provide:P,useClass:De,multi:!0,deps:[e.K0,Ee,t.c2e,[new t.FiY,Y]]},{provide:Ee,useClass:me,deps:[]}]}),Pe})(),$t=(()=>{class Pe{}return Pe.\u0275fac=function(at){return new(at||Pe)},Pe.\u0275prov=t.Yz7({token:Pe,factory:function(at){let st=null;return st=at?new(at||Pe):t.LFG(Jt),st},providedIn:"root"}),Pe})(),Jt=(()=>{class Pe extends $t{constructor(at){super(),this._doc=at}sanitize(at,st){if(null==st)return null;switch(at){case t.q3G.NONE:return st;case t.q3G.HTML:return(0,t.qzn)(st,"HTML")?(0,t.z3N)(st):(0,t.EiD)(this._doc,String(st)).toString();case t.q3G.STYLE:return(0,t.qzn)(st,"Style")?(0,t.z3N)(st):st;case t.q3G.SCRIPT:if((0,t.qzn)(st,"Script"))return(0,t.z3N)(st);throw new Error("unsafe value used in a script context");case t.q3G.URL:return(0,t.yhl)(st),(0,t.qzn)(st,"URL")?(0,t.z3N)(st):(0,t.mCW)(String(st));case t.q3G.RESOURCE_URL:if((0,t.qzn)(st,"ResourceURL"))return(0,t.z3N)(st);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${at} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(at){return(0,t.JVY)(at)}bypassSecurityTrustStyle(at){return(0,t.L6k)(at)}bypassSecurityTrustScript(at){return(0,t.eBb)(at)}bypassSecurityTrustUrl(at){return(0,t.LAX)(at)}bypassSecurityTrustResourceUrl(at){return(0,t.pB0)(at)}}return Pe.\u0275fac=function(at){return new(at||Pe)(t.LFG(e.K0))},Pe.\u0275prov=t.Yz7({token:Pe,factory:function(at){let st=null;return st=at?new at:function Nt(Pe){return new Jt(Pe.get(e.K0))}(t.LFG(t.zs3)),st},providedIn:"root"}),Pe})()},1402:(Ve,Q,m)=>{"use strict";m.d(Q,{gz:()=>Si,gk:()=>F,m2:()=>G,Q3:()=>U,OD:()=>v,Av:()=>Ie,F0:()=>nn,rH:()=>da,Od:()=>Yn,yS:()=>Xr,Bz:()=>hc,lC:()=>wa});var e=m(5e3),t=m(8306),y=m(727),C=m(4482),o=m(5403);function M(){return(0,C.e)((Ye,Te)=>{let be=null;Ye._refCount++;const $e=new o.Q(Te,void 0,void 0,void 0,()=>{if(!Ye||Ye._refCount<=0||0<--Ye._refCount)return void(be=null);const dt=Ye._connection,Ot=be;be=null,dt&&(!Ot||dt===Ot)&&dt.unsubscribe(),Te.unsubscribe()});Ye.subscribe($e),$e.closed||(be=Ye.connect())})}class l extends t.y{constructor(Te,be){super(),this.source=Te,this.subjectFactory=be,this._subject=null,this._refCount=0,this._connection=null,(0,C.A)(Te)&&(this.lift=Te.lift)}_subscribe(Te){return this.getSubject().subscribe(Te)}getSubject(){const Te=this._subject;return(!Te||Te.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:Te}=this;this._subject=this._connection=null,null==Te||Te.unsubscribe()}connect(){let Te=this._connection;if(!Te){Te=this._connection=new y.w0;const be=this.getSubject();Te.add(this.source.subscribe(new o.Q(be,void 0,()=>{this._teardown(),be.complete()},$e=>{this._teardown(),be.error($e)},()=>this._teardown()))),Te.closed&&(this._connection=null,Te=y.w0.EMPTY)}return Te}refCount(){return M()(this)}}var N=m(457),s=m(9646),D=m(1135),A=m(9841),O=m(6805),E=m(7272),P=m(9770),w=m(515),Z=m(7579),j=m(9300);function W(Ye){return Ye<=0?()=>w.E:(0,C.e)((Te,be)=>{let $e=[];Te.subscribe(new o.Q(be,dt=>{$e.push(dt),Ye<$e.length&&$e.shift()},()=>{for(const dt of $e)be.next(dt);be.complete()},void 0,()=>{$e=null}))})}var ie=m(8068),ee=m(6590),_e=m(4671),re=m(4004),de=m(3900),oe=m(5698),ae=m(8675),b=m(5026),i=m(262),a=m(4351),p=m(590),u=m(5577),_=m(8505),L=m(8746),I=m(8189),x=m(9808);class r{constructor(Te,be){this.id=Te,this.url=be}}class v extends r{constructor(Te,be,$e="imperative",dt=null){super(Te,be),this.navigationTrigger=$e,this.restoredState=dt}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class G extends r{constructor(Te,be,$e){super(Te,be),this.urlAfterRedirects=$e}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class F extends r{constructor(Te,be,$e){super(Te,be),this.reason=$e}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class U extends r{constructor(Te,be,$e){super(Te,be),this.error=$e}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class ye extends r{constructor(Te,be,$e,dt){super(Te,be),this.urlAfterRedirects=$e,this.state=dt}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ce extends r{constructor(Te,be,$e,dt){super(Te,be),this.urlAfterRedirects=$e,this.state=dt}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Be extends r{constructor(Te,be,$e,dt,Ot){super(Te,be),this.urlAfterRedirects=$e,this.state=dt,this.shouldActivate=Ot}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class ze extends r{constructor(Te,be,$e,dt){super(Te,be),this.urlAfterRedirects=$e,this.state=dt}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ie extends r{constructor(Te,be,$e,dt){super(Te,be),this.urlAfterRedirects=$e,this.state=dt}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class K{constructor(Te){this.route=Te}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Me{constructor(Te){this.route=Te}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class we{constructor(Te){this.snapshot=Te}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class z{constructor(Te){this.snapshot=Te}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ge{constructor(Te){this.snapshot=Te}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class vt{constructor(Te){this.snapshot=Te}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Re{constructor(Te,be,$e){this.routerEvent=Te,this.position=be,this.anchor=$e}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const Ne="primary";class he{constructor(Te){this.params=Te||{}}has(Te){return Object.prototype.hasOwnProperty.call(this.params,Te)}get(Te){if(this.has(Te)){const be=this.params[Te];return Array.isArray(be)?be[0]:be}return null}getAll(Te){if(this.has(Te)){const be=this.params[Te];return Array.isArray(be)?be:[be]}return[]}get keys(){return Object.keys(this.params)}}function Le(Ye){return new he(Ye)}const ke="ngNavigationCancelingError";function q(Ye){const Te=Error("NavigationCancelingError: "+Ye);return Te[ke]=!0,Te}function le(Ye,Te,be){const $e=be.path.split("/");if($e.length>Ye.length||"full"===be.pathMatch&&(Te.hasChildren()||$e.length<Ye.length))return null;const dt={};for(let Ot=0;Ot<$e.length;Ot++){const qt=$e[Ot],ii=Ye[Ot];if(qt.startsWith(":"))dt[qt.substring(1)]=ii;else if(qt!==ii.path)return null}return{consumed:Ye.slice(0,$e.length),posParams:dt}}function Ue(Ye,Te){const be=Ye?Object.keys(Ye):void 0,$e=Te?Object.keys(Te):void 0;if(!be||!$e||be.length!=$e.length)return!1;let dt;for(let Ot=0;Ot<be.length;Ot++)if(dt=be[Ot],!lt(Ye[dt],Te[dt]))return!1;return!0}function lt(Ye,Te){if(Array.isArray(Ye)&&Array.isArray(Te)){if(Ye.length!==Te.length)return!1;const be=[...Ye].sort(),$e=[...Te].sort();return be.every((dt,Ot)=>$e[Ot]===dt)}return Ye===Te}function nt(Ye){return Array.prototype.concat.apply([],Ye)}function ft(Ye){return Ye.length>0?Ye[Ye.length-1]:null}function rt(Ye,Te){for(const be in Ye)Ye.hasOwnProperty(be)&&Te(Ye[be],be)}function Mt(Ye){return(0,e.CqO)(Ye)?Ye:(0,e.QGY)(Ye)?(0,N.D)(Promise.resolve(Ye)):(0,s.of)(Ye)}const Ft={exact:function ei(Ye,Te,be){if(!et(Ye.segments,Te.segments)||!Ze(Ye.segments,Te.segments,be)||Ye.numberOfChildren!==Te.numberOfChildren)return!1;for(const $e in Te.children)if(!Ye.children[$e]||!ei(Ye.children[$e],Te.children[$e],be))return!1;return!0},subset:ai},Vt={exact:function jt(Ye,Te){return Ue(Ye,Te)},subset:function Pi(Ye,Te){return Object.keys(Te).length<=Object.keys(Ye).length&&Object.keys(Te).every(be=>lt(Ye[be],Te[be]))},ignored:()=>!0};function Ii(Ye,Te,be){return Ft[be.paths](Ye.root,Te.root,be.matrixParams)&&Vt[be.queryParams](Ye.queryParams,Te.queryParams)&&!("exact"===be.fragment&&Ye.fragment!==Te.fragment)}function ai(Ye,Te,be){return hi(Ye,Te,Te.segments,be)}function hi(Ye,Te,be,$e){if(Ye.segments.length>be.length){const dt=Ye.segments.slice(0,be.length);return!(!et(dt,be)||Te.hasChildren()||!Ze(dt,be,$e))}if(Ye.segments.length===be.length){if(!et(Ye.segments,be)||!Ze(Ye.segments,be,$e))return!1;for(const dt in Te.children)if(!Ye.children[dt]||!ai(Ye.children[dt],Te.children[dt],$e))return!1;return!0}{const dt=be.slice(0,Ye.segments.length),Ot=be.slice(Ye.segments.length);return!!(et(Ye.segments,dt)&&Ze(Ye.segments,dt,$e)&&Ye.children[Ne])&&hi(Ye.children[Ne],Te,Ot,$e)}}function Ze(Ye,Te,be){return Te.every(($e,dt)=>Vt[be](Ye[dt].parameters,$e.parameters))}class Ee{constructor(Te,be,$e){this.root=Te,this.queryParams=be,this.fragment=$e}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Le(this.queryParams)),this._queryParamMap}toString(){return ct.serialize(this)}}class Y{constructor(Te,be){this.segments=Te,this.children=be,this.parent=null,rt(be,($e,dt)=>$e.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Pe(this)}}class me{constructor(Te,be){this.path=Te,this.parameters=be}get parameterMap(){return this._parameterMap||(this._parameterMap=Le(this.parameters)),this._parameterMap}toString(){return Li(this)}}function et(Ye,Te){return Ye.length===Te.length&&Ye.every((be,$e)=>be.path===Te[$e].path)}class Nt{}class Jt{parse(Te){const be=new ve(Te);return new Ee(be.parseRootSegment(),be.parseQueryParams(),be.parseFragment())}serialize(Te){const be=`/${Fe(Te.root,!0)}`,$e=function ci(Ye){const Te=Object.keys(Ye).map(be=>{const $e=Ye[be];return Array.isArray($e)?$e.map(dt=>`${st(be)}=${st(dt)}`).join("&"):`${st(be)}=${st($e)}`}).filter(be=>!!be);return Te.length?`?${Te.join("&")}`:""}(Te.queryParams);return`${be}${$e}${"string"==typeof Te.fragment?`#${function At(Ye){return encodeURI(Ye)}(Te.fragment)}`:""}`}}const ct=new Jt;function Pe(Ye){return Ye.segments.map(Te=>Li(Te)).join("/")}function Fe(Ye,Te){if(!Ye.hasChildren())return Pe(Ye);if(Te){const be=Ye.children[Ne]?Fe(Ye.children[Ne],!1):"",$e=[];return rt(Ye.children,(dt,Ot)=>{Ot!==Ne&&$e.push(`${Ot}:${Fe(dt,!1)}`)}),$e.length>0?`${be}(${$e.join("//")})`:be}{const be=function $t(Ye,Te){let be=[];return rt(Ye.children,($e,dt)=>{dt===Ne&&(be=be.concat(Te($e,dt)))}),rt(Ye.children,($e,dt)=>{dt!==Ne&&(be=be.concat(Te($e,dt)))}),be}(Ye,($e,dt)=>dt===Ne?[Fe(Ye.children[Ne],!1)]:[`${dt}:${Fe($e,!1)}`]);return 1===Object.keys(Ye.children).length&&null!=Ye.children[Ne]?`${Pe(Ye)}/${be[0]}`:`${Pe(Ye)}/(${be.join("//")})`}}function at(Ye){return encodeURIComponent(Ye).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function st(Ye){return at(Ye).replace(/%3B/gi,";")}function li(Ye){return at(Ye).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Bt(Ye){return decodeURIComponent(Ye)}function Rt(Ye){return Bt(Ye.replace(/\+/g,"%20"))}function Li(Ye){return`${li(Ye.path)}${function si(Ye){return Object.keys(Ye).map(Te=>`;${li(Te)}=${li(Ye[Te])}`).join("")}(Ye.parameters)}`}const sn=/^[^\/()?;=#]+/;function Ui(Ye){const Te=Ye.match(sn);return Te?Te[0]:""}const Di=/^[^=?&#]+/,Ke=/^[^&#]+/;class ve{constructor(Te){this.url=Te,this.remaining=Te}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Y([],{}):new Y([],this.parseChildren())}parseQueryParams(){const Te={};if(this.consumeOptional("?"))do{this.parseQueryParam(Te)}while(this.consumeOptional("&"));return Te}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const Te=[];for(this.peekStartsWith("(")||Te.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),Te.push(this.parseSegment());let be={};this.peekStartsWith("/(")&&(this.capture("/"),be=this.parseParens(!0));let $e={};return this.peekStartsWith("(")&&($e=this.parseParens(!1)),(Te.length>0||Object.keys(be).length>0)&&($e[Ne]=new Y(Te,be)),$e}parseSegment(){const Te=Ui(this.remaining);if(""===Te&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(Te),new me(Bt(Te),this.parseMatrixParams())}parseMatrixParams(){const Te={};for(;this.consumeOptional(";");)this.parseParam(Te);return Te}parseParam(Te){const be=Ui(this.remaining);if(!be)return;this.capture(be);let $e="";if(this.consumeOptional("=")){const dt=Ui(this.remaining);dt&&($e=dt,this.capture($e))}Te[Bt(be)]=Bt($e)}parseQueryParam(Te){const be=function Xi(Ye){const Te=Ye.match(Di);return Te?Te[0]:""}(this.remaining);if(!be)return;this.capture(be);let $e="";if(this.consumeOptional("=")){const qt=function _t(Ye){const Te=Ye.match(Ke);return Te?Te[0]:""}(this.remaining);qt&&($e=qt,this.capture($e))}const dt=Rt(be),Ot=Rt($e);if(Te.hasOwnProperty(dt)){let qt=Te[dt];Array.isArray(qt)||(qt=[qt],Te[dt]=qt),qt.push(Ot)}else Te[dt]=Ot}parseParens(Te){const be={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const $e=Ui(this.remaining),dt=this.remaining[$e.length];if("/"!==dt&&")"!==dt&&";"!==dt)throw new Error(`Cannot parse url '${this.url}'`);let Ot;$e.indexOf(":")>-1?(Ot=$e.substr(0,$e.indexOf(":")),this.capture(Ot),this.capture(":")):Te&&(Ot=Ne);const qt=this.parseChildren();be[Ot]=1===Object.keys(qt).length?qt[Ne]:new Y([],qt),this.consumeOptional("//")}return be}peekStartsWith(Te){return this.remaining.startsWith(Te)}consumeOptional(Te){return!!this.peekStartsWith(Te)&&(this.remaining=this.remaining.substring(Te.length),!0)}capture(Te){if(!this.consumeOptional(Te))throw new Error(`Expected "${Te}".`)}}class qe{constructor(Te){this._root=Te}get root(){return this._root.value}parent(Te){const be=this.pathFromRoot(Te);return be.length>1?be[be.length-2]:null}children(Te){const be=yt(Te,this._root);return be?be.children.map($e=>$e.value):[]}firstChild(Te){const be=yt(Te,this._root);return be&&be.children.length>0?be.children[0].value:null}siblings(Te){const be=fe(Te,this._root);return be.length<2?[]:be[be.length-2].children.map(dt=>dt.value).filter(dt=>dt!==Te)}pathFromRoot(Te){return fe(Te,this._root).map(be=>be.value)}}function yt(Ye,Te){if(Ye===Te.value)return Te;for(const be of Te.children){const $e=yt(Ye,be);if($e)return $e}return null}function fe(Ye,Te){if(Ye===Te.value)return[Te];for(const be of Te.children){const $e=fe(Ye,be);if($e.length)return $e.unshift(Te),$e}return[]}class Je{constructor(Te,be){this.value=Te,this.children=be}toString(){return`TreeNode(${this.value})`}}function St(Ye){const Te={};return Ye&&Ye.children.forEach(be=>Te[be.value.outlet]=be),Te}class Pt extends qe{constructor(Te,be){super(Te),this.snapshot=be,Lt(this,Te)}toString(){return this.snapshot.toString()}}function yi(Ye,Te){const be=function Ni(Ye,Te){const qt=new Kt([],{},{},"",{},Ne,Te,null,Ye.root,-1,{});return new gt("",new Je(qt,[]))}(Ye,Te),$e=new D.X([new me("",{})]),dt=new D.X({}),Ot=new D.X({}),qt=new D.X({}),ii=new D.X(""),Ei=new Si($e,dt,qt,ii,Ot,Ne,Te,be.root);return Ei.snapshot=be.root,new Pt(new Je(Ei,[]),be)}class Si{constructor(Te,be,$e,dt,Ot,qt,ii,Ei){this.url=Te,this.params=be,this.queryParams=$e,this.fragment=dt,this.data=Ot,this.outlet=qt,this.component=ii,this._futureSnapshot=Ei}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,re.U)(Te=>Le(Te)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,re.U)(Te=>Le(Te)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function qi(Ye,Te="emptyOnly"){const be=Ye.pathFromRoot;let $e=0;if("always"!==Te)for($e=be.length-1;$e>=1;){const dt=be[$e],Ot=be[$e-1];if(dt.routeConfig&&""===dt.routeConfig.path)$e--;else{if(Ot.component)break;$e--}}return function ot(Ye){return Ye.reduce((Te,be)=>({params:Object.assign(Object.assign({},Te.params),be.params),data:Object.assign(Object.assign({},Te.data),be.data),resolve:Object.assign(Object.assign({},Te.resolve),be._resolvedData)}),{params:{},data:{},resolve:{}})}(be.slice($e))}class Kt{constructor(Te,be,$e,dt,Ot,qt,ii,Ei,an,Wn,xn){this.url=Te,this.params=be,this.queryParams=$e,this.fragment=dt,this.data=Ot,this.outlet=qt,this.component=ii,this.routeConfig=Ei,this._urlSegment=an,this._lastPathIndex=Wn,this._resolve=xn}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=Le(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Le(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map($e=>$e.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class gt extends qe{constructor(Te,be){super(be),this.url=Te,Lt(this,be)}toString(){return ui(this._root)}}function Lt(Ye,Te){Te.value._routerState=Ye,Te.children.forEach(be=>Lt(Ye,be))}function ui(Ye){const Te=Ye.children.length>0?` { ${Ye.children.map(ui).join(", ")} } `:"";return`${Ye.value}${Te}`}function Ci(Ye){if(Ye.snapshot){const Te=Ye.snapshot,be=Ye._futureSnapshot;Ye.snapshot=be,Ue(Te.queryParams,be.queryParams)||Ye.queryParams.next(be.queryParams),Te.fragment!==be.fragment&&Ye.fragment.next(be.fragment),Ue(Te.params,be.params)||Ye.params.next(be.params),function xe(Ye,Te){if(Ye.length!==Te.length)return!1;for(let be=0;be<Ye.length;++be)if(!Ue(Ye[be],Te[be]))return!1;return!0}(Te.url,be.url)||Ye.url.next(be.url),Ue(Te.data,be.data)||Ye.data.next(be.data)}else Ye.snapshot=Ye._futureSnapshot,Ye.data.next(Ye._futureSnapshot.data)}function Yi(Ye,Te){const be=Ue(Ye.params,Te.params)&&function De(Ye,Te){return et(Ye,Te)&&Ye.every((be,$e)=>Ue(be.parameters,Te[$e].parameters))}(Ye.url,Te.url);return be&&!(!Ye.parent!=!Te.parent)&&(!Ye.parent||Yi(Ye.parent,Te.parent))}function Cn(Ye,Te,be){if(be&&Ye.shouldReuseRoute(Te.value,be.value.snapshot)){const $e=be.value;$e._futureSnapshot=Te.value;const dt=function Ln(Ye,Te,be){return Te.children.map($e=>{for(const dt of be.children)if(Ye.shouldReuseRoute($e.value,dt.value.snapshot))return Cn(Ye,$e,dt);return Cn(Ye,$e)})}(Ye,Te,be);return new Je($e,dt)}{if(Ye.shouldAttach(Te.value)){const Ot=Ye.retrieve(Te.value);if(null!==Ot){const qt=Ot.route;return qt.value._futureSnapshot=Te.value,qt.children=Te.children.map(ii=>Cn(Ye,ii)),qt}}const $e=function _n(Ye){return new Si(new D.X(Ye.url),new D.X(Ye.params),new D.X(Ye.queryParams),new D.X(Ye.fragment),new D.X(Ye.data),Ye.outlet,Ye.component,Ye)}(Te.value),dt=Te.children.map(Ot=>Cn(Ye,Ot));return new Je($e,dt)}}function dr(Ye){return"object"==typeof Ye&&null!=Ye&&!Ye.outlets&&!Ye.segmentPath}function wi(Ye){return"object"==typeof Ye&&null!=Ye&&Ye.outlets}function Fi(Ye,Te,be,$e,dt){let Ot={};return $e&&rt($e,(qt,ii)=>{Ot[ii]=Array.isArray(qt)?qt.map(Ei=>`${Ei}`):`${qt}`}),new Ee(be.root===Ye?Te:dn(be.root,Ye,Te),Ot,dt)}function dn(Ye,Te,be){const $e={};return rt(Ye.children,(dt,Ot)=>{$e[Ot]=dt===Te?be:dn(dt,Te,be)}),new Y(Ye.segments,$e)}class Lr{constructor(Te,be,$e){if(this.isAbsolute=Te,this.numberOfDoubleDots=be,this.commands=$e,Te&&$e.length>0&&dr($e[0]))throw new Error("Root segment cannot have matrix parameters");const dt=$e.find(wi);if(dt&&dt!==ft($e))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Gn{constructor(Te,be,$e){this.segmentGroup=Te,this.processChildren=be,this.index=$e}}function Fa(Ye,Te,be){if(Ye||(Ye=new Y([],{})),0===Ye.segments.length&&Ye.hasChildren())return xr(Ye,Te,be);const $e=function hs(Ye,Te,be){let $e=0,dt=Te;const Ot={match:!1,pathIndex:0,commandIndex:0};for(;dt<Ye.segments.length;){if($e>=be.length)return Ot;const qt=Ye.segments[dt],ii=be[$e];if(wi(ii))break;const Ei=`${ii}`,an=$e<be.length-1?be[$e+1]:null;if(dt>0&&void 0===Ei)break;if(Ei&&an&&"object"==typeof an&&void 0===an.outlets){if(!Ir(Ei,an,qt))return Ot;$e+=2}else{if(!Ir(Ei,{},qt))return Ot;$e++}dt++}return{match:!0,pathIndex:dt,commandIndex:$e}}(Ye,Te,be),dt=be.slice($e.commandIndex);if($e.match&&$e.pathIndex<Ye.segments.length){const Ot=new Y(Ye.segments.slice(0,$e.pathIndex),{});return Ot.children[Ne]=new Y(Ye.segments.slice($e.pathIndex),Ye.children),xr(Ot,0,dt)}return $e.match&&0===dt.length?new Y(Ye.segments,{}):$e.match&&!Ye.hasChildren()?ur(Ye,Te,be):$e.match?xr(Ye,0,dt):ur(Ye,Te,be)}function xr(Ye,Te,be){if(0===be.length)return new Y(Ye.segments,{});{const $e=function Ma(Ye){return wi(Ye[0])?Ye[0].outlets:{[Ne]:Ye}}(be),dt={};return rt($e,(Ot,qt)=>{"string"==typeof Ot&&(Ot=[Ot]),null!==Ot&&(dt[qt]=Fa(Ye.children[qt],Te,Ot))}),rt(Ye.children,(Ot,qt)=>{void 0===$e[qt]&&(dt[qt]=Ot)}),new Y(Ye.segments,dt)}}function ur(Ye,Te,be){const $e=Ye.segments.slice(0,Te);let dt=0;for(;dt<be.length;){const Ot=be[dt];if(wi(Ot)){const Ei=pa(Ot.outlets);return new Y($e,Ei)}if(0===dt&&dr(be[0])){$e.push(new me(Ye.segments[Te].path,ma(be[0]))),dt++;continue}const qt=wi(Ot)?Ot.outlets[Ne]:`${Ot}`,ii=dt<be.length-1?be[dt+1]:null;qt&&ii&&dr(ii)?($e.push(new me(qt,ma(ii))),dt+=2):($e.push(new me(qt,{})),dt++)}return new Y($e,{})}function pa(Ye){const Te={};return rt(Ye,(be,$e)=>{"string"==typeof be&&(be=[be]),null!==be&&(Te[$e]=ur(new Y([],{}),0,be))}),Te}function ma(Ye){const Te={};return rt(Ye,(be,$e)=>Te[$e]=`${be}`),Te}function Ir(Ye,Te,be){return Ye==be.path&&Ue(Te,be.parameters)}class Ya{constructor(Te,be,$e,dt){this.routeReuseStrategy=Te,this.futureState=be,this.currState=$e,this.forwardEvent=dt}activate(Te){const be=this.futureState._root,$e=this.currState?this.currState._root:null;this.deactivateChildRoutes(be,$e,Te),Ci(this.futureState.root),this.activateChildRoutes(be,$e,Te)}deactivateChildRoutes(Te,be,$e){const dt=St(be);Te.children.forEach(Ot=>{const qt=Ot.value.outlet;this.deactivateRoutes(Ot,dt[qt],$e),delete dt[qt]}),rt(dt,(Ot,qt)=>{this.deactivateRouteAndItsChildren(Ot,$e)})}deactivateRoutes(Te,be,$e){const dt=Te.value,Ot=be?be.value:null;if(dt===Ot)if(dt.component){const qt=$e.getContext(dt.outlet);qt&&this.deactivateChildRoutes(Te,be,qt.children)}else this.deactivateChildRoutes(Te,be,$e);else Ot&&this.deactivateRouteAndItsChildren(be,$e)}deactivateRouteAndItsChildren(Te,be){Te.value.component&&this.routeReuseStrategy.shouldDetach(Te.value.snapshot)?this.detachAndStoreRouteSubtree(Te,be):this.deactivateRouteAndOutlet(Te,be)}detachAndStoreRouteSubtree(Te,be){const $e=be.getContext(Te.value.outlet),dt=$e&&Te.value.component?$e.children:be,Ot=St(Te);for(const qt of Object.keys(Ot))this.deactivateRouteAndItsChildren(Ot[qt],dt);if($e&&$e.outlet){const qt=$e.outlet.detach(),ii=$e.children.onOutletDeactivated();this.routeReuseStrategy.store(Te.value.snapshot,{componentRef:qt,route:Te,contexts:ii})}}deactivateRouteAndOutlet(Te,be){const $e=be.getContext(Te.value.outlet),dt=$e&&Te.value.component?$e.children:be,Ot=St(Te);for(const qt of Object.keys(Ot))this.deactivateRouteAndItsChildren(Ot[qt],dt);$e&&$e.outlet&&($e.outlet.deactivate(),$e.children.onOutletDeactivated(),$e.attachRef=null,$e.resolver=null,$e.route=null)}activateChildRoutes(Te,be,$e){const dt=St(be);Te.children.forEach(Ot=>{this.activateRoutes(Ot,dt[Ot.value.outlet],$e),this.forwardEvent(new vt(Ot.value.snapshot))}),Te.children.length&&this.forwardEvent(new z(Te.value.snapshot))}activateRoutes(Te,be,$e){const dt=Te.value,Ot=be?be.value:null;if(Ci(dt),dt===Ot)if(dt.component){const qt=$e.getOrCreateContext(dt.outlet);this.activateChildRoutes(Te,be,qt.children)}else this.activateChildRoutes(Te,be,$e);else if(dt.component){const qt=$e.getOrCreateContext(dt.outlet);if(this.routeReuseStrategy.shouldAttach(dt.snapshot)){const ii=this.routeReuseStrategy.retrieve(dt.snapshot);this.routeReuseStrategy.store(dt.snapshot,null),qt.children.onOutletReAttached(ii.contexts),qt.attachRef=ii.componentRef,qt.route=ii.route.value,qt.outlet&&qt.outlet.attach(ii.componentRef,ii.route.value),Ci(ii.route.value),this.activateChildRoutes(Te,null,qt.children)}else{const ii=function Zr(Ye){for(let Te=Ye.parent;Te;Te=Te.parent){const be=Te.routeConfig;if(be&&be._loadedConfig)return be._loadedConfig;if(be&&be.component)return null}return null}(dt.snapshot),Ei=ii?ii.module.componentFactoryResolver:null;qt.attachRef=null,qt.route=dt,qt.resolver=Ei,qt.outlet&&qt.outlet.activateWith(dt,Ei),this.activateChildRoutes(Te,null,qt.children)}}else this.activateChildRoutes(Te,null,$e)}}class kr{constructor(Te,be){this.routes=Te,this.module=be}}function Kn(Ye){return"function"==typeof Ye}function Qn(Ye){return Ye instanceof Ee}const la=Symbol("INITIAL_VALUE");function Jr(){return(0,de.w)(Ye=>(0,A.a)(Ye.map(Te=>Te.pipe((0,oe.q)(1),(0,ae.O)(la)))).pipe((0,b.R)((Te,be)=>{let $e=!1;return be.reduce((dt,Ot,qt)=>dt!==la?dt:(Ot===la&&($e=!0),$e||!1!==Ot&&qt!==be.length-1&&!Qn(Ot)?dt:Ot),Te)},la),(0,j.h)(Te=>Te!==la),(0,re.U)(Te=>Qn(Te)?Te:!0===Te),(0,oe.q)(1)))}class ga{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new $n,this.attachRef=null}}class $n{constructor(){this.contexts=new Map}onChildOutletCreated(Te,be){const $e=this.getOrCreateContext(Te);$e.outlet=be,this.contexts.set(Te,$e)}onChildOutletDestroyed(Te){const be=this.getContext(Te);be&&(be.outlet=null,be.attachRef=null)}onOutletDeactivated(){const Te=this.contexts;return this.contexts=new Map,Te}onOutletReAttached(Te){this.contexts=Te}getOrCreateContext(Te){let be=this.getContext(Te);return be||(be=new ga,this.contexts.set(Te,be)),be}getContext(Te){return this.contexts.get(Te)||null}}let wa=(()=>{class Ye{constructor(be,$e,dt,Ot,qt){this.parentContexts=be,this.location=$e,this.resolver=dt,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=Ot||Ne,be.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const be=this.parentContexts.getContext(this.name);be&&be.route&&(be.attachRef?this.attach(be.attachRef,be.route):this.activateWith(be.route,be.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 be=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(be.instance),be}attach(be,$e){this.activated=be,this._activatedRoute=$e,this.location.insert(be.hostView),this.attachEvents.emit(be.instance)}deactivate(){if(this.activated){const be=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(be)}}activateWith(be,$e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=be;const qt=($e=$e||this.resolver).resolveComponentFactory(be._futureSnapshot.routeConfig.component),ii=this.parentContexts.getOrCreateContext(this.name).children,Ei=new Nr(be,ii,this.location.injector);this.activated=this.location.createComponent(qt,this.location.length,Ei),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return Ye.\u0275fac=function(be){return new(be||Ye)(e.Y36($n),e.Y36(e.s_b),e.Y36(e._Vd),e.$8M("name"),e.Y36(e.sBO))},Ye.\u0275dir=e.lG2({type:Ye,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),Ye})();class Nr{constructor(Te,be,$e){this.route=Te,this.childContexts=be,this.parent=$e}get(Te,be){return Te===Si?this.route:Te===$n?this.childContexts:this.parent.get(Te,be)}}let ca=(()=>{class Ye{}return Ye.\u0275fac=function(be){return new(be||Ye)},Ye.\u0275cmp=e.Xpm({type:Ye,selectors:[["ng-component"]],decls:1,vars:0,template:function(be,$e){1&be&&e._UZ(0,"router-outlet")},directives:[wa],encapsulation:2}),Ye})();function Aa(Ye,Te=""){for(let be=0;be<Ye.length;be++){const $e=Ye[be];Vr($e,ha(Te,$e))}}function Vr(Ye,Te){Ye.children&&Aa(Ye.children,Te)}function ha(Ye,Te){return Te?Ye||Te.path?Ye&&!Te.path?`${Ye}/`:!Ye&&Te.path?Te.path:`${Ye}/${Te.path}`:"":Ye}function pr(Ye){const Te=Ye.children&&Ye.children.map(pr),be=Te?Object.assign(Object.assign({},Ye),{children:Te}):Object.assign({},Ye);return!be.component&&(Te||be.loadChildren)&&be.outlet&&be.outlet!==Ne&&(be.component=ca),be}function Sr(Ye){return Ye.outlet||Ne}function is(Ye,Te){const be=Ye.filter($e=>Sr($e)===Te);return be.push(...Ye.filter($e=>Sr($e)!==Te)),be}const Oa={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function ra(Ye,Te,be){var $e;if(""===Te.path)return"full"===Te.pathMatch&&(Ye.hasChildren()||be.length>0)?Object.assign({},Oa):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const Ot=(Te.matcher||le)(be,Ye,Te);if(!Ot)return Object.assign({},Oa);const qt={};rt(Ot.posParams,(Ei,an)=>{qt[an]=Ei.path});const ii=Ot.consumed.length>0?Object.assign(Object.assign({},qt),Ot.consumed[Ot.consumed.length-1].parameters):qt;return{matched:!0,consumedSegments:Ot.consumed,lastChild:Ot.consumed.length,parameters:ii,positionalParamSegments:null!==($e=Ot.posParams)&&void 0!==$e?$e:{}}}function Gr(Ye,Te,be,$e,dt="corrected"){if(be.length>0&&function ns(Ye,Te,be){return be.some($e=>Xe(Ye,Te,$e)&&Sr($e)!==Ne)}(Ye,be,$e)){const qt=new Y(Te,function Zn(Ye,Te,be,$e){const dt={};dt[Ne]=$e,$e._sourceSegment=Ye,$e._segmentIndexShift=Te.length;for(const Ot of be)if(""===Ot.path&&Sr(Ot)!==Ne){const qt=new Y([],{});qt._sourceSegment=Ye,qt._segmentIndexShift=Te.length,dt[Sr(Ot)]=qt}return dt}(Ye,Te,$e,new Y(be,Ye.children)));return qt._sourceSegment=Ye,qt._segmentIndexShift=Te.length,{segmentGroup:qt,slicedSegments:[]}}if(0===be.length&&function ja(Ye,Te,be){return be.some($e=>Xe(Ye,Te,$e))}(Ye,be,$e)){const qt=new Y(Ye.segments,function Ha(Ye,Te,be,$e,dt,Ot){const qt={};for(const ii of $e)if(Xe(Ye,be,ii)&&!dt[Sr(ii)]){const Ei=new Y([],{});Ei._sourceSegment=Ye,Ei._segmentIndexShift="legacy"===Ot?Ye.segments.length:Te.length,qt[Sr(ii)]=Ei}return Object.assign(Object.assign({},dt),qt)}(Ye,Te,be,$e,Ye.children,dt));return qt._sourceSegment=Ye,qt._segmentIndexShift=Te.length,{segmentGroup:qt,slicedSegments:be}}const Ot=new Y(Ye.segments,Ye.children);return Ot._sourceSegment=Ye,Ot._segmentIndexShift=Te.length,{segmentGroup:Ot,slicedSegments:be}}function Xe(Ye,Te,be){return(!(Ye.hasChildren()||Te.length>0)||"full"!==be.pathMatch)&&""===be.path}function ge(Ye,Te,be,$e){return!!(Sr(Ye)===$e||$e!==Ne&&Xe(Te,be,Ye))&&("**"===Ye.path||ra(Te,Ye,be).matched)}function J(Ye,Te,be){return 0===Te.length&&!Ye.children[be]}class ne{constructor(Te){this.segmentGroup=Te||null}}class Qe{constructor(Te){this.urlTree=Te}}function Wt(Ye){return new t.y(Te=>Te.error(new ne(Ye)))}function mi(Ye){return new t.y(Te=>Te.error(new Qe(Ye)))}function Ct(Ye){return new t.y(Te=>Te.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${Ye}'`)))}class Yt{constructor(Te,be,$e,dt,Ot){this.configLoader=be,this.urlSerializer=$e,this.urlTree=dt,this.config=Ot,this.allowRedirects=!0,this.ngModule=Te.get(e.h0i)}apply(){const Te=Gr(this.urlTree.root,[],[],this.config).segmentGroup,be=new Y(Te.segments,Te.children);return this.expandSegmentGroup(this.ngModule,this.config,be,Ne).pipe((0,re.U)(Ot=>this.createUrlTree(Bi(Ot),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,i.K)(Ot=>{if(Ot instanceof Qe)return this.allowRedirects=!1,this.match(Ot.urlTree);throw Ot instanceof ne?this.noMatchError(Ot):Ot}))}match(Te){return this.expandSegmentGroup(this.ngModule,this.config,Te.root,Ne).pipe((0,re.U)(dt=>this.createUrlTree(Bi(dt),Te.queryParams,Te.fragment))).pipe((0,i.K)(dt=>{throw dt instanceof ne?this.noMatchError(dt):dt}))}noMatchError(Te){return new Error(`Cannot match any routes. URL Segment: '${Te.segmentGroup}'`)}createUrlTree(Te,be,$e){const dt=Te.segments.length>0?new Y([],{[Ne]:Te}):Te;return new Ee(dt,be,$e)}expandSegmentGroup(Te,be,$e,dt){return 0===$e.segments.length&&$e.hasChildren()?this.expandChildren(Te,be,$e).pipe((0,re.U)(Ot=>new Y([],Ot))):this.expandSegment(Te,$e,be,$e.segments,dt,!0)}expandChildren(Te,be,$e){const dt=[];for(const Ot of Object.keys($e.children))"primary"===Ot?dt.unshift(Ot):dt.push(Ot);return(0,N.D)(dt).pipe((0,a.b)(Ot=>{const qt=$e.children[Ot],ii=is(be,Ot);return this.expandSegmentGroup(Te,ii,qt,Ot).pipe((0,re.U)(Ei=>({segment:Ei,outlet:Ot})))}),(0,b.R)((Ot,qt)=>(Ot[qt.outlet]=qt.segment,Ot),{}),function ce(Ye,Te){const be=arguments.length>=2;return $e=>$e.pipe(Ye?(0,j.h)((dt,Ot)=>Ye(dt,Ot,$e)):_e.y,W(1),be?(0,ee.d)(Te):(0,ie.T)(()=>new O.K))}())}expandSegment(Te,be,$e,dt,Ot,qt){return(0,N.D)($e).pipe((0,a.b)(ii=>this.expandSegmentAgainstRoute(Te,be,$e,ii,dt,Ot,qt).pipe((0,i.K)(an=>{if(an instanceof ne)return(0,s.of)(null);throw an}))),(0,p.P)(ii=>!!ii),(0,i.K)((ii,Ei)=>{if(ii instanceof O.K||"EmptyError"===ii.name){if(J(be,dt,Ot))return(0,s.of)(new Y([],{}));throw new ne(be)}throw ii}))}expandSegmentAgainstRoute(Te,be,$e,dt,Ot,qt,ii){return ge(dt,be,Ot,qt)?void 0===dt.redirectTo?this.matchSegmentAgainstRoute(Te,be,dt,Ot,qt):ii&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(Te,be,$e,dt,Ot,qt):Wt(be):Wt(be)}expandSegmentAgainstRouteUsingRedirect(Te,be,$e,dt,Ot,qt){return"**"===dt.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(Te,$e,dt,qt):this.expandRegularSegmentAgainstRouteUsingRedirect(Te,be,$e,dt,Ot,qt)}expandWildCardWithParamsAgainstRouteUsingRedirect(Te,be,$e,dt){const Ot=this.applyRedirectCommands([],$e.redirectTo,{});return $e.redirectTo.startsWith("/")?mi(Ot):this.lineralizeSegments($e,Ot).pipe((0,u.z)(qt=>{const ii=new Y(qt,{});return this.expandSegment(Te,ii,be,qt,dt,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(Te,be,$e,dt,Ot,qt){const{matched:ii,consumedSegments:Ei,lastChild:an,positionalParamSegments:Wn}=ra(be,dt,Ot);if(!ii)return Wt(be);const xn=this.applyRedirectCommands(Ei,dt.redirectTo,Wn);return dt.redirectTo.startsWith("/")?mi(xn):this.lineralizeSegments(dt,xn).pipe((0,u.z)(er=>this.expandSegment(Te,be,$e,er.concat(Ot.slice(an)),qt,!1)))}matchSegmentAgainstRoute(Te,be,$e,dt,Ot){if("**"===$e.path)return $e.loadChildren?($e._loadedConfig?(0,s.of)($e._loadedConfig):this.configLoader.load(Te.injector,$e)).pipe((0,re.U)(er=>($e._loadedConfig=er,new Y(dt,{})))):(0,s.of)(new Y(dt,{}));const{matched:qt,consumedSegments:ii,lastChild:Ei}=ra(be,$e,dt);if(!qt)return Wt(be);const an=dt.slice(Ei);return this.getChildConfig(Te,$e,dt).pipe((0,u.z)(xn=>{const er=xn.module,ar=xn.routes,{segmentGroup:ao,slicedSegments:ea}=Gr(be,ii,an,ar),ys=new Y(ao.segments,ao.children);if(0===ea.length&&ys.hasChildren())return this.expandChildren(er,ar,ys).pipe((0,re.U)(Ea=>new Y(ii,Ea)));if(0===ar.length&&0===ea.length)return(0,s.of)(new Y(ii,{}));const fs=Sr($e)===Ot;return this.expandSegment(er,ys,ar,ea,fs?Ne:Ot,!0).pipe((0,re.U)(bs=>new Y(ii.concat(bs.segments),bs.children)))}))}getChildConfig(Te,be,$e){return be.children?(0,s.of)(new kr(be.children,Te)):be.loadChildren?void 0!==be._loadedConfig?(0,s.of)(be._loadedConfig):this.runCanLoadGuards(Te.injector,be,$e).pipe((0,u.z)(dt=>dt?this.configLoader.load(Te.injector,be).pipe((0,re.U)(Ot=>(be._loadedConfig=Ot,Ot))):function ti(Ye){return new t.y(Te=>Te.error(q(`Cannot load children because the guard of the route "path: '${Ye.path}'" returned false`)))}(be))):(0,s.of)(new kr([],Te))}runCanLoadGuards(Te,be,$e){const dt=be.canLoad;if(!dt||0===dt.length)return(0,s.of)(!0);const Ot=dt.map(qt=>{const ii=Te.get(qt);let Ei;if(function Tr(Ye){return Ye&&Kn(Ye.canLoad)}(ii))Ei=ii.canLoad(be,$e);else{if(!Kn(ii))throw new Error("Invalid CanLoad guard");Ei=ii(be,$e)}return Mt(Ei)});return(0,s.of)(Ot).pipe(Jr(),(0,_.b)(qt=>{if(!Qn(qt))return;const ii=q(`Redirecting to "${this.urlSerializer.serialize(qt)}"`);throw ii.url=qt,ii}),(0,re.U)(qt=>!0===qt))}lineralizeSegments(Te,be){let $e=[],dt=be.root;for(;;){if($e=$e.concat(dt.segments),0===dt.numberOfChildren)return(0,s.of)($e);if(dt.numberOfChildren>1||!dt.children[Ne])return Ct(Te.redirectTo);dt=dt.children[Ne]}}applyRedirectCommands(Te,be,$e){return this.applyRedirectCreatreUrlTree(be,this.urlSerializer.parse(be),Te,$e)}applyRedirectCreatreUrlTree(Te,be,$e,dt){const Ot=this.createSegmentGroup(Te,be.root,$e,dt);return new Ee(Ot,this.createQueryParams(be.queryParams,this.urlTree.queryParams),be.fragment)}createQueryParams(Te,be){const $e={};return rt(Te,(dt,Ot)=>{if("string"==typeof dt&&dt.startsWith(":")){const ii=dt.substring(1);$e[Ot]=be[ii]}else $e[Ot]=dt}),$e}createSegmentGroup(Te,be,$e,dt){const Ot=this.createSegments(Te,be.segments,$e,dt);let qt={};return rt(be.children,(ii,Ei)=>{qt[Ei]=this.createSegmentGroup(Te,ii,$e,dt)}),new Y(Ot,qt)}createSegments(Te,be,$e,dt){return be.map(Ot=>Ot.path.startsWith(":")?this.findPosParam(Te,Ot,dt):this.findOrReturn(Ot,$e))}findPosParam(Te,be,$e){const dt=$e[be.path.substring(1)];if(!dt)throw new Error(`Cannot redirect to '${Te}'. Cannot find '${be.path}'.`);return dt}findOrReturn(Te,be){let $e=0;for(const dt of be){if(dt.path===Te.path)return be.splice($e),dt;$e++}return Te}}function Bi(Ye){const Te={};for(const $e of Object.keys(Ye.children)){const Ot=Bi(Ye.children[$e]);(Ot.segments.length>0||Ot.hasChildren())&&(Te[$e]=Ot)}return function xi(Ye){if(1===Ye.numberOfChildren&&Ye.children[Ne]){const Te=Ye.children[Ne];return new Y(Ye.segments.concat(Te.segments),Te.children)}return Ye}(new Y(Ye.segments,Te))}class An{constructor(Te){this.path=Te,this.route=this.path[this.path.length-1]}}class Wi{constructor(Te,be){this.component=Te,this.route=be}}function Cr(Ye,Te,be){const $e=Ye._root;return Mr($e,Te?Te._root:null,be,[$e.value])}function Rn(Ye,Te,be){const $e=function _a(Ye){if(!Ye)return null;for(let Te=Ye.parent;Te;Te=Te.parent){const be=Te.routeConfig;if(be&&be._loadedConfig)return be._loadedConfig}return null}(Te);return($e?$e.module.injector:be).get(Ye)}function Mr(Ye,Te,be,$e,dt={canDeactivateChecks:[],canActivateChecks:[]}){const Ot=St(Te);return Ye.children.forEach(qt=>{(function ds(Ye,Te,be,$e,dt={canDeactivateChecks:[],canActivateChecks:[]}){const Ot=Ye.value,qt=Te?Te.value:null,ii=be?be.getContext(Ye.value.outlet):null;if(qt&&Ot.routeConfig===qt.routeConfig){const Ei=function vs(Ye,Te,be){if("function"==typeof be)return be(Ye,Te);switch(be){case"pathParamsChange":return!et(Ye.url,Te.url);case"pathParamsOrQueryParamsChange":return!et(Ye.url,Te.url)||!Ue(Ye.queryParams,Te.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Yi(Ye,Te)||!Ue(Ye.queryParams,Te.queryParams);default:return!Yi(Ye,Te)}}(qt,Ot,Ot.routeConfig.runGuardsAndResolvers);Ei?dt.canActivateChecks.push(new An($e)):(Ot.data=qt.data,Ot._resolvedData=qt._resolvedData),Mr(Ye,Te,Ot.component?ii?ii.children:null:be,$e,dt),Ei&&ii&&ii.outlet&&ii.outlet.isActivated&&dt.canDeactivateChecks.push(new Wi(ii.outlet.component,qt))}else qt&&ki(Te,ii,dt),dt.canActivateChecks.push(new An($e)),Mr(Ye,null,Ot.component?ii?ii.children:null:be,$e,dt)})(qt,Ot[qt.value.outlet],be,$e.concat([qt.value]),dt),delete Ot[qt.value.outlet]}),rt(Ot,(qt,ii)=>ki(qt,be.getContext(ii),dt)),dt}function ki(Ye,Te,be){const $e=St(Ye),dt=Ye.value;rt($e,(Ot,qt)=>{ki(Ot,dt.component?Te?Te.children.getContext(qt):null:Te,be)}),be.canDeactivateChecks.push(new Wi(dt.component&&Te&&Te.outlet&&Te.outlet.isActivated?Te.outlet.component:null,dt))}class je{}function wt(Ye){return new t.y(Te=>Te.error(Ye))}class Qt{constructor(Te,be,$e,dt,Ot,qt){this.rootComponentType=Te,this.config=be,this.urlTree=$e,this.url=dt,this.paramsInheritanceStrategy=Ot,this.relativeLinkResolution=qt}recognize(){const Te=Gr(this.urlTree.root,[],[],this.config.filter(qt=>void 0===qt.redirectTo),this.relativeLinkResolution).segmentGroup,be=this.processSegmentGroup(this.config,Te,Ne);if(null===be)return null;const $e=new Kt([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Ne,this.rootComponentType,null,this.urlTree.root,-1,{}),dt=new Je($e,be),Ot=new gt(this.url,dt);return this.inheritParamsAndData(Ot._root),Ot}inheritParamsAndData(Te){const be=Te.value,$e=qi(be,this.paramsInheritanceStrategy);be.params=Object.freeze($e.params),be.data=Object.freeze($e.data),Te.children.forEach(dt=>this.inheritParamsAndData(dt))}processSegmentGroup(Te,be,$e){return 0===be.segments.length&&be.hasChildren()?this.processChildren(Te,be):this.processSegment(Te,be,be.segments,$e)}processChildren(Te,be){const $e=[];for(const Ot of Object.keys(be.children)){const qt=be.children[Ot],ii=is(Te,Ot),Ei=this.processSegmentGroup(ii,qt,Ot);if(null===Ei)return null;$e.push(...Ei)}const dt=Zi($e);return function Xt(Ye){Ye.sort((Te,be)=>Te.value.outlet===Ne?-1:be.value.outlet===Ne?1:Te.value.outlet.localeCompare(be.value.outlet))}(dt),dt}processSegment(Te,be,$e,dt){for(const Ot of Te){const qt=this.processSegmentAgainstRoute(Ot,be,$e,dt);if(null!==qt)return qt}return J(be,$e,dt)?[]:null}processSegmentAgainstRoute(Te,be,$e,dt){if(Te.redirectTo||!ge(Te,be,$e,dt))return null;let Ot,qt=[],ii=[];if("**"===Te.path){const ar=$e.length>0?ft($e).parameters:{};Ot=new Kt($e,ar,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,tt(Te),Sr(Te),Te.component,Te,Mn(be),On(be)+$e.length,Et(Te))}else{const ar=ra(be,Te,$e);if(!ar.matched)return null;qt=ar.consumedSegments,ii=$e.slice(ar.lastChild),Ot=new Kt(qt,ar.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,tt(Te),Sr(Te),Te.component,Te,Mn(be),On(be)+qt.length,Et(Te))}const Ei=function pi(Ye){return Ye.children?Ye.children:Ye.loadChildren?Ye._loadedConfig.routes:[]}(Te),{segmentGroup:an,slicedSegments:Wn}=Gr(be,qt,ii,Ei.filter(ar=>void 0===ar.redirectTo),this.relativeLinkResolution);if(0===Wn.length&&an.hasChildren()){const ar=this.processChildren(Ei,an);return null===ar?null:[new Je(Ot,ar)]}if(0===Ei.length&&0===Wn.length)return[new Je(Ot,[])];const xn=Sr(Te)===dt,er=this.processSegment(Ei,an,Wn,xn?Ne:dt);return null===er?null:[new Je(Ot,er)]}}function Ti(Ye){const Te=Ye.value.routeConfig;return Te&&""===Te.path&&void 0===Te.redirectTo}function Zi(Ye){const Te=[],be=new Set;for(const $e of Ye){if(!Ti($e)){Te.push($e);continue}const dt=Te.find(Ot=>$e.value.routeConfig===Ot.value.routeConfig);void 0!==dt?(dt.children.push(...$e.children),be.add(dt)):Te.push($e)}for(const $e of be){const dt=Zi($e.children);Te.push(new Je($e.value,dt))}return Te.filter($e=>!be.has($e))}function Mn(Ye){let Te=Ye;for(;Te._sourceSegment;)Te=Te._sourceSegment;return Te}function On(Ye){let Te=Ye,be=Te._segmentIndexShift?Te._segmentIndexShift:0;for(;Te._sourceSegment;)Te=Te._sourceSegment,be+=Te._segmentIndexShift?Te._segmentIndexShift:0;return be-1}function tt(Ye){return Ye.data||{}}function Et(Ye){return Ye.resolve||{}}function Ai(Ye){return(0,de.w)(Te=>{const be=Ye(Te);return be?(0,N.D)(be).pipe((0,re.U)(()=>Te)):(0,s.of)(Te)})}class gn extends class un{shouldDetach(Te){return!1}store(Te,be){}shouldAttach(Te){return!1}retrieve(Te){return null}shouldReuseRoute(Te,be){return Te.routeConfig===be.routeConfig}}{}const En=new e.OlP("ROUTES");class zn{constructor(Te,be,$e,dt){this.injector=Te,this.compiler=be,this.onLoadStartListener=$e,this.onLoadEndListener=dt}load(Te,be){if(be._loader$)return be._loader$;this.onLoadStartListener&&this.onLoadStartListener(be);const dt=this.loadModuleFactory(be.loadChildren).pipe((0,re.U)(Ot=>{this.onLoadEndListener&&this.onLoadEndListener(be);const qt=Ot.create(Te);return new kr(nt(qt.injector.get(En,void 0,e.XFs.Self|e.XFs.Optional)).map(pr),qt)}),(0,i.K)(Ot=>{throw be._loader$=void 0,Ot}));return be._loader$=new l(dt,()=>new Z.x).pipe(M()),be._loader$}loadModuleFactory(Te){return Mt(Te()).pipe((0,u.z)(be=>be instanceof e.YKP?(0,s.of)(be):(0,N.D)(this.compiler.compileModuleAsync(be))))}}class Fr{shouldProcessUrl(Te){return!0}extract(Te){return Te}merge(Te,be){return Te}}function wr(Ye){throw Ye}function Vn(Ye,Te,be){return Te.parse("/")}function mr(Ye,Te){return(0,s.of)(null)}const Hi={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},on={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let nn=(()=>{class Ye{constructor(be,$e,dt,Ot,qt,ii,Ei){this.rootComponentType=be,this.urlSerializer=$e,this.rootContexts=dt,this.location=Ot,this.config=Ei,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Z.x,this.errorHandler=wr,this.malformedUriErrorHandler=Vn,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:mr,afterPreactivation:mr},this.urlHandlingStrategy=new Fr,this.routeReuseStrategy=new gn,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 xn=qt.get(e.R0b);this.isNgZoneEnabled=xn instanceof e.R0b&&e.R0b.isInAngularZone(),this.resetConfig(Ei),this.currentUrlTree=function Zt(){return new Ee(new Y([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new zn(qt,ii,er=>this.triggerEvent(new K(er)),er=>this.triggerEvent(new Me(er))),this.routerState=yi(this.currentUrlTree,this.rootComponentType),this.transitions=new D.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 be;return null===(be=this.location.getState())||void 0===be?void 0:be.\u0275routerPageId}setupNavigations(be){const $e=this.events;return be.pipe((0,j.h)(dt=>0!==dt.id),(0,re.U)(dt=>Object.assign(Object.assign({},dt),{extractedUrl:this.urlHandlingStrategy.extract(dt.rawUrl)})),(0,de.w)(dt=>{let Ot=!1,qt=!1;return(0,s.of)(dt).pipe((0,_.b)(ii=>{this.currentNavigation={id:ii.id,initialUrl:ii.currentRawUrl,extractedUrl:ii.extractedUrl,trigger:ii.source,extras:ii.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,de.w)(ii=>{const Ei=this.browserUrlTree.toString(),an=!this.navigated||ii.extractedUrl.toString()!==Ei||Ei!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||an)&&this.urlHandlingStrategy.shouldProcessUrl(ii.rawUrl))return jn(ii.source)&&(this.browserUrlTree=ii.extractedUrl),(0,s.of)(ii).pipe((0,de.w)(xn=>{const er=this.transitions.getValue();return $e.next(new v(xn.id,this.serializeUrl(xn.extractedUrl),xn.source,xn.restoredState)),er!==this.transitions.getValue()?w.E:Promise.resolve(xn)}),function yn(Ye,Te,be,$e){return(0,de.w)(dt=>function bt(Ye,Te,be,$e,dt){return new Yt(Ye,Te,be,$e,dt).apply()}(Ye,Te,be,dt.extractedUrl,$e).pipe((0,re.U)(Ot=>Object.assign(Object.assign({},dt),{urlAfterRedirects:Ot}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,_.b)(xn=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:xn.urlAfterRedirects})}),function It(Ye,Te,be,$e,dt){return(0,u.z)(Ot=>function kt(Ye,Te,be,$e,dt="emptyOnly",Ot="legacy"){try{const qt=new Qt(Ye,Te,be,$e,dt,Ot).recognize();return null===qt?wt(new je):(0,s.of)(qt)}catch(qt){return wt(qt)}}(Ye,Te,Ot.urlAfterRedirects,be(Ot.urlAfterRedirects),$e,dt).pipe((0,re.U)(qt=>Object.assign(Object.assign({},Ot),{targetSnapshot:qt}))))}(this.rootComponentType,this.config,xn=>this.serializeUrl(xn),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,_.b)(xn=>{if("eager"===this.urlUpdateStrategy){if(!xn.extras.skipLocationChange){const ar=this.urlHandlingStrategy.merge(xn.urlAfterRedirects,xn.rawUrl);this.setBrowserUrl(ar,xn)}this.browserUrlTree=xn.urlAfterRedirects}const er=new ye(xn.id,this.serializeUrl(xn.extractedUrl),this.serializeUrl(xn.urlAfterRedirects),xn.targetSnapshot);$e.next(er)}));if(an&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:er,extractedUrl:ar,source:ao,restoredState:ea,extras:ys}=ii,fs=new v(er,this.serializeUrl(ar),ao,ea);$e.next(fs);const Ps=yi(ar,this.rootComponentType).snapshot;return(0,s.of)(Object.assign(Object.assign({},ii),{targetSnapshot:Ps,urlAfterRedirects:ar,extras:Object.assign(Object.assign({},ys),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=ii.rawUrl,ii.resolve(null),w.E}),Ai(ii=>{const{targetSnapshot:Ei,id:an,extractedUrl:Wn,rawUrl:xn,extras:{skipLocationChange:er,replaceUrl:ar}}=ii;return this.hooks.beforePreactivation(Ei,{navigationId:an,appliedUrlTree:Wn,rawUrlTree:xn,skipLocationChange:!!er,replaceUrl:!!ar})}),(0,_.b)(ii=>{const Ei=new Ce(ii.id,this.serializeUrl(ii.extractedUrl),this.serializeUrl(ii.urlAfterRedirects),ii.targetSnapshot);this.triggerEvent(Ei)}),(0,re.U)(ii=>Object.assign(Object.assign({},ii),{guards:Cr(ii.targetSnapshot,ii.currentSnapshot,this.rootContexts)})),function Nn(Ye,Te){return(0,u.z)(be=>{const{targetSnapshot:$e,currentSnapshot:dt,guards:{canActivateChecks:Ot,canDeactivateChecks:qt}}=be;return 0===qt.length&&0===Ot.length?(0,s.of)(Object.assign(Object.assign({},be),{guardsResult:!0})):function zs(Ye,Te,be,$e){return(0,N.D)(Ye).pipe((0,u.z)(dt=>function ue(Ye,Te,be,$e,dt){const Ot=Te&&Te.routeConfig?Te.routeConfig.canDeactivate:null;if(!Ot||0===Ot.length)return(0,s.of)(!0);const qt=Ot.map(ii=>{const Ei=Rn(ii,Te,dt);let an;if(function Pr(Ye){return Ye&&Kn(Ye.canDeactivate)}(Ei))an=Mt(Ei.canDeactivate(Ye,Te,be,$e));else{if(!Kn(Ei))throw new Error("Invalid CanDeactivate guard");an=Mt(Ei(Ye,Te,be,$e))}return an.pipe((0,p.P)())});return(0,s.of)(qt).pipe(Jr())}(dt.component,dt.route,be,Te,$e)),(0,p.P)(dt=>!0!==dt,!0))}(qt,$e,dt,Ye).pipe((0,u.z)(ii=>ii&&function vn(Ye){return"boolean"==typeof Ye}(ii)?function fr(Ye,Te,be,$e){return(0,N.D)(Te).pipe((0,a.b)(dt=>(0,E.z)(function rs(Ye,Te){return null!==Ye&&Te&&Te(new we(Ye)),(0,s.of)(!0)}(dt.route.parent,$e),function Us(Ye,Te){return null!==Ye&&Te&&Te(new Ge(Ye)),(0,s.of)(!0)}(dt.route,$e),function te(Ye,Te,be){const $e=Te[Te.length-1],Ot=Te.slice(0,Te.length-1).reverse().map(qt=>function Un(Ye){const Te=Ye.routeConfig?Ye.routeConfig.canActivateChild:null;return Te&&0!==Te.length?{node:Ye,guards:Te}:null}(qt)).filter(qt=>null!==qt).map(qt=>(0,P.P)(()=>{const ii=qt.guards.map(Ei=>{const an=Rn(Ei,qt.node,be);let Wn;if(function Wa(Ye){return Ye&&Kn(Ye.canActivateChild)}(an))Wn=Mt(an.canActivateChild($e,Ye));else{if(!Kn(an))throw new Error("Invalid CanActivateChild guard");Wn=Mt(an($e,Ye))}return Wn.pipe((0,p.P)())});return(0,s.of)(ii).pipe(Jr())}));return(0,s.of)(Ot).pipe(Jr())}(Ye,dt.path,be),function xt(Ye,Te,be){const $e=Te.routeConfig?Te.routeConfig.canActivate:null;if(!$e||0===$e.length)return(0,s.of)(!0);const dt=$e.map(Ot=>(0,P.P)(()=>{const qt=Rn(Ot,Te,be);let ii;if(function Ba(Ye){return Ye&&Kn(Ye.canActivate)}(qt))ii=Mt(qt.canActivate(Te,Ye));else{if(!Kn(qt))throw new Error("Invalid CanActivate guard");ii=Mt(qt(Te,Ye))}return ii.pipe((0,p.P)())}));return(0,s.of)(dt).pipe(Jr())}(Ye,dt.route,be))),(0,p.P)(dt=>!0!==dt,!0))}($e,Ot,Ye,Te):(0,s.of)(ii)),(0,re.U)(ii=>Object.assign(Object.assign({},be),{guardsResult:ii})))})}(this.ngModule.injector,ii=>this.triggerEvent(ii)),(0,_.b)(ii=>{if(Qn(ii.guardsResult)){const an=q(`Redirecting to "${this.serializeUrl(ii.guardsResult)}"`);throw an.url=ii.guardsResult,an}const Ei=new Be(ii.id,this.serializeUrl(ii.extractedUrl),this.serializeUrl(ii.urlAfterRedirects),ii.targetSnapshot,!!ii.guardsResult);this.triggerEvent(Ei)}),(0,j.h)(ii=>!!ii.guardsResult||(this.restoreHistory(ii),this.cancelNavigationTransition(ii,""),!1)),Ai(ii=>{if(ii.guards.canActivateChecks.length)return(0,s.of)(ii).pipe((0,_.b)(Ei=>{const an=new ze(Ei.id,this.serializeUrl(Ei.extractedUrl),this.serializeUrl(Ei.urlAfterRedirects),Ei.targetSnapshot);this.triggerEvent(an)}),(0,de.w)(Ei=>{let an=!1;return(0,s.of)(Ei).pipe(function zt(Ye,Te){return(0,u.z)(be=>{const{targetSnapshot:$e,guards:{canActivateChecks:dt}}=be;if(!dt.length)return(0,s.of)(be);let Ot=0;return(0,N.D)(dt).pipe((0,a.b)(qt=>function ri(Ye,Te,be,$e){return function vi(Ye,Te,be,$e){const dt=Object.keys(Ye);if(0===dt.length)return(0,s.of)({});const Ot={};return(0,N.D)(dt).pipe((0,u.z)(qt=>function Mi(Ye,Te,be,$e){const dt=Rn(Ye,Te,$e);return Mt(dt.resolve?dt.resolve(Te,be):dt(Te,be))}(Ye[qt],Te,be,$e).pipe((0,_.b)(ii=>{Ot[qt]=ii}))),W(1),(0,u.z)(()=>Object.keys(Ot).length===dt.length?(0,s.of)(Ot):w.E))}(Ye._resolve,Ye,Te,$e).pipe((0,re.U)(Ot=>(Ye._resolvedData=Ot,Ye.data=Object.assign(Object.assign({},Ye.data),qi(Ye,be).resolve),null)))}(qt.route,$e,Ye,Te)),(0,_.b)(()=>Ot++),W(1),(0,u.z)(qt=>Ot===dt.length?(0,s.of)(be):w.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,_.b)({next:()=>an=!0,complete:()=>{an||(this.restoreHistory(Ei),this.cancelNavigationTransition(Ei,"At least one route resolver didn't emit any value."))}}))}),(0,_.b)(Ei=>{const an=new Ie(Ei.id,this.serializeUrl(Ei.extractedUrl),this.serializeUrl(Ei.urlAfterRedirects),Ei.targetSnapshot);this.triggerEvent(an)}))}),Ai(ii=>{const{targetSnapshot:Ei,id:an,extractedUrl:Wn,rawUrl:xn,extras:{skipLocationChange:er,replaceUrl:ar}}=ii;return this.hooks.afterPreactivation(Ei,{navigationId:an,appliedUrlTree:Wn,rawUrlTree:xn,skipLocationChange:!!er,replaceUrl:!!ar})}),(0,re.U)(ii=>{const Ei=function $i(Ye,Te,be){const $e=Cn(Ye,Te._root,be?be._root:void 0);return new Pt($e,Te)}(this.routeReuseStrategy,ii.targetSnapshot,ii.currentRouterState);return Object.assign(Object.assign({},ii),{targetRouterState:Ei})}),(0,_.b)(ii=>{this.currentUrlTree=ii.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(ii.urlAfterRedirects,ii.rawUrl),this.routerState=ii.targetRouterState,"deferred"===this.urlUpdateStrategy&&(ii.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,ii),this.browserUrlTree=ii.urlAfterRedirects)}),((Ye,Te,be)=>(0,re.U)($e=>(new Ya(Te,$e.targetRouterState,$e.currentRouterState,be).activate(Ye),$e)))(this.rootContexts,this.routeReuseStrategy,ii=>this.triggerEvent(ii)),(0,_.b)({next(){Ot=!0},complete(){Ot=!0}}),(0,L.x)(()=>{var ii;Ot||qt||this.cancelNavigationTransition(dt,`Navigation ID ${dt.id} is not equal to the current navigation id ${this.navigationId}`),(null===(ii=this.currentNavigation)||void 0===ii?void 0:ii.id)===dt.id&&(this.currentNavigation=null)}),(0,i.K)(ii=>{if(qt=!0,function $(Ye){return Ye&&Ye[ke]}(ii)){const Ei=Qn(ii.url);Ei||(this.navigated=!0,this.restoreHistory(dt,!0));const an=new F(dt.id,this.serializeUrl(dt.extractedUrl),ii.message);$e.next(an),Ei?setTimeout(()=>{const Wn=this.urlHandlingStrategy.merge(ii.url,this.rawUrlTree),xn={skipLocationChange:dt.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||jn(dt.source)};this.scheduleNavigation(Wn,"imperative",null,xn,{resolve:dt.resolve,reject:dt.reject,promise:dt.promise})},0):dt.resolve(!1)}else{this.restoreHistory(dt,!0);const Ei=new U(dt.id,this.serializeUrl(dt.extractedUrl),ii);$e.next(Ei);try{dt.resolve(this.errorHandler(ii))}catch(an){dt.reject(an)}}return w.E}))}))}resetRootComponentType(be){this.rootComponentType=be,this.routerState.root.component=this.rootComponentType}setTransition(be){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),be))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(be=>{const $e="popstate"===be.type?"popstate":"hashchange";"popstate"===$e&&setTimeout(()=>{var dt;const Ot={replaceUrl:!0},qt=(null===(dt=be.state)||void 0===dt?void 0:dt.navigationId)?be.state:null;if(qt){const Ei=Object.assign({},qt);delete Ei.navigationId,delete Ei.\u0275routerPageId,0!==Object.keys(Ei).length&&(Ot.state=Ei)}const ii=this.parseUrl(be.url);this.scheduleNavigation(ii,$e,qt,Ot)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(be){this.events.next(be)}resetConfig(be){Aa(be),this.config=be.map(pr),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(be,$e={}){const{relativeTo:dt,queryParams:Ot,fragment:qt,queryParamsHandling:ii,preserveFragment:Ei}=$e,an=dt||this.routerState.root,Wn=Ei?this.currentUrlTree.fragment:qt;let xn=null;switch(ii){case"merge":xn=Object.assign(Object.assign({},this.currentUrlTree.queryParams),Ot);break;case"preserve":xn=this.currentUrlTree.queryParams;break;default:xn=Ot||null}return null!==xn&&(xn=this.removeEmptyProps(xn)),function Pn(Ye,Te,be,$e,dt){if(0===be.length)return Fi(Te.root,Te.root,Te,$e,dt);const Ot=function La(Ye){if("string"==typeof Ye[0]&&1===Ye.length&&"/"===Ye[0])return new Lr(!0,0,Ye);let Te=0,be=!1;const $e=Ye.reduce((dt,Ot,qt)=>{if("object"==typeof Ot&&null!=Ot){if(Ot.outlets){const ii={};return rt(Ot.outlets,(Ei,an)=>{ii[an]="string"==typeof Ei?Ei.split("/"):Ei}),[...dt,{outlets:ii}]}if(Ot.segmentPath)return[...dt,Ot.segmentPath]}return"string"!=typeof Ot?[...dt,Ot]:0===qt?(Ot.split("/").forEach((ii,Ei)=>{0==Ei&&"."===ii||(0==Ei&&""===ii?be=!0:".."===ii?Te++:""!=ii&&dt.push(ii))}),dt):[...dt,Ot]},[]);return new Lr(be,Te,$e)}(be);if(Ot.toRoot())return Fi(Te.root,new Y([],{}),Te,$e,dt);const qt=function Or(Ye,Te,be){if(Ye.isAbsolute)return new Gn(Te.root,!0,0);if(-1===be.snapshot._lastPathIndex){const Ot=be.snapshot._urlSegment;return new Gn(Ot,Ot===Te.root,0)}const $e=dr(Ye.commands[0])?0:1;return function Ra(Ye,Te,be){let $e=Ye,dt=Te,Ot=be;for(;Ot>dt;){if(Ot-=dt,$e=$e.parent,!$e)throw new Error("Invalid number of '../'");dt=$e.segments.length}return new Gn($e,!1,dt-Ot)}(be.snapshot._urlSegment,be.snapshot._lastPathIndex+$e,Ye.numberOfDoubleDots)}(Ot,Te,Ye),ii=qt.processChildren?xr(qt.segmentGroup,qt.index,Ot.commands):Fa(qt.segmentGroup,qt.index,Ot.commands);return Fi(qt.segmentGroup,ii,Te,$e,dt)}(an,this.currentUrlTree,be,xn,null!=Wn?Wn:null)}navigateByUrl(be,$e={skipLocationChange:!1}){const dt=Qn(be)?be:this.parseUrl(be),Ot=this.urlHandlingStrategy.merge(dt,this.rawUrlTree);return this.scheduleNavigation(Ot,"imperative",null,$e)}navigate(be,$e={skipLocationChange:!1}){return function kn(Ye){for(let Te=0;Te<Ye.length;Te++){const be=Ye[Te];if(null==be)throw new Error(`The requested path contains ${be} segment at index ${Te}`)}}(be),this.navigateByUrl(this.createUrlTree(be,$e),$e)}serializeUrl(be){return this.urlSerializer.serialize(be)}parseUrl(be){let $e;try{$e=this.urlSerializer.parse(be)}catch(dt){$e=this.malformedUriErrorHandler(dt,this.urlSerializer,be)}return $e}isActive(be,$e){let dt;if(dt=!0===$e?Object.assign({},Hi):!1===$e?Object.assign({},on):$e,Qn(be))return Ii(this.currentUrlTree,be,dt);const Ot=this.parseUrl(be);return Ii(this.currentUrlTree,Ot,dt)}removeEmptyProps(be){return Object.keys(be).reduce(($e,dt)=>{const Ot=be[dt];return null!=Ot&&($e[dt]=Ot),$e},{})}processNavigations(){this.navigations.subscribe(be=>{this.navigated=!0,this.lastSuccessfulId=be.id,this.currentPageId=be.targetPageId,this.events.next(new G(be.id,this.serializeUrl(be.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,be.resolve(!0)},be=>{this.console.warn(`Unhandled Navigation Error: ${be}`)})}scheduleNavigation(be,$e,dt,Ot,qt){var ii,Ei,an;if(this.disposed)return Promise.resolve(!1);const Wn=this.transitions.value,xn=jn($e)&&Wn&&!jn(Wn.source),er=Wn.rawUrl.toString()===be.toString(),ar=Wn.id===(null===(ii=this.currentNavigation)||void 0===ii?void 0:ii.id);if(xn&&er&&ar)return Promise.resolve(!0);let ea,ys,fs;qt?(ea=qt.resolve,ys=qt.reject,fs=qt.promise):fs=new Promise((Ea,Ol)=>{ea=Ea,ys=Ol});const Ps=++this.navigationId;let bs;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(dt=this.location.getState()),bs=dt&&dt.\u0275routerPageId?dt.\u0275routerPageId:Ot.replaceUrl||Ot.skipLocationChange?null!==(Ei=this.browserPageId)&&void 0!==Ei?Ei:0:(null!==(an=this.browserPageId)&&void 0!==an?an:0)+1):bs=0,this.setTransition({id:Ps,targetPageId:bs,source:$e,restoredState:dt,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:be,extras:Ot,resolve:ea,reject:ys,promise:fs,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),fs.catch(Ea=>Promise.reject(Ea))}setBrowserUrl(be,$e){const dt=this.urlSerializer.serialize(be),Ot=Object.assign(Object.assign({},$e.extras.state),this.generateNgRouterState($e.id,$e.targetPageId));this.location.isCurrentPathEqualTo(dt)||$e.extras.replaceUrl?this.location.replaceState(dt,"",Ot):this.location.go(dt,"",Ot)}restoreHistory(be,$e=!1){var dt,Ot;if("computed"===this.canceledNavigationResolution){const qt=this.currentPageId-be.targetPageId;"popstate"!==be.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(dt=this.currentNavigation)||void 0===dt?void 0:dt.finalUrl)||0===qt?this.currentUrlTree===(null===(Ot=this.currentNavigation)||void 0===Ot?void 0:Ot.finalUrl)&&0===qt&&(this.resetState(be),this.browserUrlTree=be.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(qt)}else"replace"===this.canceledNavigationResolution&&($e&&this.resetState(be),this.resetUrlToCurrentUrlTree())}resetState(be){this.routerState=be.currentRouterState,this.currentUrlTree=be.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,be.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(be,$e){const dt=new F(be.id,this.serializeUrl(be.extractedUrl),$e);this.triggerEvent(dt),be.resolve(!1)}generateNgRouterState(be,$e){return"computed"===this.canceledNavigationResolution?{navigationId:be,\u0275routerPageId:$e}:{navigationId:be}}}return Ye.\u0275fac=function(be){e.$Z()},Ye.\u0275prov=e.Yz7({token:Ye,factory:Ye.\u0275fac}),Ye})();function jn(Ye){return"imperative"!==Ye}let da=(()=>{class Ye{constructor(be,$e,dt,Ot,qt){this.router=be,this.route=$e,this.tabIndexAttribute=dt,this.renderer=Ot,this.el=qt,this.commands=null,this.onChanges=new Z.x,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(be){if(null!=this.tabIndexAttribute)return;const $e=this.renderer,dt=this.el.nativeElement;null!==be?$e.setAttribute(dt,"tabindex",be):$e.removeAttribute(dt,"tabindex")}ngOnChanges(be){this.onChanges.next(this)}set routerLink(be){null!=be?(this.commands=Array.isArray(be)?be:[be],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const be={skipLocationChange:$r(this.skipLocationChange),replaceUrl:$r(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,be),!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:$r(this.preserveFragment)})}}return Ye.\u0275fac=function(be){return new(be||Ye)(e.Y36(nn),e.Y36(Si),e.$8M("tabindex"),e.Y36(e.Qsj),e.Y36(e.SBq))},Ye.\u0275dir=e.lG2({type:Ye,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(be,$e){1&be&&e.NdJ("click",function(){return $e.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[e.TTD]}),Ye})(),Xr=(()=>{class Ye{constructor(be,$e,dt){this.router=be,this.route=$e,this.locationStrategy=dt,this.commands=null,this.href=null,this.onChanges=new Z.x,this.subscription=be.events.subscribe(Ot=>{Ot instanceof G&&this.updateTargetUrlAndHref()})}set routerLink(be){this.commands=null!=be?Array.isArray(be)?be:[be]:null}ngOnChanges(be){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(be,$e,dt,Ot,qt){if(0!==be||$e||dt||Ot||qt||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const ii={skipLocationChange:$r(this.skipLocationChange),replaceUrl:$r(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,ii),!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:$r(this.preserveFragment)})}}return Ye.\u0275fac=function(be){return new(be||Ye)(e.Y36(nn),e.Y36(Si),e.Y36(x.S$))},Ye.\u0275dir=e.lG2({type:Ye,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(be,$e){1&be&&e.NdJ("click",function(Ot){return $e.onClick(Ot.button,Ot.ctrlKey,Ot.shiftKey,Ot.altKey,Ot.metaKey)}),2&be&&e.uIk("target",$e.target)("href",$e.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]}),Ye})();function $r(Ye){return""===Ye||!!Ye}let Yn=(()=>{class Ye{constructor(be,$e,dt,Ot,qt,ii){this.router=be,this.element=$e,this.renderer=dt,this.cdr=Ot,this.link=qt,this.linkWithHref=ii,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new e.vpe,this.routerEventsSubscription=be.events.subscribe(Ei=>{Ei instanceof G&&this.update()})}ngAfterContentInit(){(0,s.of)(this.links.changes,this.linksWithHrefs.changes,(0,s.of)(null)).pipe((0,I.J)()).subscribe(be=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var be;null===(be=this.linkInputChangesSubscription)||void 0===be||be.unsubscribe();const $e=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(dt=>!!dt).map(dt=>dt.onChanges);this.linkInputChangesSubscription=(0,N.D)($e).pipe((0,I.J)()).subscribe(dt=>{this.isActive!==this.isLinkActive(this.router)(dt)&&this.update()})}set routerLinkActive(be){const $e=Array.isArray(be)?be:be.split(" ");this.classes=$e.filter(dt=>!!dt)}ngOnChanges(be){this.update()}ngOnDestroy(){var be;this.routerEventsSubscription.unsubscribe(),null===(be=this.linkInputChangesSubscription)||void 0===be||be.unsubscribe()}update(){!this.links||!this.linksWithHrefs||!this.router.navigated||Promise.resolve().then(()=>{const be=this.hasActiveLinks();this.isActive!==be&&(this.isActive=be,this.cdr.markForCheck(),this.classes.forEach($e=>{be?this.renderer.addClass(this.element.nativeElement,$e):this.renderer.removeClass(this.element.nativeElement,$e)}),this.isActiveChange.emit(be))})}isLinkActive(be){const $e=function io(Ye){return!!Ye.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return dt=>!!dt.urlTree&&be.isActive(dt.urlTree,$e)}hasActiveLinks(){const be=this.isLinkActive(this.router);return this.link&&be(this.link)||this.linkWithHref&&be(this.linkWithHref)||this.links.some(be)||this.linksWithHrefs.some(be)}}return Ye.\u0275fac=function(be){return new(be||Ye)(e.Y36(nn),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.sBO),e.Y36(da,8),e.Y36(Xr,8))},Ye.\u0275dir=e.lG2({type:Ye,selectors:[["","routerLinkActive",""]],contentQueries:function(be,$e,dt){if(1&be&&(e.Suo(dt,da,5),e.Suo(dt,Xr,5)),2&be){let Ot;e.iGM(Ot=e.CRH())&&($e.links=Ot),e.iGM(Ot=e.CRH())&&($e.linksWithHrefs=Ot)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[e.TTD]}),Ye})();class Ia{}class Zs{preload(Te,be){return(0,s.of)(null)}}let va=(()=>{class Ye{constructor(be,$e,dt,Ot){this.router=be,this.injector=dt,this.preloadingStrategy=Ot,this.loader=new zn(dt,$e,Ei=>be.triggerEvent(new K(Ei)),Ei=>be.triggerEvent(new Me(Ei)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,j.h)(be=>be instanceof G),(0,a.b)(()=>this.preload())).subscribe(()=>{})}preload(){const be=this.injector.get(e.h0i);return this.processRoutes(be,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(be,$e){const dt=[];for(const Ot of $e)if(Ot.loadChildren&&!Ot.canLoad&&Ot._loadedConfig){const qt=Ot._loadedConfig;dt.push(this.processRoutes(qt.module,qt.routes))}else Ot.loadChildren&&!Ot.canLoad?dt.push(this.preloadConfig(be,Ot)):Ot.children&&dt.push(this.processRoutes(be,Ot.children));return(0,N.D)(dt).pipe((0,I.J)(),(0,re.U)(Ot=>{}))}preloadConfig(be,$e){return this.preloadingStrategy.preload($e,()=>($e._loadedConfig?(0,s.of)($e._loadedConfig):this.loader.load(be.injector,$e)).pipe((0,u.z)(Ot=>($e._loadedConfig=Ot,this.processRoutes(Ot.module,Ot.routes)))))}}return Ye.\u0275fac=function(be){return new(be||Ye)(e.LFG(nn),e.LFG(e.Sil),e.LFG(e.zs3),e.LFG(Ia))},Ye.\u0275prov=e.Yz7({token:Ye,factory:Ye.\u0275fac}),Ye})(),us=(()=>{class Ye{constructor(be,$e,dt={}){this.router=be,this.viewportScroller=$e,this.options=dt,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},dt.scrollPositionRestoration=dt.scrollPositionRestoration||"disabled",dt.anchorScrolling=dt.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(be=>{be instanceof v?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=be.navigationTrigger,this.restoredId=be.restoredState?be.restoredState.navigationId:0):be instanceof G&&(this.lastId=be.id,this.scheduleScrollEvent(be,this.router.parseUrl(be.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(be=>{be instanceof Re&&(be.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(be.position):be.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(be.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(be,$e){this.router.triggerEvent(new Re(be,"popstate"===this.lastSource?this.store[this.restoredId]:null,$e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return Ye.\u0275fac=function(be){e.$Z()},Ye.\u0275prov=e.Yz7({token:Ye,factory:Ye.\u0275fac}),Ye})();const Vs=new e.OlP("ROUTER_CONFIGURATION"),no=new e.OlP("ROUTER_FORROOT_GUARD"),tl=[x.Ye,{provide:Nt,useClass:Jt},{provide:nn,useFactory:function nl(Ye,Te,be,$e,dt,Ot,qt={},ii,Ei){const an=new nn(null,Ye,Te,be,$e,dt,nt(Ot));return ii&&(an.urlHandlingStrategy=ii),Ei&&(an.routeReuseStrategy=Ei),function Oo(Ye,Te){Ye.errorHandler&&(Te.errorHandler=Ye.errorHandler),Ye.malformedUriErrorHandler&&(Te.malformedUriErrorHandler=Ye.malformedUriErrorHandler),Ye.onSameUrlNavigation&&(Te.onSameUrlNavigation=Ye.onSameUrlNavigation),Ye.paramsInheritanceStrategy&&(Te.paramsInheritanceStrategy=Ye.paramsInheritanceStrategy),Ye.relativeLinkResolution&&(Te.relativeLinkResolution=Ye.relativeLinkResolution),Ye.urlUpdateStrategy&&(Te.urlUpdateStrategy=Ye.urlUpdateStrategy),Ye.canceledNavigationResolution&&(Te.canceledNavigationResolution=Ye.canceledNavigationResolution)}(qt,an),qt.enableTracing&&an.events.subscribe(Wn=>{var xn,er;null===(xn=console.group)||void 0===xn||xn.call(console,`Router Event: ${Wn.constructor.name}`),console.log(Wn.toString()),console.log(Wn),null===(er=console.groupEnd)||void 0===er||er.call(console)}),an},deps:[Nt,$n,x.Ye,e.zs3,e.Sil,En,Vs,[class Rr{},new e.FiY],[class Ki{},new e.FiY]]},$n,{provide:Si,useFactory:function Ll(Ye){return Ye.routerState.root},deps:[nn]},va,Zs,class ks{preload(Te,be){return be().pipe((0,i.K)(()=>(0,s.of)(null)))}},{provide:Vs,useValue:{enableTracing:!1}}];function cc(){return new e.PXZ("Router",nn)}let hc=(()=>{class Ye{constructor(be,$e){}static forRoot(be,$e){return{ngModule:Ye,providers:[tl,il(be),{provide:no,useFactory:Lo,deps:[[nn,new e.FiY,new e.tp0]]},{provide:Vs,useValue:$e||{}},{provide:x.S$,useFactory:$c,deps:[x.lw,[new e.tBr(x.mr),new e.FiY],Vs]},{provide:us,useFactory:Xc,deps:[nn,x.EM,Vs]},{provide:Ia,useExisting:$e&&$e.preloadingStrategy?$e.preloadingStrategy:Zs},{provide:e.PXZ,multi:!0,useFactory:cc},[Io,{provide:e.ip1,multi:!0,useFactory:ro,deps:[Io]},{provide:Gs,useFactory:dc,deps:[Io]},{provide:e.tb,multi:!0,useExisting:Gs}]]}}static forChild(be){return{ngModule:Ye,providers:[il(be)]}}}return Ye.\u0275fac=function(be){return new(be||Ye)(e.LFG(no,8),e.LFG(nn,8))},Ye.\u0275mod=e.oAB({type:Ye}),Ye.\u0275inj=e.cJS({}),Ye})();function Xc(Ye,Te,be){return be.scrollOffset&&Te.setOffset(be.scrollOffset),new us(Ye,Te,be)}function $c(Ye,Te,be={}){return be.useHash?new x.Do(Ye,Te):new x.b0(Ye,Te)}function Lo(Ye){return"guarded"}function il(Ye){return[{provide:e.deG,multi:!0,useValue:Ye},{provide:En,multi:!0,useValue:Ye}]}let Io=(()=>{class Ye{constructor(be){this.injector=be,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new Z.x}appInitializer(){return this.injector.get(x.V_,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let $e=null;const dt=new Promise(ii=>$e=ii),Ot=this.injector.get(nn),qt=this.injector.get(Vs);return"disabled"===qt.initialNavigation?(Ot.setUpLocationChangeListener(),$e(!0)):"enabled"===qt.initialNavigation||"enabledBlocking"===qt.initialNavigation?(Ot.hooks.afterPreactivation=()=>this.initNavigation?(0,s.of)(null):(this.initNavigation=!0,$e(!0),this.resultOfPreactivationDone),Ot.initialNavigation()):$e(!0),dt})}bootstrapListener(be){const $e=this.injector.get(Vs),dt=this.injector.get(va),Ot=this.injector.get(us),qt=this.injector.get(nn),ii=this.injector.get(e.z2F);be===ii.components[0]&&(("enabledNonBlocking"===$e.initialNavigation||void 0===$e.initialNavigation)&&qt.initialNavigation(),dt.setUpPreloading(),Ot.init(),qt.resetRootComponentType(ii.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return Ye.\u0275fac=function(be){return new(be||Ye)(e.LFG(e.zs3))},Ye.\u0275prov=e.Yz7({token:Ye,factory:Ye.\u0275fac}),Ye})();function ro(Ye){return Ye.appInitializer.bind(Ye)}function dc(Ye){return Ye.bootstrapListener.bind(Ye)}const Gs=new e.OlP("Router Initializer")},9444:(Ve,Q,m)=>{"use strict";m.d(Q,{BN:()=>Xt,uH:()=>On});var e=m(5e3);function t(tt){return(t="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 C(tt,Et){for(var It=0;It<Et.length;It++){var zt=Et[It];zt.enumerable=zt.enumerable||!1,zt.configurable=!0,"value"in zt&&(zt.writable=!0),Object.defineProperty(tt,zt.key,zt)}}function M(tt,Et,It){return Et in tt?Object.defineProperty(tt,Et,{value:It,enumerable:!0,configurable:!0,writable:!0}):tt[Et]=It,tt}function l(tt){for(var Et=1;Et<arguments.length;Et++){var It=null!=arguments[Et]?arguments[Et]:{},zt=Object.keys(It);"function"==typeof Object.getOwnPropertySymbols&&(zt=zt.concat(Object.getOwnPropertySymbols(It).filter(function(ri){return Object.getOwnPropertyDescriptor(It,ri).enumerable}))),zt.forEach(function(ri){M(tt,ri,It[ri])})}return tt}function N(tt,Et){return function A(tt){if(Array.isArray(tt))return tt}(tt)||function E(tt,Et){var It=[],zt=!0,ri=!1,vi=void 0;try{for(var Ai,Mi=tt[Symbol.iterator]();!(zt=(Ai=Mi.next()).done)&&(It.push(Ai.value),!Et||It.length!==Et);zt=!0);}catch(Ki){ri=!0,vi=Ki}finally{try{!zt&&null!=Mi.return&&Mi.return()}finally{if(ri)throw vi}}return It}(tt,Et)||function w(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var j={},W={};try{"undefined"!=typeof window&&(j=window),"undefined"!=typeof document&&(W=document),"undefined"!=typeof MutationObserver&&MutationObserver,"undefined"!=typeof performance&&performance}catch(tt){}var ce=(j.navigator||{}).userAgent,re=void 0===ce?"":ce,de=j,oe=W,a=!!oe.documentElement&&!!oe.head&&"function"==typeof oe.addEventListener&&"function"==typeof oe.createElement,u=(~re.indexOf("MSIE")||re.indexOf("Trident/"),"___FONT_AWESOME___"),I="svg-inline--fa",z=[1,2,3,4,5,6,7,8,9,10],Ge=z.concat([11,12,13,14,15,16,17,18,19,20]),Re={GROUP:"group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},he=(["xs","sm","lg","fw","ul","li","border","pull-left","pull-right","spin","pulse","rotate-90","rotate-180","rotate-270","flip-horizontal","flip-vertical","flip-both","stack","stack-1x","stack-2x","inverse","layers","layers-text","layers-counter",Re.GROUP,Re.SWAP_OPACITY,Re.PRIMARY,Re.SECONDARY].concat(z.map(function(tt){return"".concat(tt,"x")})).concat(Ge.map(function(tt){return"w-".concat(tt)})),de.FontAwesomeConfig||{});oe&&"function"==typeof oe.querySelector&&[["data-family-prefix","familyPrefix"],["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=N(tt,2),zt=Et[1],ri=function ke(tt){return""===tt||"false"!==tt&&("true"===tt||tt)}(function Le(tt){var Et=oe.querySelector("script["+tt+"]");if(Et)return Et.getAttribute(tt)}(Et[0]));null!=ri&&(he[zt]=ri)});var le=l({},{familyPrefix:"fa",replacementClass:I,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0},he);le.autoReplaceSvg||(le.observeMutations=!1);var xe=l({},le);de.FontAwesomeConfig=xe;var Ue=de||{};Ue[u]||(Ue[u]={}),Ue[u].styles||(Ue[u].styles={}),Ue[u].hooks||(Ue[u].hooks={}),Ue[u].shims||(Ue[u].shims=[]);var lt=Ue[u],nt=[];a&&((oe.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(oe.readyState)||oe.addEventListener("DOMContentLoaded",function tt(){oe.removeEventListener("DOMContentLoaded",tt),nt.map(function(Et){return Et()})}));var ai,Mt="pending",Zt="settled",Ft="fulfilled",Vt="rejected",Ii=function(){},jt="undefined"!=typeof global&&void 0!==global.process&&"function"==typeof global.process.emit,ei="undefined"==typeof setImmediate?setTimeout:setImmediate,Pi=[];function hi(){for(var tt=0;tt<Pi.length;tt++)Pi[tt][0](Pi[tt][1]);Pi=[],ai=!1}function Ze(tt,Et){Pi.push([tt,Et]),ai||(ai=!0,ei(hi,0))}function Y(tt){var Et=tt.owner,It=Et._state,zt=Et._data,ri=tt[It],vi=tt.then;if("function"==typeof ri){It=Ft;try{zt=ri(zt)}catch(Mi){$t(vi,Mi)}}me(vi,zt)||(It===Ft&&De(vi,zt),It===Vt&&$t(vi,zt))}function me(tt,Et){var It;try{if(tt===Et)throw new TypeError("A promises callback cannot return that same promise.");if(Et&&("function"==typeof Et||"object"===t(Et))){var zt=Et.then;if("function"==typeof zt)return zt.call(Et,function(ri){It||(It=!0,Et===ri?et(tt,ri):De(tt,ri))},function(ri){It||(It=!0,$t(tt,ri))}),!0}}catch(ri){return It||$t(tt,ri),!0}return!1}function De(tt,Et){(tt===Et||!me(tt,Et))&&et(tt,Et)}function et(tt,Et){tt._state===Mt&&(tt._state=Zt,tt._data=Et,Ze(Jt,tt))}function $t(tt,Et){tt._state===Mt&&(tt._state=Zt,tt._data=Et,Ze(ct,tt))}function Nt(tt){tt._then=tt._then.forEach(Y)}function Jt(tt){tt._state=Ft,Nt(tt)}function ct(tt){tt._state=Vt,Nt(tt),!tt._handled&&jt&&global.process.emit("unhandledRejection",tt._data,tt)}function Pe(tt){global.process.emit("rejectionHandled",tt)}function Fe(tt){if("function"!=typeof tt)throw new TypeError("Promise resolver "+tt+" is not a function");if(!(this instanceof Fe))throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");this._then=[],function Ee(tt,Et){function zt(ri){$t(Et,ri)}try{tt(function It(ri){De(Et,ri)},zt)}catch(ri){zt(ri)}}(tt,this)}Fe.prototype={constructor:Fe,_state:Mt,_then:null,_data:void 0,_handled:!1,then:function(Et,It){var zt={owner:this,then:new this.constructor(Ii),fulfilled:Et,rejected:It};return(It||Et)&&!this._handled&&(this._handled=!0,this._state===Vt&&jt&&Ze(Pe,this)),this._state===Ft||this._state===Vt?Ze(Y,zt):this._then.push(zt),zt.then},catch:function(Et){return this.then(null,Et)}},Fe.all=function(tt){if(!Array.isArray(tt))throw new TypeError("You must pass an array to Promise.all().");return new Fe(function(Et,It){var zt=[],ri=0;function vi(Ki){return ri++,function(un){zt[Ki]=un,--ri||Et(zt)}}for(var Ai,Mi=0;Mi<tt.length;Mi++)(Ai=tt[Mi])&&"function"==typeof Ai.then?Ai.then(vi(Mi),It):zt[Mi]=Ai;ri||Et(zt)})},Fe.race=function(tt){if(!Array.isArray(tt))throw new TypeError("You must pass an array to Promise.race().");return new Fe(function(Et,It){for(var ri,zt=0;zt<tt.length;zt++)(ri=tt[zt])&&"function"==typeof ri.then?ri.then(Et,It):Et(ri)})},Fe.resolve=function(tt){return tt&&"object"===t(tt)&&tt.constructor===Fe?tt:new Fe(function(Et){Et(tt)})},Fe.reject=function(tt){return new Fe(function(Et,It){It(tt)})};var At={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function Li(){for(var tt=12,Et="";tt-- >0;)Et+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return Et}function Ui(tt){return"".concat(tt).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Xi(tt){return Object.keys(tt||{}).reduce(function(Et,It){return Et+"".concat(It,": ").concat(tt[It],";")},"")}function Ke(tt){return tt.size!==At.size||tt.x!==At.x||tt.y!==At.y||tt.rotate!==At.rotate||tt.flipX||tt.flipY}function _t(tt){var Et=tt.transform,zt=tt.iconWidth,ri={transform:"translate(".concat(tt.containerWidth/2," 256)")},vi="translate(".concat(32*Et.x,", ").concat(32*Et.y,") "),Mi="scale(".concat(Et.size/16*(Et.flipX?-1:1),", ").concat(Et.size/16*(Et.flipY?-1:1),") "),Ai="rotate(".concat(Et.rotate," 0 0)");return{outer:ri,inner:{transform:"".concat(vi," ").concat(Mi," ").concat(Ai)},path:{transform:"translate(".concat(zt/2*-1," -256)")}}}var qe={x:0,y:0,width:"100%",height:"100%"};function yt(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 fe(tt){return"g"===tt.tag?tt.children:[tt]}function Ni(tt){var Et=tt.icons,It=Et.main,zt=Et.mask,ri=tt.prefix,vi=tt.iconName,Mi=tt.transform,Ai=tt.symbol,Ki=tt.title,un=tt.maskId,gn=tt.titleId,En=tt.extra,zn=tt.watchable,Rr=void 0!==zn&&zn,Fr=zt.found?zt:It,wr=Fr.width,Vn=Fr.height,mr="fak"===ri,Hi=mr?"":"fa-w-".concat(Math.ceil(wr/Vn*16)),on=[xe.replacementClass,vi?"".concat(xe.familyPrefix,"-").concat(vi):"",Hi].filter(function(Yn){return-1===En.classes.indexOf(Yn)}).filter(function(Yn){return""!==Yn||!!Yn}).concat(En.classes).join(" "),nn={children:[],attributes:l({},En.attributes,{"data-prefix":ri,"data-icon":vi,class:on,role:En.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(wr," ").concat(Vn)})},kn=mr&&!~En.classes.indexOf("fa-fw")?{width:"".concat(wr/Vn*16*.0625,"em")}:{};Rr&&(nn.attributes["data-fa-i2svg"]=""),Ki&&nn.children.push({tag:"title",attributes:{id:nn.attributes["aria-labelledby"]||"title-".concat(gn||Li())},children:[Ki]});var jn=l({},nn,{prefix:ri,iconName:vi,main:It,mask:zt,maskId:un,transform:Mi,symbol:Ai,styles:l({},kn,En.styles)}),da=zt.found&&It.found?function Je(tt){var Et=tt.children,It=tt.attributes,zt=tt.main,ri=tt.mask,vi=tt.maskId,Ki=zt.icon,gn=ri.icon,En=_t({transform:tt.transform,containerWidth:ri.width,iconWidth:zt.width}),zn={tag:"rect",attributes:l({},qe,{fill:"white"})},Rr=Ki.children?{children:Ki.children.map(yt)}:{},Fr={tag:"g",attributes:l({},En.inner),children:[yt(l({tag:Ki.tag,attributes:l({},Ki.attributes,En.path)},Rr))]},wr={tag:"g",attributes:l({},En.outer),children:[Fr]},Vn="mask-".concat(vi||Li()),mr="clip-".concat(vi||Li()),Hi={tag:"mask",attributes:l({},qe,{id:Vn,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[zn,wr]},on={tag:"defs",children:[{tag:"clipPath",attributes:{id:mr},children:fe(gn)},Hi]};return Et.push(on,{tag:"rect",attributes:l({fill:"currentColor","clip-path":"url(#".concat(mr,")"),mask:"url(#".concat(Vn,")")},qe)}),{children:Et,attributes:It}}(jn):function St(tt){var Et=tt.children,It=tt.attributes,zt=tt.main,ri=tt.transform,Mi=Xi(tt.styles);if(Mi.length>0&&(It.style=Mi),Ke(ri)){var Ai=_t({transform:ri,containerWidth:zt.width,iconWidth:zt.width});Et.push({tag:"g",attributes:l({},Ai.outer),children:[{tag:"g",attributes:l({},Ai.inner),children:[{tag:zt.icon.tag,children:zt.icon.children,attributes:l({},zt.icon.attributes,Ai.path)}]}]})}else Et.push(zt.icon);return{children:Et,attributes:It}}(jn),$r=da.attributes;return jn.children=da.children,jn.attributes=$r,Ai?function yi(tt){var It=tt.iconName,zt=tt.children,vi=tt.symbol;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:l({},tt.attributes,{id:!0===vi?"".concat(tt.prefix,"-").concat(xe.familyPrefix,"-").concat(It):vi}),children:zt}]}]}(jn):function Pt(tt){var Et=tt.children,It=tt.main,zt=tt.mask,ri=tt.attributes,vi=tt.styles,Mi=tt.transform;if(Ke(Mi)&&It.found&&!zt.found){var un={x:It.width/It.height/2,y:.5};ri.style=Xi(l({},vi,{"transform-origin":"".concat(un.x+Mi.x/16,"em ").concat(un.y+Mi.y/16,"em")}))}return[{tag:"svg",attributes:ri,children:Et}]}(jn)}var $i=function(Et,It,zt,ri){var Ki,un,gn,vi=Object.keys(Et),Mi=vi.length,Ai=void 0!==ri?function(Et,It){return function(zt,ri,vi,Mi){return Et.call(It,zt,ri,vi,Mi)}}(It,ri):It;for(void 0===zt?(Ki=1,gn=Et[vi[0]]):(Ki=0,gn=zt);Ki<Mi;Ki++)gn=Ai(gn,Et[un=vi[Ki]],un,Et);return gn};function Ln(tt,Et){var It=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},zt=It.skipHooks,ri=void 0!==zt&&zt,vi=Object.keys(Et).reduce(function(Mi,Ai){var Ki=Et[Ai];return Ki.icon?Mi[Ki.iconName]=Ki.icon:Mi[Ai]=Ki,Mi},{});"function"!=typeof lt.hooks.addPack||ri?lt.styles[tt]=l({},lt.styles[tt]||{},vi):lt.hooks.addPack(tt,vi),"fas"===tt&&Ln("fa",Et)}var _n=lt.styles,Pn=lt.shims,dn=function(){var Et=function(ri){return $i(_n,function(vi,Mi,Ai){return vi[Ai]=$i(Mi,ri,{}),vi},{})};Et(function(zt,ri,vi){return ri[3]&&(zt[ri[3]]=vi),zt}),Et(function(zt,ri,vi){var Mi=ri[2];return zt[vi]=vi,Mi.forEach(function(Ai){zt[Ai]=vi}),zt});var It="far"in _n;$i(Pn,function(zt,ri){var Mi=ri[1];return"far"===Mi&&!It&&(Mi="fas"),zt[ri[0]]={prefix:Mi,iconName:ri[2]},zt},{})};function Fa(tt,Et,It){if(tt&&tt[Et]&&tt[Et][It])return{prefix:Et,iconName:It,icon:tt[Et][It]}}function xr(tt){var Et=tt.tag,It=tt.attributes,zt=void 0===It?{}:It,ri=tt.children,vi=void 0===ri?[]:ri;return"string"==typeof tt?Ui(tt):"<".concat(Et," ").concat(function Di(tt){return Object.keys(tt||{}).reduce(function(Et,It){return Et+"".concat(It,'="').concat(Ui(tt[It]),'" ')},"").trim()}(zt),">").concat(vi.map(xr).join(""),"</").concat(Et,">")}dn();function Nr(tt){this.name="MissingIcon",this.message=tt||"Icon unavailable",this.stack=(new Error).stack}(Nr.prototype=Object.create(Error.prototype)).constructor=Nr;var ca={fill:"currentColor"},Aa={attributeType:"XML",repeatCount:"indefinite",dur:"2s"},ha=(l({},ca,{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"}),l({},Aa,{attributeName:"opacity"}));function Gr(tt){var Et=tt[0],It=tt[1],vi=N(tt.slice(4),1)[0];return{found:!0,width:Et,height:It,icon:Array.isArray(vi)?{tag:"g",attributes:{class:"".concat(xe.familyPrefix,"-").concat(Re.GROUP)},children:[{tag:"path",attributes:{class:"".concat(xe.familyPrefix,"-").concat(Re.SECONDARY),fill:"currentColor",d:vi[0]}},{tag:"path",attributes:{class:"".concat(xe.familyPrefix,"-").concat(Re.PRIMARY),fill:"currentColor",d:vi[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:vi}}}}function Yt(){xe.autoAddCss&&!Cr&&(function Bt(tt){if(tt&&a){var Et=oe.createElement("style");Et.setAttribute("type","text/css"),Et.innerHTML=tt;for(var It=oe.head.childNodes,zt=null,ri=It.length-1;ri>-1;ri--){var vi=It[ri],Mi=(vi.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(Mi)>-1&&(zt=vi)}return oe.head.insertBefore(Et,zt),tt}}(function ti(){var Et=I,It=xe.familyPrefix,zt=xe.replacementClass,ri='svg:not(:root).svg-inline--fa {\n overflow: visible;\n}\n\n.svg-inline--fa {\n display: inline-block;\n font-size: inherit;\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.225em;\n}\n.svg-inline--fa.fa-w-1 {\n width: 0.0625em;\n}\n.svg-inline--fa.fa-w-2 {\n width: 0.125em;\n}\n.svg-inline--fa.fa-w-3 {\n width: 0.1875em;\n}\n.svg-inline--fa.fa-w-4 {\n width: 0.25em;\n}\n.svg-inline--fa.fa-w-5 {\n width: 0.3125em;\n}\n.svg-inline--fa.fa-w-6 {\n width: 0.375em;\n}\n.svg-inline--fa.fa-w-7 {\n width: 0.4375em;\n}\n.svg-inline--fa.fa-w-8 {\n width: 0.5em;\n}\n.svg-inline--fa.fa-w-9 {\n width: 0.5625em;\n}\n.svg-inline--fa.fa-w-10 {\n width: 0.625em;\n}\n.svg-inline--fa.fa-w-11 {\n width: 0.6875em;\n}\n.svg-inline--fa.fa-w-12 {\n width: 0.75em;\n}\n.svg-inline--fa.fa-w-13 {\n width: 0.8125em;\n}\n.svg-inline--fa.fa-w-14 {\n width: 0.875em;\n}\n.svg-inline--fa.fa-w-15 {\n width: 0.9375em;\n}\n.svg-inline--fa.fa-w-16 {\n width: 1em;\n}\n.svg-inline--fa.fa-w-17 {\n width: 1.0625em;\n}\n.svg-inline--fa.fa-w-18 {\n width: 1.125em;\n}\n.svg-inline--fa.fa-w-19 {\n width: 1.1875em;\n}\n.svg-inline--fa.fa-w-20 {\n width: 1.25em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-border {\n height: 1.5em;\n}\n.svg-inline--fa.fa-li {\n width: 2em;\n}\n.svg-inline--fa.fa-fw {\n 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 {\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-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: 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: #ff253a;\n border-radius: 1em;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: #fff;\n height: 1.5em;\n line-height: 1;\n max-width: 5em;\n min-width: 1.5em;\n overflow: hidden;\n padding: 0.25em;\n right: 0;\n text-overflow: ellipsis;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: 0;\n right: 0;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: 0;\n left: 0;\n right: auto;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n right: 0;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: 0;\n right: auto;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-lg {\n font-size: 1.3333333333em;\n line-height: 0.75em;\n vertical-align: -0.0667em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n}\n\n.fa-sm {\n font-size: 0.875em;\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-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: 2.5em;\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: -2em;\n position: absolute;\n text-align: center;\n width: 2em;\n line-height: inherit;\n}\n\n.fa-border {\n border: solid 0.08em #eee;\n border-radius: 0.1em;\n padding: 0.2em 0.25em 0.15em;\n}\n\n.fa-pull-left {\n float: left;\n}\n\n.fa-pull-right {\n float: right;\n}\n\n.fa.fa-pull-left,\n.fas.fa-pull-left,\n.far.fa-pull-left,\n.fal.fa-pull-left,\n.fab.fa-pull-left {\n margin-right: 0.3em;\n}\n.fa.fa-pull-right,\n.fas.fa-pull-right,\n.far.fa-pull-right,\n.fal.fa-pull-right,\n.fab.fa-pull-right {\n margin-left: 0.3em;\n}\n\n.fa-spin {\n -webkit-animation: fa-spin 2s infinite linear;\n animation: fa-spin 2s infinite linear;\n}\n\n.fa-pulse {\n -webkit-animation: fa-spin 1s infinite steps(8);\n animation: fa-spin 1s infinite steps(8);\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\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 -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both, .fa-flip-horizontal.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n:root .fa-rotate-90,\n:root .fa-rotate-180,\n:root .fa-rotate-270,\n:root .fa-flip-horizontal,\n:root .fa-flip-vertical,\n:root .fa-flip-both {\n -webkit-filter: none;\n filter: none;\n}\n\n.fa-stack {\n display: inline-block;\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}\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: #fff;\n}\n\n.sr-only {\n border: 0;\n clip: rect(0, 0, 0, 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n}\n\n.sr-only-focusable:active, .sr-only-focusable:focus {\n clip: auto;\n height: auto;\n margin: 0;\n overflow: visible;\n position: static;\n width: auto;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: 1;\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: 1;\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 color: #fff;\n}';if("fa"!==It||zt!==Et){var vi=new RegExp("\\.".concat("fa","\\-"),"g"),Mi=new RegExp("\\--".concat("fa","\\-"),"g"),Ai=new RegExp("\\.".concat(Et),"g");ri=ri.replace(vi,".".concat(It,"-")).replace(Mi,"--".concat(It,"-")).replace(Ai,".".concat(zt))}return ri}()),Cr=!0)}function xi(tt,Et){return Object.defineProperty(tt,"abstract",{get:Et}),Object.defineProperty(tt,"html",{get:function(){return tt.abstract.map(function(zt){return xr(zt)})}}),Object.defineProperty(tt,"node",{get:function(){if(a){var zt=oe.createElement("div");return zt.innerHTML=tt.html,zt.children}}}),tt}function Bi(tt){var Et=tt.prefix,It=void 0===Et?"fa":Et,zt=tt.iconName;if(zt)return Fa(An.definitions,It,zt)||Fa(lt.styles,It,zt)}l({},ca,{cx:"256",cy:"364",r:"28"}),l({},Aa,{attributeName:"r",values:"28;14;28;28;14;28;"}),l({},ha,{values:"1;0;1;1;0;1;"}),l({},ca,{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"}),l({},ha,{values:"1;0;0;0;0;1;"}),l({},ca,{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"}),l({},ha,{values:"0;0;1;1;0;0;"});var An=new(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 o(tt,Et,It){Et&&C(tt.prototype,Et),It&&C(tt,It)}(tt,[{key:"add",value:function(){for(var It=this,zt=arguments.length,ri=new Array(zt),vi=0;vi<zt;vi++)ri[vi]=arguments[vi];var Mi=ri.reduce(this._pullDefinitions,{});Object.keys(Mi).forEach(function(Ai){It.definitions[Ai]=l({},It.definitions[Ai]||{},Mi[Ai]),Ln(Ai,Mi[Ai]),dn()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(It,zt){var ri=zt.prefix&&zt.iconName&&zt.icon?{0:zt}:zt;return Object.keys(ri).map(function(vi){var Mi=ri[vi],Ai=Mi.prefix,Ki=Mi.iconName,un=Mi.icon;It[Ai]||(It[Ai]={}),It[Ai][Ki]=un}),It}}]),tt}()),Cr=!1,Rn_transform=function(Et){return function(Et){var It={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return Et?Et.toLowerCase().split(" ").reduce(function(zt,ri){var vi=ri.toLowerCase().split("-"),Mi=vi[0],Ai=vi.slice(1).join("-");if(Mi&&"h"===Ai)return zt.flipX=!0,zt;if(Mi&&"v"===Ai)return zt.flipY=!0,zt;if(Ai=parseFloat(Ai),isNaN(Ai))return zt;switch(Mi){case"grow":zt.size=zt.size+Ai;break;case"shrink":zt.size=zt.size-Ai;break;case"left":zt.x=zt.x-Ai;break;case"right":zt.x=zt.x+Ai;break;case"up":zt.y=zt.y-Ai;break;case"down":zt.y=zt.y+Ai;break;case"rotate":zt.rotate=zt.rotate+Ai}return zt},It):It}(Et)},_a=function yn(tt){return function(Et){var It=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},zt=(Et||{}).icon?Et:Bi(Et||{}),ri=It.mask;return ri&&(ri=(ri||{}).icon?ri:Bi(ri||{})),tt(zt,l({},It,{mask:ri}))}}(function(tt){var Et=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},It=Et.transform,zt=void 0===It?At:It,ri=Et.symbol,vi=void 0!==ri&&ri,Mi=Et.mask,Ai=void 0===Mi?null:Mi,Ki=Et.maskId,un=void 0===Ki?null:Ki,gn=Et.title,En=void 0===gn?null:gn,zn=Et.titleId,Rr=void 0===zn?null:zn,Fr=Et.classes,wr=void 0===Fr?[]:Fr,Vn=Et.attributes,mr=void 0===Vn?{}:Vn,Hi=Et.styles,on=void 0===Hi?{}:Hi;if(tt){var nn=tt.prefix,kn=tt.iconName,jn=tt.icon;return xi(l({type:"icon"},tt),function(){return Yt(),xe.autoA11y&&(En?mr["aria-labelledby"]="".concat(xe.replacementClass,"-title-").concat(Rr||Li()):(mr["aria-hidden"]="true",mr.focusable="false")),Ni({icons:{main:Gr(jn),mask:Ai?Gr(Ai.icon):{found:!1,width:null,height:null,icon:{}}},prefix:nn,iconName:kn,transform:l({},At,zt),symbol:vi,title:En,maskId:un,titleId:Rr,extra:{attributes:mr,styles:on,classes:wr}})})}}),zs=m(2313);const fr=["*"],xt=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(It=>Et[It]?It:null).filter(It=>It)};let je=(()=>{class tt{constructor(){this.defaultPrefix="fas",this.fallbackIcon=null}}return tt.\u0275fac=function(It){return new(It||tt)},tt.\u0275prov=e.Yz7({token:tt,factory:tt.\u0275fac,providedIn:"root"}),tt})(),wt=(()=>{class tt{constructor(){this.definitions={}}addIcons(...It){for(const zt of It){zt.prefix in this.definitions||(this.definitions[zt.prefix]={}),this.definitions[zt.prefix][zt.iconName]=zt;for(const ri of zt.icon[2])"string"==typeof ri&&(this.definitions[zt.prefix][ri]=zt)}}addIconPacks(...It){for(const zt of It){const ri=Object.keys(zt).map(vi=>zt[vi]);this.addIcons(...ri)}}getIconDefinition(It,zt){return It in this.definitions&&zt in this.definitions[It]?this.definitions[It][zt]:null}}return tt.\u0275fac=function(It){return new(It||tt)},tt.\u0275prov=e.Yz7({token:tt,factory:tt.\u0275fac,providedIn:"root"}),tt})(),kt=(()=>{class tt{constructor(){this.stackItemSize="1x"}ngOnChanges(It){if("size"in It)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(It){return new(It||tt)},tt.\u0275dir=e.lG2({type:tt,selectors:[["fa-icon","stackItemSize",""],["fa-duotone-icon","stackItemSize",""]],inputs:{stackItemSize:"stackItemSize",size:"size"},features:[e.TTD]}),tt})(),Qt=(()=>{class tt{constructor(It,zt){this.renderer=It,this.elementRef=zt}ngOnInit(){this.renderer.addClass(this.elementRef.nativeElement,"fa-stack")}ngOnChanges(It){"size"in It&&(null!=It.size.currentValue&&this.renderer.addClass(this.elementRef.nativeElement,`fa-${It.size.currentValue}`),null!=It.size.previousValue&&this.renderer.removeClass(this.elementRef.nativeElement,`fa-${It.size.previousValue}`))}}return tt.\u0275fac=function(It){return new(It||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:fr,decls:1,vars:0,template:function(It,zt){1&It&&(e.F$t(),e.Hsn(0))},encapsulation:2}),tt})(),Xt=(()=>{class tt{constructor(It,zt,ri,vi,Mi){this.sanitizer=It,this.config=zt,this.iconLibrary=ri,this.stackItem=vi,this.classes=[],null!=Mi&&null==vi&&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(It){if(null==this.icon&&null==this.config.fallbackIcon)return(()=>{throw new Error("Property `icon` is required for `fa-icon`/`fa-duotone-icon` components.")})();let zt=null;if(zt=null==this.icon?this.config.fallbackIcon:this.icon,It){const ri=this.findIconDefinition(zt);if(null!=ri){const vi=this.buildParams();this.renderIcon(ri,vi)}}}render(){this.ngOnChanges({})}findIconDefinition(It){const zt=((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)(It,this.config.defaultPrefix);if("icon"in zt)return zt;const ri=this.iconLibrary.getIconDefinition(zt.prefix,zt.iconName);return null!=ri?ri:((tt=>{throw new Error(`Could not find icon with iconName=${tt.iconName} and prefix=${tt.prefix} in the icon library.`)})(zt),null)}buildParams(){const It={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},zt="string"==typeof this.transform?Rn_transform(this.transform):this.transform;return{title:this.title,transform:zt,classes:[...xt(It),...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(It,zt){const ri=_a(It,zt);this.renderedIconHTML=this.sanitizer.bypassSecurityTrustHtml(ri.html.join("\n"))}}return tt.\u0275fac=function(It){return new(It||tt)(e.Y36(zs.H7),e.Y36(je),e.Y36(wt),e.Y36(kt,8),e.Y36(Qt,8))},tt.\u0275cmp=e.Xpm({type:tt,selectors:[["fa-icon"]],hostAttrs:[1,"ng-fa-icon"],hostVars:2,hostBindings:function(It,zt){2&It&&(e.Ikx("innerHTML",zt.renderedIconHTML,e.oJD),e.uIk("title",zt.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(It,zt){},encapsulation:2}),tt})(),On=(()=>{class tt{}return tt.\u0275fac=function(It){return new(It||tt)},tt.\u0275mod=e.oAB({type:tt}),tt.\u0275inj=e.cJS({}),tt})()},6642:(Ve,Q,m)=>{"use strict";m.d(Q,{eX:()=>Be,sQ:()=>Ii,GW:()=>a,l4:()=>ze});var e=m(5620),t=m(6451),y=m(8306),C=m(7579),o=m(515),M=m(9646),l=m(2843),N=m(576);class D{constructor(Ee,Y,me){this.kind=Ee,this.value=Y,this.error=me,this.hasValue="N"===Ee}observe(Ee){return A(this,Ee)}do(Ee,Y,me){const{kind:De,value:et,error:$t}=this;return"N"===De?null==Ee?void 0:Ee(et):"E"===De?null==Y?void 0:Y($t):null==me?void 0:me()}accept(Ee,Y,me){var De;return(0,N.m)(null===(De=Ee)||void 0===De?void 0:De.next)?this.observe(Ee):this.do(Ee,Y,me)}toObservable(){const{kind:Ee,value:Y,error:me}=this,De="N"===Ee?(0,M.of)(Y):"E"===Ee?(0,l._)(()=>me):"C"===Ee?o.E:0;if(!De)throw new TypeError(`Unexpected notification kind ${Ee}`);return De}static createNext(Ee){return new D("N",Ee)}static createError(Ee){return new D("E",void 0,Ee)}static createComplete(){return D.completeNotification}}function A(Ze,Ee){var Y,me,De;const{kind:et,value:$t,error:Nt}=Ze;if("string"!=typeof et)throw new TypeError('Invalid notification, missing "kind"');"N"===et?null===(Y=Ee.next)||void 0===Y||Y.call(Ee,$t):"E"===et?null===(me=Ee.error)||void 0===me||me.call(Ee,Nt):null===(De=Ee.complete)||void 0===De||De.call(Ee)}D.completeNotification=new D("C");var O=m(4482),E=m(5403),w=m(8421);function Z(Ze,Ee,Y,me){return(0,O.e)((De,et)=>{let $t;Ee&&"function"!=typeof Ee?({duration:Y,element:$t,connector:me}=Ee):$t=Ee;const Nt=new Map,Jt=at=>{Nt.forEach(at),at(et)},ct=at=>Jt(st=>st.error(at)),Pe=new j(et,at=>{try{const st=Ze(at);let At=Nt.get(st);if(!At){Nt.set(st,At=me?me():new C.x);const li=function Fe(at,st){const At=new y.y(li=>{Pe.activeGroups++;const Bt=st.subscribe(li);return()=>{Bt.unsubscribe(),0==--Pe.activeGroups&&Pe.teardownAttempted&&Pe.unsubscribe()}});return At.key=at,At}(st,At);if(et.next(li),Y){const Bt=new E.Q(At,()=>{At.complete(),null==Bt||Bt.unsubscribe()},void 0,void 0,()=>Nt.delete(st));Pe.add((0,w.Xf)(Y(li)).subscribe(Bt))}}At.next($t?$t(at):at)}catch(st){ct(st)}},()=>Jt(at=>at.complete()),ct,()=>Nt.clear());De.subscribe(Pe)})}class j extends E.Q{constructor(){super(...arguments),this.activeGroups=0,this.teardownAttempted=!1}unsubscribe(){this.teardownAttempted=!0,0===this.activeGroups&&super.unsubscribe()}}var W=m(4004);function ie(Ze,Ee){return Ee?Y=>Y.pipe(ie((me,De)=>(0,w.Xf)(Ze(me,De)).pipe((0,W.U)((et,$t)=>Ee(me,et,De,$t))))):(0,O.e)((Y,me)=>{let De=0,et=null,$t=!1;Y.subscribe(new E.Q(me,Nt=>{et||(et=new E.Q(me,void 0,()=>{et=null,$t&&me.complete()}),(0,w.Xf)(Ze(Nt,De++)).subscribe(et))},()=>{$t=!0,!et&&me.complete()}))})}var _e=m(8502),ce=m(262),re=m(9300),de=m(5577),oe=m(5698),ae=m(5e3);const b={dispatch:!0,useEffectsErrorHandler:!0},i="__@ngrx/effects_create__";function a(Ze,Ee){const Y=Ze(),me=Object.assign(Object.assign({},b),Ee);return Object.defineProperty(Y,i,{value:me}),Y}function p(Ze){return Object.getOwnPropertyNames(Ze).filter(me=>!(!Ze[me]||!Ze[me].hasOwnProperty(i))&&Ze[me][i].hasOwnProperty("dispatch")).map(me=>Object.assign({propertyName:me},Ze[me][i]))}function u(Ze){return Object.getPrototypeOf(Ze)}const _="__@ngrx/effects__";function I(Ze){return(0,e.qC)(v,u)(Ze)}function v(Ze){return function x(Ze){return Ze.constructor.hasOwnProperty(_)}(Ze)?Ze.constructor[_]:[]}function U(Ze,Ee,Y){const me=u(Ze).constructor.name,De=function F(Ze){return[I,p].reduce((Y,me)=>Y.concat(me(Ze)),[])}(Ze).map(({propertyName:et,dispatch:$t,useEffectsErrorHandler:Nt})=>{const Jt="function"==typeof Ze[et]?Ze[et]():Ze[et],ct=Nt?Y(Jt,Ee):Jt;return!1===$t?ct.pipe((0,_e.l)()):ct.pipe(function P(){return(0,O.e)((Ze,Ee)=>{Ze.subscribe(new E.Q(Ee,Y=>{Ee.next(D.createNext(Y))},()=>{Ee.next(D.createComplete()),Ee.complete()},Y=>{Ee.next(D.createError(Y)),Ee.complete()}))})}()).pipe((0,W.U)(Fe=>({effect:Ze[et],notification:Fe,propertyName:et,sourceName:me,sourceInstance:Ze})))});return(0,t.T)(...De)}function Ce(Ze,Ee,Y=10){return Ze.pipe((0,ce.K)(me=>(Ee&&Ee.handleError(me),Y<=1?Ze:Ce(Ze,Ee,Y-1))))}let Be=(()=>{class Ze extends y.y{constructor(Y){super(),Y&&(this.source=Y)}lift(Y){const me=new Ze;return me.source=this,me.operator=Y,me}}return Ze.\u0275fac=function(Y){return new(Y||Ze)(ae.LFG(e.Y$))},Ze.\u0275prov=ae.Yz7({token:Ze,factory:Ze.\u0275fac}),Ze})();function ze(...Ze){return(0,re.h)(Ee=>Ze.some(Y=>"string"==typeof Y?Y===Ee.type:Y.type===Ee.type))}function he(Ze){return Le(Ze,"ngrxOnInitEffects")}function Le(Ze,Ee){return Ze&&Ee in Ze&&"function"==typeof Ze[Ee]}const ke=new ae.OlP("@ngrx/effects Internal Root Guard"),q=new ae.OlP("@ngrx/effects User Provided Effects"),$=new ae.OlP("@ngrx/effects Internal Root Effects"),le=new ae.OlP("@ngrx/effects Root Effects"),xe=new ae.OlP("@ngrx/effects Internal Feature Effects"),Ue=new ae.OlP("@ngrx/effects Feature Effects"),lt=new ae.OlP("@ngrx/effects Effects Error Handler");let nt=(()=>{class Ze extends C.x{constructor(Y,me){super(),this.errorHandler=Y,this.effectsErrorHandler=me}addEffects(Y){this.next(Y)}toActions(){return this.pipe(Z(u),(0,de.z)(Y=>Y.pipe(Z(ft))),(0,de.z)(Y=>{const me=Y.pipe(ie(et=>function it(Ze,Ee){return Y=>{const me=U(Y,Ze,Ee);return function Re(Ze){return Le(Ze,"ngrxOnRunEffects")}(Y)?Y.ngrxOnRunEffects(me):me}}(this.errorHandler,this.effectsErrorHandler)(et)),(0,W.U)(et=>(function Ie(Ze,Ee){if("N"===Ze.notification.kind){const Y=Ze.notification.value;!function K(Ze){return"function"!=typeof Ze&&Ze&&Ze.type&&"string"==typeof Ze.type}(Y)&&Ee.handleError(new Error(`Effect ${function Me({propertyName:Ze,sourceInstance:Ee,sourceName:Y}){const me="function"==typeof Ee[Ze];return`"${Y}.${String(Ze)}${me?"()":""}"`}(Ze)} dispatched an invalid action: ${function we(Ze){try{return JSON.stringify(Ze)}catch(Ee){return Ze}}(Y)}`))}}(et,this.errorHandler),et.notification)),(0,re.h)(et=>"N"===et.kind&&null!=et.value),function ee(){return(0,O.e)((Ze,Ee)=>{Ze.subscribe(new E.Q(Ee,Y=>A(Y,Ee)))})}()),De=Y.pipe((0,oe.q)(1),(0,re.h)(he),(0,W.U)(et=>et.ngrxOnInitEffects()));return(0,t.T)(me,De)}))}}return Ze.\u0275fac=function(Y){return new(Y||Ze)(ae.LFG(ae.qLn),ae.LFG(lt))},Ze.\u0275prov=ae.Yz7({token:Ze,factory:Ze.\u0275fac}),Ze})();function ft(Ze){return function Ge(Ze){return Le(Ze,"ngrxOnIdentifyEffects")}(Ze)?Ze.ngrxOnIdentifyEffects():""}let rt=(()=>{class Ze{constructor(Y,me){this.effectSources=Y,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 Ze.\u0275fac=function(Y){return new(Y||Ze)(ae.LFG(nt),ae.LFG(e.yh))},Ze.\u0275prov=ae.Yz7({token:Ze,factory:Ze.\u0275fac}),Ze})();const Mt="@ngrx/effects/init";(0,e.PH)(Mt);let Ft=(()=>{class Ze{constructor(Y,me,De,et,$t,Nt,Jt){this.sources=Y,me.start(),et.forEach(ct=>Y.addEffects(ct)),De.dispatch({type:Mt})}addEffects(Y){this.sources.addEffects(Y)}}return Ze.\u0275fac=function(Y){return new(Y||Ze)(ae.LFG(nt),ae.LFG(rt),ae.LFG(e.yh),ae.LFG(le),ae.LFG(e.cr,8),ae.LFG(e.CK,8),ae.LFG(ke,8))},Ze.\u0275mod=ae.oAB({type:Ze}),Ze.\u0275inj=ae.cJS({}),Ze})(),Vt=(()=>{class Ze{constructor(Y,me,De,et){me.forEach($t=>$t.forEach(Nt=>Y.addEffects(Nt)))}}return Ze.\u0275fac=function(Y){return new(Y||Ze)(ae.LFG(Ft),ae.LFG(Ue),ae.LFG(e.cr,8),ae.LFG(e.CK,8))},Ze.\u0275mod=ae.oAB({type:Ze}),Ze.\u0275inj=ae.cJS({}),Ze})(),Ii=(()=>{class Ze{static forFeature(Y=[]){return{ngModule:Vt,providers:[Y,{provide:xe,multi:!0,useValue:Y},{provide:q,multi:!0,useValue:[]},{provide:Ue,multi:!0,useFactory:jt,deps:[ae.zs3,xe,q]}]}}static forRoot(Y=[]){return{ngModule:Ft,providers:[{provide:lt,useValue:Ce},rt,nt,Be,Y,{provide:$,useValue:[Y]},{provide:ke,useFactory:Pi,deps:[[rt,new ae.FiY,new ae.tp0],[$,new ae.PiD]]},{provide:q,multi:!0,useValue:[]},{provide:le,useFactory:jt,deps:[ae.zs3,$,q]}]}}}return Ze.\u0275fac=function(Y){return new(Y||Ze)},Ze.\u0275mod=ae.oAB({type:Ze}),Ze.\u0275inj=ae.cJS({}),Ze})();function jt(Ze,Ee,Y){const me=[];for(const De of Ee)me.push(...De);for(const De of Y)me.push(...De);return function ei(Ze,Ee){return Ee.map(Y=>Ze.get(Y))}(Ze,me)}function Pi(Ze,Ee){if((1!==Ee.length||0!==Ee[0].length)&&Ze)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(Ve){const Q={maxAge:!1,monitor:noMonitor,actionSanitizer:void 0,stateSanitizer:void 0,name:DEFAULT_NAME,serialize:!1,logOnly:!1,autoPause:!1,features:{pause:!0,lock:!0,persist:!0,export:!0,import:"custom",jump:!0,skip:!0,reorder:!0,dispatch:!0,test:!0}},m="function"==typeof Ve?Ve():Ve,y=Object.assign({},Q,{features:m.features||!!m.logOnly&&{pause:!0,export:!0,test:!0}||Q.features},m);if(y.maxAge&&y.maxAge<2)throw new Error(`Devtools 'maxAge' cannot be less than 2, got ${y.maxAge}`);return y}const PERFORM_ACTION="PERFORM_ACTION",REFRESH="REFRESH",RESET="RESET",ROLLBACK="ROLLBACK",COMMIT="COMMIT",SWEEP="SWEEP",TOGGLE_ACTION="TOGGLE_ACTION",SET_ACTIONS_ACTIVE="SET_ACTIONS_ACTIVE",JUMP_TO_STATE="JUMP_TO_STATE",JUMP_TO_ACTION="JUMP_TO_ACTION",IMPORT_STATE="IMPORT_STATE",LOCK_CHANGES="LOCK_CHANGES",PAUSE_RECORDING="PAUSE_RECORDING";class PerformAction{constructor(Q,m){if(this.action=Q,this.timestamp=m,this.type=PERFORM_ACTION,void 0===Q.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(Q){this.timestamp=Q,this.type=RESET}}class Rollback{constructor(Q){this.timestamp=Q,this.type=ROLLBACK}}class Commit{constructor(Q){this.timestamp=Q,this.type=COMMIT}}class Sweep{constructor(){this.type=SWEEP}}class ToggleAction{constructor(Q){this.id=Q,this.type=TOGGLE_ACTION}}class SetActionsActive{constructor(Q,m,e=!0){this.start=Q,this.end=m,this.active=e,this.type=SET_ACTIONS_ACTIVE}}class JumpToState{constructor(Q){this.index=Q,this.type=JUMP_TO_STATE}}class JumpToAction{constructor(Q){this.actionId=Q,this.type=JUMP_TO_ACTION}}class ImportState{constructor(Q){this.nextLiftedState=Q,this.type=IMPORT_STATE}}class LockChanges{constructor(Q){this.status=Q,this.type=LOCK_CHANGES}}class PauseRecording{constructor(Q){this.status=Q,this.type=PAUSE_RECORDING}}function difference(Ve,Q){return Ve.filter(m=>Q.indexOf(m)<0)}function unliftState(Ve){const{computedStates:Q,currentStateIndex:m}=Ve;if(m>=Q.length){const{state:t}=Q[Q.length-1];return t}const{state:e}=Q[m];return e}function unliftAction(Ve){return Ve.actionsById[Ve.nextActionId-1]}function liftAction(Ve){return new PerformAction(Ve,+Date.now())}function sanitizeActions(Ve,Q){return Object.keys(Q).reduce((m,e)=>{const t=Number(e);return m[t]=sanitizeAction(Ve,Q[t],t),m},{})}function sanitizeAction(Ve,Q,m){return Object.assign(Object.assign({},Q),{action:Ve(Q.action,m)})}function sanitizeStates(Ve,Q){return Q.map((m,e)=>({state:sanitizeState(Ve,m.state,e),error:m.error}))}function sanitizeState(Ve,Q,m){return Ve(Q,m)}function shouldFilterActions(Ve){return Ve.predicate||Ve.actionsSafelist||Ve.actionsBlocklist}function filterLiftedState(Ve,Q,m,e){const t=[],y={},C=[];return Ve.stagedActionIds.forEach((o,M)=>{const l=Ve.actionsById[o];!l||M&&isActionFiltered(Ve.computedStates[M],l,Q,m,e)||(y[o]=l,t.push(o),C.push(Ve.computedStates[M]))}),Object.assign(Object.assign({},Ve),{stagedActionIds:t,actionsById:y,computedStates:C})}function isActionFiltered(Ve,Q,m,e,t){const y=m&&!m(Ve,Q.action),C=e&&!Q.action.type.match(e.map(M=>escapeRegExp(M)).join("|")),o=t&&Q.action.type.match(t.map(M=>escapeRegExp(M)).join("|"));return y||C||o}function escapeRegExp(Ve){return Ve.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const INIT_ACTION={type:_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.qg},RECOMPUTE="@ngrx/store-devtools/recompute",RECOMPUTE_ACTION={type:RECOMPUTE};function computeNextEntry(Ve,Q,m,e,t){if(e)return{state:m,error:"Interrupted by an error up the chain"};let C,y=m;try{y=Ve(m,Q)}catch(o){C=o.toString(),t.handleError(o)}return{state:y,error:C}}function recomputeStates(Ve,Q,m,e,t,y,C,o,M){if(Q>=Ve.length&&Ve.length===y.length)return Ve;const l=Ve.slice(0,Q),N=y.length-(M?1:0);for(let s=Q;s<N;s++){const D=y[s],A=t[D].action,O=l[s-1],E=O?O.state:e,P=O?O.error:void 0,Z=C.indexOf(D)>-1?O:computeNextEntry(m,A,E,P,o);l.push(Z)}return M&&l.push(Ve[Ve.length-1]),l}function liftInitialState(Ve,Q){return{monitorState:Q(void 0,{}),nextActionId:1,actionsById:{0:liftAction(INIT_ACTION)},stagedActionIds:[0],skippedActionIds:[],committedState:Ve,currentStateIndex:0,computedStates:[],isLocked:!1,isPaused:!1}}function liftReducerWith(Ve,Q,m,e,t={}){return y=>(C,o)=>{let{monitorState:M,actionsById:l,nextActionId:N,stagedActionIds:s,skippedActionIds:D,committedState:A,currentStateIndex:O,computedStates:E,isLocked:P,isPaused:w}=C||Q;function Z(ie){let ee=ie,_e=s.slice(1,ee+1);for(let ce=0;ce<_e.length;ce++){if(E[ce+1].error){ee=ce,_e=s.slice(1,ee+1);break}delete l[_e[ce]]}D=D.filter(ce=>-1===_e.indexOf(ce)),s=[0,...s.slice(ee+1)],A=E[ee].state,E=E.slice(ee),O=O>ee?O-ee:0}function j(){l={0:liftAction(INIT_ACTION)},N=1,s=[0],D=[],A=E[O].state,O=0,E=[]}C||(l=Object.create(l));let W=0;switch(o.type){case LOCK_CHANGES:P=o.status,W=1/0;break;case PAUSE_RECORDING:w=o.status,w?(s=[...s,N],l[N]=new PerformAction({type:"@ngrx/devtools/pause"},+Date.now()),N++,W=s.length-1,E=E.concat(E[E.length-1]),O===s.length-2&&O++,W=1/0):j();break;case RESET:l={0:liftAction(INIT_ACTION)},N=1,s=[0],D=[],A=Ve,O=0,E=[];break;case COMMIT:j();break;case ROLLBACK:l={0:liftAction(INIT_ACTION)},N=1,s=[0],D=[],O=0,E=[];break;case TOGGLE_ACTION:{const{id:ie}=o;D=-1===D.indexOf(ie)?[ie,...D]:D.filter(_e=>_e!==ie),W=s.indexOf(ie);break}case SET_ACTIONS_ACTIVE:{const{start:ie,end:ee,active:_e}=o,ce=[];for(let re=ie;re<ee;re++)ce.push(re);D=_e?difference(D,ce):[...D,...ce],W=s.indexOf(ie);break}case JUMP_TO_STATE:O=o.index,W=1/0;break;case JUMP_TO_ACTION:{const ie=s.indexOf(o.actionId);-1!==ie&&(O=ie),W=1/0;break}case SWEEP:s=difference(s,D),D=[],O=Math.min(O,s.length-1);break;case PERFORM_ACTION:{if(P)return C||Q;if(w||C&&isActionFiltered(C.computedStates[O],o,t.predicate,t.actionsSafelist,t.actionsBlocklist)){const ee=E[E.length-1];E=[...E.slice(0,-1),computeNextEntry(y,o.action,ee.state,ee.error,m)],W=1/0;break}t.maxAge&&s.length===t.maxAge&&Z(1),O===s.length-1&&O++;const ie=N++;l[ie]=o,s=[...s,ie],W=s.length-1;break}case IMPORT_STATE:({monitorState:M,actionsById:l,nextActionId:N,stagedActionIds:s,skippedActionIds:D,committedState:A,currentStateIndex:O,computedStates:E,isLocked:P,isPaused:w}=o.nextLiftedState);break;case _ngrx_store__WEBPACK_IMPORTED_MODULE_1__.qg:W=0,t.maxAge&&s.length>t.maxAge&&(E=recomputeStates(E,W,y,A,l,s,D,m,w),Z(s.length-t.maxAge),W=1/0);break;case _ngrx_store__WEBPACK_IMPORTED_MODULE_1__.wb:if(E.filter(ee=>ee.error).length>0)W=0,t.maxAge&&s.length>t.maxAge&&(E=recomputeStates(E,W,y,A,l,s,D,m,w),Z(s.length-t.maxAge),W=1/0);else{if(!w&&!P){O===s.length-1&&O++;const ee=N++;l[ee]=new PerformAction(o,+Date.now()),s=[...s,ee],W=s.length-1,E=recomputeStates(E,W,y,A,l,s,D,m,w)}E=E.map(ee=>Object.assign(Object.assign({},ee),{state:y(ee.state,RECOMPUTE_ACTION)})),O=s.length-1,t.maxAge&&s.length>t.maxAge&&Z(s.length-t.maxAge),W=1/0}break;default:W=1/0}return E=recomputeStates(E,W,y,A,l,s,D,m,w),M=e(M,o),{monitorState:M,actionsById:l,nextActionId:N,stagedActionIds:s,skippedActionIds:D,committedState:A,currentStateIndex:O,computedStates:E,isLocked:P,isPaused:w}}}let DevtoolsDispatcher=(()=>{class Ve extends _ngrx_store__WEBPACK_IMPORTED_MODULE_1__.UO{}return Ve.\u0275fac=function(){let Q;return function(e){return(Q||(Q=_angular_core__WEBPACK_IMPORTED_MODULE_0__.n5z(Ve)))(e||Ve)}}(),Ve.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:Ve,factory:Ve.\u0275fac}),Ve})();const ExtensionActionTypes={START:"START",DISPATCH:"DISPATCH",STOP:"STOP",ACTION:"ACTION"},REDUX_DEVTOOLS_EXTENSION=new _angular_core__WEBPACK_IMPORTED_MODULE_0__.OlP("@ngrx/store-devtools Redux Devtools Extension");let DevtoolsExtension=(()=>{class DevtoolsExtension{constructor(Ve,Q,m){this.config=Q,this.dispatcher=m,this.devtoolsExtension=Ve,this.createActionStreams()}notify(Ve,Q){if(this.devtoolsExtension)if(Ve.type===PERFORM_ACTION){if(Q.isLocked||Q.isPaused)return;const m=unliftState(Q);if(shouldFilterActions(this.config)&&isActionFiltered(m,Ve,this.config.predicate,this.config.actionsSafelist,this.config.actionsBlocklist))return;const e=this.config.stateSanitizer?sanitizeState(this.config.stateSanitizer,m,Q.currentStateIndex):m,t=this.config.actionSanitizer?sanitizeAction(this.config.actionSanitizer,Ve,Q.nextActionId):Ve;this.sendToReduxDevtools(()=>this.extensionConnection.send(t,e))}else{const m=Object.assign(Object.assign({},Q),{stagedActionIds:Q.stagedActionIds,actionsById:this.config.actionSanitizer?sanitizeActions(this.config.actionSanitizer,Q.actionsById):Q.actionsById,computedStates:this.config.stateSanitizer?sanitizeStates(this.config.stateSanitizer,Q.computedStates):Q.computedStates});this.sendToReduxDevtools(()=>this.devtoolsExtension.send(null,m,this.getExtensionConfig(this.config)))}}createChangesObservable(){return this.devtoolsExtension?new rxjs__WEBPACK_IMPORTED_MODULE_3__.y(Ve=>{const Q=this.devtoolsExtension.connect(this.getExtensionConfig(this.config));return this.extensionConnection=Q,Q.init(),Q.subscribe(m=>Ve.next(m)),Q.unsubscribe}):rxjs__WEBPACK_IMPORTED_MODULE_2__.E}createActionStreams(){const Ve=this.createChangesObservable().pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.B)()),Q=Ve.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(o=>o.type===ExtensionActionTypes.START)),m=Ve.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(o=>o.type===ExtensionActionTypes.STOP)),e=Ve.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(o=>o.type===ExtensionActionTypes.DISPATCH),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(o=>this.unwrapAction(o.payload)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.b)(o=>o.type===IMPORT_STATE?this.dispatcher.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(M=>M.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)(()=>o),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.K)(()=>(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.of)(o)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.q)(1)):(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.of)(o))),y=Ve.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(o=>o.type===ExtensionActionTypes.ACTION),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(o=>this.unwrapAction(o.payload))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.R)(m)),C=e.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.R)(m));this.start$=Q.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.R)(m)),this.actions$=this.start$.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.w)(()=>y)),this.liftedActions$=this.start$.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.w)(()=>C))}unwrapAction(action){return"string"==typeof action?eval(`(${action})`):action}getExtensionConfig(Ve){var Q;const m={name:Ve.name,features:Ve.features,serialize:Ve.serialize,autoPause:null!==(Q=Ve.autoPause)&&void 0!==Q&&Q};return!1!==Ve.maxAge&&(m.maxAge=Ve.maxAge),m}sendToReduxDevtools(Ve){try{Ve()}catch(Q){console.warn("@ngrx/store-devtools: something went wrong inside the redux devtools",Q)}}}return DevtoolsExtension.\u0275fac=function Ve(Q){return new(Q||DevtoolsExtension)(_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(REDUX_DEVTOOLS_EXTENSION),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(STORE_DEVTOOLS_CONFIG),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(DevtoolsDispatcher))},DevtoolsExtension.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:DevtoolsExtension,factory:DevtoolsExtension.\u0275fac}),DevtoolsExtension})(),StoreDevtools=(()=>{class Ve{constructor(m,e,t,y,C,o,M,l){const N=liftInitialState(M,l.monitor),s=liftReducerWith(M,N,o,l.monitor,l),D=(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)),y.actions$).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(liftAction)),m,y.liftedActions$).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_17__.Q)(rxjs__WEBPACK_IMPORTED_MODULE_18__.N)),A=t.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(s)),O=new rxjs__WEBPACK_IMPORTED_MODULE_19__.t(1),E=D.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.M)(A),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.R)(({state:j},[W,ie])=>{let ee=ie(j,W);return W.type!==PERFORM_ACTION&&shouldFilterActions(l)&&(ee=filterLiftedState(ee,l.predicate,l.actionsSafelist,l.actionsBlocklist)),y.notify(W,ee),{state:ee,action:W}},{state:N,action:null})).subscribe(({state:j,action:W})=>{O.next(j),W.type===PERFORM_ACTION&&C.next(W.action)}),P=y.start$.subscribe(()=>{this.refresh()}),w=O.asObservable(),Z=w.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(unliftState));this.extensionStartSubscription=P,this.stateSubscription=E,this.dispatcher=m,this.liftedState=w,this.state=Z}dispatch(m){this.dispatcher.next(m)}next(m){this.dispatcher.next(m)}error(m){}complete(){}performAction(m){this.dispatch(new PerformAction(m,+Date.now()))}refresh(){this.dispatch(new Refresh)}reset(){this.dispatch(new Reset(+Date.now()))}rollback(){this.dispatch(new Rollback(+Date.now()))}commit(){this.dispatch(new Commit(+Date.now()))}sweep(){this.dispatch(new Sweep)}toggleAction(m){this.dispatch(new ToggleAction(m))}jumpToAction(m){this.dispatch(new JumpToAction(m))}jumpToState(m){this.dispatch(new JumpToState(m))}importState(m){this.dispatch(new ImportState(m))}lockChanges(m){this.dispatch(new LockChanges(m))}pauseRecording(m){this.dispatch(new PauseRecording(m))}}return Ve.\u0275fac=function(m){return new(m||Ve)(_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(DevtoolsDispatcher),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.UO),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.n$),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(DevtoolsExtension),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.Y$),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_angular_core__WEBPACK_IMPORTED_MODULE_0__.qLn),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.Y6),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(STORE_DEVTOOLS_CONFIG))},Ve.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:Ve,factory:Ve.\u0275fac}),Ve})();const IS_EXTENSION_OR_MONITOR_PRESENT=new _angular_core__WEBPACK_IMPORTED_MODULE_0__.OlP("@ngrx/store-devtools Is Devtools Extension or Monitor Present");function createIsExtensionOrMonitorPresent(Ve,Q){return Boolean(Ve)||Q.monitor!==noMonitor}function createReduxDevtoolsExtension(){const Ve="__REDUX_DEVTOOLS_EXTENSION__";return"object"==typeof window&&void 0!==window[Ve]?window[Ve]:null}function createStateObservable(Ve){return Ve.state}let StoreDevtoolsModule=(()=>{class Ve{static instrument(m={}){return{ngModule:Ve,providers:[DevtoolsExtension,DevtoolsDispatcher,StoreDevtools,{provide:INITIAL_OPTIONS,useValue:m},{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 Ve.\u0275fac=function(m){return new(m||Ve)},Ve.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_0__.oAB({type:Ve}),Ve.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_0__.cJS({}),Ve})()},5620:(Ve,Q,m)=>{"use strict";m.d(Q,{UO:()=>ie,qg:()=>W,Y6:()=>re,mK:()=>we,n$:()=>Me,Y$:()=>Re,FR:()=>he,yh:()=>$,CK:()=>qe,Aw:()=>yt,cr:()=>ve,wb:()=>z,qC:()=>ze,PH:()=>P,ZF:()=>Jt,Lq:()=>qi,P1:()=>et,on:()=>Si,Ky:()=>w});var e=m(5e3),t=m(1135),y=m(8306),C=m(7579),o=m(233),M=m(4004),N=m(5363),s=m(1365),D=m(5026),A=m(1884);const O={};function P(ot,Kt){if(O[ot]=(O[ot]||0)+1,"function"==typeof Kt)return j(ot,(...Lt)=>Object.assign(Object.assign({},Kt(...Lt)),{type:ot}));switch(Kt?Kt._as:"empty"){case"empty":return j(ot,()=>({type:ot}));case"props":return j(ot,Lt=>Object.assign(Object.assign({},Lt),{type:ot}));default:throw new Error("Unexpected config.")}}function w(){return{_as:"props",_p:void 0}}function j(ot,Kt){return Object.defineProperty(Kt,"type",{value:ot,writable:!1})}const W="@ngrx/store/init";let ie=(()=>{class ot extends t.X{constructor(){super({type:W})}next(gt){if("function"==typeof gt)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===gt)throw new TypeError("Actions must be objects");if(void 0===gt.type)throw new TypeError("Actions must have a type property");super.next(gt)}complete(){}ngOnDestroy(){super.complete()}}return ot.\u0275fac=function(gt){return new(gt||ot)},ot.\u0275prov=e.Yz7({token:ot,factory:ot.\u0275fac}),ot})();const ee=[ie],_e=new e.OlP("@ngrx/store Internal Root Guard"),ce=new e.OlP("@ngrx/store Internal Initial State"),re=new e.OlP("@ngrx/store Initial State"),de=new e.OlP("@ngrx/store Reducer Factory"),oe=new e.OlP("@ngrx/store Internal Reducer Factory Provider"),ae=new e.OlP("@ngrx/store Initial Reducers"),b=new e.OlP("@ngrx/store Internal Initial Reducers"),i=new e.OlP("@ngrx/store Store Features"),a=new e.OlP("@ngrx/store Internal Store Reducers"),p=new e.OlP("@ngrx/store Internal Feature Reducers"),u=new e.OlP("@ngrx/store Internal Feature Configs"),_=new e.OlP("@ngrx/store Internal Store Features"),L=new e.OlP("@ngrx/store Internal Feature Reducers Token"),I=new e.OlP("@ngrx/store Feature Reducers"),x=new e.OlP("@ngrx/store User Provided Meta Reducers"),r=new e.OlP("@ngrx/store Meta Reducers"),v=new e.OlP("@ngrx/store Internal Resolved Meta Reducers"),G=new e.OlP("@ngrx/store User Runtime Checks Config"),F=new e.OlP("@ngrx/store Internal User Runtime Checks Config"),U=new e.OlP("@ngrx/store Internal Runtime Checks"),ye=new e.OlP("@ngrx/store Check if Action types are unique");function Ce(ot,Kt={}){const gt=Object.keys(ot),Lt={};for(let Ci=0;Ci<gt.length;Ci++){const Yi=gt[Ci];"function"==typeof ot[Yi]&&(Lt[Yi]=ot[Yi])}const ui=Object.keys(Lt);return function(Yi,$i){Yi=void 0===Yi?Kt:Yi;let Cn=!1;const Ln={};for(let _n=0;_n<ui.length;_n++){const Pn=ui[_n],wi=Yi[Pn],Fi=(0,Lt[Pn])(wi,$i);Ln[Pn]=Fi,Cn=Cn||Fi!==wi}return Cn?Ln:Yi}}function ze(...ot){return function(Kt){if(0===ot.length)return Kt;const gt=ot[ot.length-1];return ot.slice(0,-1).reduceRight((ui,Ci)=>Ci(ui),gt(Kt))}}function Ie(ot,Kt){return Array.isArray(Kt)&&Kt.length>0&&(ot=ze.apply(null,[...Kt,ot])),(gt,Lt)=>{const ui=ot(gt);return(Ci,Yi)=>ui(Ci=void 0===Ci?Lt:Ci,Yi)}}class Me extends y.y{}class we extends ie{}const z="@ngrx/store/update-reducers";let Ge=(()=>{class ot extends t.X{constructor(gt,Lt,ui,Ci){super(Ci(ui,Lt)),this.dispatcher=gt,this.initialState=Lt,this.reducers=ui,this.reducerFactory=Ci}get currentReducers(){return this.reducers}addFeature(gt){this.addFeatures([gt])}addFeatures(gt){const Lt=gt.reduce((ui,{reducers:Ci,reducerFactory:Yi,metaReducers:$i,initialState:Cn,key:Ln})=>{const _n="function"==typeof Ci?function K(ot){const Kt=Array.isArray(ot)&&ot.length>0?ze(...ot):gt=>gt;return(gt,Lt)=>(gt=Kt(gt),(ui,Ci)=>gt(ui=void 0===ui?Lt:ui,Ci))}($i)(Ci,Cn):Ie(Yi,$i)(Ci,Cn);return ui[Ln]=_n,ui},{});this.addReducers(Lt)}removeFeature(gt){this.removeFeatures([gt])}removeFeatures(gt){this.removeReducers(gt.map(Lt=>Lt.key))}addReducer(gt,Lt){this.addReducers({[gt]:Lt})}addReducers(gt){this.reducers=Object.assign(Object.assign({},this.reducers),gt),this.updateReducers(Object.keys(gt))}removeReducer(gt){this.removeReducers([gt])}removeReducers(gt){gt.forEach(Lt=>{this.reducers=function Be(ot,Kt){return Object.keys(ot).filter(gt=>gt!==Kt).reduce((gt,Lt)=>Object.assign(gt,{[Lt]:ot[Lt]}),{})}(this.reducers,Lt)}),this.updateReducers(gt)}updateReducers(gt){this.next(this.reducerFactory(this.reducers,this.initialState)),this.dispatcher.next({type:z,features:gt})}ngOnDestroy(){this.complete()}}return ot.\u0275fac=function(gt){return new(gt||ot)(e.LFG(we),e.LFG(re),e.LFG(ae),e.LFG(de))},ot.\u0275prov=e.Yz7({token:ot,factory:ot.\u0275fac}),ot})();const vt=[Ge,{provide:Me,useExisting:Ge},{provide:we,useExisting:ie}];let Re=(()=>{class ot extends C.x{ngOnDestroy(){this.complete()}}return ot.\u0275fac=function(){let Kt;return function(Lt){return(Kt||(Kt=e.n5z(ot)))(Lt||ot)}}(),ot.\u0275prov=e.Yz7({token:ot,factory:ot.\u0275fac}),ot})();const Ne=[Re];class he extends y.y{}let Le=(()=>{class ot extends t.X{constructor(gt,Lt,ui,Ci){super(Ci);const Ln=gt.pipe((0,N.Q)(o.N)).pipe((0,s.M)(Lt)).pipe((0,D.R)(ke,{state:Ci}));this.stateSubscription=Ln.subscribe(({state:_n,action:Pn})=>{this.next(_n),ui.next(Pn)})}ngOnDestroy(){this.stateSubscription.unsubscribe(),this.complete()}}return ot.INIT=W,ot.\u0275fac=function(gt){return new(gt||ot)(e.LFG(ie),e.LFG(Me),e.LFG(Re),e.LFG(re))},ot.\u0275prov=e.Yz7({token:ot,factory:ot.\u0275fac}),ot})();function ke(ot={state:void 0},[Kt,gt]){const{state:Lt}=ot;return{state:gt(Lt,Kt),action:Kt}}const q=[Le,{provide:he,useExisting:Le}];let $=(()=>{class ot extends y.y{constructor(gt,Lt,ui){super(),this.actionsObserver=Lt,this.reducerManager=ui,this.source=gt}select(gt,...Lt){return xe.call(null,gt,...Lt)(this)}lift(gt){const Lt=new ot(this,this.actionsObserver,this.reducerManager);return Lt.operator=gt,Lt}dispatch(gt){this.actionsObserver.next(gt)}next(gt){this.actionsObserver.next(gt)}error(gt){this.actionsObserver.error(gt)}complete(){this.actionsObserver.complete()}addReducer(gt,Lt){this.reducerManager.addReducer(gt,Lt)}removeReducer(gt){this.reducerManager.removeReducer(gt)}}return ot.\u0275fac=function(gt){return new(gt||ot)(e.LFG(he),e.LFG(ie),e.LFG(Ge))},ot.\u0275prov=e.Yz7({token:ot,factory:ot.\u0275fac}),ot})();const le=[$];function xe(ot,Kt,...gt){return function(ui){let Ci;if("string"==typeof ot){const Yi=[Kt,...gt].filter(Boolean);Ci=ui.pipe(function l(...ot){const Kt=ot.length;if(0===Kt)throw new Error("list of properties cannot be empty.");return(0,M.U)(gt=>{let Lt=gt;for(let ui=0;ui<Kt;ui++){const Ci=null==Lt?void 0:Lt[ot[ui]];if(void 0===Ci)return;Lt=Ci}return Lt})}(ot,...Yi))}else{if("function"!=typeof ot)throw new TypeError(`Unexpected type '${typeof ot}' in select operator, expected 'string' or 'function'`);Ci=ui.pipe((0,M.U)(Yi=>ot(Yi,Kt)))}return Ci.pipe((0,A.x)())}}const lt="https://ngrx.io/guide/store/configuration/runtime-checks";function nt(ot){return void 0===ot}function ft(ot){return null===ot}function it(ot){return Array.isArray(ot)}function Ft(ot){return"object"==typeof ot&&null!==ot}function jt(ot){return"function"==typeof ot}function Ee(ot,Kt){return ot===Kt}function Y(ot,Kt,gt){for(let Lt=0;Lt<ot.length;Lt++)if(!gt(ot[Lt],Kt[Lt]))return!0;return!1}function De(ot,Kt=Ee,gt=Ee){let Ci,Lt=null,ui=null;return{memoized:function Ln(){if(void 0!==Ci)return Ci.result;if(!Lt)return ui=ot.apply(null,arguments),Lt=arguments,ui;if(!Y(arguments,Lt,Kt))return ui;const _n=ot.apply(null,arguments);return Lt=arguments,gt(ui,_n)?ui:(ui=_n,_n)},reset:function Yi(){Lt=null,ui=null},setResult:function $i(_n){Ci={result:_n}},clearResult:function Cn(){Ci=void 0}}}function et(...ot){return function Nt(ot,Kt={stateFn:$t}){return function(...gt){let Lt=gt;if(Array.isArray(Lt[0])){const[_n,...Pn]=Lt;Lt=[..._n,...Pn]}const ui=Lt.slice(0,Lt.length-1),Ci=Lt[Lt.length-1],Yi=ui.filter(_n=>_n.release&&"function"==typeof _n.release),$i=ot(function(..._n){return Ci.apply(null,_n)}),Cn=De(function(_n,Pn){return Kt.stateFn.apply(null,[_n,ui,Pn,$i])});return Object.assign(Cn.memoized,{release:function Ln(){Cn.reset(),$i.reset(),Yi.forEach(_n=>_n.release())},projector:$i.memoized,setResult:Cn.setResult,clearResult:Cn.clearResult})}}(De)(...ot)}function $t(ot,Kt,gt,Lt){if(void 0===gt){const Ci=Kt.map(Yi=>Yi(ot));return Lt.memoized.apply(null,Ci)}const ui=Kt.map(Ci=>Ci(ot,gt));return Lt.memoized.apply(null,[...ui,gt])}function Jt(ot){return et(Kt=>{const gt=Kt[ot];return(0,e.X6Q)()&&!(ot in Kt)&&console.warn(`@ngrx/store: The feature name "${ot}" does not exist in the state, therefore createFeatureSelector cannot access it. Be sure it is imported in a loaded module using StoreModule.forRoot('${ot}', ...) or StoreModule.forFeature('${ot}', ...). If the default state is intended to be undefined, as is the case with router state, this development-only warning message can be ignored.`),gt},Kt=>Kt)}function st(ot){Object.freeze(ot);const Kt=jt(ot);return Object.getOwnPropertyNames(ot).forEach(gt=>{if(!gt.startsWith("\u0275")&&function Pi(ot,Kt){return Object.prototype.hasOwnProperty.call(ot,Kt)}(ot,gt)&&(!Kt||"caller"!==gt&&"callee"!==gt&&"arguments"!==gt)){const Lt=ot[gt];(Ft(Lt)||jt(Lt))&&!Object.isFrozen(Lt)&&st(Lt)}}),ot}function li(ot,Kt=[]){return(nt(ot)||ft(ot))&&0===Kt.length?{path:["root"],value:ot}:Object.keys(ot).reduce((Lt,ui)=>{if(Lt)return Lt;const Ci=ot[ui];return function ei(ot){return jt(ot)&&ot.hasOwnProperty("\u0275cmp")}(Ci)?Lt:!(nt(Ci)||ft(Ci)||function Zt(ot){return"number"==typeof ot}(Ci)||function Mt(ot){return"boolean"==typeof ot}(Ci)||function rt(ot){return"string"==typeof ot}(Ci)||it(Ci))&&(function Ii(ot){if(!function Vt(ot){return Ft(ot)&&!it(ot)}(ot))return!1;const Kt=Object.getPrototypeOf(ot);return Kt===Object.prototype||null===Kt}(Ci)?li(Ci,[...Kt,ui]):{path:[...Kt,ui],value:Ci})},!1)}function Bt(ot,Kt){if(!1===ot)return;const gt=ot.path.join("."),Lt=new Error(`Detected unserializable ${Kt} at "${gt}". ${lt}#strict${Kt}serializability`);throw Lt.value=ot.value,Lt.unserializablePath=gt,Lt}function Li(ot){return(0,e.X6Q)()?Object.assign({strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!0,strictActionImmutability:!0,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1},ot):{strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!1,strictActionImmutability:!1,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1}}function si({strictActionSerializability:ot,strictStateSerializability:Kt}){return gt=>ot||Kt?function At(ot,Kt){return function(gt,Lt){Kt.action(Lt)&&Bt(li(Lt),"action");const ui=ot(gt,Lt);return Kt.state()&&Bt(li(ui),"state"),ui}}(gt,{action:Lt=>ot&&!sn(Lt),state:()=>Kt}):gt}function ci({strictActionImmutability:ot,strictStateImmutability:Kt}){return gt=>ot||Kt?function at(ot,Kt){return function(gt,Lt){const ui=Kt.action(Lt)?st(Lt):Lt,Ci=ot(gt,ui);return Kt.state()?st(Ci):Ci}}(gt,{action:Lt=>ot&&!sn(Lt),state:()=>Kt}):gt}function sn(ot){return ot.type.startsWith("@ngrx")}function Ui({strictActionWithinNgZone:ot}){return Kt=>ot?function Rt(ot,Kt){return function(gt,Lt){if(Kt.action(Lt)&&!e.R0b.isInAngularZone())throw new Error(`Action '${Lt.type}' running outside NgZone. ${lt}#strictactionwithinngzone`);return ot(gt,Lt)}}(Kt,{action:gt=>ot&&!sn(gt)}):Kt}function Di(ot){return[{provide:F,useValue:ot},{provide:G,useFactory:Ke,deps:[F]},{provide:U,deps:[G],useFactory:Li},{provide:r,multi:!0,deps:[U],useFactory:ci},{provide:r,multi:!0,deps:[U],useFactory:si},{provide:r,multi:!0,deps:[U],useFactory:Ui}]}function Xi(){return[{provide:ye,multi:!0,deps:[U],useFactory:_t}]}function Ke(ot){return ot}function _t(ot){if(!ot.strictActionTypeUniqueness)return;const Kt=Object.entries(O).filter(([,gt])=>gt>1).map(([gt])=>gt);if(Kt.length)throw new Error(`Action types are registered more than once, ${Kt.map(gt=>`"${gt}"`).join(", ")}. ${lt}#strictactiontypeuniqueness`)}let ve=(()=>{class ot{constructor(gt,Lt,ui,Ci,Yi,$i){}}return ot.\u0275fac=function(gt){return new(gt||ot)(e.LFG(ie),e.LFG(Me),e.LFG(Re),e.LFG($),e.LFG(_e,8),e.LFG(ye,8))},ot.\u0275mod=e.oAB({type:ot}),ot.\u0275inj=e.cJS({}),ot})(),qe=(()=>{class ot{constructor(gt,Lt,ui,Ci,Yi){this.features=gt,this.featureReducers=Lt,this.reducerManager=ui;const $i=gt.map((Cn,Ln)=>{const Pn=Lt.shift()[Ln];return Object.assign(Object.assign({},Cn),{reducers:Pn,initialState:Pt(Cn.initialState)})});ui.addFeatures($i)}ngOnDestroy(){this.reducerManager.removeFeatures(this.features)}}return ot.\u0275fac=function(gt){return new(gt||ot)(e.LFG(_),e.LFG(I),e.LFG(Ge),e.LFG(ve),e.LFG(ye,8))},ot.\u0275mod=e.oAB({type:ot}),ot.\u0275inj=e.cJS({}),ot})(),yt=(()=>{class ot{static forRoot(gt,Lt={}){return{ngModule:ve,providers:[{provide:_e,useFactory:Ni,deps:[[$,new e.FiY,new e.tp0]]},{provide:ce,useValue:Lt.initialState},{provide:re,useFactory:Pt,deps:[ce]},{provide:b,useValue:gt},{provide:a,useExisting:gt instanceof e.OlP?gt:b},{provide:ae,deps:[e.zs3,b,[new e.tBr(a)]],useFactory:fe},{provide:x,useValue:Lt.metaReducers?Lt.metaReducers:[]},{provide:v,deps:[r,x],useFactory:yi},{provide:oe,useValue:Lt.reducerFactory?Lt.reducerFactory:Ce},{provide:de,deps:[oe,v],useFactory:Ie},ee,vt,Ne,q,le,Di(Lt.runtimeChecks),Xi()]}}static forFeature(gt,Lt,ui={}){return{ngModule:qe,providers:[{provide:u,multi:!0,useValue:gt instanceof Object?{}:ui},{provide:i,multi:!0,useValue:{key:gt instanceof Object?gt.name:gt,reducerFactory:ui instanceof e.OlP||!ui.reducerFactory?Ce:ui.reducerFactory,metaReducers:ui instanceof e.OlP||!ui.metaReducers?[]:ui.metaReducers,initialState:ui instanceof e.OlP||!ui.initialState?void 0:ui.initialState}},{provide:_,deps:[e.zs3,u,i],useFactory:Je},{provide:p,multi:!0,useValue:gt instanceof Object?gt.reducer:Lt},{provide:L,multi:!0,useExisting:Lt instanceof e.OlP?Lt:p},{provide:I,multi:!0,deps:[e.zs3,p,[new e.tBr(L)]],useFactory:St},Xi()]}}}return ot.\u0275fac=function(gt){return new(gt||ot)},ot.\u0275mod=e.oAB({type:ot}),ot.\u0275inj=e.cJS({}),ot})();function fe(ot,Kt){return Kt instanceof e.OlP?ot.get(Kt):Kt}function Je(ot,Kt,gt){return gt.map((Lt,ui)=>{if(Kt[ui]instanceof e.OlP){const Ci=ot.get(Kt[ui]);return{key:Lt.key,reducerFactory:Ci.reducerFactory?Ci.reducerFactory:Ce,metaReducers:Ci.metaReducers?Ci.metaReducers:[],initialState:Ci.initialState}}return Lt})}function St(ot,Kt){return Kt.map(Lt=>Lt instanceof e.OlP?ot.get(Lt):Lt)}function Pt(ot){return"function"==typeof ot?ot():ot}function yi(ot,Kt){return ot.concat(Kt)}function Ni(ot){if(ot)throw new TypeError("StoreModule.forRoot() called twice. Feature modules should use StoreModule.forFeature() instead.");return"guarded"}function Si(...ot){return{reducer:ot.pop(),types:ot.map(Lt=>Lt.type)}}function qi(ot,...Kt){const gt=new Map;for(const Lt of Kt)for(const ui of Lt.types){const Ci=gt.get(ui);gt.set(ui,Ci?($i,Cn)=>Lt.reducer(Ci($i,Cn),Cn):Lt.reducer)}return function(Lt=ot,ui){const Ci=gt.get(ui.type);return Ci?Ci(Lt,ui):Lt}}},159:(Ve,Q,m)=>{"use strict";m.d(Q,{uU:()=>s,OF:()=>D});var e=m(5e3),t=m(9808),y=m(655),C=m(3259);function o(A,O){if(1&A&&e._UZ(0,"canvas",1),2&A){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 M=/^#(?:[0-9a-fA-F]{3,4}){1,2}$/;let l=(()=>{class A{constructor(E){this.viewContainerRef=E,this.errorCorrectionLevel=A.DEFAULT_ERROR_CORRECTION_LEVEL,this.darkColor="#000000FF",this.lightColor="#FFFFFFFF",this.margin=16}ngOnChanges(){var E,P;return(0,y.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 j=null!==(E=this.errorCorrectionLevel)&&void 0!==E?E:A.DEFAULT_ERROR_CORRECTION_LEVEL,W=M.test(this.darkColor)?this.darkColor:void 0,ie=M.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"),!ie&&this.lightColor&&console.error("[ng-qrcode] lightColor set to invalid value, must be RGBA hex color string, eg: #3050A130")),yield C.toCanvas(w,this.value,{version:this.version,errorCorrectionLevel:j,width:this.width,margin:this.margin,color:{dark:W,light:ie}});const ee=this.centerImageSrc,_e=N(this.centerImageWidth,A.DEFAULT_CENTER_IMAGE_SIZE),ce=N(this.centerImageHeight,A.DEFAULT_CENTER_IMAGE_SIZE);if(ee&&Z){this.centerImage||(this.centerImage=new Image(_e,ce)),ee!==(null===(P=this.centerImage)||void 0===P?void 0:P.src)&&(this.centerImage.src=ee),_e!==this.centerImage.width&&(this.centerImage.width=_e),ce!==this.centerImage.height&&(this.centerImage.height=ce);const re=this.centerImage;re.onload=()=>{Z.drawImage(re,w.width/2-_e/2,w.height/2-ce/2,_e,ce)}}})}}return A.DEFAULT_ERROR_CORRECTION_LEVEL="M",A.DEFAULT_CENTER_IMAGE_SIZE=40,A.\u0275fac=function(E){return new(E||A)(e.Y36(e.s_b))},A.\u0275dir=e.lG2({type:A,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]}),A})();function N(A,O){return void 0===A||""===A?O:"string"==typeof A?parseInt(A,10):A}let s=(()=>{class A{}return A.\u0275fac=function(E){return new(E||A)},A.\u0275cmp=e.Xpm({type:A,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,P){1&E&&e.YNc(0,o,1,10,"canvas",0),2&E&&e.Q6J("ngIf",P.value)},directives:[t.O5,l],encapsulation:2}),A})(),D=(()=>{class A{}return A.\u0275fac=function(E){return new(E||A)},A.\u0275mod=e.oAB({type:A}),A.\u0275inj=e.cJS({imports:[[t.ez]]}),A})()},4946:Ve=>{"use strict";Ve.exports=JSON.parse('{"aes-128-ecb":{"cipher":"AES","key":128,"iv":0,"mode":"ECB","type":"block"},"aes-192-ecb":{"cipher":"AES","key":192,"iv":0,"mode":"ECB","type":"block"},"aes-256-ecb":{"cipher":"AES","key":256,"iv":0,"mode":"ECB","type":"block"},"aes-128-cbc":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes-192-cbc":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes-256-cbc":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes128":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes192":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes256":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes-128-cfb":{"cipher":"AES","key":128,"iv":16,"mode":"CFB","type":"stream"},"aes-192-cfb":{"cipher":"AES","key":192,"iv":16,"mode":"CFB","type":"stream"},"aes-256-cfb":{"cipher":"AES","key":256,"iv":16,"mode":"CFB","type":"stream"},"aes-128-cfb8":{"cipher":"AES","key":128,"iv":16,"mode":"CFB8","type":"stream"},"aes-192-cfb8":{"cipher":"AES","key":192,"iv":16,"mode":"CFB8","type":"stream"},"aes-256-cfb8":{"cipher":"AES","key":256,"iv":16,"mode":"CFB8","type":"stream"},"aes-128-cfb1":{"cipher":"AES","key":128,"iv":16,"mode":"CFB1","type":"stream"},"aes-192-cfb1":{"cipher":"AES","key":192,"iv":16,"mode":"CFB1","type":"stream"},"aes-256-cfb1":{"cipher":"AES","key":256,"iv":16,"mode":"CFB1","type":"stream"},"aes-128-ofb":{"cipher":"AES","key":128,"iv":16,"mode":"OFB","type":"stream"},"aes-192-ofb":{"cipher":"AES","key":192,"iv":16,"mode":"OFB","type":"stream"},"aes-256-ofb":{"cipher":"AES","key":256,"iv":16,"mode":"OFB","type":"stream"},"aes-128-ctr":{"cipher":"AES","key":128,"iv":16,"mode":"CTR","type":"stream"},"aes-192-ctr":{"cipher":"AES","key":192,"iv":16,"mode":"CTR","type":"stream"},"aes-256-ctr":{"cipher":"AES","key":256,"iv":16,"mode":"CTR","type":"stream"},"aes-128-gcm":{"cipher":"AES","key":128,"iv":12,"mode":"GCM","type":"auth"},"aes-192-gcm":{"cipher":"AES","key":192,"iv":12,"mode":"GCM","type":"auth"},"aes-256-gcm":{"cipher":"AES","key":256,"iv":12,"mode":"GCM","type":"auth"}}')},5207:Ve=>{"use strict";Ve.exports=JSON.parse('{"sha224WithRSAEncryption":{"sign":"rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"RSA-SHA224":{"sign":"ecdsa/rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"sha256WithRSAEncryption":{"sign":"rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"RSA-SHA256":{"sign":"ecdsa/rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"sha384WithRSAEncryption":{"sign":"rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"RSA-SHA384":{"sign":"ecdsa/rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"sha512WithRSAEncryption":{"sign":"rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA512":{"sign":"ecdsa/rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA1":{"sign":"rsa","hash":"sha1","id":"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{"sign":"ecdsa","hash":"sha1","id":""},"sha256":{"sign":"ecdsa","hash":"sha256","id":""},"sha224":{"sign":"ecdsa","hash":"sha224","id":""},"sha384":{"sign":"ecdsa","hash":"sha384","id":""},"sha512":{"sign":"ecdsa","hash":"sha512","id":""},"DSA-SHA":{"sign":"dsa","hash":"sha1","id":""},"DSA-SHA1":{"sign":"dsa","hash":"sha1","id":""},"DSA":{"sign":"dsa","hash":"sha1","id":""},"DSA-WITH-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-WITH-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-WITH-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-WITH-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-RIPEMD160":{"sign":"dsa","hash":"rmd160","id":""},"ripemd160WithRSA":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"RSA-RIPEMD160":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"md5WithRSAEncryption":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"},"RSA-MD5":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"}}')},1308:Ve=>{"use strict";Ve.exports=JSON.parse('{"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}')},9799:Ve=>{"use strict";Ve.exports=JSON.parse('{"modp1":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},"modp2":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},"modp5":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},"modp14":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},"modp15":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},"modp16":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},"modp17":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},"modp18":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}')},8597:Ve=>{"use strict";Ve.exports={i8:"6.5.4"}},2562:Ve=>{"use strict";Ve.exports=JSON.parse('{"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}')}},Ve=>{Ve(Ve.s=8864)}]);